mac: only use gtk compile flag, if osxapp is enabled
authorArun Persaud <arun@nubati.net>
Wed, 22 Oct 2014 03:37:41 +0000 (20:37 -0700)
committerArun Persaud <arun@nubati.net>
Wed, 22 Oct 2014 04:31:10 +0000 (21:31 -0700)
configure.ac

index 421f39b..c0058e0 100644 (file)
@@ -474,7 +474,10 @@ dnl| add some libs for OS X
       MACOSX_VERSION=`$SW_VERS -productVersion`
       AC_MSG_RESULT([$MACOSX_VERSION])
     fi
-    FRONTEND_LIBS="$FRONTEND_LIBS -lgtkmacintegration -headerpad_max_install_names "
+    FRONTEND_LIBS="$FRONTEND_LIBS -headerpad_max_install_names "
+    if test x"$enable_OSXAPP" = x"yes" ; then
+        FRONTEND_LIBS="$FRONTEND_LIBS -lgtkmacintegration"
+    fi
     FRONTEND_CFLAGS="$FRONTEND_CFLAGS -I/opt/local/include -L/opt/local/lib"
   ;;
 esac