#!/bin/sh # runConfigureICU: This script will run the "configure" script for the appropriate platform # Only supported platforms are recognized me=`basename $0` usage() { ec=0$1 if test $ec -eq 0 then uletter=U else uletter=u fi echo "${uletter}sage: $me [ -h, --help ] [ --enable-debug | --disable-release ] platform [ configurearg ... ]" if test $ec -eq 0 then cat <&2 echo "$me: unrecognized platform \"$platform\" (use --help for help)" exit 1;; esac # Tweak flags if test $release -eq 1 then if test "$RELEASE_CFLAGS" = "" then case $CC in gcc|*/gcc|*-gcc-*|*/*-gcc-*) RELEASE_CFLAGS=-O3 ;; esac fi if test "$RELEASE_CFLAGS" != "" then CFLAGS="$CFLAGS $RELEASE_CFLAGS" fi export CFLAGS if test "$RELEASE_CXXFLAGS" = "" then case $CXX in g++|*/g++|*-g++-*|*/*-g++-*) RELEASE_CXXFLAGS=-O ;; esac fi if test "$RELEASE_CXXFLAGS" != "" then CXXFLAGS="$CXXFLAGS $RELEASE_CXXFLAGS" fi export CXXFLAGS fi if test $debug -eq 1 then if test "$DEBUG_CFLAGS" != "" then CFLAGS="$CFLAGS $DEBUG_CFLAGS" fi export CFLAGS if test "$DEBUG_CXXFLAGS" != "" then CXXFLAGS="$CXXFLAGS $DEBUG_CXXFLAGS" fi export CXXFLAGS fi # Run configure echo "Running ./configure $@ for $THE_OS using $THE_COMP compiler" echo $configure $@ echo 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...