@@ -12,9 +12,6 @@ dnl start; this is used to generate config/unconfig.h.
1212AH_BOTTOM ( [
1313/* Begin unconfig.h */] )
1414
15- dnl Save initial CFLAGS, to see if -g -O2 came from configure or not
16- pa_init_cflags="$CFLAGS"
17-
1815dnl This prevents us from running Wine and thinking we are not
1916dnl cross-compiling when in fact we are; running Wine here is at
2017dnl the best very slow and doesn't buy us a single thing at all.
@@ -27,35 +24,29 @@ AC_CANONICAL_HOST
2724dnl Enable any available C extensions
2825AC_PROG_CC
2926AC_USE_SYSTEM_EXTENSIONS
30- AC_SYS_LARGEFILE
31- PA_ADD_CFLAGS([ -std=c17] , [ ] , [ ] ,
32- [ PA_ADD_CFLAGS([ -std=c11] , [ ] , [ ] ,
33- [ PA_ADD_CFLAGS([ -std=c99] )] )] )
34-
35- dnl If the user did not specify a CFLAGS default, change default
36- dnl to -O0 for debugging
37- PA_ARG_DISABLED([ optimization] ,
38- [ compile without optimization (-O0) to help debugging] ,
39- [ pa_no_optimize=true] )
27+ PA_ADD_CPPFLAGS([ -std=c17] , [ ] , [ ] ,
28+ [ PA_ADD_CPPFLAGS([ -std=c11] , [ ] , [ ] ,
29+ [ PA_ADD_CPPFLAGS([ -std=c99] )] )] )
4030
41- dnl Other programs
42- pa_no_optimize=false
43-
44- dnl Compile and link with dwarf debug
31+ dnl Compile and link with gdb debug extensions
4532PA_ARG_ENABLED([ gdb] ,
46- [ disable optimization and compile with extra debug information for GDB debugger] ,
47- [ PA_ADD_CFLAGS([ -ggdb3] )
48- pa_no_optimize=true] )
33+ [ compile with extra debug information for GDB debugger] ,
34+ [ PA_ADD_CFLAGS([ -ggdb3] )] )
4935
50- AS_IF ( [ $pa_no_optimize] ,
51- [ PA_ADD_CFLAGS([ -O0] )
52- PA_ADD_CFLAGS([ -fno-omit-frame-pointer] )] )
36+ dnl Disable optimization
37+ PA_ARG_DISABLED([ optimization] ,
38+ [ compile without optimization (-O0) to help debugging] ,
39+ [ PA_ADD_CFLAGS([ -O0] )
40+ PA_ADD_CFLAGS([ -fno-omit-frame-pointer] )] )
5341
5442dnl Profiling
5543PA_ARG_ENABLED([ profiling] ,
5644 [ compile with profiling (-pg option)] ,
5745 [ PA_ADD_CFLAGS([ -pg] )] )
5846
47+ dnl Large files
48+ AC_SYS_LARGEFILE
49+
5950dnl Abort on panic
6051PA_ARG_ENABLED([ panic-abort] ,
6152 [ call abort() on panic to trap in the debugger] ,
@@ -104,10 +95,10 @@ AC_PROG_MAKE_SET
10495AC_PROG_INSTALL
10596AC_PROG_MKDIR_P
10697
107- AC_CHECK_PROGS ( NROFF , nroff , false )
108- AC_CHECK_PROGS ( ASCIIDOC , asciidoc , false )
109- AC_CHECK_PROGS ( XMLTO , xmlto , false )
110- AC_CHECK_PROGS ( XZ , xz , false )
98+ AC_CHECK_PROGS ( [ NROFF] , nroff , false )
99+ AC_CHECK_PROGS ( [ ASCIIDOC] , asciidoc , false )
100+ AC_CHECK_PROGS ( [ XMLTO] , xmlto , false )
101+ AC_CHECK_PROGS ( [ XZ ] , xz , false )
111102
112103dnl Check for progs needed for manpage generation
113104MANPAGES=manpages
0 commit comments