[svn-commits] branch russell/make_menuconfig - r7930 /team/russell/make_menuconfig/autoconf/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Jan 9 21:25:10 CST 2006


Author: russell
Date: Mon Jan  9 21:25:07 2006
New Revision: 7930

URL: http://svn.digium.com/view/asterisk?rev=7930&view=rev
Log:
add initial autoconf stuff, courtesy of Dancho Lazarov

Added:
    team/russell/make_menuconfig/autoconf/
    team/russell/make_menuconfig/autoconf/Makefile.am
    team/russell/make_menuconfig/autoconf/README
    team/russell/make_menuconfig/autoconf/autoconfig.h.in
    team/russell/make_menuconfig/autoconf/configure.ac
    team/russell/make_menuconfig/autoconf/menuselect.in

Added: team/russell/make_menuconfig/autoconf/Makefile.am
URL: http://svn.digium.com/view/asterisk/team/russell/make_menuconfig/autoconf/Makefile.am?rev=7930&view=auto
==============================================================================
--- team/russell/make_menuconfig/autoconf/Makefile.am (added)
+++ team/russell/make_menuconfig/autoconf/Makefile.am Mon Jan  9 21:25:07 2006
@@ -1,0 +1,1 @@
+z = @PBX_OSTYPE@

Added: team/russell/make_menuconfig/autoconf/README
URL: http://svn.digium.com/view/asterisk/team/russell/make_menuconfig/autoconf/README?rev=7930&view=auto
==============================================================================
--- team/russell/make_menuconfig/autoconf/README (added)
+++ team/russell/make_menuconfig/autoconf/README Mon Jan  9 21:25:07 2006
@@ -1,0 +1,20 @@
+
+
+Installation instructions.
+
+
+1. make a directory named 'autoconf' in the root of the asterisk code base
+2. unpack the tarbal in the very same directory
+
+3.1. aclocal
+3.2. automake --foreign --add-missing --copy
+3.3. autoconf
+
+4. ./configure
+
+5. The output of the configure script is in two files:
+
+- menuselect - existence of the modules/libraries
+- autconfig.h -  existence of the header files
+
+

Added: team/russell/make_menuconfig/autoconf/autoconfig.h.in
URL: http://svn.digium.com/view/asterisk/team/russell/make_menuconfig/autoconf/autoconfig.h.in?rev=7930&view=auto
==============================================================================
--- team/russell/make_menuconfig/autoconf/autoconfig.h.in (added)
+++ team/russell/make_menuconfig/autoconf/autoconfig.h.in Mon Jan  9 21:25:07 2006
@@ -1,0 +1,583 @@
+/* config.h.in.  Generated from configure.ac by autoheader.  */
+
+/* Define to 1 if the `closedir' function returns void instead of `int'. */
+#undef CLOSEDIR_VOID
+
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
+   systems. This function is required for `alloca.c' support on those systems.
+   */
+#undef CRAY_STACKSEG_END
+
+/* Define to 1 if using `alloca.c'. */
+#undef C_ALLOCA
+
+/* Define to 1 if you have the `alarm' function. */
+#undef HAVE_ALARM
+
+/* Define to 1 if you have `alloca', as a function or macro. */
+#undef HAVE_ALLOCA
+
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
+   */
+#undef HAVE_ALLOCA_H
+
+/* Define to 1 if you have the <arpa/inet.h> header file. */
+#undef HAVE_ARPA_INET_H
+
+/* Define to 1 if you have the `atexit' function. */
+#undef HAVE_ATEXIT
+
+/* Define to 1 if you have the `bzero' function. */
+#undef HAVE_BZERO
+
+/* Define to 1 if your system has a working `chown' function. */
+#undef HAVE_CHOWN
+
+/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
+   */
+#undef HAVE_DIRENT_H
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
+#undef HAVE_DOPRNT
+
+/* Define to 1 if you have the `dup2' function. */
+#undef HAVE_DUP2
+
+/* Define to 1 if you have the `endpwent' function. */
+#undef HAVE_ENDPWENT
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#undef HAVE_FCNTL_H
+
+/* Define to 1 if you have the `floor' function. */
+#undef HAVE_FLOOR
+
+/* Define to 1 if you have the `fork' function. */
+#undef HAVE_FORK
+
+/* Define to 1 if you have the `ftruncate' function. */
+#undef HAVE_FTRUNCATE
+
+/* Define to 1 if you have the `getcwd' function. */
+#undef HAVE_GETCWD
+
+/* Define to 1 if you have the `gethostbyname' function. */
+#undef HAVE_GETHOSTBYNAME
+
+/* Define to 1 if you have the `gethostname' function. */
+#undef HAVE_GETHOSTNAME
+
+/* Define to 1 if you have the `getpagesize' function. */
+#undef HAVE_GETPAGESIZE
+
+/* Define to 1 if you have the `gettimeofday' function. */
+#undef HAVE_GETTIMEOFDAY
+
+/* Define to 1 if you have the `inet_ntoa' function. */
+#undef HAVE_INET_NTOA
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the `isascii' function. */
+#undef HAVE_ISASCII
+
+/* Define to 1 if you have the `asound' library (-lasound). */
+#undef HAVE_LIBASOUND
+
+/* Define to 1 if you have the `c' library (-lc). */
+#undef HAVE_LIBC
+
+/* Define to 1 if you have the `crypto' library (-lcrypto). */
+#undef HAVE_LIBCRYPTO
+
+/* Define to 1 if you have the `db' library (-ldb). */
+#undef HAVE_LIBDB
+
+/* Define to 1 if you have the `dl' library (-ldl). */
+#undef HAVE_LIBDL
+
+/* Define to 1 if you have the `expat' library (-lexpat). */
+#undef HAVE_LIBEXPAT
+
+/* Define to 1 if you have the `h323_FreeBSD_x86_r' library
+   (-lh323_FreeBSD_x86_r). */
+#undef HAVE_LIBH323_FREEBSD_X86_R
+
+/* Define to 1 if you have the `h323_linux_x86_r' library
+   (-lh323_linux_x86_r). */
+#undef HAVE_LIBH323_LINUX_X86_R
+
+/* Define to 1 if you have the `h323_NetBSD_x86_r' library
+   (-lh323_NetBSD_x86_r). */
+#undef HAVE_LIBH323_NETBSD_X86_R
+
+/* Define to 1 if you have the `h323_OpenBSD_x86_r' library
+   (-lh323_OpenBSD_x86_r). */
+#undef HAVE_LIBH323_OPENBSD_X86_R
+
+/* Define to 1 if you have the `kdecore' library (-lkdecore). */
+#undef HAVE_LIBKDECORE
+
+/* Define to 1 if you have the `kdeui' library (-lkdeui). */
+#undef HAVE_LIBKDEUI
+
+/* Define to 1 if you have the `m' library (-lm). */
+#undef HAVE_LIBM
+
+/* Define to 1 if you have the `mfcr2' library (-lmfcr2). */
+#undef HAVE_LIBMFCR2
+
+/* Define to 1 if you have the `nbs' library (-lnbs). */
+#undef HAVE_LIBNBS
+
+/* Define to 1 if you have the `ncurses' library (-lncurses). */
+#undef HAVE_LIBNCURSES
+
+/* Define to 1 if you have the `newt' library (-lnewt). */
+#undef HAVE_LIBNEWT
+
+/* Define to 1 if you have the `nsl' library (-lnsl). */
+#undef HAVE_LIBNSL
+
+/* Define to 1 if you have the `odbc' library (-lodbc). */
+#undef HAVE_LIBODBC
+
+/* Define to 1 if you have the `ogg' library (-logg). */
+#undef HAVE_LIBOGG
+
+/* Define to 1 if you have the `ossaudio' library (-lossaudio). */
+#undef HAVE_LIBOSSAUDIO
+
+/* Define to 1 if you have the `popt' library (-lpopt). */
+#undef HAVE_LIBPOPT
+
+/* Define to 1 if you have the `pq' library (-lpq). */
+#undef HAVE_LIBPQ
+
+/* Define to 1 if you have the <libpq-fe.h> header file. */
+#undef HAVE_LIBPQ_FE_H
+
+/* Define to 1 if you have the `pri' library (-lpri). */
+#undef HAVE_LIBPRI
+
+/* Define to 1 if you have the `pthread' library (-lpthread). */
+#undef HAVE_LIBPTHREAD
+
+/* Define to 1 if you have the `pt_FreeBSD_x86_r' library
+   (-lpt_FreeBSD_x86_r). */
+#undef HAVE_LIBPT_FREEBSD_X86_R
+
+/* Define to 1 if you have the `pt_linux_x86_r' library (-lpt_linux_x86_r). */
+#undef HAVE_LIBPT_LINUX_X86_R
+
+/* Define to 1 if you have the `pt_NetBSD_x86_r' library (-lpt_NetBSD_x86_r).
+   */
+#undef HAVE_LIBPT_NETBSD_X86_R
+
+/* Define to 1 if you have the `pt_OpenBSD_x86_r' library
+   (-lpt_OpenBSD_x86_r). */
+#undef HAVE_LIBPT_OPENBSD_X86_R
+
+/* Define to 1 if you have the `qt' library (-lqt). */
+#undef HAVE_LIBQT
+
+/* Define to 1 if you have the `resolv' library (-lresolv). */
+#undef HAVE_LIBRESOLV
+
+/* Define to 1 if you have the `rt' library (-lrt). */
+#undef HAVE_LIBRT
+
+/* Define to 1 if you have the `socket' library (-lsocket). */
+#undef HAVE_LIBSOCKET
+
+/* Define to 1 if you have the `sqlite' library (-lsqlite). */
+#undef HAVE_LIBSQLITE
+
+/* Define to 1 if you have the `ssl' library (-lssl). */
+#undef HAVE_LIBSSL
+
+/* Define to 1 if you have the `t' library (-lt). */
+#undef HAVE_LIBT
+
+/* Define to 1 if you have the `tds' library (-ltds). */
+#undef HAVE_LIBTDS
+
+/* Define to 1 if you have the `tonezone' library (-ltonezone). */
+#undef HAVE_LIBTONEZONE
+
+/* Define to 1 if you have the `vorbis' library (-lvorbis). */
+#undef HAVE_LIBVORBIS
+
+/* Define to 1 if you have the `vorbisenc' library (-lvorbisenc). */
+#undef HAVE_LIBVORBISENC
+
+/* Define to 1 if you have the `vpb' library (-lvpb). */
+#undef HAVE_LIBVPB
+
+/* Define to 1 if you have the `z' library (-lz). */
+#undef HAVE_LIBZ
+
+/* Define to 1 if you have the <limits.h> header file. */
+#undef HAVE_LIMITS_H
+
+/* Define to 1 if you have the <linux/zaptel.h> header file. */
+#undef HAVE_LINUX_ZAPTEL_H
+
+/* Define to 1 if you have the <locale.h> header file. */
+#undef HAVE_LOCALE_H
+
+/* Define to 1 if you have the `localtime_r' function. */
+#undef HAVE_LOCALTIME_R
+
+/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
+   to 0 otherwise. */
+#undef HAVE_MALLOC
+
+/* Define to 1 if you have the <malloc.h> header file. */
+#undef HAVE_MALLOC_H
+
+/* Define to 1 if you have the `memchr' function. */
+#undef HAVE_MEMCHR
+
+/* Define to 1 if you have the `memmove' function. */
+#undef HAVE_MEMMOVE
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the `memset' function. */
+#undef HAVE_MEMSET
+
+/* Define to 1 if you have the `mkdir' function. */
+#undef HAVE_MKDIR
+
+/* Define to 1 if you have a working `mmap' system call. */
+#undef HAVE_MMAP
+
+/* Define to 1 if you have the `munmap' function. */
+#undef HAVE_MUNMAP
+
+/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
+#undef HAVE_NDIR_H
+
+/* Define to 1 if you have the <netdb.h> header file. */
+#undef HAVE_NETDB_H
+
+/* Define to 1 if you have the <netinet/in.h> header file. */
+#undef HAVE_NETINET_IN_H
+
+/* Define to 1 if you have the <odbcinst.h> header file. */
+#undef HAVE_ODBCINST_H
+
+/* Define to 1 if you have the `pow' function. */
+#undef HAVE_POW
+
+/* Define to 1 if the system has the type `ptrdiff_t'. */
+#undef HAVE_PTRDIFF_T
+
+/* Define to 1 if you have the `putenv' function. */
+#undef HAVE_PUTENV
+
+/* Define to 1 if your system has a GNU libc compatible `realloc' function,
+   and to 0 otherwise. */
+#undef HAVE_REALLOC
+
+/* Define to 1 if you have the `regcomp' function. */
+#undef HAVE_REGCOMP
+
+/* Define to 1 if you have the `re_comp' function. */
+#undef HAVE_RE_COMP
+
+/* Define to 1 if you have the `rint' function. */
+#undef HAVE_RINT
+
+/* Define to 1 if you have the `select' function. */
+#undef HAVE_SELECT
+
+/* Define to 1 if you have the `setenv' function. */
+#undef HAVE_SETENV
+
+/* Define to 1 if you have the `socket' function. */
+#undef HAVE_SOCKET
+
+/* Define to 1 if you have the <sqlite.h> header file. */
+#undef HAVE_SQLITE_H
+
+/* Define to 1 if you have the `sqrt' function. */
+#undef HAVE_SQRT
+
+/* Define to 1 if `stat' has the bug that it succeeds when given the
+   zero-length file name argument. */
+#undef HAVE_STAT_EMPTY_STRING_BUG
+
+/* Define to 1 if stdbool.h conforms to C99. */
+#undef HAVE_STDBOOL_H
+
+/* Define to 1 if you have the <stddef.h> header file. */
+#undef HAVE_STDDEF_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* 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 `strchr' function. */
+#undef HAVE_STRCHR
+
+/* Define to 1 if you have the `strcoll' function and it is properly defined.
+   */
+#undef HAVE_STRCOLL
+
+/* Define to 1 if you have the `strcspn' function. */
+#undef HAVE_STRCSPN
+
+/* Define to 1 if you have the `strdup' function. */
+#undef HAVE_STRDUP
+
+/* Define to 1 if you have the `strerror' function. */
+#undef HAVE_STRERROR
+
+/* Define to 1 if you have the `strftime' function. */
+#undef HAVE_STRFTIME
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the `strncasecmp' function. */
+#undef HAVE_STRNCASECMP
+
+/* Define to 1 if you have the `strndup' function. */
+#undef HAVE_STRNDUP
+
+/* Define to 1 if you have the `strrchr' function. */
+#undef HAVE_STRRCHR
+
+/* Define to 1 if you have the `strspn' function. */
+#undef HAVE_STRSPN
+
+/* Define to 1 if you have the `strstr' function. */
+#undef HAVE_STRSTR
+
+/* Define to 1 if you have the `strtol' function. */
+#undef HAVE_STRTOL
+
+/* Define to 1 if `st_blksize' is member of `struct stat'. */
+#undef HAVE_STRUCT_STAT_ST_BLKSIZE
+
+/* Define to 1 if you have the <syslog.h> header file. */
+#undef HAVE_SYSLOG_H
+
+/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
+   */
+#undef HAVE_SYS_DIR_H
+
+/* Define to 1 if you have the <sys/file.h> header file. */
+#undef HAVE_SYS_FILE_H
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#undef HAVE_SYS_IOCTL_H
+
+/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
+   */
+#undef HAVE_SYS_NDIR_H
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#undef HAVE_SYS_PARAM_H
+
+/* Define to 1 if you have the <sys/select.h> header file. */
+#undef HAVE_SYS_SELECT_H
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+#undef HAVE_SYS_SOCKET_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#undef HAVE_SYS_TIME_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
+#undef HAVE_SYS_WAIT_H
+
+/* Define to 1 if you have the <tds.h> header file. */
+#undef HAVE_TDS_H
+
+/* Define to 1 if you have the <termios.h> header file. */
+#undef HAVE_TERMIOS_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the `utime' function. */
+#undef HAVE_UTIME
+
+/* Define to 1 if you have the <utime.h> header file. */
+#undef HAVE_UTIME_H
+
+/* Define to 1 if `utime(file, NULL)' sets file's timestamp to the present. */
+#undef HAVE_UTIME_NULL
+
+/* Define to 1 if you have the `vfork' function. */
+#undef HAVE_VFORK
+
+/* Define to 1 if you have the <vfork.h> header file. */
+#undef HAVE_VFORK_H
+
+/* Define to 1 if you have the `vprintf' function. */
+#undef HAVE_VPRINTF
+
+/* Define to 1 if `fork' works. */
+#undef HAVE_WORKING_FORK
+
+/* Define to 1 if `vfork' works. */
+#undef HAVE_WORKING_VFORK
+
+/* Define to 1 if you have the <zaptel.h> header file. */
+#undef HAVE_ZAPTEL_H
+
+/* Define to 1 if the system has the type `_Bool'. */
+#undef HAVE__BOOL
+
+/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
+   slash. */
+#undef LSTAT_FOLLOWS_SLASHED_SYMLINK
+
+/* Define according to your operating system type. */
+#undef Linux
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define this to be the name of the CPU of your system. */
+#undef PBX_CPU
+
+/* Define this to be the name of the OS of your system. */
+#undef PBX_OS
+
+/* Define this to be the canonical name (cpu-vendor-os) of your system. */
+#undef PBX_PLATFORM
+
+/* Define this to be the name of the vendor of your system. */
+#undef PBX_VENDOR
+
+/* Define to 1 if the C compiler supports function prototypes. */
+#undef PROTOTYPES
+
+/* Define as the return type of signal handlers (`int' or `void'). */
+#undef RETSIGTYPE
+
+/* Define to the type of arg 1 for `select'. */
+#undef SELECT_TYPE_ARG1
+
+/* Define to the type of args 2, 3 and 4 for `select'. */
+#undef SELECT_TYPE_ARG234
+
+/* Define to the type of arg 5 for `select'. */
+#undef SELECT_TYPE_ARG5
+
+/* Define to 1 if the `setvbuf' function takes the buffering type as its
+   second argument and the buffer pointer as the third, as on System V before
+   release 3. */
+#undef SETVBUF_REVERSED
+
+/* If using the C implementation of alloca, define if you know the
+   direction of stack growth for your system; otherwise it will be
+   automatically deduced at run-time.
+	STACK_DIRECTION > 0 => grows toward higher addresses
+	STACK_DIRECTION < 0 => grows toward lower addresses
+	STACK_DIRECTION = 0 => direction of growth unknown */
+#undef STACK_DIRECTION
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#undef TIME_WITH_SYS_TIME
+
+/* Define to 1 if your <sys/time.h> declares `struct tm'. */
+#undef TM_IN_SYS_TIME
+
+/* Define according to your operating system type. */
+#undef Unix
+
+/* Version number of package */
+#undef VERSION
+
+/* Define according to your operating system type. */
+#undef Win32
+
+/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
+   `char[]'. */
+#undef YYTEXT_POINTER
+
+/* Define like PROTOTYPES; this can be used by system headers. */
+#undef __PROTOTYPES
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const
+
+/* Define to `int' if <sys/types.h> doesn't define. */
+#undef gid_t
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+   calls it, or to nothing if 'inline' is not supported under any name.  */
+#ifndef __cplusplus
+#undef inline
+#endif
+
+/* Define to rpl_malloc if the replacement function should be used. */
+#undef malloc
+
+/* Define to `int' if <sys/types.h> does not define. */
+#undef mode_t
+
+/* Define to `long' if <sys/types.h> does not define. */
+#undef off_t
+
+/* Define to `int' if <sys/types.h> does not define. */
+#undef pid_t
+
+/* Define to rpl_realloc if the replacement function should be used. */
+#undef realloc
+
+/* Define to `unsigned' if <sys/types.h> does not define. */
+#undef size_t
+
+/* Define to `int' if <sys/types.h> doesn't define. */
+#undef uid_t
+
+/* Define as `fork' if `vfork' does not work. */
+#undef vfork
+
+/* Define to empty if the keyword `volatile' does not work. Warning: valid
+   code using `volatile' can become incorrect without. Disable with care. */
+#undef volatile

Added: team/russell/make_menuconfig/autoconf/configure.ac
URL: http://svn.digium.com/view/asterisk/team/russell/make_menuconfig/autoconf/configure.ac?rev=7930&view=auto
==============================================================================
--- team/russell/make_menuconfig/autoconf/configure.ac (added)
+++ team/russell/make_menuconfig/autoconf/configure.ac Mon Jan  9 21:25:07 2006
@@ -1,0 +1,412 @@
+                                               -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.59)
+
+# get version from VERSION file
+m4_define([PBX_VERSION],
+          m4_bpatsubst(m4_esyscmd([cat ../.version]),
+                       [\([0-9.]*\)\(\w\|\W\)*],
+                       [\1]))
+AC_INIT(asterisk, PBX_VERSION, bugs at asterisk.com)
+
+# cros-compile macros
+AC_CANONICAL_TARGET
+
+# check existence of the package
+AC_CONFIG_SRCDIR([../dnsmgr.c])
+
+# specifiy output header file
+AC_CONFIG_HEADER([autoconfig.h])
+
+AM_INIT_AUTOMAKE(asterisk, 1.2)
+AC_COPYRIGHT("Asterisk")
+AC_REVISION($Revision: 1.0 $)
+
+
+### ** Platform.
+AC_DEFINE_UNQUOTED(PBX_PLATFORM, "${host}",
+[Define this to be the canonical name (cpu-vendor-os) of your system.])
+AC_DEFINE_UNQUOTED(PBX_CPU, "${host_cpu}",
+[Define this to be the name of the CPU of your system.])
+AC_DEFINE_UNQUOTED(PBX_VENDOR, "${host_vendor}",
+[Define this to be the name of the vendor of your system.])
+AC_DEFINE_UNQUOTED(PBX_OS, "${host_os}",
+[Define this to be the name of the OS of your system.])
+
+AC_SUBST(PBX_PLATFORM)
+AC_SUBST(PBX_CPU)
+AC_SUBST(PBX_VENDOR)
+AC_SUBST(PBX_OS)
+
+
+# guest OS type
+case "${host_os}" in
+  cygwin*|mingw*|windows*|winnt)
+    AC_DEFINE(Win32, 1,
+              [Define according to your operating system type.])
+    PBX_OSTYPE="windows"
+    ;;
+  linux)
+    AC_DEFINE(Linux, 1,
+              [Define according to your operating system type.])
+    PBX_OSTYPE="Linux"
+    ;;
+  netbsd)
+    AC_DEFINE(NetBSD, 1,
+              [Define according to your operating system type.])
+    PBX_OSTYPE="NetBSD"
+    ;;
+  freebsd)
+    AC_DEFINE(FreeBSD, 1,
+              [Define according to your operating system type.])
+    PBX_OSTYPE="FreeBSD"
+    ;;
+  openbsd)
+    AC_DEFINE(OpenBSD, 1,
+              [Define according to your operating system type.])
+    PBX_OSTYPE="OpenBSD"
+    ;;
+  *)
+    AC_DEFINE(Unix, 1,
+              [Define according to your operating system type.])
+    PBX_OSTYPE="unix"
+   ;;
+esac
+AC_SUBST(PBX_OSTYPE)
+
+
+# turn on/off debug...
+AC_ARG_ENABLE(debug,
+	[  --enable-debug    Turn on debugging],
+	[case "${enableval}" in
+	      yes) debug=true ;;
+	      no)  debug=false ;;
+	      *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug)  ;;
+	esac])
+AM_CONDITIONAL(PBX_DEBUG, test x$debug = xtrue)
+
+
+
+#######################
+#
+#    check for the existance of the modules..
+#
+#######################
+
+#######################
+# zaptel module
+PBX_ZAPTEL=1
+# check header & lib
+AC_CHECK_HEADERS([zaptel.h linux/zaptel.h], [], [PBX_ZAPTEL=0])
+AC_SUBST(PBX_ZAPTEL)
+
+#######################
+# turn on unix ODBC..
+PBX_UNIXODBC=1
+AC_CHECK_HEADERS([odbcinst.h ${LInclude}/odbcinst.h], [], [PBX_UNIXODBC=0])
+AC_CHECK_LIB([odbc], [main], [], [PBX_UNIXODBC=0])
+AC_SUBST(PBX_UNIXODBC)
+
+#######################
+# turn on postgresql..
+PBX_PGSQL=1
+AC_CHECK_HEADERS([libpq-fe.h ${LInclude}/libpq-fe.h], [], [PBX_PGSQL=0])
+AC_CHECK_LIB([pq], [main], [], [PBX_PGSQL=0])
+AC_SUBST(PBX_PGSQL)
+
+
+#######################
+# turn on sqlite..
+PBX_SQLITE=1
+AC_CHECK_HEADERS([sqlite.h ${LInclude}/sqlite.h], [], [PBX_SQLITE=0])
+AC_CHECK_LIB([sqlite], [main], [], [PBX_SQLITE=0])
+AC_SUBST(PBX_SQLITE)
+
+
+#######################
+# turn on tds..
+PBX_FREETDS=1
+#AC_CHECK_HEADERS([tds.h ${LInclude}/tds.h], [], [PBX_FREETDS=0])
+AC_CHECK_HEADERS([tds.h], [], [PBX_FREETDS=0])
+AC_CHECK_LIB([tds], [main], [], [PBX_FREETDS=0])
+AC_SUBST(PBX_FREETDS)
+
+#######################
+# turn on ixjuser..
+PBX_IXJUSER=1
+AC_CHECK_HEADERS([ixjuser.h], [], [PBX_IXJUSER=0])
+AC_SUBST(PBX_IXJUSER)
+
+#######################
+# turn on asound..
+PBX_ASOUND=1
+AC_CHECK_HEADERS([alsa/asoundlib.h sys/asoundlib.h], [], [PBX_ASOUND=0])
+AC_CHECK_LIB([asound], [alsa_lisp], [], [PBX_ASOUND=0])
+AC_SUBST(PBX_ASOUND)
+
+####################### 
+# turn on vpb.. xxx
+PBX_VPBAPI=1
+AC_CHECK_HEADERS([vpbapy.h], [], [PBX_VPBAPI=0])
+AC_CHECK_LIB([vpb], [main], [], [PBX_VPBAPI=0])
+AC_SUBST(PBX_VPBAPI)
+
+####################### 
+# turn on nbs.. xxx
+PBX_NBS=1
+AC_CHECK_HEADERS([nbs.h], [], [PBX_NBS=0])
+AC_CHECK_LIB([nbs], [main], [], [PBX_NBS=0])
+AC_SUBST(PBX_NBS)
+
+####################### 
+# turn on oss.. xxx
+PBX_OSSAUDIO=1
+#AC_CHECK_HEADERS([.h], [], [PBX_NBS=0])
+AC_CHECK_LIB([ossaudio], [main], [], [PBX_OSSAUDIO=0])
+AC_SUBST(PBX_OSSAUDIO)
+
+
+####################### 
+# turn on libpri.. xxx
+PBX_LIBPRI=1
+AC_CHECK_HEADERS([libpri.h], [], [PBX_LIBPRI=0])
+AC_CHECK_LIB([pri], [pri_call], [], [PBX_LIBPRI=0])
+AC_SUBST(PBX_LIBPRI)
+
+
+
+####################### 
+# turn on libmfcr2.. xxx
+PBX_LIBMFCR2=1
+AC_CHECK_HEADERS([libmfcr2.h], [], [PBX_LIBMFCR2=0])
+AC_CHECK_LIB([mfcr2], [mfcr2_MakeCall], [], [PBX_LIBMFCR2=0])
+AC_SUBST(PBX_LIBMFCR2)
+
+
+####################### 
+# turn on libspeex.. xxx
+PBX_LIBSPEEX=1
+AC_CHECK_HEADERS([speex.h], [], [PBX_LIBSPEEX=0])
+AC_CHECK_LIB([speex], [speex_encode], [], [PBX_LIBSPEEX=0])
+AC_SUBST(PBX_LIBSPEEX)
+
+
+####################### 
+# turn on libvorbix.. xxx
+PBX_LIBVORBIS=1
+AC_CHECK_HEADERS([vorbis/codec.h], [], [PBX_LIBVORBIS=0])
+AC_CHECK_LIB([vorbis], [vorbis_info_init], [], [PBX_LIBVORBIS=0])
+AC_SUBST(PBX_LIBVORBIS)
+
+
+####################### 
+# turn on libosptk.. xxx
+PBX_LIBOSPTK=1
+AC_CHECK_HEADERS([osp/ospssl.h], [], [PBX_LIBOSPTK=0])
+AC_CHECK_LIB([osptk], [main], [], [PBX_LIBOSPTK=0])
+AC_SUBST(PBX_LIBOSPTK)
+
+####################### 
+# turn on libpopt.. xxx
+PBX_LIBPOPT=1
+AC_CHECK_HEADERS([popt.h], [], [PBX_LIBPOPT=0])
+AC_CHECK_LIB([popt], [poptStrerror], [], [PBX_LIBPOPT=0])
+AC_SUBST(PBX_LIBPOPT)
+
+
+####################### 
+# turn on libnewt.. xxx
+PBX_LIBNEWT=1
+AC_CHECK_HEADERS([newt.h], [], [PBX_LIBNEWT=0])
+AC_CHECK_LIB([newt], [main], [], [PBX_LIBNEWT=0])
+AC_SUBST(PBX_LIBNEWT)
+
+
+####################### 
+# turn on poll.. xxx
+PBX_POLL=1
+AC_CHECK_HEADERS([sys/poll.h], [], [PBX_POLL=0])
+AC_SUBST(PBX_POLL)
+
+
+# add target for utils directory
+AM_CONDITIONAL(SMSQ_TARGET,   [test -f /usr/include/popt.h])
+AM_CONDITIONAL(ASTMAN_TARGET, [test -f /usr/include/newt.h])
+AM_CONDITIONAL(SUN_UTIL_TARGET, [test "x${PBX_OSTYPE}" = xSunOs])
+
+
+
+############################### 
+#
+#   compiler flags
+#
+##############################
+
+if test "x${PBX_OSTYPE}" = xLinux; then
+	z_CFLAGS_DEFINE="-D_REENTRANT -D_GNU_SOURCE"
+	z_CFLAGS_WARN="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
+	z_CFLAGS_INCLUDE="-Iinclude -I../include"
+	z_CFLAGS_OPTIMIZATION="-O6 -march=${host_cpu}"
+	z_CFLAGS_DEBUG="-g"	
+
+	if test "x${PBX_PROFILE}" = xYes; then
+		z_CFLAGS_PROFILE="-pg"
+	fi
+			
+	z_CFLAGS_MISC="-fomit-frame-pointer"
+fi
+
+z_CFLAGS="${z_CFLAGS_DEFINE} ${z_CFLAGS_WARN} ${z_CFLAGS_INCLUDE} ${z_CFLAGS_OPTIMIZATION} ${z_CFLAGS_DEBUG} ${z_CFLAGS_PROFILE} ${z_CFLAGS_MISC}"
+AC_SUBST(z_CFLAGS)
+
+
+############################### 
+#
+# Checks for programs.
+#
+##############################
+
+AC_PROG_CXX
+AC_PROG_AWK
+AC_PROG_YACC
+AC_PROG_CC
+AC_PROG_LEX
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+AC_PROG_RANLIB
+
+
+############################### 
+#
+# Checks for libraries.
+#
+##############################
+
+AC_CHECK_LIB([c], [memcpy])
+AC_CHECK_LIB([crypto], [CRYPTO_malloc])
+
+# FIXME: Replace `main' with a function in `-ldb':
+AC_CHECK_LIB([db], [main])
+# FIXME: Replace `main' with a function in `-ldl':
+AC_CHECK_LIB([dl], [main])
+# FIXME: Replace `main' with a function in `-lexpat':
+AC_CHECK_LIB([expat], [main])
+# FIXME: Replace `main' with a function in `-lh323_FreeBSD_x86_r':
+AC_CHECK_LIB([h323_FreeBSD_x86_r], [main])
+# FIXME: Replace `main' with a function in `-lh323_NetBSD_x86_r':
+AC_CHECK_LIB([h323_NetBSD_x86_r], [main])
+# FIXME: Replace `main' with a function in `-lh323_OpenBSD_x86_r':
+AC_CHECK_LIB([h323_OpenBSD_x86_r], [main])
+# FIXME: Replace `main' with a function in `-lh323_linux_x86_r':
+AC_CHECK_LIB([h323_linux_x86_r], [main])
+# FIXME: Replace `main' with a function in `-lkdecore':
+AC_CHECK_LIB([kdecore], [main])
+# FIXME: Replace `main' with a function in `-lkdeui':
+AC_CHECK_LIB([kdeui], [main])
+# FIXME: Replace `main' with a function in `-lm':
+AC_CHECK_LIB([m], [main])
+# FIXME: Replace `main' with a function in `-lncurses':
+AC_CHECK_LIB([ncurses], [main])
+# FIXME: Replace `main' with a function in `-lnsl':
+AC_CHECK_LIB([nsl], [main])
+# FIXME: Replace `main' with a function in `-logg':
+AC_CHECK_LIB([ogg], [main])
+# FIXME: Replace `main' with a function in `-lpt_FreeBSD_x86_r':
+AC_CHECK_LIB([pt_FreeBSD_x86_r], [main])
+# FIXME: Replace `main' with a function in `-lpt_NetBSD_x86_r':
+AC_CHECK_LIB([pt_NetBSD_x86_r], [main])
+# FIXME: Replace `main' with a function in `-lpt_OpenBSD_x86_r':
+AC_CHECK_LIB([pt_OpenBSD_x86_r], [main])
+# FIXME: Replace `main' with a function in `-lpt_linux_x86_r':
+AC_CHECK_LIB([pt_linux_x86_r], [main])
+# FIXME: Replace `main' with a function in `-lpthread':
+AC_CHECK_LIB([pthread], [main])
+# FIXME: Replace `main' with a function in `-lqt':
+AC_CHECK_LIB([qt], [main])
+# FIXME: Replace `main' with a function in `-lresolv':
+AC_CHECK_LIB([resolv], [main])
+# FIXME: Replace `main' with a function in `-lrt':
+AC_CHECK_LIB([rt], [main])
+# FIXME: Replace `main' with a function in `-lsocket':
+AC_CHECK_LIB([socket], [main])
+# FIXME: Replace `main' with a function in `-lssl':
+AC_CHECK_LIB([ssl], [main])
+# FIXME: Replace `main' with a function in `-lt':
+AC_CHECK_LIB([t], [main])
+# FIXME: Replace `main' with a function in `-ltonezone':
+AC_CHECK_LIB([tonezone], [main])
+# FIXME: Replace `main' with a function in `-lvorbis':
+AC_CHECK_LIB([vorbis], [main])
+# FIXME: Replace `main' with a function in `-lvorbisenc':
+AC_CHECK_LIB([vorbisenc], [main])
+# FIXME: Replace `main' with a function in `-lz':
+AC_CHECK_LIB([z], [main])
+
+
+############################### 
+#
+# Checks for header files.
+#
+##############################
+
+AC_FUNC_ALLOCA
+AC_HEADER_DIRENT
+AC_HEADER_STDC
+AC_HEADER_SYS_WAIT
+AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h])
+
+
+############################### 
+#
+# Checks for typedefs, structures, and compiler characteristics.
+#
+##############################
+
+AC_HEADER_STDBOOL
+AC_C_CONST
+AC_TYPE_UID_T
+AC_C_INLINE
+AC_TYPE_MODE_T
+AC_TYPE_OFF_T
+AC_TYPE_PID_T
+AC_TYPE_SIZE_T
+AC_CHECK_MEMBERS([struct stat.st_blksize])
+AC_HEADER_TIME
+AC_STRUCT_TM
+AC_C_VOLATILE
+AC_CHECK_TYPES([ptrdiff_t])
+
+
+############################### 
+#
+# Checks for library functions.
+#
+##############################
+
+AC_FUNC_CHOWN
+AC_FUNC_CLOSEDIR_VOID
+AC_FUNC_ERROR_AT_LINE
+AC_FUNC_FORK
+#AC_FUNC_GETLOADAVG
+AC_PROG_GCC_TRADITIONAL
+AC_FUNC_MALLOC
+AC_FUNC_MEMCMP
+AC_FUNC_MKTIME
+AC_FUNC_MMAP
+AC_FUNC_REALLOC
+AC_FUNC_SELECT_ARGTYPES
+AC_FUNC_SETVBUF_REVERSED
+AC_TYPE_SIGNAL
+AC_FUNC_STAT
+AC_FUNC_STRCOLL
+AC_FUNC_STRFTIME
+AC_FUNC_STRNLEN
+AC_FUNC_UTIME_NULL
+AC_FUNC_VPRINTF
+AC_CHECK_FUNCS([atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint select setenv socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strndup strrchr strspn strstr strtol utime])
+
+
+AC_CONFIG_FILES([menuselect Makefile])
+AC_OUTPUT

Added: team/russell/make_menuconfig/autoconf/menuselect.in
URL: http://svn.digium.com/view/asterisk/team/russell/make_menuconfig/autoconf/menuselect.in?rev=7930&view=auto
==============================================================================
--- team/russell/make_menuconfig/autoconf/menuselect.in (added)
+++ team/russell/make_menuconfig/autoconf/menuselect.in Mon Jan  9 21:25:07 2006
@@ -1,0 +1,29 @@
+## modules dependant file
+
+zaptel   = @PBX_ZAPTEL@
+unixodbc = @PBX_UNIXODBC@
+pgsql    = @PBX_PGSQL@
+sqlite   = @PBX_SQLITE@
+freetds  = @PBX_FREETDS@
+
+asound   = @PBX_ASOUND@
+
+vpbapi   = @PBX_VPBAPI@ 
+nbs      = @PBX_NBS@
+ 
+ossaudio = @PBX_OSSAUDIO@
+
+libpri   = @PBX_LIBPRI@
+
+libmfcr2 = @PBX_LIBMFCR2@
+
+libspeex = @PBX_LIBSPEEX@
+
+libvorbis = @PBX_LIBVORBIS@
+
+libosptk  = @PBX_LIBOSPTK@
+
+libpopt   = @PBX_LIBPOPT@
+libnewt   = @PBX_LIBNEWT@
+
+poll   = @PBX_POLL@



More information about the svn-commits mailing list