]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Use qmake-qt4 instead of qmake when available (debian system).
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 24 Oct 2007 18:38:54 +0000 (18:38 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 24 Oct 2007 18:38:54 +0000 (18:38 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5799 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/autoconf/configure.in
bacula/technotes-2.3

index ccbb0dd41909a72cd2b1ad7e266c39bec013b2b1..cdfc17f97bfadb37fcab416a346f610f189109d2 100644 (file)
@@ -74,6 +74,8 @@ AC_PATH_PROG(GROWISOFS, growisofs, growisofs)
 AC_PATH_PROG(DVDRWMEDIAINFO, dvd+rw-mediainfo, dvd+rw-mediainfo)
 AC_PATH_PROG(DVDRWFORMAT, dvd+rw-format, dvd+rw-format)
 AC_PATH_PROG(PKGCONFIG, pkg-config, pkg-config)
+AC_PATH_PROG(QMAKE, qmake, none)
+AC_PATH_PROG(QMAKEQT4, qmake-qt4, none)
 AC_ARG_VAR(WXCONFIG, [wx-config command. On some systems, you must set it to wx-config-2.6 to use wxWidgets 2.6.])
 if test "x$WXCONFIG" = x; then
   WXCONFIG=wx-config
@@ -2230,10 +2232,23 @@ AC_OUTPUT([autoconf/Make.common \
 )
 
 if test "${support_bat}" = "yes" ; then
+  if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
+  echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
+  exit 1
+  fi
+
+  QMAKEBIN="qmake"
+
+  if test "x$QMAKEQT4" != "xnone"; then
+    QMAKEBIN=qmake-qt4
+  fi
+
+
+  
   cd src/qt-console
   chmod 755 install_conf_file build-depkgs-qt-console
-  echo "Creating bat Makefile" 
-  qmake
+  echo "Creating bat Makefile"
+  $QMAKEBIN
   cd ${BUILD_DIR}
 fi
 
index 2b93b1008888ebcd6974711fa95805a710c789da..705b057bcde0c5f74856960121eb3d0fdb4cfd9d 100644 (file)
@@ -1,6 +1,8 @@
               Technical notes on version 2.3
 
 General:
+24Oct07
+ebl  Use qmake-qt4 instead of qmake when available (debian system).
 22Oct07
 kes  Add a security warning to src/cats/make_catalog_backup.in indicating
      that passing the password via the command line (arg 3) is insecure.