Fix [perl #114812] Configure not finding isblank().
authorAndy Dougherty <doughera@lafayette.edu>
Mon, 10 Sep 2012 12:35:16 +0000 (08:35 -0400)
committerAndy Dougherty <doughera@lafayette.edu>
Mon, 10 Sep 2012 12:35:16 +0000 (08:35 -0400)
Configure would not find isblank() when run with g++ because
the probe used exit() without including <stdlib.h>.  The simplest fix
is to have the probe use return instead.

Configure

index 7fa1804..a1bc835 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -15068,9 +15068,9 @@ $cat >isblank.c <<'EOCP'
 int main() {
        int c = ' ';
        if (isblank(c))
-               exit(0);
+               return 0 ;
        else
-               exit(1);
+               return 1 ;
 }
 EOCP
 if $cc $ccflags $ldflags -o isblank isblank.c $libs >/dev/null 2>&1 ; then