diff options
author | nytpu <alex@nytpu.com> | 2021-06-02 13:13:03 -0600 |
---|---|---|
committer | nytpu <alex@nytpu.com> | 2021-06-02 13:13:03 -0600 |
commit | 8f6161eb16e549a7a5849f3d42d378fdd4a3466a (patch) | |
tree | e95d810d3f0decfcfb4cfd03e85d0fc815c1e1fc /configure | |
parent | add tests to gitignore (diff) | |
download | ed-8f6161eb16e549a7a5849f3d42d378fdd4a3466a.tar.bz2 ed-8f6161eb16e549a7a5849f3d42d378fdd4a3466a.zip |
fixup makefile and configure
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -40,13 +40,14 @@ for opt in "$@"; do echo echo "Options and variables: [defaults in brackets]" echo " -h, --help display this help text" - echo " --prefix=DIR install into DIR [/usr]" + echo " --prefix=DIR install into DIR [/usr/local]" echo " --bindir=DIR location to install executables [\$(PREFIX)/bin]" echo " --mandir=DIR location to install man pages [\$(PREFIX)/share/man]" echo " --cc=COMPILER command to invoke the C11 compiler [cc]" - echo " --cflags=FLAGS command line options for the C compiler [-Wall -Wextra -Wfatal-errors -Wno-missing-field-initializers -Wno-unused-parameter -std=c11 -O2]" + echo " --cflags=FLAGS command line options for the C compiler [-Wall -Wextra -pedantic -Wfatal-errors -std=c11 -Wno-missing-field-initializers -Wno-unused-parameter -Werror=return-type]" echo " --ldflags=FLAGS command line options for the linker []" echo " --pkgconfig=COMMAND command to run to configure packages [pkg-config]" + exit 0 ;; --prefix=*) echo "PREFIX = ${opt#*=}" ;; --bindir=*) echo "BINDIR = ${opt#*=}" ;; @@ -55,6 +56,9 @@ for opt in "$@"; do --cflags=*) echo "CFLAGS = ${opt#*=}" ;; --ldflags=*) echo "LDFLAGS = ${opt#*=}" ;; --pkg-config=*) pkgconfig=${opt#*=} ;; - *) echo "warning: unsupported option ${opt}" >&2 ;; + *) + echo "warning: unsupported option ${opt}" >&2 + exit 1 + ;; esac done |