~ubuntu-branches/ubuntu/maverick/telepathy-salut/maverick

« back to all changes in this revision

Viewing changes to m4/as-ac-expand.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sjoerd Simons
  • Date: 2007-06-13 10:54:25 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070613105425-mwwsplxbk8n6z5t6
Tags: 0.1.3-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl as-ac-expand.m4 0.2.0                                   -*- autoconf -*-
 
2
dnl autostars m4 macro for expanding directories using configure's prefix
 
3
 
 
4
dnl (C) 2003, 2004, 2005 Thomas Vander Stichele <thomas at apestaart dot org>
 
5
 
 
6
dnl Copying and distribution of this file, with or without modification,
 
7
dnl are permitted in any medium without royalty provided the copyright
 
8
dnl notice and this notice are preserved.
 
9
 
1
10
dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR)
2
 
dnl
3
 
dnl example
 
11
 
 
12
dnl example:
4
13
dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
5
14
dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local
6
15
 
15
24
 
16
25
  dnl if no prefix given, then use /usr/local, the default prefix
17
26
  if test "x$prefix" = "xNONE"; then
18
 
    prefix=$ac_default_prefix
 
27
    prefix="$ac_default_prefix"
19
28
  fi
20
29
  dnl if no exec_prefix given, then use prefix
21
30
  if test "x$exec_prefix" = "xNONE"; then
26
35
  dnl loop until it doesn't change anymore
27
36
  while true; do
28
37
    new_full_var="`eval echo $full_var`"
29
 
    if test "x$new_full_var"="x$full_var"; then break; fi
 
38
    if test "x$new_full_var" = "x$full_var"; then break; fi
30
39
    full_var=$new_full_var
31
40
  done
32
41