Changeset 4d3e4476 in rtems
- Timestamp:
- 03/10/06 06:24:55 (18 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- a56035b
- Parents:
- 0605460
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/crossrpms/configure.ac
r0605460 r4d3e4476 15 15 AM_INIT_AUTOMAKE([1.9]) 16 16 17 case "$prefix" in 18 /usr) 19 build_infos=0 20 rpmprefix= 21 ;; 22 /usr/local) 23 build_infos=0 24 rpmprefix="local-" 25 ;; 26 /opt/rtems) 27 build_infos=1 28 rpmprefix="rtems-" 29 ;; 30 NONE) # Default prefix 31 build_infos=1 32 rpmprefix="[rtems-]RTEMS_API[-]" 33 ;; 34 esac 35 17 36 AC_ARG_ENABLE([rpmprefix], 18 37 [ --enable-rpmprefix=<rpmprefix> prefix rpms],[ 19 case "$prefix" in 20 /usr) rpmprefix= 21 AC_MSG_WARN([Ignoring given rpmprefix]) 38 case "$enable_rpmprefix" in 39 yes) # ignore, use default 22 40 ;; 23 NONE) rpmprefix=[rtems-]RTEMS_API[-] 24 AC_MSG_WARN([Ignoring given rpmprefix]) 41 no) rpmprefix= 25 42 ;; 26 *) 27 case $enable_rpmprefix in 28 ''|[rtems-]RTEMS_API[-]) 29 AC_MSG_ERROR([Invalid --enable-rpmprefix]);; 30 *) 31 rpmprefix=$enable_rpmprefix;; 32 esac 33 ;; 34 esac 35 ],[ 36 # defaults 37 case "$prefix" in 38 /usr) rpmprefix=;; 39 NONE) rpmprefix=[rtems-]RTEMS_API[-];; 40 *) AC_MSG_ERROR([Missing --enable-rpmprefix]) ;; 43 *) # presume user knows what he is doing 44 rpmprefix=$enable_rpmprefix;; 41 45 esac 42 46 ]) 43 47 AC_SUBST(rpmprefix) 48 49 AC_ARG_ENABLE([infos], 50 [ --enable-infos enable building infos],[ 51 case "$enable_infos" in 52 yes) 53 build_infos=1;; 54 no) 55 build_infos=0;; 56 *) 57 AC_MSG_ERROR([Invalid argument to --enable-infos]) 58 esac 59 ]) 60 AC_SUBST(build_infos) 61 44 62 45 63 AS_IF([test "${host}" != "${build}"],[
Note: See TracChangeset
for help on using the changeset viewer.