| 17 |
dnl Automake boilerplate. |
dnl Automake boilerplate. |
| 18 |
AC_CANONICAL_HOST |
AC_CANONICAL_HOST |
| 19 |
|
|
|
|
|
| 20 |
dnl create a config.h file (Automake will add -DHAVE_CONFIG_H) |
dnl create a config.h file (Automake will add -DHAVE_CONFIG_H) |
| 21 |
AM_CONFIG_HEADER(config.h) |
AM_CONFIG_HEADER(config.h) |
| 22 |
|
|
| 126 |
[ multithread="${enableval}" ], [ multithread=yes ] ) |
[ multithread="${enableval}" ], [ multithread=yes ] ) |
| 127 |
|
|
| 128 |
if test "${multithread}" != no ; then |
if test "${multithread}" != no ; then |
| 129 |
AC_CHECK_HEADERS(pthread.h, [], [ AC_MSG_ERROR([pthread.h not found]) ]) |
ACX_PTHREAD( |
| 130 |
AC_CHECK_LIB(pthread, pthread_mutex_lock, [ LIBS="$LIBS -lpthread" ], |
[ AC_DEFINE(HAVE_PTHREAD, 1, |
| 131 |
[ multithread=no ]) |
[Define if you have POSIX threads libraries and header files.]) |
| 132 |
|
], [ AC_MSG_ERROR([POSIX thread support required]) ]) |
| 133 |
fi |
fi |
| 134 |
AC_MSG_RESULT([multi threading : $multithread]) |
AC_MSG_RESULT([multi threading : $multithread]) |
| 135 |
|
|
| 217 |
AC_SUBST(usbdropdir) |
AC_SUBST(usbdropdir) |
| 218 |
|
|
| 219 |
dnl Write Makefiles. |
dnl Write Makefiles. |
| 220 |
AC_CONFIG_FILES(Makefile src/Makefile readers/Makefile) |
AC_CONFIG_FILES(Makefile aclocal/Makefile src/Makefile readers/Makefile) |
| 221 |
AC_OUTPUT |
AC_OUTPUT |
| 222 |
|
|