Changeset 1056

Show
Ignore:
Timestamp:
06/05/08 22:17:07 (6 months ago)
Author:
alonbl
Message:

Prepare for libtool-2

Location:
trunk
Files:
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r1055 r1056  
    99        $(srcdir)/depcomp $(srcdir)/aclocal.m4 $(srcdir)/compile \ 
    1010        $(srcdir)/config.guess $(srcdir)/config.sub \ 
     11        $(srcdir)/aclocal/ltsugar.m4 $(srcdir)/aclocal/libtool.m4 \ 
     12        $(srcdir)/aclocal/ltversion.m4 $(srcdir)/aclocal/lt~obsolete.m4 \ 
     13        $(srcdir)/aclocal/ltoptions.m4 \ 
    1114        $(srcdir)/packaged 
    1215EXTRA_DIST = svnignore 
    1316 
    14 SUBDIRS = aclocal etc macos src doc 
     17SUBDIRS = etc macos src doc 
    1518 
    1619dist_noinst_SCRIPTS = bootstrap 
  • trunk/configure.ac

    r1055 r1056  
    11dnl -*- mode: m4; -*- 
    22 
    3 AC_PREREQ([2.60]) 
     3AC_PREREQ(2.60) 
    44 
    55define([PACKAGE_VERSION_MAJOR], [0]) 
     
    77define([PACKAGE_VERSION_FIX], [14]) 
    88 
    9 AC_INIT([openct], [PACKAGE_VERSION_MAJOR.PACKAGE_VERSION_MINOR.PACKAGE_VERSION_FIX-svn]) 
     9AC_INIT([openct],[PACKAGE_VERSION_MAJOR.PACKAGE_VERSION_MINOR.PACKAGE_VERSION_FIX-svn]) 
    1010AC_CONFIG_AUX_DIR([.]) 
    11 AM_CONFIG_HEADER([config.h]) 
     11AC_CONFIG_HEADERS([config.h]) 
     12AC_CONFIG_MACRO_DIR([m4]) 
    1213AM_INIT_AUTOMAKE([${PACKAGE_NAME}], [${PACKAGE_VERSION}]) 
    1314 
     
    7980AC_ARG_ENABLE( 
    8081        [strict], 
    81         [AC_HELP_STRING([--enable-strict], [enable strict compile mode @<:@disabled@:>@])], 
     82        [AS_HELP_STRING([--enable-strict],[enable strict compile mode @<:@disabled@:>@])], 
    8283        , 
    8384        [enable_strict="no"] 
     
    8687AC_ARG_ENABLE( 
    8788        [pedantic], 
    88         [AC_HELP_STRING([--enable-pedantic], [enable pedantic compile mode @<:@disabled@:>@])], 
     89        [AS_HELP_STRING([--enable-pedantic],[enable pedantic compile mode @<:@disabled@:>@])], 
    8990        , 
    9091        [enable_pedantic="no"] 
     
    9394AC_ARG_ENABLE( 
    9495        [doc], 
    95         [AC_HELP_STRING([--enable-doc], [enable installation of documents @<:@disabled@:>@])], 
     96        [AS_HELP_STRING([--enable-doc],[enable installation of documents @<:@disabled@:>@])], 
    9697        , 
    9798        [enable_doc="no"] 
     
    100101AC_ARG_ENABLE( 
    101102        [api-doc], 
    102         [AC_HELP_STRING([--enable-api-doc], [enable generation and installation of api documents @<:@disabled@:>@])], 
     103        [AS_HELP_STRING([--enable-api-doc],[enable generation and installation of api documents @<:@disabled@:>@])], 
    103104        , 
    104105        [enable_api_doc="no"] 
     
    107108AC_ARG_ENABLE( 
    108109        [pcsc], 
    109         [AC_HELP_STRING([--enable-pcsc], [enable pcsc support @<:@disabled@:>@])], 
     110        [AS_HELP_STRING([--enable-pcsc],[enable pcsc support @<:@disabled@:>@])], 
    110111        , 
    111112        [enable_pcsc="no"] 
     
    114115AC_ARG_ENABLE( 
    115116        [usb], 
    116         [AC_HELP_STRING([--enable-usb], [enable usb support @<:@disabled@:>@])], 
     117        [AS_HELP_STRING([--enable-usb],[enable usb support @<:@disabled@:>@])], 
    117118        , 
    118119        [enable_usb="no"] 
     
    121122AC_ARG_ENABLE( 
    122123        [debug], 
    123         [AC_HELP_STRING([--enable-debug], [enable debug messages @<:@disabled@:>@])], 
     124        [AS_HELP_STRING([--enable-debug],[enable debug messages @<:@disabled@:>@])], 
    124125        [test "${enableval}" = "yes" && AC_DEFINE([DEBUG], [1], [Enable debug messages.])] 
    125126) 
     
    127128AC_ARG_ENABLE( 
    128129        [sunray], 
    129         [AC_HELP_STRING([--enable-sunray], [enable sunray support @<:@disabled@:>@])], 
     130        [AS_HELP_STRING([--enable-sunray],[enable sunray support @<:@disabled@:>@])], 
    130131        [test "${enableval}" = "yes" && AC_DEFINE([sunray], [1], [Enable sunray support.])] 
    131132) 
     
    133134AC_ARG_ENABLE( 
    134135        [sunrayclient], 
    135         [AC_HELP_STRING([--enable-sunrayclient], [enable sunray client support @<:@disabled@:>@])], 
     136        [AS_HELP_STRING([--enable-sunrayclient],[enable sunray client support @<:@disabled@:>@])], 
    136137        [test "${enableval}" = "yes" && AC_DEFINE(sunrayclient, 1, [Enable sunray client support.])] 
    137138) 
     
    139140AC_ARG_ENABLE( 
    140141        [non-privileged], 
    141         [AC_HELP_STRING([--enable-non-privileged], [enable non privileged mode @<:@disabled@:>@])], 
     142        [AS_HELP_STRING([--enable-non-privileged],[enable non privileged mode @<:@disabled@:>@])], 
    142143        [test "${enableval}" = "no" && ENABLE_NON_PRIVILEGED="#"], 
    143144        [ENABLE_NON_PRIVILEGED="#"] 
     
    146147AC_ARG_WITH( 
    147148        [bundle], 
    148         [AC_HELP_STRING([--with-bundle=PATH], [install bundle file for pcsc-lite to PATH @<:@not installed@:>@])], 
     149        [AS_HELP_STRING([--with-bundle=PATH],[install bundle file for pcsc-lite to PATH @<:@not installed@:>@])], 
    149150        [ 
    150151                if test "${withval}" = "yes"; then 
     
    159160AC_ARG_WITH( 
    160161        [udev], 
    161         [AC_HELP_STRING([--with-udev=PATH], [install udev files into PATH @<:@not installed@:>@])], 
     162        [AS_HELP_STRING([--with-udev=PATH],[install udev files into PATH @<:@not installed@:>@])], 
    162163        [ 
    163164                if test "${withval}" = "yes"; then 
     
    172173AC_ARG_WITH( 
    173174        [hotplug], 
    174         [AC_HELP_STRING([--with-hotplug=PATH], [install hotplug files into PATH @<:@not installed@:>@])], 
     175        [AS_HELP_STRING([--with-hotplug=PATH],[install hotplug files into PATH @<:@not installed@:>@])], 
    175176        [ 
    176177                if test "${withval}" = "yes"; then 
     
    185186AC_ARG_WITH( 
    186187        [ifddir], 
    187         [AC_HELP_STRING([--with-ifddir], [ifd directory @<:@/usr/lib/ifd@:>@])], 
     188        [AS_HELP_STRING([--with-ifddir],[ifd directory @<:@/usr/lib/ifd@:>@])], 
    188189        [ifddir="${withval}"], 
    189190        [ifddir="${usrlibdir}/ifd"] 
     
    192193AC_ARG_WITH( 
    193194        [apidocdir], 
    194         [AC_HELP_STRING([--with-apidocdir], [put API documents at this directory @<:@HTMLDIR/api@:>@])], 
     195        [AS_HELP_STRING([--with-apidocdir],[put API documents at this directory @<:@HTMLDIR/api@:>@])], 
    195196        [apidocdir="${with_apidocdir}"], 
    196197        [apidocdir="\$(htmldir)/api"] 
     
    199200AC_ARG_WITH( 
    200201        [daemon-user], 
    201         [AC_HELP_STRING([--with-daemon-user=USER], [use this user for daemon @<:@openctd@:>@])], 
     202        [AS_HELP_STRING([--with-daemon-user=USER],[use this user for daemon @<:@openctd@:>@])], 
    202203        [daemon_user="${withval}"], 
    203204        [daemon_user="openctd"] 
     
    206207AC_ARG_WITH( 
    207208        [daemon-groups], 
    208         [AC_HELP_STRING([--with-daemon-groups=GROUPS], [use these comma separated group list for daemon @<:@usb@:>@])], 
     209        [AS_HELP_STRING([--with-daemon-groups=GROUPS],[use these comma separated group list for daemon @<:@usb@:>@])], 
    209210        [daemon_groups="${withval}"], 
    210211        [daemon_groups="usb"] 
     
    222223AM_PROG_CC_C_O 
    223224AM_PROG_LIBTOOL 
     225#LT_INIT([win32-dll]) 
     226#LT_LANG([Windows Resource]) 
    224227 
    225228AC_CHECK_PROGS([DOXYGEN],[doxygen]) 
     
    321324 
    322325AC_MSG_CHECKING([struct sockaddr_storage::ss_family]) 
    323 AC_TRY_COMPILE( 
    324         [ 
     326AC_COMPILE_IFELSE( 
     327        [AC_LANG_PROGRAM( 
     328                [[ 
    325329#include <sys/types.h> 
    326330#include <sys/socket.h> 
    327         ], 
    328         [ 
     331                ]], 
     332                [[ 
    329333struct sockaddr_storage s; 
    330334s.ss_family = 1; 
    331         ], 
     335                ]] 
     336        )], 
    332337        [AC_MSG_RESULT([ok])], 
    333338        [AC_TRY_COMPILE( 
     
    433438AM_CONDITIONAL([ENABLE_PCSC], [test "${enable_pcsc}" = "yes"]) 
    434439 
    435 AC_OUTPUT([ 
     440AC_CONFIG_FILES([ 
    436441        Makefile 
    437         m4/Makefile 
    438442        doc/Makefile 
    439443        doc/doxygen.conf 
     
    452456        src/tools/openct-tool.1 
    453457]) 
     458AC_OUTPUT 
    454459 
    455460cat <<EOF