mirror of https://gitlab.com/QEF/q-e.git
38 lines
952 B
Plaintext
38 lines
952 B
Plaintext
# Copyright (C) 2001-2016 Quantum ESPRESSO Foundation
|
|
|
|
AC_DEFUN([X_AC_QE_SIGNAL], [
|
|
|
|
AC_ARG_ENABLE(signals,
|
|
[AS_HELP_STRING([--enable-signals],
|
|
[enable signal trapping (default: no)])],
|
|
[if test "$enableval" = "yes" ; then
|
|
use_signals=1
|
|
else
|
|
use_signals=0
|
|
fi],
|
|
[use_signals=0])
|
|
|
|
# preprocessing flag for signal trapping (experimental)
|
|
if test "$use_signals" -eq 1 ; then try_dflags="$try_dflags -D__TRAP_SIGUSR1" ; fi
|
|
|
|
]
|
|
)
|
|
|
|
AC_DEFUN([X_AC_QE_STATUS], [
|
|
|
|
AC_ARG_ENABLE(exit-status,
|
|
[AS_HELP_STRING([--enable-exit-status],
|
|
[enable Unix status on exit (default: no)])],
|
|
[if test "$enableval" = "yes" ; then
|
|
use_status=1
|
|
else
|
|
use_status=0
|
|
fi],
|
|
[use_status=0])
|
|
|
|
# preprocessing flag for returning Unix status on exit (experimental)
|
|
if test "$use_status" -eq 1 ; then try_dflags="$try_dflags -D__RETURN_EXIT_STATUS" ; fi
|
|
|
|
]
|
|
)
|