Develop and Download Open Source Software

Browse CVS Repository

Contents of /freewnn/FreeWnn/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Jun 18 09:09:20 2001 UTC (22 years, 9 months ago) by ura
Branch: MAIN
CVS Tags: freewnn-1-1-1-a018
FreeWnn-1.1.1-a018 is released.

1 dnl aclocal.m4 generated automatically by aclocal 1.4
2
3 dnl Copyright (C) 1994, 1995-8, 1999 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
14 # serial 40 AC_PROG_LIBTOOL
15 AC_DEFUN(AC_PROG_LIBTOOL,
16 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
17
18 # Save cache, so that ltconfig can load it
19 AC_CACHE_SAVE
20
21 # Actually configure libtool. ac_aux_dir is where install-sh is found.
22 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
23 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
24 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
25 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
26 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
27 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
28 || AC_MSG_ERROR([libtool configure failed])
29
30 # Reload cache, that may have been modified by ltconfig
31 AC_CACHE_LOAD
32
33 # This can be used to rebuild libtool when needed
34 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
35
36 # Always use our own libtool.
37 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
38 AC_SUBST(LIBTOOL)dnl
39
40 # Redirect the config.log output again, so that the ltconfig log is not
41 # clobbered by the next message.
42 exec 5>>./config.log
43 ])
44
45 AC_DEFUN(AC_LIBTOOL_SETUP,
46 [AC_PREREQ(2.13)dnl
47 AC_REQUIRE([AC_ENABLE_SHARED])dnl
48 AC_REQUIRE([AC_ENABLE_STATIC])dnl
49 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
50 AC_REQUIRE([AC_CANONICAL_HOST])dnl
51 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
52 AC_REQUIRE([AC_PROG_RANLIB])dnl
53 AC_REQUIRE([AC_PROG_CC])dnl
54 AC_REQUIRE([AC_PROG_LD])dnl
55 AC_REQUIRE([AC_PROG_NM])dnl
56 AC_REQUIRE([AC_PROG_LN_S])dnl
57 dnl
58
59 case "$target" in
60 NONE) lt_target="$host" ;;
61 *) lt_target="$target" ;;
62 esac
63
64 # Check for any special flags to pass to ltconfig.
65 libtool_flags="--cache-file=$cache_file"
66 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
67 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
68 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
69 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
70 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
71 ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
72 [libtool_flags="$libtool_flags --enable-dlopen"])
73 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
74 [libtool_flags="$libtool_flags --enable-win32-dll"])
75 AC_ARG_ENABLE(libtool-lock,
76 [ --disable-libtool-lock avoid locking (might break parallel builds)])
77 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
78 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
79
80 # Some flags need to be propagated to the compiler or linker for good
81 # libtool support.
82 case "$lt_target" in
83 *-*-irix6*)
84 # Find out which ABI we are using.
85 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
86 if AC_TRY_EVAL(ac_compile); then
87 case "`/usr/bin/file conftest.o`" in
88 *32-bit*)
89 LD="${LD-ld} -32"
90 ;;
91 *N32*)
92 LD="${LD-ld} -n32"
93 ;;
94 *64-bit*)
95 LD="${LD-ld} -64"
96 ;;
97 esac
98 fi
99 rm -rf conftest*
100 ;;
101
102 *-*-sco3.2v5*)
103 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
104 SAVE_CFLAGS="$CFLAGS"
105 CFLAGS="$CFLAGS -belf"
106 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
107 [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
108 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
109 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
110 CFLAGS="$SAVE_CFLAGS"
111 fi
112 ;;
113
114 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
115 [*-*-cygwin* | *-*-mingw*)
116 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
117 AC_CHECK_TOOL(AS, as, false)
118 AC_CHECK_TOOL(OBJDUMP, objdump, false)
119 ;;
120 ])
121 esac
122 ])
123
124 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
125 AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
126
127 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
128 AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
129
130 # AC_ENABLE_SHARED - implement the --enable-shared flag
131 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
132 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
133 # `yes'.
134 AC_DEFUN(AC_ENABLE_SHARED, [dnl
135 define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
136 AC_ARG_ENABLE(shared,
137 changequote(<<, >>)dnl
138 << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
139 changequote([, ])dnl
140 [p=${PACKAGE-default}
141 case "$enableval" in
142 yes) enable_shared=yes ;;
143 no) enable_shared=no ;;
144 *)
145 enable_shared=no
146 # Look at the argument we got. We use all the common list separators.
147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
148 for pkg in $enableval; do
149 if test "X$pkg" = "X$p"; then
150 enable_shared=yes
151 fi
152 done
153 IFS="$ac_save_ifs"
154 ;;
155 esac],
156 enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
157 ])
158
159 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
160 AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
161 AC_ENABLE_SHARED(no)])
162
163 # AC_ENABLE_STATIC - implement the --enable-static flag
164 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
165 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
166 # `yes'.
167 AC_DEFUN(AC_ENABLE_STATIC, [dnl
168 define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
169 AC_ARG_ENABLE(static,
170 changequote(<<, >>)dnl
171 << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
172 changequote([, ])dnl
173 [p=${PACKAGE-default}
174 case "$enableval" in
175 yes) enable_static=yes ;;
176 no) enable_static=no ;;
177 *)
178 enable_static=no
179 # Look at the argument we got. We use all the common list separators.
180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
181 for pkg in $enableval; do
182 if test "X$pkg" = "X$p"; then
183 enable_static=yes
184 fi
185 done
186 IFS="$ac_save_ifs"
187 ;;
188 esac],
189 enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
190 ])
191
192 # AC_DISABLE_STATIC - set the default static flag to --disable-static
193 AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
194 AC_ENABLE_STATIC(no)])
195
196
197 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
198 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
199 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
200 # `yes'.
201 AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
202 define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
203 AC_ARG_ENABLE(fast-install,
204 changequote(<<, >>)dnl
205 << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
206 changequote([, ])dnl
207 [p=${PACKAGE-default}
208 case "$enableval" in
209 yes) enable_fast_install=yes ;;
210 no) enable_fast_install=no ;;
211 *)
212 enable_fast_install=no
213 # Look at the argument we got. We use all the common list separators.
214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
215 for pkg in $enableval; do
216 if test "X$pkg" = "X$p"; then
217 enable_fast_install=yes
218 fi
219 done
220 IFS="$ac_save_ifs"
221 ;;
222 esac],
223 enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
224 ])
225
226 # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
227 AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
228 AC_ENABLE_FAST_INSTALL(no)])
229
230 # AC_PROG_LD - find the path to the GNU or non-GNU linker
231 AC_DEFUN(AC_PROG_LD,
232 [AC_ARG_WITH(gnu-ld,
233 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
234 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
235 AC_REQUIRE([AC_PROG_CC])dnl
236 AC_REQUIRE([AC_CANONICAL_HOST])dnl
237 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
238 ac_prog=ld
239 if test "$ac_cv_prog_gcc" = yes; then
240 # Check if gcc -print-prog-name=ld gives a path.
241 AC_MSG_CHECKING([for ld used by GCC])
242 ac_prog=`($CC -print-prog-name=ld) 2>&5`
243 case "$ac_prog" in
244 # Accept absolute paths.
245 changequote(,)dnl
246 [\\/]* | [A-Za-z]:[\\/]*)
247 re_direlt='/[^/][^/]*/\.\./'
248 changequote([,])dnl
249 # Canonicalize the path of ld
250 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
251 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
252 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
253 done
254 test -z "$LD" && LD="$ac_prog"
255 ;;
256 "")
257 # If it fails, then pretend we aren't using GCC.
258 ac_prog=ld
259 ;;
260 *)
261 # If it is relative, then search for the first ld in PATH.
262 with_gnu_ld=unknown
263 ;;
264 esac
265 elif test "$with_gnu_ld" = yes; then
266 AC_MSG_CHECKING([for GNU ld])
267 else
268 AC_MSG_CHECKING([for non-GNU ld])
269 fi
270 AC_CACHE_VAL(ac_cv_path_LD,
271 [if test -z "$LD"; then
272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
273 for ac_dir in $PATH; do
274 test -z "$ac_dir" && ac_dir=.
275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
276 ac_cv_path_LD="$ac_dir/$ac_prog"
277 # Check to see if the program is GNU ld. I'd rather use --version,
278 # but apparently some GNU ld's only accept -v.
279 # Break only if it was the GNU/non-GNU ld that we prefer.
280 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
281 test "$with_gnu_ld" != no && break
282 else
283 test "$with_gnu_ld" != yes && break
284 fi
285 fi
286 done
287 IFS="$ac_save_ifs"
288 else
289 ac_cv_path_LD="$LD" # Let the user override the test with a path.
290 fi])
291 LD="$ac_cv_path_LD"
292 if test -n "$LD"; then
293 AC_MSG_RESULT($LD)
294 else
295 AC_MSG_RESULT(no)
296 fi
297 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
298 AC_PROG_LD_GNU
299 ])
300
301 AC_DEFUN(AC_PROG_LD_GNU,
302 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
303 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
304 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
305 ac_cv_prog_gnu_ld=yes
306 else
307 ac_cv_prog_gnu_ld=no
308 fi])
309 ])
310
311 # AC_PROG_NM - find the path to a BSD-compatible name lister
312 AC_DEFUN(AC_PROG_NM,
313 [AC_MSG_CHECKING([for BSD-compatible nm])
314 AC_CACHE_VAL(ac_cv_path_NM,
315 [if test -n "$NM"; then
316 # Let the user override the test.
317 ac_cv_path_NM="$NM"
318 else
319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
320 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
321 test -z "$ac_dir" && ac_dir=.
322 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
323 # Check to see if the nm accepts a BSD-compat flag.
324 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
325 # nm: unknown option "B" ignored
326 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
327 ac_cv_path_NM="$ac_dir/nm -B"
328 break
329 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
330 ac_cv_path_NM="$ac_dir/nm -p"
331 break
332 else
333 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
334 continue # so that we can try to find one that supports BSD flags
335 fi
336 fi
337 done
338 IFS="$ac_save_ifs"
339 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
340 fi])
341 NM="$ac_cv_path_NM"
342 AC_MSG_RESULT([$NM])
343 ])
344
345 # AC_CHECK_LIBM - check for math library
346 AC_DEFUN(AC_CHECK_LIBM,
347 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
348 LIBM=
349 case "$lt_target" in
350 *-*-beos* | *-*-cygwin*)
351 # These system don't have libm
352 ;;
353 *-ncr-sysv4.3*)
354 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
355 AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
356 ;;
357 *)
358 AC_CHECK_LIB(m, main, LIBM="-lm")
359 ;;
360 esac
361 ])
362
363 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
364 # the libltdl convenience library and INCLTDL to the include flags for
365 # the libltdl header and adds --enable-ltdl-convenience to the
366 # configure arguments. Note that LIBLTDL and INCLTDL are not
367 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
368 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
369 # with '${top_builddir}/' and INCLTDL will be prefixed with
370 # '${top_srcdir}/' (note the single quotes!). If your package is not
371 # flat and you're not using automake, define top_builddir and
372 # top_srcdir appropriately in the Makefiles.
373 AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
374 case "$enable_ltdl_convenience" in
375 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
376 "") enable_ltdl_convenience=yes
377 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
378 esac
379 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
380 INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
381 ])
382
383 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
384 # the libltdl installable library and INCLTDL to the include flags for
385 # the libltdl header and adds --enable-ltdl-install to the configure
386 # arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
387 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
388 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
389 # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
390 # with '${top_srcdir}/' (note the single quotes!). If your package is
391 # not flat and you're not using automake, define top_builddir and
392 # top_srcdir appropriately in the Makefiles.
393 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
394 AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
395 AC_CHECK_LIB(ltdl, main,
396 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
397 [if test x"$enable_ltdl_install" = xno; then
398 AC_MSG_WARN([libltdl not installed, but installation disabled])
399 else
400 enable_ltdl_install=yes
401 fi
402 ])
403 if test x"$enable_ltdl_install" = x"yes"; then
404 ac_configure_args="$ac_configure_args --enable-ltdl-install"
405 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
406 INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
407 else
408 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
409 LIBLTDL="-lltdl"
410 INCLTDL=
411 fi
412 ])
413
414 dnl old names
415 AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
416 AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
417 AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
418 AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
419 AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
420 AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
421 AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
422
423 dnl This is just to silence aclocal about the macro not being used
424 ifelse([AC_DISABLE_FAST_INSTALL])dnl
425
426 # Do all the work for Automake. This macro actually does too much --
427 # some checks are only needed if your package does certain things.
428 # But this isn't really a big deal.
429
430 # serial 1
431
432 dnl Usage:
433 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
434
435 AC_DEFUN(AM_INIT_AUTOMAKE,
436 [AC_REQUIRE([AC_PROG_INSTALL])
437 PACKAGE=[$1]
438 AC_SUBST(PACKAGE)
439 VERSION=[$2]
440 AC_SUBST(VERSION)
441 dnl test to see if srcdir already configured
442 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
443 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
444 fi
445 ifelse([$3],,
446 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
447 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
448 AC_REQUIRE([AM_SANITY_CHECK])
449 AC_REQUIRE([AC_ARG_PROGRAM])
450 dnl FIXME This is truly gross.
451 missing_dir=`cd $ac_aux_dir && pwd`
452 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
453 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
454 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
455 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
456 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
457 AC_REQUIRE([AC_PROG_MAKE_SET])])
458
459 #
460 # Check to make sure that the build environment is sane.
461 #
462
463 AC_DEFUN(AM_SANITY_CHECK,
464 [AC_MSG_CHECKING([whether build environment is sane])
465 # Just in case
466 sleep 1
467 echo timestamp > conftestfile
468 # Do `set' in a subshell so we don't clobber the current shell's
469 # arguments. Must try -L first in case configure is actually a
470 # symlink; some systems play weird games with the mod time of symlinks
471 # (eg FreeBSD returns the mod time of the symlink's containing
472 # directory).
473 if (
474 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
475 if test "[$]*" = "X"; then
476 # -L didn't work.
477 set X `ls -t $srcdir/configure conftestfile`
478 fi
479 if test "[$]*" != "X $srcdir/configure conftestfile" \
480 && test "[$]*" != "X conftestfile $srcdir/configure"; then
481
482 # If neither matched, then we have a broken ls. This can happen
483 # if, for instance, CONFIG_SHELL is bash and it inherits a
484 # broken ls alias from the environment. This has actually
485 # happened. Such a system could not be considered "sane".
486 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
487 alias in your environment])
488 fi
489
490 test "[$]2" = conftestfile
491 )
492 then
493 # Ok.
494 :
495 else
496 AC_MSG_ERROR([newly created file is older than distributed files!
497 Check your system clock])
498 fi
499 rm -f conftest*
500 AC_MSG_RESULT(yes)])
501
502 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
503 dnl The program must properly implement --version.
504 AC_DEFUN(AM_MISSING_PROG,
505 [AC_MSG_CHECKING(for working $2)
506 # Run test in a subshell; some versions of sh will print an error if
507 # an executable is not found, even if stderr is redirected.
508 # Redirect stdin to placate older versions of autoconf. Sigh.
509 if ($2 --version) < /dev/null > /dev/null 2>&1; then
510 $1=$2
511 AC_MSG_RESULT(found)
512 else
513 $1="$3/missing $2"
514 AC_MSG_RESULT(missing)
515 fi
516 AC_SUBST($1)])
517
518 # Like AC_CONFIG_HEADER, but automatically create stamp file.
519
520 AC_DEFUN(AM_CONFIG_HEADER,
521 [AC_PREREQ([2.12])
522 AC_CONFIG_HEADER([$1])
523 dnl When config.status generates a header, we must update the stamp-h file.
524 dnl This file resides in the same directory as the config header
525 dnl that is generated. We must strip everything past the first ":",
526 dnl and everything past the last "/".
527 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
528 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
529 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
530 <<am_indx=1
531 for am_file in <<$1>>; do
532 case " <<$>>CONFIG_HEADERS " in
533 *" <<$>>am_file "*<<)>>
534 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
535 ;;
536 esac
537 am_indx=`expr "<<$>>am_indx" + 1`
538 done<<>>dnl>>)
539 changequote([,]))])
540
541 # Add --enable-maintainer-mode option to configure.
542 # From Jim Meyering
543
544 # serial 1
545
546 AC_DEFUN(AM_MAINTAINER_MODE,
547 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
548 dnl maintainer-mode is disabled by default
549 AC_ARG_ENABLE(maintainer-mode,
550 [ --enable-maintainer-mode enable make rules and dependencies not useful
551 (and sometimes confusing) to the casual installer],
552 USE_MAINTAINER_MODE=$enableval,
553 USE_MAINTAINER_MODE=no)
554 AC_MSG_RESULT($USE_MAINTAINER_MODE)
555 AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
556 MAINT=$MAINTAINER_MODE_TRUE
557 AC_SUBST(MAINT)dnl
558 ]
559 )
560
561 # Define a conditional.
562
563 AC_DEFUN(AM_CONDITIONAL,
564 [AC_SUBST($1_TRUE)
565 AC_SUBST($1_FALSE)
566 if $2; then
567 $1_TRUE=
568 $1_FALSE='#'
569 else
570 $1_TRUE='#'
571 $1_FALSE=
572 fi])
573

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26