Changeset 19448
- Timestamp:
- 11/10/06 13:20:05 (2 years ago)
- Files:
-
- juggler/trunk/Doozer++/ChangeLog (modified) (1 diff)
- juggler/trunk/Doozer++/config/general.m4 (modified) (2 diffs)
- juggler/trunk/Doozer++/config/pkgs/alut.m4 (modified) (7 diffs)
- juggler/trunk/Doozer++/config/pkgs/audiere.m4 (modified) (7 diffs)
- juggler/trunk/Doozer++/config/pkgs/boost.m4 (modified) (4 diffs)
- juggler/trunk/Doozer++/config/pkgs/glut.m4 (modified) (4 diffs)
- juggler/trunk/Doozer++/config/pkgs/nspr.m4 (modified) (8 diffs)
- juggler/trunk/Doozer++/config/pkgs/openal.m4 (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/Doozer++/ChangeLog
r19399 r19448 1 1 DATE AUTHOR CHANGE 2 2 ---------- ------------ ------------------------------------------------------- 3 2006-11-09 patrickh Extended the tests for OpenAL, ALUT, GLUT, NSPR, and 4 Audiere to be smarter about 64-bit installations and to 5 report the directory containing the library (or 6 libraries) for the package. 7 NEW VERSION: 2.1.7 8 2006-11-09 patrickh Extended DPP_HAVE_GLUT to handle the Mac OS X GLUT 9 framework. 10 NEW VERSION: 2.1.6 11 2006-11-09 patrickh Store the Boost header directory path in 12 $BOOST_INCLUDE_DIR. 13 NEW VERSION: 2.1.5 3 14 2006-11-02 patrickh Separated the ALUT test from DPP_HAVE_OPENAL. The new 4 15 way to test for ALUT is to use DPP_HAVE_ALUT. juggler/trunk/Doozer++/config/general.m4
r19399 r19448 22 22 dnl ----------------------------------------------------------------- 23 23 dnl File: general.m4,v 24 dnl Date modified: 2006/11/0 2 17:31:4325 dnl Version: 1. 8724 dnl Date modified: 2006/11/09 22:12:21 25 dnl Version: 1.90 26 26 dnl ----------------------------------------------------------------- 27 27 dnl ************** <auto-copyright.pl END do not edit this line> ************** … … 47 47 dnl =========================================================================== 48 48 49 dnl general.m4,v 1. 87 2006/11/02 17:31:43patrickh Exp49 dnl general.m4,v 1.90 2006/11/09 22:12:21 patrickh Exp 50 50 51 51 dnl Set the version of Doozer++. 52 define(DPP_DPPVERSION, 2.1. 4)52 define(DPP_DPPVERSION, 2.1.7) 53 53 54 54 dnl --------------------------------------------------------------------------- juggler/trunk/Doozer++/config/pkgs/alut.m4
r19399 r19448 22 22 dnl ----------------------------------------------------------------- 23 23 dnl File: alut.m4,v 24 dnl Date modified: 2006/11/0 2 17:31:4325 dnl Version: 1. 124 dnl Date modified: 2006/11/09 22:12:22 25 dnl Version: 1.2 26 26 dnl ----------------------------------------------------------------- 27 27 dnl ************** <auto-copyright.pl END do not edit this line> ************** … … 43 43 dnl ALUT_INCLUDES - Extra include path for the ALUT header directory. 44 44 dnl ALUT_LDFLAGS - Extra linker flags for the ALUT library directory. 45 dnl ALUT_LIBDIR - The directory containing the ALUT library. On Mac OS X, 46 dnl this is the directory containing the OpenAL framework 47 dnl (since OpenAL and ALUT are not separated). 45 48 dnl =========================================================================== 46 49 47 dnl alut.m4,v 1. 1 2006/11/02 17:31:43patrickh Exp50 dnl alut.m4,v 1.2 2006/11/09 22:12:22 patrickh Exp 48 51 49 52 dnl --------------------------------------------------------------------------- … … 116 119 if test "x$PLATFORM" = "xDarwin" ; then 117 120 ALUT="$OPENAL" 121 ALUT_LIBDIR="$AL_LIBDIR" 118 122 dpp_have_alut="$dpp_have_openal" 119 123 dnl Other platforms. … … 125 129 fi 126 130 131 LIBS="-lalut $DYN_LOAD_LIB $LIBOPENAL $LIBS" 132 127 133 DPP_LANG_SAVE 128 134 DPP_LANG_C 129 135 130 136 for l in $libdirs ; do 137 cur_alut_libdir="$ALUT_ROOT/$l" 138 131 139 dnl The pthreads-related macros will set only one of 132 140 dnl $PTHREAD_ARG or $PTHREAD_LIB, so it's safe (and simpler) 133 141 dnl for us to use both here. 134 LDFLAGS="-L$ALUT_ROOT/$l $dpp_saveLDFLAGS $AL_LDFLAGS $PTHREAD_ARG $PTHREAD_LIB" 135 136 AC_CHECK_LIB([alut], [alutInit], 137 [AC_CHECK_HEADER([AL/alut.h], [dpp_have_alut='yes'], 138 [dpp_have_alut='no'])], 139 [dpp_have_alut='no'], 140 [$DYN_LOAD_LIB $LIBOPENAL]) 142 LDFLAGS="-L$cur_alut_libdir $dpp_saveLDFLAGS $AL_LDFLAGS $PTHREAD_ARG $PTHREAD_LIB" 143 144 AC_MSG_CHECKING([for alutInit in -lalut in $cur_alut_libdir]) 145 AC_TRY_LINK([#include <AL/alut.h>], [alutInit(0, 0);], 146 [dpp_have_alut='yes'], [dpp_have_alut='no']) 147 AC_MSG_RESULT([$dpp_have_alut]) 141 148 142 149 if test "x$dpp_have_alut" = "xyes" ; then 150 ALUT_LIBDIR="$cur_alut_libdir" 143 151 break 144 152 fi … … 147 155 DPP_LANG_RESTORE 148 156 fi 157 158 dnl Restore all the variables now that we are done testing. 159 CFLAGS="$dpp_save_CFLAGS" 160 CPPFLAGS="$dpp_save_CPPFLAGS" 161 LDFLAGS="$dpp_save_LDFLAGS" 162 LIBS="$dpp_save_LIBS" 149 163 150 164 dnl Success. … … 174 188 ALUT='yes' 175 189 fi 176 177 dnl Restore all the variables now that we are done testing.178 CFLAGS="$dpp_save_CFLAGS"179 CPPFLAGS="$dpp_save_CPPFLAGS"180 LDFLAGS="$dpp_save_LDFLAGS"181 LIBS="$dpp_save_LIBS"182 190 fi 183 191 fi … … 189 197 AC_SUBST(ALUT_INCLUDES) 190 198 AC_SUBST(ALUT_LDFLAGS) 199 AC_SUBST(ALUT_LIBDIR) 191 200 ]) juggler/trunk/Doozer++/config/pkgs/audiere.m4
r16866 r19448 22 22 dnl ----------------------------------------------------------------- 23 23 dnl File: audiere.m4,v 24 dnl Date modified: 200 5/01/08 22:44:4125 dnl Version: 1. 624 dnl Date modified: 2006/11/09 22:12:22 25 dnl Version: 1.7 26 26 dnl ----------------------------------------------------------------- 27 27 dnl ************** <auto-copyright.pl END do not edit this line> ************** … … 44 44 dnl appliations. 45 45 dnl AUDIERE_INCLUDES - Extra include path for the Audiere header directory. 46 dnl AUDIERE_LDFLAGS - Extra linker flags for the Audiere library directory. 46 dnl AUDIERE_LDFLAGS - Extra linker flags for the Audiere library 47 dnl directory. 48 dnl AUDIERE_LIBDIR - The directory contaning the Audiere library. 47 49 dnl =========================================================================== 48 50 49 dnl audiere.m4,v 1. 6 2005/01/08 22:44:41patrickh Exp51 dnl audiere.m4,v 1.7 2006/11/09 22:12:22 patrickh Exp 50 52 51 53 dnl --------------------------------------------------------------------------- … … 89 91 dpp_save_CPPFLAGS="$CPPFLAGS" 90 92 dpp_save_LDFLAGS="$LDFLAGS" 93 dpp_save_LIBS="$LIBS" 91 94 92 95 dnl Add the user-specified Audiere installation directory to these … … 95 98 if test "x$AUDIERE_ROOT" != "x/usr" ; then 96 99 CPPFLAGS="$CPPFLAGS -I$AUDIERE_ROOT/include" 97 LDFLAGS="-L$AUDIERE_ROOT/lib $LDFLAGS $ABI_FLAGS"98 100 fi 99 101 100 102 CXXFLAGS="$CXXFLAGS $ABI_FLAGS" 101 102 dpp_save_LIBS="$LIBS"103 103 104 104 if test "x$PLATFORM" = "xIRIX" ; then … … 106 106 fi 107 107 108 if test "lib$LIBBITSUF" != "lib" ; then 109 libdirs="lib$LIBBITSUF lib" 110 else 111 libdirs="lib" 112 fi 113 114 LIBS="-laudiere $LIB_AUDIO $LIBS" 115 108 116 DPP_LANG_SAVE 109 117 DPP_LANG_CPLUSPLUS 110 118 111 AC_CHECK_LIB([audiere], [AdrOpenDevice], 112 [AC_CHECK_HEADER([audiere.h], [dpp_have_audiere='yes'], 113 [dpp_have_audiere='no'])], 114 [dpp_have_audiere='no'], [$LIB_AUDIO]) 119 for l in $libdirs ; do 120 cur_audiere_libdir="$AUDIERE_ROOT/$l" 121 LDFLAGS="-L$cur_audiere_libdir $dpp_save_LDFLAGS $ABI_FLAGS" 122 123 AC_MSG_CHECKING([for audiere::OpenDevice in -laudiere in $cur_audiere_libdir]) 124 AC_TRY_LINK([#include <audiere.h>], [audiere::OpenDevice();], 125 [dpp_have_audiere='yes'], [dpp_have_audiere='no']) 126 AC_MSG_RESULT([$dpp_have_audiere]) 127 128 if test "x$dpp_have_audiere" = "xyes" ; then 129 AUDIERE_LIBDIR="$cur_audiere_libdir" 130 break 131 fi 132 done 115 133 116 134 DPP_LANG_RESTORE 117 135 118 dnl this is necessary because AC_CHECK_LIB() adds -lauidere to 119 dnl $LIBS. We want to do that ourselves later. 136 CXXFLAGS="$dpp_save_CXXFLAGS" 137 CPPFLAGS="$dpp_save_CPPFLAGS" 138 LDFLAGS="$dpp_save_LDFLAGS" 120 139 LIBS="$dpp_save_LIBS" 121 140 … … 134 153 AUDIERE='yes' 135 154 fi 136 137 CXXFLAGS="$dpp_save_CXXFLAGS"138 CPPFLAGS="$dpp_save_CPPFLAGS"139 LDFLAGS="$dpp_save_LDFLAGS"140 155 fi 141 156 … … 145 160 AC_SUBST(AUDIERE_INCLUDES) 146 161 AC_SUBST(AUDIERE_LDFLAGS) 162 AC_SUBST(AUDIERE_LIBDIR) 147 163 ]) juggler/trunk/Doozer++/config/pkgs/boost.m4
r18189 r19448 22 22 dnl ----------------------------------------------------------------- 23 23 dnl File: boost.m4,v 24 dnl Date modified: 200 5/11/16 14:42:2125 dnl Version: 1.2 724 dnl Date modified: 2006/11/09 21:58:31 25 dnl Version: 1.28 26 26 dnl ----------------------------------------------------------------- 27 27 dnl ************** <auto-copyright.pl END do not edit this line> ************** … … 40 40 dnl BOOST - do we have boost on the system? 41 41 dnl BOOST_ROOT - The Boost installation directory. 42 dnl BOOST_INCLUDE_DIR - The directory containing the Boost header tree. 42 43 dnl BOOST_INCLUDES - Extra include path for the Boost header directory. 43 44 dnl BOOST_LDFLAGS - Extra library path for the Boost libraries. 45 dnl Note that the value set in this variable is an 46 dnl educated guess. No test is performed to validate 47 dnl the setting! 44 48 dnl BOOST_VERSION - The integer Boost version (see boost/version.hpp). 45 49 dnl BOOST_LIB_VERSION - The version substring in Boost library names. 46 50 dnl =========================================================================== 47 51 48 dnl boost.m4,v 1.2 7 2005/11/16 14:42:21 patrickh Exp52 dnl boost.m4,v 1.28 2006/11/09 21:58:31 patrickh Exp 49 53 50 54 dnl --------------------------------------------------------------------------- … … 153 157 if test "x$dpp_have_boost" = "xyes" ; then 154 158 if test "x$dpp_boost_incdir" != "x" ; then 159 BOOST_INCLUDE_DIR="$dpp_boost_incdir" 155 160 BOOST_INCLUDES="-I$dpp_boost_incdir" 156 161 fi … … 180 185 dnl Export all of the output vars for use by makefiles and configure script. 181 186 AC_SUBST(BOOST_ROOT) 187 AC_SUBST(BOOST_INCLUDE_DIR) 182 188 AC_SUBST(BOOST_INCLUDES) 183 189 AC_SUBST(BOOST_LDFLAGS) juggler/trunk/Doozer++/config/pkgs/glut.m4
r16866 r19448 22 22 dnl ----------------------------------------------------------------- 23 23 dnl File: glut.m4,v 24 dnl Date modified: 200 5/01/08 22:44:4125 dnl Version: 1.1 224 dnl Date modified: 2006/11/09 22:12:22 25 dnl Version: 1.15 26 26 dnl ----------------------------------------------------------------- 27 27 dnl ************** <auto-copyright.pl END do not edit this line> ************** … … 41 41 dnl GLUT_INCLUDES - Extra include path for the GLUT header directory. 42 42 dnl GLUT_LDFLAGS - Extra linker flags for the GLUT library directory. 43 dnl GLUT_LIBDIR - The directory containing the GLUT library. On Mac OS X, 44 dnl this is the directory containing the GLUT framework 45 dnl directory. 43 46 dnl =========================================================================== 44 47 45 dnl glut.m4,v 1.1 2 2005/01/08 22:44:41patrickh Exp48 dnl glut.m4,v 1.15 2006/11/09 22:12:22 patrickh Exp 46 49 47 50 dnl --------------------------------------------------------------------------- … … 97 100 AC_MSG_WARN([Assuming that GLUT is available in a standard location]) 98 101 dpp_have_glut='yes' 99 ifelse([$3], , :, [$3]) 102 ifelse([$2], , :, [$2]) 103 elif test "x$PLATFORM" = "xDarwin" ; then 104 DPP_LANG_SAVE 105 DPP_LANG_C 106 107 CPPFLAGS="-F$GLUT_ROOT $CPPFLAGS" 108 LDFLAGS="-F$GLUT_ROOT $LDFLAGS" 109 LIBS="$LIBS -framework GLUT" 110 111 AC_CACHE_CHECK([for glutMainLoop in GLUT framework], 112 [dpp_cv_glutMainLoop_glut_lib], 113 [AC_TRY_LINK([#include <GLUT/glut.h>], 114 [glutMainLoop();], 115 [dpp_cv_glutMainLoop_lib='yes'], 116 [dpp_cv_glutMainLoop_lib='no'])]) 117 118 DPP_LANG_RESTORE 119 120 dnl Restore all the variables now that we are done testing. 121 CFLAGS="$dpp_save_CFLAGS" 122 CPPFLAGS="$dpp_save_CPPFLAGS" 123 LDFLAGS="$dpp_save_LDFLAGS" 124 LIBS="$dpp_save_LIBS" 125 126 dnl Success. 127 if test "x$dpp_cv_glutMainLoop_lib" = "xyes" ; then 128 dpp_have_glut='yes' 129 GLUT_LIBDIR="$GLUT_ROOT" 130 ifelse([$2], , :, [$2]) 131 dnl Failure. 132 else 133 dpp_have_glut='no' 134 ifelse([$3], , :, [$3]) 135 fi 100 136 else 101 137 dpp_save_LIBS="$LIBS" 102 138 LIBS="$LIBS -lglut $LIBOPENGL -lm" 103 139 104 AC_LANG_SAVE 105 AC_LANG_C 106 107 dnl Check the cache in case this test was run previously and if 108 dnl not, compile the given code and try to link it against the GL 109 dnl library. We don't need to test for the existence of GL/gl.h 110 dnl after linking because the test program already includes it. 111 AC_CACHE_CHECK([for glutMainLoop in -lglut], 112 [dpp_cv_glutMainLoop_available], 113 [AC_TRY_LINK([#include <GL/glut.h>], [glutMainLoop()], 114 [dpp_cv_glutMainLoop_available='yes'], 115 [dpp_cv_glutMainLoop_available='no'])]) 116 140 if test "lib$LIBBITSUF" != "lib" ; then 141 libdirs="lib$LIBBITSUF lib" 142 else 143 libdirs="lib" 144 fi 145 146 DPP_LANG_SAVE 147 DPP_LANG_C 148 149 for l in $libdirs ; do 150 cur_glut_libdir="$GLUT_ROOT/$l" 151 LDFLAGS="-L$cur_glut_libdir $dpp_save_LDFLAGS" 152 153 AC_MSG_CHECKING([for glutMainLoop in -lglut in $cur_glut_libdir]) 154 AC_TRY_LINK([#include <GL/glut.h>], [glutMainLoop();], 155 [dpp_have_glut='yes'], [dpp_have_glut='no']) 156 AC_MSG_RESULT([$dpp_have_glut]) 157 158 LIBS="$dpp_save_LIBS" 159 160 if test "x$dpp_have_glut" = "xyes" ; then 161 GLUT_LIBDIR="$cur_glut_libdir" 162 break 163 fi 164 done 165 166 DPP_LANG_RESTORE 167 168 dnl Restore all the variables now that we are done testing. 169 CFLAGS="$dpp_save_CFLAGS" 170 CPPFLAGS="$dpp_save_CPPFLAGS" 171 LDFLAGS="$dpp_save_LDFLAGS" 117 172 LIBS="$dpp_save_LIBS" 118 173 119 174 if test "x$dpp_cv_glutMainLoop_available" = "xyes" ; then 120 175 dpp_have_glut='yes' 176 ifelse([$2], , :, [$2]) 177 else 121 178 ifelse([$3], , :, [$3]) 122 else 123 ifelse([$4], , :, [$4]) 124 fi 125 126 AC_LANG_RESTORE 179 fi 127 180 fi 128 181 … … 141 194 fi 142 195 fi 143 144 dnl Restore all the variables now that we are done testing.145 CFLAGS="$dpp_save_CFLAGS"146 CPPFLAGS="$dpp_save_CPPFLAGS"147 LDFLAGS="$dpp_save_LDFLAGS"148 196 fi 149 197 150 198 AC_SUBST(GLUT_ROOT) 199 AC_SUBST(GLUT_INCLUDES) 200 AC_SUBST(GLUT_LDFLAGS) 201 AC_SUBST(GLUT_LIBDIR) 151 202 ]) juggler/trunk/Doozer++/config/pkgs/nspr.m4
r17068 r19448 22 22 dnl ----------------------------------------------------------------- 23 23 dnl File: nspr.m4,v 24 dnl Date modified: 200 5/03/20 17:17:1225 dnl Version: 1.4 024 dnl Date modified: 2006/11/09 22:12:22 25 dnl Version: 1.41 26 26 dnl ----------------------------------------------------------------- 27 27 dnl ************** <auto-copyright.pl END do not edit this line> ************** … … 60 60 dnl libraries (safe for use with the msvccc shell 61 61 dnl script). 62 dnl NSPR_LIBDIR - The directory containing the NSPR libraries. 62 63 dnl NSPR_LIB_MSVCCC - The linker option for the basic NSPR library 63 64 dnl for use with the msvccc shell script. … … 82 83 dnl =========================================================================== 83 84 84 dnl nspr.m4,v 1.4 0 2005/03/20 17:17:12 patrickh Exp85 dnl nspr.m4,v 1.41 2006/11/09 22:12:22 patrickh Exp 85 86 86 87 dnl --------------------------------------------------------------------------- … … 149 150 150 151 if test "x$NSPR_ROOT" != "xno" ; then 151 AC_LANG_SAVE152 AC_LANG_C152 DPP_LANG_SAVE 153 DPP_LANG_C 153 154 154 155 dnl Add the user-specified NSPR installation directory to the … … 176 177 dnl No NSPR library directory, so append "/lib" to $NSPR_ROOT. 177 178 if test "x${_with_nspr_lib}" = "x/usr/lib" ; then 178 dpp_nspr_libdir="$NSPR_ROOT/lib" 179 if test "lib$LIBBITSUF" != "lib" ; then 180 libdirs="$NSPR_ROOT/lib$LIBBITSUF $NSPR_ROOT/lib" 181 else 182 libdirs="$NSPR_ROOT/lib" 183 fi 179 184 dnl We have a NSPR library directory, so we'll use it and hope for 180 185 dnl the best. 181 186 else 182 dpp_nspr_libdir="${_with_nspr_lib}"187 libdirs="${_with_nspr_lib}" 183 188 fi 184 189 else 185 dpp_nspr_libdir="$NSPR_ROOT/lib" 190 if test "lib$LIBBITSUF" != "lib" ; then 191 libdirs="$NSPR_ROOT/lib$LIBBITSUF $NSPR_ROOT/lib" 192 else 193 libdirs="$NSPR_ROOT/lib" 194 fi 186 195 fi 187 196 … … 198 207 199 208 CPPFLAGS="$CPPFLAGS -I$dpp_nspr_incdir" 200 LDFLAGS="$PTHREAD_ARG -L$dpp_nspr_libdir $LDFLAGS" 209 210 AC_CHECK_HEADERS([nspr.h nspr/nspr.h]) 201 211 202 212 if test "x$dpp_os_type" = "xWin32" ; then 203 213 NSPR_LIB_NAME_PREFIX='lib' 204 214 fi 215 216 LIBS="$PTHREAD_LIB $SEM_LIB" 217 218 libname="$NSPR_LIB_NAME_PREFIXnspr4" 219 220 for l in libdirs ; do 221 cur_nspr_libdir="$l" 222 LDFLAGS="$PTHREAD_ARG -L$cur_nspr_libdir $dpp_save_LDFLAGS" 223 224 AC_MSG_CHECKING([for PR_Initialized in $libname in $cur_nspr_libdir]) 225 AC_TRY_LINK([ 226 #if defined(HAVE_NSPR_H) 227 #include <nspr.h> 228 #else 229 #include <nspr/nspr.h> 230 #endif 231 ], 232 [PR_Initialized();], [dpp_have_nspr='yes'], [dpp_have_nspr='no']) 233 234 if test "x$dpp_have_nspr" = "xyes" ; then 235 NSPR_LIBDIR="$cur_nspr_libdir" 236 break 237 fi 238 done 239 240 DPP_LANG_RESTORE 205 241 206 242 dpp_nspr_lib="${NSPR_LIB_NAME_PREFIX}nspr$NSPR_VER" … … 208 244 dpp_plds_lib="${NSPR_LIB_NAME_PREFIX}plds$NSPR_VER" 209 245 210 AC_CHECK_LIB([$dpp_nspr_lib], [PR_CreateThread],211 [AC_CHECK_HEADER([nspr.h],212 [dpp_nspr_inc="$dpp_nspr_incdir"],213 [AC_CHECK_HEADER([nspr/nspr.h],214 [dpp_nspr_inc="$dpp_nspr_incdir/nspr"], $3)])],215 $3, [$PTHREAD_LIB $SEM_LIB])216 217 246 CPPFLAGS="$dpp_save_CPPFLAGS" 218 247 LDFLAGS="$dpp_save_LDFLAGS" 219 248 LIBS="$dpp_save_LIBS" 220 249 221 AC_LANG_RESTORE 222 223 NSPR_INCLUDES="-I$dpp_nspr_inc" 224 NSPR_LIB="-l$dpp_nspr_lib" 225 PLC_LIB="-l$dpp_plc_lib" 226 PLDS_LIB="-l$dpp_plds_lib" 227 NSPR_LDFLAGS="-L$dpp_nspr_libdir" 228 229 NSPR_LIB_MSVCCC="-l$dpp_nspr_lib" 230 PLC_LIB_MSVCCC="-l$dpp_plc_lib" 231 PLDS_LIB_MSVCCC="-l$dpp_plds_lib" 232 NSPR_LDFLAGS_MSVCCC="-L$dpp_nspr_libdir" 233 234 NSPR_LIB_LINK_EXE="$dpp_nspr_lib.lib" 235 PLC_LIB_LINK_EXE="$dpp_plc_lib.lib" 236 PLDS_LIB_LINK_EXE="$dpp_plds_lib.lib" 237 NSPR_LDFLAGS_LINK_EXE="/libpath:\"$dpp_nspr_libdir\"" 238 239 NSPR_LIB_STATIC="\$(NSPR_ROOT)/lib/libnspr$NSPR_VER.a" 240 PLC_LIB_STATIC="\$(NSPR_ROOT)/lib/libplc$NSPR_VER.a" 241 PLDS_LIB_STATIC="\$(NSPR_ROOT)/lib/libplds$NSPR_VER.a" 250 if test "x$dpp_have_nspr" = "xyes" ; then 251 NSPR_INCLUDES="-I$dpp_include_path" 252 NSPR_LIB="-l$dpp_nspr_lib" 253 PLC_LIB="-l$dpp_plc_lib" 254 PLDS_LIB="-l$dpp_plds_lib" 255 NSPR_LDFLAGS="-L$dpp_nspr_libdir" 256 257 NSPR_LIB_MSVCCC="-l$dpp_nspr_lib" 258 PLC_LIB_MSVCCC="-l$dpp_plc_lib" 259 PLDS_LIB_MSVCCC="-l$dpp_plds_lib" 260 NSPR_LDFLAGS_MSVCCC="-L$dpp_nspr_libdir" 261 262 NSPR_LIB_LINK_EXE="$dpp_nspr_lib.lib" 263 PLC_LIB_LINK_EXE="$dpp_plc_lib.lib" 264 PLDS_LIB_LINK_EXE="$dpp_plds_lib.lib" 265 NSPR_LDFLAGS_LINK_EXE="/libpath:\"$dpp_nspr_libdir\"" 266 267 NSPR_LIB_STATIC="\$(NSPR_ROOT)/lib/libnspr$NSPR_VER.a" 268 PLC_LIB_STATIC="\$(NSPR_ROOT)/lib/libplc$NSPR_VER.a" 269 PLDS_LIB_STATIC="\$(NSPR_ROOT)/lib/libplds$NSPR_VER.a" 270 else 271 ifelse([$3], , :, [$3]) 272 fi 242 273 fi 243 274 … … 249 280 AC_SUBST(PLC_LIB_STATIC) 250 281 AC_SUBST(PLDS_LIB_STATIC) 282 AC_SUBST(NSPR_LIBDIR) 251 283 ]) 252 284 juggler/trunk/Doozer++/config/pkgs/openal.m4
r19399 r19448 22 22 dnl ----------------------------------------------------------------- 23 23 dnl File: openal.m4,v 24 dnl Date modified: 2006/11/0 2 17:31:4325 dnl Version: 1.2 324 dnl Date modified: 2006/11/09 22:12:22 25 dnl Version: 1.24 26 26 dnl ----------------------------------------------------------------- 27 27 dnl ************** <auto-copyright.pl END do not edit this line> ************** … … 43 43 dnl AL_INCLUDES - Extra include path for the OpenAL header directory. 44 44 dnl AL_LDFLAGS - Extra linker flags for the OpenAL library directory. 45 dnl AL_LIBDIR - The directory containing the OpenAL library. On Mac OS X, 46 dnl this is the directory containing the OpenAL framework. 45 47 dnl =========================================================================== 46 48 47 dnl openal.m4,v 1.2 3 2006/11/02 17:31:43patrickh Exp49 dnl openal.m4,v 1.24 2006/11/09 22:12:22 patrickh Exp 48 50 49 51 dnl --------------------------------------------------------------------------- … … 131 133 [dpp_cv_alEnable_openal_lib='no'])]) 132 134 135 DPP_LANG_RESTORE 136 137 dnl Restore all the variables now that we are done testing. 138 CFLAGS="$dpp_save_CFLAGS" 139 CPPFLAGS="$dpp_save_CPPFLAGS" 140 LDFLAGS="$dpp_save_LDFLAGS" 133 141 LIBS="$dpp_save_LIBS" 134 142 … … 136 144 if test "x$dpp_cv_alEnable_openal_lib" = "xyes" ; then 137 145 dpp_have_openal='yes' 146 AL_LIBDIR="$OALROOT/libs" 138 147 ifelse([$2], , :, [$2]) 139 148 dnl Failure. … … 142 151 ifelse([$3], , :, [$3]) 143 152 fi 144 145 DPP_LANG_RESTORE146 153 elif test "x$PLATFORM" = "xDarwin" ; then 147 154 DPP_LANG_SAVE … … 158 165 [dpp_cv_alEnable_openal_lib='no'])]) 159 166 167 DPP_LANG_RESTORE 168 169 dnl Restore all the variables now that we are done testing. 170 CFLAGS="$dpp_save_CFLAGS" 171 CPPFLAGS="$dpp_save_CPPFLAGS" 172 LDFLAGS="$dpp_save_LDFLAGS" 160 173 LIBS="$dpp_save_LIBS" 161 174 … … 163 176 if test "x$dpp_cv_alEnable_openal_lib" = "xyes" ; then 164 177 dpp_have_openal='yes' 178 AL_LIBDIR="$OALROOT" 165 179 ifelse([$2], , :, [$2]) 166 180 dnl Failure. … … 169 183 ifelse([$3], , :, [$3]) 170 184 fi 171 172 DPP_LANG_RESTORE173 185 dnl Other platforms. 174 186 else 187 if test "lib$LIBBITSUF" != "lib" ; then 188 libdirs="lib$LIBBITSUF lib" 189 else 190 libdirs="lib" 191 fi 192 193 LIBS="-lopenal $LIBS $DYN_LOAD_LIB -lm" 194 175 195 DPP_LANG_SAVE 176 196 DPP_LANG_C 177 197 178 dnl The pthreads-related macros will set only one of $PTHREAD_ARG or 179 dnl $PTHREAD_LIB, so it's safe (and simpler) for us to use both here. 180 LDFLAGS="-L$OALROOT/lib $LDFLAGS $PTHREAD_ARG $PTHREAD_LIB" 181 182 AC_CHECK_LIB([openal], [alEnable], 183 [AC_CHECK_HEADER([AL/al.h], [dpp_have_openal='yes'], 184 [dpp_have_openal='no'])], 185 [dpp_have_openal='no'], 186 [$DYN_LOAD_LIB -lm]) 198 for l in $libdirs ; do 199 cur_al_libdir="$OALROOT/$l" 200 201 dnl The pthreads-related macros will set only one of 202 dnl $PTHREAD_ARG or $PTHREAD_LIB, so it's safe (and simpler) 203 dnl for us to use both here. 204 LDFLAGS="-L$cur_al_libdir $dpp_save_LDFLAGS $PTHREAD_ARG $PTHREAD_LIB" 205 206 AC_MSG_CHECKING([for alEnable in -lopenal in $cur_al_libdir]) 207 AC_TRY_LINK([#include <AL/al.h>], [alEnable(0);], 208 [dpp_have_openal='yes'], [dpp_have_openal='no']) 209 AC_MSG_RESULT([$dpp_have_openal]) 210 211 if test "$dpp_have_openal" = "yes" ; then 212 AL_LIBDIR="$cur_al_libdir" 213 break 214 fi 215 done 216 217 DPP_LANG_RESTORE 218 219 dnl Restore all the variables now that we are done testing. 220 CFLAGS="$dpp_save_CFLAGS" 221 CPPFLAGS="$dpp_save_CPPFLAGS" 222 LDFLAGS="$dpp_save_LDFLAGS" 223 LIBS="$dpp_save_LIBS" 187 224 188 225 dnl Success. … … 193 230 ifelse([$3], , :, [$3]) 194 231 fi 195 196 DPP_LANG_RESTORE197 232 fi 198 233 … … 227 262 OPENAL='yes' 228 263 fi 229 230 dnl Restore all the variables now that we are done testing.231 CFLAGS="$dpp_save_CFLAGS"232 CPPFLAGS="$dpp_save_CPPFLAGS"233 LDFLAGS="$dpp_save_LDFLAGS"234 LIBS="$dpp_save_LIBS"235 264 fi 236 265 … … 241 270 AC_SUBST(AL_INCLUDES) 242 271 AC_SUBST(AL_LDFLAGS) 272 AC_SUBST(AL_LIBDIR) 243 273 ])
