source: rtems/aclocal/quoting.m4 @ 33a105fb

4.115
Last change on this file since 33a105fb was 0a9a0f5, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/20/02 at 02:57:38

2002-11-19 Ralf Corsepius <corsepiu@…>

  • aclocal/quoting.m4: Reworked (Part of fix to PR 312).
  • Property mode set to 100644
File size: 1.1 KB
Line 
1dnl RTEMS_CONFIGURE_ARGS_QUOTE(dnl RETURN_VAR, [ADDITIONAL_CASES], [VAR_TO_PROCESS]])
2dnl
3AC_DEFUN([_RTEMS_CONFIGURE_ARGS_QUOTE],
4[
5$1_prune()
6{
7  # Remove --cache-file and --srcdir arguments so they do not pile up.
8  $1=
9  ac_prev=
10  for ac_arg
11  do
12    if test -n "$ac_prev"; then
13      ac_prev=
14      continue
15    fi
16    case $ac_arg in
17    -cache-file | --cache-file | --cache-fil | --cache-fi \
18    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19          ac_prev=cache_file ;;
20    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22    | --c=*)
23      ;;
24    --config-cache | -C)
25      ;;
26    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27          ac_prev=srcdir ;;
28    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
29      ;;
30    m4_if([$2],,,[$2])
31    *) $1="$$1 '$ac_arg'" ;;
32    esac
33  done
34  export $1
35}
36])
37
38AC_DEFUN([RTEMS_CONFIGURE_ARGS_QUOTE],[
39m4_expand_once([_RTEMS_CONFIGURE_ARGS_QUOTE([$1],[$2])])
40eval $1_prune m4_if([$3],,[$ac_configure_args],[[$]$3])
41])
Note: See TracBrowser for help on using the repository browser.