aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-03-30 22:23:52 +0000
committerDiego Biurrun <diego@biurrun.de>2008-03-30 22:23:52 +0000
commitc23a0ac8da665f943012cfd383d40b3dfc1c2aa8 (patch)
tree868c44425be002734d0b77fe4217691b34053a0a /configure
parentfbef871dad7bb16b29b44e9ff697995fcb567923 (diff)
downloadffmpeg-c23a0ac8da665f943012cfd383d40b3dfc1c2aa8.tar.gz
cosmetics: Write some trivial C test programs in a more compact form.
Originally committed as revision 12641 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 4 insertions, 12 deletions
diff --git a/configure b/configure
index 3f6afad348..0409a418b6 100755
--- a/configure
+++ b/configure
@@ -427,9 +427,7 @@ check_asm(){
asm="$2"
shift 2
check_cc "$@" <<EOF && enable $name || disable $name
-int foo(void){
- asm volatile($asm);
-}
+int foo(void){ asm volatile($asm); }
EOF
}
@@ -454,9 +452,7 @@ EOF
check_ldflags(){
log check_ldflags "$@"
check_ld "$@" <<EOF && add_ldflags "$@"
-int main(void){
- return 0;
-}
+int main(void){ return 0; }
EOF
}
@@ -479,9 +475,7 @@ check_func(){
disable $func
check_ld "$@" <<EOF && enable $func
extern int $func();
-int main(void){
- $func();
-}
+int main(void){ $func(); }
EOF
}
@@ -1464,9 +1458,7 @@ rm $TMPE
# compiler sanity check
check_exec <<EOF
-int main(void){
- return 0;
-}
+int main(void){ return 0; }
EOF
if test "$?" != 0; then
echo "$cc is unable to create an executable file."