[gs-cvs] rev 9336 - trunk/gs/base
till at ghostscript.com
till at ghostscript.com
Thu Jan 8 04:51:35 PST 2009
Author: till
Date: 2009-01-08 04:51:35 -0800 (Thu, 08 Jan 2009)
New Revision: 9336
Modified:
trunk/gs/base/configure.ac
Log:
Added auto-detection for libpaper to the configure script
Modified: trunk/gs/base/configure.ac
===================================================================
--- trunk/gs/base/configure.ac 2009-01-08 12:43:28 UTC (rev 9335)
+++ trunk/gs/base/configure.ac 2009-01-08 12:51:35 UTC (rev 9336)
@@ -303,6 +303,23 @@
;;
esac
+dnl Tests for libpaper (to determine system default paper size)
+AC_ARG_WITH([libpaper],
+ AC_HELP_STRING([--without-libpaper],
+ [disable libpaper support]))
+if test x$with_libpaper != xno; then
+ AC_CHECK_LIB(paper, systempapername, [with_libiconv=yes],
+ [
+ AC_MSG_WARN([disabling support for libpaper])
+ with_libpaper=no
+ ])
+fi
+if test x$with_libpaper != xno; then
+ LIBS="$LIBS -lpaper"
+ AC_DEFINE(USE_LIBPAPER, 1, [Using libpaper])
+ CFLAGS="$CFLAGS -DUSE_LIBPAPER"
+fi
+
AC_CHECK_LIB(dl, dlopen)
AC_MSG_CHECKING([for local jpeg library source])
More information about the gs-cvs
mailing list