2000-02-18 21:02:44 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# runConfigureICU: This script will run the "configure" script for the appropriate platform
|
|
|
|
# Only supported platforms are recognized
|
|
|
|
|
|
|
|
usage()
|
|
|
|
{
|
|
|
|
echo "runConfigure: Helper script to run \"configure\" for one of the supported platforms"
|
2000-05-15 18:20:15 +00:00
|
|
|
echo "Usage: runConfigure \"<platform_name>\" [ args .. ] "
|
2000-02-18 21:02:44 +00:00
|
|
|
echo " where <platform is the platform you want"
|
|
|
|
echo " valid choices are :"
|
|
|
|
echo " 1. 'AIX4.1.5xlC' if you are using xlC on AIX4.1.5"
|
|
|
|
echo " 2. 'SOLARISCC' if you are using native CC compiler on Solaris"
|
|
|
|
echo " 3. 'SOLARISGCC' if you are using GNU C++ compiler on Solaris"
|
2000-05-02 23:12:53 +00:00
|
|
|
echo " 4. 'LinuxRedHat5.2 or LinuxRedHat6.0' if you are using GNU C++ compiler on Linux"
|
2000-02-18 21:02:44 +00:00
|
|
|
echo " 5. 'HP/UX10.2CC' if you are using native C++ compiler on HP-UX10.2"
|
|
|
|
echo " 6. 'HP/UX10.2ACC' if you are using Advanced C++ compiler on HP-UX10.2"
|
|
|
|
echo " 7. 'HP/UX11CC' if you are using native C++ compiler on HP-UX11"
|
|
|
|
echo " 8. 'HP/UX11ACC' if you are using Advanced C++ compiler on HP-UX11"
|
|
|
|
echo " 9. 'AIX4.3xlC' if you are using xlC on AIX4.3"
|
|
|
|
echo " 10. 'SOL2.7CC'if you are using native CC compiler on Solaris"
|
2000-04-07 22:24:08 +00:00
|
|
|
echo " 11. 'PTX' if you are using c++ on Dynix/PTX v4.5"
|
2000-05-15 18:20:15 +00:00
|
|
|
echo " 12. 'SOLARISX86' if you are using the native CC compiler on Solarisx86"
|
2000-06-28 22:18:27 +00:00
|
|
|
echo " 13. 'AIX4.3VA' if you are using VA compiler on AIX4.3"
|
2000-05-15 18:20:15 +00:00
|
|
|
echo
|
|
|
|
echo "Any other options will be passed on to configure. (see 'configure --help')"
|
2000-02-18 21:02:44 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if test ${1}o = "o"; then
|
|
|
|
usage
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $1 = "-h"; then
|
|
|
|
usage
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
platform=${1};
|
2000-05-15 18:20:15 +00:00
|
|
|
|
|
|
|
shift
|
|
|
|
|
2000-02-18 21:02:44 +00:00
|
|
|
rm -f config.cache
|
|
|
|
rm -f config.log
|
|
|
|
rm -f config.status
|
|
|
|
|
2000-06-22 23:08:13 +00:00
|
|
|
if test x$configure = x
|
|
|
|
then
|
|
|
|
if test -f ./configure
|
|
|
|
then
|
|
|
|
configuredir=.
|
|
|
|
else
|
|
|
|
configuredir=`echo $0 | sed 's,[^/]*$,,'`
|
|
|
|
if test x$configuredir = x$0
|
|
|
|
then
|
|
|
|
configuredir=.
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$configuredir = x
|
|
|
|
then
|
|
|
|
configuredir=.
|
|
|
|
fi
|
|
|
|
|
|
|
|
configure=$configuredir/configure
|
|
|
|
fi
|
|
|
|
|
2000-02-18 21:02:44 +00:00
|
|
|
case $platform in
|
|
|
|
AIX4.1.5xlC)
|
2000-07-05 17:09:11 +00:00
|
|
|
echo Running configure "$@" for AIX using xlC compiler ...
|
2000-02-18 21:02:44 +00:00
|
|
|
CC=/usr/lpp/xlC/bin/xlc; export CC
|
|
|
|
CXX=/usr/lpp/xlC/bin/xlC_r; export CXX
|
|
|
|
#CPPFLAGS=-I/usr/lpp/xlC/include; export CPPFLAGS
|
|
|
|
#LDFLAGS=-L/usr/lpp/xlC/lib; export LDFLAGS
|
2000-07-05 17:09:11 +00:00
|
|
|
$configure "$@" ;;
|
2000-02-18 21:02:44 +00:00
|
|
|
AIX4.3xlC)
|
2000-07-05 17:09:11 +00:00
|
|
|
echo Running configure "$@" for AIX using xlC compiler ...
|
2000-02-18 21:02:44 +00:00
|
|
|
CC=/usr/ibmcxx/bin/xlc; export CC
|
|
|
|
CXX=/usr/ibmcxx/bin/xlC_r; export CXX
|
|
|
|
#CPPFLAGS=-I/usr/lpp/xlC/include; export CPPFLAGS
|
|
|
|
#LDFLAGS=-L/usr/lpp/xlC/lib; export LDFLAGS
|
2000-10-14 02:06:18 +00:00
|
|
|
$configure "$@" ;;
|
2000-06-28 22:18:27 +00:00
|
|
|
AIX4.3VA)
|
2000-07-05 17:09:11 +00:00
|
|
|
echo Running configure "$@" for AIX using xlC compiler ...
|
2000-06-28 22:18:27 +00:00
|
|
|
CC=/usr/vacpp/bin/xlc; export CC
|
|
|
|
CXX=/usr/vacpp/bin/xlC_r; export CXX
|
|
|
|
#CPPFLAGS=-I/usr/lpp/xlC/include; export CPPFLAGS
|
|
|
|
#LDFLAGS=-L/usr/lpp/xlC/lib; export LDFLAGS
|
2000-07-05 17:09:11 +00:00
|
|
|
$configure "$@" ;;
|
2000-02-18 21:02:44 +00:00
|
|
|
SOLARISCC)
|
2000-07-05 17:09:11 +00:00
|
|
|
echo Running configure "$@" for SOLARIS using native CC compiler ...
|
2000-02-18 21:02:44 +00:00
|
|
|
CC=/usr/local/SUNWspro/bin/cc; export CC
|
|
|
|
CXX=/usr/local/SUNWspro/bin/CC; export CXX
|
2000-07-05 17:09:11 +00:00
|
|
|
$configure "$@" ;;
|
2000-02-18 21:02:44 +00:00
|
|
|
SOLARISGCC)
|
2000-07-05 17:09:11 +00:00
|
|
|
echo Running configure "$@" for Solaris using gcc compiler ...
|
2000-02-18 21:02:44 +00:00
|
|
|
CXXFLAGS=-I/usr/local/include/g++; export CXXFLAGS
|
2000-02-22 01:01:42 +00:00
|
|
|
LDFLAGS=-R/usr/local/lib; export LDFLAGS
|
2000-07-05 17:09:11 +00:00
|
|
|
$configure "$@" ;;
|
2000-02-18 21:02:44 +00:00
|
|
|
SOL2.7CC)
|
2000-07-05 17:09:11 +00:00
|
|
|
echo Running configure "$@" for SOLARIS2.7cc using native CC compiler
|
2000-02-18 21:02:44 +00:00
|
|
|
CC=/usr/local/SUNWspro/bin/cc; export CC
|
|
|
|
CXX=/usr/local/SUNWspro/bin/CC; export CXX
|
2000-07-05 17:09:11 +00:00
|
|
|
$configure "$@" ;;
|
2000-05-15 18:20:15 +00:00
|
|
|
|
|
|
|
SOLARISX86)
|
2000-07-28 17:50:05 +00:00
|
|
|
echo Running configure "$@" for SOLARISX86 using native CC compiler
|
2000-05-15 18:20:15 +00:00
|
|
|
CC=cc; export CC
|
|
|
|
CXX=CC; export CXX
|
|
|
|
CXX_FLAGS="-w -O";export CXX_FLAGS
|
|
|
|
C_FLAGS="-w -O";export C_FLAGS
|
|
|
|
LDFLAGS="-L -lCrun";export LDFLAGS
|
2000-07-05 17:09:11 +00:00
|
|
|
$configure "$@" ;;
|
2000-02-18 21:02:44 +00:00
|
|
|
|
2000-05-02 23:12:53 +00:00
|
|
|
LinuxRedHat*)
|
2000-07-05 17:09:11 +00:00
|
|
|
echo Running configure "$@" for Linux using gcc compiler ...
|
2000-02-18 21:02:44 +00:00
|
|
|
CXX=g++; export CXX
|
|
|
|
CC=gcc; export CC
|
|
|
|
CXXFLAGS=-g; export CXXFLAGS
|
|
|
|
CFLAGS=-g; export CFLAGS
|
2000-07-05 17:09:11 +00:00
|
|
|
$configure "$@" ;;
|
2000-02-18 21:02:44 +00:00
|
|
|
HP/UX10.2CC)
|
2000-07-05 17:09:11 +00:00
|
|
|
echo Running configure "$@" for HP10.2 using native CC compiler ...
|
2000-02-18 21:02:44 +00:00
|
|
|
CC=cc; export CC
|
|
|
|
CXX=CC; export CXX
|
2000-07-05 17:09:11 +00:00
|
|
|
$configure "$@" ;;
|
2000-02-18 21:02:44 +00:00
|
|
|
HP/UX10.2ACC)
|
2000-07-05 17:09:11 +00:00
|
|
|
echo Running configure "$@" for HP10.2 using aCC compiler ...
|
2000-02-18 21:02:44 +00:00
|
|
|
CC=cc; export CC
|
|
|
|
CXX=aCC; export CXX
|
2000-07-05 17:09:11 +00:00
|
|
|
$configure "$@" ;;
|
2000-02-18 21:02:44 +00:00
|
|
|
HP/UX11CC)
|
2000-07-05 17:09:11 +00:00
|
|
|
echo Running configure "$@" for HP11 using native CC compiler ...
|
2000-02-18 21:02:44 +00:00
|
|
|
CC=cc; export CC
|
|
|
|
CXX=/opt/CC/bin/CC; export CXX
|
2000-07-05 17:09:11 +00:00
|
|
|
$configure "$@" ;;
|
2000-02-18 21:02:44 +00:00
|
|
|
HP/UX11ACC)
|
2000-07-05 17:09:11 +00:00
|
|
|
echo Running configure "$@" for HP11 using aCC compiler ...
|
2000-02-18 21:02:44 +00:00
|
|
|
CC=cc; export CC
|
|
|
|
CXX=/opt/aCC/bin/aCC; export CXX
|
2000-07-05 17:09:11 +00:00
|
|
|
$configure "$@" ;;
|
2000-04-07 22:24:08 +00:00
|
|
|
PTX)
|
2000-07-05 17:09:11 +00:00
|
|
|
echo Running configure "$@" for PTX using c++ compiler ...
|
2000-04-07 22:24:08 +00:00
|
|
|
CC=cc; export CC
|
|
|
|
CXX=c++; export CXX
|
|
|
|
if test ${XMLINSTALL}o = "o"; then
|
|
|
|
XMLINSTALL=/usr/local; export XMLINSTALL
|
|
|
|
fi
|
2000-07-05 17:09:11 +00:00
|
|
|
$configure --prefix=$XMLINSTALL "$@" ;;
|
2000-02-18 21:02:44 +00:00
|
|
|
*)
|
|
|
|
echo I do not recognize the option \"$platform\". Please type ${0} -h for help.
|
|
|
|
exit 0;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo If the result of the above commands look OK to you, go to the directory
|
2000-11-30 19:04:05 +00:00
|
|
|
echo $icu/source to build the icu.
|
|
|
|
|