Enlightenment CVS committal Author : titan Project : e17 Module : apps/ephoto
Dir : e17/apps/ephoto Modified Files: configure.in Log Message: Rework some of the autofoo that goes along with making exif optional. =================================================================== RCS file: /cvs/e/e17/apps/ephoto/configure.in,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- configure.in 16 Mar 2007 04:40:05 -0000 1.5 +++ configure.in 16 Mar 2007 05:56:00 -0000 1.6 @@ -67,25 +67,25 @@ packagesrcdir=`cd $srcdir && pwd` AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source code directory]) -AC_CHECK_HEADERS(sqlite3.h, - SQLITE_LIBS="$SQLITE_LIBS -lsqlite3", - AC_MSG_ERROR([Ephoto needs sqlite3 to compile.]) - ) -AC_SUBST(SQLITE_LIBS) +PKG_CHECK_MODULES([SQLITE], sqlite3, + [ + have_sqlite3="Yes" + ], + [ + have_sqlite3="No" + AC_MSG_ERROR([Ephoto needs sqlite3 to compile.]) + ] +) -if pkg-config --exists sqlite3; then - have_sqlite3="Yes" -else - have_sqlite3="No" - AC_MSG_ERROR([Ephoto needs sqlite3 to compile.]) -fi - -if pkg-config --exists 'libexif >= 0.6.13'; then - have_exif="Yes" - AC_DEFINE(BUILD_EXIF_SUPPORT, 1, [Enable Exif Support]) -else - have_exif="No" -fi +PKG_CHECK_MODULES([EXIF], libexif >= 0.6.13, + [ + have_exif="Yes" + AC_DEFINE(BUILD_EXIF_SUPPORT, 1, [Enable Exif Support]) + ], + [ + have_exif="No" + ] +) PROG="evas-config"; AC_PATH_PROG(EVAS_CONFIG, $PROG, "", $PATH) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs