Home | History | Annotate | Line # | Download | only in m4
      1  1.1.1.2  christos # strdup.m4 serial 15
      2      1.1  christos 
      3  1.1.1.2  christos dnl Copyright (C) 2002-2022 Free Software Foundation, Inc.
      4      1.1  christos 
      5      1.1  christos dnl This file is free software; the Free Software Foundation
      6      1.1  christos dnl gives unlimited permission to copy and/or distribute it,
      7      1.1  christos dnl with or without modifications, as long as this notice is preserved.
      8      1.1  christos 
      9      1.1  christos AC_DEFUN([gl_FUNC_STRDUP],
     10      1.1  christos [
     11  1.1.1.2  christos   AC_REQUIRE([gl_STRING_H_DEFAULTS])
     12      1.1  christos   AC_CHECK_DECLS_ONCE([strdup])
     13      1.1  christos   if test $ac_cv_have_decl_strdup = no; then
     14      1.1  christos     HAVE_DECL_STRDUP=0
     15      1.1  christos   fi
     16      1.1  christos ])
     17      1.1  christos 
     18      1.1  christos AC_DEFUN([gl_FUNC_STRDUP_POSIX],
     19      1.1  christos [
     20  1.1.1.2  christos   AC_REQUIRE([gl_STRING_H_DEFAULTS])
     21      1.1  christos   AC_REQUIRE([gl_CHECK_MALLOC_POSIX])
     22  1.1.1.2  christos   if test $gl_cv_func_malloc_posix != yes; then
     23  1.1.1.2  christos     REPLACE_STRDUP=1
     24      1.1  christos   fi
     25      1.1  christos   AC_CHECK_DECLS_ONCE([strdup])
     26      1.1  christos   if test $ac_cv_have_decl_strdup = no; then
     27      1.1  christos     HAVE_DECL_STRDUP=0
     28      1.1  christos   fi
     29      1.1  christos ])
     30      1.1  christos 
     31      1.1  christos # Prerequisites of lib/strdup.c.
     32      1.1  christos AC_DEFUN([gl_PREREQ_STRDUP], [:])
     33