~ubuntu-branches/ubuntu/utopic/gxine/utopic-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2014-05-07 21:34:55 UTC
  • mfrom: (2.1.17 sid)
  • Revision ID: package-import@ubuntu.com-20140507213455-qnu5diwyyj8bkaap
Tags: 0.5.907-3ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/rules, debian/control: use dh-autoreconf at build time.
  - debian/control: Add Xb-Npp-xxx, Xb-Npp-Description and Xb-Npp-File
    fields.
  - src/script_engine.c: fix a remaining memory leak issue associated with
    using JS_EncodeString(), which somehow didn't get fixed upstream
  - debian/gxineplugin.links: Add a link to xulrunner-addons/plugins
    directory.
  - mime.default: Add dvd, vcd, svcd tags.
* Dropped changes, no longer needed:
  - debian/gxine.install: no need to diverge from Debian since we no longer
    ship a wrapper
* All other changes dropped, as they have been included upstream or in
  Debian.

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.3 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
 
5
# Inc.
5
6
# This file is free software; the Free Software Foundation
6
7
# gives unlimited permission to copy and/or distribute it,
7
8
# with or without modifications, as long as this notice is preserved.
13
14
 
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
 
[m4_warning([this file was generated for autoconf 2.65.
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
18
[m4_warning([this file was generated for autoconf 2.68.
18
19
You have another version of autoconf.  It may work, but is not guaranteed to.
19
20
If you have problems, you may need to regenerate the build system entirely.
20
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22
 
22
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
23
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
24
# Foundation, Inc.
23
25
#
24
26
# This file is free software; the Free Software Foundation
25
27
# gives unlimited permission to copy and/or distribute it,
26
28
# with or without modifications, as long as this notice is preserved.
27
29
 
 
30
# serial 1
 
31
 
28
32
# AM_AUTOMAKE_VERSION(VERSION)
29
33
# ----------------------------
30
34
# Automake X.Y traces this macro to ensure aclocal.m4 has been
34
38
[am__api_version='1.11'
35
39
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
40
dnl require some minimum version.  Point them to the right macro.
37
 
m4_if([$1], [1.11], [],
 
41
m4_if([$1], [1.11.3], [],
38
42
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39
43
])
40
44
 
50
54
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
55
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
56
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
 
[AM_AUTOMAKE_VERSION([1.11])dnl
 
57
[AM_AUTOMAKE_VERSION([1.11.3])dnl
54
58
m4_ifndef([AC_AUTOCONF_VERSION],
55
59
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
60
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57
61
 
58
62
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
59
63
 
60
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
64
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
61
65
#
62
66
# This file is free software; the Free Software Foundation
63
67
# gives unlimited permission to copy and/or distribute it,
64
68
# with or without modifications, as long as this notice is preserved.
65
69
 
 
70
# serial 1
 
71
 
66
72
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
73
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
68
74
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
144
150
Usually this means the macro was only invoked conditionally.]])
145
151
fi])])
146
152
 
147
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148
 
# Free Software Foundation, Inc.
 
153
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
154
# 2010, 2011 Free Software Foundation, Inc.
149
155
#
150
156
# This file is free software; the Free Software Foundation
151
157
# gives unlimited permission to copy and/or distribute it,
152
158
# with or without modifications, as long as this notice is preserved.
153
159
 
154
 
# serial 10
 
160
# serial 12
155
161
 
156
162
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157
163
# written in clear, in which case automake, when reading aclocal.m4,
191
197
  # instance it was reported that on HP-UX the gcc test will end up
192
198
  # making a dummy file named `D' -- because `-MD' means `put the output
193
199
  # in D'.
 
200
  rm -rf conftest.dir
194
201
  mkdir conftest.dir
195
202
  # Copy depcomp to subdir because otherwise we won't find it if we're
196
203
  # using a relative directory.
255
262
        break
256
263
      fi
257
264
      ;;
258
 
    msvisualcpp | msvcmsys)
 
265
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
259
266
      # This compiler won't grok `-c -o', but also, the minuso test has
260
267
      # not run yet.  These depmodes are late enough in the game, and
261
268
      # so weak that their functioning should not be impacted.
320
327
if test "x$enable_dependency_tracking" != xno; then
321
328
  am_depcomp="$ac_aux_dir/depcomp"
322
329
  AMDEPBACKSLASH='\'
 
330
  am__nodep='_no'
323
331
fi
324
332
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325
333
AC_SUBST([AMDEPBACKSLASH])dnl
326
334
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
335
AC_SUBST([am__nodep])dnl
 
336
_AM_SUBST_NOTMAKE([am__nodep])dnl
327
337
])
328
338
 
329
339
# Generate code to set up dependency tracking.              -*- Autoconf -*-
545
555
done
546
556
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
547
557
 
548
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
558
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
559
# Inc.
549
560
#
550
561
# This file is free software; the Free Software Foundation
551
562
# gives unlimited permission to copy and/or distribute it,
552
563
# with or without modifications, as long as this notice is preserved.
553
564
 
 
565
# serial 1
 
566
 
554
567
# AM_PROG_INSTALL_SH
555
568
# ------------------
556
569
# Define $install_sh.
590
603
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
591
604
# From Jim Meyering
592
605
 
593
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
594
 
# Free Software Foundation, Inc.
 
606
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
 
607
# 2011 Free Software Foundation, Inc.
595
608
#
596
609
# This file is free software; the Free Software Foundation
597
610
# gives unlimited permission to copy and/or distribute it,
611
624
       [disable], [m4_define([am_maintainer_other], [enable])],
612
625
       [m4_define([am_maintainer_other], [enable])
613
626
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
614
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
627
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
615
628
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
616
629
  AC_ARG_ENABLE([maintainer-mode],
617
630
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
757
770
fi
758
771
])
759
772
 
760
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
773
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
774
# Inc.
761
775
#
762
776
# This file is free software; the Free Software Foundation
763
777
# gives unlimited permission to copy and/or distribute it,
764
778
# with or without modifications, as long as this notice is preserved.
765
779
 
 
780
# serial 1
 
781
 
766
782
# AM_PROG_MKDIR_P
767
783
# ---------------
768
784
# Check for `mkdir -p'.
785
801
 
786
802
# Helper functions for option handling.                     -*- Autoconf -*-
787
803
 
788
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
804
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
805
# Foundation, Inc.
789
806
#
790
807
# This file is free software; the Free Software Foundation
791
808
# gives unlimited permission to copy and/or distribute it,
792
809
# with or without modifications, as long as this notice is preserved.
793
810
 
794
 
# serial 4
 
811
# serial 5
795
812
 
796
813
# _AM_MANGLE_OPTION(NAME)
797
814
# -----------------------
799
816
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
800
817
 
801
818
# _AM_SET_OPTION(NAME)
802
 
# ------------------------------
 
819
# --------------------
803
820
# Set option NAME.  Presently that only means defining a flag for this option.
804
821
AC_DEFUN([_AM_SET_OPTION],
805
822
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
806
823
 
807
824
# _AM_SET_OPTIONS(OPTIONS)
808
 
# ----------------------------------
 
825
# ------------------------
809
826
# OPTIONS is a space-separated list of Automake options.
810
827
AC_DEFUN([_AM_SET_OPTIONS],
811
828
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
881
898
fi
882
899
AC_MSG_RESULT(yes)])
883
900
 
884
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
885
 
#
886
 
# This file is free software; the Free Software Foundation
887
 
# gives unlimited permission to copy and/or distribute it,
888
 
# with or without modifications, as long as this notice is preserved.
 
901
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
 
902
#
 
903
# This file is free software; the Free Software Foundation
 
904
# gives unlimited permission to copy and/or distribute it,
 
905
# with or without modifications, as long as this notice is preserved.
 
906
 
 
907
# serial 2
 
908
 
 
909
# AM_SILENT_RULES([DEFAULT])
 
910
# --------------------------
 
911
# Enable less verbose build rules; with the default set to DEFAULT
 
912
# (`yes' being less verbose, `no' or empty being verbose).
 
913
AC_DEFUN([AM_SILENT_RULES],
 
914
[AC_ARG_ENABLE([silent-rules],
 
915
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
916
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
917
case $enable_silent_rules in
 
918
yes) AM_DEFAULT_VERBOSITY=0;;
 
919
no)  AM_DEFAULT_VERBOSITY=1;;
 
920
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
921
esac
 
922
dnl
 
923
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
924
dnl do not support nested variable expansions.
 
925
dnl See automake bug#9928 and bug#10237.
 
926
am_make=${MAKE-make}
 
927
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
928
   [am_cv_make_support_nested_variables],
 
929
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
930
BAR0=false
 
931
BAR1=true
 
932
V=1
 
933
am__doit:
 
934
        @$(TRUE)
 
935
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
936
  am_cv_make_support_nested_variables=yes
 
937
else
 
938
  am_cv_make_support_nested_variables=no
 
939
fi])
 
940
if test $am_cv_make_support_nested_variables = yes; then
 
941
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
942
  AM_V='$(V)'
 
943
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
944
else
 
945
  AM_V=$AM_DEFAULT_VERBOSITY
 
946
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
947
fi
 
948
AC_SUBST([AM_V])dnl
 
949
AM_SUBST_NOTMAKE([AM_V])dnl
 
950
AC_SUBST([AM_DEFAULT_V])dnl
 
951
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 
952
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
953
AM_BACKSLASH='\'
 
954
AC_SUBST([AM_BACKSLASH])dnl
 
955
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
956
])
 
957
 
 
958
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
959
#
 
960
# This file is free software; the Free Software Foundation
 
961
# gives unlimited permission to copy and/or distribute it,
 
962
# with or without modifications, as long as this notice is preserved.
 
963
 
 
964
# serial 1
889
965
 
890
966
# AM_PROG_INSTALL_STRIP
891
967
# ---------------------
909
985
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
910
986
AC_SUBST([INSTALL_STRIP_PROGRAM])])
911
987
 
912
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
988
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
913
989
#
914
990
# This file is free software; the Free Software Foundation
915
991
# gives unlimited permission to copy and/or distribute it,
916
992
# with or without modifications, as long as this notice is preserved.
917
993
 
918
 
# serial 2
 
994
# serial 3
919
995
 
920
996
# _AM_SUBST_NOTMAKE(VARIABLE)
921
997
# ---------------------------
924
1000
AC_DEFUN([_AM_SUBST_NOTMAKE])
925
1001
 
926
1002
# AM_SUBST_NOTMAKE(VARIABLE)
927
 
# ---------------------------
 
1003
# --------------------------
928
1004
# Public sister of _AM_SUBST_NOTMAKE.
929
1005
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
930
1006
 
931
1007
# Check how to create a tarball.                            -*- Autoconf -*-
932
1008
 
933
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
1009
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
934
1010
#
935
1011
# This file is free software; the Free Software Foundation
936
1012
# gives unlimited permission to copy and/or distribute it,
952
1028
# a tarball read from stdin.
953
1029
#     $(am__untar) < result.tar
954
1030
AC_DEFUN([_AM_PROG_TAR],
955
 
[# Always define AMTAR for backward compatibility.
956
 
AM_MISSING_PROG([AMTAR], [tar])
 
1031
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
1032
# in the wild :-(  We should find a proper way to deprecate it ...
 
1033
AC_SUBST([AMTAR], ['$${TAR-tar}'])
957
1034
m4_if([$1], [v7],
958
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
1035
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
959
1036
     [m4_case([$1], [ustar],, [pax],,
960
1037
              [m4_fatal([Unknown tar format])])
961
1038
AC_MSG_CHECKING([how to create a $1 tar archive])
1025
1102
]) # _AM_PROG_TAR
1026
1103
 
1027
1104
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
1105
# serial 1 (pkg-config-0.24)
1028
1106
1029
1107
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1030
1108
#
1051
1129
# ----------------------------------
1052
1130
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1053
1131
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1054
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1055
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
1132
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
1133
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
 
1134
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
1135
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
1136
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
1137
 
1056
1138
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1057
1139
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1058
1140
fi
1065
1147
                AC_MSG_RESULT([no])
1066
1148
                PKG_CONFIG=""
1067
1149
        fi
1068
 
                
1069
1150
fi[]dnl
1070
1151
])# PKG_PROG_PKG_CONFIG
1071
1152
 
1074
1155
# Check to see whether a particular set of modules exists.  Similar
1075
1156
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1076
1157
#
1077
 
#
1078
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
1079
 
# this or PKG_CHECK_MODULES is called, or make sure to call
1080
 
# PKG_CHECK_EXISTS manually
 
1158
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1159
# only at the first occurence in configure.ac, so if the first place
 
1160
# it's called might be skipped (such as if it is within an "if", you
 
1161
# have to call PKG_CHECK_EXISTS manually
1081
1162
# --------------------------------------------------------------
1082
1163
AC_DEFUN([PKG_CHECK_EXISTS],
1083
1164
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1084
1165
if test -n "$PKG_CONFIG" && \
1085
1166
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1086
 
  m4_ifval([$2], [$2], [:])
 
1167
  m4_default([$2], [:])
1087
1168
m4_ifvaln([$3], [else
1088
1169
  $3])dnl
1089
1170
fi])
1090
1171
 
1091
 
 
1092
1172
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1093
1173
# ---------------------------------------------
1094
1174
m4_define([_PKG_CONFIG],
1095
 
[if test -n "$PKG_CONFIG"; then
1096
 
    if test -n "$$1"; then
1097
 
        pkg_cv_[]$1="$$1"
1098
 
    else
1099
 
        PKG_CHECK_EXISTS([$3],
1100
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1101
 
                         [pkg_failed=yes])
1102
 
    fi
1103
 
else
1104
 
        pkg_failed=untried
 
1175
[if test -n "$$1"; then
 
1176
    pkg_cv_[]$1="$$1"
 
1177
 elif test -n "$PKG_CONFIG"; then
 
1178
    PKG_CHECK_EXISTS([$3],
 
1179
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
1180
                      test "x$?" != "x0" && pkg_failed=yes ],
 
1181
                     [pkg_failed=yes])
 
1182
 else
 
1183
    pkg_failed=untried
1105
1184
fi[]dnl
1106
1185
])# _PKG_CONFIG
1107
1186
 
1143
1222
See the pkg-config man page for more details.])
1144
1223
 
1145
1224
if test $pkg_failed = yes; then
 
1225
        AC_MSG_RESULT([no])
1146
1226
        _PKG_SHORT_ERRORS_SUPPORTED
1147
1227
        if test $_pkg_short_errors_supported = yes; then
1148
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
1228
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
1149
1229
        else 
1150
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
1230
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
1151
1231
        fi
1152
1232
        # Put the nasty error message in config.log where it belongs
1153
1233
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1154
1234
 
1155
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
1235
        m4_default([$4], [AC_MSG_ERROR(
1156
1236
[Package requirements ($2) were not met:
1157
1237
 
1158
1238
$$1_PKG_ERRORS
1160
1240
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1161
1241
installed software in a non-standard prefix.
1162
1242
 
1163
 
_PKG_TEXT
1164
 
])],
1165
 
                [AC_MSG_RESULT([no])
1166
 
                $4])
 
1243
_PKG_TEXT])[]dnl
 
1244
        ])
1167
1245
elif test $pkg_failed = untried; then
1168
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
1246
        AC_MSG_RESULT([no])
 
1247
        m4_default([$4], [AC_MSG_FAILURE(
1169
1248
[The pkg-config script could not be found or is too old.  Make sure it
1170
1249
is in your PATH or set the PKG_CONFIG environment variable to the full
1171
1250
path to pkg-config.
1172
1251
 
1173
1252
_PKG_TEXT
1174
1253
 
1175
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
1176
 
                [$4])
 
1254
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 
1255
        ])
1177
1256
else
1178
1257
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1179
1258
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1180
1259
        AC_MSG_RESULT([yes])
1181
 
        ifelse([$3], , :, [$3])
 
1260
        $3
1182
1261
fi[]dnl
1183
1262
])# PKG_CHECK_MODULES
1184
1263
 
1266
1345
        min_xine_version=ifelse([$1], , [0.5.0], [$1])
1267
1346
        AC_PATH_TOOL([XINE_CONFIG], [xine-config], [no])
1268
1347
        AC_MSG_CHECKING([for XINE-LIB version >= $min_xine_version])
1269
 
        XINE_CFLAGS="`$XINE_CONFIG $xine_config_args --cflags`"
1270
 
        XINE_LIBS="`$XINE_CONFIG $xine_config_args --libs`"
1271
 
        XINE_VERSION="`$XINE_CONFIG $xine_config_args --version`"
1272
 
        XINE_ACFLAGS="`$XINE_CONFIG $xine_config_args --acflags`"
1273
 
        xine_data_dir="`$XINE_CONFIG $xine_config_args --datadir`"
1274
 
        xine_script_dir="`$XINE_CONFIG $xine_config_args --scriptdir`"
1275
 
        xine_plugin_dir="`$XINE_CONFIG $xine_config_args --plugindir`"
1276
 
        xine_locale_dir="`$XINE_CONFIG $xine_config_args --localedir`"
 
1348
        XINE_CFLAGS="`$XINE_CONFIG $xine_config_args --cflags 2>/dev/null`"
 
1349
        XINE_LIBS="`$XINE_CONFIG $xine_config_args --libs 2>/dev/null`"
 
1350
        XINE_VERSION="`$XINE_CONFIG $xine_config_args --version 2>/dev/null`"
 
1351
        XINE_ACFLAGS="`$XINE_CONFIG $xine_config_args --acflags 2>/dev/null`"
 
1352
        xine_data_dir="`$XINE_CONFIG $xine_config_args --datadir 2>/dev/null`"
 
1353
        xine_script_dir="`$XINE_CONFIG $xine_config_args --scriptdir 2>/dev/null`"
 
1354
        xine_plugin_dir="`$XINE_CONFIG $xine_config_args --plugindir 2>/dev/null`"
 
1355
        xine_locale_dir="`$XINE_CONFIG $xine_config_args --localedir 2>/dev/null`"
1277
1356
        _XINE_VERSION_CHECK([$min_xine_version], [$XINE_VERSION],
1278
1357
                            [xine_version_ok=yes; AC_MSG_RESULT([yes, $XINE_VERSION])],
1279
1358
                            [xine_version_ok=no;  AC_MSG_RESULT([no, $XINE_VERSION])])
1302
1381
    AC_SUBST(XINE_ACFLAGS)
1303
1382
])
1304
1383
 
 
1384
dnl XINE_ARG_WITH(VARIABLE, HELP-TEXT)
 
1385
dnl Like AC_ARG_WITH but strictly sets variables
 
1386
dnl hard_with_VARIABLE = "yes" or "no" if the option is present, else undefined
 
1387
dnl with_VARIABLE      = "yes" or "no" if the option is enabled or disabled
 
1388
dnl                      (falls back on default_with_VARIABLE)
 
1389
dnl if both = yes, error is permissible if missing requirement(s)
 
1390
AC_DEFUN([XINE_ARG_WITH], [
 
1391
        if test "x$default_with_[]m4_translit([[$1]], [-], [_])" = x; then
 
1392
                AC_MSG_ERROR([default_with_[]m4_translit([[$1]], [-], [_]) is not set])
 
1393
        fi
 
1394
        AC_ARG_WITH([$1], [AS_HELP_STRING([--with-$1], [$2])],
 
1395
                [test x"$withval" != xno && with_[]m4_translit([[$1]], [-], [_])=yes || with_[]m4_translit([[$1]], [-], [_])=no; hard_with_[]m4_translit([[$1]], [-], [_])="$with_[]m4_translit([[$1]], [-], [_])"],
 
1396
                [with_[]m4_translit([[$1]], [-], [_])="$default_with_[]m4_translit([[$1]], [-], [_])"; hard_with_[]m4_translit([[$1]], [-], [_])=''])])
 
1397
 
 
1398
dnl XINE_ARG_ENABLE(VARIABLE, HELP-TEXT)
 
1399
dnl Like AC_ARG_WITH_X but wrapping AC_ARG_ENABLE
 
1400
AC_DEFUN([XINE_ARG_ENABLE], [
 
1401
        if test "x$default_enable_[]m4_translit([[$1]], [-], [_])" = x; then
 
1402
                AC_MSG_ERROR([default_enable_[]m4_translit([[$1]], [-], [_]) is not set])
 
1403
        fi
 
1404
        AC_ARG_ENABLE([$1], [AS_HELP_STRING([--enable-$1], [$2])],
 
1405
                [test x"$enableval" != xno && enable_[]m4_translit([[$1]], [-], [_])=yes || enable_[]m4_translit([[$1]], [-], [_])=no; hard_enable_[]m4_translit([[$1]], [-], [_])="$enable_[]m4_translit([[$1]], [-], [_])"],
 
1406
                [enable_[]m4_translit([[$1]], [-], [_])="$default_enable_[]m4_translit([[$1]], [-], [_])"; hard_enable_[]m4_translit([[$1]], [-], [_])=''])])
 
1407
 
1305
1408
m4_include([m4/gettext/gettext.m4])
1306
1409
m4_include([m4/gettext/iconv.m4])
1307
1410
m4_include([m4/gettext/lib-ld.m4])