You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated ogg.m4 using autoupdate to avoid warnings from autoconf.
This got rid of these messages from autoconf when using XIPH_PATH_OGG
from ogg.m4:
configure.ac:5: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:5: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
../../ogg.m4:8: XIPH_PATH_OGG is expanded from...
configure.ac:5: the top level
configure.ac:5: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:5: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
../../ogg.m4:8: XIPH_PATH_OGG is expanded from...
configure.ac:5: the top level
configure.ac:5: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:5: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
../../ogg.m4:8: XIPH_PATH_OGG is expanded from...
configure.ac:5: the top level
Copy file name to clipboardExpand all lines: ogg.m4
+10-12Lines changed: 10 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,10 @@ AC_DEFUN([XIPH_PATH_OGG],
9
9
[dnl
10
10
dnl Get the cflags and libraries
11
11
dnl
12
-
AC_ARG_WITH(ogg,AC_HELP_STRING([--with-ogg=PFX],[Prefix where libogg is installed (optional)]), ogg_prefix="$withval", ogg_prefix="")
13
-
AC_ARG_WITH(ogg-libraries,AC_HELP_STRING([--with-ogg-libraries=DIR],[Directory where libogg library is installed (optional)]), ogg_libraries="$withval", ogg_libraries="")
14
-
AC_ARG_WITH(ogg-includes,AC_HELP_STRING([--with-ogg-includes=DIR],[Directory where libogg header files are installed (optional)]), ogg_includes="$withval", ogg_includes="")
15
-
AC_ARG_ENABLE(oggtest,AC_HELP_STRING([--disable-oggtest],[Do not try to compile and run a test Ogg program]),, enable_oggtest=yes)
12
+
AC_ARG_WITH(ogg,AS_HELP_STRING([--with-ogg=PFX],[Prefix where libogg is installed (optional)]), ogg_prefix="$withval", ogg_prefix="")
13
+
AC_ARG_WITH(ogg-libraries,AS_HELP_STRING([--with-ogg-libraries=DIR],[Directory where libogg library is installed (optional)]), ogg_libraries="$withval", ogg_libraries="")
14
+
AC_ARG_WITH(ogg-includes,AS_HELP_STRING([--with-ogg-includes=DIR],[Directory where libogg header files are installed (optional)]), ogg_includes="$withval", ogg_includes="")
15
+
AC_ARG_ENABLE(oggtest,AS_HELP_STRING([--disable-oggtest],[Do not try to compile and run a test Ogg program]),, enable_oggtest=yes)
16
16
17
17
if test "x$ogg_libraries" != "x" ; then
18
18
OGG_LIBS="-L$ogg_libraries"
@@ -56,7 +56,7 @@ dnl
56
56
dnl Now check if the installed Ogg is sufficiently new.
echo "*** Could not run Ogg test program, checking why..."
88
88
CFLAGS="$CFLAGS $OGG_CFLAGS"
89
89
LIBS="$LIBS $OGG_LIBS"
90
-
AC_TRY_LINK([
90
+
AC_LINK_IFELSE([AC_LANG_PROGRAM([
91
91
#include <stdio.h>
92
92
#include <ogg/ogg.h>
93
-
], [ return 0; ],
94
-
[ echo "*** The test program compiled, but did not run. This usually means"
93
+
], [ return 0; ])],[echo "*** The test program compiled, but did not run. This usually means"
95
94
echo "*** that the run-time linker is not finding Ogg or finding the wrong"
96
95
echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
97
96
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
98
97
echo "*** to the installed location Also, make sure you have run ldconfig if that"
99
98
echo "*** is required on your system"
100
99
echo "***"
101
100
echo "*** If you have an old version installed, it is best to remove it, although"
102
-
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
103
-
[ echo "*** The test program failed to compile or link. See the file config.log for the"
101
+
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],[echo "*** The test program failed to compile or link. See the file config.log for the"
104
102
echo "*** exact error that occurred. This usually means Ogg was incorrectly installed"
105
-
echo "*** or that you have moved Ogg since it was installed."])
103
+
echo "*** or that you have moved Ogg since it was installed."])
0 commit comments