diff options
| author | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2010-12-20 09:05:05 +0000 |
|---|---|---|
| committer | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2010-12-20 09:05:05 +0000 |
| commit | 0ec9572a9572c604f67e7b7c6f9004ada9b579d8 (patch) | |
| tree | fa3457d076f0b13287407cc2597e6ded7da9b838 /databases/firebird21-server/files/icu.m4 | |
| parent | - Update to 2.0.6 (diff) | |
- New port: databases/firebird21-server
Firebird is a relational database offering many ANSI SQL-99 features
that runs on Linux, Windows, and a variety of Unix platforms. Firebird
offers excellent concurrency, high performance, and powerful language
support for stored procedures and triggers. It has been used in
production systems, under a variety of names since 1981.
Firebird is completely free of any registration, licensing or deployment
fees. It may be deployed freely for use with any third-party software,
whether commercial or not.
WWW: http://sourceforge.net/projects/firebird/
WWW: http://www.firebirdsql.org/
PR: 152402
Submitted by: Max Kochubey <root at hangover.org.ru>
Diffstat (limited to 'databases/firebird21-server/files/icu.m4')
| -rw-r--r-- | databases/firebird21-server/files/icu.m4 | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/databases/firebird21-server/files/icu.m4 b/databases/firebird21-server/files/icu.m4 new file mode 100644 index 000000000000..37d0f8a08c40 --- /dev/null +++ b/databases/firebird21-server/files/icu.m4 @@ -0,0 +1,46 @@ +dnl AM_PATH_ICU([MINIMUM-VERSION]) +dnl Adds support for ICU +AC_DEFUN([AM_PATH_ICU], +[ + rast_lib_icu_major="$1" + rast_lib_icu_minor="$2" + rast_lib_icu_version="$1.$2" + + AC_ARG_WITH(icu-config, + AC_HELP_STRING([--with-icu-config=PATH],[path to icu-config]), + [ + AC_MSG_RESULT(using $withval for icu-config) + ICU_CONFIG="$withval" + ], [ + AC_PATH_PROG(ICU_CONFIG, icu-config, no) + ]) + HAVE_ICU="no" + if test "$ICU_CONFIG" != "no"; then + AC_MSG_CHECKING([ICU version]) + ICU_VERSION="`$ICU_CONFIG --version`" + if test $? -eq 0; then + changequote(<<, >>) + ICU_MAJOR=`expr "$ICU_VERSION" : '\(.*\)\..*'` + ICU_MINOR=`expr "$ICU_VERSION" : '.*\.\(.*\)'` + changequote([, ]) + if expr "$ICU_MAJOR" '>' "$rast_lib_icu_major" > /dev/null || + ( expr "$ICU_MAJOR" '=' "$rast_lib_icu_major" > /dev/null && + expr "$ICU_MINOR" '>=' "$rast_lib_icu_minor" > /dev/null ); then + AC_MSG_RESULT([$ICU_VERSION]) + + ICU_CPPFLAGS=`$ICU_CONFIG --cppflags` + ICU_LIBS=`$ICU_CONFIG --ldflags-libsonly` + ICU_LDFLAGS=`$ICU_CONFIG --ldflags-searchpath` + AC_SUBST(ICU_CPPFLAGS) + AC_SUBST(ICU_LIBS) + AC_SUBST(ICU_LDFLAGS) + HAVE_ICU="yes" + else + AC_MSG_WARN([$ICU_VERSION is too old; $rast_lib_icu_version is required]) + fi + else + AC_MSG_WARN([icu-config --version failed]) + fi + fi + AC_SUBST(HAVE_ICU) +]) |
