You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gtk3-tqt-engine/configure.in.in

154 lines
3.4 KiB

#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 ---