[MPlayer-cvslog] r34135 - trunk/configure

diego subversion at mplayerhq.hu
Mon Sep 26 12:59:42 CEST 2011


Author: diego
Date: Mon Sep 26 12:59:42 2011
New Revision: 34135

Log:
configure: refactor PIC test using cpp_condition_check()

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Mon Sep 26 12:59:41 2011	(r34134)
+++ trunk/configure	Mon Sep 26 12:59:42 2011	(r34135)
@@ -2653,16 +2653,8 @@ fi #if x86_32
 echocheck "PIC"
 def_pic='#define CONFIG_PIC 0'
 pic=no
-cat > $TMPC << EOF
-int main(void) {
-#if !(defined(__PIC__) || defined(__pic__) || defined(PIC))
-#error PIC not enabled
-#endif
-    return 0;
-}
-EOF
-cc_check && pic=yes && extra_cflags="$extra_cflags -DPIC" &&
-  def_pic='#define CONFIG_PIC 1'
+cpp_condition_check 'defined(__PIC__) || defined(__pic__) || defined(PIC)' &&
+  pic=yes && extra_cflags="$extra_cflags -DPIC" && def_pic='#define CONFIG_PIC 1'
 echores $pic
 
 


More information about the MPlayer-cvslog mailing list