dnl
AC_CHECK_TYPES([ssize_t, u_char, u_int, u_long, u_int8_t, u_int16_t, u_int32_t, int8_t, int16_t, int32_t])
dnl
+dnl Some libdb2 test programs want a shell that supports functions.
+FCTSH=false
+AC_PATH_PROG(SH,sh,false)
+AC_PATH_PROG(SH5,sh5,false)
+AC_PATH_PROG(BASH,bash,false)
+for prog in $SH $SH5 $BASH; do
+ if $prog -c 'foo() { true; } foo' >/dev/null 2>&1; then
+ FCTSH=$prog ; break
+ fi
+done
+AC_SUBST(FCTSH)
+dnl
dnl Test for POSIX 2001 *printf support (X/Open System Interfaces extension
dnl to ANSI/ISO C 1999 specification). Specifically, positional
dnl specifications; not checking for other features like %zx at present.
;;
esac
AC_SUBST(DB_EXTRA_LIBS)
-if test "$DB_VERSION" = k5; then
- AC_CONFIG_SUBDIRS(plugins/kdb/db2/libdb2)
-fi
dnl
dnl
plugins/locate/python
plugins/kdb/db2
+ plugins/kdb/db2/libdb2
+ plugins/kdb/db2/libdb2/hash
+ plugins/kdb/db2/libdb2/btree
+ plugins/kdb/db2/libdb2/db
+ plugins/kdb/db2/libdb2/mpool
+ plugins/kdb/db2/libdb2/recno
+ plugins/kdb/db2/libdb2/test
plugins/preauth/cksum_body
plugins/preauth/wpse
-thisconfigdir=.
+thisconfigdir=../../../..
myfulldir=plugins/kdb/db2/libdb2
-mydir=.
+mydir=plugins/kdb/db2/libdb2
BUILDTOP=$(REL)..$(S)..$(S)..$(S)..
LOCAL_SUBDIRS=hash btree db mpool recno test
-thisconfigdir=./..
+thisconfigdir=../../../../..
myfulldir=plugins/kdb/db2/libdb2/btree
-mydir=btree
+mydir=plugins/kdb/db2/libdb2/btree
BUILDTOP=$(REL)..$(S)..$(S)..$(S)..$(S)..
STLIBOBJS= bt_close.o bt_conv.o bt_debug.o bt_delete.o bt_get.o \
bt_open.o bt_overflow.o bt_page.o bt_put.o bt_search.o \
+++ /dev/null
-K5_AC_INIT(db/db.c)
-CONFIG_RULES
-
-AC_PATH_PROG(FALSE,false,:)
-AC_PATH_PROG(SH,sh,$FALSE)
-AC_PATH_PROG(SH5,sh5,$FALSE)
-AC_PATH_PROG(BASH,bash,$FALSE)
-
-AC_CACHE_CHECK([checking for shell with functions],local_cv_program_fctsh,
-[if $SH -c 'foo() { true; }; foo' > /dev/null 2>&1; then
- local_cv_program_fctsh=$SH
-else
- if $SH5 -c 'foo() { true; }; foo' > /dev/null 2>&1; then
- local_cv_program_fctsh=$SH5
- else
- if $BASH -c 'foo() { true; }; foo' > /dev/null 2>&1; then
- local_cv_program_fctsh=$BASH
- else
- local_cv_program_fctsh=$FALSE
- fi
- fi
-fi])
-
-FCTSH=$local_cv_program_fctsh
-AC_SUBST(FCTSH)
-
-KRB5_BUILD_LIBRARY
-KRB5_BUILD_LIBOBJS
-KRB5_BUILD_PROGRAM
-KRB5_RUN_FLAGS
-V5_AC_OUTPUT_MAKEFILE(. hash btree db mpool recno test)
-thisconfigdir=./..
+thisconfigdir=../../../../..
myfulldir=plugins/kdb/db2/libdb2/db
-mydir=db
+mydir=plugins/kdb/db2/libdb2/db
BUILDTOP=$(REL)..$(S)..$(S)..$(S)..$(S)..
STLIBOBJS=db.o
-thisconfigdir=./..
+thisconfigdir=../../../../..
myfulldir=plugins/kdb/db2/libdb2/hash
-mydir=hash
+mydir=plugins/kdb/db2/libdb2/hash
BUILDTOP=$(REL)..$(S)..$(S)..$(S)..$(S)..
STLIBOBJS= hash.o hash_bigkey.o hash_debug.o hash_func.o hash_log2.o \
hash_page.o hsearch.o dbm.o
-thisconfigdir=./..
+thisconfigdir=../../../../..
myfulldir=plugins/kdb/db2/libdb2/mpool
-mydir=mpool
+mydir=plugins/kdb/db2/libdb2/mpool
BUILDTOP=$(REL)..$(S)..$(S)..$(S)..$(S)..
STLIBOBJS=mpool.o
-thisconfigdir=./..
+thisconfigdir=../../../../..
myfulldir=plugins/kdb/db2/libdb2/recno
-mydir=recno
+mydir=plugins/kdb/db2/libdb2/recno
BUILDTOP=$(REL)..$(S)..$(S)..$(S)..$(S)..
STLIBOBJS= rec_close.o rec_delete.o rec_get.o rec_open.o rec_put.o \
rec_search.o rec_seq.o rec_utils.o
-thisconfigdir=./..
+thisconfigdir=../../../../..
myfulldir=plugins/kdb/db2/libdb2/test
-mydir=test
+mydir=plugins/kdb/db2/libdb2/test
BUILDTOP=$(REL)..$(S)..$(S)..$(S)..$(S)..
FCTSH = @FCTSH@