mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
build: add an empty config.sh
This helper script will contain variables with results of configure checks, so other scripts can source it. Source it automatically in test-functions.sh, so every test can already make use of it.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -127,6 +127,7 @@ Makefile.in
|
||||
/config.h
|
||||
/config.h.in
|
||||
/config.log
|
||||
/config.sh
|
||||
/config.status
|
||||
/config.sub
|
||||
/configure
|
||||
|
||||
20
config.sh.in
Normal file
20
config.sh.in
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash -
|
||||
# (C) Copyright 2019 Red Hat Inc.
|
||||
# @configure_input@
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
# This shell script contains the results of some configure checks,
|
||||
# mostly used in other shell scripts.
|
||||
@@ -252,6 +252,7 @@ AC_CONFIG_FILES([Makefile
|
||||
common/utils/Makefile
|
||||
common/visit/Makefile
|
||||
common/windows/Makefile
|
||||
config.sh
|
||||
csharp/Makefile
|
||||
customize/Makefile
|
||||
daemon/daemon_config.ml
|
||||
|
||||
@@ -33,6 +33,9 @@ export LANG=C
|
||||
# parameters, so we eval those to define the variables.
|
||||
while [ $# -ge 1 ]; do eval "$1"; shift; done
|
||||
|
||||
# Configure check results.
|
||||
source $abs_top_builddir/config.sh
|
||||
|
||||
# Skip if $SKIP_<script_name> environment variable is set.
|
||||
# Every test should call this function first.
|
||||
skip_if_skipped ()
|
||||
|
||||
Reference in New Issue
Block a user