/[libtool]/libtool/configure.ac
ViewVC logotype

Diff of /libtool/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by gary, Sat Sep 22 14:20:17 2001 UTC revision 1.6 by gary, Sat Oct 6 15:35:17 2001 UTC
# Line 1  Line 1 
1  ## Process this file with autoconf to create configure. -*- autoconf -*-  ## Process this file with autoconf to create configure. -*- autoconf -*-
2    # Copyright 2001  Free Software Foundation, Inc.
3    #
4    # This program is free software; you can redistribute it and/or modify
5    # it under the terms of the GNU General Public License as published by
6    # the Free Software Foundation; either version 2 of the License, or
7    # (at your option) any later version.
8    #
9    # This program is distributed in the hope that it will be useful,
10    # but WITHOUT ANY WARRANTY; without even the implied warranty of
11    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    # GNU General Public License for more details.
13    #
14    # You should have received a copy of the GNU General Public License
15    # along with this program; if not, write to the Free Software
16    # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17    # 02111-1307  USA
18    
19    
20    ## FIXME: Is this really new enough? ##
21  AC_PREREQ(2.50)  AC_PREREQ(2.50)
22    
23    
24    
25    ## ------------------------ ##
26    ## Autoconf initialisation. ##
27    ## ------------------------ ##
28  AC_INIT([libtool], [1.4c], [bug-libtool@gnu.org])  AC_INIT([libtool], [1.4c], [bug-libtool@gnu.org])
29  AC_CONFIG_SRCDIR([ltmain.in])  AC_CONFIG_SRCDIR([ltmain.in])
30    
31  AM_INIT_AUTOMAKE(libtool, 1.4c)  
32    
33    ## ---------------------------------------- ##
34    ## Display a configure time version banner. ##
35    ## ---------------------------------------- ##
36    
37  # This is a sanity check so we can see which version is used in bug reports.  # This is a sanity check so we can see which version is used in bug reports.
38  # It is assumed that we only want to see the date extension for cvs libtool  # It is assumed that we only want to see the date extension for cvs libtool
39  # versions (i.e. "odd" letters) and not actual alpha releases.  # versions (i.e. "odd" letters) and not actual alpha releases.
40  TIMESTAMP=  TIMESTAMP=
41  case "$VERSION" in  case AC_PACKAGE_VERSION in
42    [*[acegikmoqsuwy])]    [*[acegikmoqsuwy])]
43      TIMESTAMP=`${CONFIG_SHELL} ${srcdir}/mkstamp < ${srcdir}/ChangeLog`      TIMESTAMP=`${CONFIG_SHELL} ${srcdir}/mkstamp < ${srcdir}/ChangeLog`
44      banner="Configuring $PACKAGE $VERSION$TIMESTAMP"      AS_BOX([Configuring AC_PACKAGE_TARNAME AC_PACKAGE_VERSION$TIMESTAMP])
     dashes=`echo "$banner" | sed 's/./-/g'`  
   
     # Display an obvious version banner  
     echo  
     echo $dashes  
     echo "$banner"  
     echo $dashes  
45      echo      echo
46      ;;      ;;
47  esac  esac
48  AC_SUBST(TIMESTAMP)  AC_SUBST([TIMESTAMP])
49    
50    
51    
52    ## ------------------------------- ##
53    ## Libtool specific configuration. ##
54    ## ------------------------------- ##
55  pkgdatadir='${datadir}'"/${PACKAGE}"  pkgdatadir='${datadir}'"/${PACKAGE}"
56  AC_SUBST(pkgdatadir) # automake does not need this, but libtoolize does  AC_SUBST([pkgdatadir]) # automake does not need this, but libtoolize does
57    
58  aclocaldir='${datadir}/aclocal'  aclocaldir='${datadir}/aclocal'
59  AC_SUBST(aclocaldir)  AC_SUBST([aclocaldir])
60    
61    AC_ARG_ENABLE(ltdl-install,
62        [AC_HELP_STRING([--disable-ltdl-install], [do not install libltdl])])
63    if test x"${enable_ltdl_install+set}" != xset; then
64      enable_ltdl_install=yes
65      ac_configure_args="$ac_configure_args --enable-ltdl-install"
66    fi
67    AC_CONFIG_SUBDIRS([libltdl])
68    
69    # all subdirectories that are configured on demand, but that must be
70    # included in the distribution
71    CONF_SUBDIRS="cdemo pdemo demo depdemo mdemo tagdemo"
72    AC_SUBST([CONF_SUBDIRS])
73    
74    ACINCLUDE_M4_LIST="${srcdir}/acinclude.m4"
75    DIST_MAKEFILE_LIST=
76    for dir in $CONF_SUBDIRS; do
77      ACINCLUDE_M4_LIST="$ACINCLUDE_M4_LIST ${srcdir}/$dir/acinclude.m4"
78      DIST_MAKEFILE_LIST="$DIST_MAKEFILE_LIST$dir/Makefile "
79    done
80    AC_SUBST([ACINCLUDE_M4_LIST])
81    AC_SUBST([DIST_MAKEFILE_LIST])
82    
83    
84    
85    ## ------------------------ ##
86    ## Automake Initialisation. ##
87    ## ------------------------ ##
88    AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION)
89    
90    
91    
92    ## ---------------- ##
93    ## compiler checks. ##
94    ## ---------------- ##
95    
96  # Use the specified CC and LD  # Use the specified CC and LD
97  AC_PROG_CC  AC_PROG_CC
   
98  AM_PROG_LD  AM_PROG_LD
99  AC_SUBST(LD)  AC_SUBST(LD)
100  AM_PROG_NM  AM_PROG_NM
# Line 52  LT_AC_PROG_RC Line 113  LT_AC_PROG_RC
113  AM_CONDITIONAL(HAVE_RC, [test "x$RC" != xno])  AM_CONDITIONAL(HAVE_RC, [test "x$RC" != xno])
114    
115    
 # Declare win32 dll support  
 AC_LIBTOOL_WIN32_DLL  
116    
117  # Check for dlopen support  ## ----------------------- ##
118    ## Libtool initialisation. ##
119    ## ----------------------- ##
120  AC_LIBTOOL_DLOPEN  AC_LIBTOOL_DLOPEN
121    AC_LIBTOOL_WIN32_DLL
122  AC_PROG_LIBTOOL  AC_PROG_LIBTOOL
123    
 AC_ARG_ENABLE(ltdl-install,  
 [  --disable-ltdl-install  do not install libltdl])  
 if test x"${enable_ltdl_install+set}" != xset; then  
   enable_ltdl_install=yes  
   ac_configure_args="$ac_configure_args --enable-ltdl-install"  
 fi  
 AC_CONFIG_SUBDIRS(libltdl)  
   
 # all subdirectories that are configured on demand, but that must be  
 # included in the distribution  
 CONF_SUBDIRS="cdemo pdemo demo depdemo mdemo tagdemo"  
 AC_SUBST(CONF_SUBDIRS)  
124    
 ACINCLUDE_M4_LIST="${srcdir}/acinclude.m4"  
 DIST_MAKEFILE_LIST=  
 for dir in $CONF_SUBDIRS; do  
   ACINCLUDE_M4_LIST="$ACINCLUDE_M4_LIST ${srcdir}/$dir/acinclude.m4"  
   DIST_MAKEFILE_LIST="$DIST_MAKEFILE_LIST$dir/Makefile "  
 done  
 AC_SUBST(ACINCLUDE_M4_LIST)  
 AC_SUBST(DIST_MAKEFILE_LIST)  
125    
126    ## -------- ##
127    ## Outputs. ##
128    ## -------- ##
129  AC_CONFIG_FILES([Makefile doc/Makefile tests/Makefile])  AC_CONFIG_FILES([Makefile doc/Makefile tests/Makefile])
130  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26