Back to index

openldap  2.4.31
regex.h
Go to the documentation of this file.
00001 /* Generic Regex */
00002 /* $OpenLDAP$ */
00003 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
00004  *
00005  * Copyright 1998-2012 The OpenLDAP Foundation.
00006  * All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted only as authorized by the OpenLDAP
00010  * Public License.
00011  *
00012  * A copy of this license is available in file LICENSE in the
00013  * top-level directory of the distribution or, alternatively, at
00014  * <http://www.OpenLDAP.org/license.html>.
00015  */
00016 
00017 #ifndef _AC_REGEX_H_
00018 #define _AC_REGEX_H_
00019 
00020 #ifdef HAVE_SYS_TYPES_H
00021 #include <sys/types.h>
00022 #endif
00023 
00024 #ifndef HAVE_REGEX_H
00025 /*     NO POSIX REGEX!!
00026  *  You'll need to install a POSIX compatible REGEX library.
00027  *  Either Henry Spencer's or GNU regex will do.
00028  */
00029 #error "No POSIX REGEX available."
00030 
00031 #elif HAVE_GNUREGEX_H
00032        /* system has GNU gnuregex.h */
00033 #      include <gnuregex.h>
00034 #else
00035        /* have regex.h, assume it's POSIX compliant */
00036 #      include <regex.h>
00037 #endif /* regex.h */
00038 
00039 #endif /* _AC_REGEX_H_ */