summaryrefslogtreecommitdiffstats
path: root/configure.in.in
blob: 70485d443d69385890199d105c23d74ee4b560be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#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 <barcode.h> 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 <kjs/interpreter.h> 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