*** empty log message ***

This commit is contained in:
hyung-hwan 2006-04-14 14:17:09 +00:00
parent c99641b932
commit d0c9c8e099
5 changed files with 793 additions and 93 deletions

View File

@ -3,59 +3,60 @@
/* both vax and alpha are in the little endian. */ /* both vax and alpha are in the little endian. */
#define XP_ENDIAN_LITTLE #define XP_ENDIAN_LITTLE
#define SIZEOF_CHAR 1 #define XP_SIZEOF_CHAR 1
#define SIZEOF_SHORT 2 #define XP_SIZEOF_SHORT 2
#define SIZEOF_INT 4 #define XP_SIZEOF_INT 4
#define SIZEOF_LONG 4 #define XP_SIZEOF_LONG 4
#if defined(vax) || defined(__vax) #if defined(vax) || defined(__vax)
#define SIZEOF_LONG_LONG 0 #define XP_SIZEOF_LONG_LONG 0
#elif defined(alpha) || defined(__alpha) #elif defined(alpha) || defined(__alpha)
#define SIZEOF_LONG_LONG 8 #define XP_SIZEOF_LONG_LONG 8
#elif defined(itanium) || defined(__itanium) #elif defined(itanium) || defined(__itanium)
#define SIZEOF_LONG_LONG 8 #define XP_SIZEOF_LONG_LONG 8
#else #else
#define SIZEOF_LONG_LONG 0 #define XP_SIZEOF_LONG_LONG 0
#endif #endif
#define SIZEOF___INT8 1 #define XP_SIZEOF___INT8 1
#define SIZEOF___INT16 2 #define XP_SIZEOF___INT16 2
#define SIZEOF___INT32 4 #define XP_SIZEOF___INT32 4
#if defined(vax) || defined(__vax) #if defined(vax) || defined(__vax)
#define SIZEOF___INT64 0 #define XP_SIZEOF___INT64 0
#elif defined(alpha) || defined(__alpha) #elif defined(alpha) || defined(__alpha)
#define SIZEOF___INT64 8 #define XP_SIZEOF___INT64 8
#elif defined(itanium) || defined(__itanium) #elif defined(itanium) || defined(__itanium)
#define SIZEOF___INT64 8 #define XP_SIZEOF___INT64 8
#else #else
#define SIZEOF___INT64 0 #define XP_SIZEOF___INT64 0
#endif #endif
#define SIZEOF___INT128 0 #define XP_SIZEOF___INT96 0
#define XP_SIZEOF___INT128 0
#if defined(vax) || defined(__vax) #if defined(vax) || defined(__vax)
#define SIZEOF_VOID_P 4 #define XP_SIZEOF_VOID_P 4
#elif defined(alpha) || defined(__alpha) #elif defined(alpha) || defined(__alpha)
/*#pragma pointer_size 32 /*#pragma pointer_size 32
#define SIZEOF_VOID_P 4*/ #define XP_SIZEOF_VOID_P 4*/
#pragma pointer_size 64 #pragma pointer_size 64
#define SIZEOF_VOID_P 8 #define XP_SIZEOF_VOID_P 8
#elif defined(itanium) || defined(__itanium) #elif defined(itanium) || defined(__itanium)
/*#pragma pointer_size 32 /*#pragma pointer_size 32
#define SIZEOF_VOID_P 4*/ #define XP_SIZEOF_VOID_P 4*/
#pragma pointer_size 64 #pragma pointer_size 64
#define SIZEOF_VOID_P 8 #define XP_SIZEOF_VOID_P 8
#else #else
#define SIZEOF_VOID_P 0 #define XP_SIZEOF_VOID_P 0
#endif #endif
#define SIZEOF_FLOAT 4 #define XP_SIZEOF_FLOAT 4
#define SIZEOF_DOUBLE 8 #define XP_SIZEOF_DOUBLE 8
#if defined(vax) || defined(__vax) #if defined(vax) || defined(__vax)
#define SIZEOF_LONG_DOUBLE 8 #define XP_SIZEOF_LONG_DOUBLE 8
#elif defined(alpha) || defined(__alpha) #elif defined(alpha) || defined(__alpha)
#define SIZEOF_LONG_DOUBLE 16 #define XP_SIZEOF_LONG_DOUBLE 16
#elif defined(itanium) || defined(__itanium) #elif defined(itanium) || defined(__itanium)
#define SIZEOF_LONG_DOUBLE 16 #define XP_SIZEOF_LONG_DOUBLE 16
#else #else
#define SIZEOF_LONG_DOUBLE 0 #define XP_SIZEOF_LONG_DOUBLE 0
#endif #endif

View File

@ -13,47 +13,22 @@
/* long double */ /* long double */
#undef XP_HAVE_LONG_DOUBLE #undef XP_HAVE_LONG_DOUBLE
/* sizeof (char) */ /* data type size */
#define SIZEOF_CHAR 0 #define XP_SIZEOF_CHAR 0
#define XP_SIZEOF_SHORT 0
/* sizeof (short) */ #define XP_SIZEOF_INT 0
#define SIZEOF_SHORT 0 #define XP_SIZEOF_LONG 0
#define XP_SIZEOF_LONG_LONG 0
/* sizeof (int) */ #define XP_SIZEOF___INT8 0
#define SIZEOF_INT 0 #define XP_SIZEOF___INT16 0
#define XP_SIZEOF___INT32 0
/* sizeof (long) */ #define XP_SIZEOF___INT64 0
#define SIZEOF_LONG 0 #define XP_SIZEOF___INT128 0
#define XP_SIZEOF_VOID_P 0
/* sizeof (long long) */ #define XP_SIZEOF_FLOAT 0
#define SIZEOF_LONG_LONG 0 #define XP_SIZEOF_DOUBLE 0
#define XP_SIZEOF_LONG_DOUBLE 0
/* sizeof (__int8) */ #define XP_SIZEOF_PID_T 0
#define SIZEOF___INT8 0
/* sizeof (__int16) */
#define SIZEOF___INT16 0
/* sizeof (__int32) */
#define SIZEOF___INT32 0
/* sizeof (__int64) */
#define SIZEOF___INT64 0
/* sizeof (__int128) */
#define SIZEOF___INT128 0
/* sizeof (void*) */
#define SIZEOF_VOID_P 0
/* sizeof (float) */
#define SIZEOF_FLOAT 0
/* sizeof (double) */
#define SIZEOF_DOUBLE 0
/* sizeof (long double) */
#define SIZEOF_LONG_DOUBLE 0
/* fcntl.h */ /* fcntl.h */
#undef XP_HAVE_FCNTL_H #undef XP_HAVE_FCNTL_H

707
ase/configure vendored
View File

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
# From configure.ac Revision: 1.62 . # From configure.ac Revision: 1.63 .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.54 for xpkit deb-0.1.0. # Generated by GNU Autoconf 2.54 for xpkit deb-0.1.0.
# #
@ -7740,6 +7740,326 @@ cat >>confdefs.h <<_ACEOF
_ACEOF _ACEOF
echo "$as_me:$LINENO: checking for __int96" >&5
echo $ECHO_N "checking for __int96... $ECHO_C" >&6
if test "${ac_cv_type___int96+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((__int96 *) 0)
return 0;
if (sizeof (__int96))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type___int96=yes
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type___int96=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type___int96" >&5
echo "${ECHO_T}$ac_cv_type___int96" >&6
echo "$as_me:$LINENO: checking size of __int96" >&5
echo $ECHO_N "checking size of __int96... $ECHO_C" >&6
if test "${ac_cv_sizeof___int96+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type___int96" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (__int96))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (__int96))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (__int96))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (__int96))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (__int96))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof___int96=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int96), 77" >&5
echo "$as_me: error: cannot compute sizeof (__int96), 77" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
long longval () { return (long) (sizeof (__int96)); }
unsigned long ulongval () { return (long) (sizeof (__int96)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (__int96))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (__int96))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (__int96))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof___int96=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int96), 77" >&5
echo "$as_me: error: cannot compute sizeof (__int96), 77" >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof___int96=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof___int96" >&5
echo "${ECHO_T}$ac_cv_sizeof___int96" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF___INT96 $ac_cv_sizeof___int96
_ACEOF
echo "$as_me:$LINENO: checking for __int128" >&5 echo "$as_me:$LINENO: checking for __int128" >&5
echo $ECHO_N "checking for __int128... $ECHO_C" >&6 echo $ECHO_N "checking for __int128... $ECHO_C" >&6
if test "${ac_cv_type___int128+set}" = set; then if test "${ac_cv_type___int128+set}" = set; then
@ -9340,6 +9660,391 @@ cat >>confdefs.h <<_ACEOF
_ACEOF _ACEOF
echo "$as_me:$LINENO: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((pid_t *) 0)
return 0;
if (sizeof (pid_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_pid_t=yes
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
echo "$as_me:$LINENO: checking size of pid_t" >&5
echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6
if test "${ac_cv_sizeof_pid_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_pid_t" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (pid_t))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (pid_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (pid_t))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (pid_t))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (pid_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_pid_t=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t), 77" >&5
echo "$as_me: error: cannot compute sizeof (pid_t), 77" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
$ac_includes_default
long longval () { return (long) (sizeof (pid_t)); }
unsigned long ulongval () { return (long) (sizeof (pid_t)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (pid_t))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (pid_t))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (pid_t))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_pid_t=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t), 77" >&5
echo "$as_me: error: cannot compute sizeof (pid_t), 77" >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_pid_t=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF_CHAR ${ac_cv_sizeof_char}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF_SHORT ${ac_cv_sizeof_short}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF_INT ${ac_cv_sizeof_int}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF_LONG ${ac_cv_sizeof_long}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF_LONG_LONG ${ac_cv_sizeof_long_long}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF___INT8 ${ac_cv_sizeof___int8}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF___INT16 ${ac_cv_sizeof___int16}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF___INT32 ${ac_cv_sizeof___int32}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF___INT64 ${ac_cv_sizeof___int64}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF___INT96 ${ac_cv_sizeof___int96}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF___INT128 ${ac_cv_sizeof___int128}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF_VOID_P ${ac_cv_sizeof_void_p}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF_FLOAT ${ac_cv_sizeof_float}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF_DOUBLE ${ac_cv_sizeof_double}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF_LONG_DOUBLE ${ac_cv_sizeof_long_double}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define XP_SIZEOF_PID_T ${ac_cv_sizeof_pid_t}
_ACEOF
#AC_CHECK_FUNC(nanosleep,[AC_DEFINE([XP_HAVE_NANOSLEEP])], #AC_CHECK_FUNC(nanosleep,[AC_DEFINE([XP_HAVE_NANOSLEEP])],
# [AC_CHECK_LIB(rt,nanosleep, LIBS="${LIBS} -lrt", # [AC_CHECK_LIB(rt,nanosleep, LIBS="${LIBS} -lrt",

View File

@ -1,6 +1,6 @@
AC_PREREQ(2.53) AC_PREREQ(2.53)
AC_INIT([xpkit], [deb-0.1.0]) AC_INIT([xpkit], [deb-0.1.0])
AC_REVISION([$Revision: 1.63 $]) AC_REVISION([$Revision: 1.64 $])
AC_CONFIG_HEADER([xp/config.h]) AC_CONFIG_HEADER([xp/config.h])
# Checks for programs. # Checks for programs.
@ -69,11 +69,30 @@ AC_CHECK_SIZEOF(__int8)
AC_CHECK_SIZEOF(__int16) AC_CHECK_SIZEOF(__int16)
AC_CHECK_SIZEOF(__int32) AC_CHECK_SIZEOF(__int32)
AC_CHECK_SIZEOF(__int64) AC_CHECK_SIZEOF(__int64)
AC_CHECK_SIZEOF(__int96)
AC_CHECK_SIZEOF(__int128) AC_CHECK_SIZEOF(__int128)
AC_CHECK_SIZEOF(void *) AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(float) AC_CHECK_SIZEOF(float)
AC_CHECK_SIZEOF(double) AC_CHECK_SIZEOF(double)
AC_CHECK_SIZEOF(long double) AC_CHECK_SIZEOF(long double)
AC_CHECK_SIZEOF(pid_t)
AC_DEFINE_UNQUOTED(XP_SIZEOF_CHAR,${ac_cv_sizeof_char})
AC_DEFINE_UNQUOTED(XP_SIZEOF_SHORT,${ac_cv_sizeof_short})
AC_DEFINE_UNQUOTED(XP_SIZEOF_INT,${ac_cv_sizeof_int})
AC_DEFINE_UNQUOTED(XP_SIZEOF_LONG,${ac_cv_sizeof_long})
AC_DEFINE_UNQUOTED(XP_SIZEOF_LONG_LONG,${ac_cv_sizeof_long_long})
AC_DEFINE_UNQUOTED(XP_SIZEOF___INT8,${ac_cv_sizeof___int8})
AC_DEFINE_UNQUOTED(XP_SIZEOF___INT16,${ac_cv_sizeof___int16})
AC_DEFINE_UNQUOTED(XP_SIZEOF___INT32,${ac_cv_sizeof___int32})
AC_DEFINE_UNQUOTED(XP_SIZEOF___INT64,${ac_cv_sizeof___int64})
AC_DEFINE_UNQUOTED(XP_SIZEOF___INT96,${ac_cv_sizeof___int96})
AC_DEFINE_UNQUOTED(XP_SIZEOF___INT128,${ac_cv_sizeof___int128})
AC_DEFINE_UNQUOTED(XP_SIZEOF_VOID_P,${ac_cv_sizeof_void_p})
AC_DEFINE_UNQUOTED(XP_SIZEOF_FLOAT,${ac_cv_sizeof_float})
AC_DEFINE_UNQUOTED(XP_SIZEOF_DOUBLE,${ac_cv_sizeof_double})
AC_DEFINE_UNQUOTED(XP_SIZEOF_LONG_DOUBLE,${ac_cv_sizeof_long_double})
AC_DEFINE_UNQUOTED(XP_SIZEOF_PID_T,${ac_cv_sizeof_pid_t})
#AC_CHECK_FUNC(nanosleep,[AC_DEFINE([XP_HAVE_NANOSLEEP])], #AC_CHECK_FUNC(nanosleep,[AC_DEFINE([XP_HAVE_NANOSLEEP])],
# [AC_CHECK_LIB(rt,nanosleep, LIBS="${LIBS} -lrt", # [AC_CHECK_LIB(rt,nanosleep, LIBS="${LIBS} -lrt",

View File

@ -1,5 +1,5 @@
/* /*
* $Id: types.h,v 1.42 2006-04-05 15:20:47 bacon Exp $ * $Id: types.h,v 1.43 2006-04-14 14:17:09 bacon Exp $
*/ */
#ifndef _XP_TYPES_H_ #ifndef _XP_TYPES_H_
@ -94,10 +94,10 @@ typedef int xp_tri_t;
#define xp_dead -1 #define xp_dead -1
/* integer that can hold a pointer */ /* integer that can hold a pointer */
#if SIZEOF_VOID_P == SIZEOF_LONG_LONG #if XP_SIZEOF_VOID_P == XP_SIZEOF_LONG_LONG
typedef long long xp_int_t; typedef long long xp_int_t;
typedef unsigned long long xp_uint_t; typedef unsigned long long xp_uint_t;
#elif SIZEOF_VOID_P == SIZEOF_LONG #elif XP_SIZEOF_VOID_P == XP_SIZEOF_LONG
typedef long xp_int_t; typedef long xp_int_t;
typedef unsigned long xp_uint_t; typedef unsigned long xp_uint_t;
#else #else
@ -106,10 +106,10 @@ typedef int xp_tri_t;
#endif #endif
/* the largest integer supported by the system */ /* the largest integer supported by the system */
#if SIZEOF_LONG_LONG != 0 #if XP_SIZEOF_LONG_LONG != 0
typedef long long xp_long_t; typedef long long xp_long_t;
typedef unsigned long long xp_ulong_t; typedef unsigned long long xp_ulong_t;
#elif SIZEOF___INT64 != 0 #elif XP_SIZEOF___INT64 != 0
typedef __int64 xp_long_t; typedef __int64 xp_long_t;
typedef unsigned __int64 xp_ulong_t; typedef unsigned __int64 xp_ulong_t;
#else #else
@ -118,71 +118,71 @@ typedef int xp_tri_t;
#endif #endif
/* integers of specific size */ /* integers of specific size */
#if SIZEOF_CHAR == 1 #if XP_SIZEOF_CHAR == 1
typedef char xp_int8_t; typedef char xp_int8_t;
typedef unsigned char xp_uint8_t; typedef unsigned char xp_uint8_t;
#elif SIZEOF___INT8 == 1 #elif XP_SIZEOF___INT8 == 1
typedef __int8 xp_int8_t; typedef __int8 xp_int8_t;
typedef unsigned __int8 xp_uint8_t; typedef unsigned __int8 xp_uint8_t;
#endif #endif
#if SIZEOF_SHORT == 2 #if XP_SIZEOF_SHORT == 2
typedef short xp_int16_t; typedef short xp_int16_t;
typedef unsigned short xp_uint16_t; typedef unsigned short xp_uint16_t;
#elif SIZEOF___INT16 == 2 #elif XP_SIZEOF___INT16 == 2
typedef __int16 xp_int16_t; typedef __int16 xp_int16_t;
typedef unsigned __int16 xp_uint16_t; typedef unsigned __int16 xp_uint16_t;
#endif #endif
#if SIZEOF_INT == 4 #if XP_SIZEOF_INT == 4
typedef int xp_int32_t; typedef int xp_int32_t;
typedef unsigned int xp_uint32_t; typedef unsigned int xp_uint32_t;
#elif SIZEOF_LONG == 4 #elif XP_SIZEOF_LONG == 4
typedef long xp_int32_t; typedef long xp_int32_t;
typedef unsigned long xp_uint32_t; typedef unsigned long xp_uint32_t;
#elif SIZEOF___INT32 == 4 #elif XP_SIZEOF___INT32 == 4
typedef __int32 xp_int32_t; typedef __int32 xp_int32_t;
typedef unsigned __int32 xp_uint32_t; typedef unsigned __int32 xp_uint32_t;
#endif #endif
#if SIZEOF_INT == 8 #if XP_SIZEOF_INT == 8
#define XP_HAVE_INT64_T #define XP_HAVE_INT64_T
#define XP_HAVE_UINT64_T #define XP_HAVE_UINT64_T
typedef int xp_int64_t; typedef int xp_int64_t;
typedef unsigned int xp_uint64_t; typedef unsigned int xp_uint64_t;
#elif SIZEOF_LONG == 8 #elif XP_SIZEOF_LONG == 8
#define XP_HAVE_INT64_T #define XP_HAVE_INT64_T
#define XP_HAVE_UINT64_T #define XP_HAVE_UINT64_T
typedef long xp_int64_t; typedef long xp_int64_t;
typedef unsigned long xp_uint64_t; typedef unsigned long xp_uint64_t;
#elif SIZEOF_LONG_LONG == 8 #elif XP_SIZEOF_LONG_LONG == 8
#define XP_HAVE_INT64_T #define XP_HAVE_INT64_T
#define XP_HAVE_UINT64_T #define XP_HAVE_UINT64_T
typedef long long xp_int64_t; typedef long long xp_int64_t;
typedef unsigned long long xp_uint64_t; typedef unsigned long long xp_uint64_t;
#elif SIZEOF___INT64 == 8 #elif XP_SIZEOF___INT64 == 8
#define XP_HAVE_INT64_T #define XP_HAVE_INT64_T
#define XP_HAVE_UINT64_T #define XP_HAVE_UINT64_T
typedef __int64 xp_int64_t; typedef __int64 xp_int64_t;
typedef unsigned __int64 xp_uint64_t; typedef unsigned __int64 xp_uint64_t;
#endif #endif
#if SIZEOF_INT == 16 #if XP_SIZEOF_INT == 16
#define XP_HAVE_INT128_T #define XP_HAVE_INT128_T
#define XP_HAVE_UINT128_T #define XP_HAVE_UINT128_T
typedef int xp_int128_t; typedef int xp_int128_t;
typedef unsigned int xp_uint128_t; typedef unsigned int xp_uint128_t;
#elif SIZEOF_LONG == 16 #elif XP_SIZEOF_LONG == 16
#define XP_HAVE_INT128_T #define XP_HAVE_INT128_T
#define XP_HAVE_UINT128_T #define XP_HAVE_UINT128_T
typedef long xp_int128_t; typedef long xp_int128_t;
typedef unsigned long xp_uint128_t; typedef unsigned long xp_uint128_t;
#elif SIZEOF_LONG_LONG == 16 #elif XP_SIZEOF_LONG_LONG == 16
#define XP_HAVE_INT128_T #define XP_HAVE_INT128_T
#define XP_HAVE_UINT128_T #define XP_HAVE_UINT128_T
typedef long long xp_int128_t; typedef long long xp_int128_t;
typedef unsigned long long xp_uint128_t; typedef unsigned long long xp_uint128_t;
#elif SIZEOF___INT128 == 16 #elif XP_SIZEOF___INT128 == 16
#define XP_HAVE_INT128_T #define XP_HAVE_INT128_T
#define XP_HAVE_UINT128_T #define XP_HAVE_UINT128_T
typedef __int128 xp_int128_t; typedef __int128 xp_int128_t;
@ -196,7 +196,7 @@ typedef xp_int_t xp_ssize_t;
typedef xp_uint_t xp_word_t; typedef xp_uint_t xp_word_t;
/* floating-point number */ /* floating-point number */
#if SIZEOF_LONG_DOUBLE > SIZEOF_DOUBLE #if XP_SIZEOF_LONG_DOUBLE > XP_SIZEOF_DOUBLE
typedef long double xp_real_t; typedef long double xp_real_t;
#else #else
typedef double xp_real_t; typedef double xp_real_t;
@ -212,7 +212,7 @@ typedef int xp_mcint_t;
#elif defined(vms) || defined(__vms) #elif defined(vms) || defined(__vms)
typedef long xp_wchar_t; typedef long xp_wchar_t;
typedef long xp_wcint_t; typedef long xp_wcint_t;
#elif SIZEOF_LONG == 4 #elif XP_SIZEOF_LONG == 4
typedef long xp_wchar_t; typedef long xp_wchar_t;
typedef long xp_wcint_t; typedef long xp_wcint_t;
#else #else