~audio-recorder/audio-recorder/trunk

470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1
# generated automatically by aclocal 1.15 -*- Autoconf -*-
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
2
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
3
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
4
1 by Osmo Antero Maatta
Initial import 17.jan.2011
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
8
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
# PARTICULAR PURPOSE.
13
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1 by Osmo Antero Maatta
Initial import 17.jan.2011
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
189 by osmoma at gmail
Replaced all GTK3's deprecated methods with new syntax.
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
[m4_warning([this file was generated for autoconf 2.69.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
19
You have another version of autoconf.  It may work, but is not guaranteed to.
20
If you have problems, you may need to regenerate the build system entirely.
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
1 by Osmo Antero Maatta
Initial import 17.jan.2011
22
69 by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2
23
dnl GLIB_GSETTINGS
24
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
25
dnl the schema should be compiled
26
dnl
27
28
AC_DEFUN([GLIB_GSETTINGS],
29
[
30
  m4_pattern_allow([AM_V_GEN])
31
  AC_ARG_ENABLE(schemas-compile,
32
                AS_HELP_STRING([--disable-schemas-compile],
33
                               [Disable regeneration of gschemas.compiled on install]),
34
                [case ${enableval} in
35
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
36
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
37
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
38
                 esac])
39
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
40
  PKG_PROG_PKG_CONFIG([0.16])
41
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
42
  if test x$cross_compiling != xyes; then
43
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
44
  else
45
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
46
  fi
47
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
48
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
49
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
50
  else
51
    ifelse([$1],,[:],[$1])
52
  fi
53
54
  GSETTINGS_RULES='
55
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
56
57
mostlyclean-am: clean-gsettings-schemas
58
59
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
60
61
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
351 by Osmo Antero
Compiling A.r for Ubuntu 14.04. No relevant changes.
62
	$(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p [$](@D) && touch [$]@
69 by Osmo Antero
Ported this application to GTK/GDK 3. Using now GSettings (and dconf) instead of GConf2
63
64
all-am: $(gsettings_SCHEMAS:.xml=.valid)
65
uninstall-am: uninstall-gsettings-schemas
66
install-data-am: install-gsettings-schemas
67
68
.SECONDARY: $(gsettings_SCHEMAS)
69
70
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
71
	@$(NORMAL_INSTALL)
72
	if test -n "$^"; then \
73
		test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
74
		$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
75
		test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
76
	fi
77
78
uninstall-gsettings-schemas:
79
	@$(NORMAL_UNINSTALL)
80
	@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
81
	files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
82
	test -n "$$files" || exit 0; \
83
	echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
84
	cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
85
	test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
86
87
clean-gsettings-schemas:
88
	rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
89
90
ifdef gsettings_ENUM_NAMESPACE
91
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
92
	$(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
93
endif
94
'
95
  _GSETTINGS_SUBST(GSETTINGS_RULES)
96
])
97
98
dnl _GSETTINGS_SUBST(VARIABLE)
99
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
100
AC_DEFUN([_GSETTINGS_SUBST],
1 by Osmo Antero Maatta
Initial import 17.jan.2011
101
[
102
AC_SUBST([$1])
103
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
104
]
105
)
106
173 by Osmo Antero
Support new systems; Ubuntu 12.10, Fedora 18. Improved timer and VAD-modules. Better gst-pipeline.
107
108
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
109
# serial 42 IT_PROG_INTLTOOL
110
AC_DEFUN([IT_PROG_INTLTOOL], [
111
AC_PREREQ([2.50])dnl
112
AC_REQUIRE([AM_NLS])dnl
113
114
case "$am__api_version" in
115
    1.[01234])
116
	AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
117
    ;;
118
    *)
119
    ;;
120
esac
121
122
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
123
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
124
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
125
if test -n "$1"; then
126
    AC_MSG_CHECKING([for intltool >= $1])
127
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
128
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
129
	AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
130
fi
131
132
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
133
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
134
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
135
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
136
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
137
fi
138
139
if test -z "$AM_DEFAULT_VERBOSITY"; then
140
  AM_DEFAULT_VERBOSITY=1
141
fi
142
AC_SUBST([AM_DEFAULT_VERBOSITY])
143
144
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
145
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
146
INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
147
AC_SUBST(INTLTOOL_V_MERGE)
148
AC_SUBST(INTLTOOL__v_MERGE_)
149
AC_SUBST(INTLTOOL__v_MERGE_0)
150
151
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
152
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
153
intltool__v_merge_options_0='-q'
154
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
155
AC_SUBST(intltool__v_merge_options_)
156
AC_SUBST(intltool__v_merge_options_0)
157
158
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
159
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
160
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
161
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
162
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
163
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
164
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
165
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
166
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
167
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
168
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
169
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
170
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
171
else
172
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
173
fi
174
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
175
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
176
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
177
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
178
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
179
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
180
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
181
182
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
183
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
184
_IT_SUBST(INTLTOOL_KEYS_RULE)
185
_IT_SUBST(INTLTOOL_PROP_RULE)
186
_IT_SUBST(INTLTOOL_OAF_RULE)
187
_IT_SUBST(INTLTOOL_PONG_RULE)
188
_IT_SUBST(INTLTOOL_SERVER_RULE)
189
_IT_SUBST(INTLTOOL_SHEET_RULE)
190
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
191
_IT_SUBST(INTLTOOL_UI_RULE)
192
_IT_SUBST(INTLTOOL_XAM_RULE)
193
_IT_SUBST(INTLTOOL_KBD_RULE)
194
_IT_SUBST(INTLTOOL_XML_RULE)
195
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
196
_IT_SUBST(INTLTOOL_CAVES_RULE)
197
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
198
_IT_SUBST(INTLTOOL_THEME_RULE)
199
_IT_SUBST(INTLTOOL_SERVICE_RULE)
200
_IT_SUBST(INTLTOOL_POLICY_RULE)
201
202
# Check the gettext tools to make sure they are GNU
203
AC_PATH_PROG(XGETTEXT, xgettext)
204
AC_PATH_PROG(MSGMERGE, msgmerge)
205
AC_PATH_PROG(MSGFMT, msgfmt)
206
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
207
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
208
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
209
fi
210
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
211
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
212
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
213
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
214
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
215
fi
216
217
AC_PATH_PROG(INTLTOOL_PERL, perl)
218
if test -z "$INTLTOOL_PERL"; then
219
   AC_MSG_ERROR([perl not found])
220
fi
221
AC_MSG_CHECKING([for perl >= 5.8.1])
222
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
223
if test $? -ne 0; then
224
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
225
else
226
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
227
   AC_MSG_RESULT([$IT_PERL_VERSION])
228
fi
229
if test "x$2" != "xno-xml"; then
230
   AC_MSG_CHECKING([for XML::Parser])
231
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
232
       AC_MSG_RESULT([ok])
233
   else
234
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
235
   fi
236
fi
237
238
# Substitute ALL_LINGUAS so we can use it in po/Makefile
239
AC_SUBST(ALL_LINGUAS)
240
241
IT_PO_SUBDIR([po])
242
243
])
244
245
246
# IT_PO_SUBDIR(DIRNAME)
247
# ---------------------
248
# All po subdirs have to be declared with this macro; the subdir "po" is
249
# declared by IT_PROG_INTLTOOL.
250
#
251
AC_DEFUN([IT_PO_SUBDIR],
252
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
253
dnl
254
dnl The following CONFIG_COMMANDS should be executed at the very end
255
dnl of config.status.
256
AC_CONFIG_COMMANDS_PRE([
257
  AC_CONFIG_COMMANDS([$1/stamp-it], [
258
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
259
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
260
    fi
261
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
262
    >"$1/stamp-it.tmp"
263
    [sed '/^#/d
264
	 s/^[[].*] *//
265
	 /^[ 	]*$/d
266
	'"s|^|	$ac_top_srcdir/|" \
267
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
268
    ]
269
    [sed '/^POTFILES =/,/[^\\]$/ {
270
		/^POTFILES =/!d
271
		r $1/POTFILES
272
	  }
273
	 ' "$1/Makefile.in" >"$1/Makefile"]
274
    rm -f "$1/Makefile.tmp"
275
    mv "$1/stamp-it.tmp" "$1/stamp-it"
276
  ])
277
])dnl
278
])
279
280
# _IT_SUBST(VARIABLE)
281
# -------------------
282
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
283
#
284
AC_DEFUN([_IT_SUBST],
285
[
286
AC_SUBST([$1])
287
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
288
]
289
)
290
291
# deprecated macros
292
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
293
# A hint is needed for aclocal from Automake <= 1.9.4:
294
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
295
1 by Osmo Antero Maatta
Initial import 17.jan.2011
296
297
# nls.m4 serial 5 (gettext-0.18)
1023 by Osmo Antero
Changed version number to 1.9.0 (after David Rabel\'s cleanups)
298
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software
299
dnl Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
300
dnl This file is free software; the Free Software Foundation
301
dnl gives unlimited permission to copy and/or distribute it,
302
dnl with or without modifications, as long as this notice is preserved.
303
dnl
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
304
dnl This file can be used in projects which are not available under
1 by Osmo Antero Maatta
Initial import 17.jan.2011
305
dnl the GNU General Public License or the GNU Library General Public
306
dnl License but which still want to provide support for the GNU gettext
307
dnl functionality.
308
dnl Please note that the actual code of the GNU gettext library is covered
309
dnl by the GNU Library General Public License, and the rest of the GNU
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
310
dnl gettext package is covered by the GNU General Public License.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
311
dnl They are *not* in the public domain.
312
313
dnl Authors:
314
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
315
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
316
317
AC_PREREQ([2.50])
318
319
AC_DEFUN([AM_NLS],
320
[
321
  AC_MSG_CHECKING([whether NLS is requested])
322
  dnl Default is enabled NLS
323
  AC_ARG_ENABLE([nls],
324
    [  --disable-nls           do not use Native Language Support],
325
    USE_NLS=$enableval, USE_NLS=yes)
326
  AC_MSG_RESULT([$USE_NLS])
327
  AC_SUBST([USE_NLS])
328
])
329
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
330
dnl pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
331
dnl serial 11 (pkg-config-0.29.1)
332
dnl
333
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
334
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
335
dnl
336
dnl This program is free software; you can redistribute it and/or modify
337
dnl it under the terms of the GNU General Public License as published by
338
dnl the Free Software Foundation; either version 2 of the License, or
339
dnl (at your option) any later version.
340
dnl
341
dnl This program is distributed in the hope that it will be useful, but
342
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
343
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
344
dnl General Public License for more details.
345
dnl
346
dnl You should have received a copy of the GNU General Public License
347
dnl along with this program; if not, write to the Free Software
348
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
349
dnl 02111-1307, USA.
350
dnl
351
dnl As a special exception to the GNU General Public License, if you
352
dnl distribute this file as part of a program that contains a
353
dnl configuration script generated by Autoconf, you may include it under
354
dnl the same distribution terms that you use for the rest of that
355
dnl program.
356
357
dnl PKG_PREREQ(MIN-VERSION)
358
dnl -----------------------
359
dnl Since: 0.29
360
dnl
361
dnl Verify that the version of the pkg-config macros are at least
362
dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
363
dnl installed version of pkg-config, this checks the developer's version
364
dnl of pkg.m4 when generating configure.
365
dnl
366
dnl To ensure that this macro is defined, also add:
367
dnl m4_ifndef([PKG_PREREQ],
368
dnl     [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
369
dnl
370
dnl See the "Since" comment for each macro you use to see what version
371
dnl of the macros you require.
372
m4_defun([PKG_PREREQ],
373
[m4_define([PKG_MACROS_VERSION], [0.29.1])
374
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
375
    [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
376
])dnl PKG_PREREQ
377
378
dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
379
dnl ----------------------------------
380
dnl Since: 0.16
381
dnl
382
dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
383
dnl first found in the path. Checks that the version of pkg-config found
384
dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
385
dnl used since that's the first version where most current features of
386
dnl pkg-config existed.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
387
AC_DEFUN([PKG_PROG_PKG_CONFIG],
388
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
56 by Osmo Antero
Version 0.5
389
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
390
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
1 by Osmo Antero Maatta
Initial import 17.jan.2011
391
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
392
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
393
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
394
395
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
396
	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
397
fi
398
if test -n "$PKG_CONFIG"; then
399
	_pkg_min_version=m4_default([$1], [0.9.0])
400
	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
401
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
402
		AC_MSG_RESULT([yes])
403
	else
404
		AC_MSG_RESULT([no])
405
		PKG_CONFIG=""
406
	fi
407
fi[]dnl
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
408
])dnl PKG_PROG_PKG_CONFIG
1 by Osmo Antero Maatta
Initial import 17.jan.2011
409
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
410
dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
411
dnl -------------------------------------------------------------------
412
dnl Since: 0.18
413
dnl
414
dnl Check to see whether a particular set of modules exists. Similar to
415
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
416
dnl
417
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
418
dnl only at the first occurence in configure.ac, so if the first place
419
dnl it's called might be skipped (such as if it is within an "if", you
420
dnl have to call PKG_CHECK_EXISTS manually
1 by Osmo Antero Maatta
Initial import 17.jan.2011
421
AC_DEFUN([PKG_CHECK_EXISTS],
422
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
423
if test -n "$PKG_CONFIG" && \
424
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
425
  m4_default([$2], [:])
426
m4_ifvaln([$3], [else
427
  $3])dnl
428
fi])
429
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
430
dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
431
dnl ---------------------------------------------
432
dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
433
dnl pkg_failed based on the result.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
434
m4_define([_PKG_CONFIG],
435
[if test -n "$$1"; then
436
    pkg_cv_[]$1="$$1"
437
 elif test -n "$PKG_CONFIG"; then
438
    PKG_CHECK_EXISTS([$3],
56 by Osmo Antero
Version 0.5
439
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
440
		      test "x$?" != "x0" && pkg_failed=yes ],
1 by Osmo Antero Maatta
Initial import 17.jan.2011
441
		     [pkg_failed=yes])
442
 else
443
    pkg_failed=untried
444
fi[]dnl
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
445
])dnl _PKG_CONFIG
1 by Osmo Antero Maatta
Initial import 17.jan.2011
446
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
447
dnl _PKG_SHORT_ERRORS_SUPPORTED
448
dnl ---------------------------
449
dnl Internal check to see if pkg-config supports short errors.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
450
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
451
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
452
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
453
        _pkg_short_errors_supported=yes
454
else
455
        _pkg_short_errors_supported=no
456
fi[]dnl
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
457
])dnl _PKG_SHORT_ERRORS_SUPPORTED
458
459
460
dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
461
dnl   [ACTION-IF-NOT-FOUND])
462
dnl --------------------------------------------------------------
463
dnl Since: 0.4.0
464
dnl
465
dnl Note that if there is a possibility the first call to
466
dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
467
dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1 by Osmo Antero Maatta
Initial import 17.jan.2011
468
AC_DEFUN([PKG_CHECK_MODULES],
469
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
470
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
471
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
472
473
pkg_failed=no
474
AC_MSG_CHECKING([for $1])
475
476
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
477
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
478
479
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
480
and $1[]_LIBS to avoid the need to call pkg-config.
481
See the pkg-config man page for more details.])
482
483
if test $pkg_failed = yes; then
484
   	AC_MSG_RESULT([no])
485
        _PKG_SHORT_ERRORS_SUPPORTED
486
        if test $_pkg_short_errors_supported = yes; then
56 by Osmo Antero
Version 0.5
487
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
1 by Osmo Antero Maatta
Initial import 17.jan.2011
488
        else 
56 by Osmo Antero
Version 0.5
489
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
1 by Osmo Antero Maatta
Initial import 17.jan.2011
490
        fi
491
	# Put the nasty error message in config.log where it belongs
492
	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
493
494
	m4_default([$4], [AC_MSG_ERROR(
495
[Package requirements ($2) were not met:
496
497
$$1_PKG_ERRORS
498
499
Consider adjusting the PKG_CONFIG_PATH environment variable if you
500
installed software in a non-standard prefix.
501
56 by Osmo Antero
Version 0.5
502
_PKG_TEXT])[]dnl
1 by Osmo Antero Maatta
Initial import 17.jan.2011
503
        ])
504
elif test $pkg_failed = untried; then
505
     	AC_MSG_RESULT([no])
506
	m4_default([$4], [AC_MSG_FAILURE(
507
[The pkg-config script could not be found or is too old.  Make sure it
508
is in your PATH or set the PKG_CONFIG environment variable to the full
509
path to pkg-config.
510
511
_PKG_TEXT
512
1023 by Osmo Antero
Changed version number to 1.9.0 (after David Rabel\'s cleanups)
513
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
1 by Osmo Antero Maatta
Initial import 17.jan.2011
514
        ])
515
else
516
	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
517
	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
518
        AC_MSG_RESULT([yes])
519
	$3
520
fi[]dnl
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
521
])dnl PKG_CHECK_MODULES
522
523
524
dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
525
dnl   [ACTION-IF-NOT-FOUND])
526
dnl ---------------------------------------------------------------------
527
dnl Since: 0.29
528
dnl
529
dnl Checks for existence of MODULES and gathers its build flags with
530
dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
531
dnl and VARIABLE-PREFIX_LIBS from --libs.
532
dnl
533
dnl Note that if there is a possibility the first call to
534
dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
535
dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
536
dnl configure.ac.
537
AC_DEFUN([PKG_CHECK_MODULES_STATIC],
538
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
539
_save_PKG_CONFIG=$PKG_CONFIG
540
PKG_CONFIG="$PKG_CONFIG --static"
541
PKG_CHECK_MODULES($@)
542
PKG_CONFIG=$_save_PKG_CONFIG[]dnl
543
])dnl PKG_CHECK_MODULES_STATIC
544
545
546
dnl PKG_INSTALLDIR([DIRECTORY])
547
dnl -------------------------
548
dnl Since: 0.27
549
dnl
550
dnl Substitutes the variable pkgconfigdir as the location where a module
551
dnl should install pkg-config .pc files. By default the directory is
552
dnl $libdir/pkgconfig, but the default can be changed by passing
553
dnl DIRECTORY. The user can override through the --with-pkgconfigdir
554
dnl parameter.
402 by Osmo Antero
Modifications towards version 1.5. Please see ChangeLog file.
555
AC_DEFUN([PKG_INSTALLDIR],
556
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
557
m4_pushdef([pkg_description],
558
    [pkg-config installation directory @<:@]pkg_default[@:>@])
559
AC_ARG_WITH([pkgconfigdir],
560
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
561
    [with_pkgconfigdir=]pkg_default)
562
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
563
m4_popdef([pkg_default])
564
m4_popdef([pkg_description])
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
565
])dnl PKG_INSTALLDIR
566
567
568
dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
569
dnl --------------------------------
570
dnl Since: 0.27
571
dnl
572
dnl Substitutes the variable noarch_pkgconfigdir as the location where a
573
dnl module should install arch-independent pkg-config .pc files. By
574
dnl default the directory is $datadir/pkgconfig, but the default can be
575
dnl changed by passing DIRECTORY. The user can override through the
576
dnl --with-noarch-pkgconfigdir parameter.
402 by Osmo Antero
Modifications towards version 1.5. Please see ChangeLog file.
577
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
578
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
579
m4_pushdef([pkg_description],
580
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
581
AC_ARG_WITH([noarch-pkgconfigdir],
582
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
583
    [with_noarch_pkgconfigdir=]pkg_default)
584
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
585
m4_popdef([pkg_default])
586
m4_popdef([pkg_description])
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
587
])dnl PKG_NOARCH_INSTALLDIR
588
589
590
dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
591
dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
592
dnl -------------------------------------------
593
dnl Since: 0.28
594
dnl
595
dnl Retrieves the value of the pkg-config variable for the given module.
402 by Osmo Antero
Modifications towards version 1.5. Please see ChangeLog file.
596
AC_DEFUN([PKG_CHECK_VAR],
597
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
598
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
599
600
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
601
AS_VAR_COPY([$1], [pkg_cv_][$1])
602
603
AS_VAR_IF([$1], [""], [$5], [$4])dnl
470.2.12 by Osmo Antero
Version 1.8-0. Recompilation for Ubuntu 16.10.
604
])dnl PKG_CHECK_VAR
402 by Osmo Antero
Modifications towards version 1.5. Please see ChangeLog file.
605
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
606
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
607
#
608
# This file is free software; the Free Software Foundation
609
# gives unlimited permission to copy and/or distribute it,
610
# with or without modifications, as long as this notice is preserved.
611
612
# AM_AUTOMAKE_VERSION(VERSION)
613
# ----------------------------
614
# Automake X.Y traces this macro to ensure aclocal.m4 has been
615
# generated from the m4 files accompanying Automake X.Y.
616
# (This private macro should not be called outside this file.)
617
AC_DEFUN([AM_AUTOMAKE_VERSION],
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
618
[am__api_version='1.15'
1 by Osmo Antero Maatta
Initial import 17.jan.2011
619
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
620
dnl require some minimum version.  Point them to the right macro.
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
621
m4_if([$1], [1.15], [],
1 by Osmo Antero Maatta
Initial import 17.jan.2011
622
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
623
])
624
625
# _AM_AUTOCONF_VERSION(VERSION)
626
# -----------------------------
627
# aclocal traces this macro to find the Autoconf version.
628
# This is a private macro too.  Using m4_define simplifies
629
# the logic in aclocal, which can simply ignore this definition.
630
m4_define([_AM_AUTOCONF_VERSION], [])
631
632
# AM_SET_CURRENT_AUTOMAKE_VERSION
633
# -------------------------------
634
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
635
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
636
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
637
[AM_AUTOMAKE_VERSION([1.15])dnl
1 by Osmo Antero Maatta
Initial import 17.jan.2011
638
m4_ifndef([AC_AUTOCONF_VERSION],
639
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
640
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
641
642
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
643
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
644
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
645
#
646
# This file is free software; the Free Software Foundation
647
# gives unlimited permission to copy and/or distribute it,
648
# with or without modifications, as long as this notice is preserved.
649
650
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
651
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
652
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
653
#
654
# Of course, Automake must honor this variable whenever it calls a
655
# tool from the auxiliary directory.  The problem is that $srcdir (and
656
# therefore $ac_aux_dir as well) can be either absolute or relative,
657
# depending on how configure is run.  This is pretty annoying, since
658
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
659
# source directory, any form will work fine, but in subdirectories a
660
# relative path needs to be adjusted first.
661
#
662
# $ac_aux_dir/missing
663
#    fails when called from a subdirectory if $ac_aux_dir is relative
664
# $top_srcdir/$ac_aux_dir/missing
665
#    fails if $ac_aux_dir is absolute,
666
#    fails when called from a subdirectory in a VPATH build with
667
#          a relative $ac_aux_dir
668
#
669
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
670
# are both prefixed by $srcdir.  In an in-source build this is usually
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
671
# harmless because $srcdir is '.', but things will broke when you
1 by Osmo Antero Maatta
Initial import 17.jan.2011
672
# start a VPATH build or use an absolute $srcdir.
673
#
674
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
675
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
676
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
677
# and then we would define $MISSING as
678
#   MISSING="\${SHELL} $am_aux_dir/missing"
679
# This will work as long as MISSING is not called from configure, because
680
# unfortunately $(top_srcdir) has no meaning in configure.
681
# However there are other variables, like CC, which are often used in
682
# configure, and could therefore not use this "fixed" $ac_aux_dir.
683
#
684
# Another solution, used here, is to always expand $ac_aux_dir to an
685
# absolute PATH.  The drawback is that using absolute paths prevent a
686
# configured tree to be moved without reconfiguration.
687
688
AC_DEFUN([AM_AUX_DIR_EXPAND],
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
689
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
690
# Expand $ac_aux_dir to an absolute path.
691
am_aux_dir=`cd "$ac_aux_dir" && pwd`
1 by Osmo Antero Maatta
Initial import 17.jan.2011
692
])
693
694
# AM_CONDITIONAL                                            -*- Autoconf -*-
695
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
696
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
697
#
698
# This file is free software; the Free Software Foundation
699
# gives unlimited permission to copy and/or distribute it,
700
# with or without modifications, as long as this notice is preserved.
701
702
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
703
# -------------------------------------
704
# Define a conditional.
705
AC_DEFUN([AM_CONDITIONAL],
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
706
[AC_PREREQ([2.52])dnl
707
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
708
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1 by Osmo Antero Maatta
Initial import 17.jan.2011
709
AC_SUBST([$1_TRUE])dnl
710
AC_SUBST([$1_FALSE])dnl
711
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
712
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
713
m4_define([_AM_COND_VALUE_$1], [$2])dnl
714
if $2; then
715
  $1_TRUE=
716
  $1_FALSE='#'
717
else
718
  $1_TRUE='#'
719
  $1_FALSE=
720
fi
721
AC_CONFIG_COMMANDS_PRE(
722
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
723
  AC_MSG_ERROR([[conditional "$1" was never defined.
724
Usually this means the macro was only invoked conditionally.]])
725
fi])])
726
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
727
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
728
#
729
# This file is free software; the Free Software Foundation
730
# gives unlimited permission to copy and/or distribute it,
731
# with or without modifications, as long as this notice is preserved.
732
733
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
734
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
1 by Osmo Antero Maatta
Initial import 17.jan.2011
735
# written in clear, in which case automake, when reading aclocal.m4,
736
# will think it sees a *use*, and therefore will trigger all it's
737
# C support machinery.  Also note that it means that autoscan, seeing
738
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
739
740
741
# _AM_DEPENDENCIES(NAME)
742
# ----------------------
743
# See how the compiler implements dependency checking.
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
744
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
1 by Osmo Antero Maatta
Initial import 17.jan.2011
745
# We try a few techniques and use that to set a single cache variable.
746
#
747
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
748
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
749
# dependency, and given that the user is not expected to run this macro,
750
# just rely on AC_PROG_CC.
751
AC_DEFUN([_AM_DEPENDENCIES],
752
[AC_REQUIRE([AM_SET_DEPDIR])dnl
753
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
754
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
755
AC_REQUIRE([AM_DEP_TRACK])dnl
756
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
757
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
758
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
759
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
760
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
761
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
762
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
763
                    [depcc="$$1"   am_compiler_list=])
1 by Osmo Antero Maatta
Initial import 17.jan.2011
764
765
AC_CACHE_CHECK([dependency style of $depcc],
766
               [am_cv_$1_dependencies_compiler_type],
767
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
768
  # We make a subdir and do the tests there.  Otherwise we can end up
769
  # making bogus files that we don't know about and never remove.  For
770
  # instance it was reported that on HP-UX the gcc test will end up
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
771
  # making a dummy file named 'D' -- because '-MD' means "put the output
772
  # in D".
91 by Osmo Antero
Added packaging file for Fedora (fedora/audio-recorder.spec).
773
  rm -rf conftest.dir
1 by Osmo Antero Maatta
Initial import 17.jan.2011
774
  mkdir conftest.dir
775
  # Copy depcomp to subdir because otherwise we won't find it if we're
776
  # using a relative directory.
777
  cp "$am_depcomp" conftest.dir
778
  cd conftest.dir
779
  # We will build objects and dependencies in a subdirectory because
780
  # it helps to detect inapplicable dependency modes.  For instance
781
  # both Tru64's cc and ICC support -MD to output dependencies as a
782
  # side effect of compilation, but ICC will put the dependencies in
783
  # the current directory while Tru64 will put them in the object
784
  # directory.
785
  mkdir sub
786
787
  am_cv_$1_dependencies_compiler_type=none
788
  if test "$am_compiler_list" = ""; then
789
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
790
  fi
791
  am__universal=false
792
  m4_case([$1], [CC],
793
    [case " $depcc " in #(
794
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
795
     esac],
796
    [CXX],
797
    [case " $depcc " in #(
798
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
799
     esac])
800
801
  for depmode in $am_compiler_list; do
802
    # Setup a source with many dependencies, because some compilers
803
    # like to wrap large dependency lists on column 80 (with \), and
804
    # we should not choose a depcomp mode which is confused by this.
805
    #
806
    # We need to recreate these files for each test, as the compiler may
807
    # overwrite some of them when testing with obscure command lines.
808
    # This happens at least with the AIX C compiler.
809
    : > sub/conftest.c
810
    for i in 1 2 3 4 5 6; do
811
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
812
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
813
      # Solaris 10 /bin/sh.
814
      echo '/* dummy */' > sub/conftst$i.h
1 by Osmo Antero Maatta
Initial import 17.jan.2011
815
    done
816
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
817
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
818
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
1 by Osmo Antero Maatta
Initial import 17.jan.2011
819
    # mode.  It turns out that the SunPro C++ compiler does not properly
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
820
    # handle '-M -o', and we need to detect this.  Also, some Intel
821
    # versions had trouble with output in subdirs.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
822
    am__obj=sub/conftest.${OBJEXT-o}
823
    am__minus_obj="-o $am__obj"
824
    case $depmode in
825
    gcc)
826
      # This depmode causes a compiler race in universal mode.
827
      test "$am__universal" = false || continue
828
      ;;
829
    nosideeffect)
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
830
      # After this tag, mechanisms are not by side-effect, so they'll
831
      # only be used when explicitly requested.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
832
      if test "x$enable_dependency_tracking" = xyes; then
833
	continue
834
      else
835
	break
836
      fi
837
      ;;
91 by Osmo Antero
Added packaging file for Fedora (fedora/audio-recorder.spec).
838
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
839
      # This compiler won't grok '-c -o', but also, the minuso test has
1 by Osmo Antero Maatta
Initial import 17.jan.2011
840
      # not run yet.  These depmodes are late enough in the game, and
841
      # so weak that their functioning should not be impacted.
842
      am__obj=conftest.${OBJEXT-o}
843
      am__minus_obj=
844
      ;;
845
    none) break ;;
846
    esac
847
    if depmode=$depmode \
848
       source=sub/conftest.c object=$am__obj \
849
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
850
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
851
         >/dev/null 2>conftest.err &&
852
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
853
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
854
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
855
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
856
      # icc doesn't choke on unknown options, it will just issue warnings
857
      # or remarks (even with -Werror).  So we grep stderr for any message
858
      # that says an option was ignored or not supported.
859
      # When given -MP, icc 7.0 and 7.1 complain thusly:
860
      #   icc: Command line warning: ignoring option '-M'; no argument required
861
      # The diagnosis changed in icc 8.0:
862
      #   icc: Command line remark: option '-MP' not supported
863
      if (grep 'ignoring option' conftest.err ||
864
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
865
        am_cv_$1_dependencies_compiler_type=$depmode
866
        break
867
      fi
868
    fi
869
  done
870
871
  cd ..
872
  rm -rf conftest.dir
873
else
874
  am_cv_$1_dependencies_compiler_type=none
875
fi
876
])
877
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
878
AM_CONDITIONAL([am__fastdep$1], [
879
  test "x$enable_dependency_tracking" != xno \
880
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
881
])
882
883
884
# AM_SET_DEPDIR
885
# -------------
886
# Choose a directory name for dependency files.
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
887
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
888
AC_DEFUN([AM_SET_DEPDIR],
889
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
890
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
891
])
892
893
894
# AM_DEP_TRACK
895
# ------------
896
AC_DEFUN([AM_DEP_TRACK],
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
897
[AC_ARG_ENABLE([dependency-tracking], [dnl
898
AS_HELP_STRING(
899
  [--enable-dependency-tracking],
900
  [do not reject slow dependency extractors])
901
AS_HELP_STRING(
902
  [--disable-dependency-tracking],
903
  [speeds up one-time build])])
1 by Osmo Antero Maatta
Initial import 17.jan.2011
904
if test "x$enable_dependency_tracking" != xno; then
905
  am_depcomp="$ac_aux_dir/depcomp"
906
  AMDEPBACKSLASH='\'
91 by Osmo Antero
Added packaging file for Fedora (fedora/audio-recorder.spec).
907
  am__nodep='_no'
1 by Osmo Antero Maatta
Initial import 17.jan.2011
908
fi
909
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
910
AC_SUBST([AMDEPBACKSLASH])dnl
911
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
91 by Osmo Antero
Added packaging file for Fedora (fedora/audio-recorder.spec).
912
AC_SUBST([am__nodep])dnl
913
_AM_SUBST_NOTMAKE([am__nodep])dnl
1 by Osmo Antero Maatta
Initial import 17.jan.2011
914
])
915
916
# Generate code to set up dependency tracking.              -*- Autoconf -*-
917
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
918
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
919
#
920
# This file is free software; the Free Software Foundation
921
# gives unlimited permission to copy and/or distribute it,
922
# with or without modifications, as long as this notice is preserved.
923
924
925
# _AM_OUTPUT_DEPENDENCY_COMMANDS
926
# ------------------------------
927
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
928
[{
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
929
  # Older Autoconf quotes --file arguments for eval, but not when files
1 by Osmo Antero Maatta
Initial import 17.jan.2011
930
  # are listed without --file.  Let's play safe and only enable the eval
931
  # if we detect the quoting.
932
  case $CONFIG_FILES in
933
  *\'*) eval set x "$CONFIG_FILES" ;;
934
  *)   set x $CONFIG_FILES ;;
935
  esac
936
  shift
937
  for mf
938
  do
939
    # Strip MF so we end up with the name of the file.
940
    mf=`echo "$mf" | sed -e 's/:.*$//'`
941
    # Check whether this is an Automake generated Makefile or not.
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
942
    # We used to match only the files named 'Makefile.in', but
1 by Osmo Antero Maatta
Initial import 17.jan.2011
943
    # some people rename them; so instead we look at the file content.
944
    # Grep'ing the first line is not enough: some people post-process
945
    # each Makefile.in and add a new line on top of each file to say so.
946
    # Grep'ing the whole file is not good either: AIX grep has a line
947
    # limit of 2048, but all sed's we know have understand at least 4000.
948
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
949
      dirpart=`AS_DIRNAME("$mf")`
950
    else
951
      continue
952
    fi
953
    # Extract the definition of DEPDIR, am__include, and am__quote
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
954
    # from the Makefile without running 'make'.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
955
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
956
    test -z "$DEPDIR" && continue
957
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
958
    test -z "$am__include" && continue
1 by Osmo Antero Maatta
Initial import 17.jan.2011
959
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
960
    # Find all dependency output files, they are included files with
961
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
962
    # simplest approach to changing $(DEPDIR) to its actual value in the
963
    # expansion.
964
    for file in `sed -n "
965
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
966
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1 by Osmo Antero Maatta
Initial import 17.jan.2011
967
      # Make sure the directory exists.
968
      test -f "$dirpart/$file" && continue
969
      fdir=`AS_DIRNAME(["$file"])`
970
      AS_MKDIR_P([$dirpart/$fdir])
971
      # echo "creating $dirpart/$file"
972
      echo '# dummy' > "$dirpart/$file"
973
    done
974
  done
975
}
976
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
977
978
979
# AM_OUTPUT_DEPENDENCY_COMMANDS
980
# -----------------------------
981
# This macro should only be invoked once -- use via AC_REQUIRE.
982
#
983
# This code is only required when automatic dependency tracking
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
984
# is enabled.  FIXME.  This creates each '.P' file that we will
1 by Osmo Antero Maatta
Initial import 17.jan.2011
985
# need in order to bootstrap the dependency handling code.
986
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
987
[AC_CONFIG_COMMANDS([depfiles],
988
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
989
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
990
])
991
992
# Do all the work for Automake.                             -*- Autoconf -*-
993
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
994
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
995
#
996
# This file is free software; the Free Software Foundation
997
# gives unlimited permission to copy and/or distribute it,
998
# with or without modifications, as long as this notice is preserved.
999
1000
# This macro actually does too much.  Some checks are only needed if
1001
# your package does certain things.  But this isn't really a big deal.
1002
351 by Osmo Antero
Compiling A.r for Ubuntu 14.04. No relevant changes.
1003
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
1004
m4_define([AC_PROG_CC],
1005
m4_defn([AC_PROG_CC])
1006
[_AM_PROG_CC_C_O
1007
])
1008
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1009
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1010
# AM_INIT_AUTOMAKE([OPTIONS])
1011
# -----------------------------------------------
1012
# The call with PACKAGE and VERSION arguments is the old style
1013
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
1014
# and VERSION should now be passed to AC_INIT and removed from
1015
# the call to AM_INIT_AUTOMAKE.
1016
# We support both call styles for the transition.  After
1017
# the next Automake release, Autoconf can make the AC_INIT
1018
# arguments mandatory, and then we can depend on a new Autoconf
1019
# release and drop the old call support.
1020
AC_DEFUN([AM_INIT_AUTOMAKE],
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1021
[AC_PREREQ([2.65])dnl
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1022
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
1023
dnl the ones we care about.
1024
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1025
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1026
AC_REQUIRE([AC_PROG_INSTALL])dnl
1027
if test "`cd $srcdir && pwd`" != "`pwd`"; then
1028
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1029
  # is not polluted with repeated "-I."
1030
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1031
  # test to see if srcdir already configured
1032
  if test -f $srcdir/config.status; then
1033
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1034
  fi
1035
fi
1036
1037
# test whether we have cygpath
1038
if test -z "$CYGPATH_W"; then
1039
  if (cygpath --version) >/dev/null 2>/dev/null; then
1040
    CYGPATH_W='cygpath -w'
1041
  else
1042
    CYGPATH_W=echo
1043
  fi
1044
fi
1045
AC_SUBST([CYGPATH_W])
1046
1047
# Define the identity of the package.
1048
dnl Distinguish between old-style and new-style calls.
1049
m4_ifval([$2],
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1050
[AC_DIAGNOSE([obsolete],
1051
             [$0: two- and three-arguments forms are deprecated.])
1052
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1053
 AC_SUBST([PACKAGE], [$1])dnl
1054
 AC_SUBST([VERSION], [$2])],
1055
[_AM_SET_OPTIONS([$1])dnl
1056
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1057
m4_if(
1058
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
1059
  [ok:ok],,
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1060
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1061
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1062
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1063
1064
_AM_IF_OPTION([no-define],,
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1065
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
1066
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1067
1068
# Some tools Automake needs.
1069
AC_REQUIRE([AM_SANITY_CHECK])dnl
1070
AC_REQUIRE([AC_ARG_PROGRAM])dnl
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1071
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
1072
AM_MISSING_PROG([AUTOCONF], [autoconf])
1073
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
1074
AM_MISSING_PROG([AUTOHEADER], [autoheader])
1075
AM_MISSING_PROG([MAKEINFO], [makeinfo])
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1076
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1077
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1078
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1079
# For better backward compatibility.  To be removed once Automake 1.9.x
1080
# dies out for good.  For more background, see:
1023 by Osmo Antero
Changed version number to 1.9.0 (after David Rabel\'s cleanups)
1081
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1082
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1083
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1084
# We need awk for the "check" target (and possibly the TAP driver).  The
1085
# system "awk" is bad on some platforms.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1086
AC_REQUIRE([AC_PROG_AWK])dnl
1087
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1088
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1089
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1090
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1091
			     [_AM_PROG_TAR([v7])])])
1092
_AM_IF_OPTION([no-dependencies],,
1093
[AC_PROVIDE_IFELSE([AC_PROG_CC],
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1094
		  [_AM_DEPENDENCIES([CC])],
1095
		  [m4_define([AC_PROG_CC],
1096
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1097
AC_PROVIDE_IFELSE([AC_PROG_CXX],
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1098
		  [_AM_DEPENDENCIES([CXX])],
1099
		  [m4_define([AC_PROG_CXX],
1100
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1101
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1102
		  [_AM_DEPENDENCIES([OBJC])],
1103
		  [m4_define([AC_PROG_OBJC],
1104
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1105
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1106
		  [_AM_DEPENDENCIES([OBJCXX])],
1107
		  [m4_define([AC_PROG_OBJCXX],
1108
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1109
])
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1110
AC_REQUIRE([AM_SILENT_RULES])dnl
1111
dnl The testsuite driver may need to know about EXEEXT, so add the
1112
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
1113
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1114
AC_CONFIG_COMMANDS_PRE(dnl
1115
[m4_provide_if([_AM_COMPILER_EXEEXT],
1116
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
351 by Osmo Antero
Compiling A.r for Ubuntu 14.04. No relevant changes.
1117
1118
# POSIX will say in a future version that running "rm -f" with no argument
1119
# is OK; and we want to be able to make that assumption in our Makefile
1120
# recipes.  So use an aggressive probe to check that the usage we want is
1121
# actually supported "in the wild" to an acceptable degree.
1122
# See automake bug#10828.
1123
# To make any issue more visible, cause the running configure to be aborted
1124
# by default if the 'rm' program in use doesn't match our expectations; the
1125
# user can still override this though.
1126
if rm -f && rm -fr && rm -rf; then : OK; else
1127
  cat >&2 <<'END'
1128
Oops!
1129
1130
Your 'rm' program seems unable to run without file operands specified
1131
on the command line, even when the '-f' option is present.  This is contrary
1132
to the behaviour of most rm programs out there, and not conforming with
1133
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
1134
1135
Please tell bug-automake@gnu.org about your system, including the value
1136
of your $PATH and any error possibly output before this message.  This
1137
can help us improve future automake versions.
1138
1139
END
1140
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
1141
    echo 'Configuration will proceed anyway, since you have set the' >&2
1142
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
1143
    echo >&2
1144
  else
1145
    cat >&2 <<'END'
1146
Aborting the configuration process, to ensure you take notice of the issue.
1147
1148
You can download and install GNU coreutils to get an 'rm' implementation
1023 by Osmo Antero
Changed version number to 1.9.0 (after David Rabel\'s cleanups)
1149
that behaves properly: <http://www.gnu.org/software/coreutils/>.
351 by Osmo Antero
Compiling A.r for Ubuntu 14.04. No relevant changes.
1150
1151
If you want to complete the configuration process using your problematic
1152
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
1153
to "yes", and re-run configure.
1154
1155
END
1156
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
1157
  fi
402 by Osmo Antero
Modifications towards version 1.5. Please see ChangeLog file.
1158
fi
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1159
dnl The trailing newline in this macro's definition is deliberate, for
1160
dnl backward compatibility and to allow trailing 'dnl'-style comments
1161
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
402 by Osmo Antero
Modifications towards version 1.5. Please see ChangeLog file.
1162
])
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1163
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1164
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1165
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1166
dnl mangled by Autoconf and run in a shell conditional statement.
1167
m4_define([_AC_COMPILER_EXEEXT],
1168
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1169
1170
# When config.status generates a header, we must update the stamp-h file.
1171
# This file resides in the same directory as the config header
1172
# that is generated.  The stamp files are numbered to have different names.
1173
1174
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1175
# loop where config.status creates the headers, so we can generate
1176
# our stamp files there.
1177
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1178
[# Compute $1's index in $config_headers.
1179
_am_arg=$1
1180
_am_stamp_count=1
1181
for _am_header in $config_headers :; do
1182
  case $_am_header in
1183
    $_am_arg | $_am_arg:* )
1184
      break ;;
1185
    * )
1186
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1187
  esac
1188
done
1189
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1190
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1191
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1192
#
1193
# This file is free software; the Free Software Foundation
1194
# gives unlimited permission to copy and/or distribute it,
1195
# with or without modifications, as long as this notice is preserved.
1196
1197
# AM_PROG_INSTALL_SH
1198
# ------------------
1199
# Define $install_sh.
1200
AC_DEFUN([AM_PROG_INSTALL_SH],
1201
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1202
if test x"${install_sh+set}" != xset; then
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1203
  case $am_aux_dir in
1204
  *\ * | *\	*)
1205
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1206
  *)
1207
    install_sh="\${SHELL} $am_aux_dir/install-sh"
1208
  esac
1209
fi
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1210
AC_SUBST([install_sh])])
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1211
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1212
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1213
#
1214
# This file is free software; the Free Software Foundation
1215
# gives unlimited permission to copy and/or distribute it,
1216
# with or without modifications, as long as this notice is preserved.
1217
1218
# Check whether the underlying file-system supports filenames
1219
# with a leading dot.  For instance MS-DOS doesn't.
1220
AC_DEFUN([AM_SET_LEADING_DOT],
1221
[rm -rf .tst 2>/dev/null
1222
mkdir .tst 2>/dev/null
1223
if test -d .tst; then
1224
  am__leading_dot=.
1225
else
1226
  am__leading_dot=_
1227
fi
1228
rmdir .tst 2>/dev/null
1229
AC_SUBST([am__leading_dot])])
1230
1231
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
1232
# From Jim Meyering
1233
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1234
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1235
#
1236
# This file is free software; the Free Software Foundation
1237
# gives unlimited permission to copy and/or distribute it,
1238
# with or without modifications, as long as this notice is preserved.
1239
1240
# AM_MAINTAINER_MODE([DEFAULT-MODE])
1241
# ----------------------------------
1242
# Control maintainer-specific portions of Makefiles.
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1243
# Default is to disable them, unless 'enable' is passed literally.
1244
# For symmetry, 'disable' may be passed as well.  Anyway, the user
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1245
# can override the default with the --enable/--disable switch.
1246
AC_DEFUN([AM_MAINTAINER_MODE],
1247
[m4_case(m4_default([$1], [disable]),
1248
       [enable], [m4_define([am_maintainer_other], [disable])],
1249
       [disable], [m4_define([am_maintainer_other], [enable])],
1250
       [m4_define([am_maintainer_other], [enable])
1251
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
91 by Osmo Antero
Added packaging file for Fedora (fedora/audio-recorder.spec).
1252
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1253
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1254
  AC_ARG_ENABLE([maintainer-mode],
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1255
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
1256
      am_maintainer_other[ make rules and dependencies not useful
1257
      (and sometimes confusing) to the casual installer])],
1258
    [USE_MAINTAINER_MODE=$enableval],
1259
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1260
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1261
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1262
  MAINT=$MAINTAINER_MODE_TRUE
1263
  AC_SUBST([MAINT])dnl
1264
]
1265
)
1266
1267
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
1268
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1269
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1270
#
1271
# This file is free software; the Free Software Foundation
1272
# gives unlimited permission to copy and/or distribute it,
1273
# with or without modifications, as long as this notice is preserved.
1274
1275
# AM_MAKE_INCLUDE()
1276
# -----------------
1277
# Check to see how make treats includes.
1278
AC_DEFUN([AM_MAKE_INCLUDE],
1279
[am_make=${MAKE-make}
1280
cat > confinc << 'END'
1281
am__doit:
1282
	@echo this is the am__doit target
1283
.PHONY: am__doit
1284
END
1285
# If we don't find an include directive, just comment out the code.
1286
AC_MSG_CHECKING([for style of include used by $am_make])
1287
am__include="#"
1288
am__quote=
1289
_am_result=none
1290
# First try GNU make style include.
1291
echo "include confinc" > confmf
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1292
# Ignore all kinds of additional output from 'make'.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1293
case `$am_make -s -f confmf 2> /dev/null` in #(
1294
*the\ am__doit\ target*)
1295
  am__include=include
1296
  am__quote=
1297
  _am_result=GNU
1298
  ;;
1299
esac
1300
# Now try BSD make style include.
1301
if test "$am__include" = "#"; then
1302
   echo '.include "confinc"' > confmf
1303
   case `$am_make -s -f confmf 2> /dev/null` in #(
1304
   *the\ am__doit\ target*)
1305
     am__include=.include
1306
     am__quote="\""
1307
     _am_result=BSD
1308
     ;;
1309
   esac
1310
fi
1311
AC_SUBST([am__include])
1312
AC_SUBST([am__quote])
1313
AC_MSG_RESULT([$_am_result])
1314
rm -f confinc confmf
1315
])
1316
1317
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1318
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1319
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1320
#
1321
# This file is free software; the Free Software Foundation
1322
# gives unlimited permission to copy and/or distribute it,
1323
# with or without modifications, as long as this notice is preserved.
1324
1325
# AM_MISSING_PROG(NAME, PROGRAM)
1326
# ------------------------------
1327
AC_DEFUN([AM_MISSING_PROG],
1328
[AC_REQUIRE([AM_MISSING_HAS_RUN])
1329
$1=${$1-"${am_missing_run}$2"}
1330
AC_SUBST($1)])
1331
1332
# AM_MISSING_HAS_RUN
1333
# ------------------
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1334
# Define MISSING if not defined so far and test if it is modern enough.
1335
# If it is, set am_missing_run to use it, otherwise, to nothing.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1336
AC_DEFUN([AM_MISSING_HAS_RUN],
1337
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1338
AC_REQUIRE_AUX_FILE([missing])dnl
1339
if test x"${MISSING+set}" != xset; then
1340
  case $am_aux_dir in
1341
  *\ * | *\	*)
1342
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1343
  *)
1344
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
1345
  esac
1346
fi
1347
# Use eval to expand $SHELL
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1348
if eval "$MISSING --is-lightweight"; then
1349
  am_missing_run="$MISSING "
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1350
else
1351
  am_missing_run=
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1352
  AC_MSG_WARN(['missing' script is too old or missing])
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1353
fi
1354
])
1355
1356
# Helper functions for option handling.                     -*- Autoconf -*-
1357
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1358
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1359
#
1360
# This file is free software; the Free Software Foundation
1361
# gives unlimited permission to copy and/or distribute it,
1362
# with or without modifications, as long as this notice is preserved.
1363
1364
# _AM_MANGLE_OPTION(NAME)
1365
# -----------------------
1366
AC_DEFUN([_AM_MANGLE_OPTION],
1367
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1368
1369
# _AM_SET_OPTION(NAME)
91 by Osmo Antero
Added packaging file for Fedora (fedora/audio-recorder.spec).
1370
# --------------------
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1371
# Set option NAME.  Presently that only means defining a flag for this option.
1372
AC_DEFUN([_AM_SET_OPTION],
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1373
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1374
1375
# _AM_SET_OPTIONS(OPTIONS)
91 by Osmo Antero
Added packaging file for Fedora (fedora/audio-recorder.spec).
1376
# ------------------------
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1377
# OPTIONS is a space-separated list of Automake options.
1378
AC_DEFUN([_AM_SET_OPTIONS],
1379
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1380
1381
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1382
# -------------------------------------------
1383
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1384
AC_DEFUN([_AM_IF_OPTION],
1385
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1386
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1387
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
351 by Osmo Antero
Compiling A.r for Ubuntu 14.04. No relevant changes.
1388
#
1389
# This file is free software; the Free Software Foundation
1390
# gives unlimited permission to copy and/or distribute it,
1391
# with or without modifications, as long as this notice is preserved.
1392
1393
# _AM_PROG_CC_C_O
1394
# ---------------
1395
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
1396
# to automatically call this.
1397
AC_DEFUN([_AM_PROG_CC_C_O],
1398
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1399
AC_REQUIRE_AUX_FILE([compile])dnl
1400
AC_LANG_PUSH([C])dnl
1401
AC_CACHE_CHECK(
1402
  [whether $CC understands -c and -o together],
1403
  [am_cv_prog_cc_c_o],
1404
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1405
  # Make sure it works both with $CC and with simple cc.
1406
  # Following AC_PROG_CC_C_O, we do the test twice because some
1407
  # compilers refuse to overwrite an existing .o file with -o,
1408
  # though they will create one.
1409
  am_cv_prog_cc_c_o=yes
1410
  for am_i in 1 2; do
1411
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1412
         && test -f conftest2.$ac_objext; then
1413
      : OK
1414
    else
1415
      am_cv_prog_cc_c_o=no
1416
      break
1417
    fi
1418
  done
1419
  rm -f core conftest*
1420
  unset am_i])
1421
if test "$am_cv_prog_cc_c_o" != yes; then
1422
   # Losing compiler, so override with the script.
1423
   # FIXME: It is wrong to rewrite CC.
1424
   # But if we don't then we get into trouble of one sort or another.
1425
   # A longer-term fix would be to have automake use am__CC in this case,
1426
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1427
   CC="$am_aux_dir/compile $CC"
1428
fi
1429
AC_LANG_POP([C])])
1430
1431
# For backward compatibility.
1432
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1433
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1434
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
351 by Osmo Antero
Compiling A.r for Ubuntu 14.04. No relevant changes.
1435
#
1436
# This file is free software; the Free Software Foundation
1437
# gives unlimited permission to copy and/or distribute it,
1438
# with or without modifications, as long as this notice is preserved.
1439
1440
# AM_RUN_LOG(COMMAND)
1441
# -------------------
1442
# Run COMMAND, save the exit status in ac_status, and log it.
1443
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1444
AC_DEFUN([AM_RUN_LOG],
1445
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1446
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1447
   ac_status=$?
1448
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1449
   (exit $ac_status); }])
1450
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1451
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1452
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1453
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1454
#
1455
# This file is free software; the Free Software Foundation
1456
# gives unlimited permission to copy and/or distribute it,
1457
# with or without modifications, as long as this notice is preserved.
1458
1459
# AM_SANITY_CHECK
1460
# ---------------
1461
AC_DEFUN([AM_SANITY_CHECK],
1462
[AC_MSG_CHECKING([whether build environment is sane])
1463
# Reject unsafe characters in $srcdir or the absolute working directory
1464
# name.  Accept space and tab only in the latter.
1465
am_lf='
1466
'
1467
case `pwd` in
1468
  *[[\\\"\#\$\&\'\`$am_lf]]*)
1469
    AC_MSG_ERROR([unsafe absolute working directory name]);;
1470
esac
1471
case $srcdir in
1472
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1473
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1474
esac
1475
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1476
# Do 'set' in a subshell so we don't clobber the current shell's
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1477
# arguments.  Must try -L first in case configure is actually a
1478
# symlink; some systems play weird games with the mod time of symlinks
1479
# (eg FreeBSD returns the mod time of the symlink's containing
1480
# directory).
1481
if (
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1482
   am_has_slept=no
1483
   for am_try in 1 2; do
1484
     echo "timestamp, slept: $am_has_slept" > conftest.file
1485
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1486
     if test "$[*]" = "X"; then
1487
	# -L didn't work.
1488
	set X `ls -t "$srcdir/configure" conftest.file`
1489
     fi
1490
     if test "$[*]" != "X $srcdir/configure conftest.file" \
1491
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1492
1493
	# If neither matched, then we have a broken ls.  This can happen
1494
	# if, for instance, CONFIG_SHELL is bash and it inherits a
1495
	# broken ls alias from the environment.  This has actually
1496
	# happened.  Such a system could not be considered "sane".
1497
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1498
  alias in your environment])
1499
     fi
1500
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
1501
       break
1502
     fi
1503
     # Just in case.
1504
     sleep 1
1505
     am_has_slept=yes
1506
   done
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1507
   test "$[2]" = conftest.file
1508
   )
1509
then
1510
   # Ok.
1511
   :
1512
else
1513
   AC_MSG_ERROR([newly created file is older than distributed files!
1514
Check your system clock])
1515
fi
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1516
AC_MSG_RESULT([yes])
1517
# If we didn't sleep, we still need to ensure time stamps of config.status and
1518
# generated files are strictly newer.
1519
am_sleep_pid=
1520
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1521
  ( sleep 1 ) &
1522
  am_sleep_pid=$!
1523
fi
1524
AC_CONFIG_COMMANDS_PRE(
1525
  [AC_MSG_CHECKING([that generated files are newer than configure])
1526
   if test -n "$am_sleep_pid"; then
1527
     # Hide warnings about reused PIDs.
1528
     wait $am_sleep_pid 2>/dev/null
1529
   fi
1530
   AC_MSG_RESULT([done])])
1531
rm -f conftest.file
1532
])
1533
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1534
# Copyright (C) 2009-2014 Free Software Foundation, Inc.
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1535
#
1536
# This file is free software; the Free Software Foundation
1537
# gives unlimited permission to copy and/or distribute it,
1538
# with or without modifications, as long as this notice is preserved.
1539
1540
# AM_SILENT_RULES([DEFAULT])
1541
# --------------------------
1542
# Enable less verbose build rules; with the default set to DEFAULT
1543
# ("yes" being less verbose, "no" or empty being verbose).
1544
AC_DEFUN([AM_SILENT_RULES],
1545
[AC_ARG_ENABLE([silent-rules], [dnl
1546
AS_HELP_STRING(
1547
  [--enable-silent-rules],
1548
  [less verbose build output (undo: "make V=1")])
1549
AS_HELP_STRING(
1550
  [--disable-silent-rules],
1551
  [verbose build output (undo: "make V=0")])dnl
1552
])
1553
case $enable_silent_rules in @%:@ (((
1554
  yes) AM_DEFAULT_VERBOSITY=0;;
1555
   no) AM_DEFAULT_VERBOSITY=1;;
1556
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1557
esac
1558
dnl
1559
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1560
dnl do not support nested variable expansions.
1561
dnl See automake bug#9928 and bug#10237.
1562
am_make=${MAKE-make}
1563
AC_CACHE_CHECK([whether $am_make supports nested variables],
1564
   [am_cv_make_support_nested_variables],
1565
   [if AS_ECHO([['TRUE=$(BAR$(V))
1566
BAR0=false
1567
BAR1=true
1568
V=1
1569
am__doit:
1570
	@$(TRUE)
1571
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1572
  am_cv_make_support_nested_variables=yes
1573
else
1574
  am_cv_make_support_nested_variables=no
1575
fi])
1576
if test $am_cv_make_support_nested_variables = yes; then
1577
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
1578
  AM_V='$(V)'
1579
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1580
else
1581
  AM_V=$AM_DEFAULT_VERBOSITY
1582
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1583
fi
1584
AC_SUBST([AM_V])dnl
1585
AM_SUBST_NOTMAKE([AM_V])dnl
1586
AC_SUBST([AM_DEFAULT_V])dnl
1587
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1588
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1589
AM_BACKSLASH='\'
1590
AC_SUBST([AM_BACKSLASH])dnl
1591
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1592
])
1593
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1594
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1595
#
1596
# This file is free software; the Free Software Foundation
1597
# gives unlimited permission to copy and/or distribute it,
1598
# with or without modifications, as long as this notice is preserved.
91 by Osmo Antero
Added packaging file for Fedora (fedora/audio-recorder.spec).
1599
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1600
# AM_PROG_INSTALL_STRIP
1601
# ---------------------
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1602
# One issue with vendor 'install' (even GNU) is that you can't
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1603
# specify the program used to strip binaries.  This is especially
1604
# annoying in cross-compiling environments, where the build's strip
1605
# is unlikely to handle the host's binaries.
1606
# Fortunately install-sh will honor a STRIPPROG variable, so we
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1607
# always use install-sh in "make install-strip", and initialize
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1608
# STRIPPROG with the value of the STRIP variable (set by the user).
1609
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1610
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1611
# Installed binaries are usually stripped using 'strip' when the user
1612
# run "make install-strip".  However 'strip' might not be the right
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1613
# tool to use in cross-compilation environments, therefore Automake
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1614
# will honor the 'STRIP' environment variable to overrule this program.
1615
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1616
if test "$cross_compiling" != no; then
1617
  AC_CHECK_TOOL([STRIP], [strip], :)
1618
fi
1619
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1620
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1621
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1622
# Copyright (C) 2006-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1623
#
1624
# This file is free software; the Free Software Foundation
1625
# gives unlimited permission to copy and/or distribute it,
1626
# with or without modifications, as long as this notice is preserved.
1627
1628
# _AM_SUBST_NOTMAKE(VARIABLE)
1629
# ---------------------------
1630
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1631
# This macro is traced by Automake.
1632
AC_DEFUN([_AM_SUBST_NOTMAKE])
1633
1634
# AM_SUBST_NOTMAKE(VARIABLE)
91 by Osmo Antero
Added packaging file for Fedora (fedora/audio-recorder.spec).
1635
# --------------------------
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1636
# Public sister of _AM_SUBST_NOTMAKE.
1637
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1638
1639
# Check how to create a tarball.                            -*- Autoconf -*-
1640
470.2.9 by Osmo Antero
Fixed bug with long file names. Show correct version number in about dialog.
1641
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1642
#
1643
# This file is free software; the Free Software Foundation
1644
# gives unlimited permission to copy and/or distribute it,
1645
# with or without modifications, as long as this notice is preserved.
1646
1647
# _AM_PROG_TAR(FORMAT)
1648
# --------------------
1649
# Check how to create a tarball in format FORMAT.
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1650
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1651
#
1652
# Substitute a variable $(am__tar) that is a command
1653
# writing to stdout a FORMAT-tarball containing the directory
1654
# $tardir.
1655
#     tardir=directory && $(am__tar) > result.tar
1656
#
1657
# Substitute a variable $(am__untar) that extract such
1658
# a tarball read from stdin.
1659
#     $(am__untar) < result.tar
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1660
#
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1661
AC_DEFUN([_AM_PROG_TAR],
91 by Osmo Antero
Added packaging file for Fedora (fedora/audio-recorder.spec).
1662
[# Always define AMTAR for backward compatibility.  Yes, it's still used
1663
# in the wild :-(  We should find a proper way to deprecate it ...
1664
AC_SUBST([AMTAR], ['$${TAR-tar}'])
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1665
1666
# We'll loop over all known methods to create a tar archive until one works.
1667
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1668
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1669
m4_if([$1], [v7],
326 by Osmo Antero
Version 1.2. First build for Ubuntu 13.10 (Saucy Salamander). Renamed configure.in to configure.ac.
1670
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1671
1672
  [m4_case([$1],
1673
    [ustar],
1674
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1675
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
1676
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1677
      # and bug#13588).
1678
      am_max_uid=2097151 # 2^21 - 1
1679
      am_max_gid=$am_max_uid
1680
      # The $UID and $GID variables are not portable, so we need to resort
1681
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
1682
      # below are definitely unexpected, so allow the users to see them
1683
      # (that is, avoid stderr redirection).
1684
      am_uid=`id -u || echo unknown`
1685
      am_gid=`id -g || echo unknown`
1686
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1687
      if test $am_uid -le $am_max_uid; then
1688
         AC_MSG_RESULT([yes])
1689
      else
1690
         AC_MSG_RESULT([no])
1691
         _am_tools=none
1692
      fi
1693
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1694
      if test $am_gid -le $am_max_gid; then
1695
         AC_MSG_RESULT([yes])
1696
      else
1697
        AC_MSG_RESULT([no])
1698
        _am_tools=none
1699
      fi],
1700
1701
  [pax],
1702
    [],
1703
1704
  [m4_fatal([Unknown tar format])])
1705
1706
  AC_MSG_CHECKING([how to create a $1 tar archive])
1707
1708
  # Go ahead even if we have the value already cached.  We do so because we
1709
  # need to set the values for the 'am__tar' and 'am__untar' variables.
1710
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1711
1712
  for _am_tool in $_am_tools; do
1713
    case $_am_tool in
1714
    gnutar)
1715
      for _am_tar in tar gnutar gtar; do
1716
        AM_RUN_LOG([$_am_tar --version]) && break
1717
      done
1718
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1719
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1720
      am__untar="$_am_tar -xf -"
1721
      ;;
1722
    plaintar)
1723
      # Must skip GNU tar: if it does not support --format= it doesn't create
1724
      # ustar tarball either.
1725
      (tar --version) >/dev/null 2>&1 && continue
1726
      am__tar='tar chf - "$$tardir"'
1727
      am__tar_='tar chf - "$tardir"'
1728
      am__untar='tar xf -'
1729
      ;;
1730
    pax)
1731
      am__tar='pax -L -x $1 -w "$$tardir"'
1732
      am__tar_='pax -L -x $1 -w "$tardir"'
1733
      am__untar='pax -r'
1734
      ;;
1735
    cpio)
1736
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1737
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1738
      am__untar='cpio -i -H $1 -d'
1739
      ;;
1740
    none)
1741
      am__tar=false
1742
      am__tar_=false
1743
      am__untar=false
1744
      ;;
1745
    esac
1746
1747
    # If the value was cached, stop now.  We just wanted to have am__tar
1748
    # and am__untar set.
1749
    test -n "${am_cv_prog_tar_$1}" && break
1750
1751
    # tar/untar a dummy directory, and stop if the command works.
1752
    rm -rf conftest.dir
1753
    mkdir conftest.dir
1754
    echo GrepMe > conftest.dir/file
1755
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1756
    rm -rf conftest.dir
1757
    if test -s conftest.tar; then
1758
      AM_RUN_LOG([$am__untar <conftest.tar])
1759
      AM_RUN_LOG([cat conftest.dir/file])
1760
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1761
    fi
1762
  done
1763
  rm -rf conftest.dir
1764
1765
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1766
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1767
1 by Osmo Antero Maatta
Initial import 17.jan.2011
1768
AC_SUBST([am__tar])
1769
AC_SUBST([am__untar])
1770
]) # _AM_PROG_TAR
1771