From 8e7ed5ba77496ebfd1fb15ebf1599b2a27e456e6 Mon Sep 17 00:00:00 2001 From: "briano%netscape.com" Date: Tue, 31 Aug 1999 01:53:41 +0000 Subject: [PATCH] Cleaned up the fullcircle support. Should be obsolete fairly soon when libfullsoft becomes a component. --- configure.in | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index 0ec46a0cdaca..22e2ed2563a8 100644 --- a/configure.in +++ b/configure.in @@ -2759,9 +2759,12 @@ fi dnl system FullCircle/Talkback support (Crash-reporting mechanism) dnl ============================================================== +MOZ_ARG_ENABLE_BOOL(fullcircle, +[ --enable-fullcircle Enable FullCircle/Talkback support], +[ MOZ_FULLCIRCLE=1 FULLCIRCLE_LIBS="-lfullsoft" ]) + AC_ARG_WITH(fullcircle, [ --with-fullcircle=\$dir location of FullCircle headers and libraries], - FULLCIRCLE_DIR=$withval, FULLCIRCLE_DIR=no) @@ -2774,12 +2777,12 @@ _SAVE_LDFLAGS=$LDFLAGS _SAVE_LIBS=$LIBS CFLAGS="$CFLAGS -I${FULLCIRCLE_DIR}" LDFLAGS="$LDFLAGS -L${FULLCIRCLE_DIR}" -LIBS="-ltalkback $LIBS" -AC_MSG_CHECKING("for FC_Initialize in -ltalkback"); +LIBS="-lfullsoft $LIBS" +AC_MSG_CHECKING("for FC_Initialize in -lfullsoft"); AC_TRY_LINK([ #include #include "fullcircle.h" ], [ FC_Initialize(); exit(0); ], - [FULLCIRCLE_LIB="-ltalkback $FULLCIRCLE_LIB" result="yes"], + [FULLCIRCLE_LIBS="-I${FULLCIRCLE_DIR} -L${FULLCIRCLE_DIR} -lfullsoft" result="yes"], [MISSING_FULLCIRCLE=1 result="no"]) AC_MSG_RESULT("$result") CFLAGS=$_SAVE_CFLAGS @@ -2787,11 +2790,18 @@ LDFLAGS=$_SAVE_LDFLAGS LIBS=$_SAVE_LIBS if test ! -z "$MISSING_FULLCIRCLE"; then - AC_MSG_ERROR([Could not find FullCircle library]); + echo + echo "Could not find FullCircle library -- ignoring it" + echo +else + AC_DEFINE(MOZ_FULLCIRCLE) fi fi +dnl AC_SUBST(MOZ_FULLCIRCLE) +dnl AC_SUBST(FULLCIRCLE_LIBS) + LDFLAGS=`echo \ $_WARNINGS_CFLAGS \