#MIN_CONFIG(3.0.0) KDE_ENABLE_HIDDEN_VISIBILITY AM_INIT_AUTOMAKE(kbarcode, 2.0.7) AC_C_BIGENDIAN AC_CHECK_KDEMAXPATHLEN AC_ARG_WITH(native-gnu-barcode, AC_HELP_STRING([--without-native-gnu-barcode],[disable build with GNU Barcode [default=auto]]), [with_native_gnu_barcode=$withval], [with_native_gnu_barcode=auto] ) if test "$with_native_gnu_barcode" != "no"; then KDE_CHECK_HEADERS([barcode.h], [have_gnu_barcode="yes"], [have_gnu_barcode=no]) if test "$have_gnu_barcode" = "yes"; then AC_DEFINE(_ENABLE_NATIVE_GNU_BARCODE, 1, [Define to 1 if you have header file.]) else if test "$with_native_gnu_barcode" = "yes"; then echo "Barcode is requested, but GNU Barcode header was not found on your system" exit fi fi fi AC_ARG_WITH(javascript, AC_HELP_STRING([--without-javascript],[build KBarcode without javascript interpreter [default=auto]]), [with_javascript=$withval], [with_javascript=auto] ) if test "$with_javascript" != "no"; then KDE_CHECK_HEADERS([kjs/interpreter.h], [have_javascript="yes"], [have_javascript=no]) if test "$have_javascript" = "yes"; then AC_DEFINE(USE_JAVASCRIPT, 1, [Define to 1 if you have header file.]) AC_DEFINE(NO_KJS_EMBED, 1, [Define to 1 for use tdelibs javascript interpreter]) else if test "$with_javascript" = "yes"; then echo "Javascript interpreter is requested, but tdelibs Javascript header (kjs) was not found on your system" exit fi fi fi