Latest gnome-libs/configure.in bombs on NetBSD (fix included).
- From: Ted Lemon <mellon hoffman vix com>
- To: gnome-list gnome org
- Subject: Latest gnome-libs/configure.in bombs on NetBSD (fix included).
- Date: Wed, 09 Sep 1998 23:01:51 -0700
NetBSD (and probably other BSD variants) include the Berkeley db
library in libc, so if you test for -ldb, you lose. The fix is to
just check for dbopen in libc, and only if it's not there look for it
in -ldb. Then, -ldb needs to be turned into a shell variable so that
it can be empty on BSD systems. Also, appropriate was spelled
inappropriately...:')
_MelloN_
Index: configure.in
===================================================================
RCS file: /cvs/gnome/gnome-libs/configure.in,v
retrieving revision 1.86
diff -c -r1.86 configure.in
*** configure.in 1998/09/09 06:46:24 1.86
--- configure.in 1998/09/10 05:54:41
***************
*** 163,178 ****
fi
dnl Check for db stuff.
! AC_CHECK_LIB(db, dbopen, , [
! AC_MSG_ERROR([Berkeley db library required for Gnome])])
AC_CHECK_HEADER(db.h, , [
AC_MSG_ERROR([Berkeley db library required for Gnome])])
AM_PATH_GDK_IMLIB(1.8, ,
AC_MSG_ERROR([*** IMLIB 1.8 not installed - please install first ***]))
! dnl These are for building the apporpriate lib*
! LIBGNOME_LIBS="-ldb $GLIB_LIBS $DL_LIB"
LIBGNOMEUI_LIBS="$LIBGNOME_LIBS $GDK_IMLIB_LIBS $GTK_LIBS"
LIBGTKXMHTML_LIBS="$XPM_LIBS $JPEG_LIBS $PNG_LIBS $Z_LIBS $GTK_LIBS"
LIBSUPPORT=
--- 163,180 ----
fi
dnl Check for db stuff.
! AC_CHECK_FUNCS(dbopen,,[
! AC_CHECK_LIB(db, dbopen, DB_LIB="-ldl",[
! AC_MSG_ERROR([Berkeley db library required for Gnome])])])
AC_CHECK_HEADER(db.h, , [
AC_MSG_ERROR([Berkeley db library required for Gnome])])
AM_PATH_GDK_IMLIB(1.8, ,
AC_MSG_ERROR([*** IMLIB 1.8 not installed - please install first ***]))
+
+ dnl These are for building the appropriate lib*
! LIBGNOME_LIBS="$DB_LIB $GLIB_LIBS $DL_LIB"
LIBGNOMEUI_LIBS="$LIBGNOME_LIBS $GDK_IMLIB_LIBS $GTK_LIBS"
LIBGTKXMHTML_LIBS="$XPM_LIBS $JPEG_LIBS $PNG_LIBS $Z_LIBS $GTK_LIBS"
LIBSUPPORT=
***************
*** 184,192 ****
dnl These are for using lib*
if test "$need_gnome_support" = yes; then
! GNOME_LIBS="-lgnome -lgnomesupport -ldb $LIBGNOME_LIBS"
else
! GNOME_LIBS="-lgnome -ldb $LIBGNOME_LIBS"
fi
GNOMEUI_LIBS="-lgnomeui $GDK_IMLIB_LIBS $GTK_LIBS $GNOME_LIBS"
GTKXMHTML_LIBS="-lgtkxmhtml $LIBGTKXMHTML_LIBS"
--- 186,194 ----
dnl These are for using lib*
if test "$need_gnome_support" = yes; then
! GNOME_LIBS="-lgnome -lgnomesupport $DB_LIB $LIBGNOME_LIBS"
else
! GNOME_LIBS="-lgnome $DB_LIB $LIBGNOME_LIBS"
fi
GNOMEUI_LIBS="-lgnomeui $GDK_IMLIB_LIBS $GTK_LIBS $GNOME_LIBS"
GTKXMHTML_LIBS="-lgtkxmhtml $LIBGTKXMHTML_LIBS"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]