Code

Updated templates for GPLv2 OR 2-clause BSD license.
[template.git] / configure.ac
index 6cc54b018e7e7368a72fe98119e631efb165791d..26bfa8a0d49cce4482a3d7676248ee06dc71b973 100644 (file)
@@ -1,4 +1,44 @@
 dnl Process this file with autoconf to produce a configure script.
+dnl
+dnl This is the foobar configure script.
+dnl
+dnl Copyright (C) 2010 Sebastian Harl <sh@tokkee.org>
+dnl
+dnl This program is free software; you can redistribute it and/or modify it
+dnl under the terms of the GNU General Public License as published by the
+dnl Free Software Foundation; only version 2 of the License is applicable.
+dnl
+dnl This program is distributed in the hope that it will be useful, but
+dnl WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+dnl General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU General Public License along
+dnl with this program; if not, write to the Free Software Foundation, Inc.,
+dnl 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+dnl OR:
+dnl All rights reserved.
+dnl
+dnl Redistribution and use in source and binary forms, with or without
+dnl modification, are permitted provided that the following conditions
+dnl are met:
+dnl 1. Redistributions of source code must retain the above copyright
+dnl    notice, this list of conditions and the following disclaimer.
+dnl 2. Redistributions in binary form must reproduce the above copyright
+dnl    notice, this list of conditions and the following disclaimer in the
+dnl    documentation and/or other materials provided with the distribution.
+dnl
+dnl THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+dnl ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+dnl TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+dnl PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
+dnl CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+dnl EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+dnl PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+dnl OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+dnl WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+dnl ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 AC_INIT([foobar],[m4_esyscmd(./version-gen.sh)],
                [Sebastian Harl <sh@tokkee.org>])
@@ -30,10 +70,13 @@ test_cc_flags() {
        return $ret
 }
 
-dnl Optionally stick to standard C99 and POSIX.1 2001 as close as possible.
+m4_divert_once([HELP_ENABLE], [
+Build options:])
+
+dnl Optionally stick to standard C99 and POSIX:2001 as close as possible.
 AC_ARG_ENABLE([standards],
                AS_HELP_STRING([--enable-standards],
-                               [Enable standards compliance mode]),
+                               [C99 / POSIX standards compliance mode @<:@default=no@:>@]),
                [enable_standards="$enableval"],
                [enable_standards="no"])
 
@@ -66,7 +109,7 @@ AC_DEFINE([_FORTIFY_SOURCE], 2,
                [Define to enable protection against static sized buffer overflows.])
 AC_ARG_ENABLE([hardening],
                AS_HELP_STRING([--disable-hardening],
-                               [Disable hardening options]),
+                               [hardening options @<:@default=yes@:>@]),
                [enable_hardening="$enableval"],
                [enable_hardening="yes"])
 
@@ -94,7 +137,7 @@ fi
 dnl Strict checking for potential problems.
 AC_ARG_ENABLE([strict-checks],
                AS_HELP_STRING([--disable-strict-checks],
-                               [Disable strict compiler checks]),
+                               [strict compiler checks @<:@default=yes@:>@]),
                [enable_strict_checks="$enableval"],
                [enable_strict_checks="yes"])