Mercurial > audlegacy-plugins
annotate m4/libmad.m4 @ 2838:22a2ffe86750
added passkey agent and basic pairing functionality
author | Paula Stanciu <paula.stanciu@gmail.com> |
---|---|
date | Wed, 16 Jul 2008 20:48:09 +0300 |
parents | 0dea41453224 |
children |
rev | line source |
---|---|
2125
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
1 dnl Configure paths for libmad |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
2 dnl derived from libFLAC.m4 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
3 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
4 dnl AM_PATH_LIBMAD([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
5 dnl Test for libmad, and define MAD_CFLAGS and MAD_LIBS |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
6 dnl |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
7 AC_DEFUN([AM_PATH_LIBMAD], |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
8 [dnl |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
9 dnl Get the cflags and libraries |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
10 dnl |
2715
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
11 AC_ARG_WITH([libmad], |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
12 [AS_HELP_STRING([--with-libmad=PFX], [Prefix where libmad is installed])], |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
13 [libmad_prefix="$withval"], [libmad_prefix=""]) |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
14 |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
15 AC_ARG_WITH([libmad-libraries], |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
16 [AS_HELP_STRING([--with-libmad-libraries=DIR], [Directory where libmad library is installed])], |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
17 [libmad_libraries="$withval"], [libmad_libraries=""]) |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
18 |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
19 AC_ARG_WITH([libmad-includes], |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
20 [AS_HELP_STRING([--with-libmad-includes=DIR], [Directory where libmad header files are installed])], |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
21 [libmad_includes="$withval"], [libmad_includes=""]) |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
22 |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
23 AC_ARG_ENABLE([libmadtest], |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
24 [AS_HELP_STRING([--disable-libmadtest], [Do not try to compile and run a test libmad program])],, |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
25 [enable_libmadtest="yes"]) |
2125
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
26 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
27 if test "x$libmad_libraries" != "x" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
28 MAD_LIBS="-L$libmad_libraries" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
29 elif test "x$libmad_prefix" != "x" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
30 MAD_LIBS="-L$libmad_prefix/lib" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
31 elif test "x$prefix" != "xNONE" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
32 MAD_LIBS="-L$libdir" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
33 fi |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
34 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
35 MAD_LIBS="$MAD_LIBS -lmad -lm" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
36 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
37 if test "x$libmad_includes" != "x" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
38 MAD_CFLAGS="-I$libmad_includes" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
39 elif test "x$libmad_prefix" != "x" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
40 MAD_CFLAGS="-I$libmad_prefix/include" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
41 elif test "x$prefix" != "xNONE"; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
42 MAD_CFLAGS="-I$prefix/include" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
43 fi |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
44 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
45 no_libmad="" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
46 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
47 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
48 if test "x$enable_libmadtest" = "xyes" ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
49 ac_save_CFLAGS="$CFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
50 ac_save_CXXFLAGS="$CXXFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
51 ac_save_LIBS="$LIBS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
52 CFLAGS="$CFLAGS $MAD_CFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
53 CXXFLAGS="$CXXFLAGS $MAD_CFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
54 LIBS="$LIBS $MAD_LIBS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
55 dnl |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
56 dnl Now check if the installed libmad is sufficiently new. |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
57 dnl |
2715
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
58 AC_MSG_CHECKING([for libmad]) |
2125
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
59 rm -f conf.libmadtest |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
60 AC_TRY_RUN([ |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
61 #include <stdio.h> |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
62 #include <stdlib.h> |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
63 #include <string.h> |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
64 #include <mad.h> |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
65 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
66 int main () |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
67 { |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
68 mad_timer_t t; |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
69 mad_timer_add(&t, t); |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
70 system("touch conf.libmadtest"); |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
71 return 0; |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
72 } |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
73 |
2715
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
74 ],, [no_libmad="yes"],[echo $ac_n "cross compiling; assumed OK... $ac_c"]) |
2125
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
75 CFLAGS="$ac_save_CFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
76 LIBS="$ac_save_LIBS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
77 fi |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
78 |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
79 if test "x$no_libmad" = "x" ; then |
2715
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
80 AC_MSG_RESULT([yes]) |
2125
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
81 ifelse([$1], , :, [$1]) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
82 else |
2715
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
83 AC_MSG_RESULT([no]) |
2125
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
84 if test -f conf.libmadtest ; then |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
85 : |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
86 else |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
87 echo "*** Could not run libmad test program, checking why..." |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
88 CFLAGS="$CFLAGS $MAD_CFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
89 LIBS="$LIBS $MAD_LIBS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
90 AC_TRY_LINK([ |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
91 #include <stdio.h> |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
92 ], [ return 0; ], |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
93 [ echo "*** The test program compiled, but did not run. This usually means" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
94 echo "*** that the run-time linker is not finding libmad or finding the wrong" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
95 echo "*** version of libmad. If it is not finding libmad, you'll need to set your" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
96 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
97 echo "*** to the installed location Also, make sure you have run ldconfig if that" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
98 echo "*** is required on your system" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
99 echo "***" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
100 echo "*** If you have an old version installed, it is best to remove it, although" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
101 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
102 [ echo "*** The test program failed to compile or link. See the file config.log for the" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
103 echo "*** exact error that occured. This usually means libmad was incorrectly installed" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
104 echo "*** or that you have moved libmad since it was installed. In the latter case, you" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
105 echo "*** may want to edit the libmad-config script: $LIBMAD_CONFIG" ]) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
106 CFLAGS="$ac_save_CFLAGS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
107 LIBS="$ac_save_LIBS" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
108 fi |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
109 MAD_CFLAGS="" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
110 MAD_LIBS="" |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
111 ifelse([$2], , :, [$2]) |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
112 fi |
2715
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
113 AC_SUBST([MAD_CFLAGS]) |
0dea41453224
Clean up libmad.m4 macros.
Matti Hamalainen <ccr@tnsp.org>
parents:
2359
diff
changeset
|
114 AC_SUBST([MAD_LIBS]) |
2125
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
115 rm -f conf.libmadtest |
5c33e8e1a479
- add a m4 macro file to setup MAD_CFLAGS and MAD_LIBS.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff
changeset
|
116 ]) |