acinclude/lt~obsolete.m4
author Michael Sartain <mikesart@valvesoftware.com>
Thu, 11 Oct 2012 09:41:43 -0700
changeset 6570 45855398762c
parent 6442 2d3caa191dc4
permissions -rw-r--r--
Add GLX_X_VISUAL_TYPE_EXT so created window will use DirectColor if available (instead of TrueColor).
Our new X11 window was being created with the TrueColor attribute, and trying to set the gamma
on that would fail. This change checks for the visual_info extension, and uses that to ask for
DirectColor if available.
slouken@3342
     1
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
slouken@3342
     2
#
slouken@6442
     3
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
slouken@3342
     4
#   Written by Scott James Remnant, 2004.
slouken@3342
     5
#
slouken@3342
     6
# This file is free software; the Free Software Foundation gives
slouken@3342
     7
# unlimited permission to copy and/or distribute it, with or without
slouken@3342
     8
# modifications, as long as this notice is preserved.
slouken@3342
     9
slouken@6442
    10
# serial 5 lt~obsolete.m4
slouken@3342
    11
slouken@3342
    12
# These exist entirely to fool aclocal when bootstrapping libtool.
slouken@3342
    13
#
slouken@3342
    14
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
slouken@3342
    15
# which have later been changed to m4_define as they aren't part of the
slouken@3342
    16
# exported API, or moved to Autoconf or Automake where they belong.
slouken@3342
    17
#
slouken@3342
    18
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
slouken@3342
    19
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
slouken@3342
    20
# using a macro with the same name in our local m4/libtool.m4 it'll
slouken@3342
    21
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
slouken@3342
    22
# and doesn't know about Autoconf macros at all.)
slouken@3342
    23
#
slouken@3342
    24
# So we provide this file, which has a silly filename so it's always
slouken@3342
    25
# included after everything else.  This provides aclocal with the
slouken@3342
    26
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
slouken@3342
    27
# because those macros already exist, or will be overwritten later.
slouken@3342
    28
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
slouken@3342
    29
#
slouken@3342
    30
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
slouken@3342
    31
# Yes, that means every name once taken will need to remain here until
slouken@3342
    32
# we give up compatibility with versions before 1.7, at which point
slouken@3342
    33
# we need to keep only those names which we still refer to.
slouken@3342
    34
slouken@3342
    35
# This is to help aclocal find these macros, as it can't see m4_define.
slouken@3342
    36
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
slouken@3342
    37
slouken@3342
    38
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
slouken@3342
    39
m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
slouken@3342
    40
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
slouken@3342
    41
m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
slouken@3342
    42
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
slouken@3342
    43
m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
slouken@3342
    44
m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
slouken@3342
    45
m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
slouken@3342
    46
m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
slouken@3342
    47
m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
slouken@3342
    48
m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
slouken@3342
    49
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
slouken@3342
    50
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
slouken@3342
    51
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
slouken@3342
    52
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
slouken@3342
    53
m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
slouken@3342
    54
m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
slouken@3342
    55
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
slouken@3342
    56
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
slouken@3342
    57
m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
slouken@3342
    58
m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
slouken@3342
    59
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
slouken@3342
    60
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
slouken@3342
    61
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
slouken@3342
    62
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
slouken@3342
    63
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
slouken@3342
    64
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
slouken@3342
    65
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
slouken@3342
    66
m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
slouken@3342
    67
m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
slouken@3342
    68
m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
slouken@3342
    69
m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
slouken@3342
    70
m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
slouken@3342
    71
m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
slouken@3342
    72
m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
slouken@3342
    73
m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
slouken@3342
    74
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
slouken@3342
    75
m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
slouken@3342
    76
m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
slouken@3342
    77
m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
slouken@3342
    78
m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
slouken@3342
    79
m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
slouken@3342
    80
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
slouken@3342
    81
m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
slouken@3342
    82
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
slouken@3342
    83
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
slouken@3342
    84
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
slouken@3342
    85
m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
slouken@3342
    86
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
slouken@3342
    87
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
slouken@3342
    88
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
slouken@3342
    89
m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
slouken@3342
    90
m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
slouken@3342
    91
m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
slouken@6442
    92
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],	[AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
slouken@6442
    93
m4_ifndef([_LT_AC_PROG_CXXCPP],		[AC_DEFUN([_LT_AC_PROG_CXXCPP])])
slouken@6442
    94
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],	[AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
slouken@6442
    95
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
slouken@6442
    96
m4_ifndef([_LT_PROG_F77],		[AC_DEFUN([_LT_PROG_F77])])
slouken@6442
    97
m4_ifndef([_LT_PROG_FC],		[AC_DEFUN([_LT_PROG_FC])])
slouken@6442
    98
m4_ifndef([_LT_PROG_CXX],		[AC_DEFUN([_LT_PROG_CXX])])