Skip to content

Commit fc266f4

Browse files
committed
Update configure script from configure.ac
1 parent 947b554 commit fc266f4

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

configure

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2997,6 +2997,7 @@ END
29972997
fi
29982998
fi
29992999

3000+
30003001
# Checks for programs.
30013002
DEPDIR="${am__leading_dot}deps"
30023003

@@ -5298,6 +5299,43 @@ _ACEOF
52985299
esac
52995300

53005301

5302+
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5303+
if test "x$ac_cv_type_uintptr_t" = xyes; then :
5304+
5305+
$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5306+
5307+
else
5308+
for ac_type in 'unsigned int' 'unsigned long int' \
5309+
'unsigned long long int'; do
5310+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311+
/* end confdefs.h. */
5312+
$ac_includes_default
5313+
int
5314+
main ()
5315+
{
5316+
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5317+
test_array [0] = 0;
5318+
return test_array [0];
5319+
5320+
;
5321+
return 0;
5322+
}
5323+
_ACEOF
5324+
if ac_fn_c_try_compile "$LINENO"; then :
5325+
5326+
cat >>confdefs.h <<_ACEOF
5327+
#define uintptr_t $ac_type
5328+
_ACEOF
5329+
5330+
ac_type=
5331+
fi
5332+
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333+
test -z "$ac_type" && break
5334+
done
5335+
fi
5336+
5337+
5338+
53015339
# Checks for library functions.
53025340
for ac_header in stdlib.h
53035341
do :

0 commit comments

Comments
 (0)