summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorMatt Messier <mmessier@grapetv.org>2007-05-12 16:16:14 -0400
committerMatt Messier <mmessier@grapetv.org>2007-05-12 16:16:14 -0400
commit75417b28a7b623141262a12e3a71c451d9b6c7cf (patch)
tree6db7648a3a5bfbef14d42e735be1da1cf8aff404 /m4
parentb6b1d1381f468c4f4d3d1db3f2071b073a049d37 (diff)
downloadxine-lib-75417b28a7b623141262a12e3a71c451d9b6c7cf.tar.gz
xine-lib-75417b28a7b623141262a12e3a71c451d9b6c7cf.tar.bz2
Minor fixes and cleanups
Diffstat (limited to 'm4')
-rw-r--r--m4/dvdnav.m419
1 files changed, 9 insertions, 10 deletions
diff --git a/m4/dvdnav.m4 b/m4/dvdnav.m4
index 72e1a577f..d944a581c 100644
--- a/m4/dvdnav.m4
+++ b/m4/dvdnav.m4
@@ -74,7 +74,7 @@ AC_DEFUN([AM_PATH_DVDNAV], [
ac_save_LIBS="$LIBS" LIBS="$DVDNAV_LIBS $LIBS"
# Now check if the installed DVDNAV is sufficiently new. (Also sanity
- # checks the results of dvdnav-config to some extent
+ # checks the results of dvdnav-config to some extent)
rm -f conf.dvdnavtest
AC_RUN_IFELSE([AC_LANG_SOURCE([[
@@ -98,8 +98,8 @@ int main(int argc, char *argv[])
}
/* HP/UX 9 (%@#!) writes to sscanf strings */
- tmp_version = (char *)strdup("$min_dvdnav_version");
- if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &sub) != 3) {
+ tmp_version = strdup("$min_dvdnav_version");
+ if (!tmp_version || sscanf(tmp_version, "%d.%d.%d", &major, &minor, &sub) != 3) {
printf("%s, bad version string\n", "$min_dvdnav_version");
exit(1);
}
@@ -130,10 +130,10 @@ int main(int argc, char *argv[])
return 1;
}
]])], [], [with_external_dvdnav=no], [with_external_dvdnav=cc])
- if test x"$no_dvdnav" = x"cc"; then
+ if test x"$with_external_dvdnav" = x"cc"; then
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <dvdnav.h>
#include <stdio.h>]], [[return 0]])],
- [], [with_external_dvdnav=no])
+ [with_external_dvdnav=yes], [with_external_dvdnav=no])
fi
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
@@ -155,9 +155,8 @@ int main(int argc, char *argv[])
if test ! -f conf.dvdnavtest ; then
echo "*** Could not run DVDNAV test program, checking why..."
CFLAGS="$CFLAGS $DVDNAV_CFLAGS"
- LIBS="$LIBS $DVDNAV_LIBS"
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <dvdnav.h>
- #include <stdio.h>]], [[return 0]])],
+ LIBS="$DVDNAV_LIBS $LIBS"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <dvdnav.h>]], [[return 0]])],
[echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding DVDNAV or finding the wrong"
echo "*** version of DVDNAV. If it is not finding DVDNAV, you'll need to set your"
@@ -172,8 +171,8 @@ int main(int argc, char *argv[])
echo "*** exact error that occured. This usually means DVDNAV was incorrectly installed"
echo "*** or that you have moved DVDNAV since it was installed. In the latter case, you"
echo "*** may want to edit the dvdnav-config script: $DVDNAV_CONFIG"])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
+ CFLAGS="$ac_save_CFLAGS"
+ LIBS="$ac_save_LIBS"
else
rm -f conf.dvdnavtest
fi