54 lines
1.1 KiB
Plaintext
54 lines
1.1 KiB
Plaintext
dnl
|
|
dnl configure.in -- Process this file with autoconf to produce a configure script.
|
|
dnl
|
|
dnl $Header$
|
|
dnl
|
|
|
|
AC_INIT(petidomo.h)
|
|
|
|
dnl Print the standard OSSP.
|
|
dnl
|
|
dnl AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)
|
|
V=`./shtool version -lc -dlong version.c`
|
|
./shtool echo -e "Configuring %BOSSP Petidomo%b, Version %B${V}%b"
|
|
dnl AC_DIVERT_POP()
|
|
|
|
dnl Get rid of the lousy -g and -O defaults in CFLAGS.
|
|
dnl
|
|
CFLAGS=${CFLAGS:-}
|
|
|
|
dnl Checks for paths and programs.
|
|
dnl
|
|
AC_PROG_CC
|
|
AC_PROG_RANLIB
|
|
AC_PROG_LEX
|
|
if test "$LEX" != "flex"; then
|
|
AC_MSG_WARN($LEX might not work for us. Please install flex if the build fails.)
|
|
fi
|
|
AC_PROG_YACC
|
|
if test "$YACC" != "bison -y"; then
|
|
AC_MSG_WARN($YACC might not work for us. Please install bison if the build fails.)
|
|
fi
|
|
|
|
dnl Find out what sizes the types have.
|
|
dnl
|
|
AC_CHECK_SIZEOF(unsigned short, 2)
|
|
AC_CHECK_SIZEOF(unsigned int, 4)
|
|
AC_CHECK_SIZEOF(unsigned long, 4)
|
|
|
|
dnl Checks for typedefs
|
|
dnl
|
|
AC_CHECK_TYPE(ssize_t, long)
|
|
|
|
dnl Set special flags for gcc.
|
|
dnl
|
|
if test "$GCC" = yes; then
|
|
CFLAGS="$CFLAGS -Wall -pedantic -pipe"
|
|
fi
|
|
|
|
dnl Write results.
|
|
dnl
|
|
AC_OUTPUT(Makefile)
|
|
AC_CONFIG_HEADERS(config.h)
|
|
|