diff -Naurp snort-2.9.3.1/configure.in snort-2.9.3.1.dlucio/configure.in --- snort-2.9.3.1/configure.in 2012-07-31 09:47:42.000000000 -0500 +++ snort-2.9.3.1.dlucio/configure.in 2012-09-22 17:56:04.849451411 -0500 @@ -79,6 +79,17 @@ case "$host" in AC_DEFINE([LINUX],[1],[Define if Linux]) AC_SUBST(extra_incl) extra_incl="-I/usr/include/pcap" + # Test if the compiler is 64bit + echo 'int i;' > conftest.$ac_ext + snort_cv_cc_64bit_output=no + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *"ELF 64"*) + snort_cv_cc_64bit_output=yes + ;; + esac + fi + rm -rf conftest* ;; *-hpux10*|*-hpux11*) AC_DEFINE([HPUX],[1],[Define if HP-UX 10 or 11]) @@ -113,6 +124,15 @@ case "$host" in AC_DEFINE([BROKEN_SIOCGIFMTU],[1],[Define if broken SIOCGIFMTU]) esac +case $host_cpu:$snort_cv_cc_64bit_output in +powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) + snort_libname="lib64" + ;; +*:*) + snort_libname="lib" + ;; +esac + AC_HEADER_STDBOOL # ICC stuff