Changeset 9cf7774 in rtems
- Timestamp:
- Nov 5, 2002, 6:34:36 PM (17 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, master
- Children:
- 83433304
- Parents:
- 2595580
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r2595580 r9cf7774 1 2002-11-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 3 * acinclude.m4: Adapations to autoconf > 2.52. 4 1 5 2002-11-01 Joel Sherrill <joel@OARcorp.com> 2 6 -
acinclude.m4
r2595580 r9cf7774 177 177 # Always prepend --prefix to ensure using the same prefix 178 178 # in subdir configurations. 179 ac_sub_configure_args=" --prefix=$prefix$ac_sub_configure_args"179 ac_sub_configure_args="'--prefix=$prefix' $ac_sub_configure_args" 180 180 181 181 case "$$1_subdir" in 182 182 "." ) ;; 183 183 * ) 184 ac_sub_configure_args="$ac_sub_configure_args --with-target-subdir=$$1_subdir --exec-prefix=${prefix}/$$1_subdir"184 ac_sub_configure_args="$ac_sub_configure_args '--with-target-subdir=$$1_subdir' '--exec-prefix=${prefix}/$$1_subdir'" 185 185 ;; 186 186 esac … … 228 228 ac_sub_configure_vars= 229 229 test -n "[$]CC_FOR_$2" && \ 230 ac_sub_configure_vars=" CC='[$]CC_FOR_$2'"230 ac_sub_configure_vars="'CC=[$]CC_FOR_$2'" 231 231 test -n "[$]CFLAGS_FOR_$2" && \ 232 ac_sub_configure_vars="$ac_sub_configure_vars CFLAGS='[$]CFLAGS_FOR_$2'"232 ac_sub_configure_vars="$ac_sub_configure_vars 'CFLAGS=[$]CFLAGS_FOR_$2'" 233 233 eval $ac_sub_configure_vars \ 234 234 $ac_sub_configure $ac_sub_configure_args \ … … 256 256 ]) 257 257 258 AC_DEFUN([_RTEMS_CONFIGURE_ARGS_PRUNE], 259 [ 260 for ac_arg in m4_if([$3],,[$ac_configure_args],[[$]$3]); do 261 if test -n "$ac_prev"; then 262 ac_prev= 263 configure 264 fi 265 # the eval casts away sh quotes 266 case `eval echo $ac_arg` in 267 -host* | --host* );; 268 -host ) ac_prev=host_alias;; 269 -target* | --target* );; 270 -target | --target ) ac_prev=target_alias;; 271 -build* | --build* );; 272 -build | --build ) ac_prev=build_alias;; 273 --cache* );; 274 *_alias=* );; 275 m4_if([$2],,,[$2]) 276 *) $1="$$1 '$ac_arg'" ;; 277 esac 278 done 279 ]) 280 258 281 AC_DEFUN(_RTEMS_BUILD_CONFIG_PREPARE,[ 259 282 # Record the configure arguments in Makefile. 260 283 m4_ifdef([_RTEMS_BUILD_CONFIGDIRS_LIST], 261 284 [ 262 buildargs=`echo "${ac_configure_args}" | \ 263 sed -e 's/--no[[^ ]]*//' \ 264 -e 's/--cache[[a-z-]]*=[[^ ]]*//' \ 265 -e 's/--ho[[a-z-]]*=[[^ ]]*//' \ 266 -e 's/--bu[[a-z-]]*=[[^ ]]*//' \ 267 -e 's/--ta[[a-z-]]*=[[^ ]]*//' \ 268 -e 's/[[^ ]]*alias=[[^ ]]*//g'` ; 269 270 buildargs="--host=${build} --build=${build} --target=${target_alias} ${buildargs}" 285 _RTEMS_CONFIGURE_ARGS_PRUNE([buildargs]) 286 buildargs="'--host=${build}' '--build=${build}' '--target=${target_alias}' ${buildargs}" 271 287 AC_SUBST(buildargs) 272 288 … … 311 327 [ 312 328 # Record configure arguments in Makefile. 313 hostargs=`echo "${ac_configure_args}" | \ 314 sed -e 's/--no[[^ ]]*//' \ 315 -e 's/--cache[[a-z-]]*=[[^ ]]*//' \ 316 -e 's/--ho[[a-z-]]*=[[^ ]]*//' \ 317 -e 's/--bu[[a-z-]]*=[[^ ]]*//' \ 318 -e 's/--ta[[a-z-]]*=[[^ ]]*//' \ 319 -e 's/[[^ ]]*alias=[[^ ]]*//g'` ; 320 321 hostargs="--host=${host_alias} --build=${build} --target=${target_alias} ${hostargs}" 329 _RTEMS_CONFIGURE_ARGS_PRUNE([hostargs]) 330 hostargs="'--host=${host_alias}' '--build=${build}' '--target=${target_alias}' ${hostargs}" 322 331 AC_SUBST(hostargs) 323 332 … … 362 371 [ 363 372 # Record the configure arguments in Makefile. 364 targetargs=`echo "${ac_configure_args}" | \ 365 sed -e 's/--no[[^ ]]*//' \ 366 -e 's/--cache[[a-z-]]*=[[^ ]]*//' \ 367 -e 's/--ho[[a-z-]]*=[[^ ]]*//' \ 368 -e 's/--bu[[a-z-]]*=[[^ ]]*//' \ 369 -e 's/--ta[[a-z-]]*=[[^ ]]*//' \ 370 -e 's/[[^ ]]*alias=[[^ ]]*//g'` ; 371 372 targetargs="--host=${target_alias} --build=${build} --target=${target_alias} ${targetargs}" 373 _RTEMS_CONFIGURE_ARGS_PRUNE([targetargs]) 374 targetargs="'--host=${target_alias}' '--build=${build}' '--target=${target_alias}' ${targetargs}" 373 375 AC_SUBST(targetargs) 374 376
Note: See TracChangeset
for help on using the changeset viewer.