/[pcsclite]/trunk/Drivers/ccid/configure.in
ViewVC logotype

Diff of /trunk/Drivers/ccid/configure.in

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

revision 1942 by rousseau, Mon Mar 20 08:04:22 2006 UTC revision 2011 by rousseau, Tue Apr 18 15:03:10 2006 UTC
# Line 153  AC_MSG_RESULT([use libusb              : Line 153  AC_MSG_RESULT([use libusb              :
153  AC_SUBST(LIBDL)  AC_SUBST(LIBDL)
154  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)
155    
156  # --enable-multi-thread  # check if the compiler support -fvisibility=hidden (GCC >= 4)
157    saved_CFLAGS="$CFLAGS"
158    CFLAGS="$CFLAGS -fvisibility=hidden"
159    AC_MSG_CHECKING([for -fvisibility=hidden])
160    AC_COMPILE_IFELSE([char foo;],
161        [   AC_MSG_RESULT([yes])
162            SYMBOL_VISIBILITY="-fvisibility=hidden" ],
163        AC_MSG_RESULT([no]))
164    CFLAGS="$saved_CFLAGS"
165    AC_SUBST(SYMBOL_VISIBILITY)
166    
167    # --disable-multi-thread
168  AC_ARG_ENABLE(multi-thread,  AC_ARG_ENABLE(multi-thread,
169          AC_HELP_STRING([--enable-multi-thread],[enable multi threading          AC_HELP_STRING([--disable-multi-thread],[disable multi threading]),
         (default=yes)]),  
170          [ multithread="${enableval}" ], [ multithread=yes ] )          [ multithread="${enableval}" ], [ multithread=yes ] )
171    
172  if test "${multithread}" != no ; then  if test "${multithread}" != no ; then
# Line 164  if test "${multithread}" != no ; then Line 174  if test "${multithread}" != no ; then
174                  [ AC_DEFINE(HAVE_PTHREAD, 1,                  [ AC_DEFINE(HAVE_PTHREAD, 1,
175                          [Define if you have POSIX threads libraries and header files.])                          [Define if you have POSIX threads libraries and header files.])
176                  ], [ AC_MSG_ERROR([POSIX thread support required]) ])                  ], [ AC_MSG_ERROR([POSIX thread support required]) ])
177    
178            multithread=yes
179  fi  fi
180  AC_MSG_RESULT([multi threading         : $multithread])  AC_MSG_RESULT([multi threading         : $multithread])
181    
# Line 202  if test "${ccidtwindir}" = false ; then Line 214  if test "${ccidtwindir}" = false ; then
214  fi  fi
215  AC_MSG_RESULT([serial twin install dir : $ccidtwindir])  AC_MSG_RESULT([serial twin install dir : $ccidtwindir])
216    
217  # --enable-pcsclite  # --disable-pcsclite
218  AC_ARG_ENABLE(pcsclite,  AC_ARG_ENABLE(pcsclite,
219          AC_HELP_STRING([--enable-pcsclite],[compile for pcsc-lite (default=yes)]),          AC_HELP_STRING([--disable-pcsclite],[do not use pcsc-lite debug support]),
220          [ pcsclite=no ], [ pcsclite=yes ] )          [ pcsclite="${enableval}" ], [ pcsclite=yes ] )
221    
222  if test "${pcsclite}" = no ; then  if test "${pcsclite}" = no ; then
223          AM_CONDITIONAL(WITHOUT_PCSC, true)          AM_CONDITIONAL(WITHOUT_PCSC, true)
         AM_CONDITIONAL(NEED_PARSER, true)  
224  else  else
225          # check that pcsc-lite is installed          # check that pcsc-lite is installed
226          OLD_LIBS="$LIBS"          OLD_LIBS="$LIBS"
# Line 219  else Line 230  else
230          LIBS="$OLD_LIBS"          LIBS="$OLD_LIBS"
231    
232          AM_CONDITIONAL(WITHOUT_PCSC, false)          AM_CONDITIONAL(WITHOUT_PCSC, false)
233          AM_CONDITIONAL(NEED_PARSER, false)  
234            pcsclite=yes
235  fi  fi
236  AC_MSG_RESULT([compiled for pcsc-lite  : $pcsclite])  AC_MSG_RESULT([compiled for pcsc-lite  : $pcsclite])
237    

Legend:
Removed from v.1942  
changed lines
  Added in v.2011

  ViewVC Help
Powered by ViewVC 1.1.5