|
|
b40ea7 |
--- autotrace-0.31.1.orig/configure.in
|
|
|
b40ea7 |
+++ autotrace-0.31.1/configure.in
|
|
|
b40ea7 |
@@ -282,8 +300,12 @@ AC_CHECK_LIB(dl,main,[LIBLD_LDFLAGS=-ldl
|
|
|
b40ea7 |
if test "x${LIBLD_LDFLAGS}" != x; then
|
|
|
b40ea7 |
LIBPSTOEDIT_EXTRA_LIBS="${LIBPSTOEDIT_EXTRA_LIBS} ${LIBLD_LDFLAGS}"
|
|
|
b40ea7 |
fi
|
|
|
b40ea7 |
-
|
|
|
b40ea7 |
-echo '*** Checking pstoedit existence TWICE(if needed) ***'
|
|
|
b40ea7 |
+
|
|
|
b40ea7 |
+echo '*** Checking pstoedit existence THRICE(if needed)***'
|
|
|
b40ea7 |
+echo '*** This is the 0th check ***'
|
|
|
b40ea7 |
+PKG_CHECK_MODULES(LIBPSTOEDIT,[pstoedit >= 3.32.1],HAVE_LIBPSTOEDIT_321=yes)
|
|
|
b40ea7 |
+if test ${HAVE_LIBPSTOEDIT_321} != yes; then
|
|
|
b40ea7 |
+ echo '*** The 0th check failed ***'
|
|
|
b40ea7 |
echo '*** This is the 1st check ***'
|
|
|
b40ea7 |
AM_PATH_PSTOEDIT(3.32.1,HAVE_LIBPSTOEDIT_321=yes)
|
|
|
b40ea7 |
if test ${HAVE_LIBPSTOEDIT_321} != yes; then
|
|
|
b40ea7 |
@@ -310,6 +332,15 @@ else
|
|
|
b40ea7 |
LIBPSTOEDIT_LIBS="${PSTOEDIT_LIBS} ${LIBPSTOEDIT_EXTRA_LIBS}"
|
|
|
b40ea7 |
LIBPSTOEDIT_CFLAGS="${PSTOEDIT_CFLAGS}"
|
|
|
b40ea7 |
fi
|
|
|
b40ea7 |
+else
|
|
|
b40ea7 |
+ echo '*** The 0th check is passed. ***'
|
|
|
b40ea7 |
+ HAVE_LIBPSTOEDIT=yes
|
|
|
b40ea7 |
+
|
|
|
b40ea7 |
+ # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1415258
|
|
|
b40ea7 |
+ LIBPSTOEDIT_LIBS="${LIBPSTOEDIT_LIBS/@LIBPNG_LDFLAGS@/-lpng}"
|
|
|
b40ea7 |
+
|
|
|
b40ea7 |
+ AC_DEFINE(HAVE_LIBPSTOEDIT)
|
|
|
b40ea7 |
+fi
|
|
|
b40ea7 |
|
|
|
b40ea7 |
if test ${HAVE_LIBPSTOEDIT} = yes; then
|
|
|
b40ea7 |
AC_CHECK_FUNCS([mkstemp])
|