test not only if header frei0r.h exists, also use an item
authorblendamedt <blendamedt@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 28 Feb 2008 12:21:54 +0000 (12:21 +0000)
committerblendamedt <blendamedt@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 28 Feb 2008 12:21:54 +0000 (12:21 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1088 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/frei0r/configure

index 86be7b9..c1cac58 100755 (executable)
@@ -3,8 +3,8 @@
 if [ "$help" != "1" ]
 then
 
-       echo -e "#include <frei0r.h>\n void main(){}\n"| gcc - -E -o /dev/null  >/dev/null 2>&1
-       
+       echo -e "#include <frei0r.h>\n int main(){ f0r_plugin_info_t test; test.name;return 0;}\n"| gcc -c -o test1 -x c -  >/dev/null 2>&1
+
        if [ "$?" = "1" ]
        then
                touch ../disable-frei0r