]> git.ipfire.org Git - thirdparty/newt.git/blame - configure.ac
don't use va_list in newtvwindow more than once (#523696)
[thirdparty/newt.git] / configure.ac
CommitLineData
ad1ae0b1 1AC_INIT([newt_pr.h])
2
3PACKAGE=newt
e271d0b0 4VERSION=$(awk '/^Version: / {print $2}' $srcdir/newt.spec)
ad1ae0b1 5SONAME=0.52
6
7AC_CONFIG_HEADER([config.h])
8
9AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Package Name])
10AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [NEWT Version String])
11AC_SUBST([VERSION])
12AC_SUBST([SONAME])
13AC_PROG_CC
14AC_PROG_INSTALL
15AC_PROG_LN_S
16
17AC_CHECK_HEADERS([sys/select.h alloca.h])
18
19AC_MSG_CHECKING([for python versions])
20PYTHONVERS=$(echo /usr/include/python*/Python.h | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null)
21AC_MSG_RESULT([$PYTHONVERS])
22AC_SUBST([PYTHONVERS])
23
24AC_ARG_WITH([tcl], [ --without-tcl do not compile whiptcl.so])
25if test "x$with_tcl" = "xno"; then
26 WHIPTCLSO=
27else
28 AC_CHECK_HEADER([tcl.h], [WHIPTCLSO=whiptcl.so], [WHIPTCLSO=])
29fi
30AC_SUBST([WHIPTCLSO])
31
32AC_ARG_WITH([gpm-support], [ --with-gpm-support compile with GPM support])
33
34if test "x$with_gpm_support" = "xyes"; then
35 AC_DEFINE([USE_GPM], 1, [Define to 1 if GPM support is enabled])
36fi
37
970ce9d5 38AC_ARG_ENABLE([nls], [ --disable-nls compile without NLS support])
39
40if test "x$enable_nls" != "xno"; then
41 AC_DEFINE([ENABLE_NLS], 1, [Define to 1 if NLS support is enabled])
42fi
43
ad1ae0b1 44AC_CONFIG_FILES([Makefile])
45AC_OUTPUT
46