Changeset 1011

Show
Ignore:
Timestamp:
01/03/08 10:21:30 (11 months ago)
Author:
ludovic.rousseau
Message:

do not use AC_LIB_LINKFLAGS() since this macro is provided by gettext
and we do not use gettext. Use AC_CHECK_LIB() instead

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1006 r1011  
    145145 
    146146dnl use ltdl 
    147 AC_LIB_LINKFLAGS(ltdl) 
    148  
    149 saved_LIBS="$LIBS" 
    150 LIBS="$saved_LIBS $LIBLTDL" 
    151 AC_CHECK_HEADER([ltdl.h], [AC_MSG_RESULT([yes])], 
    152    [ AC_MSG_ERROR([ltdl.h not found, please install libltdl and/or libtool]) ]) 
    153 LIBS="$saved_LIBS" 
     147if test -z "${LTLIB_LIBS}"; then 
     148    AC_ARG_VAR([LTLIB_CFLAGS], [C compiler flags for libltdl]) 
     149    AC_ARG_VAR([LTLIB_LIBS], [linker flags for libltdl]) 
     150 
     151    AC_CHECK_LIB( 
     152        [ltdl], 
     153        [lt_dlopen], 
     154        [LTLIB_LIBS="-lltdl"], 
     155        [AC_MSG_ERROR([ltdl1 not found, please install libltdl and/or libtool])]) 
     156 
     157    AC_CHECK_HEADER( 
     158        [ltdl.h], 
     159        , 
     160        [AC_MSG_ERROR([ltdl.h not found, please install libltdl and/or libtool])] 
     161    ) 
     162fi 
     163AC_SUBST([LTLIB_CFLAGS]) 
     164AC_SUBST([LTLIB_LIBS]) 
    154165 
    155166dnl See if socket() is found from libsocket 
  • trunk/src/ifd/Makefile.am

    r1009 r1011  
    33MAINTAINERCLEANFILES = Makefile.in 
    44 
    5 INCLUDES = $(CPPFLAGS) $(PCSC_CFLAGS) $(LIBUSB_CFLAGS) 
     5INCLUDES = $(CPPFLAGS) $(PCSC_CFLAGS) $(LIBUSB_CFLAGS) $(LTLIB_CFLAGS) 
    66 
    77noinst_LTLIBRARIES = libifd.la 
     
    2727        ria.c 
    2828# new driver not working yet: ifd-wbeiuu.c 
    29 libifd_la_LIBADD = ../ct/libopenct.la $(LTLIBLTDL) $(LIBUSB_LIBS) 
     29libifd_la_LIBADD = ../ct/libopenct.la $(LTLIB_LIBS) $(LIBUSB_LIBS) 
    3030 
    3131ifdhandler_SOURCES = ifdhandler.c