summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doxyfile.am5
-rw-r--r--acinclude.m4.in235
-rwxr-xr-xconfig.guess7
-rwxr-xr-xconfig.sub7
-rw-r--r--configure.in.min1
-rw-r--r--cvs.sh4
-rwxr-xr-xdoxygen.sh8
-rwxr-xr-xinstall-sh7
-rwxr-xr-xmissing7
9 files changed, 234 insertions, 47 deletions
diff --git a/Doxyfile.am b/Doxyfile.am
index 420b411..f227912 100644
--- a/Doxyfile.am
+++ b/Doxyfile.am
@@ -95,8 +95,3 @@ install-apidox-recurse: install-apidox
.PHONY: apidox-am-yes apidox-am-no install-data-local install-apidox install-apidox uninstall-local uninstall-apidox uninstall-apidox apidox apidox-am-toplevel-no apidox-am-toplevel-yes
-
-
-# Local Variables:
-# mode: makefile
-# End:
diff --git a/acinclude.m4.in b/acinclude.m4.in
index a225f98..79a764f 100644
--- a/acinclude.m4.in
+++ b/acinclude.m4.in
@@ -1838,9 +1838,12 @@ cat > actest.ui << EOF
</property>
</widget>
</widget>
+<includes>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+</includes>
</UI>
EOF
-
+
kde_cv_uic_plugins=no
@@ -3569,7 +3572,7 @@ AC_DEFUN([AC_CHECK_COMPILERS],
case $host in
*-*-linux-gnu)
CFLAGS="-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
- CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
+ CXXFLAGS="-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
;;
@@ -3747,7 +3750,7 @@ AC_DEFUN([KDE_CHECK_VISIBILITY_GCC_BUG],
std::string s("blafasel");
return 0;
}
- ], [/* elvis is alive */],
+ ], [/* Elvis is not dead, he just went home! (Men In Black, 1997) */],
kde_cv_val_gcc_visibility_bug=no, kde_cv_val_gcc_visibility_bug=yes)
CXXFLAGS=$safe_CXXFLAGS
@@ -3828,7 +3831,7 @@ else
/* if this compiles, then Q_EXPORT is undefined */
/* if Q_EXPORT is nonempty, this will break compilation */
#endif
- ], [/* elvis is alive */],
+ ], [/* Elvis is not dead, he just went home! (Men In Black, 1997) */],
kde_cv_val_qt_gcc_visibility_patched=no, kde_cv_val_qt_gcc_visibility_patched=yes)
fi
fi
@@ -3948,7 +3951,7 @@ AC_CANONICAL_SYSTEM
AC_ARG_PROGRAM
AM_INIT_AUTOMAKE($1, $2)
AM_DISABLE_LIBRARIES
-AC_PREFIX_DEFAULT(${TDEDIR:-/usr/local/kde})
+AC_PREFIX_DEFAULT(${TDEDIR:-/opt/trinity})
AC_CHECK_COMPILERS
KDE_PROG_LIBTOOL
AM_KDE_WITH_NLS
@@ -5440,12 +5443,12 @@ AC_DEFUN([KDE_CONF_FILES],
dnl This sets the prefix, for arts and tdelibs
dnl Do NOT use in any other module.
-dnl It only looks at --prefix, TDEDIR and falls back to /usr/local/kde
+dnl It only looks at --prefix, TDEDIR and falls back to /opt/trinity
AC_DEFUN([KDE_SET_PREFIX_CORE],
[
unset CDPATH
dnl make $TDEDIR the default for the installation
- AC_PREFIX_DEFAULT(${TDEDIR:-/usr/local/kde})
+ AC_PREFIX_DEFAULT(${TDEDIR:-/opt/trinity})
if test "x$prefix" = "xNONE"; then
prefix=$ac_default_prefix
@@ -6050,7 +6053,7 @@ if test "${with_qt_dir+set}" = set; then
kde_qtdir="$with_qt_dir"
fi
-AC_FIND_FILE(qsql.html, [ $kde_qtdir/doc/html $QTDIR/doc/html /usr/share/doc/packages/tqt3/html /usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/tqt3/doc /usr/lib/qt3/doc /usr/lib/tqt3/doc/html /usr/lib/qt3/doc/html /usr/doc/tqt3/html /usr/doc/qt3/html /usr/doc/tqt3 /usr/doc/qt3 /usr/share/doc/tqt3-doc /usr/share/doc/qt3-doc /usr/share/tqt3/doc/html /usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ], QTDOCDIR)
+AC_FIND_FILE(ntqsql.html, [ $kde_qtdir/doc/html $QTDIR/doc/html /usr/share/doc/packages/tqt3/html /usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/tqt3/doc /usr/lib/qt3/doc /usr/lib/tqt3/doc/html /usr/lib/qt3/doc/html /usr/doc/tqt3/html /usr/doc/qt3/html /usr/doc/tqt3 /usr/doc/qt3 /usr/share/doc/tqt3-doc /usr/share/doc/qt3-doc /usr/share/tqt3/doc/html /usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ], QTDOCDIR)
AC_MSG_RESULT($QTDOCDIR)
AC_SUBST(QTDOCDIR)
@@ -6071,7 +6074,7 @@ AC_SUBST(DOXYGEN_PROJECT_NAME)
AC_SUBST(DOXYGEN_PROJECT_NUMBER)
KDE_HAS_DOXYGEN=no
-if test -n "$DOXYGEN" && test -x "$DOXYGEN" && test -f $QTDOCDIR/qsql.html; then
+if test -n "$DOXYGEN" && test -x "$DOXYGEN" && test -f $QTDOCDIR/ntqsql.html; then
KDE_HAS_DOXYGEN=yes
fi
AC_SUBST(KDE_HAS_DOXYGEN)
@@ -6891,7 +6894,7 @@ AC_DEFUN([AC_SQLITE3], [
AC_MSG_ERROR(QTDIR not set)
fi
AC_MSG_RESULT($QTDIR)
- ac_qmake=${QTDIR}/bin/qmake
+ ac_qmake=${QTDIR}/bin/tqmake
AC_ARG_WITH(qmake,
AC_HELP_STRING([--with-qmake=PATH],[which version of QMake to use ]),
[ ac_qmake="$withval" ])
@@ -6950,3 +6953,215 @@ EOF
AC_SUBST(LIBSQLITE3)
fi
])
+# ===========================================================================
+#
+# SYNOPSIS
+#
+# TDE_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
+#
+# DESCRIPTION
+#
+# Check for baseline language coverage in the compiler for the specified
+# version of the C++ standard. If necessary, add switches to CXX and
+# CXXCPP to enable support. VERSION may be '11' (for the C++11 standard)
+# or '14' (for the C++14 standard).
+#
+# The second argument, if specified, indicates whether you insist on an
+# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
+# -std=c++11). If neither is specified, you get whatever works, with
+# preference for no added switch, and then for an extended mode.
+#
+# The third argument, if specified 'mandatory' or if left unspecified,
+# indicates that baseline support for the specified C++ standard is
+# required and that the macro should error out if no mode with that
+# support is found. If specified 'optional', then configuration proceeds
+# regardless, after defining HAVE_CXX${VERSION} if and only if a
+# supporting mode is found.
+#
+# LICENSE
+#
+# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
+# Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
+# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
+# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
+# Copyright (c) 2015 Paul Norman <penorman@mac.com>
+# Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
+# Copyright (c) 2016, 2018 Krzesimir Nowak <qdlacz@gmail.com>
+# Copyright (c) 2019 Enji Cooper <yaneurabeya@gmail.com>
+# Copyright (c) 2020 Jason Merrill <jason@redhat.com>
+# Copyright (c) 2021 Slávek Banko <slavek.banko@axis.cz>
+#
+# Copying and distribution of this file, with or without modification, are
+# permitted in any medium without royalty provided the copyright notice
+# and this notice are preserved. This file is offered as-is, without any
+# warranty.
+
+dnl This macro is simplified version of the macro AX_CXX_COMPILE_STDCXX
+
+AC_DEFUN([TDE_CXX_COMPILE_STDCXX], [dnl
+ m4_if([$1], [11], [tde_cxx_compile_alternatives="11 0x"],
+ [$1], [14], [tde_cxx_compile_alternatives="14 1y"],
+ [$1], [17], [tde_cxx_compile_alternatives="17 1z"],
+ [m4_fatal([invalid first argument `$1' to TDE_CXX_COMPILE_STDCXX])])dnl
+ m4_if([$2], [], [],
+ [$2], [ext], [],
+ [$2], [noext], [],
+ [m4_fatal([invalid second argument `$2' to TDE_CXX_COMPILE_STDCXX])])dnl
+ m4_if([$3], [], [tde_cxx_compile_cxx$1_required=true],
+ [$3], [mandatory], [tde_cxx_compile_cxx$1_required=true],
+ [$3], [optional], [tde_cxx_compile_cxx$1_required=false],
+ [m4_fatal([invalid third argument `$3' to TDE_CXX_COMPILE_STDCXX])])
+ AC_LANG_PUSH([C++])dnl
+ ac_success=no
+
+ m4_if([$2], [], [dnl
+ AC_CACHE_CHECK(whether $CXX supports C++$1 features by default,
+ tde_cv_cxx_compile_cxx$1,
+ [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_TDE_CXX_COMPILE_STDCXX_testbody_$1])],
+ [tde_cv_cxx_compile_cxx$1=yes],
+ [tde_cv_cxx_compile_cxx$1=no])])
+ if test x$tde_cv_cxx_compile_cxx$1 = xyes; then
+ ac_success=yes
+ fi])
+
+ m4_if([$2], [noext], [], [dnl
+ if test x$ac_success = xno; then
+ for alternative in ${tde_cxx_compile_alternatives}; do
+ switch="-std=gnu++${alternative}"
+ cachevar=AS_TR_SH([tde_cv_cxx_compile_cxx$1_$switch])
+ AC_CACHE_CHECK(whether $CXX supports C++$1 features with $switch,
+ $cachevar,
+ [ac_save_CXX="$CXX"
+ CXX="$CXX $switch"
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([_TDE_CXX_COMPILE_STDCXX_testbody_$1])],
+ [eval $cachevar=yes],
+ [eval $cachevar=no])
+ CXX="$ac_save_CXX"])
+ if eval test x\$$cachevar = xyes; then
+ CXX="$CXX $switch"
+ if test -n "$CXXCPP" ; then
+ CXXCPP="$CXXCPP $switch"
+ fi
+ ac_success=yes
+ break
+ fi
+ done
+ fi])
+
+ m4_if([$2], [ext], [], [dnl
+ if test x$ac_success = xno; then
+ dnl HP's aCC needs +std=c++11 according to:
+ dnl http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/PDF_Release_Notes/769149-001.pdf
+ dnl Cray's crayCC needs "-h std=c++11"
+ for alternative in ${tde_cxx_compile_alternatives}; do
+ for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
+ cachevar=AS_TR_SH([tde_cv_cxx_compile_cxx$1_$switch])
+ AC_CACHE_CHECK(whether $CXX supports C++$1 features with $switch,
+ $cachevar,
+ [ac_save_CXX="$CXX"
+ CXX="$CXX $switch"
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([_TDE_CXX_COMPILE_STDCXX_testbody_$1])],
+ [eval $cachevar=yes],
+ [eval $cachevar=no])
+ CXX="$ac_save_CXX"])
+ if eval test x\$$cachevar = xyes; then
+ CXX="$CXX $switch"
+ if test -n "$CXXCPP" ; then
+ CXXCPP="$CXXCPP $switch"
+ fi
+ ac_success=yes
+ break
+ fi
+ done
+ if test x$ac_success = xyes; then
+ break
+ fi
+ done
+ fi])
+ AC_LANG_POP([C++])
+ if test x$tde_cxx_compile_cxx$1_required = xtrue; then
+ if test x$ac_success = xno; then
+ AC_MSG_ERROR([*** A compiler with support for C++$1 language features is required.])
+ fi
+ fi
+ if test x$ac_success = xno; then
+ HAVE_CXX$1=0
+ AC_MSG_NOTICE([No compiler with C++$1 support was found])
+ else
+ HAVE_CXX$1=1
+ AC_DEFINE(HAVE_CXX$1,1,
+ [define if the compiler supports basic C++$1 syntax])
+ fi
+ AC_SUBST(HAVE_CXX$1)
+])
+
+
+dnl Test body for checking C++11 support
+
+m4_define([_TDE_CXX_COMPILE_STDCXX_testbody_11],
+ _TDE_CXX_COMPILE_STDCXX_testbody_new_in_11
+)
+
+
+dnl Test body for checking C++14 support
+
+m4_define([_TDE_CXX_COMPILE_STDCXX_testbody_14],
+ _TDE_CXX_COMPILE_STDCXX_testbody_new_in_11
+ _TDE_CXX_COMPILE_STDCXX_testbody_new_in_14
+)
+
+m4_define([_TDE_CXX_COMPILE_STDCXX_testbody_17],
+ _TDE_CXX_COMPILE_STDCXX_testbody_new_in_11
+ _TDE_CXX_COMPILE_STDCXX_testbody_new_in_14
+ _TDE_CXX_COMPILE_STDCXX_testbody_new_in_17
+)
+
+dnl Tests for new features in C++11
+
+m4_define([_TDE_CXX_COMPILE_STDCXX_testbody_new_in_11], [[
+
+#ifndef __cplusplus
+
+#error "This is not a C++ compiler"
+
+#elif __cplusplus < 201103L
+
+#error "This is not a C++11 compiler"
+
+#endif // __cplusplus >= 201103L
+
+]])
+
+
+dnl Tests for new features in C++14
+
+m4_define([_TDE_CXX_COMPILE_STDCXX_testbody_new_in_14], [[
+
+#ifndef __cplusplus
+
+#error "This is not a C++ compiler"
+
+#elif __cplusplus < 201402L
+
+#error "This is not a C++14 compiler"
+
+#endif // __cplusplus >= 201402L
+
+]])
+
+
+dnl Tests for new features in C++17
+
+m4_define([_TDE_CXX_COMPILE_STDCXX_testbody_new_in_17], [[
+
+#ifndef __cplusplus
+
+#error "This is not a C++ compiler"
+
+#elif __cplusplus < 201703L
+
+#error "This is not a C++17 compiler"
+
+#endif // __cplusplus >= 201703L
+
+]])
diff --git a/config.guess b/config.guess
index 4f0f63f..453f265 100755
--- a/config.guess
+++ b/config.guess
@@ -1455,10 +1455,3 @@ UNAME_VERSION = ${UNAME_VERSION}
EOF
exit 1
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
diff --git a/config.sub b/config.sub
index 2ef2842..3ac426d 100755
--- a/config.sub
+++ b/config.sub
@@ -1566,10 +1566,3 @@ esac
echo $basic_machine$os
exit
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
diff --git a/configure.in.min b/configure.in.min
index 9e52090..d10df67 100644
--- a/configure.in.min
+++ b/configure.in.min
@@ -46,6 +46,7 @@ AC_CONFIG_HEADER(config.h) dnl at the distribution this done
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
+TDE_CXX_COMPILE_STDCXX(11)
AC_CHECK_COMPILERS
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
diff --git a/cvs.sh b/cvs.sh
index 0f8ce8d..478dbdd 100644
--- a/cvs.sh
+++ b/cvs.sh
@@ -25,7 +25,7 @@ check_autotool_versions()
required_autoconf_version="2.53 or newer"
AUTOCONF_VERSION=`$AUTOCONF --version | head -n 1`
case $AUTOCONF_VERSION in
- Autoconf*2.5* | autoconf*2.5* | autoconf*2.6* ) : ;;
+ Autoconf*2.5* | autoconf*2.[567]* ) : ;;
"" )
echo "*** AUTOCONF NOT FOUND!."
echo "*** TDE requires autoconf $required_autoconf_version"
@@ -40,7 +40,7 @@ esac
AUTOHEADER_VERSION=`$AUTOHEADER --version | head -n 1`
case $AUTOHEADER_VERSION in
- Autoconf*2.5* | autoheader*2.5* | autoheader*2.6* ) : ;;
+ Autoconf*2.5* | autoheader*2.[567]* ) : ;;
"" )
echo "*** AUTOHEADER NOT FOUND!."
echo "*** TDE requires autoheader $required_autoconf_version"
diff --git a/doxygen.sh b/doxygen.sh
index 4b01c88..e754ddd 100755
--- a/doxygen.sh
+++ b/doxygen.sh
@@ -117,8 +117,12 @@ fi
### but no recursion either).
###
# top_srcdir="$1" # Already set by options processing
-module_name=`basename "$top_srcdir"`
-module_name=`echo "$module_name" | awk -F '-' '{print $1}'`
+if test -f $top_srcdir/.tdescminfo; then
+ module_name=`sed -n "s|^Name: ||p" $top_srcdir/.tdescminfo | xargs -r basename`
+else
+ module_name=`basename "$top_srcdir"`
+ module_name=`echo "$module_name" | awk -F '-' '{print $1}'`
+fi
subdir="$2"
if test "x." = "x$subdir" ; then
subdir=""
diff --git a/install-sh b/install-sh
index 0ae12c0..ca9c7c4 100755
--- a/install-sh
+++ b/install-sh
@@ -392,10 +392,3 @@ do
trap '' 0
fi
done
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-end: "$"
-# End:
diff --git a/missing b/missing
index 3392b9e..058f81e 100755
--- a/missing
+++ b/missing
@@ -344,10 +344,3 @@ WARNING: \`$1' is needed, and is $msg.
esac
exit 0
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-end: "$"
-# End: