]> The Tcpdump Group git mirrors - libpcap/commitdiff
Support static only build
authorAlon Bar-Lev <[email protected]>
Wed, 4 Jan 2012 14:13:44 +0000 (16:13 +0200)
committerAlon Bar-Lev <[email protected]>
Wed, 4 Jan 2012 14:20:52 +0000 (16:20 +0200)
Introduce --disable-shared configure option.

This is relevant mostly for AIX, as current build system favor
the shared version over the static one without allowing proper
override.

configure.in

index fb68d94ed65873d01a94ab1008075a562fc3f7a1..8432d2a8538d65ed23197fd8c94be27a176e1231 100644 (file)
@@ -1224,6 +1224,10 @@ solaris*)
        ;;
 esac
 
+AC_ARG_ENABLE(shared,
+AC_HELP_STRING([--enable-shared],[build shared libraries @<:@default=yes, if support available@:>@]))
+test "x$enable_shared" = "xno" && DYEXT="none"
+
 AC_PROG_RANLIB
 AC_CHECK_TOOL([AR], [ar])