mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
Move to autoconf standard function name checks & defines
Replace multiple methods of checking for functions with AC_CHECK_FUNCS Replace multiple methods of selecting fallback funcs with AC_REPLACE_FUNCS Replace HAS_* and NEED_* #defines with autogenerated HAVE_* Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
This commit is contained in:
parent
4be68b0312
commit
d829a7c5cb
15 changed files with 85 additions and 128 deletions
|
|
@ -51,27 +51,9 @@
|
|||
/* Support XDM-AUTH*-1 */
|
||||
#undef HASXDMAUTH
|
||||
|
||||
/* Define to 1 if you have the `getdtablesize' function. */
|
||||
#undef HAS_GETDTABLESIZE
|
||||
|
||||
/* Define to 1 if you have the `getifaddrs' function. */
|
||||
#undef HAS_GETIFADDRS
|
||||
|
||||
/* Define to 1 if you have the `getpeereid' function. */
|
||||
#undef HAS_GETPEEREID
|
||||
|
||||
/* Define to 1 if you have the `getpeerucred' function. */
|
||||
#undef HAS_GETPEERUCRED
|
||||
|
||||
/* Define to 1 if you have the `mmap' function. */
|
||||
#undef HAS_MMAP
|
||||
|
||||
/* Support SHM */
|
||||
#undef HAS_SHM
|
||||
|
||||
/* Have the 'strlcpy' function */
|
||||
#undef HAS_STRLCPY
|
||||
|
||||
/* Define to 1 if you have the <asm/mtrr.h> header file. */
|
||||
#undef HAVE_ASM_MTRR_H
|
||||
|
||||
|
|
@ -81,7 +63,7 @@
|
|||
/* Define to 1 if you have the <byteswap.h> header file. */
|
||||
#undef HAVE_BYTESWAP_H
|
||||
|
||||
/* Define to 1 if you have cbrt */
|
||||
/* Define to 1 if you have the `cbrt' function. */
|
||||
#undef HAVE_CBRT
|
||||
|
||||
/* Define to 1 if you have the <dbm.h> header file. */
|
||||
|
|
@ -100,6 +82,21 @@
|
|||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#undef HAVE_FCNTL_H
|
||||
|
||||
/* Define to 1 if you have the `ffs' function. */
|
||||
#undef HAVE_FFS
|
||||
|
||||
/* Define to 1 if you have the `getdtablesize' function. */
|
||||
#undef HAVE_GETDTABLESIZE
|
||||
|
||||
/* Define to 1 if you have the `getifaddrs' function. */
|
||||
#undef HAVE_GETIFADDRS
|
||||
|
||||
/* Define to 1 if you have the `getpeereid' function. */
|
||||
#undef HAVE_GETPEEREID
|
||||
|
||||
/* Define to 1 if you have the `getpeerucred' function. */
|
||||
#undef HAVE_GETPEERUCRED
|
||||
|
||||
/* Define to 1 if you have the `getzoneid' function. */
|
||||
#undef HAVE_GETZONEID
|
||||
|
||||
|
|
@ -133,6 +130,9 @@
|
|||
/* Define to 1 if you have the <linux/fb.h> header file. */
|
||||
#undef HAVE_LINUX_FB_H
|
||||
|
||||
/* Define to 1 if you have the `mmap' function. */
|
||||
#undef HAVE_MMAP
|
||||
|
||||
/* Define to 1 if you have the <ndbm.h> header file. */
|
||||
#undef HAVE_NDBM_H
|
||||
|
||||
|
|
@ -163,6 +163,21 @@
|
|||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the `strcasecmp' function. */
|
||||
#undef HAVE_STRCASECMP
|
||||
|
||||
/* Define to 1 if you have the `strcasestr' function. */
|
||||
#undef HAVE_STRCASESTR
|
||||
|
||||
/* Define to 1 if you have the `strncasecmp' function. */
|
||||
#undef HAVE_STRNCASECMP
|
||||
|
||||
/* Define to 1 if you have the `strlcat' function. */
|
||||
#undef HAVE_STRLCAT
|
||||
|
||||
/* Define to 1 if you have the `strlcpy' function. */
|
||||
#undef HAVE_STRLCPY
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
|
|
@ -402,18 +417,6 @@
|
|||
/* Define to 64-bit byteswap macro */
|
||||
#undef bswap_64
|
||||
|
||||
/* Need the strcasecmp function. */
|
||||
#undef NEED_STRCASECMP
|
||||
|
||||
/* Need the strncasecmp function. */
|
||||
#undef NEED_STRNCASECMP
|
||||
|
||||
/* Need the strcasestr function. */
|
||||
#undef NEED_STRCASESTR
|
||||
|
||||
/* Define to 1 if you have the `ffs' function. */
|
||||
#undef HAVE_FFS
|
||||
|
||||
/* The compiler supported TLS storage class, prefering initial-exec if tls_model is supported */
|
||||
#undef TLS
|
||||
|
||||
|
|
|
|||
|
|
@ -472,22 +472,22 @@ extern _X_EXPORT void ddxGiveUp(enum ExitCode error);
|
|||
extern _X_EXPORT int TimeSinceLastInputEvent(void);
|
||||
|
||||
/* strcasecmp.c */
|
||||
#if NEED_STRCASECMP
|
||||
#ifndef HAVE_STRCASECMP
|
||||
#define strcasecmp xstrcasecmp
|
||||
extern _X_EXPORT int xstrcasecmp(const char *s1, const char *s2);
|
||||
#endif
|
||||
|
||||
#if NEED_STRNCASECMP
|
||||
#ifndef HAVE_STRNCASECMP
|
||||
#define strncasecmp xstrncasecmp
|
||||
extern _X_EXPORT int xstrncasecmp(const char *s1, const char *s2, size_t n);
|
||||
#endif
|
||||
|
||||
#if NEED_STRCASESTR
|
||||
#ifndef HAVE_STRCASESTR
|
||||
#define strcasestr xstrcasestr
|
||||
extern _X_EXPORT char *xstrcasestr(const char *s, const char *find);
|
||||
#endif
|
||||
|
||||
#ifndef HAS_STRLCPY
|
||||
#ifndef HAVE_STRLCPY
|
||||
extern _X_EXPORT size_t strlcpy(char *dst, const char *src, size_t siz);
|
||||
extern _X_EXPORT size_t strlcat(char *dst, const char *src, size_t siz);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -29,7 +29,4 @@
|
|||
/* XKB output dir for compiled keymaps. */
|
||||
#undef XKM_OUTPUT_DIR
|
||||
|
||||
/* Do not have `strcasecmp'. */
|
||||
#undef NEED_STRCASECMP
|
||||
|
||||
#endif /* _XKB_CONFIG_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue