]> git.sur5r.net Git - openldap/blob - include/ac/regex.h
Generate #error instead of just letting the compile fail.
[openldap] / include / ac / regex.h
1 /*
2  * Generic Regex
3  */
4 /*
5  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms are permitted only
9  * as authorized by the OpenLDAP Public License.  A copy of this
10  * license is available at http://www.OpenLDAP.org/license.html or
11  * in file LICENSE in the top-level directory of the distribution.
12  */
13 #ifndef _AC_REGEX_H_
14 #define _AC_REGEX_H_
15
16 #ifdef HAVE_SYS_TYPES_H
17 #include <sys/types.h>
18 #endif
19
20 #ifndef HAVE_REGEX_H
21 /*      NO POSIX REGEX!!
22         you'll need to install a POSIX compatible REGEX library.
23         Either Henry Spencer's or GNU regex will do.
24
25         For NT: http://people.delphi.com/gjc/hs_regex.html
26 */
27 #error "No POSIX REGEX available."
28 #else
29         /* have regex.h, assume it's POSIX compliant */
30 #       include <regex.h>
31 #endif /* regex.h */
32
33 #endif /* _AC_REGEX_H_ */