Changeset 96fc67 in git for m4/ax_compute_relative_paths.m4
- Timestamp:
- Nov 14, 2022, 11:23:41 AM (17 months ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 53bb34c61620c64ea3918faddfdebe69fb462864
- Parents:
- 5416d13394a558a137ad68ab6bb7241079911448
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
m4/ax_compute_relative_paths.m4
r5416d1 r96fc67 1 # ============================================================================= 2 # http ://www.gnu.org/software/autoconf-archive/ax_compute_relative_paths.html3 # ============================================================================= 1 # ============================================================================== 2 # https://www.gnu.org/software/autoconf-archive/ax_compute_relative_paths.html 3 # ============================================================================== 4 4 # 5 5 # SYNOPSIS … … 34 34 # encode $bin_to_data and try to determine $bindir at run-time. 35 35 # 36 # This macro requires AX_NORMALIZE_PATH .36 # This macro requires AX_NORMALIZE_PATH and AX_RECURSIVE_EVAL. 37 37 # 38 38 # LICENSE … … 51 51 # 52 52 # You should have received a copy of the GNU General Public License along 53 # with this program. If not, see <http ://www.gnu.org/licenses/>.53 # with this program. If not, see <https://www.gnu.org/licenses/>. 54 54 # 55 55 # As a special exception, the respective Autoconf Macro's copyright owner … … 66 66 # exception to the GPL to apply to your modified version as well. 67 67 68 #serial 668 #serial 12 69 69 70 70 AU_ALIAS([ADL_COMPUTE_RELATIVE_PATHS], [AX_COMPUTE_RELATIVE_PATHS]) … … 96 96 dnl of $RESULT to that value. This function work on raw filenames 97 97 dnl (for instead it will considerate /usr//local and /usr/local as 98 dnl two distinct paths), you should really use AX_COMPUTE_RE ALTIVE_PATHS98 dnl two distinct paths), you should really use AX_COMPUTE_RELATIVE_PATHS 99 99 dnl instead to have the paths sanitized automatically. 100 100 dnl … … 136 136 dnl AX_COMPUTE_SUFFIX_PATH(PATH, SUBPATH, RESULT) 137 137 dnl ============================================== 138 dnl Sub strack$SUBPATH from $PATH, and set the resulting suffix138 dnl Subtract $SUBPATH from $PATH, and set the resulting suffix 139 139 dnl (or the empty string if $SUBPATH is not a subpath of $PATH) 140 140 dnl to $RESULT. 141 141 dnl 142 dnl For insta ce:142 dnl For instance: 143 143 dnl first_path=/somewhere/on/my/disk/bin 144 144 dnl second_path=/somewhere/on … … 173 173 done]) 174 174 175 176 dnl AX_RECURSIVE_EVAL(VALUE, RESULT)177 dnl =================================178 dnl Interpolate the VALUE in loop until it doesn't change,179 dnl and set the result to $RESULT.180 dnl WARNING: It's easy to get an infinite loop with some unsane input.181 AC_DEFUN([AX_RECURSIVE_EVAL],182 [_lcl_receval="$1"183 $2=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"184 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"185 _lcl_receval_old=''186 while test "[$]_lcl_receval_old" != "[$]_lcl_receval"; do187 _lcl_receval_old="[$]_lcl_receval"188 eval _lcl_receval="\"[$]_lcl_receval\""189 done190 echo "[$]_lcl_receval")`])
Note: See TracChangeset
for help on using the changeset viewer.