This module checks, whether package uses GNU configure. If yes, asks arguments. Third party scripts can modify $gnu_configure_args for automatic inclusion to argument list.
Module requires for running: prefix gnu_make
Module defines phase: configure_check after PREPARE_CHECK
Module defines phase: configure_options after BUILD_SETENV
Module defines phase: configure_args after BUILD_SETENV
Module defines phase: configure after BUILD_CONF
Module defines phase: configure_make after BUILD_COMPILE
Module defines phase: configure_install after INSTALL_ACTION
Module defines phase: configure_fallback_check after configure
Module uses phase: configure_check
arg: argument to be added to configure arguments
Add argument for configure script.
NOTE: If your arguments needs quotes and special characters, you have to escape them to prevent double bash expansion.
Check for GNU configure script. (internal)
Module uses phase: configure_args gnu_configure_args
Module uses phase: configure gnu_configure_configure
Module uses phase: configure_fallback_check gnu_configure_fallback_check
Module uses phase: configure_make gnu_configure_make
Module uses phase: configure_install gnu_configure_install
arg_name: name of path argument
default_dir: default directory
If selected path is used in some file, it is added into configure args. (internal function)
It provides an argument, if:
- it is not fall back to default
and
- it is cited in any *.in file except Makefile.in
or
- it is used cited in any Makefile.in (it is used there nearly all times)
arg_name: name of path argument
returns $gnu_configure_path_is_used_{arg_name}: is used, 1: is not used
Checks, whether named argument:
- is cited (or pkg{arg_name}) in any *.in file except Makefile.in or - Makefile.am
or
- is used (or pkg{arg_name}) in any Makefile.in (it is used there nearly all times) (internal function)
arg_name: name of path argument
default_dir: default directory in GNU tools
dep_arg: name of path argument, on which arg_name depends
returns gnu_configure_path_is_used_*: alters values if needed
returns gnu_configure_path_is_needed_{arg_name}: needed for configure?
Check, whether path is set to GNU tools default. If yes, mark dep_arg as used and mark argument for inclusion to configure. (internal)
Complete arguments for configure. (internal)
Add a new stage and run configure. (internal)
Module uses phase: configure "./configure$gnu_configure_args$gnu_configure_extra_args"
Module uses phase: configure 'gnu_configure_rc=$pwiz_run_rc'
Add a new stage and run configure-wise make. (internal)
Module uses phase: configure_make "make$gnu_make_vars"
Add a new stage and run configure-wise installation. (internal)
Module uses phase: configure_install "make$gnu_make_vars DESTDIR=$RPM_BUILD_ROOT install"