1997-09-16 01:07:48 +00:00
|
|
|
AC_INIT(application.make)
|
|
|
|
|
|
|
|
#
|
|
|
|
# configure.in
|
|
|
|
#
|
|
|
|
# Copyright (C) 1997 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Author: Scott Christley <scottc@net-community.com>
|
1997-10-25 03:53:00 +00:00
|
|
|
# Ovidiu Predescu <ovidiu@net-community.com>
|
1997-09-16 01:07:48 +00:00
|
|
|
#
|
|
|
|
# This file is part of the GNUstep Makefile Package.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public
|
|
|
|
# License along with this library; see the file COPYING.LIB.
|
|
|
|
# If not, write to the Free Software Foundation,
|
|
|
|
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
1997-10-03 21:12:56 +00:00
|
|
|
AC_CONFIG_HEADER(config.h)
|
|
|
|
|
1997-09-16 01:07:48 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# The GNUstep root directory.
|
1997-09-22 22:49:02 +00:00
|
|
|
# The user should have the GNUSTEP_SYSTEM_ROOT environment variable
|
|
|
|
# defined, but if not then we have a global default.
|
1997-09-16 01:07:48 +00:00
|
|
|
#--------------------------------------------------------------------
|
1997-09-22 22:49:02 +00:00
|
|
|
AC_PREFIX_DEFAULT(`if test "x$GNUSTEP_SYSTEM_ROOT" = "x"; then
|
1997-09-16 01:07:48 +00:00
|
|
|
echo /usr/GNUstep ;
|
|
|
|
else
|
1997-09-22 22:49:02 +00:00
|
|
|
echo $GNUSTEP_SYSTEM_ROOT ;
|
1997-09-16 01:07:48 +00:00
|
|
|
fi`)
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Determine the host, build, and target systems
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Find the binary and compile tools
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_RANLIB
|
1997-10-03 22:02:27 +00:00
|
|
|
|
1997-10-03 21:12:56 +00:00
|
|
|
AC_PROG_INSTALL
|
1997-10-03 22:02:27 +00:00
|
|
|
# HOST_INSTALL is the name of the install program in config.make so set it up
|
|
|
|
# to point to the install-sh script in the GNUstep tree if no system install is
|
|
|
|
# found.
|
|
|
|
AC_SUBST(HOST_INSTALL)
|
|
|
|
if test "$INSTALL" = "$ac_install_sh"; then
|
|
|
|
HOST_INSTALL=$prefix/Makefiles/$INSTALL
|
|
|
|
else
|
|
|
|
HOST_INSTALL=$INSTALL
|
|
|
|
fi
|
|
|
|
|
1997-09-16 01:07:48 +00:00
|
|
|
AC_LN_S
|
|
|
|
|
1997-09-18 01:36:07 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Find for X windows
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
AC_PATH_X
|
|
|
|
X_INCLUDE=""
|
|
|
|
if test -n "$x_includes"; then
|
|
|
|
X_INCLUDE="-I$x_includes"
|
|
|
|
fi
|
|
|
|
X_LIBS=""
|
|
|
|
if test -n "$x_libraries"; then
|
|
|
|
X_LIBS="-L$x_libraries"
|
|
|
|
fi
|
1997-10-13 19:38:12 +00:00
|
|
|
if test -r $x_includes/X11/DPS; then
|
|
|
|
X_INCLUDE="$X_INCLUDE -I$x_includes/X11"
|
|
|
|
fi
|
1997-09-18 01:36:07 +00:00
|
|
|
|
|
|
|
AC_SUBST(X_INCLUDE)
|
|
|
|
AC_SUBST(X_LIBS)
|
|
|
|
|
1997-10-03 21:12:56 +00:00
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HAVE_HEADERS(sys/param.h sys/file.h dir.h string.h stdlib.h sys/types.h dnl
|
|
|
|
sys/stat.h sys/errno.h)
|
|
|
|
|
1997-10-02 01:29:16 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Setup the library combination
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
AC_ARG_WITH(library-combo,[
|
|
|
|
|
|
|
|
--with-library-combo
|
|
|
|
Define the default library combinations that will be used when you type
|
|
|
|
'make'. You can still change the library combination at runtime by
|
|
|
|
specifying the 'library_combo' make variable. For example:
|
|
|
|
|
1997-10-29 16:27:45 +00:00
|
|
|
$ make library_combo=nx-pdo-nx-nil
|
1997-10-02 01:29:16 +00:00
|
|
|
],
|
|
|
|
ac_cv_library_combo=$withval,
|
|
|
|
ac_cv_library_combo=$withval
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ac_cv_library_combo" = ""; then
|
1997-10-03 21:12:56 +00:00
|
|
|
if test $host_os = nextstep4; then
|
1997-10-29 16:27:45 +00:00
|
|
|
ac_cv_library_combo=nx-nx-nx-nil
|
1997-10-03 21:12:56 +00:00
|
|
|
else
|
1997-10-30 22:43:44 +00:00
|
|
|
ac_cv_library_combo=gnu-gnu-gnu-xdps
|
1997-10-03 21:12:56 +00:00
|
|
|
fi
|
1997-10-02 01:29:16 +00:00
|
|
|
fi
|
|
|
|
AC_SUBST(ac_cv_library_combo)
|
|
|
|
|
1997-09-16 01:07:48 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Produce the output files
|
|
|
|
#--------------------------------------------------------------------
|
1997-10-28 03:13:18 +00:00
|
|
|
AC_OUTPUT(config.h config.make openapp debugapp GNUmakefile GNUstep.sh)
|