dnl This is input to autoconf, producing a configure script. AC_INIT(dwarfgen.cc) AC_CONFIG_HEADER(config.h) AC_PROG_CC AC_PROG_CXX AC_C_BIGENDIAN AC_GCC_TRADITIONAL AC_PROG_INSTALL AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(AR, ar) AC_CHECK_HEADERS(elf.h getopt.h libelf.h sgidefs.h sys/types.h) dnl Attempt to determine if it is really IRIX/SGI or 'other'. AC_TRY_COMPILE([#include ],[ __uint32_t p; p = 27;] , AC_DEFINE(HAVE___UINT32_T_IN_SGIDEFS_H,1, [Define 1 if __uint32_t is in sgidefs.h.])) AC_TRY_COMPILE([#include ],[ __uint64_t p; p = 27;] , AC_DEFINE(HAVE___UINT64_T_IN_SGIDEFS_H,1, [Define 1 if __uint64_t is in sgidefs.h.])) AC_TRY_COMPILE([#include ],[ __uint64_t p; p = 27;] , AC_DEFINE(HAVE___UINT64_T_IN_SGIDEFS_H,1, [Define 1 if is in sgidefs.h.])) dnl the existence of sgidefs.h does not prove it's truly SGI, nor dnl prove that __uint32_t or __uint64_t is defined therein. AC_TRY_COMPILE([#include ],[ __uint32_t p; p = 27;] , AC_DEFINE(HAVE___UINT32_T_IN_SGIDEFS_H,1, [Define 1 if __uint32_t is in sgidefs.h.])) AC_TRY_COMPILE([#include ],[intptr_t p; p = 27;] , AC_DEFINE(HAVE_INTPTR_T,1, [Define 1 if intptr_t defined in C99 stdint.h])) AC_TRY_COMPILE([#include ],[ __uint64_t p; p = 27;] , AC_DEFINE(HAVE___UINT64_T_IN_SGIDEFS_H,1, [Define 1 if __uint64_t is in sgidefs.h.])) AC_TRY_COMPILE([#include ],[ __uint64_t p; p = 27;] , AC_DEFINE(HAVE___UINT64_T_IN_SGIDEFS_H,1, [Define 1 if is in sgidefs.h.])) AC_OUTPUT(Makefile)