1998-08-13 20:33:32 +00:00
|
|
|
# configure.in for mframe software
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
#
|
|
|
|
# Copyright (C) 1998 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
|
|
|
#
|
|
|
|
# This file is part of the GNUstep project
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with this library; if not, write to the Free
|
2005-05-22 03:32:16 +00:00
|
|
|
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
2002-05-02 15:17:54 +00:00
|
|
|
AC_INIT
|
|
|
|
AC_CONFIG_SRCDIR([mframe.head])
|
1998-08-13 20:33:32 +00:00
|
|
|
|
2002-01-09 14:14:24 +00:00
|
|
|
#--------------------------------------------------------------------
|
2002-01-09 14:31:45 +00:00
|
|
|
# Use config.guess, config.sub and install-sh provided by gnustep-make
|
2002-01-09 14:14:24 +00:00
|
|
|
#--------------------------------------------------------------------
|
2003-04-28 02:29:49 +00:00
|
|
|
AC_CONFIG_AUX_DIR($GNUSTEP_MAKEFILES)
|
2002-01-09 14:14:24 +00:00
|
|
|
|
1998-08-13 20:33:32 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Determine the host, build, and target systems
|
|
|
|
#--------------------------------------------------------------------
|
2002-05-02 15:17:54 +00:00
|
|
|
AC_CANONICAL_TARGET([])
|
1998-08-13 20:33:32 +00:00
|
|
|
|
|
|
|
dnl Checking CPU and Operating-System information for mframe.h
|
|
|
|
|
|
|
|
case "$target_cpu" in
|
2000-09-12 03:58:43 +00:00
|
|
|
alpha*) target_cpu=alpha;;
|
|
|
|
hppa*) target_cpu=hppa;;
|
|
|
|
i[[3456]]86*) target_cpu=i386;;
|
|
|
|
sparc*) target_cpu=sparc;;
|
1998-08-13 20:33:32 +00:00
|
|
|
esac
|
|
|
|
|
1999-02-02 00:08:58 +00:00
|
|
|
case "$target_os" in
|
|
|
|
freebsd*) target_os=freebsd;;
|
|
|
|
openbsd*) target_os=openbsd;;
|
2001-05-04 21:14:06 +00:00
|
|
|
darwin*) target_os=darwin;;
|
1999-02-02 00:08:58 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
|
2000-09-12 03:58:43 +00:00
|
|
|
if test -d $target_cpu -a "`echo $target_cpu/*`" != "$target_cpu/*"
|
1998-08-13 20:33:32 +00:00
|
|
|
then
|
2000-09-12 03:58:43 +00:00
|
|
|
my_dir=$target_cpu
|
1998-08-13 20:33:32 +00:00
|
|
|
else
|
|
|
|
echo '*************** Warning ****************'
|
|
|
|
echo The 'mframe' software has not been ported to $target_cpu.
|
|
|
|
echo Using information from unknown.
|
|
|
|
echo '****************************************'
|
|
|
|
my_dir=unknown
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -f $my_dir/$target_os
|
|
|
|
then
|
|
|
|
my_path=$my_dir/$target_os
|
1998-12-20 21:27:47 +00:00
|
|
|
echo Using information from $my_path.
|
1998-08-13 20:33:32 +00:00
|
|
|
else
|
|
|
|
echo '*************** Warning ****************'
|
|
|
|
echo The 'mframe' software has not been ported to $target_cpu-$target_os.
|
|
|
|
echo Using information from $my_dir/generic.
|
|
|
|
echo '****************************************'
|
|
|
|
my_path=$my_dir/generic
|
|
|
|
fi
|
|
|
|
|
1999-07-09 02:18:50 +00:00
|
|
|
rm -f mframe.h
|
|
|
|
echo "/***************** WARNING ****************" > mframe.h
|
|
|
|
echo "* DO NOT EDIT THIS FILE DIRECTLY - IT IS *" >> mframe.h
|
|
|
|
echo "* GENERATED AUTOMATICALLY BY THE CONFIG *" >> mframe.h
|
|
|
|
echo "* PROCESS IN THE 'mframe' SUBDIRECTORY. *" >> mframe.h
|
|
|
|
echo "****************** WARNING ***************/" >> mframe.h
|
|
|
|
cat mframe.head $my_path mframe.foot >> mframe.h
|
1998-08-13 20:33:32 +00:00
|
|
|
|
2002-05-02 15:17:54 +00:00
|
|
|
AC_OUTPUT
|