/[pcsclite]/tags/ccid/rel-1.3.3/configure.in
ViewVC logotype

Diff of /tags/ccid/rel-1.3.3/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1926 by rousseau, Mon Mar 6 09:12:44 2006 UTC revision 2116 by rousseau, Mon Jul 31 15:10:48 2006 UTC
# Line 6  Line 6 
6  # Require autoconf 2.52  # Require autoconf 2.52
7  AC_PREREQ(2.52)  AC_PREREQ(2.52)
8    
9  AC_INIT(ccid, 1.0.0)  AC_INIT(ccid, 1.0.1)
10  AC_CONFIG_SRCDIR(src/ifdhandler.c)  AC_CONFIG_SRCDIR(src/ifdhandler.c)
11  AC_CONFIG_AUX_DIR(build)  AC_CONFIG_AUX_DIR(build)
12  AM_INIT_AUTOMAKE  AM_INIT_AUTOMAKE
# Line 59  AC_SUBST(LIBTOOL_DEPS) Line 59  AC_SUBST(LIBTOOL_DEPS)
59    
60  # Checks for header files.  # Checks for header files.
61  AC_HEADER_STDC  AC_HEADER_STDC
62  AC_CHECK_HEADERS(errno.h fcntl.h stdlib.h unistd.h termios.h string.h errno.h sys/time.h sys/types.h stdarg.h,,  AC_CHECK_HEADERS(errno.h fcntl.h stdlib.h unistd.h termios.h string.h errno.h sys/time.h sys/types.h stdarg.h arpa/inet.h,,
63          [AC_MSG_WARN([some header files not found])])          [AC_MSG_WARN([some header files not found])])
64    
65  # Checks for typedefs, structures, and compiler characteristics.  # Checks for typedefs, structures, and compiler characteristics.
# Line 87  case "$host" in Line 87  case "$host" in
87                  CFLAGS="$CFLAGS -no-cpp-precomp"                  CFLAGS="$CFLAGS -no-cpp-precomp"
88          fi          fi
89          ;;          ;;
90    *-*-freebsd*)
91            BUNDLE_HOST="FreeBSD"
92            DYN_LIB_EXT="so"
93            ;;
94  *-*-openbsd*)  *-*-openbsd*)
95          BUNDLE_HOST="OpenBSD"          BUNDLE_HOST="OpenBSD"
96          DYN_LIB_EXT="so.0.0"          DYN_LIB_EXT="so.0.0"
# Line 100  case "$host" in Line 104  case "$host" in
104          DYN_LIB_EXT="so"          DYN_LIB_EXT="so"
105  esac  esac
106    
107  # --enable-libusb  # --disable-libusb
108  AC_ARG_ENABLE(libusb,  AC_ARG_ENABLE(libusb,
109          AC_HELP_STRING([--enable-libusb],[use libusb (default=yes)]),          AC_HELP_STRING([--disable-libusb],[do not use libusb]),
110          [ use_libusb=no ], [ use_libusb=yes ] )          [ use_libusb="${enableval}" ], [ use_libusb=yes ] )
111    
112  # check if libusb is used  # check if libusb is used
113  if test "x$use_libusb" != xno ; then  if test "x$use_libusb" != xno ; then
# Line 141  if test "x$use_libusb" != xno ; then Line 145  if test "x$use_libusb" != xno ; then
145    
146          CPPFLAGS="$saved_CPPFLAGS"          CPPFLAGS="$saved_CPPFLAGS"
147          LIBS="$saved_LIBS"          LIBS="$saved_LIBS"
148    
149            use_libusb=yes
150  fi  fi
151  AC_SUBST(LIBUSB_CFLAGS)  AC_SUBST(LIBUSB_CFLAGS)
152  AC_SUBST(LIBUSB_LIBS)  AC_SUBST(LIBUSB_LIBS)
153    
154    AC_MSG_RESULT([use libusb              : $use_libusb])
155    
156  # check what to use for dlopen  # check what to use for dlopen
157  AC_SUBST(LIBDL)  AC_SUBST(LIBDL)
158  AC_CHECK_LIB(dl, dlopen, [LIBDL="$LIBDL -ldl" ac_cv_func_dlopen_ldl=yes], ac_cv_func_dlopen_ldl=no)  AC_CHECK_LIB(dl, dlopen, [LIBDL="$LIBDL -ldl" ac_cv_func_dlopen_ldl=yes], ac_cv_func_dlopen_ldl=no)
159    
160  # --enable-multi-thread  # check if the compiler support -fvisibility=hidden (GCC >= 4)
161    saved_CFLAGS="$CFLAGS"
162    CFLAGS="$CFLAGS -fvisibility=hidden"
163    AC_MSG_CHECKING([for -fvisibility=hidden])
164    AC_COMPILE_IFELSE([char foo;],
165        [   AC_MSG_RESULT([yes])
166            SYMBOL_VISIBILITY="-fvisibility=hidden" ],
167        AC_MSG_RESULT([no]))
168    CFLAGS="$saved_CFLAGS"
169    AC_SUBST(SYMBOL_VISIBILITY)
170    
171    # --disable-multi-thread
172  AC_ARG_ENABLE(multi-thread,  AC_ARG_ENABLE(multi-thread,
173          AC_HELP_STRING([--enable-multi-thread],[enable multi threading          AC_HELP_STRING([--disable-multi-thread],[disable multi threading]),
         (default=yes)]),  
174          [ multithread="${enableval}" ], [ multithread=yes ] )          [ multithread="${enableval}" ], [ multithread=yes ] )
175    
176  if test "${multithread}" != no ; then  if test "${multithread}" != no ; then
# Line 160  if test "${multithread}" != no ; then Line 178  if test "${multithread}" != no ; then
178                  [ AC_DEFINE(HAVE_PTHREAD, 1,                  [ AC_DEFINE(HAVE_PTHREAD, 1,
179                          [Define if you have POSIX threads libraries and header files.])                          [Define if you have POSIX threads libraries and header files.])
180                  ], [ AC_MSG_ERROR([POSIX thread support required]) ])                  ], [ AC_MSG_ERROR([POSIX thread support required]) ])
181    
182            multithread=yes
183  fi  fi
184  AC_MSG_RESULT([multi threading         : $multithread])  AC_MSG_RESULT([multi threading         : $multithread])
185    
# Line 198  if test "${ccidtwindir}" = false ; then Line 218  if test "${ccidtwindir}" = false ; then
218  fi  fi
219  AC_MSG_RESULT([serial twin install dir : $ccidtwindir])  AC_MSG_RESULT([serial twin install dir : $ccidtwindir])
220    
221  # --enable-pcsclite  # --disable-pcsclite
222  AC_ARG_ENABLE(pcsclite,  AC_ARG_ENABLE(pcsclite,
223          AC_HELP_STRING([--enable-pcsclite],[compile for pcsc-lite (default=yes)]),          AC_HELP_STRING([--disable-pcsclite],[do not use pcsc-lite debug support]),
224          [ pcsclite=no ], [ pcsclite=yes ] )          [ pcsclite="${enableval}" ], [ pcsclite=yes ] )
225    
226  if test "${pcsclite}" = no ; then  if test "${pcsclite}" = no ; then
227          AM_CONDITIONAL(WITHOUT_PCSC, true)          AM_CONDITIONAL(WITHOUT_PCSC, true)
         AM_CONDITIONAL(NEED_PARSER, true)  
228  else  else
229          # check that pcsc-lite is installed          # check that pcsc-lite is installed
230          OLD_LIBS="$LIBS"          OLD_LIBS="$LIBS"
# Line 215  else Line 234  else
234          LIBS="$OLD_LIBS"          LIBS="$OLD_LIBS"
235    
236          AM_CONDITIONAL(WITHOUT_PCSC, false)          AM_CONDITIONAL(WITHOUT_PCSC, false)
237          AM_CONDITIONAL(NEED_PARSER, false)  
238            pcsclite=yes
239  fi  fi
240  AC_MSG_RESULT([compiled for pcsc-lite  : $pcsclite])  AC_MSG_RESULT([compiled for pcsc-lite  : $pcsclite])
241    

Legend:
Removed from v.1926  
changed lines
  Added in v.2116

  ViewVC Help
Powered by ViewVC 1.1.5