version 1.2 | | version 1.3 |
---|
| | |
dnl Process this file with autoconf to produce a configure script. | | dnl Process this file with autoconf to produce a configure script. |
| | |
AC_REVISION($Id: configure.in,v 1.2 1999/06/05 05:34:02 cvs Exp $) | | AC_REVISION($Id: configure.in,v 1.3 1999/06/19 20:45:18 cvs Exp $) |
| | |
AC_INIT(CREDITS) | | AC_INIT(CREDITS) |
| | |
| | |
AC_PROG_MAKE_SET | | AC_PROG_MAKE_SET |
AC_PROG_RANLIB | | AC_PROG_RANLIB |
| | |
| | AC_ARG_ENABLE(old-layout, [ --enable-old-layout Use the old (0.95.3 and earlier) install layout], |
| | old_layout=yes, old_layout=no) |
| | |
| | |
| | |
dnl check for some other programs | | dnl check for some other programs |
AC_PATH_PROG(MKDIR, mkdir) | | AC_PATH_PROG(MKDIR, mkdir) |
AC_PATH_PROG(TAR, tar) | | AC_PATH_PROG(TAR, tar) |
| | |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| | |
nprefix=`eval echo ${prefix}` | | nprefix=`eval echo ${prefix}` |
| | |
| | if eval "test x$old_layout = xyes"; then |
ndatadir=`eval echo ${datadir}` | | ndatadir=`eval echo ${datadir}` |
nlocaldir=`eval echo ${localstatedir}` | | nlocaldir=`eval echo ${localstatedir}` |
| | else |
| | echo "" |
| | echo "If you are upgrading an 0.95.3 or earlier release, you may want to use" |
| | echo "--enable-old-layout to use the same install directories" |
| | echo "" |
| | ndatadir=`eval echo ${datadir}`/crossfire |
| | nlocaldir=`eval echo ${localstatedir}`/crossfire |
| | fi |
| | |
| | |
dnl Have to do this one twice, since it uses two levels of indirection | | dnl Have to do this one twice, since it uses two levels of indirection |
| | |
| | |
AC_DEFINE_UNQUOTED(DATADIR, "${ndatadir}") | | AC_DEFINE_UNQUOTED(DATADIR, "${ndatadir}") |
AC_DEFINE_UNQUOTED(LOCALDIR, "${nlocaldir}") | | AC_DEFINE_UNQUOTED(LOCALDIR, "${nlocaldir}") |
| | |
| | datadir=${ndatadir} |
| | localstatedir=${nlocaldir} |
| | |
AC_OUTPUT(Makefile | | AC_OUTPUT(Makefile |
crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile | | crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile |