[mythtv] osx-packager.pl breaks after install of fink
Nigel Pearson
nigel at ind.tansu.com.au
Mon Jan 9 22:12:07 UTC 2006
> if test x`which pkg-config 2>/dev/null` != x"" ; then
> if `pkg-config --atleast-version 0.6.9 libexif` ; then
> echo "#define NEW_LIB_EXIF 1" >> \
> ./mythgallery/mythgallery/config.h
> fi
...
> Before I installed fink, I did not have pkg-config, so it would go to
> the else statement and and put the proper line in my config.h. If I
> now manually run the 'pkg-config --atleast-version 0.6.9 libexif, I
> get a 1 for the return code, so the NEW_LIB_EXIF doesn't get set.
Hmmm. So why is fink's pkg-config lying?
What does `pkg-config --modversion libexif` reveal?
...
> My question is, shouldn't the configure script be rewritten as:
>
> if test x"$newexif" = x"yes" ; then
> echo "#define NEW_LIB_EXIF 1" >> \
> ./mythgallery/mythgallery/config.h
> else
> if test x`which pkg-config 2>/dev/null` != x"" ; then
> if `pkg-config --atleast-version 0.6.9 libexif` ; then
Probably not, because:
1) the purpose of configure is to autodetect features, and
2) the default of newexif is yes
...
> This way, I can force the NEW_LIB_EXIF with the --enable-new-exif flag.
Would only be needed if we changed the default to no!
--
Nigel Pearson, nigel at ind.tansu.com.au|"Beware - I am a carrier
Telstra Dev. Lab, Sydney, Australia | of surrealism"
Office: 9814 4803 Fax: 9814 4897 | D A
Mobile: 0408 664435 Home: 9792 6998 | L I
More information about the mythtv-dev
mailing list