From: Rémi Denis-Courmont Date: Sat, 4 Mar 2006 13:31:59 +0000 (+0000) Subject: Don't BUILD_PIC when the platform doesn't need PIC X-Git-Tag: 0.9.0-test0~12055 X-Git-Url: https://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=57ab1681713f288856803392ae58dccc2aa8654b Don't BUILD_PIC when the platform doesn't need PIC --- diff --git a/configure.ac b/configure.ac index 84aa461c48..82984b8e40 100644 --- a/configure.ac +++ b/configure.ac @@ -5231,17 +5231,18 @@ dnl Pic and shared libvlc stuff dnl AS_IF([test "x${enable_shared_libvlc}" = "x"], [enable_shared_libvlc=no]) AM_CONDITIONAL(BUILD_SHARED, [test "${enable_shared_libvlc}" != "no"]) -AM_CONDITIONAL(BUILD_PIC, [test "${build_pic}" = "yes" -o "${enable_shared_libvlc}" != "no"] ) AS_IF([test "${enable_shared_libvlc}" != "no" || test "${enable_libtool}" != "no"], [ AC_DEFINE(HAVE_SHARED_LIBVLC, 1, [Define to 1 if libvlc is built as a shared library.]) ]) pic=no -AS_IF([test "${enable_shared_libvlc}" != "no" -o "${build_pic}" = "yes"], [pic=pic]) +AS_IF([test "${build_pic}" = "yes"], [pic=pic]) AS_IF([test "${SYS}" = "mingw32"], [pic=no]) AS_IF([test "${pic}" = "no"], [pic=]) AC_SUBST(pic) +AM_CONDITIONAL(BUILD_PIC, [test "${build_pic}" = "yes" && test "x${pic}" = "xpic"]) + dnl Import conditional variables generated by bootstrap VLC_CONDITIONALS