Remove configure.in to configure.ac
This is the extension expected by all non-ancient autoconf versions.
This commit is contained in:
parent
5c3a41139c
commit
a921f558d9
22 changed files with 36 additions and 37 deletions
3
.gitattributes
vendored
3
.gitattributes
vendored
|
|
@ -25,7 +25,6 @@
|
|||
*.h.in eol=lf
|
||||
*.m4 eol=lf
|
||||
*.sh eol=lf
|
||||
configure.in eol=lf
|
||||
Makefile.am eol=lf
|
||||
Makefile.in eol=lf
|
||||
makefile.unx eol=lf
|
||||
|
|
@ -33,7 +32,7 @@ makefile.unx eol=lf
|
|||
config.guess eol=lf
|
||||
config.sub eol=lf
|
||||
configure eol=lf
|
||||
configure.in eol=lf
|
||||
configure.ac eol=lf
|
||||
|
||||
# Ignore changes in the generated files.
|
||||
build/upmake -diff
|
||||
|
|
|
|||
|
|
@ -33955,7 +33955,7 @@ CP_P = cp -p
|
|||
ALL_DIST: distrib_clean
|
||||
mkdir _dist_dir
|
||||
mkdir $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/configure.in $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/configure.ac $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/configure $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/autoconf_inc.m4 $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/wxwin.m4 $(DISTDIR)
|
||||
|
|
@ -34145,9 +34145,9 @@ ALL_GUI_DIST: ALL_DIST
|
|||
|
||||
BASE_DIST: ALL_DIST INTL_DIST
|
||||
# make --disable-gui the default
|
||||
rm $(DISTDIR)/configure.in
|
||||
rm $(DISTDIR)/configure.ac
|
||||
sed 's/DEFAULT_wxUSE_GUI=yes/DEFAULT_wxUSE_GUI=no/' \
|
||||
$(WXDIR)/configure.in > $(DISTDIR)/configure.in
|
||||
$(WXDIR)/configure.ac > $(DISTDIR)/configure.ac
|
||||
rm $(DISTDIR)/configure
|
||||
sed 's/DEFAULT_wxUSE_GUI=yes/DEFAULT_wxUSE_GUI=no/' \
|
||||
$(WXDIR)/configure > $(DISTDIR)/configure
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
dnl ---------------------------------------------------------------------------
|
||||
dnl
|
||||
dnl Macros for configure.in for wxWindows by Robert Roebling, Phil Blecker,
|
||||
dnl Macros for configure.ac for wxWindows by Robert Roebling, Phil Blecker,
|
||||
dnl Vadim Zeitlin and Ron Lee
|
||||
dnl
|
||||
dnl This script is under the wxWindows licence.
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ dnl
|
|||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Lots of compiler & linker detection code contained here was taken from
|
||||
dnl wxWidgets configure.in script (see https://www.wxwidgets.org)
|
||||
dnl wxWidgets configure script (see https://www.wxwidgets.org)
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
|
@ -658,7 +658,7 @@ AC_DEFUN([AC_BAKEFILE_PRECOMP_HEADERS],
|
|||
dnl ---------------------------------------------------------------------------
|
||||
dnl AC_BAKEFILE([autoconf_inc.m4 inclusion])
|
||||
dnl
|
||||
dnl To be used in configure.in of any project using Bakefile-generated mks
|
||||
dnl To be used in configure.ac of any project using Bakefile-generated mks
|
||||
dnl
|
||||
dnl Behaviour can be modified by setting following variables:
|
||||
dnl BAKEFILE_CHECK_BASICS set to "no" if you don't want bakefile to
|
||||
|
|
@ -716,7 +716,7 @@ AC_DEFUN([AC_BAKEFILE],
|
|||
$1
|
||||
|
||||
if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
|
||||
AC_MSG_ERROR([No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?])
|
||||
AC_MSG_ERROR([No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.ac wasn't updated (see the documentation)?])
|
||||
fi
|
||||
|
||||
if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
|
||||
|
|
|
|||
|
|
@ -59,8 +59,8 @@ autoconf_inc.m4 Makefile.in: $(BAKEFILES)
|
|||
cd build/bakefiles && \
|
||||
$(BAKEFILE_GEN) -f autoconf
|
||||
|
||||
# Run configure whenever configure.in, aclocal.m4 or autoconf_inc.m4 is updated
|
||||
configure: configure.in aclocal.m4 autoconf_inc.m4
|
||||
# Run configure whenever configure.ac, aclocal.m4 or autoconf_inc.m4 is updated
|
||||
configure: configure.ac aclocal.m4 autoconf_inc.m4
|
||||
$(AUTOCONF)
|
||||
|
||||
ACLOCAL_SOURCES = \
|
||||
|
|
@ -74,6 +74,6 @@ ACLOCAL_SOURCES = \
|
|||
build/aclocal/visibility.m4
|
||||
|
||||
# Run aclocal whenever acinclude or one of our local m4s is updated.
|
||||
aclocal.m4: configure.in acinclude.m4 $(ACLOCAL_SOURCES)
|
||||
aclocal.m4: configure.ac acinclude.m4 $(ACLOCAL_SOURCES)
|
||||
$(ACLOCAL) -I build/aclocal
|
||||
|
||||
|
|
|
|||
|
|
@ -415,7 +415,7 @@ compiled .lib files and setup.h under the lib/ toplevel directory.
|
|||
<option name="SAMPLES_CXXFLAGS"/>
|
||||
<option name="USE_WEBVIEW_WEBKIT2"/>
|
||||
|
||||
<!-- see configure.in; it's required by some samples on Mac OS X -->
|
||||
<!-- see configure.ac; it's required by some samples on Mac OS X -->
|
||||
<option name="HEADER_PAD_OPTION"/>
|
||||
|
||||
<set var="TOP_SRCDIR">$(top_srcdir)/</set>
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ CP_P = cp -p
|
|||
ALL_DIST: distrib_clean
|
||||
mkdir _dist_dir
|
||||
mkdir $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/configure.in $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/configure.ac $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/configure $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/autoconf_inc.m4 $(DISTDIR)
|
||||
$(CP_P) $(WXDIR)/wxwin.m4 $(DISTDIR)
|
||||
|
|
@ -265,9 +265,9 @@ ALL_GUI_DIST: ALL_DIST
|
|||
|
||||
BASE_DIST: ALL_DIST INTL_DIST
|
||||
# make --disable-gui the default
|
||||
rm $(DISTDIR)/configure.in
|
||||
rm $(DISTDIR)/configure.ac
|
||||
sed 's/DEFAULT_wxUSE_GUI=yes/DEFAULT_wxUSE_GUI=no/' \
|
||||
$(WXDIR)/configure.in > $(DISTDIR)/configure.in
|
||||
$(WXDIR)/configure.ac > $(DISTDIR)/configure.ac
|
||||
rm $(DISTDIR)/configure
|
||||
sed 's/DEFAULT_wxUSE_GUI=yes/DEFAULT_wxUSE_GUI=no/' \
|
||||
$(WXDIR)/configure > $(DISTDIR)/configure
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ would like to build, separated by commas. Valid values are:
|
|||
TIP: autoconf Project Type
|
||||
---------------------------
|
||||
You may notice that in the sample folder, there is also a file called
|
||||
configure.in. That file is the input for autoconf, which creates the configure
|
||||
configure.ac. That file is the input for autoconf, which creates the configure
|
||||
scripts that you often see when you build software from source on Unix-based
|
||||
platforms. People use configure scripts because they make your Unix makefiles
|
||||
more portable by automatically detecting the right libraries and commands to
|
||||
|
|
@ -126,7 +126,7 @@ use on the user's machine and OS. This is necessary because there are many
|
|||
Unix-based operating systems and they all are slightly different in various
|
||||
small ways.
|
||||
|
||||
Bakefile does not generate a configure or configure.in script, so if you want
|
||||
Bakefile does not generate a configure or configure.ac script, so if you want
|
||||
to use configure scripts with your Unix-based software, you will need to learn
|
||||
how to use autoconf. Unfortunately, this topic deserves a book all its own and
|
||||
is beyond the scope of this tutorial, but a book on the subject can be found
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Format-specific notes:
|
|||
|
||||
* autoconf:
|
||||
Beware that you have to use WX_CONFIG_OPTIONS and
|
||||
WX_CONFIG_CHECK in your configure.in to get at least the
|
||||
WX_CONFIG_CHECK in your configure.ac to get at least the
|
||||
WX_CPPFLAGS, WX_CFLAGS, WX_CXXFLAGS, WX_LIBS option values defined.
|
||||
|
||||
To detect the WX_* option values typically you also want to use
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ Successfully tagged autoconf-for-wx:latest
|
|||
|
||||
## Run
|
||||
|
||||
Use the following command to update `configure` from `configure.in`:
|
||||
Use the following command to update `configure` from `configure.ac`:
|
||||
|
||||
```shell
|
||||
$ docker run -v `pwd`:/wx --rm autoconf-for-wx
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ def getWxRelease(wxRoot=None):
|
|||
global wxRootDir
|
||||
wxRoot = wxRootDir
|
||||
|
||||
configureText = open(os.path.join(wxRoot, "configure.in"), "r").read()
|
||||
configureText = open(os.path.join(wxRoot, "configure.ac"), "r").read()
|
||||
majorVersion = re.search("wx_major_version_number=(\d+)", configureText).group(1)
|
||||
minorVersion = re.search("wx_minor_version_number=(\d+)", configureText).group(1)
|
||||
|
||||
|
|
|
|||
2
configure
vendored
2
configure
vendored
|
|
@ -43083,7 +43083,7 @@ EOF
|
|||
|
||||
|
||||
if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
|
||||
as_fn_error $? "No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" "$LINENO" 5
|
||||
as_fn_error $? "No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.ac wasn't updated (see the documentation)?" "$LINENO" 5
|
||||
fi
|
||||
|
||||
if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ AC_PREREQ(2.58)
|
|||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl
|
||||
dnl Top-level configure.in for wxWidgets by Robert Roebling, Phil Blecker,
|
||||
dnl Top-level configure.ac for wxWidgets by Robert Roebling, Phil Blecker,
|
||||
dnl Vadim Zeitlin and Ron Lee
|
||||
dnl
|
||||
dnl This script is under the wxWindows licence.
|
||||
|
|
@ -75,7 +75,7 @@ compatibility is maintained between point releases (those with the same
|
|||
major.minor number).
|
||||
|
||||
A known break in binary compatibility should be addressed by updating
|
||||
the library soname (see the notes in configure.in for details on this).
|
||||
the library soname (see the notes in configure.ac for details on this).
|
||||
|
||||
--------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ instructions there.
|
|||
Here is the list of files that need to be updated:
|
||||
|
||||
- build/bakefiles/version.bkl {C:R:A} [NOT UPDATED AUTOMATICALLY]
|
||||
- configure.in
|
||||
- configure.ac
|
||||
- build/osx/wxvers.xcconfig
|
||||
- docs/changes.txt
|
||||
- docs/readme.txt (date needs manual editing) [NOT UPDATED AUTOMATICALLY]
|
||||
|
|
|
|||
|
|
@ -180,11 +180,11 @@ d) Modify multilib.bkl to add files to multilib build: add foolib and foodll
|
|||
|
||||
e) Regenerate all makefiles (don't forget to run autoconf)
|
||||
|
||||
f) Update configure.in and wx-config.in to contain information about
|
||||
f) Update configure.ac and wx-config.in to contain information about
|
||||
the library and needed linker flags:
|
||||
* Add "foo" to `BUILT_WX_LIBS` in configure.in.
|
||||
* Add "foo" to `BUILT_WX_LIBS` in configure.ac.
|
||||
* If appropriate, but it rarely is, so normally this should _not_ be done,
|
||||
add "foo" to either `STD_BASE_LIBS` or `STD_GUI_LIBS` in configure.in.
|
||||
add "foo" to either `STD_BASE_LIBS` or `STD_GUI_LIBS` in configure.ac.
|
||||
* If wxFoo links against additional libraries, add necessary linker
|
||||
flags and libraries to ldflags_foo and ldlibs_foo variables in
|
||||
wx-config.in (both are optional).
|
||||
|
|
|
|||
|
|
@ -36,15 +36,15 @@ samples/ with demos/ where needed).
|
|||
compiler (run `bakefile --help` to get the list of possible values).
|
||||
Again, see `how-to-add-files-to-build-system.md` for more information.
|
||||
|
||||
4. Modify configure.in Unix compilation:
|
||||
4. Modify configure.ac Unix compilation:
|
||||
- if the sample should only be built if `wxUSE_FOO` is enabled, locate
|
||||
the test for `wxUSE_FOO = yes` in configure.in and add a line
|
||||
the test for `wxUSE_FOO = yes` in configure.ac and add a line
|
||||
`SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS foo"` under it
|
||||
- if it should be always built, locate the line `if test $wxUSE_GUI = yes`
|
||||
near the end of configure.in and modify the assignment to
|
||||
near the end of configure.ac and modify the assignment to
|
||||
`SAMPLES_SUBDIRS` to include "foo" (put in alphabetical order)
|
||||
|
||||
After this, regenerate configure from configure.in
|
||||
After this, regenerate configure from configure.ac
|
||||
by running "autoconf" on a Unix system in the corresponding directory.
|
||||
|
||||
5. Modify `build/cmake/samples/CMakeLists.txt` to include the sample in
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ The following files need to be modified when adding a new `wxUSE_FOO`:
|
|||
These options won't be defined for the other ports, so shouldn't be added to
|
||||
the common `include/wx/chkconf.h` but to this file instead.
|
||||
|
||||
- `configure.in`
|
||||
- `configure.ac`
|
||||
|
||||
Here you need to add `DEFAULT_wxUSE_FOO` define. It should be added in the
|
||||
block beginning after `WX_ARG_CACHE_INIT` line and should default to "no" for
|
||||
|
|
|
|||
|
|
@ -393,7 +393,7 @@ automatically using wx-config
|
|||
2. The other way creates a project within the source code
|
||||
directories of wxWidgets. For this endeavour, you'll need
|
||||
GNU autoconf version 2.14 and add an entry to your Makefile.in
|
||||
to the bottom of the configure.in script and run autoconf
|
||||
to the bottom of the configure.ac script and run autoconf
|
||||
and configure before you can type make.
|
||||
|
||||
Further notes by Julian Smart {#x11_notes}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ msg "Updating version to $ver_string_new"
|
|||
|
||||
ver_for_sed="$ver_major\.$ver_minor\.$ver_release"
|
||||
|
||||
run_sed configure.in \
|
||||
run_sed configure.ac \
|
||||
"/^AC_INIT/s/$ver_for_sed/$ver_string_new/" \
|
||||
"s/^wx_release_number=$ver_release/wx_release_number=$ver_release_new/" \
|
||||
"s/^wx_subrelease_number=.*$/wx_subrelease_number=0/"
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ wxTangoArtProvider::CreateBitmapBundle(const wxArtID& id,
|
|||
|
||||
// Note: when adding elements here, try to also add the corresponding
|
||||
// icon to src/gtk/artgtk.cpp as the GTK art provider is supposed
|
||||
// to have all the icons the Tango provider has, see configure.in.
|
||||
// to have all the icons the Tango provider has, see configure.ac.
|
||||
};
|
||||
|
||||
#undef BITMAP_DATA
|
||||
|
|
|
|||
2
wxwin.m4
2
wxwin.m4
|
|
@ -37,7 +37,7 @@ dnl ===========================================================================
|
|||
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Macros for wxWidgets detection. Typically used in configure.in as:
|
||||
dnl Macros for wxWidgets detection. Typically used in configure.ac as:
|
||||
dnl
|
||||
dnl AC_ARG_ENABLE(...)
|
||||
dnl AC_ARG_WITH(...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue