Changeset 1870

Show
Ignore:
Timestamp:
05/15/07 20:50:59 (20 months ago)
Author:
aturner
Message:

apply Bojan's patch. fixes #179

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r1865 r1870  
    347347                LNETINCDIR="${testdir}/include" 
    348348                if test $dynamic_link = yes; then 
    349                                 if test -f "${testdir}/lib64/libnet.a" ; then 
     349                                if test -f "${testdir}/lib64/libnet${shrext_cmds}" ; then 
    350350                            LNETLIB="-L${testdir}/lib64 -lnet" 
    351                                 elif test -f "${testdir}/lib/libnet.a" ; then 
     351                                elif test -f "${testdir}/lib/libnet${shrext_cmds}" ; then 
    352352                                        LNETLIB="-L${testdir}/lib -lnet" 
    353353                                else 
    354354                                        AC_ERROR([Unable to find libnet in ${testdir}]) 
    355355                                fi 
    356                 elif test -f "${testdir}/lib64/libnet.a" ; then 
    357                     LNETLIB="${testdir}/lib64/libnet.a" 
    358                 elif test -f "${testdir}/lib/libnet.a" ; then 
    359                     LNETLIB="${testdir}/lib/libnet.a" 
     356                elif test -f "${testdir}/lib64/libnet.${libext}" ; then 
     357                    LNETLIB="${testdir}/lib64/libnet.${libext}" 
     358                elif test -f "${testdir}/lib/libnet.${libext}" ; then 
     359                    LNETLIB="${testdir}/lib/libnet.${libext}" 
    360360                        else 
    361361                                AC_ERROR([Unable to find matching library for header file in ${testdir}]) 
     
    472472                LPCAPINCDIR="${testdir}/include" 
    473473                if test $dynamic_link = yes; then 
    474                                 if test -f "${testdir}/lib64/libpcap.a" ; then 
     474                                if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then 
    475475                            LPCAPLIB="-L${testdir}/lib64 -lpcap" 
    476                                 elif test -f "${testdir}/lib/libpcap.a" ; then 
     476                                elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then 
    477477                                        LPCAPLIB="-L${testdir}/lib -lpcap" 
    478478                                else 
    479479                                        AC_ERROR([Unable to find libpcap in ${testdir}]) 
    480480                                fi 
    481                 elif test -f "${testdir}/lib64/libpcap.a" ; then 
    482                     LPCAPLIB="${testdir}/lib64/libpcap.a" 
    483                 elif test -f "${testdir}/lib/libpcap.a" ; then 
    484                     LPCAPLIB="${testdir}/lib/libpcap.a" 
    485                 elif test -f "${testdir}/lib/libwpcap.a" ; then 
    486                     LPCAPLIB="${testdir}/lib/libwpcap.a" 
     481                elif test -f "${testdir}/lib64/libpcap.${libext}" ; then 
     482                    LPCAPLIB="${testdir}/lib64/libpcap.${libext}" 
     483                elif test -f "${testdir}/lib/libpcap.${libext}" ; then 
     484                    LPCAPLIB="${testdir}/lib/libpcap.${libext}" 
     485                elif test -f "${testdir}/lib/libwpcap.${libext}" ; then 
     486                    LPCAPLIB="${testdir}/lib/libwpcap.${libext}" 
    487487                                AC_DEFINE([HAVE_WINPCAP], [1], [Do we have WinPcap?]) 
    488488                        else