dnl
dnl Author: Thomas E. Dickey
dnl
-dnl $Id: configure.in,v 1.26 2011/03/26 23:54:05 tom Exp $
+dnl $Id: configure.in,v 1.30 2011/03/31 22:49:22 tom Exp $
dnl Process this file with autoconf to produce a configure script.
dnl
dnl See http://invisible-island.net/autoconf/ for additional information.
dnl
dnl ---------------------------------------------------------------------------
AC_PREREQ(2.13.20020210)
-AC_REVISION($Revision: 1.26 $)
+AC_REVISION($Revision: 1.30 $)
AC_INIT(gen/gen.c)
AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
# if we find pkg-config, check if we should install the ".pc" files.
CF_PKG_CONFIG
-if test "$PKG_CONFIG" != no ; then
+if test "$PKG_CONFIG" != none ; then
AC_MSG_CHECKING(if we should install .pc files for $PKG_CONFIG)
# Leave this as something that can be overridden in the environment.
### Use "--without-normal --with-shared" to allow the default model to be
### shared, for example.
cf_list_models=""
+
+AC_MSG_CHECKING(if you want to build shared C-objects)
+AC_ARG_WITH(shared,
+ [ --with-shared generate shared C-objects (needed for --with-ada-sharedlib)],
+ [with_shared=$withval],
+ [with_shared=no])
+AC_MSG_RESULT($with_shared)
+test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
+
AC_MSG_CHECKING(for specified models)
test -z "$cf_list_models" && cf_list_models=normal
AC_MSG_RESULT($cf_list_models)
CF_SHARED_OPTS
+# The test/sample programs in the original tree link using rpath option.
+# Make it optional for packagers.
+if test -n "$LOCAL_LDFLAGS"
+then
+ AC_MSG_CHECKING(if you want to link sample programs with rpath option)
+ AC_ARG_ENABLE(rpath-link,
+ [ --enable-rpath-link link sample programs with rpath option],
+ [with_rpath_link=$enableval],
+ [with_rpath_link=yes])
+ AC_MSG_RESULT($with_rpath_link)
+ if test "$with_rpath_link" = no
+ then
+ LOCAL_LDFLAGS=
+ LOCAL_LDFLAGS2=
+ fi
+fi
+
###############################################################################
CF_HELP_MESSAGE(Fine-Tuning Your Configuration:)
esac
CF_GNAT_GENERICS
+ CF_GNAT_SIGINT
CF_GNAT_PRAGMA_UNREF
CF_GNAT_PROJECTS