dnl Process this file with autoconf to produce a configure script. AC_INIT AC_PREREQ(2.54) AC_CONFIG_SRCDIR([authmsql.c]) AC_CONFIG_HEADER(config.h) dnl Checks for programs. AC_PROG_CC dnl Checks for libraries. dnl Checks for header files. AC_CHECK_HEADERS(unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_STRUCT_TM dnl Checks for library functions. AC_HEADER_STDC dnl Check functions AC_CHECK_FUNCS(memmove) AC_ARG_WITH(msqlpath, AC_HELP_STRING([--with-msqlpath], [specify the top level of the msql installation tree. (default is /usr/local/Hughes)]), msqltop=$withval, msqltop=/usr/local/Hughes ) AC_MSG_CHECKING([for msql in directory $msqltop]) if test "X$msqltop" = "X" then AC_MSG_RESULT([no]) AC_MSG_ERROR([msql directory not specified]) fi if test -d $msqltop then AC_MSG_RESULT([yes]) CFLAGS="$CFLAGS -I$msqltop/include" LIBS="$LIBS $msqltop/lib/libmsql.a" else AC_MSG_RESULT([no]) AC_MSG_ERROR([msql directory not found!]) fi AC_CONFIG_FILES([Makefile]) AC_OUTPUT