107 |
LDADD='../libutil/libgloutil.a ../libdb/libglodb.a ../libglibc/libgloglibc.a' |
LDADD='../libutil/libgloutil.a ../libdb/libglodb.a ../libglibc/libgloglibc.a' |
108 |
|
|
109 |
dnl |
dnl |
110 |
|
dnl This option is for debugging GLOBAL. Not for normal use. |
111 |
|
dnl |
112 |
|
AC_ARG_WITH(db185-compat, |
113 |
|
[ --with-db185-compat[=DIR] use DB1.85 compatible API included in DB2 or later ], |
114 |
|
[ |
115 |
|
if test "$withval" != 'no'; then |
116 |
|
case "$withval" in |
117 |
|
''|yes) |
118 |
|
;; |
119 |
|
*) |
120 |
|
if ! test -d $withval; then |
121 |
|
AC_MSG_ERROR([directory $withval not found.]) |
122 |
|
fi |
123 |
|
if ! test -r $withval/include/db_185.h; then |
124 |
|
AC_MSG_ERROR([header $withval/include/db_185.h not found.]) |
125 |
|
fi |
126 |
|
INCLUDES="$INCLUDES -I$withval/include" |
127 |
|
LDFLAGS="$LDFLAGS -L$withval/lib" |
128 |
|
;; |
129 |
|
esac |
130 |
|
LDADD='../libutil/libgloutil.a -ldb ../libglibc/libgloglibc.a' |
131 |
|
AC_DEFINE(USE_DB185_COMPAT,1,[Define if you use DB1.85 compatible API.]) |
132 |
|
fi |
133 |
|
],[ with_db185_compat='no' ]) |
134 |
|
AM_CONDITIONAL([USE_DB185_COMPAT], [test "$with_db185_compat" != no]) |
135 |
|
|
136 |
|
dnl |
137 |
dnl for home-etc support |
dnl for home-etc support |
138 |
dnl |
dnl |
139 |
AC_MSG_CHECKING(for home-etc support) |
AC_MSG_CHECKING(for home-etc support) |