Cleanup configure checks for dup3 and fallocate

Submitted by Jan Kiszka on Nov. 3, 2009, 9:54 a.m.

Details

Message ID 4AEFFDE4.2090006@siemens.com
State New
Headers show

Commit Message

Jan Kiszka Nov. 3, 2009, 9:54 a.m.
We have a function for this which does not issue annoying warnings.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Riku Voipio Nov. 3, 2009, 1:10 p.m.
On Tue, Nov 03, 2009 at 10:54:44AM +0100, Jan Kiszka wrote:
> We have a function for this which does not issue annoying warnings.

Acked-by: Riku Voipio <riku.voipio@iki.fi>
 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> 
>  configure |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/configure b/configure
> index aa2cc43..b38353a 100755
> --- a/configure
> +++ b/configure
> @@ -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
>  
>

Patch hide | download patch | download mbox

diff --git a/configure b/configure
index aa2cc43..b38353a 100755
--- a/configure
+++ b/configure
@@ -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