summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Costantini <fabien@onepost.net>2008-11-10 22:03:55 +0000
committerFabien Costantini <fabien@onepost.net>2008-11-10 22:03:55 +0000
commit250090b3f017ac3be12f4bcce9ea3cdecc59618d (patch)
treef4fc305a593aaa6e852ab22d76e6037931ea04c9
parent6c279f990996aeb7a0994433cd6acb183299d4d6 (diff)
More optimisation and cleanup for the PNG lib handling in configure.in. Also reordered the variables the same way in the main if test code so that differences now are obvious between the two modes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6515 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--configure.in12
-rw-r--r--test/Makefile7
2 files changed, 7 insertions, 12 deletions
diff --git a/configure.in b/configure.in
index b1d44f72c..7ccc9a056 100644
--- a/configure.in
+++ b/configure.in
@@ -595,23 +595,18 @@ if test x$enable_localpng != xyes ; then
syspnginc_ok=yes)
if test x$syspnginc_ok = xyes; then
syspnglib_ok=yes
- else
- syspnglib_ok=no
fi])
fi
-#AC_MSG_WARN("*** USING LIB OK : $syspnglib_ok")
# The following is executed if the lib was not found usable or if local lib is required explicitly
if test x$enable_localpng = xyes -o x$syspnglib_ok = xno ; then
-# ac_cv_lib_png_png_set_tRNS_to_alpha=yes
+ PNGINC="-I../png"
+ PNG="png"
+ IMAGELIBS="-lfltk_png $IMAGELIBS"
AC_DEFINE(HAVE_LIBPNG)
AC_DEFINE(HAVE_PNG_H)
AC_DEFINE(HAVE_PNG_GET_VALID)
AC_DEFINE(HAVE_PNG_SET_TRNS_TO_ALPHA)
- PNGINC="-I../png"
- PNG="png"
- IMAGELIBS="-lfltk_png $IMAGELIBS"
-# AC_MSG_WARN("*** USING PNG LOCAL SETUP")
else
PNGINC=""
PNG=""
@@ -619,7 +614,6 @@ else
AC_DEFINE(HAVE_LIBPNG)
AC_CHECK_LIB(png,png_get_valid, AC_DEFINE(HAVE_PNG_GET_VALID))
AC_CHECK_LIB(png,png_set_tRNS_to_alpha, AC_DEFINE(HAVE_PNG_SET_TRNS_TO_ALPHA))
-# AC_MSG_WARN("*** USING PNG LIB SETUP")
fi
AC_SUBST(JPEG)
diff --git a/test/Makefile b/test/Makefile
index 5380661af..d341970e2 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -94,8 +94,8 @@ CPPFILES =\
tile.cxx \
tiled_image.cxx \
valuators.cxx \
- utf8.cxx
-
+ utf8.cxx \
+ utf8c.cxx
ALL = \
unittests$(EXEEXT) \
adjuster$(EXEEXT) \
@@ -156,7 +156,8 @@ ALL = \
tiled_image$(EXEEXT) \
valuators$(EXEEXT) \
cairotest$(EXEEXT) \
- utf8$(EXEEXT)
+ utf8$(EXEEXT) \
+ utf8c$(EXEEXT)
GLALL = \