=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2018/configure.ac,v retrieving revision 1.3 retrieving revision 1.5 diff -u -p -r1.3 -r1.5 --- OpenXM_contrib2/asir2018/configure.ac 2020/01/08 17:10:53 1.3 +++ OpenXM_contrib2/asir2018/configure.ac 2022/09/07 03:17:44 1.5 @@ -1,4 +1,4 @@ -dnl $OpenXM: OpenXM_contrib2/asir2018/configure.ac,v 1.2 2019/11/12 10:53:22 kondoh Exp $ +dnl $OpenXM: OpenXM_contrib2/asir2018/configure.ac,v 1.4 2020/01/09 02:34:59 ohara Exp $ AC_INIT(asir,1.16) AC_CONFIG_SRCDIR([LICENSE]) @@ -17,14 +17,11 @@ AC_PROG_MKDIR_P AC_PATH_XTRA -AC_ARG_ENABLE([shared], -[ --enable-shared enable linking shared libraries. [[no]]], -[enable_shared=yes],[enable_shared=no]) +AC_ARG_ENABLE([static_asir], +[ --enable-static-asir force to link statically with libasir. [[yes]]], +[enable_static_asir=${enableval}],[enable_static_asir=yes]) +AM_CONDITIONAL([ASIR_STATIC],[test "${enable_static_asir}" = yes]) -if test "${enable_shared:=no}" != no ; then - true -fi - if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then if test "${ac_cv_prog_cc_g}" = yes; then CFLAGS="-g -O" @@ -95,13 +92,13 @@ if test ${enable_interval:=no} != no ; then fi fi -dnl AC_ARG_ENABLE([fep], -dnl [ --enable-fep enable fep for human interfaces. [[no]]], -dnl [enable_fep=yes],[enable_fep=no]) +AC_ARG_ENABLE([fep], +[ --enable-fep enable fep for human interfaces. [[no]]], +[enable_fep=yes],[enable_fep=no]) if test "${enable_fep:=no}" != no ; then AC_DEFINE([FEP]) - FEPLIB="-lreadline -ltermcap" + FEPLIB="-L${prefix}/lib -ledit" fi AC_SUBST([FEPLIB])