regex.h revision 1.1.1.1
1157188Sache/* Generic Regex */ 221308Sache/* $OpenLDAP: pkg/ldap/include/ac/regex.h,v 1.17.2.3 2008/02/11 23:26:40 kurt Exp $ */ 321308Sache/* This work is part of OpenLDAP Software <http://www.openldap.org/>. 4157188Sache * 521308Sache * Copyright 1998-2008 The OpenLDAP Foundation. 621308Sache * All rights reserved. 721308Sache * 821308Sache * Redistribution and use in source and binary forms, with or without 921308Sache * modification, are permitted only as authorized by the OpenLDAP 1021308Sache * Public License. 1158314Sache * 1221308Sache * A copy of this license is available in file LICENSE in the 1321308Sache * top-level directory of the distribution or, alternatively, at 1421308Sache * <http://www.OpenLDAP.org/license.html>. 1521308Sache */ 1621308Sache 1721308Sache#ifndef _AC_REGEX_H_ 1821308Sache#define _AC_REGEX_H_ 1921308Sache 2021308Sache#ifdef HAVE_SYS_TYPES_H 2121308Sache#include <sys/types.h> 2258314Sache#endif 23123279Sobrien 2421308Sache#ifndef HAVE_REGEX_H 2521308Sache/* NO POSIX REGEX!! 2621308Sache * You'll need to install a POSIX compatible REGEX library. 2747563Sache * Either Henry Spencer's or GNU regex will do. 2847563Sache */ 2947563Sache#error "No POSIX REGEX available." 3047563Sache 3121308Sache#elif HAVE_GNUREGEX_H 3247563Sache /* system has GNU gnuregex.h */ 33119614Sache# include <gnuregex.h> 3421308Sache#else 3521308Sache /* have regex.h, assume it's POSIX compliant */ 3621308Sache# include <regex.h> 3747563Sache#endif /* regex.h */ 38119614Sache 3921308Sache#endif /* _AC_REGEX_H_ */ 4021308Sache