--- qsampler/trunk/configure.ac 2015/04/15 09:13:45 2730 +++ qsampler/trunk/configure.ac 2015/05/23 12:37:34 2765 @@ -1,5 +1,5 @@ # Process this file with autoconf to produce a configure script. -AC_INIT(Qsampler, 0.3.0.1, rncbc@rncbc.org, qsampler) +AC_INIT(Qsampler, 0.3.0.2, rncbc@rncbc.org, qsampler) AC_CONFIG_SRCDIR(src/qsampler.cpp) AC_CONFIG_HEADERS(src/config.h) @@ -133,9 +133,12 @@ ac_topdirs="/usr/share /usr/lib" if test "x$ac_arch" = "xx86_64"; then + ac_topdirs="$ac_topdirs /usr/lib64" +fi + +if test "x$ac_arch" = "xx86_64" -o "x$ac_qt5" = "xyes"; then CFLAGS="-fPIC $CFLAGS" CPPFLAGS="-fPIC $CPPFLAGS" - ac_topdirs="$ac_topdirs /usr/lib64" fi for X in $ac_topdirs; do @@ -163,9 +166,9 @@ ac_incpath="$X/include/$Y $ac_incpath" fi done - CFLAGS="-I$X/include $CFLAGS" - CPPFLAGS="-I$X/include $CPPFLAGS" - ac_incpath="$X/include $ac_incpath" + CFLAGS="$CFLAGS -I$X/include" + CPPFLAGS="$CPPFLAGS -I$X/include" + ac_incpath="$ac_incpath $X/include" fi if test "x$ac_arch" = "xx86_64" -a -d $X/lib64; then LIBS="-L$X/lib64 $LIBS"