Skip to content

Commit c0c7c3f

Browse files
committed
xrdp: unify inconsistent mixed use of
* configure params * configure options * configure string
1 parent be05afb commit c0c7c3f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ SUBDIRS = \
6767
$(XRDPVRDIR)
6868

6969
distclean-local:
70-
-rm -f configure_params.h
70+
-rm -f xrdp_configure_options.h

configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ echo " libdir $libdir"
398398
echo " bindir $bindir"
399399
echo " sysconfdir $sysconfdir"
400400

401-
# configure_params.h will be written to the build directory, not the source directory
402-
echo '#define CONFIGURE_STRING \' > ./configure_params.h
403-
./config.status --config | xargs -n 1 | sed -e 's/^/" /' -e 's/$/\\n" \\/' >> ./configure_params.h
404-
echo '""' >> ./configure_params.h
401+
# xrdp_configure_options.h will be written to the build directory, not the source directory
402+
echo '#define XRDP_CONFIGURE_OPTIONS \' > ./xrdp_configure_options.h
403+
./config.status --config | xargs -n 1 | sed -e 's/^/" /' -e 's/$/\\n" \\/' >> ./xrdp_configure_options.h
404+
echo '""' >> ./xrdp_configure_options.h
405405

xrdp/xrdp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "xrdp.h"
2626
#include "log.h"
27-
#include "configure_params.h"
27+
#include "xrdp_configure_options.h"
2828

2929
#if !defined(PACKAGE_VERSION)
3030
#define PACKAGE_VERSION "???"
@@ -57,9 +57,9 @@ print_version(void)
5757
g_writeln(" See https://github.com/neutrinolabs/xrdp for more information.");
5858
g_writeln("%s", "");
5959

60-
#if defined(CONFIGURE_STRING)
60+
#if defined(XRDP_CONFIGURE_OPTIONS)
6161
g_writeln(" Configure options:");
62-
g_writeln("%s", CONFIGURE_STRING);
62+
g_writeln("%s", XRDP_CONFIGURE_OPTIONS);
6363
#endif
6464

6565
g_writeln(" Compiled with %s", get_openssl_version());

0 commit comments

Comments
 (0)