FreeBSD 3.4 doesn't have "strtoull()", but it does have "strtouq()",
authorGuy Harris <guy@alum.mit.edu>
Sun, 22 Aug 2004 01:41:47 +0000 (01:41 -0000)
committerGuy Harris <guy@alum.mit.edu>
Sun, 22 Aug 2004 01:41:47 +0000 (01:41 -0000)
which does the same thing - check for "strtoull()" and, if it's missing,
check for "strtouq()" and, if we have it, define strtoull as strtouq.

svn path=/trunk/; revision=11798

configure.in

index 23e63d13402bb9f8e44852f47b3a15ec187fe09a..88a14ba9fbb616a6ef3aaff92082400d2c03aed2 100644 (file)
@@ -468,6 +468,24 @@ else
     ])
 fi
 
+AC_CHECK_FUNC(strtoull,,
+  [
+    #
+    # No strtoull - do we have strtouq?
+    #
+    AC_CHECK_FUNC(strtouq,
+      [
+       #
+       # Yes - define strtoull to be strtouq.
+       #
+       AC_DEFINE(strtoull, strtouq,
+         [Define as a function that behaves like strtoull])
+      ],
+      [
+       AC_MSG_ERROR([This platform has neither strtoull nor strtouq.])
+      ])
+  ])
+
 AC_SUBST(ethereal_bin)
 AC_SUBST(ethereal_man)