ICU-3178 Create a platform indepdent flag for debug and release builds

X-SVN-Rev: 13440
This commit is contained in:
George Rhoten 2003-10-16 21:08:31 +00:00
parent beea326e42
commit 868237c80c
3 changed files with 251 additions and 183 deletions

398
icu4c/source/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@ dnl Copyright (c) 1999-2003, International Business Machines Corporation and
dnl others. All Rights Reserved.
dnl Stephen F. Booth, heavily modified by Yves and others
dnl $Id: configure.in,v 1.199 2003/10/15 23:12:24 grhoten-oss Exp $
dnl $Id: configure.in,v 1.200 2003/10/16 21:08:30 grhoten-oss Exp $
dnl Process this file with autoconf to produce a configure script
AC_INIT(common/unicode/utypes.h)
@ -93,7 +93,7 @@ dnl Check whether to build shared libraries
AC_MSG_CHECKING([whether to build shared libraries])
enabled=no
AC_ARG_ENABLE(shared,
[ --enable-shared[=PKGS] build shared libraries [default=yes]],
[ --enable-shared build shared libraries [default=yes]],
[ case "${enableval}" in
yes|"") enabled=yes; ENABLE_SHARED=YES ;;
no);;
@ -108,7 +108,7 @@ dnl Check whether to build static libraries
AC_MSG_CHECKING([whether to build static libraries])
enabled=no
AC_ARG_ENABLE(static,
[ --enable-static[=PKGS] build static libraries [default=no]],
[ --enable-static build static libraries [default=no]],
[ case "${enableval}" in
yes|"") enabled=yes; ENABLE_STATIC=YES ;;
no) ;;
@ -118,6 +118,34 @@ AC_ARG_ENABLE(static,
AC_MSG_RESULT($enabled)
AC_SUBST(ENABLE_STATIC)
dnl Check whether to build debug libraries
AC_MSG_CHECKING([whether to build debug libraries])
enabled=no
ENABLE_DEBUG=0
AC_ARG_ENABLE(debug,
[ --enable-debug build debug libraries [default=no]],
[ case "${enableval}" in
yes|"") enabled=yes; ENABLE_DEBUG=1 ;;
*) ;;
esac],
)
AC_MSG_RESULT($enabled)
AC_SUBST(ENABLE_DEBUG)
dnl Check whether to build release libraries
AC_MSG_CHECKING([whether to build release libraries])
enabled=yes
ENABLE_RELEASE=1
AC_ARG_ENABLE(release,
[ --enable-release build release libraries [default=yes]],
[ case "${enableval}" in
no) enabled=no; ENABLE_RELEASE=0 ;;
*) ;;
esac],
)
AC_MSG_RESULT($enabled)
AC_SUBST(ENABLE_RELEASE)
AC_PROG_RANLIB
AC_PATH_PROG(AR,ar,[echo archiver ar not found re-run configure ; false],$PATH:/bin:/usr/bin:/usr/ccs/bin)

View File

@ -73,10 +73,12 @@ do
--enable-debug)
debug=1
release=0
OPTS="$OPTS --enable-debug"
;;
--disable-release)
debug=0
release=0
OPTS="$OPTS --disable-release"
;;
*)
platform="$1"