~ubuntu-branches/ubuntu/trusty/wmnd/trusty-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Gürkan Sengün
  • Date: 2009-07-13 13:56:59 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090713135659-pnvbalkqf5mlos6t
Tags: 0.4.13-1
* New maintainer. (Closes: #515440)
* New upstream version.
  - Make it a non native package. (Closes: #447123)
  - Don't ignore clean/distclean errors. (Closes: #447124)
* Bump debhelper version.
* Bump standards version.
* Updated debian/copyright.
* Updated debian/menu: section part.
* Added homepage field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl aclocal.m4t generated automatically by aclocal 1.4-p6
2
 
 
3
 
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4
 
dnl This file is free software; the Free Software Foundation
5
 
dnl gives unlimited permission to copy and/or distribute it,
6
 
dnl with or without modifications, as long as this notice is preserved.
7
 
 
8
 
dnl This program is distributed in the hope that it will be useful,
9
 
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10
 
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
 
dnl PARTICULAR PURPOSE.
12
 
 
13
 
# lib-prefix.m4 serial 4 (gettext-0.14.2)
14
 
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
15
 
dnl This file is free software; the Free Software Foundation
16
 
dnl gives unlimited permission to copy and/or distribute it,
17
 
dnl with or without modifications, as long as this notice is preserved.
18
 
 
19
 
dnl From Bruno Haible.
20
 
 
21
 
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
22
 
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
23
 
dnl require excessive bracketing.
24
 
ifdef([AC_HELP_STRING],
25
 
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
26
 
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
27
 
 
28
 
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
29
 
dnl to access previously installed libraries. The basic assumption is that
30
 
dnl a user will want packages to use other packages he previously installed
31
 
dnl with the same --prefix option.
32
 
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
33
 
dnl libraries, but is otherwise very convenient.
34
 
AC_DEFUN([AC_LIB_PREFIX],
35
 
[
36
 
  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
37
 
  AC_REQUIRE([AC_PROG_CC])
38
 
  AC_REQUIRE([AC_CANONICAL_HOST])
39
 
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
40
 
  dnl By default, look in $includedir and $libdir.
41
 
  use_additional=yes
42
 
  AC_LIB_WITH_FINAL_PREFIX([
43
 
    eval additional_includedir=\"$includedir\"
44
 
    eval additional_libdir=\"$libdir\"
45
 
  ])
46
 
  AC_LIB_ARG_WITH([lib-prefix],
47
 
[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
48
 
  --without-lib-prefix    don't search for libraries in includedir and libdir],
49
 
[
50
 
    if test "X$withval" = "Xno"; then
51
 
      use_additional=no
52
 
    else
53
 
      if test "X$withval" = "X"; then
54
 
        AC_LIB_WITH_FINAL_PREFIX([
55
 
          eval additional_includedir=\"$includedir\"
56
 
          eval additional_libdir=\"$libdir\"
57
 
        ])
58
 
      else
59
 
        additional_includedir="$withval/include"
60
 
        additional_libdir="$withval/lib"
61
 
      fi
62
 
    fi
63
 
])
64
 
  if test $use_additional = yes; then
65
 
    dnl Potentially add $additional_includedir to $CPPFLAGS.
66
 
    dnl But don't add it
67
 
    dnl   1. if it's the standard /usr/include,
68
 
    dnl   2. if it's already present in $CPPFLAGS,
69
 
    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
70
 
    dnl   4. if it doesn't exist as a directory.
71
 
    if test "X$additional_includedir" != "X/usr/include"; then
72
 
      haveit=
73
 
      for x in $CPPFLAGS; do
74
 
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
75
 
        if test "X$x" = "X-I$additional_includedir"; then
76
 
          haveit=yes
77
 
          break
78
 
        fi
79
 
      done
80
 
      if test -z "$haveit"; then
81
 
        if test "X$additional_includedir" = "X/usr/local/include"; then
82
 
          if test -n "$GCC"; then
83
 
            case $host_os in
84
 
              linux* | gnu* | k*bsd*-gnu) haveit=yes;;
85
 
            esac
86
 
          fi
87
 
        fi
88
 
        if test -z "$haveit"; then
89
 
          if test -d "$additional_includedir"; then
90
 
            dnl Really add $additional_includedir to $CPPFLAGS.
91
 
            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
92
 
          fi
93
 
        fi
94
 
      fi
95
 
    fi
96
 
    dnl Potentially add $additional_libdir to $LDFLAGS.
97
 
    dnl But don't add it
98
 
    dnl   1. if it's the standard /usr/lib,
99
 
    dnl   2. if it's already present in $LDFLAGS,
100
 
    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
101
 
    dnl   4. if it doesn't exist as a directory.
102
 
    if test "X$additional_libdir" != "X/usr/lib"; then
103
 
      haveit=
104
 
      for x in $LDFLAGS; do
105
 
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
106
 
        if test "X$x" = "X-L$additional_libdir"; then
107
 
          haveit=yes
108
 
          break
109
 
        fi
110
 
      done
111
 
      if test -z "$haveit"; then
112
 
        if test "X$additional_libdir" = "X/usr/local/lib"; then
113
 
          if test -n "$GCC"; then
114
 
            case $host_os in
115
 
              linux*) haveit=yes;;
116
 
            esac
117
 
          fi
118
 
        fi
119
 
        if test -z "$haveit"; then
120
 
          if test -d "$additional_libdir"; then
121
 
            dnl Really add $additional_libdir to $LDFLAGS.
122
 
            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
123
 
          fi
124
 
        fi
125
 
      fi
126
 
    fi
127
 
  fi
128
 
])
129
 
 
130
 
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
131
 
dnl acl_final_exec_prefix, containing the values to which $prefix and
132
 
dnl $exec_prefix will expand at the end of the configure script.
133
 
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
134
 
[
135
 
  dnl Unfortunately, prefix and exec_prefix get only finally determined
136
 
  dnl at the end of configure.
137
 
  if test "X$prefix" = "XNONE"; then
138
 
    acl_final_prefix="$ac_default_prefix"
139
 
  else
140
 
    acl_final_prefix="$prefix"
141
 
  fi
142
 
  if test "X$exec_prefix" = "XNONE"; then
143
 
    acl_final_exec_prefix='${prefix}'
144
 
  else
145
 
    acl_final_exec_prefix="$exec_prefix"
146
 
  fi
147
 
  acl_save_prefix="$prefix"
148
 
  prefix="$acl_final_prefix"
149
 
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
150
 
  prefix="$acl_save_prefix"
151
 
])
152
 
 
153
 
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
154
 
dnl variables prefix and exec_prefix bound to the values they will have
155
 
dnl at the end of the configure script.
156
 
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
157
 
[
158
 
  acl_save_prefix="$prefix"
159
 
  prefix="$acl_final_prefix"
160
 
  acl_save_exec_prefix="$exec_prefix"
161
 
  exec_prefix="$acl_final_exec_prefix"
162
 
  $1
163
 
  exec_prefix="$acl_save_exec_prefix"
164
 
  prefix="$acl_save_prefix"
165
 
])
166
 
 
167
 
# lib-link.m4 serial 6 (gettext-0.14.3)
168
 
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
169
 
dnl This file is free software; the Free Software Foundation
170
 
dnl gives unlimited permission to copy and/or distribute it,
171
 
dnl with or without modifications, as long as this notice is preserved.
172
 
 
173
 
dnl From Bruno Haible.
174
 
 
175
 
AC_PREREQ(2.50)
176
 
 
177
 
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
178
 
dnl the libraries corresponding to explicit and implicit dependencies.
179
 
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
180
 
dnl augments the CPPFLAGS variable.
181
 
AC_DEFUN([AC_LIB_LINKFLAGS],
182
 
[
183
 
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
184
 
  AC_REQUIRE([AC_LIB_RPATH])
185
 
  define([Name],[translit([$1],[./-], [___])])
186
 
  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
187
 
                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
188
 
  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
189
 
    AC_LIB_LINKFLAGS_BODY([$1], [$2])
190
 
    ac_cv_lib[]Name[]_libs="$LIB[]NAME"
191
 
    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
192
 
    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
193
 
  ])
194
 
  LIB[]NAME="$ac_cv_lib[]Name[]_libs"
195
 
  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
196
 
  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
197
 
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
198
 
  AC_SUBST([LIB]NAME)
199
 
  AC_SUBST([LTLIB]NAME)
200
 
  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
201
 
  dnl results of this search when this library appears as a dependency.
202
 
  HAVE_LIB[]NAME=yes
203
 
  undefine([Name])
204
 
  undefine([NAME])
205
 
])
206
 
 
207
 
dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
208
 
dnl searches for libname and the libraries corresponding to explicit and
209
 
dnl implicit dependencies, together with the specified include files and
210
 
dnl the ability to compile and link the specified testcode. If found, it
211
 
dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
212
 
dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
213
 
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
214
 
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
215
 
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
216
 
[
217
 
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
218
 
  AC_REQUIRE([AC_LIB_RPATH])
219
 
  define([Name],[translit([$1],[./-], [___])])
220
 
  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
221
 
                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
222
 
 
223
 
  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
224
 
  dnl accordingly.
225
 
  AC_LIB_LINKFLAGS_BODY([$1], [$2])
226
 
 
227
 
  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
228
 
  dnl because if the user has installed lib[]Name and not disabled its use
229
 
  dnl via --without-lib[]Name-prefix, he wants to use it.
230
 
  ac_save_CPPFLAGS="$CPPFLAGS"
231
 
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
232
 
 
233
 
  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
234
 
    ac_save_LIBS="$LIBS"
235
 
    LIBS="$LIBS $LIB[]NAME"
236
 
    AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
237
 
    LIBS="$ac_save_LIBS"
238
 
  ])
239
 
  if test "$ac_cv_lib[]Name" = yes; then
240
 
    HAVE_LIB[]NAME=yes
241
 
    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
242
 
    AC_MSG_CHECKING([how to link with lib[]$1])
243
 
    AC_MSG_RESULT([$LIB[]NAME])
244
 
  else
245
 
    HAVE_LIB[]NAME=no
246
 
    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
247
 
    dnl $INC[]NAME either.
248
 
    CPPFLAGS="$ac_save_CPPFLAGS"
249
 
    LIB[]NAME=
250
 
    LTLIB[]NAME=
251
 
  fi
252
 
  AC_SUBST([HAVE_LIB]NAME)
253
 
  AC_SUBST([LIB]NAME)
254
 
  AC_SUBST([LTLIB]NAME)
255
 
  undefine([Name])
256
 
  undefine([NAME])
257
 
])
258
 
 
259
 
dnl Determine the platform dependent parameters needed to use rpath:
260
 
dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
261
 
dnl hardcode_direct, hardcode_minus_L.
262
 
AC_DEFUN([AC_LIB_RPATH],
263
 
[
264
 
  dnl Tell automake >= 1.10 to complain if config.rpath is missing.
265
 
  m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
266
 
  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
267
 
  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
268
 
  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
269
 
  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
270
 
  AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
271
 
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
272
 
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
273
 
    . ./conftest.sh
274
 
    rm -f ./conftest.sh
275
 
    acl_cv_rpath=done
276
 
  ])
277
 
  wl="$acl_cv_wl"
278
 
  libext="$acl_cv_libext"
279
 
  shlibext="$acl_cv_shlibext"
280
 
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
281
 
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
282
 
  hardcode_direct="$acl_cv_hardcode_direct"
283
 
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
284
 
  dnl Determine whether the user wants rpath handling at all.
285
 
  AC_ARG_ENABLE(rpath,
286
 
    [  --disable-rpath         do not hardcode runtime library paths],
287
 
    :, enable_rpath=yes)
288
 
])
289
 
 
290
 
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
291
 
dnl the libraries corresponding to explicit and implicit dependencies.
292
 
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
293
 
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
294
 
[
295
 
  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
296
 
                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
297
 
  dnl By default, look in $includedir and $libdir.
298
 
  use_additional=yes
299
 
  AC_LIB_WITH_FINAL_PREFIX([
300
 
    eval additional_includedir=\"$includedir\"
301
 
    eval additional_libdir=\"$libdir\"
302
 
  ])
303
 
  AC_LIB_ARG_WITH([lib$1-prefix],
304
 
[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
305
 
  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
306
 
[
307
 
    if test "X$withval" = "Xno"; then
308
 
      use_additional=no
309
 
    else
310
 
      if test "X$withval" = "X"; then
311
 
        AC_LIB_WITH_FINAL_PREFIX([
312
 
          eval additional_includedir=\"$includedir\"
313
 
          eval additional_libdir=\"$libdir\"
314
 
        ])
315
 
      else
316
 
        additional_includedir="$withval/include"
317
 
        additional_libdir="$withval/lib"
318
 
      fi
319
 
    fi
320
 
])
321
 
  dnl Search the library and its dependencies in $additional_libdir and
322
 
  dnl $LDFLAGS. Using breadth-first-seach.
323
 
  LIB[]NAME=
324
 
  LTLIB[]NAME=
325
 
  INC[]NAME=
326
 
  rpathdirs=
327
 
  ltrpathdirs=
328
 
  names_already_handled=
329
 
  names_next_round='$1 $2'
330
 
  while test -n "$names_next_round"; do
331
 
    names_this_round="$names_next_round"
332
 
    names_next_round=
333
 
    for name in $names_this_round; do
334
 
      already_handled=
335
 
      for n in $names_already_handled; do
336
 
        if test "$n" = "$name"; then
337
 
          already_handled=yes
338
 
          break
339
 
        fi
340
 
      done
341
 
      if test -z "$already_handled"; then
342
 
        names_already_handled="$names_already_handled $name"
343
 
        dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
344
 
        dnl or AC_LIB_HAVE_LINKFLAGS call.
345
 
        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
346
 
        eval value=\"\$HAVE_LIB$uppername\"
347
 
        if test -n "$value"; then
348
 
          if test "$value" = yes; then
349
 
            eval value=\"\$LIB$uppername\"
350
 
            test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
351
 
            eval value=\"\$LTLIB$uppername\"
352
 
            test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
353
 
          else
354
 
            dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
355
 
            dnl that this library doesn't exist. So just drop it.
356
 
            :
357
 
          fi
358
 
        else
359
 
          dnl Search the library lib$name in $additional_libdir and $LDFLAGS
360
 
          dnl and the already constructed $LIBNAME/$LTLIBNAME.
361
 
          found_dir=
362
 
          found_la=
363
 
          found_so=
364
 
          found_a=
365
 
          if test $use_additional = yes; then
366
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
367
 
              found_dir="$additional_libdir"
368
 
              found_so="$additional_libdir/lib$name.$shlibext"
369
 
              if test -f "$additional_libdir/lib$name.la"; then
370
 
                found_la="$additional_libdir/lib$name.la"
371
 
              fi
372
 
            else
373
 
              if test -f "$additional_libdir/lib$name.$libext"; then
374
 
                found_dir="$additional_libdir"
375
 
                found_a="$additional_libdir/lib$name.$libext"
376
 
                if test -f "$additional_libdir/lib$name.la"; then
377
 
                  found_la="$additional_libdir/lib$name.la"
378
 
                fi
379
 
              fi
380
 
            fi
381
 
          fi
382
 
          if test "X$found_dir" = "X"; then
383
 
            for x in $LDFLAGS $LTLIB[]NAME; do
384
 
              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
385
 
              case "$x" in
386
 
                -L*)
387
 
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
388
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
389
 
                    found_dir="$dir"
390
 
                    found_so="$dir/lib$name.$shlibext"
391
 
                    if test -f "$dir/lib$name.la"; then
392
 
                      found_la="$dir/lib$name.la"
393
 
                    fi
394
 
                  else
395
 
                    if test -f "$dir/lib$name.$libext"; then
396
 
                      found_dir="$dir"
397
 
                      found_a="$dir/lib$name.$libext"
398
 
                      if test -f "$dir/lib$name.la"; then
399
 
                        found_la="$dir/lib$name.la"
400
 
                      fi
401
 
                    fi
402
 
                  fi
403
 
                  ;;
404
 
              esac
405
 
              if test "X$found_dir" != "X"; then
406
 
                break
407
 
              fi
408
 
            done
409
 
          fi
410
 
          if test "X$found_dir" != "X"; then
411
 
            dnl Found the library.
412
 
            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
413
 
            if test "X$found_so" != "X"; then
414
 
              dnl Linking with a shared library. We attempt to hardcode its
415
 
              dnl directory into the executable's runpath, unless it's the
416
 
              dnl standard /usr/lib.
417
 
              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
418
 
                dnl No hardcoding is needed.
419
 
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
420
 
              else
421
 
                dnl Use an explicit option to hardcode DIR into the resulting
422
 
                dnl binary.
423
 
                dnl Potentially add DIR to ltrpathdirs.
424
 
                dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
425
 
                haveit=
426
 
                for x in $ltrpathdirs; do
427
 
                  if test "X$x" = "X$found_dir"; then
428
 
                    haveit=yes
429
 
                    break
430
 
                  fi
431
 
                done
432
 
                if test -z "$haveit"; then
433
 
                  ltrpathdirs="$ltrpathdirs $found_dir"
434
 
                fi
435
 
                dnl The hardcoding into $LIBNAME is system dependent.
436
 
                if test "$hardcode_direct" = yes; then
437
 
                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
438
 
                  dnl resulting binary.
439
 
                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
440
 
                else
441
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
442
 
                    dnl Use an explicit option to hardcode DIR into the resulting
443
 
                    dnl binary.
444
 
                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
445
 
                    dnl Potentially add DIR to rpathdirs.
446
 
                    dnl The rpathdirs will be appended to $LIBNAME at the end.
447
 
                    haveit=
448
 
                    for x in $rpathdirs; do
449
 
                      if test "X$x" = "X$found_dir"; then
450
 
                        haveit=yes
451
 
                        break
452
 
                      fi
453
 
                    done
454
 
                    if test -z "$haveit"; then
455
 
                      rpathdirs="$rpathdirs $found_dir"
456
 
                    fi
457
 
                  else
458
 
                    dnl Rely on "-L$found_dir".
459
 
                    dnl But don't add it if it's already contained in the LDFLAGS
460
 
                    dnl or the already constructed $LIBNAME
461
 
                    haveit=
462
 
                    for x in $LDFLAGS $LIB[]NAME; do
463
 
                      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
464
 
                      if test "X$x" = "X-L$found_dir"; then
465
 
                        haveit=yes
466
 
                        break
467
 
                      fi
468
 
                    done
469
 
                    if test -z "$haveit"; then
470
 
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
471
 
                    fi
472
 
                    if test "$hardcode_minus_L" != no; then
473
 
                      dnl FIXME: Not sure whether we should use
474
 
                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
475
 
                      dnl here.
476
 
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
477
 
                    else
478
 
                      dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
479
 
                      dnl here, because this doesn't fit in flags passed to the
480
 
                      dnl compiler. So give up. No hardcoding. This affects only
481
 
                      dnl very old systems.
482
 
                      dnl FIXME: Not sure whether we should use
483
 
                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
484
 
                      dnl here.
485
 
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
486
 
                    fi
487
 
                  fi
488
 
                fi
489
 
              fi
490
 
            else
491
 
              if test "X$found_a" != "X"; then
492
 
                dnl Linking with a static library.
493
 
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
494
 
              else
495
 
                dnl We shouldn't come here, but anyway it's good to have a
496
 
                dnl fallback.
497
 
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
498
 
              fi
499
 
            fi
500
 
            dnl Assume the include files are nearby.
501
 
            additional_includedir=
502
 
            case "$found_dir" in
503
 
              */lib | */lib/)
504
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
505
 
                additional_includedir="$basedir/include"
506
 
                ;;
507
 
            esac
508
 
            if test "X$additional_includedir" != "X"; then
509
 
              dnl Potentially add $additional_includedir to $INCNAME.
510
 
              dnl But don't add it
511
 
              dnl   1. if it's the standard /usr/include,
512
 
              dnl   2. if it's /usr/local/include and we are using GCC on Linux,
513
 
              dnl   3. if it's already present in $CPPFLAGS or the already
514
 
              dnl      constructed $INCNAME,
515
 
              dnl   4. if it doesn't exist as a directory.
516
 
              if test "X$additional_includedir" != "X/usr/include"; then
517
 
                haveit=
518
 
                if test "X$additional_includedir" = "X/usr/local/include"; then
519
 
                  if test -n "$GCC"; then
520
 
                    case $host_os in
521
 
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
522
 
                    esac
523
 
                  fi
524
 
                fi
525
 
                if test -z "$haveit"; then
526
 
                  for x in $CPPFLAGS $INC[]NAME; do
527
 
                    AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
528
 
                    if test "X$x" = "X-I$additional_includedir"; then
529
 
                      haveit=yes
530
 
                      break
531
 
                    fi
532
 
                  done
533
 
                  if test -z "$haveit"; then
534
 
                    if test -d "$additional_includedir"; then
535
 
                      dnl Really add $additional_includedir to $INCNAME.
536
 
                      INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
537
 
                    fi
538
 
                  fi
539
 
                fi
540
 
              fi
541
 
            fi
542
 
            dnl Look for dependencies.
543
 
            if test -n "$found_la"; then
544
 
              dnl Read the .la file. It defines the variables
545
 
              dnl dlname, library_names, old_library, dependency_libs, current,
546
 
              dnl age, revision, installed, dlopen, dlpreopen, libdir.
547
 
              save_libdir="$libdir"
548
 
              case "$found_la" in
549
 
                */* | *\\*) . "$found_la" ;;
550
 
                *) . "./$found_la" ;;
551
 
              esac
552
 
              libdir="$save_libdir"
553
 
              dnl We use only dependency_libs.
554
 
              for dep in $dependency_libs; do
555
 
                case "$dep" in
556
 
                  -L*)
557
 
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
558
 
                    dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
559
 
                    dnl But don't add it
560
 
                    dnl   1. if it's the standard /usr/lib,
561
 
                    dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
562
 
                    dnl   3. if it's already present in $LDFLAGS or the already
563
 
                    dnl      constructed $LIBNAME,
564
 
                    dnl   4. if it doesn't exist as a directory.
565
 
                    if test "X$additional_libdir" != "X/usr/lib"; then
566
 
                      haveit=
567
 
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
568
 
                        if test -n "$GCC"; then
569
 
                          case $host_os in
570
 
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
571
 
                          esac
572
 
                        fi
573
 
                      fi
574
 
                      if test -z "$haveit"; then
575
 
                        haveit=
576
 
                        for x in $LDFLAGS $LIB[]NAME; do
577
 
                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
578
 
                          if test "X$x" = "X-L$additional_libdir"; then
579
 
                            haveit=yes
580
 
                            break
581
 
                          fi
582
 
                        done
583
 
                        if test -z "$haveit"; then
584
 
                          if test -d "$additional_libdir"; then
585
 
                            dnl Really add $additional_libdir to $LIBNAME.
586
 
                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
587
 
                          fi
588
 
                        fi
589
 
                        haveit=
590
 
                        for x in $LDFLAGS $LTLIB[]NAME; do
591
 
                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
592
 
                          if test "X$x" = "X-L$additional_libdir"; then
593
 
                            haveit=yes
594
 
                            break
595
 
                          fi
596
 
                        done
597
 
                        if test -z "$haveit"; then
598
 
                          if test -d "$additional_libdir"; then
599
 
                            dnl Really add $additional_libdir to $LTLIBNAME.
600
 
                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
601
 
                          fi
602
 
                        fi
603
 
                      fi
604
 
                    fi
605
 
                    ;;
606
 
                  -R*)
607
 
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
608
 
                    if test "$enable_rpath" != no; then
609
 
                      dnl Potentially add DIR to rpathdirs.
610
 
                      dnl The rpathdirs will be appended to $LIBNAME at the end.
611
 
                      haveit=
612
 
                      for x in $rpathdirs; do
613
 
                        if test "X$x" = "X$dir"; then
614
 
                          haveit=yes
615
 
                          break
616
 
                        fi
617
 
                      done
618
 
                      if test -z "$haveit"; then
619
 
                        rpathdirs="$rpathdirs $dir"
620
 
                      fi
621
 
                      dnl Potentially add DIR to ltrpathdirs.
622
 
                      dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
623
 
                      haveit=
624
 
                      for x in $ltrpathdirs; do
625
 
                        if test "X$x" = "X$dir"; then
626
 
                          haveit=yes
627
 
                          break
628
 
                        fi
629
 
                      done
630
 
                      if test -z "$haveit"; then
631
 
                        ltrpathdirs="$ltrpathdirs $dir"
632
 
                      fi
633
 
                    fi
634
 
                    ;;
635
 
                  -l*)
636
 
                    dnl Handle this in the next round.
637
 
                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
638
 
                    ;;
639
 
                  *.la)
640
 
                    dnl Handle this in the next round. Throw away the .la's
641
 
                    dnl directory; it is already contained in a preceding -L
642
 
                    dnl option.
643
 
                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
644
 
                    ;;
645
 
                  *)
646
 
                    dnl Most likely an immediate library name.
647
 
                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
648
 
                    LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
649
 
                    ;;
650
 
                esac
651
 
              done
652
 
            fi
653
 
          else
654
 
            dnl Didn't find the library; assume it is in the system directories
655
 
            dnl known to the linker and runtime loader. (All the system
656
 
            dnl directories known to the linker should also be known to the
657
 
            dnl runtime loader, otherwise the system is severely misconfigured.)
658
 
            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
659
 
            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
660
 
          fi
661
 
        fi
662
 
      fi
663
 
    done
664
 
  done
665
 
  if test "X$rpathdirs" != "X"; then
666
 
    if test -n "$hardcode_libdir_separator"; then
667
 
      dnl Weird platform: only the last -rpath option counts, the user must
668
 
      dnl pass all path elements in one option. We can arrange that for a
669
 
      dnl single library, but not when more than one $LIBNAMEs are used.
670
 
      alldirs=
671
 
      for found_dir in $rpathdirs; do
672
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
673
 
      done
674
 
      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
675
 
      acl_save_libdir="$libdir"
676
 
      libdir="$alldirs"
677
 
      eval flag=\"$hardcode_libdir_flag_spec\"
678
 
      libdir="$acl_save_libdir"
679
 
      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
680
 
    else
681
 
      dnl The -rpath options are cumulative.
682
 
      for found_dir in $rpathdirs; do
683
 
        acl_save_libdir="$libdir"
684
 
        libdir="$found_dir"
685
 
        eval flag=\"$hardcode_libdir_flag_spec\"
686
 
        libdir="$acl_save_libdir"
687
 
        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
688
 
      done
689
 
    fi
690
 
  fi
691
 
  if test "X$ltrpathdirs" != "X"; then
692
 
    dnl When using libtool, the option that works for both libraries and
693
 
    dnl executables is -R. The -R options are cumulative.
694
 
    for found_dir in $ltrpathdirs; do
695
 
      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
696
 
    done
697
 
  fi
698
 
])
699
 
 
700
 
dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
701
 
dnl unless already present in VAR.
702
 
dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
703
 
dnl contains two or three consecutive elements that belong together.
704
 
AC_DEFUN([AC_LIB_APPENDTOVAR],
705
 
[
706
 
  for element in [$2]; do
707
 
    haveit=
708
 
    for x in $[$1]; do
709
 
      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
710
 
      if test "X$x" = "X$element"; then
711
 
        haveit=yes
712
 
        break
713
 
      fi
714
 
    done
715
 
    if test -z "$haveit"; then
716
 
      [$1]="${[$1]}${[$1]:+ }$element"
717
 
    fi
718
 
  done
719
 
])
720
 
 
721
 
# lib-ld.m4 serial 3 (gettext-0.13)
722
 
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
723
 
dnl This file is free software; the Free Software Foundation
724
 
dnl gives unlimited permission to copy and/or distribute it,
725
 
dnl with or without modifications, as long as this notice is preserved.
726
 
 
727
 
dnl Subroutines of libtool.m4,
728
 
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
729
 
dnl with libtool.m4.
730
 
 
731
 
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
732
 
AC_DEFUN([AC_LIB_PROG_LD_GNU],
733
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
734
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
735
 
case `$LD -v 2>&1 </dev/null` in
736
 
*GNU* | *'with BFD'*)
737
 
  acl_cv_prog_gnu_ld=yes ;;
738
 
*)
739
 
  acl_cv_prog_gnu_ld=no ;;
740
 
esac])
741
 
with_gnu_ld=$acl_cv_prog_gnu_ld
742
 
])
743
 
 
744
 
dnl From libtool-1.4. Sets the variable LD.
745
 
AC_DEFUN([AC_LIB_PROG_LD],
746
 
[AC_ARG_WITH(gnu-ld,
747
 
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
748
 
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
749
 
AC_REQUIRE([AC_PROG_CC])dnl
750
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
751
 
# Prepare PATH_SEPARATOR.
752
 
# The user is always right.
753
 
if test "${PATH_SEPARATOR+set}" != set; then
754
 
  echo "#! /bin/sh" >conf$$.sh
755
 
  echo  "exit 0"   >>conf$$.sh
756
 
  chmod +x conf$$.sh
757
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
758
 
    PATH_SEPARATOR=';'
759
 
  else
760
 
    PATH_SEPARATOR=:
761
 
  fi
762
 
  rm -f conf$$.sh
763
 
fi
764
 
ac_prog=ld
765
 
if test "$GCC" = yes; then
766
 
  # Check if gcc -print-prog-name=ld gives a path.
767
 
  AC_MSG_CHECKING([for ld used by GCC])
768
 
  case $host in
769
 
  *-*-mingw*)
770
 
    # gcc leaves a trailing carriage return which upsets mingw
771
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
772
 
  *)
773
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
774
 
  esac
775
 
  case $ac_prog in
776
 
    # Accept absolute paths.
777
 
    [[\\/]* | [A-Za-z]:[\\/]*)]
778
 
      [re_direlt='/[^/][^/]*/\.\./']
779
 
      # Canonicalize the path of ld
780
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
781
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
782
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
783
 
      done
784
 
      test -z "$LD" && LD="$ac_prog"
785
 
      ;;
786
 
  "")
787
 
    # If it fails, then pretend we aren't using GCC.
788
 
    ac_prog=ld
789
 
    ;;
790
 
  *)
791
 
    # If it is relative, then search for the first ld in PATH.
792
 
    with_gnu_ld=unknown
793
 
    ;;
794
 
  esac
795
 
elif test "$with_gnu_ld" = yes; then
796
 
  AC_MSG_CHECKING([for GNU ld])
797
 
else
798
 
  AC_MSG_CHECKING([for non-GNU ld])
799
 
fi
800
 
AC_CACHE_VAL(acl_cv_path_LD,
801
 
[if test -z "$LD"; then
802
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
803
 
  for ac_dir in $PATH; do
804
 
    test -z "$ac_dir" && ac_dir=.
805
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
806
 
      acl_cv_path_LD="$ac_dir/$ac_prog"
807
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
808
 
      # but apparently some GNU ld's only accept -v.
809
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
810
 
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
811
 
      *GNU* | *'with BFD'*)
812
 
        test "$with_gnu_ld" != no && break ;;
813
 
      *)
814
 
        test "$with_gnu_ld" != yes && break ;;
815
 
      esac
816
 
    fi
817
 
  done
818
 
  IFS="$ac_save_ifs"
819
 
else
820
 
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
821
 
fi])
822
 
LD="$acl_cv_path_LD"
823
 
if test -n "$LD"; then
824
 
  AC_MSG_RESULT($LD)
825
 
else
826
 
  AC_MSG_RESULT(no)
827
 
fi
828
 
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
829
 
AC_LIB_PROG_LD_GNU
830
 
])
831
 
 
832
 
# Do all the work for Automake.  This macro actually does too much --
833
 
# some checks are only needed if your package does certain things.
834
 
# But this isn't really a big deal.
835
 
 
836
 
# serial 1
837
 
 
838
 
dnl Usage:
839
 
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
840
 
 
841
 
AC_DEFUN([AM_INIT_AUTOMAKE],
842
 
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
843
 
AC_REQUIRE([AC_PROG_INSTALL])
844
 
PACKAGE=[$1]
845
 
AC_SUBST(PACKAGE)
846
 
VERSION=[$2]
847
 
AC_SUBST(VERSION)
848
 
dnl test to see if srcdir already configured
849
 
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
850
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
851
 
fi
852
 
ifelse([$3],,
853
 
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
854
 
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
855
 
AC_REQUIRE([AM_SANITY_CHECK])
856
 
AC_REQUIRE([AC_ARG_PROGRAM])
857
 
dnl FIXME This is truly gross.
858
 
missing_dir=`cd $ac_aux_dir && pwd`
859
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
860
 
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
861
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
862
 
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
863
 
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
864
 
AC_REQUIRE([AC_PROG_MAKE_SET])])
865
 
 
866
 
# Copyright 2002  Free Software Foundation, Inc.
867
 
 
868
 
# This program is free software; you can redistribute it and/or modify
869
 
# it under the terms of the GNU General Public License as published by
870
 
# the Free Software Foundation; either version 2, or (at your option)
871
 
# any later version.
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005, 2006  Free Software Foundation, Inc.
 
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.
872
8
 
873
9
# This program is distributed in the hope that it will be useful,
874
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
875
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
876
 
# GNU General Public License for more details.
877
 
 
878
 
# You should have received a copy of the GNU General Public License
879
 
# along with this program; if not, write to the Free Software
880
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
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
 
 
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
 
15
[m4_fatal([this file was generated for autoconf 2.61.
 
16
You have another version of autoconf.  If you want to use that,
 
17
you should regenerate the build system entirely.], [63])])
 
18
 
 
19
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
20
#
 
21
# This file is free software; the Free Software Foundation
 
22
# gives unlimited permission to copy and/or distribute it,
 
23
# with or without modifications, as long as this notice is preserved.
881
24
 
882
25
# AM_AUTOMAKE_VERSION(VERSION)
883
26
# ----------------------------
884
27
# Automake X.Y traces this macro to ensure aclocal.m4 has been
885
28
# generated from the m4 files accompanying Automake X.Y.
886
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
 
29
# (This private macro should not be called outside this file.)
 
30
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
31
[am__api_version='1.10'
 
32
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
33
dnl require some minimum version.  Point them to the right macro.
 
34
m4_if([$1], [1.10], [],
 
35
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
36
])
 
37
 
 
38
# _AM_AUTOCONF_VERSION(VERSION)
 
39
# -----------------------------
 
40
# aclocal traces this macro to find the Autoconf version.
 
41
# This is a private macro too.  Using m4_define simplifies
 
42
# the logic in aclocal, which can simply ignore this definition.
 
43
m4_define([_AM_AUTOCONF_VERSION], [])
887
44
 
888
45
# AM_SET_CURRENT_AUTOMAKE_VERSION
889
46
# -------------------------------
890
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
47
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
891
48
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
892
49
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
893
 
         [AM_AUTOMAKE_VERSION([1.4-p6])])
894
 
 
895
 
#
896
 
# Check to make sure that the build environment is sane.
897
 
#
898
 
 
 
50
[AM_AUTOMAKE_VERSION([1.10])dnl
 
51
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
52
 
 
53
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
54
 
 
55
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
56
#
 
57
# This file is free software; the Free Software Foundation
 
58
# gives unlimited permission to copy and/or distribute it,
 
59
# with or without modifications, as long as this notice is preserved.
 
60
 
 
61
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
62
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
63
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
64
#
 
65
# Of course, Automake must honor this variable whenever it calls a
 
66
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
67
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
68
# depending on how configure is run.  This is pretty annoying, since
 
69
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
70
# source directory, any form will work fine, but in subdirectories a
 
71
# relative path needs to be adjusted first.
 
72
#
 
73
# $ac_aux_dir/missing
 
74
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
75
# $top_srcdir/$ac_aux_dir/missing
 
76
#    fails if $ac_aux_dir is absolute,
 
77
#    fails when called from a subdirectory in a VPATH build with
 
78
#          a relative $ac_aux_dir
 
79
#
 
80
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
81
# are both prefixed by $srcdir.  In an in-source build this is usually
 
82
# harmless because $srcdir is `.', but things will broke when you
 
83
# start a VPATH build or use an absolute $srcdir.
 
84
#
 
85
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
86
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
87
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
88
# and then we would define $MISSING as
 
89
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
90
# This will work as long as MISSING is not called from configure, because
 
91
# unfortunately $(top_srcdir) has no meaning in configure.
 
92
# However there are other variables, like CC, which are often used in
 
93
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
94
#
 
95
# Another solution, used here, is to always expand $ac_aux_dir to an
 
96
# absolute PATH.  The drawback is that using absolute paths prevent a
 
97
# configured tree to be moved without reconfiguration.
 
98
 
 
99
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
100
[dnl Rely on autoconf to set up CDPATH properly.
 
101
AC_PREREQ([2.50])dnl
 
102
# expand $ac_aux_dir to an absolute path
 
103
am_aux_dir=`cd $ac_aux_dir && pwd`
 
104
])
 
105
 
 
106
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
107
 
 
108
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
109
# Free Software Foundation, Inc.
 
110
#
 
111
# This file is free software; the Free Software Foundation
 
112
# gives unlimited permission to copy and/or distribute it,
 
113
# with or without modifications, as long as this notice is preserved.
 
114
 
 
115
# serial 8
 
116
 
 
117
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
118
# -------------------------------------
 
119
# Define a conditional.
 
120
AC_DEFUN([AM_CONDITIONAL],
 
121
[AC_PREREQ(2.52)dnl
 
122
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
123
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
124
AC_SUBST([$1_TRUE])dnl
 
125
AC_SUBST([$1_FALSE])dnl
 
126
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
127
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
128
if $2; then
 
129
  $1_TRUE=
 
130
  $1_FALSE='#'
 
131
else
 
132
  $1_TRUE='#'
 
133
  $1_FALSE=
 
134
fi
 
135
AC_CONFIG_COMMANDS_PRE(
 
136
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
137
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
138
Usually this means the macro was only invoked conditionally.]])
 
139
fi])])
 
140
 
 
141
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
142
# Free Software Foundation, Inc.
 
143
#
 
144
# This file is free software; the Free Software Foundation
 
145
# gives unlimited permission to copy and/or distribute it,
 
146
# with or without modifications, as long as this notice is preserved.
 
147
 
 
148
# serial 9
 
149
 
 
150
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
151
# written in clear, in which case automake, when reading aclocal.m4,
 
152
# will think it sees a *use*, and therefore will trigger all it's
 
153
# C support machinery.  Also note that it means that autoscan, seeing
 
154
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
155
 
 
156
 
 
157
# _AM_DEPENDENCIES(NAME)
 
158
# ----------------------
 
159
# See how the compiler implements dependency checking.
 
160
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
161
# We try a few techniques and use that to set a single cache variable.
 
162
#
 
163
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
164
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
165
# dependency, and given that the user is not expected to run this macro,
 
166
# just rely on AC_PROG_CC.
 
167
AC_DEFUN([_AM_DEPENDENCIES],
 
168
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
169
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
170
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
171
AC_REQUIRE([AM_DEP_TRACK])dnl
 
172
 
 
173
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
174
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
175
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
176
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
177
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
178
                   [depcc="$$1"   am_compiler_list=])
 
179
 
 
180
AC_CACHE_CHECK([dependency style of $depcc],
 
181
               [am_cv_$1_dependencies_compiler_type],
 
182
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
183
  # We make a subdir and do the tests there.  Otherwise we can end up
 
184
  # making bogus files that we don't know about and never remove.  For
 
185
  # instance it was reported that on HP-UX the gcc test will end up
 
186
  # making a dummy file named `D' -- because `-MD' means `put the output
 
187
  # in D'.
 
188
  mkdir conftest.dir
 
189
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
190
  # using a relative directory.
 
191
  cp "$am_depcomp" conftest.dir
 
192
  cd conftest.dir
 
193
  # We will build objects and dependencies in a subdirectory because
 
194
  # it helps to detect inapplicable dependency modes.  For instance
 
195
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
196
  # side effect of compilation, but ICC will put the dependencies in
 
197
  # the current directory while Tru64 will put them in the object
 
198
  # directory.
 
199
  mkdir sub
 
200
 
 
201
  am_cv_$1_dependencies_compiler_type=none
 
202
  if test "$am_compiler_list" = ""; then
 
203
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
204
  fi
 
205
  for depmode in $am_compiler_list; do
 
206
    # Setup a source with many dependencies, because some compilers
 
207
    # like to wrap large dependency lists on column 80 (with \), and
 
208
    # we should not choose a depcomp mode which is confused by this.
 
209
    #
 
210
    # We need to recreate these files for each test, as the compiler may
 
211
    # overwrite some of them when testing with obscure command lines.
 
212
    # This happens at least with the AIX C compiler.
 
213
    : > sub/conftest.c
 
214
    for i in 1 2 3 4 5 6; do
 
215
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
216
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
217
      # Solaris 8's {/usr,}/bin/sh.
 
218
      touch sub/conftst$i.h
 
219
    done
 
220
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
221
 
 
222
    case $depmode in
 
223
    nosideeffect)
 
224
      # after this tag, mechanisms are not by side-effect, so they'll
 
225
      # only be used when explicitly requested
 
226
      if test "x$enable_dependency_tracking" = xyes; then
 
227
        continue
 
228
      else
 
229
        break
 
230
      fi
 
231
      ;;
 
232
    none) break ;;
 
233
    esac
 
234
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
235
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
236
    # handle `-M -o', and we need to detect this.
 
237
    if depmode=$depmode \
 
238
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
239
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
240
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
241
         >/dev/null 2>conftest.err &&
 
242
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
243
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
244
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
245
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
246
      # icc doesn't choke on unknown options, it will just issue warnings
 
247
      # or remarks (even with -Werror).  So we grep stderr for any message
 
248
      # that says an option was ignored or not supported.
 
249
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
250
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
251
      # The diagnosis changed in icc 8.0:
 
252
      #   icc: Command line remark: option '-MP' not supported
 
253
      if (grep 'ignoring option' conftest.err ||
 
254
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
255
        am_cv_$1_dependencies_compiler_type=$depmode
 
256
        break
 
257
      fi
 
258
    fi
 
259
  done
 
260
 
 
261
  cd ..
 
262
  rm -rf conftest.dir
 
263
else
 
264
  am_cv_$1_dependencies_compiler_type=none
 
265
fi
 
266
])
 
267
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
268
AM_CONDITIONAL([am__fastdep$1], [
 
269
  test "x$enable_dependency_tracking" != xno \
 
270
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
271
])
 
272
 
 
273
 
 
274
# AM_SET_DEPDIR
 
275
# -------------
 
276
# Choose a directory name for dependency files.
 
277
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
278
AC_DEFUN([AM_SET_DEPDIR],
 
279
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
280
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
281
])
 
282
 
 
283
 
 
284
# AM_DEP_TRACK
 
285
# ------------
 
286
AC_DEFUN([AM_DEP_TRACK],
 
287
[AC_ARG_ENABLE(dependency-tracking,
 
288
[  --disable-dependency-tracking  speeds up one-time build
 
289
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
290
if test "x$enable_dependency_tracking" != xno; then
 
291
  am_depcomp="$ac_aux_dir/depcomp"
 
292
  AMDEPBACKSLASH='\'
 
293
fi
 
294
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
295
AC_SUBST([AMDEPBACKSLASH])dnl
 
296
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
297
])
 
298
 
 
299
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
300
 
 
301
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
302
# Free Software Foundation, Inc.
 
303
#
 
304
# This file is free software; the Free Software Foundation
 
305
# gives unlimited permission to copy and/or distribute it,
 
306
# with or without modifications, as long as this notice is preserved.
 
307
 
 
308
#serial 3
 
309
 
 
310
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
311
# ------------------------------
 
312
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
313
[for mf in $CONFIG_FILES; do
 
314
  # Strip MF so we end up with the name of the file.
 
315
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
316
  # Check whether this is an Automake generated Makefile or not.
 
317
  # We used to match only the files named `Makefile.in', but
 
318
  # some people rename them; so instead we look at the file content.
 
319
  # Grep'ing the first line is not enough: some people post-process
 
320
  # each Makefile.in and add a new line on top of each file to say so.
 
321
  # Grep'ing the whole file is not good either: AIX grep has a line
 
322
  # limit of 2048, but all sed's we know have understand at least 4000.
 
323
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
324
    dirpart=`AS_DIRNAME("$mf")`
 
325
  else
 
326
    continue
 
327
  fi
 
328
  # Extract the definition of DEPDIR, am__include, and am__quote
 
329
  # from the Makefile without running `make'.
 
330
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
331
  test -z "$DEPDIR" && continue
 
332
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
333
  test -z "am__include" && continue
 
334
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
335
  # When using ansi2knr, U may be empty or an underscore; expand it
 
336
  U=`sed -n 's/^U = //p' < "$mf"`
 
337
  # Find all dependency output files, they are included files with
 
338
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
339
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
340
  # expansion.
 
341
  for file in `sed -n "
 
342
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
343
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
344
    # Make sure the directory exists.
 
345
    test -f "$dirpart/$file" && continue
 
346
    fdir=`AS_DIRNAME(["$file"])`
 
347
    AS_MKDIR_P([$dirpart/$fdir])
 
348
    # echo "creating $dirpart/$file"
 
349
    echo '# dummy' > "$dirpart/$file"
 
350
  done
 
351
done
 
352
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
353
 
 
354
 
 
355
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
356
# -----------------------------
 
357
# This macro should only be invoked once -- use via AC_REQUIRE.
 
358
#
 
359
# This code is only required when automatic dependency tracking
 
360
# is enabled.  FIXME.  This creates each `.P' file that we will
 
361
# need in order to bootstrap the dependency handling code.
 
362
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
363
[AC_CONFIG_COMMANDS([depfiles],
 
364
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
365
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
366
])
 
367
 
 
368
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
369
# Free Software Foundation, Inc.
 
370
#
 
371
# This file is free software; the Free Software Foundation
 
372
# gives unlimited permission to copy and/or distribute it,
 
373
# with or without modifications, as long as this notice is preserved.
 
374
 
 
375
# serial 8
 
376
 
 
377
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
378
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
379
 
 
380
# Do all the work for Automake.                             -*- Autoconf -*-
 
381
 
 
382
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
383
# 2005, 2006 Free Software Foundation, Inc.
 
384
#
 
385
# This file is free software; the Free Software Foundation
 
386
# gives unlimited permission to copy and/or distribute it,
 
387
# with or without modifications, as long as this notice is preserved.
 
388
 
 
389
# serial 12
 
390
 
 
391
# This macro actually does too much.  Some checks are only needed if
 
392
# your package does certain things.  But this isn't really a big deal.
 
393
 
 
394
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
395
# AM_INIT_AUTOMAKE([OPTIONS])
 
396
# -----------------------------------------------
 
397
# The call with PACKAGE and VERSION arguments is the old style
 
398
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
399
# and VERSION should now be passed to AC_INIT and removed from
 
400
# the call to AM_INIT_AUTOMAKE.
 
401
# We support both call styles for the transition.  After
 
402
# the next Automake release, Autoconf can make the AC_INIT
 
403
# arguments mandatory, and then we can depend on a new Autoconf
 
404
# release and drop the old call support.
 
405
AC_DEFUN([AM_INIT_AUTOMAKE],
 
406
[AC_PREREQ([2.60])dnl
 
407
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
408
dnl the ones we care about.
 
409
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
410
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
411
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
412
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
413
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
414
  # is not polluted with repeated "-I."
 
415
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
416
  # test to see if srcdir already configured
 
417
  if test -f $srcdir/config.status; then
 
418
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
419
  fi
 
420
fi
 
421
 
 
422
# test whether we have cygpath
 
423
if test -z "$CYGPATH_W"; then
 
424
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
425
    CYGPATH_W='cygpath -w'
 
426
  else
 
427
    CYGPATH_W=echo
 
428
  fi
 
429
fi
 
430
AC_SUBST([CYGPATH_W])
 
431
 
 
432
# Define the identity of the package.
 
433
dnl Distinguish between old-style and new-style calls.
 
434
m4_ifval([$2],
 
435
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
436
 AC_SUBST([PACKAGE], [$1])dnl
 
437
 AC_SUBST([VERSION], [$2])],
 
438
[_AM_SET_OPTIONS([$1])dnl
 
439
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
440
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
441
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
442
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
443
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
444
 
 
445
_AM_IF_OPTION([no-define],,
 
446
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
447
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
448
 
 
449
# Some tools Automake needs.
 
450
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
451
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
452
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
453
AM_MISSING_PROG(AUTOCONF, autoconf)
 
454
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
455
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
456
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
457
AM_PROG_INSTALL_SH
 
458
AM_PROG_INSTALL_STRIP
 
459
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
460
# We need awk for the "check" target.  The system "awk" is bad on
 
461
# some platforms.
 
462
AC_REQUIRE([AC_PROG_AWK])dnl
 
463
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
464
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
465
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
466
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
467
                             [_AM_PROG_TAR([v7])])])
 
468
_AM_IF_OPTION([no-dependencies],,
 
469
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
470
                  [_AM_DEPENDENCIES(CC)],
 
471
                  [define([AC_PROG_CC],
 
472
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
473
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
474
                  [_AM_DEPENDENCIES(CXX)],
 
475
                  [define([AC_PROG_CXX],
 
476
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
477
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
478
                  [_AM_DEPENDENCIES(OBJC)],
 
479
                  [define([AC_PROG_OBJC],
 
480
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
481
])
 
482
])
 
483
 
 
484
 
 
485
# When config.status generates a header, we must update the stamp-h file.
 
486
# This file resides in the same directory as the config header
 
487
# that is generated.  The stamp files are numbered to have different names.
 
488
 
 
489
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
490
# loop where config.status creates the headers, so we can generate
 
491
# our stamp files there.
 
492
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
493
[# Compute $1's index in $config_headers.
 
494
_am_stamp_count=1
 
495
for _am_header in $config_headers :; do
 
496
  case $_am_header in
 
497
    $1 | $1:* )
 
498
      break ;;
 
499
    * )
 
500
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
501
  esac
 
502
done
 
503
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
504
 
 
505
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
506
#
 
507
# This file is free software; the Free Software Foundation
 
508
# gives unlimited permission to copy and/or distribute it,
 
509
# with or without modifications, as long as this notice is preserved.
 
510
 
 
511
# AM_PROG_INSTALL_SH
 
512
# ------------------
 
513
# Define $install_sh.
 
514
AC_DEFUN([AM_PROG_INSTALL_SH],
 
515
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
516
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
517
AC_SUBST(install_sh)])
 
518
 
 
519
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
520
#
 
521
# This file is free software; the Free Software Foundation
 
522
# gives unlimited permission to copy and/or distribute it,
 
523
# with or without modifications, as long as this notice is preserved.
 
524
 
 
525
# serial 2
 
526
 
 
527
# Check whether the underlying file-system supports filenames
 
528
# with a leading dot.  For instance MS-DOS doesn't.
 
529
AC_DEFUN([AM_SET_LEADING_DOT],
 
530
[rm -rf .tst 2>/dev/null
 
531
mkdir .tst 2>/dev/null
 
532
if test -d .tst; then
 
533
  am__leading_dot=.
 
534
else
 
535
  am__leading_dot=_
 
536
fi
 
537
rmdir .tst 2>/dev/null
 
538
AC_SUBST([am__leading_dot])])
 
539
 
 
540
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
541
 
 
542
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
543
#
 
544
# This file is free software; the Free Software Foundation
 
545
# gives unlimited permission to copy and/or distribute it,
 
546
# with or without modifications, as long as this notice is preserved.
 
547
 
 
548
# serial 3
 
549
 
 
550
# AM_MAKE_INCLUDE()
 
551
# -----------------
 
552
# Check to see how make treats includes.
 
553
AC_DEFUN([AM_MAKE_INCLUDE],
 
554
[am_make=${MAKE-make}
 
555
cat > confinc << 'END'
 
556
am__doit:
 
557
        @echo done
 
558
.PHONY: am__doit
 
559
END
 
560
# If we don't find an include directive, just comment out the code.
 
561
AC_MSG_CHECKING([for style of include used by $am_make])
 
562
am__include="#"
 
563
am__quote=
 
564
_am_result=none
 
565
# First try GNU make style include.
 
566
echo "include confinc" > confmf
 
567
# We grep out `Entering directory' and `Leaving directory'
 
568
# messages which can occur if `w' ends up in MAKEFLAGS.
 
569
# In particular we don't look at `^make:' because GNU make might
 
570
# be invoked under some other name (usually "gmake"), in which
 
571
# case it prints its new name instead of `make'.
 
572
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
573
   am__include=include
 
574
   am__quote=
 
575
   _am_result=GNU
 
576
fi
 
577
# Now try BSD make style include.
 
578
if test "$am__include" = "#"; then
 
579
   echo '.include "confinc"' > confmf
 
580
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
581
      am__include=.include
 
582
      am__quote="\""
 
583
      _am_result=BSD
 
584
   fi
 
585
fi
 
586
AC_SUBST([am__include])
 
587
AC_SUBST([am__quote])
 
588
AC_MSG_RESULT([$_am_result])
 
589
rm -f confinc confmf
 
590
])
 
591
 
 
592
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
593
 
 
594
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
595
# Free Software Foundation, Inc.
 
596
#
 
597
# This file is free software; the Free Software Foundation
 
598
# gives unlimited permission to copy and/or distribute it,
 
599
# with or without modifications, as long as this notice is preserved.
 
600
 
 
601
# serial 5
 
602
 
 
603
# AM_MISSING_PROG(NAME, PROGRAM)
 
604
# ------------------------------
 
605
AC_DEFUN([AM_MISSING_PROG],
 
606
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
607
$1=${$1-"${am_missing_run}$2"}
 
608
AC_SUBST($1)])
 
609
 
 
610
 
 
611
# AM_MISSING_HAS_RUN
 
612
# ------------------
 
613
# Define MISSING if not defined so far and test if it supports --run.
 
614
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
615
AC_DEFUN([AM_MISSING_HAS_RUN],
 
616
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
617
AC_REQUIRE_AUX_FILE([missing])dnl
 
618
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
619
# Use eval to expand $SHELL
 
620
if eval "$MISSING --run true"; then
 
621
  am_missing_run="$MISSING --run "
 
622
else
 
623
  am_missing_run=
 
624
  AC_MSG_WARN([`missing' script is too old or missing])
 
625
fi
 
626
])
 
627
 
 
628
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
629
#
 
630
# This file is free software; the Free Software Foundation
 
631
# gives unlimited permission to copy and/or distribute it,
 
632
# with or without modifications, as long as this notice is preserved.
 
633
 
 
634
# AM_PROG_MKDIR_P
 
635
# ---------------
 
636
# Check for `mkdir -p'.
 
637
AC_DEFUN([AM_PROG_MKDIR_P],
 
638
[AC_PREREQ([2.60])dnl
 
639
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
640
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
641
dnl while keeping a definition of mkdir_p for backward compatibility.
 
642
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
643
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
644
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
645
dnl adjustment using top_builddir (which is defined more often than
 
646
dnl MKDIR_P).
 
647
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
648
case $mkdir_p in
 
649
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
650
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
651
esac
 
652
])
 
653
 
 
654
# Helper functions for option handling.                     -*- Autoconf -*-
 
655
 
 
656
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
657
#
 
658
# This file is free software; the Free Software Foundation
 
659
# gives unlimited permission to copy and/or distribute it,
 
660
# with or without modifications, as long as this notice is preserved.
 
661
 
 
662
# serial 3
 
663
 
 
664
# _AM_MANGLE_OPTION(NAME)
 
665
# -----------------------
 
666
AC_DEFUN([_AM_MANGLE_OPTION],
 
667
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
668
 
 
669
# _AM_SET_OPTION(NAME)
 
670
# ------------------------------
 
671
# Set option NAME.  Presently that only means defining a flag for this option.
 
672
AC_DEFUN([_AM_SET_OPTION],
 
673
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
674
 
 
675
# _AM_SET_OPTIONS(OPTIONS)
 
676
# ----------------------------------
 
677
# OPTIONS is a space-separated list of Automake options.
 
678
AC_DEFUN([_AM_SET_OPTIONS],
 
679
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
680
 
 
681
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
682
# -------------------------------------------
 
683
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
684
AC_DEFUN([_AM_IF_OPTION],
 
685
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
686
 
 
687
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
688
 
 
689
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
690
# Free Software Foundation, Inc.
 
691
#
 
692
# This file is free software; the Free Software Foundation
 
693
# gives unlimited permission to copy and/or distribute it,
 
694
# with or without modifications, as long as this notice is preserved.
 
695
 
 
696
# serial 4
 
697
 
 
698
# AM_SANITY_CHECK
 
699
# ---------------
899
700
AC_DEFUN([AM_SANITY_CHECK],
900
701
[AC_MSG_CHECKING([whether build environment is sane])
901
702
# Just in case
902
703
sleep 1
903
 
echo timestamp > conftestfile
 
704
echo timestamp > conftest.file
904
705
# Do `set' in a subshell so we don't clobber the current shell's
905
706
# arguments.  Must try -L first in case configure is actually a
906
707
# symlink; some systems play weird games with the mod time of symlinks
907
708
# (eg FreeBSD returns the mod time of the symlink's containing
908
709
# directory).
909
710
if (
910
 
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
911
 
   if test "[$]*" = "X"; then
 
711
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
712
   if test "$[*]" = "X"; then
912
713
      # -L didn't work.
913
 
      set X `ls -t $srcdir/configure conftestfile`
 
714
      set X `ls -t $srcdir/configure conftest.file`
914
715
   fi
915
 
   if test "[$]*" != "X $srcdir/configure conftestfile" \
916
 
      && test "[$]*" != "X conftestfile $srcdir/configure"; then
 
716
   rm -f conftest.file
 
717
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
718
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
917
719
 
918
720
      # If neither matched, then we have a broken ls.  This can happen
919
721
      # if, for instance, CONFIG_SHELL is bash and it inherits a
923
725
alias in your environment])
924
726
   fi
925
727
 
926
 
   test "[$]2" = conftestfile
 
728
   test "$[2]" = conftest.file
927
729
   )
928
730
then
929
731
   # Ok.
932
734
   AC_MSG_ERROR([newly created file is older than distributed files!
933
735
Check your system clock])
934
736
fi
935
 
rm -f conftest*
936
737
AC_MSG_RESULT(yes)])
937
738
 
938
 
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
939
 
dnl The program must properly implement --version.
940
 
AC_DEFUN([AM_MISSING_PROG],
941
 
[AC_MSG_CHECKING(for working $2)
942
 
# Run test in a subshell; some versions of sh will print an error if
943
 
# an executable is not found, even if stderr is redirected.
944
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
945
 
if ($2 --version) < /dev/null > /dev/null 2>&1; then
946
 
   $1=$2
947
 
   AC_MSG_RESULT(found)
948
 
else
949
 
   $1="$3/missing $2"
950
 
   AC_MSG_RESULT(missing)
 
739
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
740
#
 
741
# This file is free software; the Free Software Foundation
 
742
# gives unlimited permission to copy and/or distribute it,
 
743
# with or without modifications, as long as this notice is preserved.
 
744
 
 
745
# AM_PROG_INSTALL_STRIP
 
746
# ---------------------
 
747
# One issue with vendor `install' (even GNU) is that you can't
 
748
# specify the program used to strip binaries.  This is especially
 
749
# annoying in cross-compiling environments, where the build's strip
 
750
# is unlikely to handle the host's binaries.
 
751
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
752
# always use install-sh in `make install-strip', and initialize
 
753
# STRIPPROG with the value of the STRIP variable (set by the user).
 
754
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
755
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
756
# Installed binaries are usually stripped using `strip' when the user
 
757
# run `make install-strip'.  However `strip' might not be the right
 
758
# tool to use in cross-compilation environments, therefore Automake
 
759
# will honor the `STRIP' environment variable to overrule this program.
 
760
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
761
if test "$cross_compiling" != no; then
 
762
  AC_CHECK_TOOL([STRIP], [strip], :)
951
763
fi
952
 
AC_SUBST($1)])
953
 
 
954
 
# Like AC_CONFIG_HEADER, but automatically create stamp file.
955
 
 
956
 
AC_DEFUN([AM_CONFIG_HEADER],
957
 
[AC_PREREQ([2.12])
958
 
AC_CONFIG_HEADER([$1])
959
 
dnl When config.status generates a header, we must update the stamp-h file.
960
 
dnl This file resides in the same directory as the config header
961
 
dnl that is generated.  We must strip everything past the first ":",
962
 
dnl and everything past the last "/".
963
 
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
964
 
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
965
 
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
966
 
<<am_indx=1
967
 
for am_file in <<$1>>; do
968
 
  case " <<$>>CONFIG_HEADERS " in
969
 
  *" <<$>>am_file "*<<)>>
970
 
    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
 
764
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
765
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
766
 
 
767
# Copyright (C) 2006  Free Software Foundation, Inc.
 
768
#
 
769
# This file is free software; the Free Software Foundation
 
770
# gives unlimited permission to copy and/or distribute it,
 
771
# with or without modifications, as long as this notice is preserved.
 
772
 
 
773
# _AM_SUBST_NOTMAKE(VARIABLE)
 
774
# ---------------------------
 
775
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
776
# This macro is traced by Automake.
 
777
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
778
 
 
779
# Check how to create a tarball.                            -*- Autoconf -*-
 
780
 
 
781
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
782
#
 
783
# This file is free software; the Free Software Foundation
 
784
# gives unlimited permission to copy and/or distribute it,
 
785
# with or without modifications, as long as this notice is preserved.
 
786
 
 
787
# serial 2
 
788
 
 
789
# _AM_PROG_TAR(FORMAT)
 
790
# --------------------
 
791
# Check how to create a tarball in format FORMAT.
 
792
# FORMAT should be one of `v7', `ustar', or `pax'.
 
793
#
 
794
# Substitute a variable $(am__tar) that is a command
 
795
# writing to stdout a FORMAT-tarball containing the directory
 
796
# $tardir.
 
797
#     tardir=directory && $(am__tar) > result.tar
 
798
#
 
799
# Substitute a variable $(am__untar) that extract such
 
800
# a tarball read from stdin.
 
801
#     $(am__untar) < result.tar
 
802
AC_DEFUN([_AM_PROG_TAR],
 
803
[# Always define AMTAR for backward compatibility.
 
804
AM_MISSING_PROG([AMTAR], [tar])
 
805
m4_if([$1], [v7],
 
806
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
807
     [m4_case([$1], [ustar],, [pax],,
 
808
              [m4_fatal([Unknown tar format])])
 
809
AC_MSG_CHECKING([how to create a $1 tar archive])
 
810
# Loop over all known methods to create a tar archive until one works.
 
811
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
812
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
813
# Do not fold the above two line into one, because Tru64 sh and
 
814
# Solaris sh will not grok spaces in the rhs of `-'.
 
815
for _am_tool in $_am_tools
 
816
do
 
817
  case $_am_tool in
 
818
  gnutar)
 
819
    for _am_tar in tar gnutar gtar;
 
820
    do
 
821
      AM_RUN_LOG([$_am_tar --version]) && break
 
822
    done
 
823
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
824
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
825
    am__untar="$_am_tar -xf -"
 
826
    ;;
 
827
  plaintar)
 
828
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
829
    # ustar tarball either.
 
830
    (tar --version) >/dev/null 2>&1 && continue
 
831
    am__tar='tar chf - "$$tardir"'
 
832
    am__tar_='tar chf - "$tardir"'
 
833
    am__untar='tar xf -'
 
834
    ;;
 
835
  pax)
 
836
    am__tar='pax -L -x $1 -w "$$tardir"'
 
837
    am__tar_='pax -L -x $1 -w "$tardir"'
 
838
    am__untar='pax -r'
 
839
    ;;
 
840
  cpio)
 
841
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
842
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
843
    am__untar='cpio -i -H $1 -d'
 
844
    ;;
 
845
  none)
 
846
    am__tar=false
 
847
    am__tar_=false
 
848
    am__untar=false
971
849
    ;;
972
850
  esac
973
 
  am_indx=`expr "<<$>>am_indx" + 1`
974
 
done<<>>dnl>>)
975
 
changequote([,]))])
 
851
 
 
852
  # If the value was cached, stop now.  We just wanted to have am__tar
 
853
  # and am__untar set.
 
854
  test -n "${am_cv_prog_tar_$1}" && break
 
855
 
 
856
  # tar/untar a dummy directory, and stop if the command works
 
857
  rm -rf conftest.dir
 
858
  mkdir conftest.dir
 
859
  echo GrepMe > conftest.dir/file
 
860
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
861
  rm -rf conftest.dir
 
862
  if test -s conftest.tar; then
 
863
    AM_RUN_LOG([$am__untar <conftest.tar])
 
864
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
865
  fi
 
866
done
 
867
rm -rf conftest.dir
 
868
 
 
869
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
870
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
871
AC_SUBST([am__tar])
 
872
AC_SUBST([am__untar])
 
873
]) # _AM_PROG_TAR
976
874