libs-base/Source/mframe/configure.ac

84 lines
2.9 KiB
Text
Raw Permalink Normal View History

# 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
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
AC_INIT
AC_CONFIG_SRCDIR([mframe.head])
#--------------------------------------------------------------------
# Use config.guess, config.sub and install-sh provided by gnustep-make
#--------------------------------------------------------------------
AC_CONFIG_AUX_DIR($GNUSTEP_MAKEFILES)
#--------------------------------------------------------------------
# Determine the host, build, and target systems
#--------------------------------------------------------------------
AC_CANONICAL_TARGET([])
dnl Checking CPU and Operating-System information for mframe.h
case "$target_cpu" in
alpha*) target_cpu=alpha;;
hppa*) target_cpu=hppa;;
i[[3456]]86*) target_cpu=i386;;
sparc*) target_cpu=sparc;;
esac
case "$target_os" in
freebsd*) target_os=freebsd;;
openbsd*) target_os=openbsd;;
darwin*) target_os=darwin;;
esac
if test -d $target_cpu -a "`echo $target_cpu/*`" != "$target_cpu/*"
then
my_dir=$target_cpu
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
echo Using information from $my_path.
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
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
AC_OUTPUT