![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
It seems that you've removed the possibility to add an argument to --with-openssl option of the configure script. Currently I'm maintaining two systems where the openssl is not somewhere in the standard paths and thus the only way to compile with SSL seems to be by setting appropriate CFLAGS, CXXGLAGS and LDFLAGS before running the configure script. |
#3
| |||
| |||
|
|
This happens because AC_CHECK_HEADERSis implemented using the preprocessor (cpp/gcc -E) without adding CFLAGS/CXXFLAGS: |
|
If you are not going to change this back to the old behaviour you should consider using AC_ARG_ENABLE instead of AC_ARG_WITH since the second is intended to be used when there is an optional (or not) argument to be passed (--with-package=arg) while the first is intended to be used to enable or disable a feature (--enable-feature). |
#4
| |||
| |||
|
|
Stefanos Harhalakis wrote: It seems that you've removed the possibility to add an argument to --with-openssl option of the configure script. Currently I'm maintaining two systems where the openssl is not somewhere in the standard paths and thus the only way to compile with SSL seems to be by setting appropriate CFLAGS, CXXGLAGS and LDFLAGS before running the configure script. Yes, that's the standard way to go about it. No need to duplicate that functionality. |
#5
| |||
| |||
|
|
Stefanos Harhalakis wrote: This happens because AC_CHECK_HEADERSis implemented using the preprocessor (cpp/gcc -E) without adding CFLAGS/CXXFLAGS: The correct variable is CPPFLAGS. Actually, you can also use --with-includes, but this is only in PostgreSQL, so I suggest you get used to CPPFLAGS, because that works everywhere. |
|
If you are not going to change this back to the old behaviour you should consider using AC_ARG_ENABLE instead of AC_ARG_WITH since the second is intended to be used when there is an optional (or not) argument to be passed (--with-package=3Darg) while the first is intended to be used to enable or disable a feature (--enable-feature). This is wrong. Both variants can accept an argument or not. The difference is only in the spelling. |

#6
| |||
| |||
|
|
It seems that the problem is in src/template/linux: $ cat src/template/linux=20 # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise CPPFLAGS="-D_GNU_SOURCE" which is beeing sourced by configure.in. Changing this to CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" solves the problem. |
#7
| |||
| |||
|
|
Stefanos Harhalakis <v13 (AT) it (DOT) teithe.gr> writes: It seems that the problem is in src/template/linux: $ cat src/template/linux=3D20 # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise CPPFLAGS=3D"-D_GNU_SOURCE" which is beeing sourced by configure.in. Changing this to CPPFLAGS=3D"$CPPFLAGS -D_GNU_SOURCE" solves the problem. Hmm, good point (and I see template/hpux is committing the same sin). For CFLAGS, configure.in takes pains to not let the template file override a user-supplied setting. Should we do the same for CPPFLAGS, or just apply the quick-and-dirty patch suggested by Stefanos to these two templates? |
![]() |
| Thread Tools | |
| Display Modes | |
| |