Changeset 9e4d710 in rtems


Ignore:
Timestamp:
11/19/02 14:17:00 (21 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
984123f
Parents:
824bf2e4
Message:

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

  • acinclude.m4: Lots of changes addressing PR 312.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r824bf2e4 r9e4d710  
     12002-11-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * acinclude.m4: Lots of changes addressing PR 312.
     4
    152002-11-18      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    26
  • acinclude.m4

    r824bf2e4 r9e4d710  
    172172
    173173 if test -n "${$2_SUBDIRS}"; then
    174    RTEMS_CONFIGURE_ARGS_QUOTE([ac_sub_configure_args],[
    175      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    176        ac_prev=prefix ;;
    177      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    178        ;;
    179    ],[$1args])
     174   ac_sub_configure_args="[$]$1args"
    180175
    181176  # Always prepend --prefix to ensure using the same prefix
     
    227222      esac
    228223
    229       ac_sub_configure_args="$ac_sub_configure_args '--cache-file=$ac_sub_cache_file'"
    230       ac_sub_configure_args="$ac_sub_configure_args '--srcdir=$ac_srcdir'"
    231 
    232       # The eval makes quoting arguments work.
    233224      ac_sub_configure_vars=
     225      ac_sub_configure_vars="$ac_sub_configure_vars '--cache-file=$ac_sub_cache_file'"
     226      ac_sub_configure_vars="$ac_sub_configure_vars '--srcdir=$ac_srcdir'"
     227
    234228      test -n "[$]CC_FOR_$2" && \
    235         ac_sub_configure_vars="'CC=[$]CC_FOR_$2'"
     229        ac_sub_configure_vars="$ac_sub_configure_vars 'CC=[$]CC_FOR_$2'"
    236230      test -n "[$]CXX_FOR_$2" && \
    237231        ac_sub_configure_vars="$ac_sub_configure_vars 'CXX=[$]CXX_FOR_$2'"
     
    241235        ac_sub_configure_vars="$ac_sub_configure_vars 'CXXFLAGS=[$]CXXFLAGS_FOR_$2'"
    242236
     237      # The eval makes quoting arguments work.
    243238      AC_MSG_NOTICE([running $ac_sub_configure $ac_sub_configure_args $ac_sub_configure_vars])
    244239      eval $ac_sub_configure $ac_sub_configure_args $ac_sub_configure_vars ||
     
    267262AC_DEFUN([_RTEMS_CONFIGURE_ARGS_PRUNE],
    268263[
    269   for ac_arg in m4_if([$3],,[$ac_configure_args],[[$]$3]); do
     264$1_prune()
     265{
     266  $1=
     267  for ac_arg
     268  do
    270269    if test -n "$ac_prev"; then
    271270      ac_prev=
    272271      continue
    273272    fi
    274     # the eval casts away sh quotes
    275     case `eval echo $ac_arg` in
     273    case $ac_arg in
     274    -cache-file | --cache-file | --cache-fil | --cache-fi \
     275    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
     276      ac_prev=cache_file ;;
     277    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
     278    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
     279    | --c=*)
     280      ;;
     281    --config-cache | -C)
     282      ;;
     283
     284    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
     285      ac_prev=srcdir ;;
     286    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
     287      ;;
     288
    276289    -host* | --host* );;
    277     -host ) ac_prev=host_alias;;
     290    -host | --host )
     291      ac_prev=host_alias;;
    278292    -target* | --target* );;
    279     -target | --target ) ac_prev=target_alias;;
     293    -target | --target )
     294      ac_prev=target_alias;;
    280295    -build* | --build* );;
    281     -build | --build ) ac_prev=build_alias;;
    282     --cache* );;
     296    -build | --build )
     297      ac_prev=build_alias;;
     298
     299    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
     300      ac_prev=prefix ;;
     301    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
     302      ;;
     303
    283304    *_alias=* );;
     305
    284306    m4_if([$2],,,[$2])
    285307    *) $1="$$1 '$ac_arg'" ;;
    286308   esac
    287309  done
     310  export $1
     311}
    288312])
    289313
    290314AC_DEFUN(_RTEMS_BUILD_CONFIG_PREPARE,[
    291 # Record the configure arguments in Makefile.
     315## # Record the configure arguments in Makefile.
    292316m4_ifdef([_RTEMS_BUILD_CONFIGDIRS_LIST],
    293317[
    294 _RTEMS_CONFIGURE_ARGS_PRUNE([buildargs])
     318m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([buildargs])])
     319eval buildargs_prune $ac_configure_args
    295320buildargs="'--host=${build}' '--build=${build}' '--target=${target_alias}' ${buildargs}"
    296 AC_SUBST(buildargs)
     321## AC_SUBST(buildargs)
    297322
    298323build_subdir="."
     
    329354m4_ifdef([_RTEMS_HOST_CONFIGDIRS_LIST],
    330355[
    331 # Record configure arguments in Makefile.
    332 _RTEMS_CONFIGURE_ARGS_PRUNE([hostargs])
     356## Record configure arguments in Makefile.
     357m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([hostargs])])
     358eval hostargs_prune $ac_configure_args
    333359hostargs="'--host=${host_alias}' '--build=${build}' '--target=${target_alias}' ${hostargs}"
    334 AC_SUBST(hostargs)
     360## AC_SUBST(hostargs)
    335361
    336362host_subdir="${host_alias}"
     
    367393m4_ifdef([_RTEMS_TARGET_CONFIGDIRS_LIST],
    368394[
    369 # Record the configure arguments in Makefile.
    370 _RTEMS_CONFIGURE_ARGS_PRUNE([targetargs])
     395## Record the configure arguments in Makefile.
     396m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([targetargs])])
     397eval targetargs_prune $ac_configure_args
    371398targetargs="'--host=${target_alias}' '--build=${build}' '--target=${target_alias}' ${targetargs}"
    372 AC_SUBST(targetargs)
     399## AC_SUBST(targetargs)
    373400
    374401target_subdir="${target_alias}"
Note: See TracChangeset for help on using the changeset viewer.