pike.git / src / post_modules / GTK2 / configure.in

version» Context lines:

pike.git/src/post_modules/GTK2/configure.in:1:   dnl test      AC_INIT(build_pgtk.pike)   AC_CONFIG_HEADER(pgtk_config.h)      PIKE_FEATURE_WITHOUT(GTK2)      AC_MODULE_INIT()    + # some Darwin/OSX headers have Objective-C syntax, so we need + # to enable that on the compiler in order for header checks to succeed. + case "$pike_cv_sys_os" in +  Darwin) +  CFLAGS="$CFLAGS -x objective-c" + ;; + esac +    dnl AC_DEFINE(FUNCPROTO)   dnl AC_DEFINE(HAVE_GNOME)   dnl AC_DEFINE(HAVE_DPMS)   dnl AC_DEFINE(PGTK_AUTO_UTF8)      AC_DEFINE(FUNCPROTO)      AC_HEADER_STDC      # Must be before AC_CHECK_FUNCS for PIKE_FUNCS_NEED_DECLS to work. - AC_CHECK_HEADERS( signal.h netinet/in.h arpa/inet.h sys/types.h sys/stat.h fcntl.h ) + AC_CHECK_HEADERS( netinet/in.h arpa/inet.h sys/types.h sys/stat.h fcntl.h )    - AC_CHECK_FUNCS( gethrtime signal sigaction ) + AC_CHECK_FUNCS( gethrtime sigaction )    - AC_PATH_PROG(PKG_CONFIG,${ac_tool_prefix}pkg-config,no) + PIKE_PROG_PKG_CONFIG      AC_SUBST(pgtk2_have_x11)   pgtk2_have_x11=nox11   AC_SUBST(pgtk_has_gtk_beta)   pgtk_has_gtk_beta=nogtk_beta -  + AC_SUBST(pgtk_has_gtk224) + pgtk_has_gtk224=nogtk224 + AC_SUBST(pgtk_has_gtk222) + pgtk_has_gtk222=nogtk222 + AC_SUBST(pgtk_has_gtk220) + pgtk_has_gtk220=nogtk220 + AC_SUBST(pgtk_has_gtk218) + pgtk_has_gtk218=nogtk218   AC_SUBST(pgtk_has_gtk216)   pgtk_has_gtk216=nogtk216   AC_SUBST(pgtk_has_gtk214)   pgtk_has_gtk214=nogtk214   AC_SUBST(pgtk_has_gtk212)   pgtk_has_gtk212=nogtk212   AC_SUBST(pgtk_has_gtk210)   pgtk_has_gtk210=nogtk210   AC_SUBST(pgtk_has_gtk28)   pgtk_has_gtk28=nogtk28
pike.git/src/post_modules/GTK2/configure.in:74:   AC_SUBST(pgtk_has_gtksourceview11)   pgtk_has_gtksourceview11=nogtksourceview11   AC_SUBST(pgtk_has_gtksourceview20)   pgtk_has_gtksourceview20=nogtksourceview20      # lib, header, symbol, ok, fail, feature   AC_DEFUN([AC_CHECK_PKG],   [    AC_MSG_CHECKING([for $1])    AC_CACHE_VAL([pgtk2_cv_pkg_]translit([$1], [-+.], [___]), [ -  if ${ac_tool_prefix}pkg-config $1 2>/dev/null; then +  if [$]PKG_CONFIG $1 2>/dev/null; then    [pgtk2_cv_pkg_]translit([$1], [-+.], [___])=yes    else    [pgtk2_cv_pkg_]translit([$1], [-+.], [___])=no    fi    ])    if test x"$[pgtk2_cv_pkg_]translit([$1], [-+.], [___])" = xyes; then    AC_MSG_RESULT(yes)       ifelse([$6],,,[PIKE_FEATURE_NODEP([$6])])dnl       # Note: ORBit-2.0.pc on Solaris 10/x86 adds -mt to cflags,    # which gcc doesn't like...    # The manual for cc says that -mt is -D_REENTRANT plus -lthread;    # both of which should already be present.    # /grubba 2005-10-05    OLD_CFLAGS="$CFLAGS"    OLD_LIBS="$LIBS" -  LIBS="`${ac_tool_prefix}pkg-config --libs $gtk_final_libs $1 | sed -e 's/\(.*\)/ \1 /' | sed -e 's/ -mt / /g'` $LIBS" -  CFLAGS="`${ac_tool_prefix}pkg-config --cflags $gtk_final_libs $1 | sed -e 's/\(.*\)/ \1 /' | sed -e 's/ -mt / /g'` $CFLAGS" +  LIBS="`[$]PKG_CONFIG --libs $gtk_final_libs $1 | sed -e 's/\(.*\)/ \1 /' | sed -e 's/ -mt / /g'` $LIBS" +  CFLAGS="`[$]PKG_CONFIG --cflags $gtk_final_libs $1 | sed -e 's/\(.*\)/ \1 /' | sed -e 's/ -mt / /g'` $CFLAGS"       # Header check necessary for PIKE_FUNCS_NEED_DECLS.    ifelse([$2],,,[AC_CHECK_HEADERS($2)])       AC_CHECK_FUNCS($3)    LIBS="$OLD_LIBS"    CFLAGS="$OLD_CFLAGS"    if test "x$ac_cv_func_$3" = "xyes"; then    gtk_final_libs="$gtk_final_libs $1"    ifelse([$4],,ifelse([$6],,,[PIKE_FEATURE_OK([$6])]),[$4])dnl
pike.git/src/post_modules/GTK2/configure.in:118:    else    AC_MSG_RESULT(no)    ifelse([$5],,,[$5])dnl    fi   ])      dnl package   AC_DEFUN(PGTK_CHECK_VERSION, [    AC_MSG_CHECKING(for $1 version)    AC_CACHE_VAL([pgtk2_cv_ver_]translit([$1], [-+.], [___]), [ -  [pgtk2_cv_ver_]translit([$1], [-+.], [___])=`${ac_tool_prefix}pkg-config --modversion $1 2>/dev/null` +  [pgtk2_cv_ver_]translit([$1], [-+.], [___])=`[$]PKG_CONFIG --modversion $1 2>/dev/null`    ])    AC_MSG_RESULT($[pgtk2_cv_ver_]translit([$1], [-+.], [___]))   ])      WITH_GTK=0   if test "$PKG_CONFIG" = "no" ; then    echo "*** pkg-config must be in your path!!!"   else    gtk_test_libs="gtk+-2.0 libgnome-2.0 libglade-2.0 libgnomeui-2.0 libpanelapplet-2.0"    gtk_final_libs=""
pike.git/src/post_modules/GTK2/configure.in:181:    AC_DEFINE(HAVE_GTK212)    fi    if test $gtkminorvers -ge 14 ; then    pgtk_has_gtk214=gtk214    AC_DEFINE(HAVE_GTK214)    fi    if test $gtkminorvers -ge 16 ; then    pgtk_has_gtk216=gtk216    AC_DEFINE(HAVE_GTK216)    fi +  if test $gtkminorvers -ge 18 ; then +  pgtk_has_gtk218=gtk218 +  AC_DEFINE(HAVE_GTK218)    fi -  +  if test $gtkminorvers -ge 20 ; then +  pgtk_has_gtk220=gtk220 +  AC_DEFINE(HAVE_GTK220) +  fi +  if test $gtkminorvers -ge 22 ; then +  pgtk_has_gtk222=gtk222 +  AC_DEFINE(HAVE_GTK222) +  fi +  if test $gtkminorvers -ge 24 ; then +  pgtk_has_gtk224=gtk224 +  AC_DEFINE(HAVE_GTK224) +  fi +  fi    ],,GTK2)    if test "x$WITH_GTK" = "x1"; then    PIKE_FEATURE_NODEP(Pango)    AC_CHECK_PKG(pango,, pango_font_description_new, [    pgtk_has_pango=pango    AC_DEFINE(HAVE_PANGO)       PIKE_FEATURE_OK(Pango)       PGTK_CHECK_VERSION(pango)
pike.git/src/post_modules/GTK2/configure.in:329:    AC_DEFINE(HAVE_GTKSOURCEVIEW11)    fi    ])    ])       # Note: ORBit-2.0.pc on Solaris 10/x86 adds -mt to cflags,    # which gcc doesn't like...    # The manual for cc says that -mt is -D_REENTRANT plus -lthread;    # both of which should already be present.    # /grubba 2005-10-05 -  GTK_CFLAGS="`${ac_tool_prefix}pkg-config --cflags ${gtk_final_libs} | sed -e 's/\(.*\)/ \1 /' | sed -e 's/ -mt / /g'`" -  GTK_LIBS="`${ac_tool_prefix}pkg-config --libs ${gtk_final_libs} | sed -e 's/\(.*\)/ \1 /' | sed -e 's/ -mt / /g'`" +  GTK_CFLAGS="`[$]PKG_CONFIG --cflags ${gtk_final_libs} | sed -e 's/\(.*\)/ \1 /' | sed -e 's/ -mt / /g'`" +  GTK_LIBS="`[$]PKG_CONFIG --libs ${gtk_final_libs} | sed -e 's/\(.*\)/ \1 /' | sed -e 's/ -mt / /g'`"       AC_DEFINE(PGTK_AUTO_UTF8)    fi   fi      # Test for API differences...   OLD_CFLAGS="$CFLAGS"   OLD_LIBS="$LIBS"   CFLAGS="$CFLAGS $GTK_CFLAGS"   LIBS="$LIBS $GTK_LIBS"    - AC_CHECK_FUNCS(gtk_tree_selection_unselect_range) + AC_CHECK_HEADERS( gdk/gdkx.h gdk/gdkwin32.h gdk/gdkquartz.h )    -  + AC_CHECK_FUNCS(gtk_tree_selection_unselect_range g_value_get_schar g_value_set_schar) +    AC_MSG_CHECKING([if g_signal_connect_data takes six args])   AC_CACHE_VAL(pgtk2_cv_g_signal_connect_has_six_args, [    AC_TRY_COMPILE([   #include <glib-object.h>    ],[    g_signal_connect_data(0,0,0,0,0,0);    ], [ pgtk2_cv_g_signal_connect_has_six_args="yes"    ], [ pgtk2_cv_g_signal_connect_has_six_args="no" ])   ])   if test "x$pgtk2_cv_g_signal_connect_has_six_args" = "xyes"; then
pike.git/src/post_modules/GTK2/configure.in:380:    [pgtk2_cv_have_x11=x11],    [pgtk2_cv_have_x11=nox11])   ])   pgtk2_have_x11="$pgtk2_cv_have_x11"   if test "x$pgtk2_have_x11" = "xx11"; then    AC_MSG_RESULT(yes)   else    AC_MSG_RESULT(no)   fi    + # some Darwin/OSX headers have Objective-C syntax, + # so we need to enable that on the compiler. + case "$pike_cv_sys_os" in +  Darwin) +  GTK_CFLAGS="$GTK_CFLAGS -x objective-c" + ;; + esac +    LIBS="$OLD_LIBS"   CFLAGS="$OLD_CFLAGS"      AC_SUBST(pgtk_has_libglade) -  + AC_SUBST(pgtk_has_gtk224) + AC_SUBST(pgtk_has_gtk222) + AC_SUBST(pgtk_has_gtk220) + AC_SUBST(pgtk_has_gtk218)   AC_SUBST(pgtk_has_gtk216)   AC_SUBST(pgtk_has_gtk214)   AC_SUBST(pgtk_has_gtk212)   AC_SUBST(pgtk_has_gtk210)   AC_SUBST(pgtk_has_gtk28)   AC_SUBST(pgtk_has_gtk26)   AC_SUBST(pgtk_has_gtk24)   AC_SUBST(pgtk_has_gtk22)   AC_SUBST(pgtk_has_pango)   AC_SUBST(pgtk_has_pango110)
pike.git/src/post_modules/GTK2/configure.in:415:   AC_SUBST(GTK_LIBS)   AC_SUBST(pgtk_has_gnome)   AC_SUBST(pgtk_has_gnomecanvas)   AC_SUBST(pgtk_has_gtkdatabox)   AC_SUBST(pgtk_has_gtksourceview)      AC_SUBST(WITH_GTK)   PGTK_CFLAGS="$GTK_CFLAGS"   PGTK_LIBS="$GTK_LIBS"   CFLAGS="$CFLAGS $GTK_CFLAGS" +    LIBS="$MODULE_LDFLAGS $LIBS" -  +    AC_OUTPUT(Makefile options)