Changeset 1028

Show
Ignore:
Timestamp:
04/05/08 00:28:07 (8 months ago)
Author:
alonbl
Message:

New build system

Sync with other projects.

merge -r 1014:1027 https://www.opensc-project.org/svn/openct/branches/alonbl/build

_M .
_M macos
M macos/Makefile.am
M configure.ac
_M doc
D doc/changelog.sh
M doc/doxygen.conf.in
D doc/export-wiki.xsl
M doc/Makefile.am
A doc/opensc-logo.gif
D doc/generate-api.sh
D doc/export-wiki.sh
AM doc/nonpersistent
A doc/nonpersistent/export-wiki.xsl
A doc/nonpersistent/Makefile.am
A doc/nonpersistent/export-wiki.sh
A doc/nonpersistent/svn2cl.xsl
D doc/svn2cl.xsl
A doc/doxygen-footer.html
_M src
_M src/ctapi
M src/ctapi/Makefile.am
_M src/tools
M src/tools/Makefile.am
_M src/ifd
M src/ifd/ifd-cm4000.c
M src/ifd/atr.c
M src/ifd/ifd-pertosmart1030.c
M src/ifd/ifd-pertosmart1038.c
M src/ifd/ifd-rutoken.c
M src/ifd/sys-linux.c
M src/ifd/Makefile.am
_M src/include
_M src/include/openct
M src/include/openct/Makefile.am
M src/include/Makefile.am
_M src/ct
M src/ct/Makefile.am
_M src/pcsc
M src/pcsc/Makefile.am
M src/Makefile.am
M Makefile.am
A svnignore
_M etc
M etc/Makefile.am
_M solaris
_M aclocal
D aclocal/pkg.m4
M aclocal/ac_create_stdint_h.m4
D aclocal/ac_compile_check_sizeof.m4
M aclocal/Makefile.am

Location:
trunk
Files:
7 removed
36 modified
8 copied

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
         1Makefile 
         2Makefile.in 
         3core 
         4archive 
         5acinclude.m4 
         6aclocal.m4 
         7autom4te.cache 
         8compile 
         9confdefs.h 
         10config.* 
         11configure 
         12conftest 
         13conftest.c 
         14depcomp 
         15install-sh 
         16libtool 
         17libtool.m4 
         18ltmain.sh 
         19missing 
         20mkinstalldirs 
         21so_locations 
         22stamp-h* 
         23 
        124.deps 
        225.libs 
         
        1942*.rej 
        2043*.u 
         44*.rc 
         45*.pc 
        2146*~ 
        22 Makefile 
        23 Makefile.in 
        24 core 
        25 gmon.out 
        26 archive 
        27 acinclude.m4 
        28 aclocal.m4 
        29 autom4te.cache 
        30 compile 
        31 confdefs.h 
        32 config.cache 
        33 config.guess 
        34 config.h 
        35 config.h.in 
        36 config.log 
        37 config.status 
        38 config.sub 
        39 configure 
        40 conftest 
        41 conftest.c 
        42 depcomp 
        43 install-sh 
        44 libtool 
        45 libtool.m4 
        46 ltmain.sh 
        47 missing 
        48 mkinstalldirs 
        49 so_locations 
        50 stamp-h* 
         47*.gz 
         48*.bz2 
         49*.[0-9] 
         50*.html 
         51*.gif 
         52*.css 
         53*.out 
         54*.loT 
         55 
         56ChangeLog 
         57doxygen.conf 
         58reader.conf 
         59openct_serial 
         60openct.hald 
         61openct_usb 
         62openct_pcmcia 
         63init-script 
         64openct.conf 
         65types.h 
         66ifdhandler 
         67ifdproxy 
         68openct-tool 
         69openct-control 
  • trunk/Makefile.am

    r806 r1028  
    1 # Process this file with automake to create Makefile.in 
     1AUTOMAKE_OPTIONS = foreign 1.10 
     2ACLOCAL_AMFLAGS = -I aclocal 
    23 
    3 SUBDIRS = . aclocal etc macos src  
    4 DIST_SUBDIRS = . aclocal doc etc macos src  
     4MAINTAINERCLEANFILES = \ 
     5        config.log config.status \ 
     6        $(srcdir)/Makefile.in \ 
     7        $(srcdir)/config.h.in $(srcdir)/config.h.in~ $(srcdir)/configure \ 
     8        $(srcdir)/install-sh $(srcdir)/ltmain.sh $(srcdir)/missing \ 
     9        $(srcdir)/depcomp $(srcdir)/aclocal.m4 $(srcdir)/compile \ 
     10        $(srcdir)/config.guess $(srcdir)/config.sub \ 
     11        $(srcdir)/packaged 
     12EXTRA_DIST = svnignore 
    513 
    6 EXTRA_DIST = LGPL-2.1 NEWS TODO bootstrap depcomp \ 
     14SUBDIRS = aclocal etc macos src doc 
     15 
     16dist_noinst_SCRIPTS = bootstrap 
     17dist_noinst_DATA = LGPL-2.1 TODO \ 
    718        solaris/Makefile.client solaris/Makefile.server solaris/README \ 
    819        solaris/checkinstall.in solaris/devices-openct-fabric.xml-dist \ 
     
    1021        solaris/openct.conf-dist solaris/pkginfo.in solaris/postinstall \ 
    1122        solaris/preremove solaris/proto 
     23dist_doc_DATA = NEWS 
    1224 
    13 MAINTAINERCLEANFILES = \ 
    14         Makefile.in config.h.in configure \ 
    15         install-sh ltmain.sh missing mkinstalldirs \ 
    16         compile depcomp config.log config.status \ 
    17         config.guess config.sub acinclude.m4 aclocal.m4 
    18  
    19 DEPCLEANFILES = config.log configure 
    20  
    21 AUTOMAKE_OPTIONS = foreign 1.5 
    22 ACLOCAL_AMFLAGS = -I aclocal 
     25# Allow detection of packaged tarball 
     26dist-hook: 
     27        echo > "$(distdir)/packaged" 
  • trunk/aclocal

    • Property svn:ignore
      •  

        old new  
         1Makefile 
         2Makefile.in 
         3core 
         4archive 
         5acinclude.m4 
         6aclocal.m4 
         7autom4te.cache 
         8compile 
         9confdefs.h 
         10config.* 
         11configure 
         12conftest 
         13conftest.c 
         14depcomp 
         15install-sh 
         16libtool 
         17libtool.m4 
         18ltmain.sh 
         19missing 
         20mkinstalldirs 
         21so_locations 
         22stamp-h* 
         23 
        124.deps 
        225.libs 
         
        1942*.rej 
        2043*.u 
         44*.rc 
         45*.pc 
        2146*~ 
        22 Makefile 
        23 Makefile.in 
        24 core 
        25 gmon.out 
         47*.gz 
         48*.bz2 
         49*.[0-9] 
         50*.html 
         51*.gif 
         52*.css 
         53*.out 
         54*.loT 
         55 
         56ChangeLog 
         57doxygen.conf 
         58reader.conf 
         59openct_serial 
         60openct.hald 
         61openct_usb 
         62openct_pcmcia 
         63init-script 
         64openct.conf 
         65types.h 
         66ifdhandler 
         67ifdproxy 
         68openct-tool 
         69openct-control 
  • trunk/aclocal/Makefile.am

    r769 r1028  
    1 # Process this file with automake to create Makefile.in 
     1MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 
    22 
    3 MAINTAINERCLEANFILES = Makefile.in 
    4  
    5 EXTRA_DIST = ac_compile_check_sizeof.m4 ac_create_stdint_h.m4 \ 
    6         acx_pthread.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 pkg.m4 
     3dist_noinst_DATA = ac_create_stdint_h.m4 \ 
     4        acx_pthread.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 
  • trunk/aclocal/ac_create_stdint_h.m4

    r359 r1028  
    1616dnl int_least32_t.. int_fast32_t.. intmax_t 
    1717dnl which may or may not rely on the definitions of other files, 
    18 dnl or using the AC_COMPILE_CHECK_SIZEOF macro to determine the actual 
     18dnl or using the AC_CHECK_SIZEOF macro to determine the actual 
    1919dnl sizeof each type. 
    2020dnl 
     
    3939AC_DEFUN([AC_CREATE_STDINT_H], 
    4040[# ------ AC CREATE STDINT H ------------------------------------- 
     41AC_PROG_MKDIR_P 
     42AC_PROG_SED 
    4143AC_MSG_CHECKING([for stdint-types....]) 
    4244ac_stdint_h=`echo ifelse($1, , _stdint.h, $1)` 
     
    9092 
    9193if test "$ac_cv_header_stdint_x" = "no-file" ; then 
    92    AC_COMPILE_CHECK_SIZEOF(char) 
    93    AC_COMPILE_CHECK_SIZEOF(short) 
    94    AC_COMPILE_CHECK_SIZEOF(int) 
    95    AC_COMPILE_CHECK_SIZEOF(long) 
    96    AC_COMPILE_CHECK_SIZEOF(void*) 
     94   AC_CHECK_SIZEOF(char) 
     95   AC_CHECK_SIZEOF(short) 
     96   AC_CHECK_SIZEOF(int) 
     97   AC_CHECK_SIZEOF(long) 
     98   AC_CHECK_SIZEOF(void*) 
    9799   ac_cv_header_stdint_test="yes" 
    98100else 
     
    103105_ac_stdint_h=AS_TR_CPP(_$ac_stdint_h) 
    104106AC_MSG_RESULT(creating $ac_stdint_h : $_ac_stdint_h) 
     107${MKDIR_P} $(echo "${ac_stdint_h}" | ${SED} 's/[[^/]]*$//') 2> /dev/null 
    105108echo "#ifndef" $_ac_stdint_h >$ac_stdint_h 
    106109echo "#define" $_ac_stdint_h "1" >>$ac_stdint_h 
  • trunk/configure.ac

    r1011 r1028  
    11dnl -*- mode: m4; -*- 
    2 dnl Process this file with autoconf to produce a configure script. 
    3  
    4 # Require autoconf 2.52 
    5 AC_PREREQ(2.52) 
    6 AC_INIT([openct], [0.6.14-svn]) 
    7 AM_INIT_AUTOMAKE 
    8 AM_CONFIG_HEADER(config.h) 
    9  
    10 AC_CONFIG_SRCDIR(src/ifd/ifdhandler.c) 
     2 
     3AC_PREREQ([2.60]) 
     4 
     5define([PACKAGE_VERSION_MAJOR], [0]) 
     6define([PACKAGE_VERSION_MINOR], [6]) 
     7define([PACKAGE_VERSION_FIX], [14]) 
     8 
     9AC_INIT([openct], [PACKAGE_VERSION_MAJOR.PACKAGE_VERSION_MINOR.PACKAGE_VERSION_FIX-svn]) 
     10AC_CONFIG_AUX_DIR([.]) 
     11AM_CONFIG_HEADER([config.h]) 
     12AM_INIT_AUTOMAKE([${PACKAGE_NAME}], [${PACKAGE_VERSION}]) 
     13 
     14OPENCT_VERSION_MAJOR="PACKAGE_VERSION_MAJOR" 
     15OPENCT_VERSION_MINOR="PACKAGE_VERSION_MINOR" 
     16OPENCT_VERSION_FIX="PACKAGE_VERSION_FIX" 
    1117 
    1218# LT Version numbers, remember to change them just *before* a release. 
    1319#   (Code changed:                      REVISION++) 
    14 #   (Interfaces added/removed/changed:  CURRENT++, REVISION=0) 
    15 #   (Interfaces added:                  AGE++) 
    16 #   (Interfaces removed:                AGE=0) 
    17 OPENCT_LT_CURRENT=1 
    18 OPENCT_LT_REVISION=0 
    19 OPENCT_LT_AGE=0 
    20  
    21 AC_SUBST(OPENCT_LT_CURRENT) 
    22 AC_SUBST(OPENCT_LT_REVISION) 
    23 AC_SUBST(OPENCT_LT_AGE) 
     20#   (Oldest interface removed:          OLDEST++) 
     21#   (Interfaces added:                  CURRENT++, REVISION=0) 
     22OPENCT_LT_CURRENT="1" 
     23OPENCT_LT_OLDEST="1" 
     24OPENCT_LT_REVISION="0" 
     25OPENCT_LT_AGE="$((${OPENCT_LT_CURRENT}-${OPENCT_LT_OLDEST}))" 
     26 
     27AC_CONFIG_SRCDIR(src/ifd/ifdhandler.c) 
    2428 
    2529AC_CANONICAL_HOST 
    2630AC_PROG_CC 
     31PKG_PROG_PKG_CONFIG 
    2732AC_C_BIGENDIAN 
    2833 
     34AC_MSG_CHECKING([svn checkout]) 
     35if test -e packaged; then 
     36        svn_checkout="no" 
     37else 
     38        svn_checkout="yes" 
     39fi 
     40AC_MSG_RESULT([${svn_checkout}]) 
     41 
    2942dnl Check for some target-specific stuff 
    30 case "$host" in 
    31 *-*-hpux*) 
    32         CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED" 
    33         ;; 
    34 *-*-solaris*) 
    35         CPPFLAGS="$CPPFLAGS -I/usr/sfw/include -I/usr/local/include" 
    36         LDFLAGS="$LDFLAGS -L/usr/sfw/lib -R/usr/sfw/lib -L/usr/local/lib -R/usr/local/lib" 
    37         need_dash_r=1 
    38         ;; 
    39 *-*-sunos4*) 
    40         CPPFLAGS="$CPPFLAGS -DSUNOS4" 
    41         ;; 
    42 *-*-aix*) 
    43         CPPFLAGS="$CPPFLAGS -I/usr/local/include" 
    44         LDFLAGS="$LDFLAGS -L/usr/local/lib" 
    45         if (test "$LD" != "gcc" && test -z "$blibpath"); then 
    46                 blibpath="/usr/lib:/lib:/usr/local/lib" 
    47         fi 
    48         ;; 
    49 *-*-osf*) 
    50         CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET" 
    51         ;; 
    52 *-*-linux*) 
    53         ;; 
    54 *-*-darwin*) 
    55         LIBS="$LIBS -Wl,-framework,CoreFoundation" 
    56         if test "$GCC" = "yes"; then 
    57                 CFLAGS="$CFLAGS -no-cpp-precomp" 
    58         fi 
     43case "${host}" in 
     44        *-*-hpux*) 
     45                CPPFLAGS="${CPPFLAGS} -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED" 
     46        ;; 
     47        *-*-solaris*) 
     48                CPPFLAGS="${CPPFLAGS} -I/usr/local/include" 
     49                LDFLAGS="${LDFLAGS} -L/usr/local/lib -R/usr/local/lib" 
     50                need_dash_r="1" 
     51        ;; 
     52        *-*-sunos4*) 
     53                CPPFLAGS="${CPPFLAGS} -DSUNOS4" 
     54        ;; 
     55        *-*-aix*) 
     56                CPPFLAGS="${CPPFLAGS} -I/usr/local/include" 
     57                LDFLAGS="${LDFLAGS} -L/usr/local/lib" 
     58                if test "${LD}" != "gcc" -a -z "${blibpath}"; then 
     59                        blibpath="/usr/lib:/lib:/usr/local/lib" 
     60                fi 
     61        ;; 
     62        *-*-osf*) 
     63                CPPFLAGS="${CPPFLAGS} -D_POSIX_PII_SOCKET" 
     64        ;; 
     65        *-*-darwin*) 
     66                LIBS="${LIBS} -Wl,-framework,CoreFoundation" 
     67                if test "${GCC}" = "yes"; then 
     68                        CFLAGS="${CFLAGS} -no-cpp-precomp" 
     69                fi 
    5970        ;; 
    6071esac 
    6172 
    62 AC_ARG_WITH(common-dir, 
    63         AC_HELP_STRING([--with-common-dir=PATH], [Specify path for common installation libraries]), 
    64         [ 
    65                 if test "x$withval" != "xno" ; then 
    66                         trycommondir=$withval 
    67                 fi 
    68         ] 
    69 ) 
    70  
    71 saved_LDFLAGS="$LDFLAGS" 
    72 saved_CPPFLAGS="$CPPFLAGS" 
    73 AC_CACHE_CHECK([for common directory], ac_cv_commondir, [ 
    74         for commondir in $trycommondir "" /usr/local /usr/pkg /opt ; do 
    75                 # Skip directories if they don't exist 
    76                 if test ! -z "$commondir" -a ! -d "$commondir/" ; then 
    77                         continue; 
    78                 fi 
    79                 CPPFLAGS="$saved_CPPFLAGS" 
    80                 LDFLAGS="$saved_LDFLAGS" 
    81  
    82                 if test ! -z "$commondir" -a "x$commondir" != "x/usr"; then 
    83                         LDFLAGS="-L$commondir/lib $saved_LDFLAGS" 
    84                         if test ! -z "$need_dash_r" ; then 
    85                                 LDFLAGS="-R$commondir/lib $LDFLAGS" 
    86                         fi 
    87                         CPPFLAGS="-I$commondir/include $saved_CPPFLAGS" 
    88                 fi 
    89                 break; 
    90         done 
    91  
    92         if test -z "$commondir" ; then 
    93                 commondir="(system)" 
    94         fi 
    95         ac_cv_commondir=$commondir 
    96 ]) 
    97  
    98 dnl Options 
    99 AM_MAINTAINER_MODE 
     73rootlibdir="/lib${libdir##*/lib}" 
     74usrlibdir="/usr/lib${libdir##*/lib}" 
     75usrsbindir="/usr/sbin${libdir##*/sbin}" 
     76 
     77full_sysconfdir=`eval eval eval eval eval echo "${sysconfdir}" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"` 
     78full_localstatedir=`eval eval eval eval eval echo "${localstatedir}" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"` 
     79 
     80AC_ARG_ENABLE( 
     81        [strict], 
     82        [AC_HELP_STRING([--enable-strict], [enable strict compile mode @<:@disabled@:>@])], 
     83        , 
     84        [enable_strict="no"] 
     85) 
     86 
     87AC_ARG_ENABLE( 
     88        [pedantic], 
     89        [AC_HELP_STRING([--enable-pedantic], [enable pedantic compile mode @<:@disabled@:>@])], 
     90        , 
     91        [enable_pedantic="no"] 
     92) 
     93 
     94AC_ARG_ENABLE( 
     95        [doc], 
     96        [AC_HELP_STRING([--enable-doc], [enable installation of documents. @<:@disabled@:>@])], 
     97        , 
     98        [enable_doc="no"] 
     99) 
     100 
     101AC_ARG_ENABLE( 
     102        [api-doc], 
     103        [AC_HELP_STRING([--enable-api-doc], [enable generation and installation of api documents. @<:@disabled@:>@])], 
     104        , 
     105        [enable_api_doc="no"] 
     106) 
     107 
     108AC_ARG_ENABLE( 
     109        [pcsc], 
     110        [AC_HELP_STRING([--enable-pcsc], [enable pcsc support. @<:@disabled@:>@])], 
     111        , 
     112        [enable_pcsc="no"] 
     113) 
     114 
     115AC_ARG_ENABLE( 
     116        [usb], 
     117        [AC_HELP_STRING([--enable-usb], [enable usb support. @<:@disabled@:>@])], 
     118        , 
     119        [enable_usb="no"] 
     120) 
     121 
     122AC_ARG_ENABLE( 
     123        [debug], 
     124        [AC_HELP_STRING([--enable-debug], [enable debug messages. @<:@disabled@:>@])], 
     125        [test "${enableval}" = "yes" && AC_DEFINE([DEBUG], [1], [Enable debug messages.])] 
     126) 
     127 
     128AC_ARG_ENABLE( 
     129        [sunray], 
     130        [AC_HELP_STRING([--enable-sunray], [enable sunray support. @<:@disabled@:>@])], 
     131        [test "${enableval}" = "yes" && AC_DEFINE([sunray], [1], [Enable sunray support.])] 
     132) 
     133 
     134AC_ARG_ENABLE( 
     135        [sunrayclient], 
     136        [AC_HELP_STRING([--enable-sunrayclient], [enable sunray client support. @<:@disabled@:>@])], 
     137        [test "${enableval}" = "yes" && AC_DEFINE(sunrayclient, 1, [Enable sunray client support.])] 
     138) 
     139 
     140AC_ARG_WITH( 
     141        [bundle], 
     142        [AC_HELP_STRING([--with-bundle=PATH], [install bundle file for pcsc-lite to PATH @<:@not installed@:>@])], 
     143        [ 
     144                if test "${withval}" = "yes"; then 
     145                        bundledir="\$(libdir)" 
     146                else 
     147                        bundledir="${withval}" 
     148                fi 
     149        ], 
     150        [bundledir=""] 
     151) 
     152 
     153AC_ARG_WITH( 
     154        [udev], 
     155        [AC_HELP_STRING([--with-udev=PATH], [install udev files into PATH @<:@not installed@:>@])], 
     156        [ 
     157                if test "${withval}" = "yes"; then 
     158                        udevdir="\$(libdir)/udev" 
     159                else 
     160                        udevdir="${withval}" 
     161                fi 
     162        ], 
     163        [udevdir=""] 
     164) 
     165 
     166AC_ARG_WITH( 
     167        [hotplug], 
     168        [AC_HELP_STRING([--with-hotplug=PATH], [install hotplug files into PATH @<:@not installed@:>@])], 
     169        [ 
     170                if test "${withval}" = "yes"; then 
     171                        hotplugdir="\$(sysconfdir)/hotplug/usb" 
     172                else 
     173                        hotplugdir="${withval}" 
     174                fi 
     175        ], 
     176        [hotplugdir=""] 
     177) 
     178 
     179AC_ARG_WITH( 
     180        [ifddir], 
     181        [AC_HELP_STRING([--with-ifddir], [ifd directory. @<:@/usr/lib/ifd@:>@])], 
     182        [ifddir="${withval}"], 
     183        [ifddir="${usrlibdir}/ifd"] 
     184) 
     185 
     186AC_ARG_WITH( 
     187        [apidocdir], 
     188        [AC_HELP_STRING([--with-apidocdir], [put API documents at this directory, default HTMLDIR/api])], 
     189        [apidocdir="${with_apidocdir}"], 
     190        [apidocdir="\$(htmldir)/api"] 
     191) 
    100192 
    101193dnl Checks for programs. 
     
    103195AC_PROG_INSTALL 
    104196AC_PROG_LN_S 
     197AC_PROG_MKDIR_P 
     198AC_PROG_SED 
    105199AC_PROG_MAKE_SET 
    106 AM_PROG_LEX 
    107  
    108 dnl Special check for pthread support. 
    109 ACX_PTHREAD( 
    110 [ 
    111  AC_DEFINE(HAVE_PTHREAD,1, 
    112   [Define if you have POSIX threads libraries and header files.]) 
    113 ], [ 
    114  AC_MSG_ERROR([POSIX thread support required]) 
    115 ]) 
    116 LIBS="$PTHREAD_LIBS $LIBS" 
    117 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 
    118 CC="$PTHREAD_CC" 
    119200 
    120201dnl Add libtool support. 
     202AM_PROG_CC_C_O 
    121203AM_PROG_LIBTOOL 
     204 
     205AC_CHECK_PROGS([DOXYGEN],[doxygen]) 
     206test "${enable_api_doc}" = "yes" -a -z "${DOXYGEN}" && AC_MSG_ERROR([doxygen is required for api doc]) 
     207 
     208dnl These required for svn checkout 
     209AC_ARG_VAR([XSLTPROC], [xsltproc utility]) 
     210AC_ARG_VAR([SVN], [subversion utility]) 
     211AC_ARG_VAR([WGET], [wget utility]) 
     212AC_ARG_VAR([WGET_OPTS], [wget options]) 
     213AC_ARG_VAR([TR], [tr utility]) 
     214AC_CHECK_PROGS([XSLTPROC],[xsltproc]) 
     215AC_CHECK_PROGS([SVN],[svn]) 
     216AC_CHECK_PROGS([WGET],[wget]) 
     217AC_CHECK_PROGS([TR],[tr]) 
     218test -z "${WGET_OPTS}" && WGET_OPTS="-nv" 
     219 
     220dnl svn checkout dependencies 
     221if test "${svn_checkout}" = "yes"; then 
     222        AC_MSG_CHECKING([XSLTPROC requirement]) 
     223        if test -n "${XSLTPROC}"; then 
     224                AC_MSG_RESULT([ok]) 
     225        else 
     226                if test "${enable_doc}" = "yes"; then 
     227                        AC_MSG_ERROR([Missing XSLTPROC svn build with doc]) 
     228                else 
     229                        AC_MSG_WARN(["make dist" will not work]) 
     230                fi 
     231        fi 
     232 
     233        AC_MSG_CHECKING([svn doc build dependencies]) 
     234        if test -n "${SVN}" -a -n "${TR}" -a -n "${WGET}"; then 
     235                AC_MSG_RESULT([ok]) 
     236        else 
     237                if test "${enable_doc}" = "yes"; then 
     238                        AC_MSG_ERROR([Missing SVN, TR or WGET for svn doc build]) 
     239                else 
     240                        AC_MSG_WARN(["make dist" will not work]) 
     241                fi 
     242        fi 
     243fi 
    122244 
    123245dnl Checks for header files. 
    124246AC_HEADER_STDC 
    125247AC_HEADER_SYS_WAIT 
    126 AC_CHECK_HEADERS([errno.h fcntl.h malloc.h stdlib.h string.h strings.h sys/time.h unistd.h getopt.h dlfcn.h sys/poll.h]) 
     248AC_CHECK_HEADERS([ \ 
     249        errno.h fcntl.h malloc.h stdlib.h string.h \ 
     250        strings.h sys/time.h unistd.h getopt.h \ 
     251        dlfcn.h sys/poll.h 
     252]) 
    127253 
    128254dnl Checks for typedefs, structures, and compiler characteristics. 
     
    140266dnl C Compiler features 
    141267AC_C_INLINE 
    142 if test "$GCC" = "yes"; then 
    143         CFLAGS="-Wall $CFLAGS" 
    144 fi 
    145  
    146 dnl use ltdl 
     268 
     269dnl See if socket() is found from libsocket 
     270AC_CHECK_LIB( 
     271        [socket], 
     272        [socket], 
     273        [ 
     274                LIBS="${LIBS} -lsocket" 
     275                AC_CHECK_LIB( 
     276                        [resolv], 
     277                        [res_query], 
     278                        [LIBS="${LIBS} -lresolv"] 
     279                ) 
     280        ] 
     281) 
     282 
     283AC_ARG_VAR([LTLIB_CFLAGS], [C compiler flags for libltdl]) 
     284AC_ARG_VAR([LTLIB_LIBS], [linker flags for libltdl]) 
    147285if 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     ) 
    162 fi