dnl Process this file with autoconf to produce a configure script. dnl dnl Copyright (c) 1999, by Carlo Wood dnl Make sure we are in the correct directory (someone could have run dnl 'configure' with a wrong '--srcdir') AC_INIT(Makedefs.h.dist.in) dnl Use a previous installation path previous installation is detected [ if [ -n "$PROTODIR" ]; then if [ "$datadir" = "\${prefix}/share" ] && expr "$PROTODIR" : ".*/prototype" >/dev/null; then datadir=`echo "$PROTODIR" | sed -e 's/\/prototype$//'` fi MAKEPROTO=`which --skip-alias --skip-dot makeproto` if [ "$?" = "0" -a -n "$MAKEPROTO" ] && expr "$MAKEPROTO" : ".*/bin/makeproto" >/dev/null; then ac_default_prefix=`echo "$MAKEPROTO" | sed -e 's/\/bin\/makeproto$//'` else ac_default_prefix=`echo "$PROTODIR" | sed -e 's/\/share$//'` fi fi ] dnl Demand at least version 2.x of autoconf AC_PREREQ(2.0) dnl Test for programs AC_PROG_INSTALL AC_PATH_PROG(BASH, bash) AC_PATH_PROG(RM, rm) AC_PATH_PROG(AR, ar) AC_PATH_PROG(MV, mv) AC_PATH_PROG(CHMOD, chmod) AC_PATH_PROG(TOUCH, touch) AC_PATH_PROG(TEST, test) AC_PATH_PROG(GMAKE, gmake) AC_PROG_RANLIB dnl The current version proto_version=1.10 AC_SUBST(proto_version) dnl Finally really generate all output files AC_OUTPUT([Makefile Makedefs.h.dist prototype.lsm prototype.spec], ,) [ eval datarootdir="$datadir" eval echo "prefix=\\\"$prefix\\\" and datadir=\\\"$datarootdir\\\"" if TMP=`make -version 2>/dev/null` && expr "$TMP" : "GNU Make" >/dev/null; then GMAKE=make fi if test -w "$prefix/bin" -a -w "$datadir"; then echo "Now type '$GMAKE install'"; else echo "Now type '$GMAKE install' as root"; fi ]