Summary: | bash shell syntax that is incompatible with bourne shell in configure script | ||
---|---|---|---|
Product: | [Applications] koffice | Reporter: | Steve Evans <stevee> |
Component: | general | Assignee: | KOffice Bug Wranglers <koffice-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nicolasg |
Priority: | NOR | ||
Version: | 1.3 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: |
Description
Steve Evans
2004-02-02 12:04:15 UTC
Subject: KOFFICE_1_3_BRANCH: koffice CVS commit by goutte: Better check for KDE 3.1 (central and portable) (Backport but uses AC_TRY_COMPILE instead of AC_COMPILE_IFELSE) CCMAIL:74004-close@bugs.kde.org M +32 -0 configure.in.in 1.40.2.3 M +1 -1 kugar/Makefile.am 1.13.2.1 M +1 -1 mimetypes/Makefile.am 1.3.2.1 R kugar/configure.in.in 1.1 R mimetypes/configure.in.in 1.2 --- koffice/mimetypes/Makefile.am #1.3:1.3.2.1 @@ -1,3 +1,3 @@ -if compile_mimetypes_kde31 +if need_kde31_compatibility KDE31MIMEDIR = kde31 endif --- koffice/kugar/Makefile.am #1.13:1.13.2.1 @@ -1,4 +1,4 @@ #SUBDIRS = lib part shell samples kudesigner -if compile_mimetypes_kde31 +if need_kde31_compatibility KDE31MIMEDIR = kde31 endif --- koffice/configure.in.in #1.40.2.2:1.40.2.3 @@ -113,2 +113,34 @@ fi ]) + +# --- Check for KDE 3.1 --- + +AC_MSG_CHECKING([for KDE newer than 3.1.x]) + +AC_LANG_SAVE +AC_LANG_CPLUSPLUS +kdeversion_save_CXXFLAGS="$CXXFLAGS" +kdeversion_safe_LIBS="$LIBS" +LIBS="$LIBS $X_EXTRA_LIBS" +CXXFLAGS="$CXXFLAGS $all_includes" + +AC_TRY_COMPILE([ +#include <kdeversion.h> +#if ! ( KDE_IS_VERSION( 3, 1, 90 ) ) +#error KDE 3.1 +#endif +], +[], + old_kde_version="no" + AC_MSG_RESULT(yes) +, + old_kde_version="yes" + AC_MSG_RESULT(no) +) +CXXFLAGS="$kdeversion_save_CXXFLAGS" +LIBS="$kdeversion_safe_LIBS" +AC_LANG_RESTORE + +AM_CONDITIONAL(need_kde31_compatibility, test "$old_kde_version" = "yes") + +# --- End KDE 3.1 check --- |