/* squidconf.h.  Generated by configure.  */
/* @configure_input@ */
/*****************************************************************
 * HMMER - Biological sequence analysis with profile HMMs
 * Copyright (C) 1992-2003 Washington University School of Medicine
 * All Rights Reserved
 *
 *     This source code is distributed under the terms of the
 *     GNU General Public License. See the files COPYING and LICENSE
 *     for details.
 *****************************************************************/

#ifndef SQUIDCONFH_INCLUDED
#define SQUIDCONFH_INCLUDED

/* squidconf.h
 * Captures #define's generated by the ./configure script;
 * this file must be the first header included in any squid file.
 */

/*****************************************************************
 * Version info that's set by the ./configure script.
 *****************************************************************/

#define SQUID_VERSION "1.9g"
#define SQUID_DATE "January 2003"
#define SQUID_COPYRIGHT "Copyright (C) 1992-2003 HHMI/Washington University School of Medicine"
#define SQUID_LICENSE "Freely distributed under the GNU General Public License (GPL)"

/*****************************************************************
 * Optional feature enabling that's done by the ./configure script.
 *****************************************************************/

/* --enable-debugging=x  debugging diagnostics (development versions only)
 */
#ifndef DEBUGLEVEL
/* #undef DEBUGLEVEL */
#endif

/* --enable-lfs          Large File Summit (LFS) support for >2GB files
 */
#define _LARGEFILE_SOURCE 1
#define _LARGEFILE64_SOURCE 1
#define _FILE_OFFSET_BITS 64


/* --enable-pvm          Parallel Virtual Machine (PVM)
 */
/* #undef SRE_ENABLE_PVM */



/*****************************************************************
 * Sizes of integer types.
 * various things are set by ./configure; the code
 * uses WORDS_BIGENDIAN and USE_HOST_BYTESWAP_FUNCTIONS.
 *****************************************************************/
/* #undef WORDS_BIGENDIAN */
#define SIZEOF_UNSIGNED_SHORT 2
#define SIZEOF_UNSIGNED_INT 4
#define SIZEOF_UNSIGNED_LONG 8
#define SIZEOF_UNSIGNED_LONG_LONG 8
/* #undef HAVE_NTOHS */		/* if defined, system provides ntohs() */
/* #undef HAVE_NTOHL */		/* if defined, system provides ntohl() */
/* #undef HAVE_HTONS */		/* if defined, system provides htons() */
/* #undef HAVE_HTONL */		/* if defined, system provides htonl() */
#define HAVE_STRTOUL 1
#define HAVE_STRTOULL 1
#if defined HAVE_NTOHL && defined HAVE_NTOHS && defined HAVE_HTONS && defined HAVE_HTONL
#define USE_HOST_BYTESWAP_FUNCTIONS 1
#endif

/* On some machines like Alphas, strtoull doesn't exist, but since
 * longs are 64 bits anyway and we never call strtoull except for
 * a sqd_uint64, strotul will work... probably.
 */
#if SIZEOF_UNSIGNED_LONG == 8 && defined HAVE_STRTOUL && ! defined HAVE_STRTOULL
#define strtoull strtoul
#define HAVE_STRTOULL 1
#endif

/*****************************************************************
 * Can we support arithmetic 64-bit file offsets?
 * four possible models checked for:
 *   1. ftello(), fseeko() with 64-bit off_t
 *   2. ftello64(), fseeko64() with 64-bit off64_t
 *   3. ftell64(), fseek64() with 64-bit integer
 *   4. fgetpos(), fsetpos() with an fpos_t that happens to be a
 *      64-bit integer, even though ANSI says we're not supposed to know
 *      anything about fpos_t's internals.
 * Based on what ./configure tells us about these, we set
 * HAS_64BIT_FILE_OFFSETS or not.
 *
 * In all cases, we also check that we HAVE_STRTOULL; ssi.c has to
 * make a call. HP/UX 11, for example, does not provide strtoull(),
 * despite being 64-bit.
 *****************************************************************/
#define HAVE_FTELLO 1
#define HAVE_FSEEKO 1
#define HAVE_FTELLO64 1
#define HAVE_FSEEKO64 1
/* #undef HAVE_FTELL64 */
/* #undef HAVE_FSEEK64 */
/* #undef ARITHMETIC_FPOS_T */
/* #undef HAVE_STAT64 */
#define SIZEOF_FPOS_T 16
#define SIZEOF_OFF_T 8
#define SIZEOF_OFF64_T 0

#if   defined HAVE_STRTOULL && defined HAVE_FTELLO && defined HAVE_FSEEKO && SIZEOF_OFF_T == 8
#define HAS_64BIT_FILE_OFFSETS 1
#elif defined HAVE_STRTOULL && defined HAVE_FTELLO64 && defined HAVE_FSEEKO64 && SIZEOF_OFF64_T == 8
#define HAS_64BIT_FILE_OFFSETS 1
#elif defined HAVE_STRTOULL && defined HAVE_FTELL64 && defined HAVE_FSEEK64
#define HAS_64BIT_FILE_OFFSETS 1
#elif defined HAVE_STRTOULL && defined ARITHMETIC_FPOS_T && SIZEOF_FPOS_T == 8
#define HAS_64BIT_FILE_OFFSETS 1
#else
/* #undef HAS_64BIT_FILE_OFFSETS */
#endif


#endif /* SQUIDCONFH_INCLUDED */
