--- configure.ac 2002/01/17 11:53:24 1.21
+++ configure.ac 2002/01/30 08:38:23 1.22
@@ -51,8 +51,19 @@
dnl # checks for POPT library
AC_CHECK_HEADERS(alloca.h float.h)
-dnl # check for Str library
-AC_CHECK_EXTLIB([OSSP Str],
+dnl # check for OSSP ex library
+AC_CHECK_EXTLIB([OSSP ex],
+ ex, __ex_ctx, ex.h,
+ [SUBDIR_EX=""],
+ [SUBDIR_EX="lib_ex"
+ CPPFLAGS="$CPPFLAGS -Ilib_ex"
+ CFLAGS="$CFLAGS -Ilib_ex"
+ LDFLAGS="$LDFLAGS -Llib_ex/.libs"
+ LIBS_EXTRA="$LIBS_EXTRA -lex"])
+AC_SUBST(SUBDIR_EX)
+
+dnl # check for OSSP str library
+AC_CHECK_EXTLIB([OSSP str],
str, str_parse, str.h,
[SUBDIR_STR=""],
[SUBDIR_STR="lib_str"
@@ -62,8 +73,8 @@
LIBS_EXTRA="$LIBS_EXTRA -lstr"])
AC_SUBST(SUBDIR_STR)
-dnl # check for L2 library
-AC_CHECK_EXTLIB([OSSP L2],
+dnl # check for OSSP l2 library
+AC_CHECK_EXTLIB([OSSP l2],
l2, l2_stream_log, l2.h,
[SUBDIR_L2=""],
[SUBDIR_L2="lib_l2"
@@ -73,8 +84,8 @@
LIBS_EXTRA="$LIBS_EXTRA -ll2"])
AC_SUBST(SUBDIR_L2)
-dnl # check for SA library
-AC_CHECK_EXTLIB([OSSP SA],
+dnl # check for OSSP sa library
+AC_CHECK_EXTLIB([OSSP sa],
sa, sa_create, sa.h,
[SUBDIR_SA=""],
[SUBDIR_SA="lib_sa"
@@ -84,8 +95,8 @@
LIBS_EXTRA="$LIBS_EXTRA -lsa"])
AC_SUBST(SUBDIR_SA)
-dnl # check for VAR library
-AC_CHECK_EXTLIB([OSSP Var],
+dnl # check for OSSP var library
+AC_CHECK_EXTLIB([OSSP var],
var, var_expand, var.h,
[SUBDIR_VAR=""],
[SUBDIR_VAR="lib_var"
@@ -95,8 +106,8 @@
LIBS_EXTRA="$LIBS_EXTRA -lvar"])
AC_SUBST(SUBDIR_VAR)
-dnl # check for VAL library
-AC_CHECK_EXTLIB([OSSP Val],
+dnl # check for OSSP val library
+AC_CHECK_EXTLIB([OSSP val],
val, val_create, val.h,
[SUBDIR_VAL=""],
[SUBDIR_VAL="lib_val"
@@ -116,7 +127,7 @@
export enable_shared
enable_headline=no
export enable_headline
-AC_CONFIG_SUBDIRS([$SUBDIR_STR $SUBDIR_L2 $SUBDIR_SA $SUBDIR_VAR $SUBDIR_VAL])
+AC_CONFIG_SUBDIRS([$SUBDIR_EX $SUBDIR_STR $SUBDIR_L2 $SUBDIR_SA $SUBDIR_VAR $SUBDIR_VAL])
dnl # standard output generation
AC_CONFIG_HEADERS(config.h)
|