Changeset 333

Show
Ignore:
Timestamp:
11/29/99 07:26:04 (14 years ago)
Author:
bfenner
Message:

Spell "inttypes.h" correctly.
Use "unsigned short" for uint16_t and "unsigned int" for uint32_t

instead of "unsigned char" for all.

Location:
common/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • common/trunk/configure

    r328 r333  
    589589 
    590590case "$host_os" in 
    591  
    592 linux*) 
    593         cat >> confdefs.h <<\EOF 
    594 #define Linux 1 
    595 EOF 
    596  
    597         ;; 
    598  
    599591sunos*) 
    600592        cat >> confdefs.h <<\EOF 
     
    603595 
    604596        ;; 
    605  
    606597solaris*) 
    607598        cat >> confdefs.h <<\EOF 
     
    610601 
    611602        ;; 
    612  
    613 hpux*) 
    614         cat >> confdefs.h <<\EOF 
    615 #define HPUX 1 
    616 EOF 
    617  
    618         ;; 
    619603esac 
    620604 
     
    622606set dummy gcc; ac_word=$2 
    623607echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    624 echo "configure:625: checking for $ac_word" >&5 
     608echo "configure:609: checking for $ac_word" >&5 
    625609if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    626610  echo $ac_n "(cached) $ac_c" 1>&6 
     
    652636set dummy cc; ac_word=$2 
    653637echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    654 echo "configure:655: checking for $ac_word" >&5 
     638echo "configure:639: checking for $ac_word" >&5 
    655639if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    656640  echo $ac_n "(cached) $ac_c" 1>&6 
     
    703687set dummy cl; ac_word=$2 
    704688echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    705 echo "configure:706: checking for $ac_word" >&5 
     689echo "configure:690: checking for $ac_word" >&5 
    706690if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    707691  echo $ac_n "(cached) $ac_c" 1>&6 
     
    735719 
    736720echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 
    737 echo "configure:738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 
     721echo "configure:722: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 
    738722 
    739723ac_ext=c 
     
    746730cat > conftest.$ac_ext << EOF 
    747731 
    748 #line 749 "configure" 
     732#line 733 "configure" 
    749733#include "confdefs.h" 
    750734 
    751735main(){return(0);} 
    752736EOF 
    753 if { (eval echo configure:754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     737if { (eval echo configure:738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    754738  ac_cv_prog_cc_works=yes 
    755739  # If we can't run a trivial program, we are probably using a cross compiler. 
     
    777761fi 
    778762echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 
    779 echo "configure:780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 
     763echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 
    780764echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 
    781765cross_compiling=$ac_cv_prog_cc_cross 
    782766 
    783767echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 
    784 echo "configure:785: checking whether we are using GNU C" >&5 
     768echo "configure:769: checking whether we are using GNU C" >&5 
    785769if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 
    786770  echo $ac_n "(cached) $ac_c" 1>&6 
     
    791775#endif 
    792776EOF 
    793 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 
     777if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 
    794778  ac_cv_prog_gcc=yes 
    795779else 
     
    810794CFLAGS= 
    811795echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 
    812 echo "configure:813: checking whether ${CC-cc} accepts -g" >&5 
     796echo "configure:797: checking whether ${CC-cc} accepts -g" >&5 
    813797if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 
    814798  echo $ac_n "(cached) $ac_c" 1>&6 
     
    842826 
    843827echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 
    844 echo "configure:845: checking how to run the C preprocessor" >&5 
     828echo "configure:829: checking how to run the C preprocessor" >&5 
    845829# On Suns, sometimes $CPP names a directory. 
    846830if test -n "$CPP" && test -d "$CPP"; then 
     
    857841  # not just through cpp. 
    858842  cat > conftest.$ac_ext <<EOF 
    859 #line 860 "configure" 
     843#line 844 "configure" 
    860844#include "confdefs.h" 
    861845#include <assert.h> 
     
    863847EOF 
    864848ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    865 { (eval echo configure:866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     849{ (eval echo configure:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    866850ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    867851if test -z "$ac_err"; then 
     
    874858  CPP="${CC-cc} -E -traditional-cpp" 
    875859  cat > conftest.$ac_ext <<EOF 
    876 #line 877 "configure" 
     860#line 861 "configure" 
    877861#include "confdefs.h" 
    878862#include <assert.h> 
     
    880864EOF 
    881865ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    882 { (eval echo configure:883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     866{ (eval echo configure:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    883867ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    884868if test -z "$ac_err"; then 
     
    891875  CPP="${CC-cc} -nologo -E" 
    892876  cat > conftest.$ac_ext <<EOF 
    893 #line 894 "configure" 
     877#line 878 "configure" 
    894878#include "confdefs.h" 
    895879#include <assert.h> 
     
    897881EOF 
    898882ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    899 { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     883{ (eval echo configure:884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    900884ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    901885if test -z "$ac_err"; then 
     
    924908set dummy ranlib; ac_word=$2 
    925909echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    926 echo "configure:927: checking for $ac_word" >&5 
     910echo "configure:911: checking for $ac_word" >&5 
    927911if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 
    928912  echo $ac_n "(cached) $ac_c" 1>&6 
     
    953937 
    954938echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 
    955 echo "configure:956: checking for ANSI C header files" >&5 
     939echo "configure:940: checking for ANSI C header files" >&5 
    956940if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 
    957941  echo $ac_n "(cached) $ac_c" 1>&6 
    958942else 
    959943  cat > conftest.$ac_ext <<EOF 
    960 #line 961 "configure" 
     944#line 945 "configure" 
    961945#include "confdefs.h" 
    962946#include <stdlib.h> 
     
    966950EOF 
    967951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    968 { (eval echo configure:969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     952{ (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    969953ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    970954if test -z "$ac_err"; then 
     
    983967  # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 
    984968cat > conftest.$ac_ext <<EOF 
    985 #line 986 "configure" 
     969#line 970 "configure" 
    986970#include "confdefs.h" 
    987971#include <string.h> 
     
    1001985  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 
    1002986cat > conftest.$ac_ext <<EOF 
    1003 #line 1004 "configure" 
     987#line 988 "configure" 
    1004988#include "confdefs.h" 
    1005989#include <stdlib.h> 
     
    10221006else 
    10231007  cat > conftest.$ac_ext <<EOF 
    1024 #line 1025 "configure" 
     1008#line 1009 "configure" 
    10251009#include "confdefs.h" 
    10261010#include <ctype.h> 
     
    10331017 
    10341018EOF 
    1035 if { (eval echo configure:1036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
     1019if { (eval echo configure:1020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
    10361020then 
    10371021  : 
     
    10571041 
    10581042echo $ac_n "checking for working const""... $ac_c" 1>&6 
    1059 echo "configure:1060: checking for working const" >&5 
     1043echo "configure:1044: checking for working const" >&5 
    10601044if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 
    10611045  echo $ac_n "(cached) $ac_c" 1>&6 
    10621046else 
    10631047  cat > conftest.$ac_ext <<EOF 
    1064 #line 1065 "configure" 
     1048#line 1049 "configure" 
    10651049#include "confdefs.h" 
    10661050 
     
    11111095; return 0; } 
    11121096EOF 
    1113 if { (eval echo configure:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
     1097if { (eval echo configure:1098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    11141098  rm -rf conftest* 
    11151099  ac_cv_c_const=yes 
     
    11321116 
    11331117echo $ac_n "checking for size_t""... $ac_c" 1>&6 
    1134 echo "configure:1135: checking for size_t" >&5 
     1118echo "configure:1119: checking for size_t" >&5 
    11351119if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 
    11361120  echo $ac_n "(cached) $ac_c" 1>&6 
    11371121else 
    11381122  cat > conftest.$ac_ext <<EOF 
    1139 #line 1140 "configure" 
     1123#line 1124 "configure" 
    11401124#include "confdefs.h" 
    11411125#include <sys/types.h> 
     
    11691153ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    11701154echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    1171 echo "configure:1172: checking for $ac_hdr" >&5 
     1155echo "configure:1156: checking for $ac_hdr" >&5 
    11721156if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    11731157  echo $ac_n "(cached) $ac_c" 1>&6 
    11741158else 
    11751159  cat > conftest.$ac_ext <<EOF 
    1176 #line 1177 "configure" 
     1160#line 1161 "configure" 
    11771161#include "confdefs.h" 
    11781162#include <$ac_hdr> 
    11791163EOF 
    11801164ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1181 { (eval echo configure:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     1165{ (eval echo configure:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    11821166ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    11831167if test -z "$ac_err"; then 
     
    12051189done 
    12061190 
    1207 for ac_hdr in stdint.h unttypes.h 
     1191for ac_hdr in stdint.h inttypes.h 
    12081192do 
    12091193ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    12101194echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    1211 echo "configure:1212: checking for $ac_hdr" >&5 
     1195echo "configure:1196: checking for $ac_hdr" >&5 
    12121196if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    12131197  echo $ac_n "(cached) $ac_c" 1>&6 
    12141198else 
    12151199  cat > conftest.$ac_ext <<EOF 
    1216 #line 1217 "configure" 
     1200#line 1201 "configure" 
    12171201#include "confdefs.h" 
    12181202#include <$ac_hdr> 
    12191203EOF 
    12201204ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1221 { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     1205{ (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    12221206ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    12231207if test -z "$ac_err"; then 
     
    12491233# systems so we hope that <inttypes.h> exists when they're wrong. 
    12501234echo $ac_n "checking for int8_t""... $ac_c" 1>&6 
    1251 echo "configure:1252: checking for int8_t" >&5 
     1235echo "configure:1236: checking for int8_t" >&5 
    12521236if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then 
    12531237  echo $ac_n "(cached) $ac_c" 1>&6 
    12541238else 
    12551239  cat > conftest.$ac_ext <<EOF 
    1256 #line 1257 "configure" 
     1240#line 1241 "configure" 
    12571241#include "confdefs.h" 
    12581242#include <sys/types.h> 
     
    12821266 
    12831267echo $ac_n "checking for int16_t""... $ac_c" 1>&6 
    1284 echo "configure:1285: checking for int16_t" >&5 
     1268echo "configure:1269: checking for int16_t" >&5 
    12851269if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then 
    12861270  echo $ac_n "(cached) $ac_c" 1>&6 
    12871271else 
    12881272  cat > conftest.$ac_ext <<EOF 
    1289 #line 1290 "configure" 
     1273#line 1274 "configure" 
    12901274#include "confdefs.h" 
    12911275#include <sys/types.h> 
     
    13151299 
    13161300echo $ac_n "checking for int32_t""... $ac_c" 1>&6 
    1317 echo "configure:1318: checking for int32_t" >&5 
     1301echo "configure:1302: checking for int32_t" >&5 
    13181302if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then 
    13191303  echo $ac_n "(cached) $ac_c" 1>&6 
    13201304else 
    13211305  cat > conftest.$ac_ext <<EOF 
    1322 #line 1323 "configure" 
     1306#line 1307 "configure" 
    13231307#include "confdefs.h" 
    13241308#include <sys/types.h> 
     
    13481332 
    13491333echo $ac_n "checking for int64_t""... $ac_c" 1>&6 
    1350 echo "configure:1351: checking for int64_t" >&5 
     1334echo "configure:1335: checking for int64_t" >&5 
    13511335if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then 
    13521336  echo $ac_n "(cached) $ac_c" 1>&6 
    13531337else 
    13541338  cat > conftest.$ac_ext <<EOF 
    1355 #line 1356 "configure" 
     1339#line 1340 "configure" 
    13561340#include "confdefs.h" 
    13571341#include <sys/types.h> 
     
    13831367# Some systems have these in <stdint.h>, just to be difficult... 
    13841368echo $ac_n "checking for uint8_t in <stdint.h>""... $ac_c" 1>&6 
    1385 echo "configure:1386: checking for uint8_t in <stdint.h>" >&5 
     1369echo "configure:1370: checking for uint8_t in <stdint.h>" >&5 
    13861370cat > conftest.$ac_ext <<EOF 
    1387 #line 1388 "configure" 
     1371#line 1372 "configure" 
    13881372#include "confdefs.h" 
    13891373#include <stdint.h> 
     
    13971381  echo "$ac_t""no" 1>&6  
    13981382                 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6 
    1399 echo "configure:1400: checking for uint8_t" >&5 
     1383echo "configure:1384: checking for uint8_t" >&5 
    14001384if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then 
    14011385  echo $ac_n "(cached) $ac_c" 1>&6 
    14021386else 
    14031387  cat > conftest.$ac_ext <<EOF 
    1404 #line 1405 "configure" 
     1388#line 1389 "configure" 
    14051389#include "confdefs.h" 
    14061390#include <sys/types.h> 
     
    14341418 
    14351419echo $ac_n "checking for uint16_t in <stdint.h>""... $ac_c" 1>&6 
    1436 echo "configure:1437: checking for uint16_t in <stdint.h>" >&5 
     1420echo "configure:1421: checking for uint16_t in <stdint.h>" >&5 
    14371421cat > conftest.$ac_ext <<EOF 
    1438 #line 1439 "configure" 
     1422#line 1423 "configure" 
    14391423#include "confdefs.h" 
    14401424#include <stdint.h> 
     
    14481432  echo "$ac_t""no" 1>&6  
    14491433                 echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 
    1450 echo "configure:1451: checking for uint16_t" >&5 
     1434echo "configure:1435: checking for uint16_t" >&5 
    14511435if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then 
    14521436  echo $ac_n "(cached) $ac_c" 1>&6 
    14531437else 
    14541438  cat > conftest.$ac_ext <<EOF 
    1455 #line 1456 "configure" 
     1439#line 1440 "configure" 
    14561440#include "confdefs.h" 
    14571441#include <sys/types.h> 
     
    14751459if test $ac_cv_type_uint16_t = no; then 
    14761460  cat >> confdefs.h <<\EOF 
    1477 #define uint16_t unsigned char 
     1461#define uint16_t unsigned short 
    14781462EOF 
    14791463 
     
    14851469 
    14861470echo $ac_n "checking for uint32_t in <stdint.h>""... $ac_c" 1>&6 
    1487 echo "configure:1488: checking for uint32_t in <stdint.h>" >&5 
     1471echo "configure:1472: checking for uint32_t in <stdint.h>" >&5 
    14881472cat > conftest.$ac_ext <<EOF 
    1489 #line 1490 "configure" 
     1473#line 1474 "configure" 
    14901474#include "confdefs.h" 
    14911475#include <stdint.h> 
     
    14991483  echo "$ac_t""no" 1>&6  
    15001484                 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 
    1501 echo "configure:1502: checking for uint32_t" >&5 
     1485echo "configure:1486: checking for uint32_t" >&5 
    15021486if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then 
    15031487  echo $ac_n "(cached) $ac_c" 1>&6 
    15041488else 
    15051489  cat > conftest.$ac_ext <<EOF 
    1506 #line 1507 "configure" 
     1490#line 1491 "configure" 
    15071491#include "confdefs.h" 
    15081492#include <sys/types.h> 
     
    15261510if test $ac_cv_type_uint32_t = no; then 
    15271511  cat >> confdefs.h <<\EOF 
    1528 #define uint32_t unsigned char 
     1512#define uint32_t unsigned int 
    15291513EOF 
    15301514 
     
    15371521# The following two macros cause autoconf to complain. 
    15381522echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 
    1539 echo "configure:1540: checking whether byte ordering is bigendian" >&5 
     1523echo "configure:1524: checking whether byte ordering is bigendian" >&5 
    15401524if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 
    15411525  echo $ac_n "(cached) $ac_c" 1>&6 
     
    15441528# See if sys/param.h defines the BYTE_ORDER macro. 
    15451529cat > conftest.$ac_ext <<EOF 
    1546 #line 1547 "configure" 
     1530#line 1531 "configure" 
    15471531#include "confdefs.h" 
    15481532#include <sys/types.h> 
     
    15551539; return 0; } 
    15561540EOF 
    1557 if { (eval echo configure:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
     1541if { (eval echo configure:1542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    15581542  rm -rf conftest* 
    15591543  # It does; now see whether it defined to BIG_ENDIAN or not. 
    15601544cat > conftest.$ac_ext <<EOF 
    1561 #line 1562 "configure" 
     1545#line 1546 "configure" 
    15621546#include "confdefs.h" 
    15631547#include <sys/types.h> 
     
    15701554; return 0; } 
    15711555EOF 
    1572 if { (eval echo configure:1573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
     1556if { (eval echo configure:1557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    15731557  rm -rf conftest* 
    15741558  ac_cv_c_bigendian=yes 
     
    15901574else 
    15911575  cat > conftest.$ac_ext <<EOF 
    1592 #line 1593 "configure" 
     1576#line 1577 "configure" 
    15931577#include "confdefs.h" 
    15941578main () { 
     
    16031587} 
    16041588EOF 
    1605 if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
     1589if { (eval echo configure:1590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
    16061590then 
    16071591  ac_cv_c_bigendian=no 
     
    16271611 
    16281612echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 
    1629 echo "configure:1630: checking whether char is unsigned" >&5 
     1613echo "configure:1614: checking whether char is unsigned" >&5 
    16301614if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then 
    16311615  echo $ac_n "(cached) $ac_c" 1>&6 
     
    16341618  # GCC predefines this symbol on systems where it applies. 
    16351619cat > conftest.$ac_ext <<EOF 
    1636 #line 1637 "configure" 
     1620#line 1621 "configure" 
    16371621#include "confdefs.h" 
    16381622#ifdef __CHAR_UNSIGNED__ 
     
    16561640else 
    16571641  cat > conftest.$ac_ext <<EOF 
    1658 #line 1659 "configure" 
     1642#line 1643 "configure" 
    16591643#include "confdefs.h" 
    16601644/* volatile prevents gcc2 from optimizing the test away on sparcs.  */ 
     
    16661650} 
    16671651EOF 
    1668 if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
     1652if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
    16691653then 
    16701654  ac_cv_c_char_unsigned=yes 
     
    17251709ac_safe=`echo "/dev/urandom" | sed 'y%./+-%__p_%'` 
    17261710echo $ac_n "checking for /dev/urandom""... $ac_c" 1>&6 
    1727 echo "configure:1728: checking for /dev/urandom" >&5 
     1711echo "configure:1712: checking for /dev/urandom" >&5 
    17281712if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 
    17291713  echo $ac_n "(cached) $ac_c" 1>&6 
     
    17541738# vsnprintf.c and add it to AC_REPLACE_FUNCS 
    17551739echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 
    1756 echo "configure:1757: checking for vsnprintf" >&5 
     1740echo "configure:1741: checking for vsnprintf" >&5 
    17571741if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then 
    17581742  echo $ac_n "(cached) $ac_c" 1>&6 
    17591743else 
    17601744  cat > conftest.$ac_ext <<EOF 
    1761 #line 1762 "configure" 
     1745#line 1746 "configure" 
    17621746#include "confdefs.h" 
    17631747/* System header to define __stub macros and hopefully few prototypes, 
     
    17821766; return 0; } 
    17831767EOF 
    1784 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1768if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    17851769  rm -rf conftest* 
    17861770  eval "ac_cv_func_vsnprintf=yes" 
     
    18121796do 
    18131797echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 
    1814 echo "configure:1815: checking for $ac_func" >&5 
     1798echo "configure:1799: checking for $ac_func" >&5 
    18151799if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 
    18161800  echo $ac_n "(cached) $ac_c" 1>&6 
    18171801else 
    18181802  cat > conftest.$ac_ext <<EOF 
    1819 #line 1820 "configure" 
     1803#line 1804 "configure" 
    18201804#include "confdefs.h" 
    18211805/* System header to define __stub macros and hopefully few prototypes, 
     
    18401824; return 0; } 
    18411825EOF 
    1842 if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1826if { (eval echo configure:1827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    18431827  rm -rf conftest* 
    18441828  eval "ac_cv_func_$ac_func=yes" 
     
    18691853 
    18701854echo $ac_n "checking for library containing socket""... $ac_c" 1>&6 
    1871 echo "configure:1872: checking for library containing socket" >&5 
     1855echo "configure:1856: checking for library containing socket" >&5 
    18721856if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then 
    18731857  echo $ac_n "(cached) $ac_c" 1>&6 
     
    18761860ac_cv_search_socket="no" 
    18771861cat > conftest.$ac_ext <<EOF 
    1878 #line 1879 "configure" 
     1862#line 1863 "configure" 
    18791863#include "confdefs.h" 
    18801864/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    18871871; return 0; } 
    18881872EOF 
    1889 if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1873if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    18901874  rm -rf conftest* 
    18911875  ac_cv_search_socket="none required" 
     
    18981882LIBS="-l$i  $ac_func_search_save_LIBS" 
    18991883cat > conftest.$ac_ext <<EOF 
    1900 #line 1901 "configure" 
     1884#line 1885 "configure" 
    19011885#include "confdefs.h" 
    19021886/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    19091893; return 0; } 
    19101894EOF 
    1911 if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1895if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    19121896  rm -rf conftest* 
    19131897  ac_cv_search_socket="-l$i" 
     
    19311915 
    19321916echo $ac_n "checking for library containing inet_addr""... $ac_c" 1>&6 
    1933 echo "configure:1934: checking for library containing inet_addr" >&5 
     1917echo "configure:1918: checking for library containing inet_addr" >&5 
    19341918if eval "test \"`echo '$''{'ac_cv_search_inet_addr'+set}'`\" = set"; then 
    19351919  echo $ac_n "(cached) $ac_c" 1>&6 
     
    19381922ac_cv_search_inet_addr="no" 
    19391923cat > conftest.$ac_ext <<EOF 
    1940 #line 1941 "configure" 
     1924#line 1925 "configure" 
    19411925#include "confdefs.h" 
    19421926/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    19491933; return 0; } 
    19501934EOF 
    1951 if { (eval echo configure:1952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1935if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    19521936  rm -rf conftest* 
    19531937  ac_cv_search_inet_addr="none required" 
     
    19601944LIBS="-l$i  $ac_func_search_save_LIBS" 
    19611945cat > conftest.$ac_ext <<EOF 
    1962 #line 1963 "configure" 
     1946#line 1947 "configure" 
    19631947#include "confdefs.h" 
    19641948/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    19711955; return 0; } 
    19721956EOF 
    1973 if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1957if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    19741958  rm -rf conftest* 
    19751959  ac_cv_search_inet_addr="-l$i" 
     
    20842068 
    20852069echo $ac_n "checking for getipnodebyname""... $ac_c" 1>&6 
    2086 echo "configure:2087: checking for getipnodebyname" >&5 
     2070echo "configure:2071: checking for getipnodebyname" >&5 
    20872071cat > conftest.$ac_ext <<EOF 
    2088 #line 2089 "configure" 
     2072#line 2073 "configure" 
    20892073#include "confdefs.h" 
    20902074#include <netdb.h> 
     
    21092093ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    21102094echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    2111 echo "configure:2112: checking for $ac_hdr" >&5 
     2095echo "configure:2096: checking for $ac_hdr" >&5 
    21122096if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    21132097  echo $ac_n "(cached) $ac_c" 1>&6 
    21142098else 
    21152099  cat > conftest.$ac_ext <<EOF 
    2116 #line 2117 "configure" 
     2100#line 2101 "configure" 
    21172101#include "confdefs.h" 
    21182102#include <$ac_hdr> 
    21192103EOF 
    21202104ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    2121 { (eval echo configure:2122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     2105{ (eval echo configure:2106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    21222106ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    21232107if test -z "$ac_err"; then 
     
    21462130 
    21472131echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6 
    2148 echo "configure:2149: checking for struct addrinfo" >&5 
     2132echo "configure:2133: checking for struct addrinfo" >&5 
    21492133cat > conftest.$ac_ext <<EOF 
    2150 #line 2151 "configure" 
     2134#line 2135 "configure" 
    21512135#include "confdefs.h" 
    21522136#include <netdb.h> 
  • common/trunk/configure.in

    r328 r333  
    3131 
    3232AC_CHECK_HEADERS(stropts.h sys/filio.h) 
    33 AC_CHECK_HEADERS(stdint.h unttypes.h) 
     33AC_CHECK_HEADERS(stdint.h inttypes.h) 
    3434 
    3535# Check for standard size types.  The defaults are only valid on some 
     
    5353                [AC_MSG_RESULT(yes)], 
    5454                [AC_MSG_RESULT(no)  
    55                  AC_CHECK_TYPE(uint16_t,  unsigned char)]) 
     55                 AC_CHECK_TYPE(uint16_t,  unsigned short)]) 
    5656 
    5757AC_MSG_CHECKING(for uint32_t in <stdint.h>) 
     
    6060                [AC_MSG_RESULT(yes)], 
    6161                [AC_MSG_RESULT(no)  
    62                  AC_CHECK_TYPE(uint32_t,  unsigned char)]) 
     62                 AC_CHECK_TYPE(uint32_t,  unsigned int)]) 
    6363 
    6464# The following two macros cause autoconf to complain.