1 # canonicalize.m4 serial 2 (gettext-0.13) 2 dnl Copyright (C) 2003 Free Software Foundation, Inc. 3 dnl This file is free software; the Free Software Foundation 4 dnl gives unlimited permission to copy and/or distribute it, 5 dnl with or without modifications, as long as this notice is preserved. 6 7 AC_DEFUN([gl_CANONICALIZE], 8 [ 9 dnl Do this replacement check manually because the file name is shorter 10 dnl than the function name. 11 AC_CHECK_FUNCS(canonicalize_file_name) 12 if test $ac_cv_func_canonicalize_file_name = no; then 13 AC_LIBOBJ(canonicalize) 14 AC_DEFINE([realpath], [rpl_realpath], 15 [Define to a replacement function name for realpath().]) 16 gl_PREREQ_CANONICALIZE 17 fi 18 ]) 19 20 # Prerequisites of lib/canonicalize.c. 21 AC_DEFUN([gl_PREREQ_CANONICALIZE], 22 [ 23 AC_CHECK_HEADERS_ONCE(sys/param.h unistd.h) 24 AC_CHECK_FUNCS(getcwd readlink) 25 ]) 26