changeset 19553:b3cc74e28541

Only add include flags if cc_check succeeded.
author diego
date Sun, 27 Aug 2006 21:05:42 +0000
parents b4e2c17c2bdf
children b947b5ccb96e
files configure
diffstat 1 files changed, 16 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Aug 27 20:17:19 2006 +0000
+++ b/configure	Sun Aug 27 21:05:42 2006 +0000
@@ -3667,11 +3667,11 @@
 #include <directfb.h>
 int main(void) { IDirectFB *foo; DirectFBInit(0,0); return 0; }
 EOF
-  for _inc_directfb in "" -I/usr/local/include/directfb \
+  for _inc_tmp in "" -I/usr/local/include/directfb \
       -I/usr/include/directfb -I/usr/local/include -I/usr/include; do
-    cc_check $_inc_directfb -ldirectfb && _directfb=yes && break
+    cc_check $_inc_tmp -ldirectfb && _directfb=yes && \
+      _inc_extra="$_inc_extra $_inc_tmp" && break
   done
-  _inc_extra="$_inc_extra $_inc_directfb"
   fi
 fi
 
@@ -4206,10 +4206,10 @@
 #include <ost/audio.h>
 int main(void) {return 0;}
 EOF
-  for _inc_dvb in "" "-I/usr/src/DVB/ost/include" ; do
-    cc_check $_inc_dvb && _dvb=yes && break
+  for _inc_tmp in "" "-I/usr/src/DVB/ost/include" ; do
+    cc_check $_inc_tmp && _dvb=yes && \
+     _inc_extra="$_inc_extra $_inc_tmp" && break
   done
-  _inc_extra="$_inc_extra $_inc_dvb"
 fi
 echores "$_dvb"
 if test "$_dvb" = yes ; then
@@ -4236,10 +4236,10 @@
 #include <linux/dvb/audio.h>
 int main(void) {return 0;}
 EOF
-  for _inc_dvb in "" "-I/usr/src/DVB/include" ; do
-    cc_check $_inc_dvb && _dvbhead=yes && break
+  for _inc_tmp in "" "-I/usr/src/DVB/include" ; do
+    cc_check $_inc_tmp && _dvbhead=yes && \
+      _inc_extra="$_inc_extra $_inc_tmp" && break
   done
-  _inc_extra="$_inc_extra $_inc_dvb"
 fi
 echores "$_dvbhead"
 if test "$_dvbhead" = yes ; then
@@ -4597,10 +4597,10 @@
 #include <dxr2ioctl.h>
 int main(void) { return 0; }
 EOF
-  for _inc_dxr2 in "" -I/usr/local/include/dxr2 -I/usr/include/dxr2; do
-    cc_check $_inc_dxr2 && _dxr2=yes && break
+  for _inc_tmp in "" -I/usr/local/include/dxr2 -I/usr/include/dxr2; do
+    cc_check $_inc_tmp && _dxr2=yes && \
+     _inc_extra="$_inc_extra $_inc_tmp" && break
   done
-  _inc_extra="$_inc_extra $_inc_dxr2"
 fi
 if test "$_dxr2" = yes; then
   _def_dxr2='#define HAVE_DXR2 1'
@@ -5185,10 +5185,10 @@
 int main(void) { return 1; }
 EOF
     _cdparanoia=no
-    for _inc_cdparanoia in "" "-I/usr/include/cdda" "-I/usr/local/include/cdda" ; do
-       cc_check $_inc_cdparanoia $_ld_cdparanoia -lcdda_interface -lcdda_paranoia $_ld_lm && _cdparanoia=yes && break
+    for _inc_tmp in "" "-I/usr/include/cdda" "-I/usr/local/include/cdda" ; do
+      cc_check $_inc_tmp $_ld_cdparanoia -lcdda_interface -lcdda_paranoia $_ld_lm && \
+        _cdparanoia=yes && _inc_extra="$_inc_extra $_inc_tmp" && break
     done
-    _inc_extra="$_inc_extra $_inc_cdparanoia"
 fi
 if test "$_cdparanoia" = yes ; then
     _cdda='yes'
@@ -5221,9 +5221,8 @@
         _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 && break
+          && tmp_run && _libcdio=yes && _inc_extra="$_inc_extra $_inc_tmp" && break
     done
-    _inc_extra="$_inc_extra $_inc_tmp"
     else
         _libcdio=no
     fi