7 dnl Check programs needed
10 dnl ensure libtool is installed
11 AC_PATH_PROG(LIBTOOL, libtool,,)
12 if test "$LIBTOOL" = ""; then
14 echo 'FATAL ERROR: libtool does not seem to be installed.'
15 echo $pkg_name cannot be built without a working libtool installation.
20 # Config CFLAGS settings
26 if test "${GCC}" = "yes"; then
27 CFLAGS="$CFLAGS -I/usr/include -D_LINUX_SOURCE_COMPAT"
29 CFLAGS="-D_LINUX_SOURCE_COMPAT"
33 if test "${GCC}" = "yes"; then
45 # Config LDLAGS settings
51 LDFLAGS="-Wl,-G,-bexpall,-bnoentry"
62 #################################################
63 # Check to see if we should use the included popt
65 AC_ARG_WITH(included-popt,
66 [ --with-included-popt use bundled popt library, not from system],
77 if test x"$INCLUDED_POPT" != x"yes"; then
78 AC_CHECK_LIB(popt, poptGetContext,
79 INCLUDED_POPT=no, INCLUDED_POPT=yes)
82 AC_MSG_CHECKING(whether to use included popt)
83 if test x"$INCLUDED_POPT" = x"yes"; then
84 AC_MSG_RESULT($srcdir/popt)
85 CFLAGS="$CFLAGS -I../../source/popt"
90 CFLAGS="$CFLAGS -I../../source -I../../source/include -I../../source/ubiqx -I../../source/smbwrapper"