diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-01 18:15:06 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-01 18:15:06 +0000 |
commit | cda906290ebc46f43bbb04bb008b336f8f8b67f5 (patch) | |
tree | 02a84d13e9bc90ce0850f0099262689bdc3129b3 /configure | |
parent | 78e193e19d6e2251d8960147c05756ba71ca7252 (diff) |
Proper libcdio detection also without pkg-config
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20589 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -5307,7 +5307,6 @@ echores "$_cdparanoia" echocheck "libcdio" if test "$_libcdio" = auto && test "$_cdparanoia" = no ; then - if $_pkg_config --exists libcdio ; then cat > $TMPC << EOF #include <stdio.h> #include <cdio/version.h> @@ -5322,20 +5321,21 @@ int main() } EOF _libcdio=no - for _inc_tmp in "" "-I/usr/include/cdio" "-I/usr/local/include/cdio" ; do - cc_check `$_pkg_config --cflags --libs libcdio_paranoia` $_inc_tmp $_ld_lm \ - && tmp_run && _libcdio=yes && _inc_extra="$_inc_extra $_inc_tmp" && break + for _ld_tmp in "-lcdio_cdda -lcdio" "-lcdio_cdda -lcdio -lwinmm" ; do + cc_check $_inc_tmp $_ld_tmp $_ld_lm \ + && _libcdio=yes && _ld_libcdio="$_ld_tmp" && break done - else - _libcdio=no + if test "$_libcdio" = no && $_pkg_config --exists libcdio ; then + _inc_tmp=`$_pkg_config --cflags libcdio_paranoia`; + _ld_tmp=`$_pkg_config --libs libcdio_paranoia`; + cc_check $_inc_tmp $_ld_tmp $_ld_lm && _libcdio=yes \ + && _ld_libcdio="$_ld_tmp" && _inc_extra="$_inc_extra $_inc_tmp" && break fi fi if test "$_libcdio" = yes && test "$_cdparanoia" = no ; then _cdda='yes' _def_libcdio='#define HAVE_LIBCDIO' _def_havelibcdio='yes' - _inc_extra="$_inc_extra `$_pkg_config --cflags libcdio`" - _ld_libcdio=`$_pkg_config --libs libcdio_paranoia` else if test "$_cdparanoia" = yes ; then _res_comment="using cdparanoia" |