The source code and dockerfile for the GSW2024 AI Lab.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

139 lines
2.9 KiB

2 months ago
  1. #!/bin/sh
  2. # @configure_input@
  3. # Copyright (C) 1999-2017 Yves Renard
  4. #
  5. # This file is a part of GetFEM++
  6. #
  7. # GetFEM++ is free software; you can redistribute it and/or modify it
  8. # under the terms of the GNU Lesser General Public License as published
  9. # by the Free Software Foundation; either version 3 of the License, or
  10. # (at your option) any later version along with the GCC Runtime Library
  11. # Exception either version 3.1 or (at your option) any later version.
  12. # This program is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  14. # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  15. # License and GCC Runtime Library Exception for more details.
  16. # You should have received a copy of the GNU Lesser General Public License
  17. # along with this program; if not, write to the Free Software Foundation,
  18. # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  19. prefix="@prefix@"
  20. exec_prefix="@exec_prefix@"
  21. includedir="@includedir@"
  22. libdir="@libdir@"
  23. bindir="@bindir@"
  24. datadir="@datadir@"
  25. mandir="@mandir@"
  26. sysconfdir="@sysconfdir@"
  27. sharedstatedir="@sharedstatedir@"
  28. srcdir="@abs_top_srcdir@"
  29. builddir="@abs_top_builddir@"
  30. build_CXXFLAGS="@CXXFLAGS@"
  31. build_LDFLAGS="@LDFLAGS@"
  32. CXX="@CXX@"
  33. LDFLAGS="@LIBS@"
  34. STATICLDFLAGS="@LIBS@"
  35. LALDFLAGS="@LIBS@"
  36. SRC_LDFLAGS="@LIBS@"
  37. SRC_LALDFLAGS="@LIBS@"
  38. SRC_STATICLDFLAGS="@LIBS@"
  39. CFLAGS="@CPPFLAGS@ -I$includedir"
  40. SRC_CFLAGS="-I$srcdir/src -I$builddir/src @CPPFLAGS@"
  41. build="@BUILDER@-@BUILDDATE@"
  42. configure_args="@CONFIGURE_ARGS@"
  43. from_source=0
  44. usage()
  45. {
  46. cat <<EOF
  47. Usage: gmm-config [OPTIONS]
  48. Options:
  49. [--src]
  50. [--prefix]
  51. [--exec-prefix]
  52. [--version]
  53. [--libs-la]
  54. [--libs]
  55. [--cflags]
  56. [--cxx]
  57. [--build-flags]
  58. [--build-libs]
  59. [--configure-args]
  60. EOF
  61. exit $1
  62. }
  63. while test $# -gt 0; do
  64. case "$1" in
  65. -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  66. *) optarg= ;;
  67. esac
  68. case $1 in
  69. --src)
  70. from_source=1
  71. ;;
  72. --prefix)
  73. echo $prefix
  74. ;;
  75. --exec-prefix)
  76. echo $exec_prefix
  77. ;;
  78. --version)
  79. echo @VERSION@
  80. ;;
  81. --cflags)
  82. if test $from_source -eq 0; then
  83. echo $CFLAGS
  84. else
  85. echo $SRC_CFLAGS
  86. fi;
  87. ;;
  88. --libs-la)
  89. if test $from_source -eq 0; then
  90. echo $LALDFLAGS
  91. else
  92. echo $SRC_LALDFLAGS
  93. fi;
  94. ;;
  95. --libs)
  96. if test $from_source -eq 0; then
  97. echo $LDFLAGS
  98. else
  99. echo $SRC_LDFLAGS
  100. fi;
  101. ;;
  102. --static-libs)
  103. if test $from_source -eq 0; then
  104. echo $STATICLDFLAGS
  105. else
  106. echo $SRC_STATICLDFLAGS
  107. fi;
  108. ;;
  109. --build)
  110. echo $build
  111. ;;
  112. --build-flags)
  113. echo $build_CXXFLAGS
  114. ;;
  115. --build-libs)
  116. echo $build_LDFLAGS
  117. ;;
  118. --cxx)
  119. echo $CXX
  120. ;;
  121. --configure-args)
  122. echo $configure_args
  123. ;;
  124. *)
  125. usage 1 1>&2
  126. ;;
  127. esac
  128. shift
  129. done