|
|
|
@ -14,7 +14,7 @@ AC_DEFUN([AC_SS_INIT_VARIABLES],
|
|
|
|
|
SS_X_LDFLAGS=""
|
|
|
|
|
SS_X_CPPFLAGS=""
|
|
|
|
|
|
|
|
|
|
dnl # // Qt Stuff
|
|
|
|
|
dnl # // TQt Stuff
|
|
|
|
|
|
|
|
|
|
SS_QT3_GENERAL_DIR=""
|
|
|
|
|
SS_QT3_INCDIR=""
|
|
|
|
@ -517,7 +517,7 @@ AC_DEFUN([AC_SS_MISC_OPTIONS],
|
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
AC_PATH_PROG(SS_MSGFMT,msgfmt,":",$PATH:/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/usr/lib/qt/bin:/usr/local/qt/bin:/usr/X11R6/qt/bin:/usr/qt/bin:/usr/build/qt/bin)
|
|
|
|
|
AC_PATH_PROG(SS_MSGFMT,msgfmt,":",$PATH:/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/usr/lib/tqt/bin:/usr/local/tqt/bin:/usr/X11R6/tqt/bin:/usr/tqt/bin:/usr/build/tqt/bin)
|
|
|
|
|
if test -z "SS_MSGFMT"; then
|
|
|
|
|
SS_MSGFMT=":"
|
|
|
|
|
fi
|
|
|
|
@ -566,8 +566,8 @@ AC_DEFUN([AC_SS_MISC_OPTIONS],
|
|
|
|
|
AC_DEFINE([COMPILE_NEW_KVS], 1, [define if you want to enable the new KVS parser])
|
|
|
|
|
AC_DEFINE([COMPILE_ONLY_NEW_KVS], 1, [define if you want to use only the new KVS parser])
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([if you want to link to the embedded version of qt])
|
|
|
|
|
AC_ARG_WITH(qt-embedded,[ --with-qt-embedded Link to qt-embedded (see INSTALL)],SS_QT3_EMBEDDED="true")
|
|
|
|
|
AC_MSG_CHECKING([if you want to link to the embedded version of tqt])
|
|
|
|
|
AC_ARG_WITH(tqt-embedded,[ --with-tqt-embedded Link to tqt-embedded (see INSTALL)],SS_QT3_EMBEDDED="true")
|
|
|
|
|
if test "$SS_QT3_EMBEDDED" = "true"; then
|
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
|
SS_BUILD_FLAGS="E$SS_BUILD_FLAGS"
|
|
|
|
@ -783,7 +783,7 @@ AC_DEFUN([AC_SS_CHECK_PERL],
|
|
|
|
|
AC_ARG_ENABLE(perl,AC_HELP_STRING([--enable-perl],[Enable perl scripting support (default=detect)]),eval "SS_PERL_ENABLE=$enableval")
|
|
|
|
|
|
|
|
|
|
if test "$SS_PERL_ENABLE" = "yes"; then
|
|
|
|
|
AC_PATH_PROG(SS_PERL_BINARY,perl,":",$PATH:/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/usr/lib/qt/bin:/usr/local/qt/bin:/usr/X11R6/qt/bin:/usr/qt/bin:/usr/build/qt/bin)
|
|
|
|
|
AC_PATH_PROG(SS_PERL_BINARY,perl,":",$PATH:/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/usr/lib/tqt/bin:/usr/local/tqt/bin:/usr/X11R6/tqt/bin:/usr/tqt/bin:/usr/build/tqt/bin)
|
|
|
|
|
if test -z "SS_PERL_BINARY"; then
|
|
|
|
|
SS_PERL_RESULT_MESSAGE="disabled: can't find the perl binary"
|
|
|
|
|
SS_PERL_ENABLE="no"
|
|
|
|
@ -1297,7 +1297,7 @@ AC_DEFUN([AC_SS_FIND_X],
|
|
|
|
|
echo "### that will tell you which checks have failed and maybe more about the"
|
|
|
|
|
echo "### reason of the failure."
|
|
|
|
|
echo "###"
|
|
|
|
|
echo "### If you use an environment that does not require X support such as Qt-Mac"
|
|
|
|
|
echo "### If you use an environment that does not require X support such as TQt-Mac"
|
|
|
|
|
echo "### you may try to rerun configure with --disable-x-support"
|
|
|
|
|
echo "################################################################################"
|
|
|
|
|
AC_SS_SET_NORMALINK
|
|
|
|
@ -1346,7 +1346,7 @@ AC_DEFUN([AC_SS_FIND_X],
|
|
|
|
|
echo "### that will tell you which checks have failed and maybe more about the"
|
|
|
|
|
echo "### reason of the failure."
|
|
|
|
|
echo "###"
|
|
|
|
|
echo "### If you use an environment that does not require X support such as Qt-Mac"
|
|
|
|
|
echo "### If you use an environment that does not require X support such as TQt-Mac"
|
|
|
|
|
echo "### you may try to rerun configure with --disable-x-support"
|
|
|
|
|
echo "################################################################################"
|
|
|
|
|
AC_SS_SET_NORMALINK
|
|
|
|
@ -1410,7 +1410,7 @@ AC_DEFUN([AC_SS_FIND_X],
|
|
|
|
|
echo "### that will tell you which checks have failed and maybe more about the"
|
|
|
|
|
echo "### reason of the failure."
|
|
|
|
|
echo "###"
|
|
|
|
|
echo "### If you use an environment that does not require X support such as Qt-Mac"
|
|
|
|
|
echo "### If you use an environment that does not require X support such as TQt-Mac"
|
|
|
|
|
echo "### you may try to rerun configure with --disable-x-support"
|
|
|
|
|
echo "################################################################################"
|
|
|
|
|
AC_SS_SET_NORMALINK
|
|
|
|
@ -1444,13 +1444,13 @@ AC_DEFUN([AC_SS_FIND_X],
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
dnl ###################################################################################################################
|
|
|
|
|
dnl ### QT
|
|
|
|
|
dnl ### TQt
|
|
|
|
|
dnl ###################################################################################################################
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AC_SS_FIND_QT],
|
|
|
|
|
[
|
|
|
|
|
AC_ARG_ENABLE(qt-check,
|
|
|
|
|
AC_HELP_STRING([--disable-qt-check],[Do not check if Qt and X compile]),
|
|
|
|
|
AC_ARG_ENABLE(tqt-check,
|
|
|
|
|
AC_HELP_STRING([--disable-tqt-check],[Do not check if TQt and X compile]),
|
|
|
|
|
SS_CHECK_QTX_COMPILE="$withval",SS_CHECK_QTX_COMPILE="NOTGIVEN")
|
|
|
|
|
|
|
|
|
|
AC_SS_FIND_QT3_NAME
|
|
|
|
@ -1468,7 +1468,7 @@ AC_DEFUN([AC_SS_FIND_QT],
|
|
|
|
|
AC_DEFUN([AC_SS_FIND_QT3_NAME],
|
|
|
|
|
[
|
|
|
|
|
AC_MSG_CHECKING([for the TQt library name])
|
|
|
|
|
AC_ARG_WITH(qt-name,[ --with-tqt-name=NAME Use NAME instead of \"tqt\" as TQt library name],SS_TQTLIB_NAME="$withval",SS_TQTLIB_NAME="tqt")
|
|
|
|
|
AC_ARG_WITH(tqt-name,[ --with-tqt-name=NAME Use NAME instead of \"tqt\" as TQt library name],SS_TQTLIB_NAME="$withval",SS_TQTLIB_NAME="tqt")
|
|
|
|
|
AC_MSG_RESULT("$SS_TQTLIB_NAME")
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
@ -1488,21 +1488,21 @@ AC_DEFUN([AC_SS_FIND_QT3_GENERAL_DIR],
|
|
|
|
|
ss_qt_general_test_dirs="$TQTDIR $ss_qt_general_test_dirs"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
ss_qt_general_test_path_suffix="qt$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED.$SS_QT3_PATCH_LEVEL_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt.$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED.$SS_QT3_PATCH_LEVEL_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt.$SS_QT3_MAJOR_VERSION_REQUIRED$SS_QT3_MINOR_VERSION_REQUIRED$SS_QT3_PATCH_LEVEL_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt-$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED.$SS_QT3_PATCH_LEVEL_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt-$SS_QT3_MAJOR_VERSION_REQUIRED$SS_QT3_MINOR_VERSION_REQUIRED$SS_QT3_PATCH_LEVEL_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt.$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt.$SS_QT3_MAJOR_VERSION_REQUIRED$SS_QT3_MINOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt-$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt-$SS_QT3_MAJOR_VERSION_REQUIRED$SS_QT3_MINOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt$SS_QT3_MAJOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt.$SS_QT3_MAJOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt-$SS_QT3_MAJOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="tqt$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED.$SS_QT3_PATCH_LEVEL_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt.$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED.$SS_QT3_PATCH_LEVEL_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt.$SS_QT3_MAJOR_VERSION_REQUIRED$SS_QT3_MINOR_VERSION_REQUIRED$SS_QT3_PATCH_LEVEL_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt-$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED.$SS_QT3_PATCH_LEVEL_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt-$SS_QT3_MAJOR_VERSION_REQUIRED$SS_QT3_MINOR_VERSION_REQUIRED$SS_QT3_PATCH_LEVEL_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt.$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt.$SS_QT3_MAJOR_VERSION_REQUIRED$SS_QT3_MINOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt-$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt-$SS_QT3_MAJOR_VERSION_REQUIRED$SS_QT3_MINOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt$SS_QT3_MAJOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt.$SS_QT3_MAJOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt-$SS_QT3_MAJOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix lib"
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix qt ."
|
|
|
|
|
ss_qt_general_test_path_suffix="$ss_qt_general_test_path_suffix tqt ."
|
|
|
|
|
|
|
|
|
|
AC_SS_FIND_FILE_PATH_EXT($SS_TQT3_GENERAL_FILE_TO_SEARCH,$ss_qt_general_test_dirs,$ss_qt_general_test_path_suffix,SS_QT3_GENERAL_DIR)
|
|
|
|
|
if test "$SS_QT3_GENERAL_DIR" = "FAILED"; then
|
|
|
|
@ -1520,17 +1520,17 @@ AC_DEFUN([AC_SS_FIND_QT3_GENERAL_DIR],
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AC_SS_FIND_QT3_INCLUDE_DIR],
|
|
|
|
|
[
|
|
|
|
|
AC_ARG_WITH(qt-include-dir,[ --with-qt-include-dir path to the Qt 3.x headers ],SS_QT3_INCDIR="$withval",SS_QT3_INCDIR="NOTGIVEN")
|
|
|
|
|
AC_ARG_WITH(tqt-include-dir,[ --with-tqt-include-dir path to the TQt 3.x headers ],SS_QT3_INCDIR="$withval",SS_QT3_INCDIR="NOTGIVEN")
|
|
|
|
|
if test "$SS_QT3_INCDIR" = "NOTGIVEN"; then
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for the Qt 3.x header files])
|
|
|
|
|
AC_MSG_CHECKING([for the TQt 3.x header files])
|
|
|
|
|
|
|
|
|
|
ss_qt_include_test_dirs="$SS_QT3_GENERAL_DIR/include /include /usr/include /usr/local/include /usr/qt/include /usr/local/qt/include /usr/X11R6/include /usr/lib/qt/include /usr/lib/qt /usr/include/X11"
|
|
|
|
|
ss_qt_include_test_dirs="$SS_QT3_GENERAL_DIR/include /include /usr/include /usr/local/include /usr/tqt/include /usr/local/tqt/include /usr/X11R6/include /usr/lib/tqt/include /usr/lib/tqt /usr/include/X11"
|
|
|
|
|
test -n "$TQTDIR" && ss_qt_include_test_dirs="$TQTDIR/include $TQTDIR $ss_qt_include_test_dirs"
|
|
|
|
|
ss_qt_include_test_dirs="$ss_qt_include_test_dirs /usr/include/qt /usr/include/tqt3 /usr/include/qt3 /usr/local/include/qt /include/qt /usr/X11R6/include/qt /usr/build/qt/include"
|
|
|
|
|
ss_qt_include_test_dirs="$ss_qt_include_test_dirs /usr/include/tqt$SS_QT3_MAJOR_VERSION_REQUIRED /usr/include/qt$SS_QT3_MAJOR_VERSION_REQUIRED /usr/include/qt-$SS_QT3_MAJOR_VERSION_REQUIRED /usr/local/include/qt$SS_QT3_MAJOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_include_test_dirs="$ss_qt_include_test_dirs /include/tqt$SS_QT3_MAJOR_VERSION_REQUIRED /include/qt$SS_QT3_MAJOR_VERSION_REQUIRED /usr/X11R6/include/qt$SS_QT3_MAJOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_include_test_dirs="$ss_qt_include_test_dirs /usr/include/X11/qt$SS_QT3_MAJOR_VERSION_REQUIRED /opt/qt /opt/kde/qt"
|
|
|
|
|
ss_qt_include_test_dirs="$ss_qt_include_test_dirs /usr/include/tqt /usr/include/tqt3 /usr/include/qt3 /usr/local/include/tqt /include/tqt /usr/X11R6/include/tqt /usr/build/tqt/include"
|
|
|
|
|
ss_qt_include_test_dirs="$ss_qt_include_test_dirs /usr/include/tqt$SS_QT3_MAJOR_VERSION_REQUIRED /usr/include/tqt$SS_QT3_MAJOR_VERSION_REQUIRED /usr/include/tqt-$SS_QT3_MAJOR_VERSION_REQUIRED /usr/local/include/tqt$SS_QT3_MAJOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_include_test_dirs="$ss_qt_include_test_dirs /include/tqt$SS_QT3_MAJOR_VERSION_REQUIRED /include/tqt$SS_QT3_MAJOR_VERSION_REQUIRED /usr/X11R6/include/tqt$SS_QT3_MAJOR_VERSION_REQUIRED"
|
|
|
|
|
ss_qt_include_test_dirs="$ss_qt_include_test_dirs /usr/include/X11/tqt$SS_QT3_MAJOR_VERSION_REQUIRED /opt/tqt /opt/kde/tqt"
|
|
|
|
|
|
|
|
|
|
AC_SS_FIND_FILE_PATH($SS_TQT3_INCLUDE_FILE_TO_SEARCH,$ss_qt_include_test_dirs,SS_QT3_INCDIR)
|
|
|
|
|
|
|
|
|
@ -1543,10 +1543,10 @@ AC_DEFUN([AC_SS_FIND_QT3_INCLUDE_DIR],
|
|
|
|
|
AC_SS_SET_REDINK
|
|
|
|
|
echo "################################################################################"
|
|
|
|
|
echo "### CONFIGURE ERROR:"
|
|
|
|
|
echo "### Can not find the qt 3.x header files."
|
|
|
|
|
echo "### Make sure that qt is correctly installed on your system,"
|
|
|
|
|
echo "### and the qt version is the one requested by this version of kvirc."
|
|
|
|
|
echo "### Try to run configure again, this time passing the --with-qt-include-dir"
|
|
|
|
|
echo "### Can not find the tqt 3.x header files."
|
|
|
|
|
echo "### Make sure that tqt is correctly installed on your system,"
|
|
|
|
|
echo "### and the tqt version is the one requested by this version of kvirc."
|
|
|
|
|
echo "### Try to run configure again, this time passing the --with-tqt-include-dir"
|
|
|
|
|
echo "### option (see ./configure --help)."
|
|
|
|
|
echo "### You may also take a look at the config.log file in this directory,"
|
|
|
|
|
echo "### that will tell you which check has failed and maybe more about the reason"
|
|
|
|
@ -1564,7 +1564,7 @@ AC_DEFUN([AC_SS_FIND_QT3_INCLUDE_DIR],
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_RESULT([using user supplied path for the Qt 3.x include files $SS_QT3_INCDIR])
|
|
|
|
|
AC_MSG_RESULT([using user supplied path for the TQt 3.x include files $SS_QT3_INCDIR])
|
|
|
|
|
SS_QT3_INCDIR="$SS_QT3_INCDIR -I/usr/include/tqt -include tqt.h"
|
|
|
|
|
fi
|
|
|
|
|
])
|
|
|
|
@ -1572,14 +1572,14 @@ AC_DEFUN([AC_SS_FIND_QT3_INCLUDE_DIR],
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AC_SS_FIND_QT3_LIBRARY_DIR],
|
|
|
|
|
[
|
|
|
|
|
AC_ARG_WITH(qt-library-dir,[ --with-qt-library-dir path to the Qt 3.x library ],SS_QT3_LIBDIR="$withval",SS_QT3_LIBDIR="NOTGIVEN")
|
|
|
|
|
AC_ARG_WITH(tqt-library-dir,[ --with-tqt-library-dir path to the TQt 3.x library ],SS_QT3_LIBDIR="$withval",SS_QT3_LIBDIR="NOTGIVEN")
|
|
|
|
|
if test "$SS_QT3_LIBDIR" = "NOTGIVEN"; then
|
|
|
|
|
AC_MSG_CHECKING([for the TQt library])
|
|
|
|
|
|
|
|
|
|
lib_multiarch="`gcc -print-multiarch 2>/dev/null`"
|
|
|
|
|
ss_qt_library_test_dirs="$SS_QT3_GENERAL_DIR/lib /lib/$lib_multiarch /usr/lib/$lib_multiarch /usr/local/lib/$lib_multiarch /lib /usr/lib /usr/local/lib /usr/qt/lib /usr/local/qt/lib /usr/X11R6/lib /usr/lib/qt/lib /usr/lib/qt /usr/local/lib/qt/lib"
|
|
|
|
|
ss_qt_library_test_dirs="$SS_QT3_GENERAL_DIR/lib /lib/$lib_multiarch /usr/lib/$lib_multiarch /usr/local/lib/$lib_multiarch /lib /usr/lib /usr/local/lib /usr/tqt/lib /usr/local/tqt/lib /usr/X11R6/lib /usr/lib/tqt/lib /usr/lib/tqt /usr/local/lib/tqt/lib"
|
|
|
|
|
test -n "$TQTDIR" && ss_qt_library_test_dirs="$TQTDIR/lib $TQTDIR $ss_qt_library_test_dirs"
|
|
|
|
|
ss_qt_library_test_dirs="$ss_qt_library_test_dirs /usr/local/lib/qt /usr/X11R6/lib/qt /usr/build/qt/lib /opt/lib /opt/qt/lib"
|
|
|
|
|
ss_qt_library_test_dirs="$ss_qt_library_test_dirs /usr/local/lib/tqt /usr/X11R6/lib/tqt /usr/build/tqt/lib /opt/lib /opt/tqt/lib"
|
|
|
|
|
|
|
|
|
|
ss_qt_libs_to_find="lib$SS_TQTLIB_NAME-mt.so.$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED.$SS_QT3_PATCH_LEVEL_REQUIRED"
|
|
|
|
|
ss_qt_libs_to_find="$ss_qt_libs_to_find lib$SS_TQTLIB_NAME-mt.so.$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED"
|
|
|
|
@ -1607,11 +1607,11 @@ AC_DEFUN([AC_SS_FIND_QT3_LIBRARY_DIR],
|
|
|
|
|
AC_SS_SET_REDINK
|
|
|
|
|
echo "################################################################################"
|
|
|
|
|
echo "### CONFIGURE ERROR:"
|
|
|
|
|
echo "### Can not find the qt 3.x library file."
|
|
|
|
|
echo "### Make sure that qt is correctly installed on your system,"
|
|
|
|
|
echo "### and the qt version is the one requested by this version of kvirc."
|
|
|
|
|
echo "### Can not find the tqt 3.x library file."
|
|
|
|
|
echo "### Make sure that tqt is correctly installed on your system,"
|
|
|
|
|
echo "### and the tqt version is the one requested by this version of kvirc."
|
|
|
|
|
echo "### (Usually a greater version is OK too)"
|
|
|
|
|
echo "### Try to run configure again, this time passing the --with-qt-library-dir"
|
|
|
|
|
echo "### Try to run configure again, this time passing the --with-tqt-library-dir"
|
|
|
|
|
echo "### option (see ./configure --help)."
|
|
|
|
|
echo "### You may also take a look at the config.log file in this directory,"
|
|
|
|
|
echo "### that will tell you which check has failed and maybe more about the reason"
|
|
|
|
@ -1626,20 +1626,20 @@ AC_DEFUN([AC_SS_FIND_QT3_LIBRARY_DIR],
|
|
|
|
|
AC_MSG_RESULT([TQt3 found in $SS_QT3_LIBDIR])
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_RESULT([using user supplied path for the Qt library $SS_QT3_LIBDIR])
|
|
|
|
|
AC_MSG_RESULT([using user supplied path for the TQt library $SS_QT3_LIBDIR])
|
|
|
|
|
fi
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AC_SS_FIND_QT3_MOC],
|
|
|
|
|
[
|
|
|
|
|
AC_ARG_WITH(qt-moc,[ --with-qt-moc filename of the Qt 3.x meta object compiler ],SS_QT3_MOC="$withval",SS_QT3_MOC="NOTGIVEN")
|
|
|
|
|
AC_ARG_WITH(tqt-moc,[ --with-tqt-moc filename of the TQt 3.x meta object compiler ],SS_QT3_MOC="$withval",SS_QT3_MOC="NOTGIVEN")
|
|
|
|
|
|
|
|
|
|
if test "$SS_QT3_MOC" = "NOTGIVEN"; then
|
|
|
|
|
AC_MSG_CHECKING([for the Qt 3.x tmoc])
|
|
|
|
|
AC_MSG_CHECKING([for the TQt 3.x tmoc])
|
|
|
|
|
|
|
|
|
|
unset SS_QT3_MOC
|
|
|
|
|
ss_moc_test_dirs="$TQTDIR/bin $PATH /usr/bin /bin /usr/local/bin /usr/X11R6/bin /usr/lib/qt/bin /usr/local/qt/bin /usr/X11R6/qt/bin /usr/qt/bin /usr/build/qt/bin"
|
|
|
|
|
ss_moc_test_dirs="$TQTDIR/bin $PATH /usr/bin /bin /usr/local/bin /usr/X11R6/bin /usr/lib/tqt/bin /usr/local/tqt/bin /usr/X11R6/tqt/bin /usr/tqt/bin /usr/build/tqt/bin"
|
|
|
|
|
if test -n "$SS_QT3_GENERAL_DIR"; then
|
|
|
|
|
ss_moc_test_dirs="$SS_QT3_GENERAL_DIR/bin $ss_moc_test_dirs"
|
|
|
|
|
fi
|
|
|
|
@ -1651,10 +1651,10 @@ AC_DEFUN([AC_SS_FIND_QT3_MOC],
|
|
|
|
|
AC_SS_SET_REDINK
|
|
|
|
|
echo "################################################################################"
|
|
|
|
|
echo "### CONFIGURE ERROR:"
|
|
|
|
|
echo "### The Qt meta object compiler can not be found."
|
|
|
|
|
echo "### Make sure that qt is correctly installed on your system, it is on your path,"
|
|
|
|
|
echo "### and the qt version is the one requested by this version of kvirc."
|
|
|
|
|
echo "### Try to run configure again, this time passing the --with-qt-moc"
|
|
|
|
|
echo "### The TQt meta object compiler can not be found."
|
|
|
|
|
echo "### Make sure that tqt is correctly installed on your system, it is on your path,"
|
|
|
|
|
echo "### and the tqt version is the one requested by this version of kvirc."
|
|
|
|
|
echo "### Try to run configure again, this time passing the --with-tqt-moc"
|
|
|
|
|
echo "### option (see ./configure --help)."
|
|
|
|
|
echo "### You may also take a look at the config.log file in this directory,"
|
|
|
|
|
echo "### that will tell you which check has failed and maybe more about the reason"
|
|
|
|
@ -1677,9 +1677,9 @@ AC_DEFUN([AC_SS_FIND_QT3_MOC],
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AC_SS_FIND_QT3_MT],
|
|
|
|
|
[
|
|
|
|
|
AC_ARG_ENABLE(qt-mt,[ --disable-qt-mt ignore the threaded version of Qt],SS_QT3_NOMT="$withval",SS_QT3_NOMT="NOTGIVEN")
|
|
|
|
|
AC_ARG_ENABLE(tqt-mt,[ --disable-tqt-mt ignore the threaded version of TQt],SS_QT3_NOMT="$withval",SS_QT3_NOMT="NOTGIVEN")
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for the multithreaded version of Qt])
|
|
|
|
|
AC_MSG_CHECKING([for the multithreaded version of TQt])
|
|
|
|
|
|
|
|
|
|
if test "$SS_QT3_NOMT" = "NOTGIVEN"; then
|
|
|
|
|
ss_qt_libs_to_find="lib$SS_TQTLIB_NAME-mt.so.$SS_QT3_MAJOR_VERSION_REQUIRED.$SS_QT3_MINOR_VERSION_REQUIRED.$SS_QT3_PATCH_LEVEL_REQUIRED"
|
|
|
|
@ -1707,7 +1707,7 @@ AC_DEFUN([AC_SS_FIND_QT3_MT],
|
|
|
|
|
AC_DEFUN([AC_SS_ENSURE_CAN_COMPILE_X_AND_QT3],
|
|
|
|
|
[
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([if we can compile an X-Qt 3.x application])
|
|
|
|
|
AC_MSG_CHECKING([if we can compile an X-TQt 3.x application])
|
|
|
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
|
ss_save_CPPFLAGS="$CPPFLAGS"
|
|
|
|
|
ss_save_CXXFLAGS="$CXXFLAGS"
|
|
|
|
@ -1741,11 +1741,11 @@ AC_DEFUN([AC_SS_ENSURE_CAN_COMPILE_X_AND_QT3],
|
|
|
|
|
AC_SS_SET_REDINK
|
|
|
|
|
echo "################################################################################"
|
|
|
|
|
echo "### CONFIGURE ERROR:"
|
|
|
|
|
echo "### Failed to compile the Qt library test program."
|
|
|
|
|
echo "### Failed to compile the TQt library test program."
|
|
|
|
|
echo "### This may be a bad sign :)"
|
|
|
|
|
echo "### First of all, make sure that qt is correctly installed on your system,"
|
|
|
|
|
echo "### and the qt version is the one requested by this version of kvirc."
|
|
|
|
|
echo "### Ensure that you have only one copy of qt visible at a time."
|
|
|
|
|
echo "### First of all, make sure that tqt is correctly installed on your system,"
|
|
|
|
|
echo "### and the tqt version is the one requested by this version of kvirc."
|
|
|
|
|
echo "### Ensure that you have only one copy of tqt visible at a time."
|
|
|
|
|
echo "### You may also take a look at the config.log file in this directory,"
|
|
|
|
|
echo "### that will tell you which check has failed and maybe more about the reason"
|
|
|
|
|
echo "### of the failure."
|
|
|
|
@ -1765,9 +1765,9 @@ AC_DEFUN([AC_SS_ENSURE_CAN_COMPILE_X_AND_QT3],
|
|
|
|
|
for a_flag in $LDFLAGS ; do
|
|
|
|
|
echo "### $a_flag"
|
|
|
|
|
done
|
|
|
|
|
echo "### If you're sure that qt is correctly installed , you may force configure"
|
|
|
|
|
echo "### If you're sure that tqt is correctly installed , you may force configure"
|
|
|
|
|
echo "### to skip this check and try to compile kvirc anyway."
|
|
|
|
|
echo "### Try using the --without-qt-check option."
|
|
|
|
|
echo "### Try using the --without-tqt-check option."
|
|
|
|
|
echo "### If you're feeling that this may be a bug in this configure script"
|
|
|
|
|
echo "### and want to report this to me , please include your configure script,"
|
|
|
|
|
echo "### the config.log file as well as the complete configure output."
|
|
|
|
@ -1946,9 +1946,9 @@ AC_DEFUN([AC_SS_FIND_KDE_LIBRARY_DIR],
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AC_SS_ENSURE_CAN_COMPILE_X_QT3_AND_KDE],
|
|
|
|
|
[
|
|
|
|
|
AC_ARG_WITH(kde-check,[ --without-kde-check Do not check if Qt,KDE and X compile ],SS_CHECK_QTX_COMPILE="$withval",SS_CHECK_KQTX_COMPILE="yes")
|
|
|
|
|
AC_ARG_WITH(kde-check,[ --without-kde-check Do not check if TQt,KDE and X compile ],SS_CHECK_QTX_COMPILE="$withval",SS_CHECK_KQTX_COMPILE="yes")
|
|
|
|
|
if test "$SS_CHECK_KQTX_COMPILE" = "yes"; then
|
|
|
|
|
AC_MSG_CHECKING(if we can compile an X-Qt-KDE application)
|
|
|
|
|
AC_MSG_CHECKING(if we can compile an X-TQt-KDE application)
|
|
|
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
|
ss_save_CPPFLAGS="$CPPFLAGS"
|
|
|
|
|
ss_save_CXXFLAGS="$CXXFLAGS"
|
|
|
|
|