Show
Ignore:
Timestamp:
03/04/08 18:13:56 (7 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1204654436 +0000
git-parent:

[bffc38f9be526436b3f50da8d06bb6987008a7f1]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1204654436 +0000
Message:

refactor shared code, add module dependency detection and start splitting out libs in configure

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure.in

    rbffc38f r9a6060c  
    7171        ] 
    7272) 
    73 AC_CHECK_LIB(pq, PQconnectdb, , 
     73 
     74SAVELIBS="$LIBS" 
     75AC_CHECK_LIB(pq, PQconnectdb, 
     76        [ 
     77                LIBS="$LIBS -lpq" 
     78                PGLIBS="$LIBS" 
     79                AC_SUBST(PGLIBS) 
     80        ], 
    7481        [ 
    7582                AC_MSG_ERROR([libpq required]) 
     
    8188        [ AC_MSG_ERROR([Cannot compile/link against libpq]) ] 
    8289) 
     90LIBS="$SAVELIBS" 
     91 
     92######## 
     93# 
     94# CHECK FOR VARIOUS MODULE CRITERIA 
     95# We don't track the libs themselves, as we'll just explictly link 
     96# against the in the makefile if we enable them to build (by adding 
     97# them to the BUILD_MODULES list). 
     98# 
     99######## 
     100 
     101# Should we build snmp checks? 
     102SAVELIBS="$LIBS" 
     103AC_CHECK_LIB(netsnmp, snmp_sess_open, 
     104        [ 
     105                BUILD_MODULES="$BUILD_MODULES snmp.$MODULEEXT" 
     106        ], 
     107        [ 
     108                AC_MSG_ERROR([No libnetsnmp, skipping snmp module]) 
     109        ] 
     110) 
     111LIBS="$SAVELIBS" 
    83112 
    84113AC_MSG_CHECKING([libxml2 cflags]) 
     
    296325fi 
    297326 
     327AC_SUBST(BUILD_MODULES) 
     328 
    298329docdir="docs" 
    299330mansubdir="man"