Skip to content

Commit 692712c

Browse files
Whissizimmerle
authored andcommitted
configure: Move verbose_output declaration up to the beginning
Macros like "find_curl" are using "verbose_output" variable but because some of them are called before we define the variable we are seeing errors like ./configure: line 13855: test: : integer expression expected This commit will fix the problem by moving the "verbose_output" declaration up to the beginning so that the variable is available for every macro.
1 parent c729b6d commit 692712c

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

configure.ac

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,22 @@ AC_SUBST(MSC_REGRESSION_DOCROOT_DIR)
7070

7171
### Configure Options
7272

73+
# Verbose output
74+
AC_ARG_ENABLE(verbose-output,
75+
AS_HELP_STRING([--enable-verbose-output],
76+
[Enable more verbose configure output.]),
77+
[
78+
if test "$enableval" != "no"; then
79+
verbose_output=1
80+
else
81+
verbose_output=0
82+
fi
83+
],
84+
[
85+
verbose_output=0
86+
])
87+
88+
7389
#OS type
7490

7591
AC_CANONICAL_HOST
@@ -410,20 +426,6 @@ AC_ARG_ENABLE(errors,
410426
report_errors=1
411427
])
412428

413-
# Verbose output
414-
AC_ARG_ENABLE(verbose-output,
415-
AS_HELP_STRING([--enable-verbose-output],
416-
[Enable more verbose configure output.]),
417-
[
418-
if test "$enableval" != "no"; then
419-
verbose_output=1
420-
else
421-
verbose_output=0
422-
fi
423-
],
424-
[
425-
verbose_output=0
426-
])
427429

428430
# Strict Compile
429431
AC_ARG_ENABLE(strict-compile,

0 commit comments

Comments
 (0)