-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- New library file `not-parallel-configure.m4` has been created, containing the new macros `NC_THREAD_NEW()` and `NC_JOIN_THREADS()` - New macros `NC_AUTO_REQ_PROGS()` and `NM_AUTO_QUERY_PROGS()` have been created in `not-autotools.m4` - Documentation - New examples have been created (`examples/not-parallel-configure`)
- Loading branch information
Showing
57 changed files
with
2,215 additions
and
1,190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
root = true | ||
|
||
[package.json] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 2 | ||
|
||
[{**.sh,configure.ac,**/Makefile.am,src/foobar.c,src/foobar.h}] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 4 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
root = true | ||
|
||
[package.json] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 2 | ||
|
||
[{**.sh,configure.ac,**/Makefile.am}] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[src/nautilus-__REPL_IDCASE_PACKAGENAME__.c] | ||
[{**.sh,configure.ac,**/Makefile.am,src/foobar.c,src/foobar.h}] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 4 |
84 changes: 84 additions & 0 deletions
84
examples/not-autoversion/extended-example/autostuff/m4/index.m4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
dnl -*- Mode: M4; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- | ||
|
||
dnl ************************************************************************** | ||
dnl _ _ _ ___ _ _ _ | ||
dnl | \ | | | | / _ \ | | | | | | | ||
dnl | \| | ___ | |_ / /_\ \_ _| |_ ___ | |_ ___ ___ | |___ | ||
dnl | . ` |/ _ \| __| | _ | | | | __/ _ \| __/ _ \ / _ \| / __| | ||
dnl | |\ | (_) | |_ | | | | |_| | || (_) | || (_) | (_) | \__ \ | ||
dnl \_| \_/\___/ \__| \_| |_/\__,_|\__\___/ \__\___/ \___/|_|___/ | ||
dnl | ||
dnl A collection of useful m4-ish macros for GNU Autotools | ||
dnl | ||
dnl -- Released under GNU GPL3 -- | ||
dnl | ||
dnl https://github.com/madmurphy/not-autotools | ||
dnl ************************************************************************** | ||
|
||
|
||
dnl ************************************************************************** | ||
dnl NOTE: This is only a selection of macros from the **Not Autotools** | ||
dnl project without documentation. For the entire collection and the | ||
dnl documentation please refer to the project's website. | ||
dnl ************************************************************************** | ||
|
||
|
||
|
||
dnl n4_has(list, check1, if-found1[, ... checkN, if-foundN[, if-not-found]]) | ||
dnl ************************************************************************** | ||
dnl | ||
dnl Check if a list contains one or more elements | ||
dnl | ||
dnl From: not-autotools/m4/not-m4sugar.m4 | ||
dnl Version: 1.0.0 | ||
dnl | ||
m4_define([n4_has], | ||
[m4_if([$#], [0], [], [$#], [1], [], [$#], [2], [], | ||
[m4_if(m4_argn(1, $1), [$2], [$3], [$#], [3], [], [$#], [4], | ||
[m4_if(m4_count($1), [1], | ||
[$4], | ||
[n4_has(m4_dquote(m4_shift($1)), m4_shift($@))])], | ||
[m4_if(m4_count($1), [1], | ||
[n4_has([$1], m4_shift3($@))], | ||
[n4_has(m4_dquote(m4_shift($1)), [$2], [$3], | ||
[n4_has([$1], m4_shift3($@))])])])])]) | ||
|
||
|
||
dnl n4_case_in(text, list1, if-found1[, ... listN, if-foundN], [if-not-found]) | ||
dnl ************************************************************************** | ||
dnl | ||
dnl Searches for the first occurrence of `text` in each comma-separated list | ||
dnl `listN` | ||
dnl | ||
dnl From: not-autotools/m4/not-m4sugar.m4 | ||
dnl Version: 1.0.1 | ||
dnl | ||
m4_define([n4_case_in], | ||
[m4_if([$#], [0], [], [$#], [1], [], [$#], [2], [], | ||
[m4_if(m4_argn([1], $2), [$1], | ||
[$3], | ||
[m4_if(m4_count($2), [1], | ||
[m4_if([$#], [3], [], [$#], [4], | ||
[$4], | ||
[n4_case_in([$1], m4_shift3($@))])], | ||
[n4_case_in([$1], | ||
m4_dquote(m4_shift($2)), | ||
m4_shift2($@))])])])]) | ||
|
||
|
||
m4_include([autostuff/m4/not-autoversion.m4]) | ||
m4_include([autostuff/m4/not-extended-config.m4]) | ||
|
||
|
||
|
||
dnl ************************************************************************** | ||
dnl NOTE: The `NR_` prefix (which stands for "Not autoReconf") and the `NC_` | ||
dnl prefix (which stands for "Not autoConf") are used with the purpose | ||
dnl of avoiding collisions with the default Autotools prefixes `AC_`, | ||
dnl `AM_`, `AS_`, `AX_`, `LT_`. | ||
dnl ************************************************************************** | ||
|
||
|
||
|
||
dnl EOF | ||
|
Oops, something went wrong.