2000-02-18 21:02:44 +00:00
|
|
|
#!/bin/sh
|
2006-01-30 05:47:05 +00:00
|
|
|
# Copyright (c) 1999-2006, International Business Machines Corporation and
|
2002-12-06 01:40:42 +00:00
|
|
|
# others. All Rights Reserved.
|
2000-02-18 21:02:44 +00:00
|
|
|
|
|
|
|
# runConfigureICU: This script will run the "configure" script for the appropriate platform
|
|
|
|
# Only supported platforms are recognized
|
|
|
|
|
2001-04-18 03:06:43 +00:00
|
|
|
me=`basename $0`
|
2002-03-08 00:25:53 +00:00
|
|
|
OPTS=
|
2001-04-18 03:06:43 +00:00
|
|
|
|
2000-02-18 21:02:44 +00:00
|
|
|
usage()
|
|
|
|
{
|
2001-04-18 03:06:43 +00:00
|
|
|
ec=0$1
|
|
|
|
if test $ec -eq 0
|
|
|
|
then
|
|
|
|
uletter=U
|
|
|
|
else
|
2002-05-10 15:54:01 +00:00
|
|
|
uletter=u
|
2001-04-18 03:06:43 +00:00
|
|
|
fi
|
2002-05-10 15:54:01 +00:00
|
|
|
|
2001-04-18 03:06:43 +00:00
|
|
|
echo "${uletter}sage: $me [ -h, --help ] [ --enable-debug | --disable-release ] platform [ configurearg ... ]"
|
|
|
|
if test $ec -eq 0
|
|
|
|
then
|
2002-05-10 15:54:01 +00:00
|
|
|
cat <<EOE
|
2000-02-18 21:02:44 +00:00
|
|
|
|
2001-04-18 03:06:43 +00:00
|
|
|
Options: -h, --help Print this message and exit
|
2002-05-10 15:54:01 +00:00
|
|
|
--enable-debug Enable support for debugging
|
|
|
|
--disable-release Disable presetting optimization flags
|
2001-04-18 03:06:43 +00:00
|
|
|
|
|
|
|
The following names can be supplied as the argument for platform:
|
|
|
|
|
2005-03-15 18:20:10 +00:00
|
|
|
AIX Use the IBM Visual Age xlc_r/xlC_r compilers on AIX
|
|
|
|
AIX/GCC Use the GNU gcc/g++ compilers on AIX
|
|
|
|
BeOS Use the GNU gcc/g++ compilers on BeOS
|
|
|
|
Cygwin Use the GNU gcc/g++ compilers on Cygwin
|
|
|
|
Cygwin/MSVC Use the Microsoft Visual C++ compiler on Cygwin
|
2005-05-18 17:28:59 +00:00
|
|
|
Cygwin/ICL Use the Intel C++ compiler on Cygwin
|
2005-03-15 18:20:10 +00:00
|
|
|
FreeBSD Use the GNU gcc/g++ compilers on Free BSD
|
|
|
|
HP-UX/ACC Use the HP ANSI C/Advanced C++ compilers on HP-UX 11
|
|
|
|
Linux Use the GNU gcc/g++ compilers on Linux
|
|
|
|
Linux/ECC Use the Intel ECC compiler on Linux
|
2005-05-13 17:53:09 +00:00
|
|
|
Linux/ICC6 Use the Intel ICC 6 and older compilers on Linux
|
2005-03-15 18:20:10 +00:00
|
|
|
Linux/ICC Use the Intel ICC compiler on Linux
|
|
|
|
Linux/VA Use the IBM Visual Age compiler on Power PC Linux
|
|
|
|
MacOSX Use the GNU gcc/g++ compilers on MacOS X (Darwin)
|
|
|
|
QNX Use the QNX QCC compiler on QNX/Neutrino
|
|
|
|
Solaris Use the Sun cc/CC compilers on Solaris
|
|
|
|
Solaris/GCC Use the GNU gcc/g++ compilers on Solaris
|
|
|
|
SolarisX86 Use the Sun cc/CC compilers on Solaris x86
|
|
|
|
TRU64V5.1/CXX Use the Compaq cxx compiler on Tru64 (OSF)
|
|
|
|
zOS Use the IBM cxx compiler on z/OS (os/390)
|
|
|
|
zOSV1R2 Use the IBM cxx compiler for z/OS 1.2
|
|
|
|
OS390V2R10 Use the IBM cxx compiler for OS/390 2.10
|
2001-04-18 03:06:43 +00:00
|
|
|
EOE
|
|
|
|
fi
|
2000-02-18 21:02:44 +00:00
|
|
|
|
2001-04-18 03:06:43 +00:00
|
|
|
exit $ec
|
|
|
|
}
|
2000-05-15 18:20:15 +00:00
|
|
|
|
2001-04-18 03:06:43 +00:00
|
|
|
# Parse arguments
|
|
|
|
|
|
|
|
platform=
|
|
|
|
debug=0
|
|
|
|
release=1
|
|
|
|
|
|
|
|
while test $# -ne 0
|
|
|
|
do
|
|
|
|
case "$1" in
|
2001-07-06 01:21:59 +00:00
|
|
|
-h|--help)
|
|
|
|
usage 0
|
|
|
|
;;
|
|
|
|
--enable-debug)
|
|
|
|
debug=1
|
2003-10-16 21:08:31 +00:00
|
|
|
OPTS="$OPTS --enable-debug"
|
2001-07-06 01:21:59 +00:00
|
|
|
;;
|
|
|
|
--disable-release)
|
|
|
|
release=0
|
2003-10-16 21:08:31 +00:00
|
|
|
OPTS="$OPTS --disable-release"
|
2001-07-06 01:21:59 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
platform="$1"
|
|
|
|
shift
|
|
|
|
break
|
|
|
|
;;
|
2001-04-18 03:06:43 +00:00
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
|
|
|
if test x$platform = x
|
|
|
|
then
|
|
|
|
usage 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Go.
|
2000-05-15 18:20:15 +00:00
|
|
|
|
2000-02-18 21:02:44 +00:00
|
|
|
rm -f config.cache
|
|
|
|
rm -f config.log
|
|
|
|
rm -f config.status
|
|
|
|
|
2001-05-25 18:00:38 +00:00
|
|
|
DEBUG_CFLAGS='-g'
|
|
|
|
DEBUG_CXXFLAGS='-g'
|
|
|
|
|
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
|
2005-03-15 18:20:10 +00:00
|
|
|
AIX)
|
2001-07-06 01:21:59 +00:00
|
|
|
THE_OS=AIX
|
2002-01-29 19:41:11 +00:00
|
|
|
THE_COMP="xlC_r"
|
2002-07-22 19:07:11 +00:00
|
|
|
CC=`which xlc_r`; export CC
|
|
|
|
CXX=`which xlC_r`; export CXX
|
2002-03-22 22:46:46 +00:00
|
|
|
RELEASE_CFLAGS="-O2 -qmaxmem=-1"
|
|
|
|
RELEASE_CXXFLAGS="-O2 -qmaxmem=-1"
|
2001-07-06 01:21:59 +00:00
|
|
|
;;
|
2005-03-15 18:20:10 +00:00
|
|
|
AIX/GCC)
|
2004-01-14 23:54:41 +00:00
|
|
|
THE_OS=AIX
|
|
|
|
THE_COMP="gcc"
|
|
|
|
CC=`which gcc`; export CC
|
|
|
|
CXX=`which g++`; export CXX
|
|
|
|
;;
|
2005-03-15 18:20:10 +00:00
|
|
|
Solaris)
|
2001-07-06 01:21:59 +00:00
|
|
|
THE_OS=SOLARIS
|
|
|
|
THE_COMP="Sun's CC"
|
|
|
|
CC=`which cc`; export CC
|
|
|
|
CXX=`which CC`; export CXX
|
2005-04-13 19:26:58 +00:00
|
|
|
RELEASE_CFLAGS="-xO4 -xlibmil"
|
|
|
|
RELEASE_CXXFLAGS="-O4 -xlibmil"
|
2001-07-06 01:21:59 +00:00
|
|
|
;;
|
2005-03-15 18:20:10 +00:00
|
|
|
Solaris/GCC)
|
2001-07-06 01:21:59 +00:00
|
|
|
THE_OS=SOLARIS
|
|
|
|
THE_COMP="the GNU C++"
|
2004-05-19 19:03:54 +00:00
|
|
|
CXXFLAGS="$CXXFLAGS -I/usr/local/include/g++"; export CXXFLAGS
|
|
|
|
LDFLAGS="$LDFLAGS -R/usr/local/lib"; export LDFLAGS
|
2003-08-09 01:37:14 +00:00
|
|
|
RELEASE_CXXFLAGS=-O
|
|
|
|
RELEASE_CFLAGS=-O3
|
2001-07-06 01:21:59 +00:00
|
|
|
;;
|
2005-03-15 18:20:10 +00:00
|
|
|
SolarisX86)
|
|
|
|
THE_OS="SOLARIS X86"
|
|
|
|
THE_COMP="Sun's CC"
|
|
|
|
CC=`which cc`; export CC
|
|
|
|
CXX=`which CC`; export CXX
|
|
|
|
LDFLAGS="-L -lCrun";export LDFLAGS
|
|
|
|
RELEASE_CFLAGS=-xO3
|
|
|
|
RELEASE_CXXFLAGS=-O3
|
2001-07-06 01:21:59 +00:00
|
|
|
;;
|
2005-03-15 18:20:10 +00:00
|
|
|
HP-UX/ACC)
|
2001-07-06 01:21:59 +00:00
|
|
|
THE_OS="HP-UX 11"
|
|
|
|
THE_COMP="aCC"
|
|
|
|
CC=cc; export CC
|
|
|
|
CXX=aCC; export CXX
|
|
|
|
RELEASE_CFLAGS='+O2 +Ofltacc'
|
|
|
|
RELEASE_CXXFLAGS='+O2 +Ofltacc'
|
|
|
|
;;
|
2005-03-15 18:20:10 +00:00
|
|
|
Linux/ECC)
|
2003-09-02 19:39:32 +00:00
|
|
|
THE_OS="Linux"
|
2003-09-18 21:42:09 +00:00
|
|
|
THE_COMP="Intel ECC 7.1"
|
2003-09-02 19:39:32 +00:00
|
|
|
CC=ecc; export CC
|
2003-09-18 21:42:09 +00:00
|
|
|
CXX=ecpc; export CXX
|
2003-09-19 17:44:23 +00:00
|
|
|
RELEASE_CFLAGS='-O2'
|
|
|
|
RELEASE_CXXFLAGS='-O2'
|
2003-09-02 19:39:32 +00:00
|
|
|
;;
|
2005-05-13 17:53:09 +00:00
|
|
|
Linux/ICC6)
|
2003-09-15 17:33:49 +00:00
|
|
|
THE_OS="Linux"
|
2003-09-18 21:42:09 +00:00
|
|
|
THE_COMP="Intel ICC 6.0"
|
2003-09-15 17:33:49 +00:00
|
|
|
CC=icc; export CC
|
2003-09-18 21:42:09 +00:00
|
|
|
CXX=icpc; export CXX
|
|
|
|
RELEASE_CFLAGS='-O0'
|
|
|
|
RELEASE_CXXFLAGS='-O0'
|
2003-09-15 17:33:49 +00:00
|
|
|
;;
|
2005-05-13 17:53:09 +00:00
|
|
|
Linux/ICC)
|
|
|
|
THE_OS="Linux"
|
|
|
|
THE_COMP="Intel ICC 8.0"
|
|
|
|
CC=icc; export CC
|
|
|
|
CXX=icpc; export CXX
|
|
|
|
RELEASE_CFLAGS='-O'
|
|
|
|
RELEASE_CXXFLAGS='-O'
|
|
|
|
;;
|
2005-03-15 18:20:10 +00:00
|
|
|
Linux/VA)
|
2004-09-30 18:51:03 +00:00
|
|
|
THE_OS="Linux"
|
|
|
|
THE_COMP="IBM Visual Age C++ Compiler"
|
|
|
|
CC=`which xlc_r`; export CC
|
|
|
|
CXX=`which xlC_r`; export CXX
|
|
|
|
RELEASE_CFLAGS="-O2 -qmaxmem=-1"
|
|
|
|
RELEASE_CXXFLAGS="-O2 -qmaxmem=-1"
|
|
|
|
;;
|
2005-03-15 18:20:10 +00:00
|
|
|
Linux*)
|
|
|
|
THE_OS="Linux"
|
|
|
|
THE_COMP="the GNU C++"
|
|
|
|
CC=gcc; export CC
|
|
|
|
CXX=g++; export CXX
|
|
|
|
;;
|
2004-04-01 01:25:30 +00:00
|
|
|
Cygwin)
|
|
|
|
THE_OS="Cygwin"
|
2002-04-17 23:54:04 +00:00
|
|
|
THE_COMP="the GNU C++"
|
2003-10-10 17:17:50 +00:00
|
|
|
RELEASE_CFLAGS='-O3'
|
|
|
|
RELEASE_CXXFLAGS='-O3'
|
2002-04-17 23:54:04 +00:00
|
|
|
;;
|
2004-04-01 01:25:30 +00:00
|
|
|
Cygwin/MSVC)
|
|
|
|
THE_OS="Windows with Cygwin"
|
2004-03-31 22:33:46 +00:00
|
|
|
THE_COMP="Microsoft Visual C++"
|
|
|
|
CC=cl; export CC
|
|
|
|
CXX=cl; export CXX
|
2005-11-09 07:01:29 +00:00
|
|
|
RELEASE_CFLAGS='/O2 /Ob2 /Op'
|
|
|
|
RELEASE_CXXFLAGS='/O2 /Ob2 /Op'
|
2005-12-01 02:06:30 +00:00
|
|
|
DEBUG_CFLAGS='/Zi'
|
|
|
|
DEBUG_CXXFLAGS='/Zi'
|
|
|
|
DEBUG_LDFLAGS='/DEBUG'
|
2004-03-31 22:33:46 +00:00
|
|
|
;;
|
2005-05-18 17:28:59 +00:00
|
|
|
Cygwin/ICL)
|
|
|
|
THE_OS="Windows with Cygwin"
|
|
|
|
THE_COMP="Intel C++"
|
|
|
|
CC=icl; export CC
|
|
|
|
CXX=icl; export CXX
|
|
|
|
# The Intel compiler has optimization bugs. So we disable optimization.
|
|
|
|
RELEASE_CFLAGS='/Od'
|
|
|
|
RELEASE_CXXFLAGS='/Od'
|
2005-12-01 02:06:30 +00:00
|
|
|
DEBUG_CFLAGS='/Zi'
|
|
|
|
DEBUG_CXXFLAGS='/Zi'
|
|
|
|
DEBUG_LDFLAGS='/DEBUG'
|
2005-05-18 17:28:59 +00:00
|
|
|
;;
|
2002-04-17 23:54:04 +00:00
|
|
|
MacOSX)
|
|
|
|
THE_OS="MacOS X (Darwin)"
|
|
|
|
THE_COMP="the GNU C++"
|
2002-05-10 15:54:01 +00:00
|
|
|
RELEASE_CFLAGS='-O2'
|
|
|
|
RELEASE_CXXFLAGS='-O2'
|
2002-01-03 22:35:03 +00:00
|
|
|
;;
|
2001-09-19 16:49:43 +00:00
|
|
|
*BSD)
|
|
|
|
THE_OS="BSD"
|
|
|
|
THE_COMP="the GNU C++"
|
2002-04-19 00:27:24 +00:00
|
|
|
CC=gcc; export CC
|
|
|
|
CXX=g++; export CXX
|
2001-09-19 16:49:43 +00:00
|
|
|
;;
|
2005-03-15 18:20:10 +00:00
|
|
|
TRU64V5.1/CXX)
|
|
|
|
THE_OS="OSF1"
|
|
|
|
THE_COMP="Compaq cxx"
|
|
|
|
CC=cc; export CC
|
|
|
|
CXX=cxx; export CXX
|
|
|
|
;;
|
2003-03-20 20:26:28 +00:00
|
|
|
QNX)
|
|
|
|
THE_OS="QNX"
|
|
|
|
THE_COMP="QNX cc"
|
|
|
|
CC=qcc; export CC
|
|
|
|
CXX=QCC; export CXX
|
2003-05-23 03:45:30 +00:00
|
|
|
;;
|
2003-07-01 23:19:21 +00:00
|
|
|
BeOS)
|
|
|
|
THE_OS="BeOS"
|
|
|
|
THE_COMP="the GNU C++"
|
|
|
|
OPTIMIZATIONS="-fdefault-inline -fdefer-pop -fforce-mem -fforce-addr \
|
|
|
|
-finline -finline-functions \
|
|
|
|
-fkeep-inline-functions -fkeep-static-consts -fbranch-count-reg \
|
|
|
|
-ffunction-cse -fstrength-reduce -fthread-jumps -fcse-follow-jumps \
|
|
|
|
-fcse-skip-blocks -frerun-cse-after-loop -frerun-loop-opt \
|
|
|
|
-fexpensive-optimizations -foptimize-register-move -fregmove \
|
|
|
|
-fschedule-insns -fschedule-insns2 -ffloat-store -funroll-loops \
|
|
|
|
-fmove-all-movables -freduce-all-givs -fpeephole \
|
|
|
|
-funroll-all-loops -ffunction-sections -fdata-sections"
|
|
|
|
RELEASE_CFLAGS="$OPTIMIZATIONS"
|
|
|
|
RELEASE_CXXFLAGS="$OPTIMIZATIONS"
|
|
|
|
;;
|
2003-05-23 03:45:30 +00:00
|
|
|
zOS)
|
2002-07-11 15:44:06 +00:00
|
|
|
THE_OS="z/OS (OS/390)"
|
2006-01-30 05:47:05 +00:00
|
|
|
THE_COMP="z/OS C/C++"
|
2002-01-29 19:41:11 +00:00
|
|
|
CC=cc; export CC
|
|
|
|
CXX=cxx; export CXX
|
2005-11-28 17:17:23 +00:00
|
|
|
export RELEASE_CFLAGS="-2 -Wc,'inline(auto,noreport,500,2500)'"
|
|
|
|
export RELEASE_CXXFLAGS="-2 -Wc,'inline(auto,noreport,300,2500)'"
|
2003-05-23 03:45:30 +00:00
|
|
|
;;
|
|
|
|
zOSV1R2)
|
|
|
|
THE_OS="z/OS 1.2"
|
|
|
|
THE_COMP="z/OS 1.2 C/C++"
|
|
|
|
CC=cc; export CC
|
|
|
|
CXX=cxx; export CXX
|
|
|
|
export COMPILE_LINK_ENVVAR='_CXX_CVERSION=0x41020000 _C89_CVERSION=0x41020000 _CC_CVERSION=0x41020000 _CXX_PVERSION=0x41020000 _C89_PVERSION=0x41020000 _CC_PVERSION=0x41020000'
|
2003-05-27 16:58:56 +00:00
|
|
|
export _CXX_CVERSION=0x41020000 _C89_CVERSION=0x41020000 _CC_CVERSION=0x41020000 _CXX_PVERSION=0x41020000 _C89_PVERSION=0x41020000 _CC_PVERSION=0x41020000
|
2005-11-21 08:02:13 +00:00
|
|
|
export LDFLAGS="-Wl,'compat=pm3'"
|
|
|
|
export CFLAGS="-Wc,'target(zOSV1R2)'"
|
|
|
|
export CXXFLAGS="-Wc,'target(zOSV1R2)'"
|
2005-11-28 17:17:23 +00:00
|
|
|
export RELEASE_CFLAGS="-2 -Wc,'inline(auto,noreport,500,2500)'"
|
|
|
|
export RELEASE_CXXFLAGS="-2 -Wc,'inline(auto,noreport,300,2500)'"
|
2003-05-23 03:45:30 +00:00
|
|
|
;;
|
|
|
|
OS390V2R10)
|
|
|
|
THE_OS="OS/390 2.10"
|
|
|
|
THE_COMP="OS/390 2.10 C/C++"
|
|
|
|
CC=cc; export CC
|
|
|
|
CXX=cxx; export CXX
|
|
|
|
export COMPILE_LINK_ENVVAR='_CXX_CVERSION=0x220A0000 _C89_CVERSION=0x220A0000 _CC_CVERSION=0x220A0000 _CXX_PVERSION=0x220A0000 _C89_PVERSION=0x220A0000 _CC_PVERSION=0x220A0000'
|
2003-05-27 16:58:56 +00:00
|
|
|
export _CXX_CVERSION=0x220A0000 _C89_CVERSION=0x220A0000 _CC_CVERSION=0x220A0000 _CXX_PVERSION=0x220A0000 _C89_PVERSION=0x220A0000 _CC_PVERSION=0x220A0000
|
2005-11-21 08:02:13 +00:00
|
|
|
export LDFLAGS="-Wl,'compat=pm3'"
|
|
|
|
export CFLAGS="-Wc,'target(OSV2R10)'"
|
|
|
|
export CXXFLAGS="-Wc,'target(OSV2R10)'"
|
2005-11-28 17:17:23 +00:00
|
|
|
export RELEASE_CFLAGS="-2 -Wc,'inline(auto,noreport,500,2500)'"
|
|
|
|
export RELEASE_CXXFLAGS="-2 -Wc,'inline(auto,noreport,300,2500)'"
|
2002-01-29 19:41:11 +00:00
|
|
|
;;
|
2001-07-06 01:21:59 +00:00
|
|
|
*)
|
|
|
|
>&2 echo "$me: unrecognized platform \"$platform\" (use --help for help)"
|
|
|
|
exit 1;;
|
2000-02-18 21:02:44 +00:00
|
|
|
esac
|
|
|
|
|
2001-05-25 18:00:38 +00:00
|
|
|
|
2001-04-18 03:06:43 +00:00
|
|
|
# Tweak flags
|
|
|
|
|
|
|
|
if test $release -eq 1
|
|
|
|
then
|
2001-04-25 21:07:25 +00:00
|
|
|
if test "$RELEASE_CFLAGS" = ""
|
2001-04-18 03:06:43 +00:00
|
|
|
then
|
2001-05-25 18:00:38 +00:00
|
|
|
case $CC in
|
|
|
|
gcc|*/gcc|*-gcc-*|*/*-gcc-*)
|
|
|
|
RELEASE_CFLAGS=-O3
|
|
|
|
;;
|
|
|
|
esac
|
2001-04-18 03:06:43 +00:00
|
|
|
fi
|
2001-04-25 21:07:25 +00:00
|
|
|
if test "$RELEASE_CFLAGS" != ""
|
2001-04-18 03:06:43 +00:00
|
|
|
then
|
2001-05-25 18:00:38 +00:00
|
|
|
CFLAGS="$CFLAGS $RELEASE_CFLAGS"
|
2001-04-18 03:06:43 +00:00
|
|
|
fi
|
|
|
|
export CFLAGS
|
2001-04-25 21:07:25 +00:00
|
|
|
if test "$RELEASE_CXXFLAGS" = ""
|
2001-04-18 03:06:43 +00:00
|
|
|
then
|
2001-05-25 18:00:38 +00:00
|
|
|
case $CXX in
|
|
|
|
g++|*/g++|*-g++-*|*/*-g++-*)
|
|
|
|
RELEASE_CXXFLAGS=-O
|
|
|
|
;;
|
|
|
|
esac
|
2001-04-18 03:06:43 +00:00
|
|
|
fi
|
2001-04-25 21:07:25 +00:00
|
|
|
if test "$RELEASE_CXXFLAGS" != ""
|
2001-04-18 03:06:43 +00:00
|
|
|
then
|
2001-05-25 18:00:38 +00:00
|
|
|
CXXFLAGS="$CXXFLAGS $RELEASE_CXXFLAGS"
|
2001-04-18 03:06:43 +00:00
|
|
|
fi
|
|
|
|
export CXXFLAGS
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $debug -eq 1
|
|
|
|
then
|
2001-04-25 21:07:25 +00:00
|
|
|
if test "$DEBUG_CFLAGS" != ""
|
2001-04-18 03:06:43 +00:00
|
|
|
then
|
2001-05-25 18:00:38 +00:00
|
|
|
CFLAGS="$CFLAGS $DEBUG_CFLAGS"
|
2001-04-18 03:06:43 +00:00
|
|
|
fi
|
|
|
|
export CFLAGS
|
2001-04-25 21:07:25 +00:00
|
|
|
if test "$DEBUG_CXXFLAGS" != ""
|
2001-04-18 03:06:43 +00:00
|
|
|
then
|
2001-05-25 18:00:38 +00:00
|
|
|
CXXFLAGS="$CXXFLAGS $DEBUG_CXXFLAGS"
|
2001-04-18 03:06:43 +00:00
|
|
|
fi
|
|
|
|
export CXXFLAGS
|
2003-10-10 17:17:50 +00:00
|
|
|
if test "$DEBUG_LDFLAGS" != ""
|
|
|
|
then
|
|
|
|
LDFLAGS="$LDFLAGS $DEBUG_LDFLAGS"
|
|
|
|
fi
|
|
|
|
export LDFLAGS
|
2001-04-18 03:06:43 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Run configure
|
|
|
|
|
2002-03-08 00:25:53 +00:00
|
|
|
echo "Running ./configure $OPTS $@ for $THE_OS using $THE_COMP compiler"
|
2001-04-18 03:06:43 +00:00
|
|
|
echo
|
2002-03-08 00:25:53 +00:00
|
|
|
$configure $OPTS $@
|
2000-02-18 21:02:44 +00:00
|
|
|
echo
|
2001-04-18 03:06:43 +00:00
|
|
|
echo If the result of the above commands looks okay to you, go to the directory
|
|
|
|
echo source in the ICU distribution to build ICU. Please remember that ICU needs
|
|
|
|
echo GNU make to build properly...
|