diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-12 23:51:27 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-12 23:51:27 -0600 |
commit | acc82b617ddbee05e509392c09e2729bc2fc1911 (patch) | |
tree | 32e0a5705d9557a077c7a41bdb8254eaacb64258 /configure.in.in | |
parent | 7665959f2b71297d880ca1371a04c15611db2fce (diff) | |
download | gtk3-tqt-engine-acc82b617ddbee05e509392c09e2729bc2fc1911.tar.gz gtk3-tqt-engine-acc82b617ddbee05e509392c09e2729bc2fc1911.zip |
Migrate to TDE build system and fix crashes
Diffstat (limited to 'configure.in.in')
-rw-r--r-- | configure.in.in | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in new file mode 100644 index 0000000..3b3d2d2 --- /dev/null +++ b/configure.in.in @@ -0,0 +1,153 @@ +#MIN_CONFIG(3.2.0) + +AM_INIT_AUTOMAKE(tdegtk3, 0.1) +AC_C_BIGENDIAN +AC_CHECK_KDEMAXPATHLEN + +# C support +AM_PROG_CC_C_O + +# --- Cairo check --- + +KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [ + AC_MSG_WARN([Could not find pkg-config]) +]) + +AC_MSG_CHECKING([for Cairo]) + +if test -n "$PKGCONFIG"; then + vers=`$PKGCONFIG cairo --modversion 2>/dev/null` + if test -n "$vers" + then + CAIRO_LIBS="`$PKGCONFIG cairo --libs`" + CAIRO_RPATH= + for args in $CAIRO_LIBS; do + case $args in + -L*) + CAIRO_RPATH="$CAIRO_RPATH $args" + ;; + esac + done + CAIRO_RPATH=`echo $CAIRO_RPATH | $SED -e "s/-L/-R/g"` + CAIRO_CFLAGS="`$PKGCONFIG cairo --cflags`" + + AC_DEFINE_UNQUOTED(HAVE_CAIRO, 1, [Defines if your system has the Cairo library]) + fi +fi + +if test ! "$USE_RPATH" = "yes"; then + CAIRO_RPATH= +fi + +if test -n "$CAIRO_LIBS" +then + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([not found]) +fi + +AC_SUBST(CAIRO_LIBS) +AC_SUBST(CAIRO_CFLAGS) +AC_SUBST(CAIRO_RPATH) + +AM_CONDITIONAL(have_openexr, test -n "$CAIRO_LIBS") + +# --- End of Cairo check --- + +# --- GTK3 check --- + +KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [ + AC_MSG_WARN([Could not find pkg-config]) +]) + +AC_MSG_CHECKING([for GTK3]) + +if test -n "$PKGCONFIG"; then + vers=`$PKGCONFIG gtk+-3.0 --modversion 2>/dev/null` + if test -n "$vers" + then + GTK3_LIBS="`$PKGCONFIG gtk+-3.0 --libs`" + GTK3_RPATH= + for args in $GTK3_LIBS; do + case $args in + -L*) + GTK3_RPATH="$GTK3_RPATH $args" + ;; + esac + done + GTK3_RPATH=`echo $GTK3_RPATH | $SED -e "s/-L/-R/g"` + GTK3_CFLAGS="`$PKGCONFIG gtk+-3.0 --cflags`" + GTK3_PREFIX=`$PKG_CONFIG --variable=prefix gtk+-3.0` + GTK3_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0` + + AC_DEFINE_UNQUOTED(HAVE_GTK3, 1, [Defines if your system has the GTK3 library]) + fi +fi + +if test ! "$USE_RPATH" = "yes"; then + GTK3_RPATH= +fi + +if test -n "$GTK3_LIBS" +then + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([not found]) +fi + +AC_SUBST(GTK3_LIBS) +AC_SUBST(GTK3_CFLAGS) +AC_SUBST(GTK3_RPATH) +AC_SUBST(GTK3_PREFIX) +AC_SUBST(GTK3_VERSION) + +AM_CONDITIONAL(have_openexr, test -n "$GTK3_LIBS") + +# --- End of GTK3 check --- + +# --- Pango check --- + +KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [ + AC_MSG_WARN([Could not find pkg-config]) +]) + +AC_MSG_CHECKING([for Pango]) + +if test -n "$PKGCONFIG"; then + vers=`$PKGCONFIG pango --modversion 2>/dev/null` + if test -n "$vers" + then + PANGO_LIBS="`$PKGCONFIG pango --libs`" + PANGO_RPATH= + for args in $PANGO_LIBS; do + case $args in + -L*) + PANGO_RPATH="$PANGO_RPATH $args" + ;; + esac + done + PANGO_RPATH=`echo $PANGO_RPATH | $SED -e "s/-L/-R/g"` + PANGO_CFLAGS="`$PKGCONFIG pango --cflags`" + + AC_DEFINE_UNQUOTED(HAVE_PANGO, 1, [Defines if your system has the Pango library]) + fi +fi + +if test ! "$USE_RPATH" = "yes"; then + PANGO_RPATH= +fi + +if test -n "$PANGO_LIBS" +then + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([not found]) +fi + +AC_SUBST(PANGO_LIBS) +AC_SUBST(PANGO_CFLAGS) +AC_SUBST(PANGO_RPATH) + +AM_CONDITIONAL(have_openexr, test -n "$PANGO_LIBS") + +# --- End of Pango check --- |