Changeset 5332

Show
Ignore:
Timestamp:
03/01/08 07:21:18 (4 months ago)
Author:
morris
Message:

Check for stat64()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libwired/trunk/config.h.in

    r5004 r5332  
    9292#undef HAVE_SRANDOM 
    9393 
     94/* Define to 1 if you have the `stat64' function. */ 
     95#undef HAVE_STAT64 
     96 
    9497/* Define to 1 if you have the `statvfs' function. */ 
    9598#undef HAVE_STATVFS 
     
    127130/* Define to 1 if `sa_len' is member of `struct sockaddr'. */ 
    128131#undef HAVE_STRUCT_SOCKADDR_SA_LEN 
     132 
     133/* Define to 1 if `st_birthtime' is member of `struct stat'. */ 
     134#undef HAVE_STRUCT_STAT_ST_BIRTHTIME 
    129135 
    130136/* Define to 1 if you have the declartion of 'facilitynames' and to 0 if you 
  • libwired/trunk/configure

    r5030 r5332  
    84918491 
    84928492 
     8493# Check if stat struct has st_birthtime member 
     8494{ echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 
     8495echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; } 
     8496if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then 
     8497  echo $ECHO_N "(cached) $ECHO_C" >&6 
     8498else 
     8499  cat >conftest.$ac_ext <<_ACEOF 
     8500/* confdefs.h.  */ 
     8501_ACEOF 
     8502cat confdefs.h >>conftest.$ac_ext 
     8503cat >>conftest.$ac_ext <<_ACEOF 
     8504/* end confdefs.h.  */ 
     8505 
     8506        #include <sys/types.h> 
     8507 
     8508 
     8509int 
     8510main () 
     8511{ 
     8512static struct stat ac_aggr; 
     8513if (ac_aggr.st_birthtime) 
     8514return 0; 
     8515  ; 
     8516  return 0; 
     8517} 
     8518_ACEOF 
     8519rm -f conftest.$ac_objext 
     8520if { (ac_try="$ac_compile" 
     8521case "(($ac_try" in 
     8522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8523  *) ac_try_echo=$ac_try;; 
     8524esac 
     8525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
     8526  (eval "$ac_compile") 2>conftest.er1 
     8527  ac_status=$? 
     8528  grep -v '^ *+' conftest.er1 >conftest.err 
     8529  rm -f conftest.er1 
     8530  cat conftest.err >&5 
     8531  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     8532  (exit $ac_status); } && { 
     8533         test -z "$ac_c_werror_flag" || 
     8534         test ! -s conftest.err 
     8535       } && test -s conftest.$ac_objext; then 
     8536  ac_cv_member_struct_stat_st_birthtime=yes 
     8537else 
     8538  echo "$as_me: failed program was:" >&5 
     8539sed 's/^/| /' conftest.$ac_ext >&5 
     8540 
     8541        cat >conftest.$ac_ext <<_ACEOF 
     8542/* confdefs.h.  */ 
     8543_ACEOF 
     8544cat confdefs.h >>conftest.$ac_ext 
     8545cat >>conftest.$ac_ext <<_ACEOF 
     8546/* end confdefs.h.  */ 
     8547 
     8548        #include <sys/types.h> 
     8549 
     8550 
     8551int 
     8552main () 
     8553{ 
     8554static struct stat ac_aggr; 
     8555if (sizeof ac_aggr.st_birthtime) 
     8556return 0; 
     8557  ; 
     8558  return 0; 
     8559} 
     8560_ACEOF 
     8561rm -f conftest.$ac_objext 
     8562if { (ac_try="$ac_compile" 
     8563case "(($ac_try" in 
     8564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     8565  *) ac_try_echo=$ac_try;; 
     8566esac 
     8567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
     8568  (eval "$ac_compile") 2>conftest.er1 
     8569  ac_status=$? 
     8570  grep -v '^ *+' conftest.er1 >conftest.err 
     8571  rm -f conftest.er1 
     8572  cat conftest.err >&5 
     8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     8574  (exit $ac_status); } && { 
     8575         test -z "$ac_c_werror_flag" || 
     8576         test ! -s conftest.err 
     8577       } && test -s conftest.$ac_objext; then 
     8578  ac_cv_member_struct_stat_st_birthtime=yes 
     8579else 
     8580  echo "$as_me: failed program was:" >&5 
     8581sed 's/^/| /' conftest.$ac_ext >&5 
     8582 
     8583        ac_cv_member_struct_stat_st_birthtime=no 
     8584fi 
     8585 
     8586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     8587fi 
     8588 
     8589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     8590fi 
     8591{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 
     8592echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } 
     8593if test $ac_cv_member_struct_stat_st_birthtime = yes; then 
     8594 
     8595cat >>confdefs.h <<_ACEOF 
     8596#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 
     8597_ACEOF 
     8598 
     8599 
     8600fi 
     8601 
     8602 
     8603 
    84938604####################################################################### 
    84948605# Checks for header files 
     
    94149525 
    94159526 
     9527 
    94169528for ac_func in  \ 
    94179529        dirfd \ 
     
    94249536        setproctitle \ 
    94259537        srandom \ 
     9538        stat64 \ 
    94269539        statvfs \ 
    94279540        strcasestr \ 
  • libwired/trunk/configure.in

    r5030 r5332  
    198198 
    199199 
     200# Check if stat struct has st_birthtime member 
     201AC_CHECK_MEMBERS([struct stat.st_birthtime], [], [], [ 
     202        #include <sys/types.h> 
     203]) 
     204 
     205 
    200206####################################################################### 
    201207# Checks for header files 
     
    247253        setproctitle \ 
    248254        srandom \ 
     255        stat64 \ 
    249256        statvfs \ 
    250257        strcasestr \