ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/configure
(Generate patch)

Comparing Convert-UUlib/uulib/configure (file contents):
Revision 1.2 by root, Mon Jun 11 20:42:36 2001 UTC vs.
Revision 1.3 by root, Tue Jun 12 03:20:44 2001 UTC

1351EOF 1351EOF
1352 1352
1353fi 1353fi
1354 1354
1355 1355
1356echo $ac_n "checking for chmod""... $ac_c" 1>&6
1357echo "configure:1358: checking for chmod" >&5
1358if eval "test \"`echo '$''{'ac_cv_func_chmod'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1360else
1361 cat > conftest.$ac_ext <<EOF
1362#line 1363 "configure"
1363#include "confdefs.h"
1364/* System header to define __stub macros and hopefully few prototypes,
1365 which can conflict with char chmod(); below. */
1366#include <assert.h>
1367/* Override any gcc2 internal prototype to avoid an error. */
1368/* We use char because int might match the return type of a gcc2
1369 builtin and then its argument prototype would still apply. */
1370char chmod();
1371
1372int main() {
1373
1374/* The GNU C library defines this for functions which it implements
1375 to always fail with ENOSYS. Some functions are actually named
1376 something starting with __ and the normal name is an alias. */
1377#if defined (__stub_chmod) || defined (__stub___chmod)
1378choke me
1379#else
1380chmod();
1381#endif
1382
1383; return 0; }
1384EOF
1385if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1386 rm -rf conftest*
1387 eval "ac_cv_func_chmod=yes"
1388else
1389 echo "configure: failed program was:" >&5
1390 cat conftest.$ac_ext >&5
1391 rm -rf conftest*
1392 eval "ac_cv_func_chmod=no"
1393fi
1394rm -f conftest*
1395fi
1396
1397if eval "test \"`echo '$ac_cv_func_'chmod`\" = yes"; then
1398 echo "$ac_t""yes" 1>&6
1399 cat >> confdefs.h <<\EOF
1400#define HAVE_CHMOD 1
1401EOF
1402
1403else
1404 echo "$ac_t""no" 1>&6
1405fi
1406
1407echo $ac_n "checking for umask""... $ac_c" 1>&6
1408echo "configure:1409: checking for umask" >&5
1409if eval "test \"`echo '$''{'ac_cv_func_umask'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1411else
1412 cat > conftest.$ac_ext <<EOF
1413#line 1414 "configure"
1414#include "confdefs.h"
1415/* System header to define __stub macros and hopefully few prototypes,
1416 which can conflict with char umask(); below. */
1417#include <assert.h>
1418/* Override any gcc2 internal prototype to avoid an error. */
1419/* We use char because int might match the return type of a gcc2
1420 builtin and then its argument prototype would still apply. */
1421char umask();
1422
1423int main() {
1424
1425/* The GNU C library defines this for functions which it implements
1426 to always fail with ENOSYS. Some functions are actually named
1427 something starting with __ and the normal name is an alias. */
1428#if defined (__stub_umask) || defined (__stub___umask)
1429choke me
1430#else
1431umask();
1432#endif
1433
1434; return 0; }
1435EOF
1436if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1437 rm -rf conftest*
1438 eval "ac_cv_func_umask=yes"
1439else
1440 echo "configure: failed program was:" >&5
1441 cat conftest.$ac_ext >&5
1442 rm -rf conftest*
1443 eval "ac_cv_func_umask=no"
1444fi
1445rm -f conftest*
1446fi
1447
1448if eval "test \"`echo '$ac_cv_func_'umask`\" = yes"; then
1449 echo "$ac_t""yes" 1>&6
1450 cat >> confdefs.h <<\EOF
1451#define HAVE_UMASK 1
1452EOF
1453
1454else
1455 echo "$ac_t""no" 1>&6
1456fi
1457
1458
1356# 1459#
1357# strerror might be internally defined. this would cause a 1460# strerror might be internally defined. this would cause a
1358# CHECK_FUNCS(strerror) to fail because it'd be called with 1461# CHECK_FUNCS(strerror) to fail because it'd be called with
1359# zero arguments. So use our own code. 1462# zero arguments. So use our own code.
1360# 1463#
1361echo $ac_n "checking for strerror""... $ac_c" 1>&6 1464echo $ac_n "checking for strerror""... $ac_c" 1>&6
1362echo "configure:1363: checking for strerror" >&5 1465echo "configure:1466: checking for strerror" >&5
1363cat > conftest.$ac_ext <<EOF 1466cat > conftest.$ac_ext <<EOF
1364#line 1365 "configure" 1467#line 1468 "configure"
1365#include "confdefs.h" 1468#include "confdefs.h"
1366 1469
1367char *blubb() { return (char *) strerror (42); } 1470char *blubb() { return (char *) strerror (42); }
1368 1471
1369int main() { 1472int main() {
1370 1473
1371(void) blubb(); 1474(void) blubb();
1372 1475
1373; return 0; } 1476; return 0; }
1374EOF 1477EOF
1375if { (eval echo configure:1376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1478if { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1376 rm -rf conftest* 1479 rm -rf conftest*
1377 have_strerror=yes 1480 have_strerror=yes
1378else 1481else
1379 echo "configure: failed program was:" >&5 1482 echo "configure: failed program was:" >&5
1380 cat conftest.$ac_ext >&5 1483 cat conftest.$ac_ext >&5
1387fi 1490fi
1388rm -f conftest* 1491rm -f conftest*
1389echo "$ac_t""$have_strerror" 1>&6 1492echo "$ac_t""$have_strerror" 1>&6
1390 1493
1391echo $ac_n "checking for stdin""... $ac_c" 1>&6 1494echo $ac_n "checking for stdin""... $ac_c" 1>&6
1392echo "configure:1393: checking for stdin" >&5 1495echo "configure:1496: checking for stdin" >&5
1393cat > conftest.$ac_ext <<EOF 1496cat > conftest.$ac_ext <<EOF
1394#line 1395 "configure" 1497#line 1498 "configure"
1395#include "confdefs.h" 1498#include "confdefs.h"
1396 1499
1397#include <stdio.h> 1500#include <stdio.h>
1398char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; } 1501char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; }
1399 1502
1401 1504
1402(void) blubb(); 1505(void) blubb();
1403 1506
1404; return 0; } 1507; return 0; }
1405EOF 1508EOF
1406if { (eval echo configure:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1509if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1407 rm -rf conftest* 1510 rm -rf conftest*
1408 have_stdio=yes 1511 have_stdio=yes
1409else 1512else
1410 echo "configure: failed program was:" >&5 1513 echo "configure: failed program was:" >&5
1411 cat conftest.$ac_ext >&5 1514 cat conftest.$ac_ext >&5
1422if test "$ac_cv_header_stdc" = "no" ; then 1525if test "$ac_cv_header_stdc" = "no" ; then
1423 for ac_hdr in stdarg.h varargs.h 1526 for ac_hdr in stdarg.h varargs.h
1424do 1527do
1425ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1528ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1426echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1529echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1427echo "configure:1428: checking for $ac_hdr" >&5 1530echo "configure:1531: checking for $ac_hdr" >&5
1428if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1531if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6 1532 echo $ac_n "(cached) $ac_c" 1>&6
1430else 1533else
1431 cat > conftest.$ac_ext <<EOF 1534 cat > conftest.$ac_ext <<EOF
1432#line 1433 "configure" 1535#line 1536 "configure"
1433#include "confdefs.h" 1536#include "confdefs.h"
1434#include <$ac_hdr> 1537#include <$ac_hdr>
1435EOF 1538EOF
1436ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1539ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1437{ (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1540{ (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1438ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1541ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1439if test -z "$ac_err"; then 1542if test -z "$ac_err"; then
1440 rm -rf conftest* 1543 rm -rf conftest*
1441 eval "ac_cv_header_$ac_safe=yes" 1544 eval "ac_cv_header_$ac_safe=yes"
1442else 1545else
1510 1613
1511# 1614#
1512# set version number 1615# set version number
1513# 1616#
1514echo $ac_n "checking version number""... $ac_c" 1>&6 1617echo $ac_n "checking version number""... $ac_c" 1>&6
1515echo "configure:1516: checking version number" >&5 1618echo "configure:1619: checking version number" >&5
1516version_number="$VERSION"pl"$PATCH" 1619version_number="$VERSION"pl"$PATCH"
1517echo "$ac_t""$version_number" 1>&6 1620echo "$ac_t""$version_number" 1>&6
1518 1621
1519 1622
1520 1623

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines