cvs: /php3 configure.in
| From: | Sascha Schumann | Date: | Mon, 22 Nov 1999 08:30:15 +0000 |
| Subject: | cvs: /php3 configure.in | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-12909@lists.php.net to get a copy of this message | ||
sas Mon Nov 22 03:30:15 1999 EDT
Modified files:
/php3 configure.in
Log:
Update of the update for recode checks. Now links against librecode.
Index: php3/configure.in
diff -u php3/configure.in:1.478 php3/configure.in:1.479
--- php3/configure.in:1.478 Mon Nov 22 03:18:19 1999
+++ php3/configure.in Mon Nov 22 03:30:14 1999
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.478 1999/11/22 08:18:19 kk Exp $
+dnl $Id: configure.in,v 1.479 1999/11/22 08:30:14 sas Exp $
dnl Process this file with autoconf to produce a configure script.
AC_INIT(main.c)
@@ -2914,12 +2914,21 @@
fi
AC_ADD_INCLUDE($RECODE_DIR$RECODE_INC)
+
+ old_LDFLAGS="$LDFLAGS"
+ old_LIBS="$LIBS"
+ LDFLAGS="$LDFLAGS -L$RECODE_DIR/lib"
+ LIBS="$LIBS -lrecode"
+ AC_TRY_LINK([
+char *program_name;
+],[
+recode_format_table();
+],[],[
+ AC_MSG_ERROR(Cannot find librecode. Please install recode-3.5 or higher)])
+ LIBS="$old_LIBS"
+ LDFLAGS="$old_LDFLAGS"
- if test -f "$RECODE_DIR/lib/librecode.*"; then
- AC_ADD_LIBRARY_WITH_PATH(recode, $RECODE_DIR/lib)
- else
- AC_MSG_ERROR(Cannot find librecode. Please install recode-3.5 or higher)
- fi
+ AC_ADD_LIBRARY_WITH_PATH(recode, $RECODE_DIR/lib)
AC_DEFINE(HAVE_RECODE)
RESULT=yes
fi