changeset 20560:5b4b6088992b

Test proper linking for cdda/cdio
author reimar
date Wed, 01 Nov 2006 10:49:52 +0000
parents 82dc8f2fbd8b
children b7ed249cbc6e
files configure
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Oct 31 22:28:16 2006 +0000
+++ b/configure	Wed Nov 01 10:49:52 2006 +0000
@@ -5286,7 +5286,10 @@
 #include <cdda_interface.h>
 #include <cdda_paranoia.h>
 // This need a better test. How ?
-int main(void) { return 1; }
+int main(void) {
+    void *test = cdda_verbose_set;
+    return !test;
+}
 EOF
     _cdparanoia=no
     for _inc_tmp in "" "-I/usr/include/cdda" "-I/usr/local/include/cdda" ; do
@@ -5312,8 +5315,9 @@
 #include <cdio/paranoia.h>
 int main()
 {
+    void *test = cdda_verbose_set;
     printf("%s\n", CDIO_VERSION);
-    return 0;
+    return !test;
     
 }
 EOF