Changeset 4d3e4476 in rtems


Ignore:
Timestamp:
03/10/06 06:24:55 (18 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a56035b
Parents:
0605460
Message:

Rework rpmprefix logic.
Add --enable-infos/build_infos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/configure.ac

    r0605460 r4d3e4476  
    1515AM_INIT_AUTOMAKE([1.9])
    1616
     17case "$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  ;;
     30NONE) # Default prefix
     31  build_infos=1
     32  rpmprefix="[rtems-]RTEMS_API[-]"
     33  ;;
     34esac
     35
    1736AC_ARG_ENABLE([rpmprefix],
    1837[  --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
    2240    ;;
    23   NONE)   rpmprefix=[rtems-]RTEMS_API[-]
    24     AC_MSG_WARN([Ignoring given rpmprefix])
     41  no) rpmprefix=
    2542    ;;
    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;;
    4145  esac
    4246])
    4347AC_SUBST(rpmprefix)
     48
     49AC_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])
     60AC_SUBST(build_infos)
     61
    4462
    4563AS_IF([test "${host}" != "${build}"],[
Note: See TracChangeset for help on using the changeset viewer.