1 dnl Process this file with autoconf to produce a configure script.
5 AC_INIT(pspp, 0.4.2,bug-gnu-pspp@gnu.org)
6 AC_CONFIG_HEADERS([config.h])
9 dnl Checks for programs.
16 PSPP_ENABLE_WARNING(-Wdeclaration-after-statement)
18 AM_CONDITIONAL(cc_is_gcc, test x"$GCC" = x"yes" )
23 dnl Internationalization macros.
25 AM_GNU_GETTEXT_VERSION([0.14.5])
27 dnl Checks for libraries.
32 AM_CONDITIONAL(WITHCHARTS, test x"$with_libplot" != x"no")
35 AC_ARG_WITH(gui, [ --without-gui don't build the PSPPIRE gui])
37 if test x"$with_gui" != x"no" ; then
38 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6.0)
39 PKG_CHECK_MODULES(GLADE, libglade-2.0)
41 AM_CONDITIONAL(WITHGUI, test x"$with_gui" != x"no")
45 AC_CHECK_LIB(gslcblas,main,,[PSPP_REQUIRED_PREREQ([libgslcblas])])
46 AC_CHECK_LIB(gsl, gsl_cdf_chisq_Q,,[PSPP_REQUIRED_PREREQ([libgsl (version 1.4 or later)])])
48 AC_CHECK_LIB(ncurses, tgetent)
49 AC_CHECK_HEADERS(termcap.h)
53 dnl Checks for header files.
54 AC_CHECK_HEADERS([limits.h memory.h sys/stat.h sys/time.h sys/types.h \
55 fpu_control.h sys/mman.h sys/wait.h ieeefp.h fenv.h] )
63 dnl Dont use AC_TYPE_OFF_T --- it doesnt generate the HAVE_TYPE macro
65 AC_CHECK_SIZEOF(float, 0)
66 AC_CHECK_SIZEOF(double, 8)
67 AC_CHECK_SIZEOF(long double, 0)
69 AC_DEFINE(FPREP_IEEE754, 1,
70 [Define for machines that have IEEE 754 floating point arithmetic,
71 the most common format today.])
76 AC_CHECK_FUNCS([__setfpucw isinf isnan finite getpid feholdexcept round trunc])
81 AM_CONDITIONAL(unix, test x"$host_os" != x"msdos" )
82 AM_CONDITIONAL(msdos, test x"$host_os" = x"msdos" )
84 dnl This is needed otherwise --with-included-gettext fails
85 AH_BOTTOM([#include <locale.h>])
87 AC_ARG_ENABLE(debug, [ --enable-debug Turn on diagnostic features in the program])
88 if test x"$enable_debug" = x"yes" ; then
89 AC_DEFINE(DEBUGGING, 1, [Define to 1 if debugging is enabled.])
94 AC_CONFIG_FILES([Makefile gl/Makefile intl/Makefile po/Makefile.in])
98 dnl configure.ac ends here