Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_libtoolize_cflags.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_LIBTOOLIZE_CFLAGS(COMPILER-FLAGS-VAR)
  8. #
  9. # DESCRIPTION
  10. #
  11. # Change the contents of variable COMPILER-FLAGS-VAR so that they are
  12. # Libtool friendly, ie. prefix each of them with `-Xcompiler' so that
  13. # Libtool doesn't remove them.
  14. #
  15. # LICENSE
  16. #
  17. # Copyright (c) 2008 Ludovic Courtes <ludo@chbouib.org>
  18. #
  19. # Copying and distribution of this file, with or without modification, are
  20. # permitted in any medium without royalty provided the copyright notice
  21. # and this notice are preserved. This file is offered as-is, without any
  22. # warranty.
  23. #serial 6
  24. AU_ALIAS([AC_LIBTOOLIZE_CFLAGS], [AX_LIBTOOLIZE_CFLAGS])
  25. AC_DEFUN([AX_LIBTOOLIZE_CFLAGS],
  26. [ac_libtoolize_ldflags_temp=""
  27. for i in $$1
  28. do
  29. ac_libtoolize_ldflags_temp="$ac_libtoolize_ldflags_temp -Xcompiler $i"
  30. done
  31. $1="$ac_libtoolize_ldflags_temp"])dnl