Skip to contentSkip to conversation

Cleanup configure checks for dup3 and fallocate

PATCH In review Jan Kiszka 2 participants 2 messages Nov 3, 2009

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 Cleanup configure checks for dup3 and fallocate

We have a function for this which does not issue annoying warnings.

---

 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
configure +2 -2
index aa2cc43..b38353a 100755
@@ -1580,7 +1580,7 @@ int main(void)
     return 0;
 }
 EOF
-if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
+if compile_prog "" "" ; then
   fallocate=yes
 fi
 
@@ -1595,7 +1595,7 @@ int main(void)
     return 0;
 }
 EOF
-if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
+if compile_prog "" "" ; then
   dup3=yes
 fi
 
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Jan Kiszka

We have a function for this which does not issue annoying warnings.

Quoted 29 lines

---

 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
configure +2 -2
index aa2cc43..b38353a 100755
@@ -1580,7 +1580,7 @@ int main(void)
     return 0;
 }
 EOF
-if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
+if compile_prog "" "" ; then
   fallocate=yes
 fi
 
@@ -1595,7 +1595,7 @@ int main(void)
     return 0;
 }
 EOF
-if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
+if compile_prog "" "" ; then
   dup3=yes
 fi