dnl Process this file with autoconf to produce a configure script. dnl Initialise. This can be passed any old file. AC_INIT(hey_arg.h) AC_CONFIG_HEADER(config.h) dnl Checks for programs. AC_PROG_CC dnl dnl if the user hasn't specified CFLAGS, then dnl if compiler is gcc, then use -O2 and some warning flags dnl else use os-specific flags or -O dnl if test -n "$GCC"; then CFLAGS="-O2 -Wall -pedantic" else case "$host_os" in *hpux*) CFLAGS=" +O3" ;; *ultrix* | *osf*) CFLAGS=" -O -Olimit 2000" ;; *) CFLAGS=" -O" ;; esac fi AC_PROG_INSTALL AC_PROG_MAKE_SET dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(utmpx.h) dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for library functions. AC_TYPE_SIGNAL AC_FUNC_VPRINTF AC_CHECK_FUNCS(strdup,,STRDUP_OBJ=mystrdup.o) AC_CHECK_FUNCS(getutent,,UT_OBJ=utent.o) AC_CHECK_LIB(readline,readline) dnl Make any macro substitutions that we ought to. AC_SUBST(UT_OBJ) AC_OUTPUT(Makefile)