~ubuntu-branches/ubuntu/natty/xf86-input-wacom/natty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2010-03-31 07:20:20 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100331072020-kme2simx91izo45u
Tags: 1:0.10.5-0ubuntu1
* Merge from debian.
* rules: Run xsfclean on clean.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
17
 
[m4_warning([this file was generated for autoconf 2.64.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
 
17
[m4_warning([this file was generated for autoconf 2.65.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
2460
2460
  ;;
2461
2461
 
2462
2462
# This must be Linux ELF.
2463
 
linux* | k*bsd*-gnu)
 
2463
linux* | k*bsd*-gnu | kopensolaris*-gnu)
2464
2464
  version_type=linux
2465
2465
  need_lib_prefix=no
2466
2466
  need_version=no
3099
3099
  ;;
3100
3100
 
3101
3101
# This must be Linux ELF.
3102
 
linux* | k*bsd*-gnu)
 
3102
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3103
3103
  lt_cv_deplibs_check_method=pass_all
3104
3104
  ;;
3105
3105
 
3720
3720
            ;;
3721
3721
        esac
3722
3722
        ;;
3723
 
      linux* | k*bsd*-gnu)
 
3723
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
3724
3724
        case $cc_basename in
3725
3725
          KCC*)
3726
3726
            # KAI C++ Compiler
4004
4004
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4005
4005
      ;;
4006
4006
 
4007
 
    linux* | k*bsd*-gnu)
 
4007
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
4008
4008
      case $cc_basename in
4009
4009
      # old Intel for x86_64 which still supported -KPIC.
4010
4010
      ecc*)
4300
4300
    fi
4301
4301
    supports_anon_versioning=no
4302
4302
    case `$LD -v 2>&1` in
 
4303
      *GNU\ gold*) supports_anon_versioning=yes ;;
4303
4304
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4304
4305
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4305
4306
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4391
4392
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4392
4393
      ;;
4393
4394
 
4394
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
4395
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4395
4396
      tmp_diet=no
4396
4397
      if test "$host_os" = linux-dietlibc; then
4397
4398
        case $cc_basename in
5871
5872
        _LT_TAGVAR(inherit_rpath, $1)=yes
5872
5873
        ;;
5873
5874
 
5874
 
      linux* | k*bsd*-gnu)
 
5875
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
5875
5876
        case $cc_basename in
5876
5877
          KCC*)
5877
5878
            # Kuck and Associates, Inc. (KAI) C++ Compiler
7878
7879
 
7879
7880
# Generated from ltversion.in.
7880
7881
 
7881
 
# serial 3012 ltversion.m4
 
7882
# serial 3017 ltversion.m4
7882
7883
# This file is part of GNU Libtool
7883
7884
 
7884
 
m4_define([LT_PACKAGE_VERSION], [2.2.6])
7885
 
m4_define([LT_PACKAGE_REVISION], [1.3012])
 
7885
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
 
7886
m4_define([LT_PACKAGE_REVISION], [1.3017])
7886
7887
 
7887
7888
AC_DEFUN([LTVERSION_VERSION],
7888
 
[macro_version='2.2.6'
7889
 
macro_revision='1.3012'
 
7889
[macro_version='2.2.6b'
 
7890
macro_revision='1.3017'
7890
7891
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7891
7892
_LT_DECL(, macro_revision, 0)
7892
7893
])
8147
8148
dnl Copyright 2005-2006 Sun Microsystems, Inc.  All rights reserved.
8148
8149
dnl 
8149
8150
dnl Permission is hereby granted, free of charge, to any person obtaining a
8150
 
dnl copy of this software and associated documentation files (the
8151
 
dnl "Software"), to deal in the Software without restriction, including
8152
 
dnl without limitation the rights to use, copy, modify, merge, publish,
8153
 
dnl distribute, and/or sell copies of the Software, and to permit persons
8154
 
dnl to whom the Software is furnished to do so, provided that the above
8155
 
dnl copyright notice(s) and this permission notice appear in all copies of
8156
 
dnl the Software and that both the above copyright notice(s) and this
8157
 
dnl permission notice appear in supporting documentation.
8158
 
dnl
8159
 
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8160
 
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8161
 
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
8162
 
dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
8163
 
dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
8164
 
dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
8165
 
dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
8166
 
dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
8167
 
dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8168
 
dnl
8169
 
dnl Except as contained in this notice, the name of a copyright holder
8170
 
dnl shall not be used in advertising or otherwise to promote the sale, use
8171
 
dnl or other dealings in this Software without prior written authorization
8172
 
dnl of the copyright holder.
 
8151
dnl copy of this software and associated documentation files (the "Software"),
 
8152
dnl to deal in the Software without restriction, including without limitation
 
8153
dnl the rights to use, copy, modify, merge, publish, distribute, sublicense,
 
8154
dnl and/or sell copies of the Software, and to permit persons to whom the
 
8155
dnl Software is furnished to do so, subject to the following conditions:
 
8156
dnl
 
8157
dnl The above copyright notice and this permission notice (including the next
 
8158
dnl paragraph) shall be included in all copies or substantial portions of the
 
8159
dnl Software.
 
8160
dnl
 
8161
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
8162
dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
8163
dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 
8164
dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
8165
dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 
8166
dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 
8167
dnl DEALINGS IN THE SOFTWARE.
8173
8168
 
8174
8169
# XORG_MACROS_VERSION(required-version)
8175
8170
# -------------------------------------
8187
8182
# See the "minimum version" comment for each macro you use to see what 
8188
8183
# version you require.
8189
8184
m4_defun([XORG_MACROS_VERSION],[
8190
 
m4_define([vers_have], [1.3.0])
 
8185
m4_define([vers_have], [1.5.0])
8191
8186
m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
8192
8187
m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
8193
8188
m4_if(m4_cmp(maj_have, maj_needed), 0,,
8454
8449
AC_SUBST(MAKE_HTML)
8455
8450
]) # XORG_CHECK_DOCBOOK
8456
8451
 
 
8452
# XORG_WITH_XMLTO
 
8453
# ----------------
 
8454
# Minimum version: 1.5.0
 
8455
#
 
8456
# Documentation tools are not always available on all platforms and sometimes
 
8457
# not at the appropriate level. This macro enables a module to test for the
 
8458
# presence of the tool and obtain it's path in separate variables. Coupled with
 
8459
# the --with-xmlto option, it allows maximum flexibilty in making decisions
 
8460
# as whether or not to use the xmlto package.
 
8461
#
 
8462
# Interface to module:
 
8463
# HAVE_XMLTO:   used in makefiles to conditionally generate documentation
 
8464
# XMLTO:        returns the path of the xmlto program found
 
8465
#               returns the path set by the user in the environment
 
8466
# --with-xmlto: 'yes' user instructs the module to use xmlto
 
8467
#               'no' user instructs the module not to use xmlto
 
8468
#
 
8469
# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path.
 
8470
#
 
8471
AC_DEFUN([XORG_WITH_XMLTO],[
 
8472
AC_ARG_VAR([XMLTO], [Path to xmlto command])
 
8473
AC_ARG_WITH(xmlto,
 
8474
        AS_HELP_STRING([--with-xmlto],
 
8475
           [Use xmlto to regenerate documentation (default: yes, if installed)]),
 
8476
           [use_xmlto=$withval], [use_xmlto=auto])
 
8477
 
 
8478
if test "x$use_xmlto" = x"auto"; then
 
8479
   AC_PATH_PROG([XMLTO], [xmlto])
 
8480
   if test "x$XMLTO" = "x"; then
 
8481
        AC_MSG_WARN([xmlto not found - documentation targets will be skipped])
 
8482
        have_xmlto=no
 
8483
   else
 
8484
        have_xmlto=yes
 
8485
   fi
 
8486
elif test "x$use_xmlto" = x"yes" ; then
 
8487
   AC_PATH_PROG([XMLTO], [xmlto])
 
8488
   if test "x$XMLTO" = "x"; then
 
8489
        AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH])
 
8490
   fi
 
8491
   have_xmlto=yes
 
8492
elif test "x$use_xmlto" = x"no" ; then
 
8493
   if test "x$XMLTO" != "x"; then
 
8494
      AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified])
 
8495
   fi
 
8496
   have_xmlto=no
 
8497
else
 
8498
   AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no'])
 
8499
fi
 
8500
AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes])
 
8501
]) # XORG_CHECK_XMLTO
 
8502
 
 
8503
# XORG_WITH_ASCIIDOC
 
8504
# ----------------
 
8505
# Minimum version: 1.5.0
 
8506
#
 
8507
# Documentation tools are not always available on all platforms and sometimes
 
8508
# not at the appropriate level. This macro enables a module to test for the
 
8509
# presence of the tool and obtain it's path in separate variables. Coupled with
 
8510
# the --with-asciidoc option, it allows maximum flexibilty in making decisions
 
8511
# as whether or not to use the asciidoc package.
 
8512
#
 
8513
# Interface to module:
 
8514
# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation
 
8515
# ASCIIDOC:      returns the path of the asciidoc program found
 
8516
#                returns the path set by the user in the environment
 
8517
# --with-asciidoc: 'yes' user instructs the module to use asciidoc
 
8518
#                 'no' user instructs the module not to use asciidoc
 
8519
#
 
8520
# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path.
 
8521
#
 
8522
AC_DEFUN([XORG_WITH_ASCIIDOC],[
 
8523
AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command])
 
8524
AC_ARG_WITH(asciidoc,
 
8525
        AS_HELP_STRING([--with-asciidoc],
 
8526
           [Use asciidoc to regenerate documentation (default: yes, if installed)]),
 
8527
           [use_asciidoc=$withval], [use_asciidoc=auto])
 
8528
 
 
8529
if test "x$use_asciidoc" = x"auto"; then
 
8530
   AC_PATH_PROG([ASCIIDOC], [asciidoc])
 
8531
   if test "x$ASCIIDOC" = "x"; then
 
8532
        AC_MSG_WARN([asciidoc not found - documentation targets will be skipped])
 
8533
        have_asciidoc=no
 
8534
   else
 
8535
        have_asciidoc=yes
 
8536
   fi
 
8537
elif test "x$use_asciidoc" = x"yes" ; then
 
8538
   AC_PATH_PROG([ASCIIDOC], [asciidoc])
 
8539
   if test "x$ASCIIDOC" = "x"; then
 
8540
        AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH])
 
8541
   fi
 
8542
   have_asciidoc=yes
 
8543
elif test "x$use_asciidoc" = x"no" ; then
 
8544
   if test "x$ASCIIDOC" != "x"; then
 
8545
      AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified])
 
8546
   fi
 
8547
   have_asciidoc=no
 
8548
else
 
8549
   AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no'])
 
8550
fi
 
8551
AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes])
 
8552
]) # XORG_CHECK_ASCIIDOC
 
8553
 
 
8554
# XORG_WITH_DOXYGEN
 
8555
# ----------------
 
8556
# Minimum version: 1.5.0
 
8557
#
 
8558
# Documentation tools are not always available on all platforms and sometimes
 
8559
# not at the appropriate level. This macro enables a module to test for the
 
8560
# presence of the tool and obtain it's path in separate variables. Coupled with
 
8561
# the --with-doxygen option, it allows maximum flexibilty in making decisions
 
8562
# as whether or not to use the doxygen package.
 
8563
#
 
8564
# Interface to module:
 
8565
# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation
 
8566
# DOXYGEN:       returns the path of the doxygen program found
 
8567
#                returns the path set by the user in the environment
 
8568
# --with-doxygen: 'yes' user instructs the module to use doxygen
 
8569
#                 'no' user instructs the module not to use doxygen
 
8570
#
 
8571
# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path.
 
8572
#
 
8573
AC_DEFUN([XORG_WITH_DOXYGEN],[
 
8574
AC_ARG_VAR([DOXYGEN], [Path to doxygen command])
 
8575
AC_ARG_WITH(doxygen,
 
8576
        AS_HELP_STRING([--with-doxygen],
 
8577
           [Use doxygen to regenerate documentation (default: yes, if installed)]),
 
8578
           [use_doxygen=$withval], [use_doxygen=auto])
 
8579
 
 
8580
if test "x$use_doxygen" = x"auto"; then
 
8581
   AC_PATH_PROG([DOXYGEN], [doxygen])
 
8582
   if test "x$DOXYGEN" = "x"; then
 
8583
        AC_MSG_WARN([doxygen not found - documentation targets will be skipped])
 
8584
        have_doxygen=no
 
8585
   else
 
8586
        have_doxygen=yes
 
8587
   fi
 
8588
elif test "x$use_doxygen" = x"yes" ; then
 
8589
   AC_PATH_PROG([DOXYGEN], [doxygen])
 
8590
   if test "x$DOXYGEN" = "x"; then
 
8591
        AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH])
 
8592
   fi
 
8593
   have_doxygen=yes
 
8594
elif test "x$use_doxygen" = x"no" ; then
 
8595
   if test "x$DOXYGEN" != "x"; then
 
8596
      AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified])
 
8597
   fi
 
8598
   have_doxygen=no
 
8599
else
 
8600
   AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no'])
 
8601
fi
 
8602
AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes])
 
8603
]) # XORG_CHECK_DOXYGEN
 
8604
 
8457
8605
# XORG_CHECK_MALLOC_ZERO
8458
8606
# ----------------------
8459
8607
# Minimum version: 1.0.0
8483
8631
    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
8484
8632
}],
8485
8633
                [MALLOC_ZERO_RETURNS_NULL=yes],
8486
 
                [MALLOC_ZERO_RETURNS_NULL=no])
 
8634
                [MALLOC_ZERO_RETURNS_NULL=no],
 
8635
                [MALLOC_ZERO_RETURNS_NULL=yes])
8487
8636
fi
8488
8637
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
8489
8638
 
8641
8790
XORG_STRICT_OPTION
8642
8791
XORG_RELEASE_VERSION
8643
8792
XORG_CHANGELOG
 
8793
XORG_INSTALL
8644
8794
XORG_MANPAGE_SECTIONS
8645
8795
]) # XORG_DEFAULT_OPTIONS
 
8796
 
 
8797
# XORG_INSTALL()
 
8798
# ----------------
 
8799
# Minimum version: 1.4.0
 
8800
#
 
8801
# Defines the variable INSTALL_CMD as the command to copy
 
8802
# INSTALL from $prefix/share/util-macros.
 
8803
#
 
8804
AC_DEFUN([XORG_INSTALL], [
 
8805
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
8806
macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
 
8807
INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
 
8808
mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
 
8809
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
 
8810
echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
 
8811
AC_SUBST([INSTALL_CMD])
 
8812
]) # XORG_INSTALL
8646
8813
dnl Copyright 2005 Red Hat, Inc
8647
8814
dnl
8648
8815
dnl Permission to use, copy, modify, distribute, and sell this software and its
8712
8879
# Defines the variable CHANGELOG_CMD as the command to generate
8713
8880
# ChangeLog from git.
8714
8881
#
8715
 
# Arrange that distcleancheck ignores ChangeLog left over by distclean.
8716
8882
#
8717
8883
AC_DEFUN([XORG_CHANGELOG], [
8718
 
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
8719
 
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
 
8884
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
 
8885
mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
 
8886
|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
8720
8887
echo 'git directory not found: installing possibly empty changelog.' >&2)"
8721
8888
AC_SUBST([CHANGELOG_CMD])
8722
 
AC_SUBST([distcleancheck_listfiles], ['find . -type f ! -name ChangeLog -print'])
8723
8889
]) # XORG_CHANGELOG
8724
8890
 
8725
8891
dnl Copyright 2005 Red Hat, Inc
8753
8919
# is defined, then add $1 to $REQUIRED_MODULES.
8754
8920
 
8755
8921
AC_DEFUN([XORG_DRIVER_CHECK_EXT],[
 
8922
        AC_REQUIRE([PKG_PROG_PKG_CONFIG])
8756
8923
        SAVE_CFLAGS="$CFLAGS"
8757
 
        CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
 
8924
        CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
8758
8925
        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
8759
8926
#include "xorg-server.h"
8760
8927
#if !defined $1
8786
8953
[am__api_version='1.11'
8787
8954
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8788
8955
dnl require some minimum version.  Point them to the right macro.
8789
 
m4_if([$1], [1.11], [],
 
8956
m4_if([$1], [1.11.1], [],
8790
8957
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8791
8958
])
8792
8959
 
8802
8969
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8803
8970
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8804
8971
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8805
 
[AM_AUTOMAKE_VERSION([1.11])dnl
 
8972
[AM_AUTOMAKE_VERSION([1.11.1])dnl
8806
8973
m4_ifndef([AC_AUTOCONF_VERSION],
8807
8974
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8808
8975
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])