aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-05-07 06:17:37 -0400
committerGlenn Morris2013-05-07 06:17:37 -0400
commit910833aef444643ed3fb82b1a9c51297d5283bbd (patch)
tree6020ed1a0006e7d71e456e3a75e70affe2517f7d
parent4f58bc066df27f66a7110b672f7c137e6ef1357a (diff)
downloademacs-910833aef444643ed3fb82b1a9c51297d5283bbd.tar.gz
emacs-910833aef444643ed3fb82b1a9c51297d5283bbd.zip
Auto-commit of generated files.
-rw-r--r--autogen/Makefile.in4
-rw-r--r--autogen/config.in12
-rwxr-xr-xautogen/configure255
3 files changed, 271 insertions, 0 deletions
diff --git a/autogen/Makefile.in b/autogen/Makefile.in
index 912aefe095a..680bebd5261 100644
--- a/autogen/Makefile.in
+++ b/autogen/Makefile.in
@@ -890,9 +890,13 @@ WINDRES = @WINDRES@
890WINT_T_SUFFIX = @WINT_T_SUFFIX@ 890WINT_T_SUFFIX = @WINT_T_SUFFIX@
891XFT_CFLAGS = @XFT_CFLAGS@ 891XFT_CFLAGS = @XFT_CFLAGS@
892XFT_LIBS = @XFT_LIBS@ 892XFT_LIBS = @XFT_LIBS@
893XINERAMA_CFLAGS = @XINERAMA_CFLAGS@
894XINERAMA_LIBS = @XINERAMA_LIBS@
893XMENU_OBJ = @XMENU_OBJ@ 895XMENU_OBJ = @XMENU_OBJ@
894XMKMF = @XMKMF@ 896XMKMF = @XMKMF@
895XOBJ = @XOBJ@ 897XOBJ = @XOBJ@
898XRANDR_CFLAGS = @XRANDR_CFLAGS@
899XRANDR_LIBS = @XRANDR_LIBS@
896X_TOOLKIT_TYPE = @X_TOOLKIT_TYPE@ 900X_TOOLKIT_TYPE = @X_TOOLKIT_TYPE@
897abs_builddir = @abs_builddir@ 901abs_builddir = @abs_builddir@
898abs_srcdir = @abs_srcdir@ 902abs_srcdir = @abs_srcdir@
diff --git a/autogen/config.in b/autogen/config.in
index f1b3abd94dd..18b1ea09780 100644
--- a/autogen/config.in
+++ b/autogen/config.in
@@ -1106,15 +1106,27 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1106/* Define to 1 if XIM is available */ 1106/* Define to 1 if XIM is available */
1107#undef HAVE_XIM 1107#undef HAVE_XIM
1108 1108
1109/* Define to 1 if you have the Xinerama extension. */
1110#undef HAVE_XINERAMA
1111
1109/* Define to 1 if you have the Xkb extension. */ 1112/* Define to 1 if you have the Xkb extension. */
1110#undef HAVE_XKB 1113#undef HAVE_XKB
1111 1114
1112/* Define to 1 if you have the Xpm library (-lXpm). */ 1115/* Define to 1 if you have the Xpm library (-lXpm). */
1113#undef HAVE_XPM 1116#undef HAVE_XPM
1114 1117
1118/* Define to 1 if you have the XRandr extension. */
1119#undef HAVE_XRANDR
1120
1115/* Define to 1 if you have the `XrmSetDatabase' function. */ 1121/* Define to 1 if you have the `XrmSetDatabase' function. */
1116#undef HAVE_XRMSETDATABASE 1122#undef HAVE_XRMSETDATABASE
1117 1123
1124/* Define to 1 if you have the `XRRGetOutputPrimary' function. */
1125#undef HAVE_XRRGETOUTPUTPRIMARY
1126
1127/* Define to 1 if you have the `XRRGetScreenResourcesCurrent' function. */
1128#undef HAVE_XRRGETSCREENRESOURCESCURRENT
1129
1118/* Define to 1 if you have the `XScreenNumberOfScreen' function. */ 1130/* Define to 1 if you have the `XScreenNumberOfScreen' function. */
1119#undef HAVE_XSCREENNUMBEROFSCREEN 1131#undef HAVE_XSCREENNUMBEROFSCREEN
1120 1132
diff --git a/autogen/configure b/autogen/configure
index bd900b5afef..02d2ff88701 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -1286,6 +1286,10 @@ LIBS_MAIL
1286liblockfile 1286liblockfile
1287LIBXML2_LIBS 1287LIBXML2_LIBS
1288LIBXML2_CFLAGS 1288LIBXML2_CFLAGS
1289XINERAMA_LIBS
1290XINERAMA_CFLAGS
1291XRANDR_LIBS
1292XRANDR_CFLAGS
1289LIBXSM 1293LIBXSM
1290LIBGPM 1294LIBGPM
1291LIBGIF 1295LIBGIF
@@ -13470,6 +13474,257 @@ $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13470fi 13474fi
13471 13475
13472 13476
13477### Use XRandr (-lXrandr) if available
13478HAVE_XRANDR=no
13479if test "${HAVE_X11}" = "yes"; then
13480 XRANDR_REQUIRED=1.2.2
13481 XRANDR_MODULES="xrandr >= $XRANDR_REQUIRED"
13482
13483 succeeded=no
13484
13485 if test "$PKG_CONFIG" = "no" ; then
13486 HAVE_XRANDR=no
13487 else
13488 PKG_CONFIG_MIN_VERSION=0.9.0
13489 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
13491$as_echo_n "checking for $XRANDR_MODULES... " >&6; }
13492
13493 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
13494 XRANDR_CFLAGS=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
13495 XRANDR_LIBS=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
13496 edit_cflags="
13497 s,///*,/,g
13498 s/^/ /
13499 s/ -I/ $isystem/g
13500 s/^ //
13501 "
13502 XRANDR_CFLAGS=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
13503 XRANDR_LIBS=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
13505$as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
13506 succeeded=yes
13507 else
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509$as_echo "no" >&6; }
13510 XRANDR_CFLAGS=""
13511 XRANDR_LIBS=""
13512 ## If we have a custom action on failure, don't print errors, but
13513 ## do set a variable so people can do so. Do it in a subshell
13514 ## to capture any diagnostics in invoking pkg-config.
13515 XRANDR_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
13516
13517 fi
13518
13519
13520
13521 else
13522 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13523 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13524 fi
13525 fi
13526
13527 if test $succeeded = yes; then
13528 HAVE_XRANDR=yes
13529 else
13530 HAVE_XRANDR=no
13531 fi
13532
13533 if test $HAVE_XRANDR = no; then
13534 # Test old way in case pkg-config doesn't have it (older machines).
13535 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
13536if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
13538$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
13539if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
13540 $as_echo_n "(cached) " >&6
13541else
13542 ac_check_lib_save_LIBS=$LIBS
13543LIBS="-lXrandr $LIBS"
13544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545/* end confdefs.h. */
13546
13547/* Override any GCC internal prototype to avoid an error.
13548 Use char because int might match the return type of a GCC
13549 builtin and then its argument prototype would still apply. */
13550#ifdef __cplusplus
13551extern "C"
13552#endif
13553char XRRQueryExtension ();
13554int
13555main ()
13556{
13557return XRRQueryExtension ();
13558 ;
13559 return 0;
13560}
13561_ACEOF
13562if ac_fn_c_try_link "$LINENO"; then :
13563 ac_cv_lib_Xrandr_XRRQueryExtension=yes
13564else
13565 ac_cv_lib_Xrandr_XRRQueryExtension=no
13566fi
13567rm -f core conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13569LIBS=$ac_check_lib_save_LIBS
13570fi
13571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
13572$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
13573if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
13574 HAVE_XRANDR=yes
13575fi
13576
13577fi
13578
13579
13580 if test $HAVE_XRANDR = yes; then
13581 XRANDR_LIBS=-lXrandr
13582
13583 fi
13584 fi
13585 if test $HAVE_XRANDR = yes; then
13586 SAVE_CFLAGS="$CFLAGS"
13587 SAVE_LIBS="$LIBS"
13588 CFLAGS="$XRANDR_CFLAGS $CFLAGS"
13589 LIBS="$XRANDR_LIBS $LIBS"
13590 for ac_func in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
13591do :
13592 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13593ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13594eval as_val=\$$as_ac_var
13595 if test "x$as_val" = x""yes; then :
13596 cat >>confdefs.h <<_ACEOF
13597#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13598_ACEOF
13599
13600fi
13601done
13602
13603 CFLAGS="$SAVE_CFLAGS"
13604 LIBS="$SAVE_LIBS"
13605
13606
13607$as_echo "#define HAVE_XRANDR 1" >>confdefs.h
13608
13609 fi
13610fi
13611
13612### Use Xinerama (-lXinerama) if available
13613HAVE_XINERAMA=no
13614if test "${HAVE_X11}" = "yes"; then
13615 XINERAMA_REQUIRED=1.0.2
13616 XINERAMA_MODULES="xinerama >= $XINERAMA_REQUIRED"
13617
13618 succeeded=no
13619
13620 if test "$PKG_CONFIG" = "no" ; then
13621 HAVE_XINERAMA=no
13622 else
13623 PKG_CONFIG_MIN_VERSION=0.9.0
13624 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
13626$as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
13627
13628 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
13629 XINERAMA_CFLAGS=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
13630 XINERAMA_LIBS=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
13631 edit_cflags="
13632 s,///*,/,g
13633 s/^/ /
13634 s/ -I/ $isystem/g
13635 s/^ //
13636 "
13637 XINERAMA_CFLAGS=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
13638 XINERAMA_LIBS=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
13640$as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
13641 succeeded=yes
13642 else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644$as_echo "no" >&6; }
13645 XINERAMA_CFLAGS=""
13646 XINERAMA_LIBS=""
13647 ## If we have a custom action on failure, don't print errors, but
13648 ## do set a variable so people can do so. Do it in a subshell
13649 ## to capture any diagnostics in invoking pkg-config.
13650 XINERAMA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
13651
13652 fi
13653
13654
13655
13656 else
13657 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13658 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13659 fi
13660 fi
13661
13662 if test $succeeded = yes; then
13663 HAVE_XINERAMA=yes
13664 else
13665 HAVE_XINERAMA=no
13666 fi
13667
13668 if test $HAVE_XINERAMA = no; then
13669 # Test old way in case pkg-config doesn't have it (older machines).
13670 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
13671if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
13673$as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
13674if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13676else
13677 ac_check_lib_save_LIBS=$LIBS
13678LIBS="-lXinerama $LIBS"
13679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680/* end confdefs.h. */
13681
13682/* Override any GCC internal prototype to avoid an error.
13683 Use char because int might match the return type of a GCC
13684 builtin and then its argument prototype would still apply. */
13685#ifdef __cplusplus
13686extern "C"
13687#endif
13688char XineramaQueryExtension ();
13689int
13690main ()
13691{
13692return XineramaQueryExtension ();
13693 ;
13694 return 0;
13695}
13696_ACEOF
13697if ac_fn_c_try_link "$LINENO"; then :
13698 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
13699else
13700 ac_cv_lib_Xinerama_XineramaQueryExtension=no
13701fi
13702rm -f core conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
13704LIBS=$ac_check_lib_save_LIBS
13705fi
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
13707$as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
13708if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
13709 HAVE_XINERAMA=yes
13710fi
13711
13712fi
13713
13714
13715 if test $HAVE_XINERAMA = yes; then
13716 XINERAMA_LIBS=-lXinerama
13717
13718 fi
13719 fi
13720 if test $HAVE_XINERAMA = yes; then
13721
13722$as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
13723
13724 fi
13725fi
13726
13727
13473### Use libxml (-lxml2) if available 13728### Use libxml (-lxml2) if available
13474HAVE_LIBXML2=no 13729HAVE_LIBXML2=no
13475if test "${with_xml2}" != "no"; then 13730if test "${with_xml2}" != "no"; then