[GH-ISSUE #612] Bogus information in ./configure --help #281

Closed
opened 2026-10-14 02:59:43 +07:00 by bsakaguchi · 12 comments
Owner

Originally created by @magnumripper on GitHub (Jun 1, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/612

We should try to mute this part of ./configure --help from being generated:

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

Eventually we'll support JOHN_SYSTEMWIDE which might use some of the above but until then it should just be muted.

Originally created by @magnumripper on GitHub (Jun 1, 2014). Original GitHub issue: https://github.com/openwall/john/issues/612 We should try to mute this part of `./configure --help` from being generated: ``` Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc. You can specify an installation prefix other than `/usr/local' using `--prefix', for instance `--prefix=$HOME'. ``` Eventually we'll support JOHN_SYSTEMWIDE which might use some of the above but until then it should just be muted.
bsakaguchi 2026-10-14 02:59:43 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (Jun 1, 2014):

If we can't turn it off I guess we could use something like AC_PREFIX_DEFAULT([../run])

<!-- gh-comment-id:44788111 --> @magnumripper commented on GitHub (Jun 1, 2014): If we can't turn it off I guess we could use something like `AC_PREFIX_DEFAULT([../run])`
Author
Owner

@magnumripper commented on GitHub (Oct 2, 2014):

That helped a little but we still got bogus information about bin/lib dirs.

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [../run]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`../run/bin', `../run/lib' etc.  You can specify
an installation prefix other than `../run' using `--prefix',
for instance `--prefix=$HOME'.
<!-- gh-comment-id:57638611 --> @magnumripper commented on GitHub (Oct 2, 2014): That helped a little but we still got bogus information about bin/lib dirs. ``` Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [../run] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, `make install' will install all the files in `../run/bin', `../run/lib' etc. You can specify an installation prefix other than `../run' using `--prefix', for instance `--prefix=$HOME'. ```
Author
Owner

@magnumripper commented on GitHub (Oct 2, 2014):

Hmm, also, if doing a ./configure --prefix=/tmp I believe everything will still go to ../run. So this text is lying.

<!-- gh-comment-id:57638920 --> @magnumripper commented on GitHub (Oct 2, 2014): Hmm, also, if doing a `./configure --prefix=/tmp` I believe everything will still go to ../run. So this text is lying.
Author
Owner

@jfoug commented on GitHub (Nov 25, 2014):

./configure -help=short really is what would be better to have shown as default, and ./configure --help=long should show what the 'current' --help shows, BUT how do we do that??

<!-- gh-comment-id:64298262 --> @jfoug commented on GitHub (Nov 25, 2014): ./configure -help=short really is what would be better to have shown as default, and ./configure --help=long should show what the 'current' --help shows, BUT how do we do that??
Author
Owner

@jfoug commented on GitHub (Dec 6, 2014):

Why don't we look at installing john properly?

<!-- gh-comment-id:65895809 --> @jfoug commented on GitHub (Dec 6, 2014): Why don't we look at installing john properly?
Author
Owner

@jfoug commented on GitHub (Dec 6, 2014):

All the help shit is hard coded strings, we have little/no control over them, unless we edit code, or post process the configure file.

I found this in /usr/share/autoconf/autoconf/general.m4

Scratch that. I AM able to do this. Please list EXACTLY what you want the text to be, and I will make it so!!!! All I have to do is to make our own replacement m4 macro for m4_define([_AC_INIT_HELP]

So I will do it exactly like it is today, and then we can edit this.

<!-- gh-comment-id:65919978 --> @jfoug commented on GitHub (Dec 6, 2014): All the help shit is hard coded strings, we have little/no control over them, unless we edit code, or post process the configure file. I found this in /usr/share/autoconf/autoconf/general.m4 Scratch that. I AM able to do this. Please list EXACTLY what you want the text to be, and I will make it so!!!! All I have to do is to make our own replacement m4 macro for m4_define([_AC_INIT_HELP] So I will do it exactly like it is today, and then we can edit this.
Author
Owner

@jfoug commented on GitHub (Dec 6, 2014):

with the above commit, we are now in full control of the help message. I will start stripping out stuff we do not want at all. We MUST document where the original code is located at, so that we can later revert this, IF we do a proper GNU install package.

<!-- gh-comment-id:65920229 --> @jfoug commented on GitHub (Dec 6, 2014): with the above commit, we are now in full control of the help message. I will start stripping out stuff we do not want at all. We MUST document where the original code is located at, so that we can later revert this, IF we do a proper GNU install package.
Author
Owner

@jfoug commented on GitHub (Dec 7, 2014):

What do you think @magnumripper @frank-dittrich

$ ./configure --help
`configure' configures john 1.8.0.2-bleeding-jumbo to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:


By default, `make install' will install all the files in `../run'
You can specify location other than `../run' using `--prefix',
for instance `--prefix=$HOME/bin'.


System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-memdbg         Enable memdbg memory debugging (safe level)
  --enable-memdbg-ex      Enable memdbg memory debugging (expanded level)
  --disable-openmp-for-fast-formats
                          Disable OpenMP for fast formats
  --enable-mpi            Use OpenMPI
  --enable-rexgen         Use rexgen library if present
  --disable-cuda          Do not use CUDA
  --disable-pcap          Do not build helpers depending on PCAP
  --disable-native-tests  Do not use test build system for target features
  --disable-native-macro  Do not use -march=native even if a valid compiler
                          flag. Native tests still can be run in this mode
  --enable-ln-s           Use ln -s vs symlink.c wrappers (Cygwin only)
  --disable-pkg-config    do not use pkg-config for any probing tests
  --enable-nt-full-unicode
                          support 4-byte UTF-8 for MS formats
  --disable-openmp        do not use OpenMP
  --disable-opencl        do not use OpenCL

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-icc-asm          Use ICC pre-built asm files for intrisic SIMD code.
                          Default: no
  --without-openssl       Do not use Openssl (CommonCrypto must be enabled)
  --with-commoncrypto     Use CommonCrypto
  --with-endian=little|big
                          Set endianness for target if it doesn't detect
                          properly

Some influential environment variables:
  CFLAGS_EXTRA
              additional CFLAGS for -Woptions and other things, not used
              during ./configure but put in resulting Makefile
  YASM        full pathname of yasm (for optional AES-NI support)
  AS          full pathname of assembler to use
  LD          full pathname of linker to use
  MPICC       MPI C compiler command
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  PKG_CONFIG  path to pkg-config utility
  PKG_CONFIG_PATH
              directories to add to pkg-config's search path
  PKG_CONFIG_LIBDIR
              path overriding pkg-config's built-in search path
  OPENSSL_CFLAGS
              C compiler flags for OPENSSL, overriding pkg-config
  OPENSSL_LIBS
              linker flags for OPENSSL, overriding pkg-config
  NVCC        full pathname of CUDA compiler
  NVCC_GCC    full pathname of CUDA compiler's gcc backend
  NVIDIA_CUDA base path of CUDA installation

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <john-users mailing list at openwall.com>.
<!-- gh-comment-id:65920527 --> @jfoug commented on GitHub (Dec 7, 2014): What do you think @magnumripper @frank-dittrich ``` $ ./configure --help `configure' configures john 1.8.0.2-bleeding-jumbo to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print `checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for `--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or `..'] Installation directories: By default, `make install' will install all the files in `../run' You can specify location other than `../run' using `--prefix', for instance `--prefix=$HOME/bin'. System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-memdbg Enable memdbg memory debugging (safe level) --enable-memdbg-ex Enable memdbg memory debugging (expanded level) --disable-openmp-for-fast-formats Disable OpenMP for fast formats --enable-mpi Use OpenMPI --enable-rexgen Use rexgen library if present --disable-cuda Do not use CUDA --disable-pcap Do not build helpers depending on PCAP --disable-native-tests Do not use test build system for target features --disable-native-macro Do not use -march=native even if a valid compiler flag. Native tests still can be run in this mode --enable-ln-s Use ln -s vs symlink.c wrappers (Cygwin only) --disable-pkg-config do not use pkg-config for any probing tests --enable-nt-full-unicode support 4-byte UTF-8 for MS formats --disable-openmp do not use OpenMP --disable-opencl do not use OpenCL Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-icc-asm Use ICC pre-built asm files for intrisic SIMD code. Default: no --without-openssl Do not use Openssl (CommonCrypto must be enabled) --with-commoncrypto Use CommonCrypto --with-endian=little|big Set endianness for target if it doesn't detect properly Some influential environment variables: CFLAGS_EXTRA additional CFLAGS for -Woptions and other things, not used during ./configure but put in resulting Makefile YASM full pathname of yasm (for optional AES-NI support) AS full pathname of assembler to use LD full pathname of linker to use MPICC MPI C compiler command CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path OPENSSL_CFLAGS C compiler flags for OPENSSL, overriding pkg-config OPENSSL_LIBS linker flags for OPENSSL, overriding pkg-config NVCC full pathname of CUDA compiler NVCC_GCC full pathname of CUDA compiler's gcc backend NVIDIA_CUDA base path of CUDA installation Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to <john-users mailing list at openwall.com>. ```
Author
Owner

@jfoug commented on GitHub (Dec 7, 2014):

WOOT WOOT. I did not think this was doable, BUT, m4 is yer friend (from hell), lol.

<!-- gh-comment-id:65920610 --> @jfoug commented on GitHub (Dec 7, 2014): WOOT WOOT. I did not think this was doable, BUT, m4 is yer friend (from hell), lol.
Author
Owner

@magnumripper commented on GitHub (Dec 7, 2014):

Awesome! I did not think this was impossible.

Why don't we look at installing john properly?

Sooner or later we might want to do that, but that will be yet another huge difference between core and Jumbo that will be hard to merge. On the other hand, Solar hasn't committed a bit in 16 months...

<!-- gh-comment-id:65921635 --> @magnumripper commented on GitHub (Dec 7, 2014): Awesome! I did not think this was impossible. > Why don't we look at installing john properly? Sooner or later we might want to do that, but that will be yet another huge difference between core and Jumbo that will be hard to merge. On the other hand, Solar hasn't committed a bit in 16 months...
Author
Owner

@magnumripper commented on GitHub (Dec 7, 2014):

I did not think this was impossible.

That should have read "I did not think this was possible" !

<!-- gh-comment-id:65922002 --> @magnumripper commented on GitHub (Dec 7, 2014): > I did not think this was impossible. That should have read "I did not think this was possible" !
Author
Owner

@jfoug commented on GitHub (Dec 7, 2014):

Neither did I, but o tracked down where it was created, then simply cut the macro out and pasted the whole macro at very start of configure.ac and was shocked when it worked. This was not a Google find. I searched a lot and found nothing. Even now, after learning the name of the macro _AC_INIT_HELP, I find absolutely nothing on Google. So I think this is a '0 day' solution to this.

<!-- gh-comment-id:65922636 --> @jfoug commented on GitHub (Dec 7, 2014): Neither did I, but o tracked down where it was created, then simply cut the macro out and pasted the whole macro at very start of configure.ac and was shocked when it worked. This was not a Google find. I searched a lot and found nothing. Even now, after learning the name of the macro _AC_INIT_HELP, I find absolutely nothing on Google. So I think this is a '0 day' solution to this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#281
No description provided.