comparison configure @ 49322:2cbb0b823e83

GTK version
author Jan Djärv <jan.h.d@swipnet.se>
date Sun, 19 Jan 2003 21:50:03 +0000
parents 36655436667a
children b69102c57df8
comparison
equal deleted inserted replaced
49321:2b92ca3f78f6 49322:2cbb0b823e83
307 #endif 307 #endif
308 #if HAVE_UNISTD_H 308 #if HAVE_UNISTD_H
309 # include <unistd.h> 309 # include <unistd.h>
310 #endif" 310 #endif"
311 311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS' 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
313 ac_subst_files='' 313 ac_subst_files=''
314 314
315 # Initialize some variables set by options. 315 # Initialize some variables set by options.
316 ac_init_help= 316 ac_init_help=
317 ac_init_version=false 317 ac_init_version=false
864 --without-pop don't support POP mail retrieval with movemail 864 --without-pop don't support POP mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP 865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version 5 authenticated POP 866 --with-kerberos5 support Kerberos version 5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server host 867 --with-hesiod support Hesiod to get the POP server host
868 --without-sound don't compile with sound support 868 --without-sound don't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no) 869 --with-x-toolkit=KIT use an X toolkit
870 (KIT = yes/lucid/athena/motif/gtk/no)
870 --with-xpm use -lXpm for displaying XPM images 871 --with-xpm use -lXpm for displaying XPM images
871 --with-jpeg use -ljpeg for displaying JPEG images 872 --with-jpeg use -ljpeg for displaying JPEG images
872 --with-tiff use -ltiff for displaying TIFF images 873 --with-tiff use -ltiff for displaying TIFF images
873 --with-gif use -lungif for displaying GIF images 874 --with-gif use -lungif for displaying GIF images
874 --with-png use -lpng for displaying PNG images 875 --with-png use -lpng for displaying PNG images
876 --with-gtk use GTK (same as --with-x-toolkit=gtk)
877 --with-pkg-config-prog Path to pkg-config to use for finding GTK
875 --without-toolkit-scroll-bars 878 --without-toolkit-scroll-bars
876 don't use Motif or Xaw3d scroll bars 879 don't use Motif or Xaw3d scroll bars
877 --without-xim don't use X11 XIM 880 --without-xim don't use X11 XIM
878 --without-carbon don't use Carbon GUI on Mac OS X 881 --without-carbon don't use Carbon GUI on Mac OS X
879 --with-x use the X Window System 882 --with-x use the X Window System
1400 y | ye | yes ) val=athena ;; 1403 y | ye | yes ) val=athena ;;
1401 n | no ) val=no ;; 1404 n | no ) val=no ;;
1402 l | lu | luc | luci | lucid ) val=lucid ;; 1405 l | lu | luc | luci | lucid ) val=lucid ;;
1403 a | at | ath | athe | athen | athena ) val=athena ;; 1406 a | at | ath | athe | athen | athena ) val=athena ;;
1404 m | mo | mot | moti | motif ) val=motif ;; 1407 m | mo | mot | moti | motif ) val=motif ;;
1408 g | gt | gtk ) val=gtk ;;
1405 * ) 1409 * )
1406 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\; 1410 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1407 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. 1411 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1408 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 1412 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1409 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; 1413 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1410 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. 1414 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1411 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} 1415 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1412 { (exit 1); exit 1; }; } 1416 { (exit 1); exit 1; }; }
1413 ;; 1417 ;;
1414 esac 1418 esac
1415 with_x_toolkit=$val 1419 with_x_toolkit=$val
1441 fi; 1445 fi;
1442 1446
1443 # Check whether --with-png or --without-png was given. 1447 # Check whether --with-png or --without-png was given.
1444 if test "${with_png+set}" = set; then 1448 if test "${with_png+set}" = set; then
1445 withval="$with_png" 1449 withval="$with_png"
1450
1451 fi;
1452
1453 # Check whether --with-gtk or --without-gtk was given.
1454 if test "${with_gtk+set}" = set; then
1455 withval="$with_gtk"
1456
1457 fi;
1458
1459 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1460 if test "${with_pkg_config_prog+set}" = set; then
1461 withval="$with_pkg_config_prog"
1446 1462
1447 fi; 1463 fi;
1448 1464
1449 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. 1465 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1450 if test "${with_toolkit_scroll_bars+set}" = set; then 1466 if test "${with_toolkit_scroll_bars+set}" = set; then
6798 HAVE_X_WINDOWS=yes 6814 HAVE_X_WINDOWS=yes
6799 HAVE_X11=yes 6815 HAVE_X11=yes
6800 case "${with_x_toolkit}" in 6816 case "${with_x_toolkit}" in
6801 athena | lucid ) USE_X_TOOLKIT=LUCID ;; 6817 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6802 motif ) USE_X_TOOLKIT=MOTIF ;; 6818 motif ) USE_X_TOOLKIT=MOTIF ;;
6819 gtk ) with_gtk=yes
6820 USE_X_TOOLKIT=none ;;
6803 no ) USE_X_TOOLKIT=none ;; 6821 no ) USE_X_TOOLKIT=none ;;
6804 * ) USE_X_TOOLKIT=maybe ;; 6822 * ) USE_X_TOOLKIT=maybe ;;
6805 esac 6823 esac
6806 ;; 6824 ;;
6807 none ) 6825 none )
8056 echo "$as_me:$LINENO: result: before 5" >&5 8074 echo "$as_me:$LINENO: result: before 5" >&5
8057 echo "${ECHO_T}before 5" >&6 8075 echo "${ECHO_T}before 5" >&6
8058 fi 8076 fi
8059 fi 8077 fi
8060 8078
8079
8080
8081 HAVE_GTK=no
8082 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8083 if test "$USE_X_TOOLKIT" != "none"; then
8084 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8085 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8086 { (exit 1); exit 1; }; };
8087 fi
8088 GLIB_REQUIRED=2.0.1
8089 GTK_REQUIRED=2.0.1
8090 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8091
8092 if test "X${with_pkg_config_prog}" != X; then
8093 PKG_CONFIG="${with_pkg_config_prog}"
8094 fi
8095
8096 succeeded=no
8097
8098 if test -z "$PKG_CONFIG"; then
8099 # Extract the first word of "pkg-config", so it can be a program name with args.
8100 set dummy pkg-config; ac_word=$2
8101 echo "$as_me:$LINENO: checking for $ac_word" >&5
8102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8103 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 case $PKG_CONFIG in
8107 [\\/]* | ?:[\\/]*)
8108 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8109 ;;
8110 *)
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8113 do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8121 fi
8122 done
8123 done
8124
8125 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8126 ;;
8127 esac
8128 fi
8129 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8130
8131 if test -n "$PKG_CONFIG"; then
8132 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8133 echo "${ECHO_T}$PKG_CONFIG" >&6
8134 else
8135 echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8137 fi
8138
8139 fi
8140
8141 if test "$PKG_CONFIG" = "no" ; then
8142 echo "*** The pkg-config script could not be found. Make sure it is"
8143 echo "*** in your path, or give the full path to pkg-config with"
8144 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8145 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8146 else
8147 PKG_CONFIG_MIN_VERSION=0.9.0
8148 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8149 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8150 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8151
8152 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8153 echo "$as_me:$LINENO: result: yes" >&5
8154 echo "${ECHO_T}yes" >&6
8155 succeeded=yes
8156
8157 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8158 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8159 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8160 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8161 echo "${ECHO_T}$GTK_CFLAGS" >&6
8162
8163 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8164 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8165 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8166 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8167 echo "${ECHO_T}$GTK_LIBS" >&6
8168 else
8169 GTK_CFLAGS=""
8170 GTK_LIBS=""
8171 ## If we have a custom action on failure, don't print errors, but
8172 ## do set a variable so people can do so.
8173 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8174 echo $GTK_PKG_ERRORS
8175 fi
8176
8177
8178
8179 else
8180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8182 fi
8183 fi
8184
8185 if test $succeeded = yes; then
8186 :
8187 else
8188 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8189 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8190 { (exit 1); exit 1; }; }
8191 fi
8192
8193
8194
8195 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8196 HAVE_GTK=yes
8197
8198 cat >>confdefs.h <<\_ACEOF
8199 #define HAVE_GTK 1
8200 _ACEOF
8201
8202 USE_X_TOOLKIT=none
8203
8204 with_toolkit_scroll_bars=yes
8205 fi
8206
8061 if test x"${USE_X_TOOLKIT}" = xmaybe; then 8207 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8062 if test x"${HAVE_X11R5}" = xyes; then 8208 if test x"${HAVE_X11R5}" = xyes; then
8063 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5 8209 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8064 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 8210 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8065 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then 8211 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8648 #define USE_TOOLKIT_SCROLL_BARS 1 8794 #define USE_TOOLKIT_SCROLL_BARS 1
8649 _ACEOF 8795 _ACEOF
8650 8796
8651 USE_TOOLKIT_SCROLL_BARS=yes 8797 USE_TOOLKIT_SCROLL_BARS=yes
8652 fi 8798 fi
8799 elif test "${HAVE_GTK}" = "yes"; then
8800 cat >>confdefs.h <<\_ACEOF
8801 #define USE_TOOLKIT_SCROLL_BARS 1
8802 _ACEOF
8803
8804 USE_TOOLKIT_SCROLL_BARS=yes
8653 fi 8805 fi
8654 fi 8806 fi
8655 8807
8656 8808
8657 if test "${with_xim}" != "no"; then 8809 if test "${with_xim}" != "no"; then
17843 17995
17844 17996
17845 17997
17846 17998
17847 #### Report on what we decided to do. 17999 #### Report on what we decided to do.
18000 #### Report GTK as a toolkit, even if it doesn't use Xt.
18001 #### It makes printing result more understandable as using GTK sets
18002 #### toolkit_scroll_bars to yes by default.
18003 if test "${HAVE_GTK}" = "yes"; then
18004 USE_X_TOOLKIT=GTK
18005 fi
18006
17848 echo " 18007 echo "
17849 Configured for \`${canonical}'. 18008 Configured for \`${canonical}'.
17850 18009
17851 Where should the build process find the source code? ${srcdir} 18010 Where should the build process find the source code? ${srcdir}
17852 What operating system and machine description files should Emacs use? 18011 What operating system and machine description files should Emacs use?
18564 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 18723 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18565 s,@INSTALL_INFO@,$INSTALL_INFO,;t t 18724 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18566 s,@EGREP@,$EGREP,;t t 18725 s,@EGREP@,$EGREP,;t t
18567 s,@LIBSOUND@,$LIBSOUND,;t t 18726 s,@LIBSOUND@,$LIBSOUND,;t t
18568 s,@SET_MAKE@,$SET_MAKE,;t t 18727 s,@SET_MAKE@,$SET_MAKE,;t t
18728 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18729 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18730 s,@GTK_LIBS@,$GTK_LIBS,;t t
18569 s,@ALLOCA@,$ALLOCA,;t t 18731 s,@ALLOCA@,$ALLOCA,;t t
18570 s,@liblockfile@,$liblockfile,;t t 18732 s,@liblockfile@,$liblockfile,;t t
18571 s,@LIBOBJS@,$LIBOBJS,;t t 18733 s,@LIBOBJS@,$LIBOBJS,;t t
18572 s,@NEED_SETGID@,$NEED_SETGID,;t t 18734 s,@NEED_SETGID@,$NEED_SETGID,;t t
18573 s,@KMEM_GROUP@,$KMEM_GROUP,;t t 18735 s,@KMEM_GROUP@,$KMEM_GROUP,;t t