Fix boost not found on debian-testing MP-628
[m4-moved-to-github.git] / usemarcon.m4
index 03fb152..8c7fb45 100644 (file)
@@ -1,4 +1,3 @@
-## $Id: usemarcon.m4,v 1.1 2006-03-30 17:31:25 adam Exp $
 AC_DEFUN([USEMARCON_INIT],
 [
         AC_SUBST(USEMARCONLALIB)
@@ -7,9 +6,7 @@ AC_DEFUN([USEMARCON_INIT],
         usemarconpath=NONE
         AC_ARG_WITH(usemarcon, [  --with-usemarcon=DIR    usemarcon-config in DIR (example /home/usemarcon145)], [usemarconpath=$withval])
 
-        if test "x$usemarconpath" != "xNONE"; then
-                usemarconconfig=$usemarconpath/usemarcon-config
-        else
+        if test "$usemarconpath" = "NONE"; then
                 if test "x$srcdir" = "x"; then
                         usemarconsrcdir=.
                 else
@@ -25,6 +22,8 @@ AC_DEFUN([USEMARCON_INIT],
                 if test "x$usemarconconfig" = "xNONE"; then
                         AC_PATH_PROG(usemarconconfig, usemarcon-config, NONE)
                 fi
+       elif test "$usemarconpath" != "no"; then
+                usemarconconfig=$usemarconpath/usemarcon-config
         fi
 
         AC_MSG_CHECKING(for USEMARCON)
@@ -33,7 +32,7 @@ AC_DEFUN([USEMARCON_INIT],
                 USEMARCONINC=`$usemarconconfig --cflags $1`
                 USEMARCONVERSION=`$usemarconconfig --version`
                 AC_MSG_RESULT($usemarconconfig)
-                AC_DEFINE(HAVE_USEMARCON)
+                AC_DEFINE([HAVE_USEMARCON],[1],[Define to 1 if USEMARCON is used])
         else
                 AC_MSG_RESULT(Not found)
                 USEMARCONVERSION=NONE