Changeset 2603 for trunk/gsdl/configure.in
- Timestamp:
- 2001-06-21T14:35:31+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/configure.in
r2521 r2603 208 208 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then 209 209 AC_MSG_RESULT($gdbmdir) ; 210 AC_DEFINE(HAVE_LIBGDBM , 1)211 210 else 212 AC_MSG_RESULT(can't find bothgdbm.h and libgdbm.a in $gdbmdir);211 AC_MSG_RESULT(can't find gdbm.h and libgdbm.a in $gdbmdir); 213 212 AC_MSG_CHECKING( looking for GDBM library in default locations) 214 213 fi 215 214 fi 216 215 216 # look in default path and in /usr/local 217 217 if test -z "$GDBM_INCLUDE" ; then 218 218 # try in system directory … … 224 224 success=no 225 225 ) 226 227 if test $success = "no"; then 228 # last chance - look in /usr/local (eg FreeBSD) 229 GDBM_LIBPATH=-L/usr/local/lib 230 GDBM_INCLUDE=-I/usr/local/include 231 ac_save_CXXFLAGS="$CXXFLAGS" 232 ac_save_LIBS="$LIBS" 233 CXXFLAGS="$CXXFLAGS -I/usr/local/include" 234 LIBS="$LIBS -L/usr/local/lib -lgdbm" 235 AC_TRY_LINK( 236 [#include <gdbm.h> 237 #include <stdio.h> 238 ], 239 [printf("%s",gdbm_version);], 240 success=/usr/local, 241 success=no 242 ) 243 CXXFLAGS=$ac_save_CXXFLAGS 244 LIBS=$ac_save_LIBS 245 fi 246 226 247 AC_MSG_RESULT($success) 227 248 if test $success = "no"; then 228 249 AC_MSG_ERROR(GDBM Library not available - cannot install) 229 250 fi 230 GDBM_LIBPATH= 231 GDBM_INCLUDE= 232 fi 251 fi 252 dnl I don't think anything actually checks this define, but... 253 AC_DEFINE(HAVE_LIBGDBM , 1) 233 254 234 255 AC_SUBST(GDBM_LIBPATH)
Note:
See TracChangeset
for help on using the changeset viewer.