diff GEMBASSY-1.0.3/m4/hpdf.m4 @ 2:8947fca5f715 draft default tip

Uploaded
author ktnyt
date Fri, 26 Jun 2015 05:21:44 -0400
parents 84a17b3fad1f
children
line wrap: on
line diff
--- a/GEMBASSY-1.0.3/m4/hpdf.m4	Fri Jun 26 05:20:29 2015 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,89 +0,0 @@
-dnl @synopsis CHECK_HPDF()
-dnl
-dnl This macro searches for an installed libhpdf (libharu) library. If nothing
-dnl was specified when calling configure, it first searches in /usr/local
-dnl and then in /usr. If the --with-hpdf=DIR is specified, it will try
-dnl to find it in DIR/include and DIR/lib.
-dnl
-dnl It defines the symbol PLD_pdf if the library is found.
-dnl
-
-
-AC_DEFUN([CHECK_HPDF],
-#
-# Handle user hints
-#
-[AC_MSG_CHECKING([whether to look for pdf support])
-AC_ARG_WITH([hpdf],
-    [AS_HELP_STRING([--with-hpdf=DIR],
-        [root directory path of hpdf installation @<:@defaults to /usr@:>@])],
-    [if test "$withval" != no ; then
-      AC_MSG_RESULT(yes)
-      ALT_HOME="$withval"
-    else
-      AC_MSG_RESULT([no])
-    fi], [
-    AC_MSG_RESULT([yes])
-    ALT_HOME=/usr
-])
-
-
-#
-# Locate hpdf
-#
-if test -d "${ALT_HOME}"
-then
-
-#
-# Keep a copy if it fails
-#
-	ALT_LDFLAGS="$LDFLAGS"
-	ALT_CPPFLAGS="$CPPFLAGS"
-
-#
-# Set 
-#
-        LDFLAGS="${LDFLAGS} -L${ALT_HOME}/lib"
-        CPPFLAGS="$CPPFLAGS -I$ALT_HOME/include"
-
-#
-# Check for libharu in ALT_HOME
-#
-        AC_CHECK_LIB(hpdf, HPDF_New, CHECK=1, CHECK=0, -L${ALT_HOME}/lib)
-#
-#
-# If everything found okay then proceed to include png driver in config.
-#
-	if test $CHECK = "1" ; then
-	  LIBS="$LIBS -lhpdf"
-
-	  case $host_os in
-	  solaris*)
-		LDFLAGS="$LDFLAGS -R$ALT_HOME/lib"
-		;;
-          esac
-
-	  AC_DEFINE([PLD_pdf], [1], [Define to 1 if PDF support is available])
-	  AM_CONDITIONAL(AMPDF, true)
-	  echo PDF support found
-	    if test $ALT_HOME = "/usr" ; then
-		  LDFLAGS="$ALT_LDFLAGS"
-		  CPPFLAGS="$ALT_CPPFLAGS"
-	    fi
-	else
-#
-# If not okay then reset FLAGS.
-#
-  	  AM_CONDITIONAL(AMPDF, false)
-	  LDFLAGS="$ALT_LDFLAGS"
-	  CPPFLAGS="$ALT_CPPFLAGS"
-	  echo "No pdf support (libhpdf) found."
-	fi
-
-else
-        if test $withval != "no"; then
-		echo "Directory $ALT_HOME does not exist"
-		exit 0
-        fi
-fi
-])