xnd 0.2.0dev3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/CONTRIBUTING.md +42 -0
  3. data/Gemfile +3 -0
  4. data/History.md +0 -0
  5. data/README.md +7 -0
  6. data/Rakefile +135 -0
  7. data/ext/ruby_xnd/extconf.rb +70 -0
  8. data/ext/ruby_xnd/float_pack_unpack.c +277 -0
  9. data/ext/ruby_xnd/float_pack_unpack.h +39 -0
  10. data/ext/ruby_xnd/gc_guard.c +36 -0
  11. data/ext/ruby_xnd/gc_guard.h +12 -0
  12. data/ext/ruby_xnd/include/xnd.h +449 -0
  13. data/ext/ruby_xnd/lib/libxnd.a +0 -0
  14. data/ext/ruby_xnd/lib/libxnd.so +1 -0
  15. data/ext/ruby_xnd/lib/libxnd.so.0 +1 -0
  16. data/ext/ruby_xnd/lib/libxnd.so.0.2.0dev3 +0 -0
  17. data/ext/ruby_xnd/memory_block_object.c +32 -0
  18. data/ext/ruby_xnd/memory_block_object.h +33 -0
  19. data/ext/ruby_xnd/ruby_xnd.c +1953 -0
  20. data/ext/ruby_xnd/ruby_xnd.h +61 -0
  21. data/ext/ruby_xnd/ruby_xnd_internal.h +85 -0
  22. data/ext/ruby_xnd/util.h +170 -0
  23. data/ext/ruby_xnd/xnd/AUTHORS.txt +5 -0
  24. data/ext/ruby_xnd/xnd/INSTALL.txt +134 -0
  25. data/ext/ruby_xnd/xnd/LICENSE.txt +29 -0
  26. data/ext/ruby_xnd/xnd/MANIFEST.in +3 -0
  27. data/ext/ruby_xnd/xnd/Makefile.in +80 -0
  28. data/ext/ruby_xnd/xnd/README.rst +44 -0
  29. data/ext/ruby_xnd/xnd/config.guess +1530 -0
  30. data/ext/ruby_xnd/xnd/config.h.in +22 -0
  31. data/ext/ruby_xnd/xnd/config.sub +1782 -0
  32. data/ext/ruby_xnd/xnd/configure +4867 -0
  33. data/ext/ruby_xnd/xnd/configure.ac +164 -0
  34. data/ext/ruby_xnd/xnd/doc/Makefile +14 -0
  35. data/ext/ruby_xnd/xnd/doc/_static/copybutton.js +66 -0
  36. data/ext/ruby_xnd/xnd/doc/conf.py +26 -0
  37. data/ext/ruby_xnd/xnd/doc/index.rst +44 -0
  38. data/ext/ruby_xnd/xnd/doc/libxnd/data-structures.rst +186 -0
  39. data/ext/ruby_xnd/xnd/doc/libxnd/functions.rst +148 -0
  40. data/ext/ruby_xnd/xnd/doc/libxnd/index.rst +25 -0
  41. data/ext/ruby_xnd/xnd/doc/releases/index.rst +34 -0
  42. data/ext/ruby_xnd/xnd/doc/xnd/align-pack.rst +96 -0
  43. data/ext/ruby_xnd/xnd/doc/xnd/buffer-protocol.rst +42 -0
  44. data/ext/ruby_xnd/xnd/doc/xnd/index.rst +30 -0
  45. data/ext/ruby_xnd/xnd/doc/xnd/quickstart.rst +62 -0
  46. data/ext/ruby_xnd/xnd/doc/xnd/types.rst +674 -0
  47. data/ext/ruby_xnd/xnd/install-sh +527 -0
  48. data/ext/ruby_xnd/xnd/libxnd/Makefile.in +102 -0
  49. data/ext/ruby_xnd/xnd/libxnd/Makefile.vc +112 -0
  50. data/ext/ruby_xnd/xnd/libxnd/bitmaps.c +345 -0
  51. data/ext/ruby_xnd/xnd/libxnd/contrib.h +313 -0
  52. data/ext/ruby_xnd/xnd/libxnd/copy.c +944 -0
  53. data/ext/ruby_xnd/xnd/libxnd/equal.c +1216 -0
  54. data/ext/ruby_xnd/xnd/libxnd/inline.h +154 -0
  55. data/ext/ruby_xnd/xnd/libxnd/overflow.h +147 -0
  56. data/ext/ruby_xnd/xnd/libxnd/split.c +286 -0
  57. data/ext/ruby_xnd/xnd/libxnd/tests/Makefile.in +39 -0
  58. data/ext/ruby_xnd/xnd/libxnd/tests/Makefile.vc +44 -0
  59. data/ext/ruby_xnd/xnd/libxnd/tests/README.txt +2 -0
  60. data/ext/ruby_xnd/xnd/libxnd/tests/runtest.c +101 -0
  61. data/ext/ruby_xnd/xnd/libxnd/tests/test.h +48 -0
  62. data/ext/ruby_xnd/xnd/libxnd/tests/test_fixed.c +108 -0
  63. data/ext/ruby_xnd/xnd/libxnd/xnd.c +1304 -0
  64. data/ext/ruby_xnd/xnd/libxnd/xnd.h +449 -0
  65. data/ext/ruby_xnd/xnd/python/test_xnd.py +3144 -0
  66. data/ext/ruby_xnd/xnd/python/xnd/__init__.py +290 -0
  67. data/ext/ruby_xnd/xnd/python/xnd/_xnd.c +2822 -0
  68. data/ext/ruby_xnd/xnd/python/xnd/contrib/pretty.py +850 -0
  69. data/ext/ruby_xnd/xnd/python/xnd/docstrings.h +129 -0
  70. data/ext/ruby_xnd/xnd/python/xnd/pyxnd.h +200 -0
  71. data/ext/ruby_xnd/xnd/python/xnd/util.h +182 -0
  72. data/ext/ruby_xnd/xnd/python/xnd_randvalue.py +1121 -0
  73. data/ext/ruby_xnd/xnd/python/xnd_support.py +106 -0
  74. data/ext/ruby_xnd/xnd/setup.py +303 -0
  75. data/ext/ruby_xnd/xnd/vcbuild/INSTALL.txt +42 -0
  76. data/ext/ruby_xnd/xnd/vcbuild/runtest32.bat +16 -0
  77. data/ext/ruby_xnd/xnd/vcbuild/runtest64.bat +14 -0
  78. data/ext/ruby_xnd/xnd/vcbuild/vcbuild32.bat +29 -0
  79. data/ext/ruby_xnd/xnd/vcbuild/vcbuild64.bat +29 -0
  80. data/ext/ruby_xnd/xnd/vcbuild/vcclean.bat +13 -0
  81. data/ext/ruby_xnd/xnd/vcbuild/vcdistclean.bat +14 -0
  82. data/lib/ruby_xnd.so +0 -0
  83. data/lib/xnd.rb +306 -0
  84. data/lib/xnd/monkeys.rb +29 -0
  85. data/lib/xnd/version.rb +6 -0
  86. data/spec/debug_spec.rb +9 -0
  87. data/spec/gc_guard_spec.rb +10 -0
  88. data/spec/leakcheck.rb +9 -0
  89. data/spec/spec_helper.rb +877 -0
  90. data/spec/type_inference_spec.rb +81 -0
  91. data/spec/xnd_spec.rb +2921 -0
  92. data/xnd.gemspec +47 -0
  93. metadata +215 -0
@@ -0,0 +1,4867 @@
1
+ #! /bin/sh
2
+ # Guess values for system-dependent variables and create Makefiles.
3
+ # Generated by GNU Autoconf 2.69 for xnd 0.2.0dev3.
4
+ #
5
+ # Report bugs to <skrah@bytereef.org>.
6
+ #
7
+ #
8
+ # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9
+ #
10
+ #
11
+ # This configure script is free software; the Free Software Foundation
12
+ # gives unlimited permission to copy, distribute and modify it.
13
+ ## -------------------- ##
14
+ ## M4sh Initialization. ##
15
+ ## -------------------- ##
16
+
17
+ # Be more Bourne compatible
18
+ DUALCASE=1; export DUALCASE # for MKS sh
19
+ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
+ emulate sh
21
+ NULLCMD=:
22
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
+ # is contrary to our usage. Disable this feature.
24
+ alias -g '${1+"$@"}'='"$@"'
25
+ setopt NO_GLOB_SUBST
26
+ else
27
+ case `(set -o) 2>/dev/null` in #(
28
+ *posix*) :
29
+ set -o posix ;; #(
30
+ *) :
31
+ ;;
32
+ esac
33
+ fi
34
+
35
+
36
+ as_nl='
37
+ '
38
+ export as_nl
39
+ # Printing a long string crashes Solaris 7 /usr/bin/printf.
40
+ as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
+ as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
+ as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
+ # Prefer a ksh shell builtin over an external printf program on Solaris,
44
+ # but without wasting forks for bash or zsh.
45
+ if test -z "$BASH_VERSION$ZSH_VERSION" \
46
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
+ as_echo='print -r --'
48
+ as_echo_n='print -rn --'
49
+ elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
+ as_echo='printf %s\n'
51
+ as_echo_n='printf %s'
52
+ else
53
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
+ as_echo_n='/usr/ucb/echo -n'
56
+ else
57
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
+ as_echo_n_body='eval
59
+ arg=$1;
60
+ case $arg in #(
61
+ *"$as_nl"*)
62
+ expr "X$arg" : "X\\(.*\\)$as_nl";
63
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
+ esac;
65
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
+ '
67
+ export as_echo_n_body
68
+ as_echo_n='sh -c $as_echo_n_body as_echo'
69
+ fi
70
+ export as_echo_body
71
+ as_echo='sh -c $as_echo_body as_echo'
72
+ fi
73
+
74
+ # The user is always right.
75
+ if test "${PATH_SEPARATOR+set}" != set; then
76
+ PATH_SEPARATOR=:
77
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
+ PATH_SEPARATOR=';'
80
+ }
81
+ fi
82
+
83
+
84
+ # IFS
85
+ # We need space, tab and new line, in precisely that order. Quoting is
86
+ # there to prevent editors from complaining about space-tab.
87
+ # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
+ # splitting by setting IFS to empty value.)
89
+ IFS=" "" $as_nl"
90
+
91
+ # Find who we are. Look in the path if we contain no directory separator.
92
+ as_myself=
93
+ case $0 in #((
94
+ *[\\/]* ) as_myself=$0 ;;
95
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96
+ for as_dir in $PATH
97
+ do
98
+ IFS=$as_save_IFS
99
+ test -z "$as_dir" && as_dir=.
100
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101
+ done
102
+ IFS=$as_save_IFS
103
+
104
+ ;;
105
+ esac
106
+ # We did not find ourselves, most probably we were run as `sh COMMAND'
107
+ # in which case we are not to be found in the path.
108
+ if test "x$as_myself" = x; then
109
+ as_myself=$0
110
+ fi
111
+ if test ! -f "$as_myself"; then
112
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113
+ exit 1
114
+ fi
115
+
116
+ # Unset variables that we do not need and which cause bugs (e.g. in
117
+ # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
+ # suppresses any "Segmentation fault" message there. '((' could
119
+ # trigger a bug in pdksh 5.2.14.
120
+ for as_var in BASH_ENV ENV MAIL MAILPATH
121
+ do eval test x\${$as_var+set} = xset \
122
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123
+ done
124
+ PS1='$ '
125
+ PS2='> '
126
+ PS4='+ '
127
+
128
+ # NLS nuisances.
129
+ LC_ALL=C
130
+ export LC_ALL
131
+ LANGUAGE=C
132
+ export LANGUAGE
133
+
134
+ # CDPATH.
135
+ (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
+
137
+ # Use a proper internal environment variable to ensure we don't fall
138
+ # into an infinite loop, continuously re-executing ourselves.
139
+ if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
+ _as_can_reexec=no; export _as_can_reexec;
141
+ # We cannot yet assume a decent shell, so we have to provide a
142
+ # neutralization value for shells without unset; and this also
143
+ # works around shells that cannot unset nonexistent variables.
144
+ # Preserve -v and -x to the replacement shell.
145
+ BASH_ENV=/dev/null
146
+ ENV=/dev/null
147
+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148
+ case $- in # ((((
149
+ *v*x* | *x*v* ) as_opts=-vx ;;
150
+ *v* ) as_opts=-v ;;
151
+ *x* ) as_opts=-x ;;
152
+ * ) as_opts= ;;
153
+ esac
154
+ exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
+ # Admittedly, this is quite paranoid, since all the known shells bail
156
+ # out after a failed `exec'.
157
+ $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
+ as_fn_exit 255
159
+ fi
160
+ # We don't want this to propagate to other subprocesses.
161
+ { _as_can_reexec=; unset _as_can_reexec;}
162
+ if test "x$CONFIG_SHELL" = x; then
163
+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
+ emulate sh
165
+ NULLCMD=:
166
+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
+ # is contrary to our usage. Disable this feature.
168
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
169
+ setopt NO_GLOB_SUBST
170
+ else
171
+ case \`(set -o) 2>/dev/null\` in #(
172
+ *posix*) :
173
+ set -o posix ;; #(
174
+ *) :
175
+ ;;
176
+ esac
177
+ fi
178
+ "
179
+ as_required="as_fn_return () { (exit \$1); }
180
+ as_fn_success () { as_fn_return 0; }
181
+ as_fn_failure () { as_fn_return 1; }
182
+ as_fn_ret_success () { return 0; }
183
+ as_fn_ret_failure () { return 1; }
184
+
185
+ exitcode=0
186
+ as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
+ as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
+ as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
+ as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
+ if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
+
192
+ else
193
+ exitcode=1; echo positional parameters were not saved.
194
+ fi
195
+ test x\$exitcode = x0 || exit 1
196
+ test -x / || exit 1"
197
+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
+ test \$(( 1 + 1 )) = 2 || exit 1"
202
+ if (eval "$as_required") 2>/dev/null; then :
203
+ as_have_required=yes
204
+ else
205
+ as_have_required=no
206
+ fi
207
+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
+
209
+ else
210
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211
+ as_found=false
212
+ for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213
+ do
214
+ IFS=$as_save_IFS
215
+ test -z "$as_dir" && as_dir=.
216
+ as_found=:
217
+ case $as_dir in #(
218
+ /*)
219
+ for as_base in sh bash ksh sh5; do
220
+ # Try only shells that exist, to save several forks.
221
+ as_shell=$as_dir/$as_base
222
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224
+ CONFIG_SHELL=$as_shell as_have_required=yes
225
+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226
+ break 2
227
+ fi
228
+ fi
229
+ done;;
230
+ esac
231
+ as_found=false
232
+ done
233
+ $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235
+ CONFIG_SHELL=$SHELL as_have_required=yes
236
+ fi; }
237
+ IFS=$as_save_IFS
238
+
239
+
240
+ if test "x$CONFIG_SHELL" != x; then :
241
+ export CONFIG_SHELL
242
+ # We cannot yet assume a decent shell, so we have to provide a
243
+ # neutralization value for shells without unset; and this also
244
+ # works around shells that cannot unset nonexistent variables.
245
+ # Preserve -v and -x to the replacement shell.
246
+ BASH_ENV=/dev/null
247
+ ENV=/dev/null
248
+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249
+ case $- in # ((((
250
+ *v*x* | *x*v* ) as_opts=-vx ;;
251
+ *v* ) as_opts=-v ;;
252
+ *x* ) as_opts=-x ;;
253
+ * ) as_opts= ;;
254
+ esac
255
+ exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256
+ # Admittedly, this is quite paranoid, since all the known shells bail
257
+ # out after a failed `exec'.
258
+ $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259
+ exit 255
260
+ fi
261
+
262
+ if test x$as_have_required = xno; then :
263
+ $as_echo "$0: This script requires a shell more modern than all"
264
+ $as_echo "$0: the shells that I found on your system."
265
+ if test x${ZSH_VERSION+set} = xset ; then
266
+ $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267
+ $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268
+ else
269
+ $as_echo "$0: Please tell bug-autoconf@gnu.org and skrah@bytereef.org
270
+ $0: about your system, including any error possibly output
271
+ $0: before this message. Then install a modern shell, or
272
+ $0: manually run the script under such a shell if you do
273
+ $0: have one."
274
+ fi
275
+ exit 1
276
+ fi
277
+ fi
278
+ fi
279
+ SHELL=${CONFIG_SHELL-/bin/sh}
280
+ export SHELL
281
+ # Unset more variables known to interfere with behavior of common tools.
282
+ CLICOLOR_FORCE= GREP_OPTIONS=
283
+ unset CLICOLOR_FORCE GREP_OPTIONS
284
+
285
+ ## --------------------- ##
286
+ ## M4sh Shell Functions. ##
287
+ ## --------------------- ##
288
+ # as_fn_unset VAR
289
+ # ---------------
290
+ # Portably unset VAR.
291
+ as_fn_unset ()
292
+ {
293
+ { eval $1=; unset $1;}
294
+ }
295
+ as_unset=as_fn_unset
296
+
297
+ # as_fn_set_status STATUS
298
+ # -----------------------
299
+ # Set $? to STATUS, without forking.
300
+ as_fn_set_status ()
301
+ {
302
+ return $1
303
+ } # as_fn_set_status
304
+
305
+ # as_fn_exit STATUS
306
+ # -----------------
307
+ # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308
+ as_fn_exit ()
309
+ {
310
+ set +e
311
+ as_fn_set_status $1
312
+ exit $1
313
+ } # as_fn_exit
314
+
315
+ # as_fn_mkdir_p
316
+ # -------------
317
+ # Create "$as_dir" as a directory, including parents if necessary.
318
+ as_fn_mkdir_p ()
319
+ {
320
+
321
+ case $as_dir in #(
322
+ -*) as_dir=./$as_dir;;
323
+ esac
324
+ test -d "$as_dir" || eval $as_mkdir_p || {
325
+ as_dirs=
326
+ while :; do
327
+ case $as_dir in #(
328
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329
+ *) as_qdir=$as_dir;;
330
+ esac
331
+ as_dirs="'$as_qdir' $as_dirs"
332
+ as_dir=`$as_dirname -- "$as_dir" ||
333
+ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334
+ X"$as_dir" : 'X\(//\)[^/]' \| \
335
+ X"$as_dir" : 'X\(//\)$' \| \
336
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337
+ $as_echo X"$as_dir" |
338
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339
+ s//\1/
340
+ q
341
+ }
342
+ /^X\(\/\/\)[^/].*/{
343
+ s//\1/
344
+ q
345
+ }
346
+ /^X\(\/\/\)$/{
347
+ s//\1/
348
+ q
349
+ }
350
+ /^X\(\/\).*/{
351
+ s//\1/
352
+ q
353
+ }
354
+ s/.*/./; q'`
355
+ test -d "$as_dir" && break
356
+ done
357
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
358
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
+
360
+
361
+ } # as_fn_mkdir_p
362
+
363
+ # as_fn_executable_p FILE
364
+ # -----------------------
365
+ # Test if FILE is an executable regular file.
366
+ as_fn_executable_p ()
367
+ {
368
+ test -f "$1" && test -x "$1"
369
+ } # as_fn_executable_p
370
+ # as_fn_append VAR VALUE
371
+ # ----------------------
372
+ # Append the text in VALUE to the end of the definition contained in VAR. Take
373
+ # advantage of any shell optimizations that allow amortized linear growth over
374
+ # repeated appends, instead of the typical quadratic growth present in naive
375
+ # implementations.
376
+ if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377
+ eval 'as_fn_append ()
378
+ {
379
+ eval $1+=\$2
380
+ }'
381
+ else
382
+ as_fn_append ()
383
+ {
384
+ eval $1=\$$1\$2
385
+ }
386
+ fi # as_fn_append
387
+
388
+ # as_fn_arith ARG...
389
+ # ------------------
390
+ # Perform arithmetic evaluation on the ARGs, and store the result in the
391
+ # global $as_val. Take advantage of shells that can avoid forks. The arguments
392
+ # must be portable across $(()) and expr.
393
+ if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394
+ eval 'as_fn_arith ()
395
+ {
396
+ as_val=$(( $* ))
397
+ }'
398
+ else
399
+ as_fn_arith ()
400
+ {
401
+ as_val=`expr "$@" || test $? -eq 1`
402
+ }
403
+ fi # as_fn_arith
404
+
405
+
406
+ # as_fn_error STATUS ERROR [LINENO LOG_FD]
407
+ # ----------------------------------------
408
+ # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409
+ # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410
+ # script with STATUS, using 1 if that was 0.
411
+ as_fn_error ()
412
+ {
413
+ as_status=$1; test $as_status -eq 0 && as_status=1
414
+ if test "$4"; then
415
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417
+ fi
418
+ $as_echo "$as_me: error: $2" >&2
419
+ as_fn_exit $as_status
420
+ } # as_fn_error
421
+
422
+ if expr a : '\(a\)' >/dev/null 2>&1 &&
423
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
424
+ as_expr=expr
425
+ else
426
+ as_expr=false
427
+ fi
428
+
429
+ if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430
+ as_basename=basename
431
+ else
432
+ as_basename=false
433
+ fi
434
+
435
+ if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436
+ as_dirname=dirname
437
+ else
438
+ as_dirname=false
439
+ fi
440
+
441
+ as_me=`$as_basename -- "$0" ||
442
+ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443
+ X"$0" : 'X\(//\)$' \| \
444
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445
+ $as_echo X/"$0" |
446
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
447
+ s//\1/
448
+ q
449
+ }
450
+ /^X\/\(\/\/\)$/{
451
+ s//\1/
452
+ q
453
+ }
454
+ /^X\/\(\/\).*/{
455
+ s//\1/
456
+ q
457
+ }
458
+ s/.*/./; q'`
459
+
460
+ # Avoid depending upon Character Ranges.
461
+ as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462
+ as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463
+ as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464
+ as_cr_digits='0123456789'
465
+ as_cr_alnum=$as_cr_Letters$as_cr_digits
466
+
467
+
468
+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
469
+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
470
+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471
+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472
+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473
+ sed -n '
474
+ p
475
+ /[$]LINENO/=
476
+ ' <$as_myself |
477
+ sed '
478
+ s/[$]LINENO.*/&-/
479
+ t lineno
480
+ b
481
+ :lineno
482
+ N
483
+ :loop
484
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485
+ t loop
486
+ s/-\n.*//
487
+ ' >$as_me.lineno &&
488
+ chmod +x "$as_me.lineno" ||
489
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
+
491
+ # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492
+ # already done that, so ensure we don't try to do so again and fall
493
+ # in an infinite loop. This has already happened in practice.
494
+ _as_can_reexec=no; export _as_can_reexec
495
+ # Don't try to exec as it changes $[0], causing all sort of problems
496
+ # (the dirname of $[0] is not the place where we might find the
497
+ # original and so on. Autoconf is especially sensitive to this).
498
+ . "./$as_me.lineno"
499
+ # Exit status is that of the last command.
500
+ exit
501
+ }
502
+
503
+ ECHO_C= ECHO_N= ECHO_T=
504
+ case `echo -n x` in #(((((
505
+ -n*)
506
+ case `echo 'xy\c'` in
507
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508
+ xy) ECHO_C='\c';;
509
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510
+ ECHO_T=' ';;
511
+ esac;;
512
+ *)
513
+ ECHO_N='-n';;
514
+ esac
515
+
516
+ rm -f conf$$ conf$$.exe conf$$.file
517
+ if test -d conf$$.dir; then
518
+ rm -f conf$$.dir/conf$$.file
519
+ else
520
+ rm -f conf$$.dir
521
+ mkdir conf$$.dir 2>/dev/null
522
+ fi
523
+ if (echo >conf$$.file) 2>/dev/null; then
524
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
525
+ as_ln_s='ln -s'
526
+ # ... but there are two gotchas:
527
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529
+ # In both cases, we have to default to `cp -pR'.
530
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531
+ as_ln_s='cp -pR'
532
+ elif ln conf$$.file conf$$ 2>/dev/null; then
533
+ as_ln_s=ln
534
+ else
535
+ as_ln_s='cp -pR'
536
+ fi
537
+ else
538
+ as_ln_s='cp -pR'
539
+ fi
540
+ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541
+ rmdir conf$$.dir 2>/dev/null
542
+
543
+ if mkdir -p . 2>/dev/null; then
544
+ as_mkdir_p='mkdir -p "$as_dir"'
545
+ else
546
+ test -d ./-p && rmdir ./-p
547
+ as_mkdir_p=false
548
+ fi
549
+
550
+ as_test_x='test -x'
551
+ as_executable_p=as_fn_executable_p
552
+
553
+ # Sed expression to map a string onto a valid CPP name.
554
+ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
+
556
+ # Sed expression to map a string onto a valid variable name.
557
+ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
+
559
+
560
+ test -n "$DJDIR" || exec 7<&0 </dev/null
561
+ exec 6>&1
562
+
563
+ # Name of the host.
564
+ # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565
+ # so uname gets run too.
566
+ ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
+
568
+ #
569
+ # Initializations.
570
+ #
571
+ ac_default_prefix=/usr/local
572
+ ac_clean_files=
573
+ ac_config_libobj_dir=.
574
+ LIBOBJS=
575
+ cross_compiling=no
576
+ subdirs=
577
+ MFLAGS=
578
+ MAKEFLAGS=
579
+
580
+ # Identity of this package.
581
+ PACKAGE_NAME='xnd'
582
+ PACKAGE_TARNAME='xnd'
583
+ PACKAGE_VERSION='0.2.0dev3'
584
+ PACKAGE_STRING='xnd 0.2.0dev3'
585
+ PACKAGE_BUGREPORT='skrah@bytereef.org'
586
+ PACKAGE_URL='https://github.com/plures/'
587
+
588
+ ac_subst_vars='LTLIBOBJS
589
+ LIBOBJS
590
+ CONFIGURE_LDFLAGS
591
+ CONFIGURE_CFLAGS
592
+ XND_OPT
593
+ XND_WARN
594
+ LD
595
+ NDT_INSTALL_DOCS
596
+ CONFIGURE_LIBS_TEST
597
+ CONFIGURE_LIBS
598
+ CONFIGURE_INCLUDES_TEST
599
+ CONFIGURE_INCLUDES
600
+ INSTALL
601
+ INSTALL_DATA
602
+ INSTALL_SCRIPT
603
+ INSTALL_PROGRAM
604
+ EGREP
605
+ GREP
606
+ CPP
607
+ RANLIB
608
+ AR
609
+ OBJEXT
610
+ EXEEXT
611
+ ac_ct_CC
612
+ CPPFLAGS
613
+ LDFLAGS
614
+ CFLAGS
615
+ CC
616
+ host_os
617
+ host_vendor
618
+ host_cpu
619
+ host
620
+ build_os
621
+ build_vendor
622
+ build_cpu
623
+ build
624
+ LIBSHARED
625
+ LIBSONAME
626
+ LIBNAME
627
+ LIBRARY_PATH
628
+ LIBSTATIC
629
+ target_alias
630
+ host_alias
631
+ build_alias
632
+ LIBS
633
+ ECHO_T
634
+ ECHO_N
635
+ ECHO_C
636
+ DEFS
637
+ mandir
638
+ localedir
639
+ libdir
640
+ psdir
641
+ pdfdir
642
+ dvidir
643
+ htmldir
644
+ infodir
645
+ docdir
646
+ oldincludedir
647
+ includedir
648
+ localstatedir
649
+ sharedstatedir
650
+ sysconfdir
651
+ datadir
652
+ datarootdir
653
+ libexecdir
654
+ sbindir
655
+ bindir
656
+ program_transform_name
657
+ prefix
658
+ exec_prefix
659
+ PACKAGE_URL
660
+ PACKAGE_BUGREPORT
661
+ PACKAGE_STRING
662
+ PACKAGE_VERSION
663
+ PACKAGE_TARNAME
664
+ PACKAGE_NAME
665
+ PATH_SEPARATOR
666
+ SHELL'
667
+ ac_subst_files=''
668
+ ac_user_opts='
669
+ enable_option_checking
670
+ with_includes
671
+ with_libs
672
+ with_docs
673
+ '
674
+ ac_precious_vars='build_alias
675
+ host_alias
676
+ target_alias
677
+ CC
678
+ CFLAGS
679
+ LDFLAGS
680
+ LIBS
681
+ CPPFLAGS
682
+ CPP'
683
+
684
+
685
+ # Initialize some variables set by options.
686
+ ac_init_help=
687
+ ac_init_version=false
688
+ ac_unrecognized_opts=
689
+ ac_unrecognized_sep=
690
+ # The variables have the same names as the options, with
691
+ # dashes changed to underlines.
692
+ cache_file=/dev/null
693
+ exec_prefix=NONE
694
+ no_create=
695
+ no_recursion=
696
+ prefix=NONE
697
+ program_prefix=NONE
698
+ program_suffix=NONE
699
+ program_transform_name=s,x,x,
700
+ silent=
701
+ site=
702
+ srcdir=
703
+ verbose=
704
+ x_includes=NONE
705
+ x_libraries=NONE
706
+
707
+ # Installation directory options.
708
+ # These are left unexpanded so users can "make install exec_prefix=/foo"
709
+ # and all the variables that are supposed to be based on exec_prefix
710
+ # by default will actually change.
711
+ # Use braces instead of parens because sh, perl, etc. also accept them.
712
+ # (The list follows the same order as the GNU Coding Standards.)
713
+ bindir='${exec_prefix}/bin'
714
+ sbindir='${exec_prefix}/sbin'
715
+ libexecdir='${exec_prefix}/libexec'
716
+ datarootdir='${prefix}/share'
717
+ datadir='${datarootdir}'
718
+ sysconfdir='${prefix}/etc'
719
+ sharedstatedir='${prefix}/com'
720
+ localstatedir='${prefix}/var'
721
+ includedir='${prefix}/include'
722
+ oldincludedir='/usr/include'
723
+ docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
724
+ infodir='${datarootdir}/info'
725
+ htmldir='${docdir}'
726
+ dvidir='${docdir}'
727
+ pdfdir='${docdir}'
728
+ psdir='${docdir}'
729
+ libdir='${exec_prefix}/lib'
730
+ localedir='${datarootdir}/locale'
731
+ mandir='${datarootdir}/man'
732
+
733
+ ac_prev=
734
+ ac_dashdash=
735
+ for ac_option
736
+ do
737
+ # If the previous option needs an argument, assign it.
738
+ if test -n "$ac_prev"; then
739
+ eval $ac_prev=\$ac_option
740
+ ac_prev=
741
+ continue
742
+ fi
743
+
744
+ case $ac_option in
745
+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
746
+ *=) ac_optarg= ;;
747
+ *) ac_optarg=yes ;;
748
+ esac
749
+
750
+ # Accept the important Cygnus configure options, so we can diagnose typos.
751
+
752
+ case $ac_dashdash$ac_option in
753
+ --)
754
+ ac_dashdash=yes ;;
755
+
756
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
757
+ ac_prev=bindir ;;
758
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
759
+ bindir=$ac_optarg ;;
760
+
761
+ -build | --build | --buil | --bui | --bu)
762
+ ac_prev=build_alias ;;
763
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
764
+ build_alias=$ac_optarg ;;
765
+
766
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
767
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
768
+ ac_prev=cache_file ;;
769
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
770
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
771
+ cache_file=$ac_optarg ;;
772
+
773
+ --config-cache | -C)
774
+ cache_file=config.cache ;;
775
+
776
+ -datadir | --datadir | --datadi | --datad)
777
+ ac_prev=datadir ;;
778
+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
779
+ datadir=$ac_optarg ;;
780
+
781
+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
782
+ | --dataroo | --dataro | --datar)
783
+ ac_prev=datarootdir ;;
784
+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
785
+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
786
+ datarootdir=$ac_optarg ;;
787
+
788
+ -disable-* | --disable-*)
789
+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
790
+ # Reject names that are not valid shell variable names.
791
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
792
+ as_fn_error $? "invalid feature name: $ac_useropt"
793
+ ac_useropt_orig=$ac_useropt
794
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
795
+ case $ac_user_opts in
796
+ *"
797
+ "enable_$ac_useropt"
798
+ "*) ;;
799
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
800
+ ac_unrecognized_sep=', ';;
801
+ esac
802
+ eval enable_$ac_useropt=no ;;
803
+
804
+ -docdir | --docdir | --docdi | --doc | --do)
805
+ ac_prev=docdir ;;
806
+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
807
+ docdir=$ac_optarg ;;
808
+
809
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
810
+ ac_prev=dvidir ;;
811
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
812
+ dvidir=$ac_optarg ;;
813
+
814
+ -enable-* | --enable-*)
815
+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
816
+ # Reject names that are not valid shell variable names.
817
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
818
+ as_fn_error $? "invalid feature name: $ac_useropt"
819
+ ac_useropt_orig=$ac_useropt
820
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
821
+ case $ac_user_opts in
822
+ *"
823
+ "enable_$ac_useropt"
824
+ "*) ;;
825
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
826
+ ac_unrecognized_sep=', ';;
827
+ esac
828
+ eval enable_$ac_useropt=\$ac_optarg ;;
829
+
830
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
831
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
832
+ | --exec | --exe | --ex)
833
+ ac_prev=exec_prefix ;;
834
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
835
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
836
+ | --exec=* | --exe=* | --ex=*)
837
+ exec_prefix=$ac_optarg ;;
838
+
839
+ -gas | --gas | --ga | --g)
840
+ # Obsolete; use --with-gas.
841
+ with_gas=yes ;;
842
+
843
+ -help | --help | --hel | --he | -h)
844
+ ac_init_help=long ;;
845
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
846
+ ac_init_help=recursive ;;
847
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
848
+ ac_init_help=short ;;
849
+
850
+ -host | --host | --hos | --ho)
851
+ ac_prev=host_alias ;;
852
+ -host=* | --host=* | --hos=* | --ho=*)
853
+ host_alias=$ac_optarg ;;
854
+
855
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
856
+ ac_prev=htmldir ;;
857
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
858
+ | --ht=*)
859
+ htmldir=$ac_optarg ;;
860
+
861
+ -includedir | --includedir | --includedi | --included | --include \
862
+ | --includ | --inclu | --incl | --inc)
863
+ ac_prev=includedir ;;
864
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
865
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
866
+ includedir=$ac_optarg ;;
867
+
868
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
869
+ ac_prev=infodir ;;
870
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
871
+ infodir=$ac_optarg ;;
872
+
873
+ -libdir | --libdir | --libdi | --libd)
874
+ ac_prev=libdir ;;
875
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
876
+ libdir=$ac_optarg ;;
877
+
878
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
879
+ | --libexe | --libex | --libe)
880
+ ac_prev=libexecdir ;;
881
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
882
+ | --libexe=* | --libex=* | --libe=*)
883
+ libexecdir=$ac_optarg ;;
884
+
885
+ -localedir | --localedir | --localedi | --localed | --locale)
886
+ ac_prev=localedir ;;
887
+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
888
+ localedir=$ac_optarg ;;
889
+
890
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
891
+ | --localstate | --localstat | --localsta | --localst | --locals)
892
+ ac_prev=localstatedir ;;
893
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
894
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
895
+ localstatedir=$ac_optarg ;;
896
+
897
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
898
+ ac_prev=mandir ;;
899
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
900
+ mandir=$ac_optarg ;;
901
+
902
+ -nfp | --nfp | --nf)
903
+ # Obsolete; use --without-fp.
904
+ with_fp=no ;;
905
+
906
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
907
+ | --no-cr | --no-c | -n)
908
+ no_create=yes ;;
909
+
910
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
911
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
912
+ no_recursion=yes ;;
913
+
914
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
915
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
916
+ | --oldin | --oldi | --old | --ol | --o)
917
+ ac_prev=oldincludedir ;;
918
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
919
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
920
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
921
+ oldincludedir=$ac_optarg ;;
922
+
923
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
924
+ ac_prev=prefix ;;
925
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
926
+ prefix=$ac_optarg ;;
927
+
928
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
929
+ | --program-pre | --program-pr | --program-p)
930
+ ac_prev=program_prefix ;;
931
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
932
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
933
+ program_prefix=$ac_optarg ;;
934
+
935
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
936
+ | --program-suf | --program-su | --program-s)
937
+ ac_prev=program_suffix ;;
938
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
939
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
940
+ program_suffix=$ac_optarg ;;
941
+
942
+ -program-transform-name | --program-transform-name \
943
+ | --program-transform-nam | --program-transform-na \
944
+ | --program-transform-n | --program-transform- \
945
+ | --program-transform | --program-transfor \
946
+ | --program-transfo | --program-transf \
947
+ | --program-trans | --program-tran \
948
+ | --progr-tra | --program-tr | --program-t)
949
+ ac_prev=program_transform_name ;;
950
+ -program-transform-name=* | --program-transform-name=* \
951
+ | --program-transform-nam=* | --program-transform-na=* \
952
+ | --program-transform-n=* | --program-transform-=* \
953
+ | --program-transform=* | --program-transfor=* \
954
+ | --program-transfo=* | --program-transf=* \
955
+ | --program-trans=* | --program-tran=* \
956
+ | --progr-tra=* | --program-tr=* | --program-t=*)
957
+ program_transform_name=$ac_optarg ;;
958
+
959
+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
960
+ ac_prev=pdfdir ;;
961
+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
962
+ pdfdir=$ac_optarg ;;
963
+
964
+ -psdir | --psdir | --psdi | --psd | --ps)
965
+ ac_prev=psdir ;;
966
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
967
+ psdir=$ac_optarg ;;
968
+
969
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
970
+ | -silent | --silent | --silen | --sile | --sil)
971
+ silent=yes ;;
972
+
973
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
974
+ ac_prev=sbindir ;;
975
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
976
+ | --sbi=* | --sb=*)
977
+ sbindir=$ac_optarg ;;
978
+
979
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
980
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
981
+ | --sharedst | --shareds | --shared | --share | --shar \
982
+ | --sha | --sh)
983
+ ac_prev=sharedstatedir ;;
984
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
985
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
986
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
987
+ | --sha=* | --sh=*)
988
+ sharedstatedir=$ac_optarg ;;
989
+
990
+ -site | --site | --sit)
991
+ ac_prev=site ;;
992
+ -site=* | --site=* | --sit=*)
993
+ site=$ac_optarg ;;
994
+
995
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
996
+ ac_prev=srcdir ;;
997
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
998
+ srcdir=$ac_optarg ;;
999
+
1000
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1001
+ | --syscon | --sysco | --sysc | --sys | --sy)
1002
+ ac_prev=sysconfdir ;;
1003
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1004
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1005
+ sysconfdir=$ac_optarg ;;
1006
+
1007
+ -target | --target | --targe | --targ | --tar | --ta | --t)
1008
+ ac_prev=target_alias ;;
1009
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1010
+ target_alias=$ac_optarg ;;
1011
+
1012
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
1013
+ verbose=yes ;;
1014
+
1015
+ -version | --version | --versio | --versi | --vers | -V)
1016
+ ac_init_version=: ;;
1017
+
1018
+ -with-* | --with-*)
1019
+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1020
+ # Reject names that are not valid shell variable names.
1021
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022
+ as_fn_error $? "invalid package name: $ac_useropt"
1023
+ ac_useropt_orig=$ac_useropt
1024
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025
+ case $ac_user_opts in
1026
+ *"
1027
+ "with_$ac_useropt"
1028
+ "*) ;;
1029
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1030
+ ac_unrecognized_sep=', ';;
1031
+ esac
1032
+ eval with_$ac_useropt=\$ac_optarg ;;
1033
+
1034
+ -without-* | --without-*)
1035
+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1036
+ # Reject names that are not valid shell variable names.
1037
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038
+ as_fn_error $? "invalid package name: $ac_useropt"
1039
+ ac_useropt_orig=$ac_useropt
1040
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041
+ case $ac_user_opts in
1042
+ *"
1043
+ "with_$ac_useropt"
1044
+ "*) ;;
1045
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1046
+ ac_unrecognized_sep=', ';;
1047
+ esac
1048
+ eval with_$ac_useropt=no ;;
1049
+
1050
+ --x)
1051
+ # Obsolete; use --with-x.
1052
+ with_x=yes ;;
1053
+
1054
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055
+ | --x-incl | --x-inc | --x-in | --x-i)
1056
+ ac_prev=x_includes ;;
1057
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1059
+ x_includes=$ac_optarg ;;
1060
+
1061
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
1062
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063
+ ac_prev=x_libraries ;;
1064
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1066
+ x_libraries=$ac_optarg ;;
1067
+
1068
+ -*) as_fn_error $? "unrecognized option: \`$ac_option'
1069
+ Try \`$0 --help' for more information"
1070
+ ;;
1071
+
1072
+ *=*)
1073
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1074
+ # Reject names that are not valid shell variable names.
1075
+ case $ac_envvar in #(
1076
+ '' | [0-9]* | *[!_$as_cr_alnum]* )
1077
+ as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1078
+ esac
1079
+ eval $ac_envvar=\$ac_optarg
1080
+ export $ac_envvar ;;
1081
+
1082
+ *)
1083
+ # FIXME: should be removed in autoconf 3.0.
1084
+ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1085
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086
+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1087
+ : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1088
+ ;;
1089
+
1090
+ esac
1091
+ done
1092
+
1093
+ if test -n "$ac_prev"; then
1094
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1095
+ as_fn_error $? "missing argument to $ac_option"
1096
+ fi
1097
+
1098
+ if test -n "$ac_unrecognized_opts"; then
1099
+ case $enable_option_checking in
1100
+ no) ;;
1101
+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1102
+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1103
+ esac
1104
+ fi
1105
+
1106
+ # Check all directory arguments for consistency.
1107
+ for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1108
+ datadir sysconfdir sharedstatedir localstatedir includedir \
1109
+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1110
+ libdir localedir mandir
1111
+ do
1112
+ eval ac_val=\$$ac_var
1113
+ # Remove trailing slashes.
1114
+ case $ac_val in
1115
+ */ )
1116
+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1117
+ eval $ac_var=\$ac_val;;
1118
+ esac
1119
+ # Be sure to have absolute directory names.
1120
+ case $ac_val in
1121
+ [\\/$]* | ?:[\\/]* ) continue;;
1122
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1123
+ esac
1124
+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1125
+ done
1126
+
1127
+ # There might be people who depend on the old broken behavior: `$host'
1128
+ # used to hold the argument of --host etc.
1129
+ # FIXME: To remove some day.
1130
+ build=$build_alias
1131
+ host=$host_alias
1132
+ target=$target_alias
1133
+
1134
+ # FIXME: To remove some day.
1135
+ if test "x$host_alias" != x; then
1136
+ if test "x$build_alias" = x; then
1137
+ cross_compiling=maybe
1138
+ elif test "x$build_alias" != "x$host_alias"; then
1139
+ cross_compiling=yes
1140
+ fi
1141
+ fi
1142
+
1143
+ ac_tool_prefix=
1144
+ test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145
+
1146
+ test "$silent" = yes && exec 6>/dev/null
1147
+
1148
+
1149
+ ac_pwd=`pwd` && test -n "$ac_pwd" &&
1150
+ ac_ls_di=`ls -di .` &&
1151
+ ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1152
+ as_fn_error $? "working directory cannot be determined"
1153
+ test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154
+ as_fn_error $? "pwd does not report name of working directory"
1155
+
1156
+
1157
+ # Find the source files, if location was not specified.
1158
+ if test -z "$srcdir"; then
1159
+ ac_srcdir_defaulted=yes
1160
+ # Try the directory containing this script, then the parent directory.
1161
+ ac_confdir=`$as_dirname -- "$as_myself" ||
1162
+ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1163
+ X"$as_myself" : 'X\(//\)[^/]' \| \
1164
+ X"$as_myself" : 'X\(//\)$' \| \
1165
+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1166
+ $as_echo X"$as_myself" |
1167
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1168
+ s//\1/
1169
+ q
1170
+ }
1171
+ /^X\(\/\/\)[^/].*/{
1172
+ s//\1/
1173
+ q
1174
+ }
1175
+ /^X\(\/\/\)$/{
1176
+ s//\1/
1177
+ q
1178
+ }
1179
+ /^X\(\/\).*/{
1180
+ s//\1/
1181
+ q
1182
+ }
1183
+ s/.*/./; q'`
1184
+ srcdir=$ac_confdir
1185
+ if test ! -r "$srcdir/$ac_unique_file"; then
1186
+ srcdir=..
1187
+ fi
1188
+ else
1189
+ ac_srcdir_defaulted=no
1190
+ fi
1191
+ if test ! -r "$srcdir/$ac_unique_file"; then
1192
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1193
+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1194
+ fi
1195
+ ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1196
+ ac_abs_confdir=`(
1197
+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1198
+ pwd)`
1199
+ # When building in place, set srcdir=.
1200
+ if test "$ac_abs_confdir" = "$ac_pwd"; then
1201
+ srcdir=.
1202
+ fi
1203
+ # Remove unnecessary trailing slashes from srcdir.
1204
+ # Double slashes in file names in object file debugging info
1205
+ # mess up M-x gdb in Emacs.
1206
+ case $srcdir in
1207
+ */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1208
+ esac
1209
+ for ac_var in $ac_precious_vars; do
1210
+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
1211
+ eval ac_env_${ac_var}_value=\$${ac_var}
1212
+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1213
+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
1214
+ done
1215
+
1216
+ #
1217
+ # Report the --help message.
1218
+ #
1219
+ if test "$ac_init_help" = "long"; then
1220
+ # Omit some internal or obsolete options to make the list less imposing.
1221
+ # This message is too long to be a string in the A/UX 3.1 sh.
1222
+ cat <<_ACEOF
1223
+ \`configure' configures xnd 0.2.0dev3 to adapt to many kinds of systems.
1224
+
1225
+ Usage: $0 [OPTION]... [VAR=VALUE]...
1226
+
1227
+ To assign environment variables (e.g., CC, CFLAGS...), specify them as
1228
+ VAR=VALUE. See below for descriptions of some of the useful variables.
1229
+
1230
+ Defaults for the options are specified in brackets.
1231
+
1232
+ Configuration:
1233
+ -h, --help display this help and exit
1234
+ --help=short display options specific to this package
1235
+ --help=recursive display the short help of all the included packages
1236
+ -V, --version display version information and exit
1237
+ -q, --quiet, --silent do not print \`checking ...' messages
1238
+ --cache-file=FILE cache test results in FILE [disabled]
1239
+ -C, --config-cache alias for \`--cache-file=config.cache'
1240
+ -n, --no-create do not create output files
1241
+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
1242
+
1243
+ Installation directories:
1244
+ --prefix=PREFIX install architecture-independent files in PREFIX
1245
+ [$ac_default_prefix]
1246
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1247
+ [PREFIX]
1248
+
1249
+ By default, \`make install' will install all the files in
1250
+ \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1251
+ an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1252
+ for instance \`--prefix=\$HOME'.
1253
+
1254
+ For better control, use the options below.
1255
+
1256
+ Fine tuning of the installation directories:
1257
+ --bindir=DIR user executables [EPREFIX/bin]
1258
+ --sbindir=DIR system admin executables [EPREFIX/sbin]
1259
+ --libexecdir=DIR program executables [EPREFIX/libexec]
1260
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1261
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1262
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1263
+ --libdir=DIR object code libraries [EPREFIX/lib]
1264
+ --includedir=DIR C header files [PREFIX/include]
1265
+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
1266
+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1267
+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1268
+ --infodir=DIR info documentation [DATAROOTDIR/info]
1269
+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1270
+ --mandir=DIR man documentation [DATAROOTDIR/man]
1271
+ --docdir=DIR documentation root [DATAROOTDIR/doc/xnd]
1272
+ --htmldir=DIR html documentation [DOCDIR]
1273
+ --dvidir=DIR dvi documentation [DOCDIR]
1274
+ --pdfdir=DIR pdf documentation [DOCDIR]
1275
+ --psdir=DIR ps documentation [DOCDIR]
1276
+ _ACEOF
1277
+
1278
+ cat <<\_ACEOF
1279
+
1280
+ System types:
1281
+ --build=BUILD configure for building on BUILD [guessed]
1282
+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
1283
+ _ACEOF
1284
+ fi
1285
+
1286
+ if test -n "$ac_init_help"; then
1287
+ case $ac_init_help in
1288
+ short | recursive ) echo "Configuration of xnd 0.2.0dev3:";;
1289
+ esac
1290
+ cat <<\_ACEOF
1291
+
1292
+ Optional Packages:
1293
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1294
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1295
+ --with-includes="/usr/local/include"
1296
+ absolute path to an include directory
1297
+ --with-libs="/usr/local/lib"
1298
+ absolute path to a library directory
1299
+ --with-docs install documentation - enabled by default
1300
+
1301
+ Some influential environment variables:
1302
+ CC C compiler command
1303
+ CFLAGS C compiler flags
1304
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1305
+ nonstandard directory <lib dir>
1306
+ LIBS libraries to pass to the linker, e.g. -l<library>
1307
+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1308
+ you have headers in a nonstandard directory <include dir>
1309
+ CPP C preprocessor
1310
+
1311
+ Use these variables to override the choices made by `configure' or to help
1312
+ it to find libraries and programs with nonstandard names/locations.
1313
+
1314
+ Report bugs to <skrah@bytereef.org>.
1315
+ xnd home page: <https://github.com/plures/>.
1316
+ _ACEOF
1317
+ ac_status=$?
1318
+ fi
1319
+
1320
+ if test "$ac_init_help" = "recursive"; then
1321
+ # If there are subdirs, report their specific --help.
1322
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1323
+ test -d "$ac_dir" ||
1324
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1325
+ continue
1326
+ ac_builddir=.
1327
+
1328
+ case "$ac_dir" in
1329
+ .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1330
+ *)
1331
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1332
+ # A ".." for each directory in $ac_dir_suffix.
1333
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1334
+ case $ac_top_builddir_sub in
1335
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1336
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1337
+ esac ;;
1338
+ esac
1339
+ ac_abs_top_builddir=$ac_pwd
1340
+ ac_abs_builddir=$ac_pwd$ac_dir_suffix
1341
+ # for backward compatibility:
1342
+ ac_top_builddir=$ac_top_build_prefix
1343
+
1344
+ case $srcdir in
1345
+ .) # We are building in place.
1346
+ ac_srcdir=.
1347
+ ac_top_srcdir=$ac_top_builddir_sub
1348
+ ac_abs_top_srcdir=$ac_pwd ;;
1349
+ [\\/]* | ?:[\\/]* ) # Absolute name.
1350
+ ac_srcdir=$srcdir$ac_dir_suffix;
1351
+ ac_top_srcdir=$srcdir
1352
+ ac_abs_top_srcdir=$srcdir ;;
1353
+ *) # Relative name.
1354
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1355
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
1356
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1357
+ esac
1358
+ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1359
+
1360
+ cd "$ac_dir" || { ac_status=$?; continue; }
1361
+ # Check for guested configure.
1362
+ if test -f "$ac_srcdir/configure.gnu"; then
1363
+ echo &&
1364
+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1365
+ elif test -f "$ac_srcdir/configure"; then
1366
+ echo &&
1367
+ $SHELL "$ac_srcdir/configure" --help=recursive
1368
+ else
1369
+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1370
+ fi || ac_status=$?
1371
+ cd "$ac_pwd" || { ac_status=$?; break; }
1372
+ done
1373
+ fi
1374
+
1375
+ test -n "$ac_init_help" && exit $ac_status
1376
+ if $ac_init_version; then
1377
+ cat <<\_ACEOF
1378
+ xnd configure 0.2.0dev3
1379
+ generated by GNU Autoconf 2.69
1380
+
1381
+ Copyright (C) 2012 Free Software Foundation, Inc.
1382
+ This configure script is free software; the Free Software Foundation
1383
+ gives unlimited permission to copy, distribute and modify it.
1384
+ _ACEOF
1385
+ exit
1386
+ fi
1387
+
1388
+ ## ------------------------ ##
1389
+ ## Autoconf initialization. ##
1390
+ ## ------------------------ ##
1391
+
1392
+ # ac_fn_c_try_compile LINENO
1393
+ # --------------------------
1394
+ # Try to compile conftest.$ac_ext, and return whether this succeeded.
1395
+ ac_fn_c_try_compile ()
1396
+ {
1397
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1398
+ rm -f conftest.$ac_objext
1399
+ if { { ac_try="$ac_compile"
1400
+ case "(($ac_try" in
1401
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1402
+ *) ac_try_echo=$ac_try;;
1403
+ esac
1404
+ eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1405
+ $as_echo "$ac_try_echo"; } >&5
1406
+ (eval "$ac_compile") 2>conftest.err
1407
+ ac_status=$?
1408
+ if test -s conftest.err; then
1409
+ grep -v '^ *+' conftest.err >conftest.er1
1410
+ cat conftest.er1 >&5
1411
+ mv -f conftest.er1 conftest.err
1412
+ fi
1413
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1414
+ test $ac_status = 0; } && {
1415
+ test -z "$ac_c_werror_flag" ||
1416
+ test ! -s conftest.err
1417
+ } && test -s conftest.$ac_objext; then :
1418
+ ac_retval=0
1419
+ else
1420
+ $as_echo "$as_me: failed program was:" >&5
1421
+ sed 's/^/| /' conftest.$ac_ext >&5
1422
+
1423
+ ac_retval=1
1424
+ fi
1425
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1426
+ as_fn_set_status $ac_retval
1427
+
1428
+ } # ac_fn_c_try_compile
1429
+
1430
+ # ac_fn_c_try_cpp LINENO
1431
+ # ----------------------
1432
+ # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1433
+ ac_fn_c_try_cpp ()
1434
+ {
1435
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1436
+ if { { ac_try="$ac_cpp conftest.$ac_ext"
1437
+ case "(($ac_try" in
1438
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1439
+ *) ac_try_echo=$ac_try;;
1440
+ esac
1441
+ eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1442
+ $as_echo "$ac_try_echo"; } >&5
1443
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1444
+ ac_status=$?
1445
+ if test -s conftest.err; then
1446
+ grep -v '^ *+' conftest.err >conftest.er1
1447
+ cat conftest.er1 >&5
1448
+ mv -f conftest.er1 conftest.err
1449
+ fi
1450
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1451
+ test $ac_status = 0; } > conftest.i && {
1452
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1453
+ test ! -s conftest.err
1454
+ }; then :
1455
+ ac_retval=0
1456
+ else
1457
+ $as_echo "$as_me: failed program was:" >&5
1458
+ sed 's/^/| /' conftest.$ac_ext >&5
1459
+
1460
+ ac_retval=1
1461
+ fi
1462
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1463
+ as_fn_set_status $ac_retval
1464
+
1465
+ } # ac_fn_c_try_cpp
1466
+
1467
+ # ac_fn_c_try_run LINENO
1468
+ # ----------------------
1469
+ # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1470
+ # that executables *can* be run.
1471
+ ac_fn_c_try_run ()
1472
+ {
1473
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474
+ if { { ac_try="$ac_link"
1475
+ case "(($ac_try" in
1476
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477
+ *) ac_try_echo=$ac_try;;
1478
+ esac
1479
+ eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480
+ $as_echo "$ac_try_echo"; } >&5
1481
+ (eval "$ac_link") 2>&5
1482
+ ac_status=$?
1483
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484
+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1485
+ { { case "(($ac_try" in
1486
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487
+ *) ac_try_echo=$ac_try;;
1488
+ esac
1489
+ eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490
+ $as_echo "$ac_try_echo"; } >&5
1491
+ (eval "$ac_try") 2>&5
1492
+ ac_status=$?
1493
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494
+ test $ac_status = 0; }; }; then :
1495
+ ac_retval=0
1496
+ else
1497
+ $as_echo "$as_me: program exited with status $ac_status" >&5
1498
+ $as_echo "$as_me: failed program was:" >&5
1499
+ sed 's/^/| /' conftest.$ac_ext >&5
1500
+
1501
+ ac_retval=$ac_status
1502
+ fi
1503
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1504
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1505
+ as_fn_set_status $ac_retval
1506
+
1507
+ } # ac_fn_c_try_run
1508
+ cat >config.log <<_ACEOF
1509
+ This file contains any messages produced by compilers while
1510
+ running configure, to aid debugging if configure makes a mistake.
1511
+
1512
+ It was created by xnd $as_me 0.2.0dev3, which was
1513
+ generated by GNU Autoconf 2.69. Invocation command line was
1514
+
1515
+ $ $0 $@
1516
+
1517
+ _ACEOF
1518
+ exec 5>>config.log
1519
+ {
1520
+ cat <<_ASUNAME
1521
+ ## --------- ##
1522
+ ## Platform. ##
1523
+ ## --------- ##
1524
+
1525
+ hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1526
+ uname -m = `(uname -m) 2>/dev/null || echo unknown`
1527
+ uname -r = `(uname -r) 2>/dev/null || echo unknown`
1528
+ uname -s = `(uname -s) 2>/dev/null || echo unknown`
1529
+ uname -v = `(uname -v) 2>/dev/null || echo unknown`
1530
+
1531
+ /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1532
+ /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1533
+
1534
+ /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1535
+ /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1536
+ /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1537
+ /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1538
+ /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1539
+ /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1540
+ /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1541
+
1542
+ _ASUNAME
1543
+
1544
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545
+ for as_dir in $PATH
1546
+ do
1547
+ IFS=$as_save_IFS
1548
+ test -z "$as_dir" && as_dir=.
1549
+ $as_echo "PATH: $as_dir"
1550
+ done
1551
+ IFS=$as_save_IFS
1552
+
1553
+ } >&5
1554
+
1555
+ cat >&5 <<_ACEOF
1556
+
1557
+
1558
+ ## ----------- ##
1559
+ ## Core tests. ##
1560
+ ## ----------- ##
1561
+
1562
+ _ACEOF
1563
+
1564
+
1565
+ # Keep a trace of the command line.
1566
+ # Strip out --no-create and --no-recursion so they do not pile up.
1567
+ # Strip out --silent because we don't want to record it for future runs.
1568
+ # Also quote any args containing shell meta-characters.
1569
+ # Make two passes to allow for proper duplicate-argument suppression.
1570
+ ac_configure_args=
1571
+ ac_configure_args0=
1572
+ ac_configure_args1=
1573
+ ac_must_keep_next=false
1574
+ for ac_pass in 1 2
1575
+ do
1576
+ for ac_arg
1577
+ do
1578
+ case $ac_arg in
1579
+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1580
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1581
+ | -silent | --silent | --silen | --sile | --sil)
1582
+ continue ;;
1583
+ *\'*)
1584
+ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1585
+ esac
1586
+ case $ac_pass in
1587
+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1588
+ 2)
1589
+ as_fn_append ac_configure_args1 " '$ac_arg'"
1590
+ if test $ac_must_keep_next = true; then
1591
+ ac_must_keep_next=false # Got value, back to normal.
1592
+ else
1593
+ case $ac_arg in
1594
+ *=* | --config-cache | -C | -disable-* | --disable-* \
1595
+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1596
+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1597
+ | -with-* | --with-* | -without-* | --without-* | --x)
1598
+ case "$ac_configure_args0 " in
1599
+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1600
+ esac
1601
+ ;;
1602
+ -* ) ac_must_keep_next=true ;;
1603
+ esac
1604
+ fi
1605
+ as_fn_append ac_configure_args " '$ac_arg'"
1606
+ ;;
1607
+ esac
1608
+ done
1609
+ done
1610
+ { ac_configure_args0=; unset ac_configure_args0;}
1611
+ { ac_configure_args1=; unset ac_configure_args1;}
1612
+
1613
+ # When interrupted or exit'd, cleanup temporary files, and complete
1614
+ # config.log. We remove comments because anyway the quotes in there
1615
+ # would cause problems or look ugly.
1616
+ # WARNING: Use '\'' to represent an apostrophe within the trap.
1617
+ # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1618
+ trap 'exit_status=$?
1619
+ # Save into config.log some information that might help in debugging.
1620
+ {
1621
+ echo
1622
+
1623
+ $as_echo "## ---------------- ##
1624
+ ## Cache variables. ##
1625
+ ## ---------------- ##"
1626
+ echo
1627
+ # The following way of writing the cache mishandles newlines in values,
1628
+ (
1629
+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1630
+ eval ac_val=\$$ac_var
1631
+ case $ac_val in #(
1632
+ *${as_nl}*)
1633
+ case $ac_var in #(
1634
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1635
+ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1636
+ esac
1637
+ case $ac_var in #(
1638
+ _ | IFS | as_nl) ;; #(
1639
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1640
+ *) { eval $ac_var=; unset $ac_var;} ;;
1641
+ esac ;;
1642
+ esac
1643
+ done
1644
+ (set) 2>&1 |
1645
+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1646
+ *${as_nl}ac_space=\ *)
1647
+ sed -n \
1648
+ "s/'\''/'\''\\\\'\'''\''/g;
1649
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1650
+ ;; #(
1651
+ *)
1652
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1653
+ ;;
1654
+ esac |
1655
+ sort
1656
+ )
1657
+ echo
1658
+
1659
+ $as_echo "## ----------------- ##
1660
+ ## Output variables. ##
1661
+ ## ----------------- ##"
1662
+ echo
1663
+ for ac_var in $ac_subst_vars
1664
+ do
1665
+ eval ac_val=\$$ac_var
1666
+ case $ac_val in
1667
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1668
+ esac
1669
+ $as_echo "$ac_var='\''$ac_val'\''"
1670
+ done | sort
1671
+ echo
1672
+
1673
+ if test -n "$ac_subst_files"; then
1674
+ $as_echo "## ------------------- ##
1675
+ ## File substitutions. ##
1676
+ ## ------------------- ##"
1677
+ echo
1678
+ for ac_var in $ac_subst_files
1679
+ do
1680
+ eval ac_val=\$$ac_var
1681
+ case $ac_val in
1682
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1683
+ esac
1684
+ $as_echo "$ac_var='\''$ac_val'\''"
1685
+ done | sort
1686
+ echo
1687
+ fi
1688
+
1689
+ if test -s confdefs.h; then
1690
+ $as_echo "## ----------- ##
1691
+ ## confdefs.h. ##
1692
+ ## ----------- ##"
1693
+ echo
1694
+ cat confdefs.h
1695
+ echo
1696
+ fi
1697
+ test "$ac_signal" != 0 &&
1698
+ $as_echo "$as_me: caught signal $ac_signal"
1699
+ $as_echo "$as_me: exit $exit_status"
1700
+ } >&5
1701
+ rm -f core *.core core.conftest.* &&
1702
+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1703
+ exit $exit_status
1704
+ ' 0
1705
+ for ac_signal in 1 2 13 15; do
1706
+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1707
+ done
1708
+ ac_signal=0
1709
+
1710
+ # confdefs.h avoids OS command line length limits that DEFS can exceed.
1711
+ rm -f -r conftest* confdefs.h
1712
+
1713
+ $as_echo "/* confdefs.h */" > confdefs.h
1714
+
1715
+ # Predefined preprocessor variables.
1716
+
1717
+ cat >>confdefs.h <<_ACEOF
1718
+ #define PACKAGE_NAME "$PACKAGE_NAME"
1719
+ _ACEOF
1720
+
1721
+ cat >>confdefs.h <<_ACEOF
1722
+ #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1723
+ _ACEOF
1724
+
1725
+ cat >>confdefs.h <<_ACEOF
1726
+ #define PACKAGE_VERSION "$PACKAGE_VERSION"
1727
+ _ACEOF
1728
+
1729
+ cat >>confdefs.h <<_ACEOF
1730
+ #define PACKAGE_STRING "$PACKAGE_STRING"
1731
+ _ACEOF
1732
+
1733
+ cat >>confdefs.h <<_ACEOF
1734
+ #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1735
+ _ACEOF
1736
+
1737
+ cat >>confdefs.h <<_ACEOF
1738
+ #define PACKAGE_URL "$PACKAGE_URL"
1739
+ _ACEOF
1740
+
1741
+
1742
+ # Let the site file select an alternate cache file if it wants to.
1743
+ # Prefer an explicitly selected file to automatically selected ones.
1744
+ ac_site_file1=NONE
1745
+ ac_site_file2=NONE
1746
+ if test -n "$CONFIG_SITE"; then
1747
+ # We do not want a PATH search for config.site.
1748
+ case $CONFIG_SITE in #((
1749
+ -*) ac_site_file1=./$CONFIG_SITE;;
1750
+ */*) ac_site_file1=$CONFIG_SITE;;
1751
+ *) ac_site_file1=./$CONFIG_SITE;;
1752
+ esac
1753
+ elif test "x$prefix" != xNONE; then
1754
+ ac_site_file1=$prefix/share/config.site
1755
+ ac_site_file2=$prefix/etc/config.site
1756
+ else
1757
+ ac_site_file1=$ac_default_prefix/share/config.site
1758
+ ac_site_file2=$ac_default_prefix/etc/config.site
1759
+ fi
1760
+ for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1761
+ do
1762
+ test "x$ac_site_file" = xNONE && continue
1763
+ if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1764
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1765
+ $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1766
+ sed 's/^/| /' "$ac_site_file" >&5
1767
+ . "$ac_site_file" \
1768
+ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1769
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1770
+ as_fn_error $? "failed to load site script $ac_site_file
1771
+ See \`config.log' for more details" "$LINENO" 5; }
1772
+ fi
1773
+ done
1774
+
1775
+ if test -r "$cache_file"; then
1776
+ # Some versions of bash will fail to source /dev/null (special files
1777
+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1778
+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1779
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1780
+ $as_echo "$as_me: loading cache $cache_file" >&6;}
1781
+ case $cache_file in
1782
+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
1783
+ *) . "./$cache_file";;
1784
+ esac
1785
+ fi
1786
+ else
1787
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1788
+ $as_echo "$as_me: creating cache $cache_file" >&6;}
1789
+ >$cache_file
1790
+ fi
1791
+
1792
+ # Check that the precious variables saved in the cache have kept the same
1793
+ # value.
1794
+ ac_cache_corrupted=false
1795
+ for ac_var in $ac_precious_vars; do
1796
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
1797
+ eval ac_new_set=\$ac_env_${ac_var}_set
1798
+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
1799
+ eval ac_new_val=\$ac_env_${ac_var}_value
1800
+ case $ac_old_set,$ac_new_set in
1801
+ set,)
1802
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1803
+ $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1804
+ ac_cache_corrupted=: ;;
1805
+ ,set)
1806
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1807
+ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1808
+ ac_cache_corrupted=: ;;
1809
+ ,);;
1810
+ *)
1811
+ if test "x$ac_old_val" != "x$ac_new_val"; then
1812
+ # differences in whitespace do not lead to failure.
1813
+ ac_old_val_w=`echo x $ac_old_val`
1814
+ ac_new_val_w=`echo x $ac_new_val`
1815
+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
1816
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1817
+ $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1818
+ ac_cache_corrupted=:
1819
+ else
1820
+ { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1821
+ $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1822
+ eval $ac_var=\$ac_old_val
1823
+ fi
1824
+ { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1825
+ $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1826
+ { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1827
+ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1828
+ fi;;
1829
+ esac
1830
+ # Pass precious variables to config.status.
1831
+ if test "$ac_new_set" = set; then
1832
+ case $ac_new_val in
1833
+ *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1834
+ *) ac_arg=$ac_var=$ac_new_val ;;
1835
+ esac
1836
+ case " $ac_configure_args " in
1837
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1838
+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1839
+ esac
1840
+ fi
1841
+ done
1842
+ if $ac_cache_corrupted; then
1843
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1844
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1845
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1846
+ $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847
+ as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1848
+ fi
1849
+ ## -------------------- ##
1850
+ ## Main body of script. ##
1851
+ ## -------------------- ##
1852
+
1853
+ ac_ext=c
1854
+ ac_cpp='$CPP $CPPFLAGS'
1855
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1856
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1857
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
1858
+
1859
+
1860
+ ac_config_headers="$ac_config_headers config.h"
1861
+
1862
+ ac_config_files="$ac_config_files Makefile libxnd/Makefile libxnd/tests/Makefile"
1863
+
1864
+
1865
+ # System and machine type (only used for Darwin):
1866
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking system as reported by uname -s" >&5
1867
+ $as_echo_n "checking system as reported by uname -s... " >&6; }
1868
+ ac_sys_system=`uname -s`
1869
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_system" >&5
1870
+ $as_echo "$ac_sys_system" >&6; }
1871
+
1872
+ LIBSTATIC=libxnd.a
1873
+ case $ac_sys_system in
1874
+ darwin*|Darwin*)
1875
+ LIBRARY_PATH="DYLD_LIBRARY_PATH"
1876
+ LIBNAME="libxnd.dylib"
1877
+ LIBSONAME="libxnd.0.dylib"
1878
+ LIBSHARED="libxnd.0.2.0dev3.dylib"
1879
+ CONFIGURE_LDFLAGS="-dynamiclib -install_name @rpath/$LIBSONAME -undefined dynamic_lookup -compatibility_version 0.2 -current_version 0.2.0"
1880
+ ;;
1881
+ *)
1882
+ LIBRARY_PATH="LD_LIBRARY_PATH"
1883
+ LIBNAME="libxnd.so"
1884
+ LIBSONAME="libxnd.so.0"
1885
+ LIBSHARED="libxnd.so.0.2.0dev3"
1886
+ CONFIGURE_LDFLAGS="-shared -Wl,-soname,$LIBSONAME"
1887
+ ;;
1888
+ esac
1889
+
1890
+
1891
+
1892
+
1893
+
1894
+
1895
+
1896
+
1897
+ # Apparently purely informational for this particular build:
1898
+ ac_aux_dir=
1899
+ for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1900
+ if test -f "$ac_dir/install-sh"; then
1901
+ ac_aux_dir=$ac_dir
1902
+ ac_install_sh="$ac_aux_dir/install-sh -c"
1903
+ break
1904
+ elif test -f "$ac_dir/install.sh"; then
1905
+ ac_aux_dir=$ac_dir
1906
+ ac_install_sh="$ac_aux_dir/install.sh -c"
1907
+ break
1908
+ elif test -f "$ac_dir/shtool"; then
1909
+ ac_aux_dir=$ac_dir
1910
+ ac_install_sh="$ac_aux_dir/shtool install -c"
1911
+ break
1912
+ fi
1913
+ done
1914
+ if test -z "$ac_aux_dir"; then
1915
+ as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1916
+ fi
1917
+
1918
+ # These three variables are undocumented and unsupported,
1919
+ # and are intended to be withdrawn in a future Autoconf release.
1920
+ # They can cause serious problems if a builder's source tree is in a directory
1921
+ # whose full name contains unusual characters.
1922
+ ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1923
+ ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1924
+ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1925
+
1926
+
1927
+ # Make sure we can run config.sub.
1928
+ $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1929
+ as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1930
+
1931
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1932
+ $as_echo_n "checking build system type... " >&6; }
1933
+ if ${ac_cv_build+:} false; then :
1934
+ $as_echo_n "(cached) " >&6
1935
+ else
1936
+ ac_build_alias=$build_alias
1937
+ test "x$ac_build_alias" = x &&
1938
+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1939
+ test "x$ac_build_alias" = x &&
1940
+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1941
+ ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1943
+
1944
+ fi
1945
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1946
+ $as_echo "$ac_cv_build" >&6; }
1947
+ case $ac_cv_build in
1948
+ *-*-*) ;;
1949
+ *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1950
+ esac
1951
+ build=$ac_cv_build
1952
+ ac_save_IFS=$IFS; IFS='-'
1953
+ set x $ac_cv_build
1954
+ shift
1955
+ build_cpu=$1
1956
+ build_vendor=$2
1957
+ shift; shift
1958
+ # Remember, the first character of IFS is used to create $*,
1959
+ # except with old shells:
1960
+ build_os=$*
1961
+ IFS=$ac_save_IFS
1962
+ case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1963
+
1964
+
1965
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1966
+ $as_echo_n "checking host system type... " >&6; }
1967
+ if ${ac_cv_host+:} false; then :
1968
+ $as_echo_n "(cached) " >&6
1969
+ else
1970
+ if test "x$host_alias" = x; then
1971
+ ac_cv_host=$ac_cv_build
1972
+ else
1973
+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1974
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1975
+ fi
1976
+
1977
+ fi
1978
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1979
+ $as_echo "$ac_cv_host" >&6; }
1980
+ case $ac_cv_host in
1981
+ *-*-*) ;;
1982
+ *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1983
+ esac
1984
+ host=$ac_cv_host
1985
+ ac_save_IFS=$IFS; IFS='-'
1986
+ set x $ac_cv_host
1987
+ shift
1988
+ host_cpu=$1
1989
+ host_vendor=$2
1990
+ shift; shift
1991
+ # Remember, the first character of IFS is used to create $*,
1992
+ # except with old shells:
1993
+ host_os=$*
1994
+ IFS=$ac_save_IFS
1995
+ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1996
+
1997
+
1998
+
1999
+
2000
+
2001
+ # Language and compiler:
2002
+ ac_ext=c
2003
+ ac_cpp='$CPP $CPPFLAGS'
2004
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007
+
2008
+ saved_cflags=$CFLAGS
2009
+ ac_ext=c
2010
+ ac_cpp='$CPP $CPPFLAGS'
2011
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2012
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2013
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014
+ if test -n "$ac_tool_prefix"; then
2015
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2016
+ set dummy ${ac_tool_prefix}gcc; ac_word=$2
2017
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2018
+ $as_echo_n "checking for $ac_word... " >&6; }
2019
+ if ${ac_cv_prog_CC+:} false; then :
2020
+ $as_echo_n "(cached) " >&6
2021
+ else
2022
+ if test -n "$CC"; then
2023
+ ac_cv_prog_CC="$CC" # Let the user override the test.
2024
+ else
2025
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026
+ for as_dir in $PATH
2027
+ do
2028
+ IFS=$as_save_IFS
2029
+ test -z "$as_dir" && as_dir=.
2030
+ for ac_exec_ext in '' $ac_executable_extensions; do
2031
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
2033
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2034
+ break 2
2035
+ fi
2036
+ done
2037
+ done
2038
+ IFS=$as_save_IFS
2039
+
2040
+ fi
2041
+ fi
2042
+ CC=$ac_cv_prog_CC
2043
+ if test -n "$CC"; then
2044
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2045
+ $as_echo "$CC" >&6; }
2046
+ else
2047
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2048
+ $as_echo "no" >&6; }
2049
+ fi
2050
+
2051
+
2052
+ fi
2053
+ if test -z "$ac_cv_prog_CC"; then
2054
+ ac_ct_CC=$CC
2055
+ # Extract the first word of "gcc", so it can be a program name with args.
2056
+ set dummy gcc; ac_word=$2
2057
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2058
+ $as_echo_n "checking for $ac_word... " >&6; }
2059
+ if ${ac_cv_prog_ac_ct_CC+:} false; then :
2060
+ $as_echo_n "(cached) " >&6
2061
+ else
2062
+ if test -n "$ac_ct_CC"; then
2063
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064
+ else
2065
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066
+ for as_dir in $PATH
2067
+ do
2068
+ IFS=$as_save_IFS
2069
+ test -z "$as_dir" && as_dir=.
2070
+ for ac_exec_ext in '' $ac_executable_extensions; do
2071
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072
+ ac_cv_prog_ac_ct_CC="gcc"
2073
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2074
+ break 2
2075
+ fi
2076
+ done
2077
+ done
2078
+ IFS=$as_save_IFS
2079
+
2080
+ fi
2081
+ fi
2082
+ ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083
+ if test -n "$ac_ct_CC"; then
2084
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2085
+ $as_echo "$ac_ct_CC" >&6; }
2086
+ else
2087
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2088
+ $as_echo "no" >&6; }
2089
+ fi
2090
+
2091
+ if test "x$ac_ct_CC" = x; then
2092
+ CC=""
2093
+ else
2094
+ case $cross_compiling:$ac_tool_warned in
2095
+ yes:)
2096
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2097
+ $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2098
+ ac_tool_warned=yes ;;
2099
+ esac
2100
+ CC=$ac_ct_CC
2101
+ fi
2102
+ else
2103
+ CC="$ac_cv_prog_CC"
2104
+ fi
2105
+
2106
+ if test -z "$CC"; then
2107
+ if test -n "$ac_tool_prefix"; then
2108
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2109
+ set dummy ${ac_tool_prefix}cc; ac_word=$2
2110
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2111
+ $as_echo_n "checking for $ac_word... " >&6; }
2112
+ if ${ac_cv_prog_CC+:} false; then :
2113
+ $as_echo_n "(cached) " >&6
2114
+ else
2115
+ if test -n "$CC"; then
2116
+ ac_cv_prog_CC="$CC" # Let the user override the test.
2117
+ else
2118
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119
+ for as_dir in $PATH
2120
+ do
2121
+ IFS=$as_save_IFS
2122
+ test -z "$as_dir" && as_dir=.
2123
+ for ac_exec_ext in '' $ac_executable_extensions; do
2124
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
2126
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2127
+ break 2
2128
+ fi
2129
+ done
2130
+ done
2131
+ IFS=$as_save_IFS
2132
+
2133
+ fi
2134
+ fi
2135
+ CC=$ac_cv_prog_CC
2136
+ if test -n "$CC"; then
2137
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2138
+ $as_echo "$CC" >&6; }
2139
+ else
2140
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2141
+ $as_echo "no" >&6; }
2142
+ fi
2143
+
2144
+
2145
+ fi
2146
+ fi
2147
+ if test -z "$CC"; then
2148
+ # Extract the first word of "cc", so it can be a program name with args.
2149
+ set dummy cc; ac_word=$2
2150
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2151
+ $as_echo_n "checking for $ac_word... " >&6; }
2152
+ if ${ac_cv_prog_CC+:} false; then :
2153
+ $as_echo_n "(cached) " >&6
2154
+ else
2155
+ if test -n "$CC"; then
2156
+ ac_cv_prog_CC="$CC" # Let the user override the test.
2157
+ else
2158
+ ac_prog_rejected=no
2159
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160
+ for as_dir in $PATH
2161
+ do
2162
+ IFS=$as_save_IFS
2163
+ test -z "$as_dir" && as_dir=.
2164
+ for ac_exec_ext in '' $ac_executable_extensions; do
2165
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2166
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2167
+ ac_prog_rejected=yes
2168
+ continue
2169
+ fi
2170
+ ac_cv_prog_CC="cc"
2171
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2172
+ break 2
2173
+ fi
2174
+ done
2175
+ done
2176
+ IFS=$as_save_IFS
2177
+
2178
+ if test $ac_prog_rejected = yes; then
2179
+ # We found a bogon in the path, so make sure we never use it.
2180
+ set dummy $ac_cv_prog_CC
2181
+ shift
2182
+ if test $# != 0; then
2183
+ # We chose a different compiler from the bogus one.
2184
+ # However, it has the same basename, so the bogon will be chosen
2185
+ # first if we set CC to just the basename; use the full file name.
2186
+ shift
2187
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2188
+ fi
2189
+ fi
2190
+ fi
2191
+ fi
2192
+ CC=$ac_cv_prog_CC
2193
+ if test -n "$CC"; then
2194
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2195
+ $as_echo "$CC" >&6; }
2196
+ else
2197
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2198
+ $as_echo "no" >&6; }
2199
+ fi
2200
+
2201
+
2202
+ fi
2203
+ if test -z "$CC"; then
2204
+ if test -n "$ac_tool_prefix"; then
2205
+ for ac_prog in cl.exe
2206
+ do
2207
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2208
+ set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2209
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2210
+ $as_echo_n "checking for $ac_word... " >&6; }
2211
+ if ${ac_cv_prog_CC+:} false; then :
2212
+ $as_echo_n "(cached) " >&6
2213
+ else
2214
+ if test -n "$CC"; then
2215
+ ac_cv_prog_CC="$CC" # Let the user override the test.
2216
+ else
2217
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218
+ for as_dir in $PATH
2219
+ do
2220
+ IFS=$as_save_IFS
2221
+ test -z "$as_dir" && as_dir=.
2222
+ for ac_exec_ext in '' $ac_executable_extensions; do
2223
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2224
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2225
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2226
+ break 2
2227
+ fi
2228
+ done
2229
+ done
2230
+ IFS=$as_save_IFS
2231
+
2232
+ fi
2233
+ fi
2234
+ CC=$ac_cv_prog_CC
2235
+ if test -n "$CC"; then
2236
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2237
+ $as_echo "$CC" >&6; }
2238
+ else
2239
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2240
+ $as_echo "no" >&6; }
2241
+ fi
2242
+
2243
+
2244
+ test -n "$CC" && break
2245
+ done
2246
+ fi
2247
+ if test -z "$CC"; then
2248
+ ac_ct_CC=$CC
2249
+ for ac_prog in cl.exe
2250
+ do
2251
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
2252
+ set dummy $ac_prog; ac_word=$2
2253
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2254
+ $as_echo_n "checking for $ac_word... " >&6; }
2255
+ if ${ac_cv_prog_ac_ct_CC+:} false; then :
2256
+ $as_echo_n "(cached) " >&6
2257
+ else
2258
+ if test -n "$ac_ct_CC"; then
2259
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260
+ else
2261
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262
+ for as_dir in $PATH
2263
+ do
2264
+ IFS=$as_save_IFS
2265
+ test -z "$as_dir" && as_dir=.
2266
+ for ac_exec_ext in '' $ac_executable_extensions; do
2267
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268
+ ac_cv_prog_ac_ct_CC="$ac_prog"
2269
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2270
+ break 2
2271
+ fi
2272
+ done
2273
+ done
2274
+ IFS=$as_save_IFS
2275
+
2276
+ fi
2277
+ fi
2278
+ ac_ct_CC=$ac_cv_prog_ac_ct_CC
2279
+ if test -n "$ac_ct_CC"; then
2280
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2281
+ $as_echo "$ac_ct_CC" >&6; }
2282
+ else
2283
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2284
+ $as_echo "no" >&6; }
2285
+ fi
2286
+
2287
+
2288
+ test -n "$ac_ct_CC" && break
2289
+ done
2290
+
2291
+ if test "x$ac_ct_CC" = x; then
2292
+ CC=""
2293
+ else
2294
+ case $cross_compiling:$ac_tool_warned in
2295
+ yes:)
2296
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2297
+ $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2298
+ ac_tool_warned=yes ;;
2299
+ esac
2300
+ CC=$ac_ct_CC
2301
+ fi
2302
+ fi
2303
+
2304
+ fi
2305
+
2306
+
2307
+ test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309
+ as_fn_error $? "no acceptable C compiler found in \$PATH
2310
+ See \`config.log' for more details" "$LINENO" 5; }
2311
+
2312
+ # Provide some information about the compiler.
2313
+ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2314
+ set X $ac_compile
2315
+ ac_compiler=$2
2316
+ for ac_option in --version -v -V -qversion; do
2317
+ { { ac_try="$ac_compiler $ac_option >&5"
2318
+ case "(($ac_try" in
2319
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320
+ *) ac_try_echo=$ac_try;;
2321
+ esac
2322
+ eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2323
+ $as_echo "$ac_try_echo"; } >&5
2324
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2325
+ ac_status=$?
2326
+ if test -s conftest.err; then
2327
+ sed '10a\
2328
+ ... rest of stderr output deleted ...
2329
+ 10q' conftest.err >conftest.er1
2330
+ cat conftest.er1 >&5
2331
+ fi
2332
+ rm -f conftest.er1 conftest.err
2333
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334
+ test $ac_status = 0; }
2335
+ done
2336
+
2337
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338
+ /* end confdefs.h. */
2339
+
2340
+ int
2341
+ main ()
2342
+ {
2343
+
2344
+ ;
2345
+ return 0;
2346
+ }
2347
+ _ACEOF
2348
+ ac_clean_files_save=$ac_clean_files
2349
+ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2350
+ # Try to create an executable without -o first, disregard a.out.
2351
+ # It will help us diagnose broken compilers, and finding out an intuition
2352
+ # of exeext.
2353
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2354
+ $as_echo_n "checking whether the C compiler works... " >&6; }
2355
+ ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2356
+
2357
+ # The possible output files:
2358
+ ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2359
+
2360
+ ac_rmfiles=
2361
+ for ac_file in $ac_files
2362
+ do
2363
+ case $ac_file in
2364
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2365
+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2366
+ esac
2367
+ done
2368
+ rm -f $ac_rmfiles
2369
+
2370
+ if { { ac_try="$ac_link_default"
2371
+ case "(($ac_try" in
2372
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373
+ *) ac_try_echo=$ac_try;;
2374
+ esac
2375
+ eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376
+ $as_echo "$ac_try_echo"; } >&5
2377
+ (eval "$ac_link_default") 2>&5
2378
+ ac_status=$?
2379
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2380
+ test $ac_status = 0; }; then :
2381
+ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2382
+ # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2383
+ # in a Makefile. We should not override ac_cv_exeext if it was cached,
2384
+ # so that the user can short-circuit this test for compilers unknown to
2385
+ # Autoconf.
2386
+ for ac_file in $ac_files ''
2387
+ do
2388
+ test -f "$ac_file" || continue
2389
+ case $ac_file in
2390
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2391
+ ;;
2392
+ [ab].out )
2393
+ # We found the default executable, but exeext='' is most
2394
+ # certainly right.
2395
+ break;;
2396
+ *.* )
2397
+ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2398
+ then :; else
2399
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2400
+ fi
2401
+ # We set ac_cv_exeext here because the later test for it is not
2402
+ # safe: cross compilers may not add the suffix if given an `-o'
2403
+ # argument, so we may need to know it at that point already.
2404
+ # Even if this section looks crufty: it has the advantage of
2405
+ # actually working.
2406
+ break;;
2407
+ * )
2408
+ break;;
2409
+ esac
2410
+ done
2411
+ test "$ac_cv_exeext" = no && ac_cv_exeext=
2412
+
2413
+ else
2414
+ ac_file=''
2415
+ fi
2416
+ if test -z "$ac_file"; then :
2417
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2418
+ $as_echo "no" >&6; }
2419
+ $as_echo "$as_me: failed program was:" >&5
2420
+ sed 's/^/| /' conftest.$ac_ext >&5
2421
+
2422
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424
+ as_fn_error 77 "C compiler cannot create executables
2425
+ See \`config.log' for more details" "$LINENO" 5; }
2426
+ else
2427
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2428
+ $as_echo "yes" >&6; }
2429
+ fi
2430
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2431
+ $as_echo_n "checking for C compiler default output file name... " >&6; }
2432
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2433
+ $as_echo "$ac_file" >&6; }
2434
+ ac_exeext=$ac_cv_exeext
2435
+
2436
+ rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2437
+ ac_clean_files=$ac_clean_files_save
2438
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2439
+ $as_echo_n "checking for suffix of executables... " >&6; }
2440
+ if { { ac_try="$ac_link"
2441
+ case "(($ac_try" in
2442
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443
+ *) ac_try_echo=$ac_try;;
2444
+ esac
2445
+ eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446
+ $as_echo "$ac_try_echo"; } >&5
2447
+ (eval "$ac_link") 2>&5
2448
+ ac_status=$?
2449
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2450
+ test $ac_status = 0; }; then :
2451
+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
2452
+ # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2453
+ # work properly (i.e., refer to `conftest.exe'), while it won't with
2454
+ # `rm'.
2455
+ for ac_file in conftest.exe conftest conftest.*; do
2456
+ test -f "$ac_file" || continue
2457
+ case $ac_file in
2458
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2459
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2460
+ break;;
2461
+ * ) break;;
2462
+ esac
2463
+ done
2464
+ else
2465
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467
+ as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2468
+ See \`config.log' for more details" "$LINENO" 5; }
2469
+ fi
2470
+ rm -f conftest conftest$ac_cv_exeext
2471
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2472
+ $as_echo "$ac_cv_exeext" >&6; }
2473
+
2474
+ rm -f conftest.$ac_ext
2475
+ EXEEXT=$ac_cv_exeext
2476
+ ac_exeext=$EXEEXT
2477
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478
+ /* end confdefs.h. */
2479
+ #include <stdio.h>
2480
+ int
2481
+ main ()
2482
+ {
2483
+ FILE *f = fopen ("conftest.out", "w");
2484
+ return ferror (f) || fclose (f) != 0;
2485
+
2486
+ ;
2487
+ return 0;
2488
+ }
2489
+ _ACEOF
2490
+ ac_clean_files="$ac_clean_files conftest.out"
2491
+ # Check that the compiler produces executables we can run. If not, either
2492
+ # the compiler is broken, or we cross compile.
2493
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2494
+ $as_echo_n "checking whether we are cross compiling... " >&6; }
2495
+ if test "$cross_compiling" != yes; then
2496
+ { { ac_try="$ac_link"
2497
+ case "(($ac_try" in
2498
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499
+ *) ac_try_echo=$ac_try;;
2500
+ esac
2501
+ eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502
+ $as_echo "$ac_try_echo"; } >&5
2503
+ (eval "$ac_link") 2>&5
2504
+ ac_status=$?
2505
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506
+ test $ac_status = 0; }
2507
+ if { ac_try='./conftest$ac_cv_exeext'
2508
+ { { case "(($ac_try" in
2509
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510
+ *) ac_try_echo=$ac_try;;
2511
+ esac
2512
+ eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2513
+ $as_echo "$ac_try_echo"; } >&5
2514
+ (eval "$ac_try") 2>&5
2515
+ ac_status=$?
2516
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517
+ test $ac_status = 0; }; }; then
2518
+ cross_compiling=no
2519
+ else
2520
+ if test "$cross_compiling" = maybe; then
2521
+ cross_compiling=yes
2522
+ else
2523
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525
+ as_fn_error $? "cannot run C compiled programs.
2526
+ If you meant to cross compile, use \`--host'.
2527
+ See \`config.log' for more details" "$LINENO" 5; }
2528
+ fi
2529
+ fi
2530
+ fi
2531
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2532
+ $as_echo "$cross_compiling" >&6; }
2533
+
2534
+ rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2535
+ ac_clean_files=$ac_clean_files_save
2536
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2537
+ $as_echo_n "checking for suffix of object files... " >&6; }
2538
+ if ${ac_cv_objext+:} false; then :
2539
+ $as_echo_n "(cached) " >&6
2540
+ else
2541
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542
+ /* end confdefs.h. */
2543
+
2544
+ int
2545
+ main ()
2546
+ {
2547
+
2548
+ ;
2549
+ return 0;
2550
+ }
2551
+ _ACEOF
2552
+ rm -f conftest.o conftest.obj
2553
+ if { { ac_try="$ac_compile"
2554
+ case "(($ac_try" in
2555
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556
+ *) ac_try_echo=$ac_try;;
2557
+ esac
2558
+ eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2559
+ $as_echo "$ac_try_echo"; } >&5
2560
+ (eval "$ac_compile") 2>&5
2561
+ ac_status=$?
2562
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2563
+ test $ac_status = 0; }; then :
2564
+ for ac_file in conftest.o conftest.obj conftest.*; do
2565
+ test -f "$ac_file" || continue;
2566
+ case $ac_file in
2567
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2568
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2569
+ break;;
2570
+ esac
2571
+ done
2572
+ else
2573
+ $as_echo "$as_me: failed program was:" >&5
2574
+ sed 's/^/| /' conftest.$ac_ext >&5
2575
+
2576
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2577
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2578
+ as_fn_error $? "cannot compute suffix of object files: cannot compile
2579
+ See \`config.log' for more details" "$LINENO" 5; }
2580
+ fi
2581
+ rm -f conftest.$ac_cv_objext conftest.$ac_ext
2582
+ fi
2583
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2584
+ $as_echo "$ac_cv_objext" >&6; }
2585
+ OBJEXT=$ac_cv_objext
2586
+ ac_objext=$OBJEXT
2587
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2588
+ $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2589
+ if ${ac_cv_c_compiler_gnu+:} false; then :
2590
+ $as_echo_n "(cached) " >&6
2591
+ else
2592
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593
+ /* end confdefs.h. */
2594
+
2595
+ int
2596
+ main ()
2597
+ {
2598
+ #ifndef __GNUC__
2599
+ choke me
2600
+ #endif
2601
+
2602
+ ;
2603
+ return 0;
2604
+ }
2605
+ _ACEOF
2606
+ if ac_fn_c_try_compile "$LINENO"; then :
2607
+ ac_compiler_gnu=yes
2608
+ else
2609
+ ac_compiler_gnu=no
2610
+ fi
2611
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612
+ ac_cv_c_compiler_gnu=$ac_compiler_gnu
2613
+
2614
+ fi
2615
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2616
+ $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2617
+ if test $ac_compiler_gnu = yes; then
2618
+ GCC=yes
2619
+ else
2620
+ GCC=
2621
+ fi
2622
+ ac_test_CFLAGS=${CFLAGS+set}
2623
+ ac_save_CFLAGS=$CFLAGS
2624
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2625
+ $as_echo_n "checking whether $CC accepts -g... " >&6; }
2626
+ if ${ac_cv_prog_cc_g+:} false; then :
2627
+ $as_echo_n "(cached) " >&6
2628
+ else
2629
+ ac_save_c_werror_flag=$ac_c_werror_flag
2630
+ ac_c_werror_flag=yes
2631
+ ac_cv_prog_cc_g=no
2632
+ CFLAGS="-g"
2633
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634
+ /* end confdefs.h. */
2635
+
2636
+ int
2637
+ main ()
2638
+ {
2639
+
2640
+ ;
2641
+ return 0;
2642
+ }
2643
+ _ACEOF
2644
+ if ac_fn_c_try_compile "$LINENO"; then :
2645
+ ac_cv_prog_cc_g=yes
2646
+ else
2647
+ CFLAGS=""
2648
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649
+ /* end confdefs.h. */
2650
+
2651
+ int
2652
+ main ()
2653
+ {
2654
+
2655
+ ;
2656
+ return 0;
2657
+ }
2658
+ _ACEOF
2659
+ if ac_fn_c_try_compile "$LINENO"; then :
2660
+
2661
+ else
2662
+ ac_c_werror_flag=$ac_save_c_werror_flag
2663
+ CFLAGS="-g"
2664
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665
+ /* end confdefs.h. */
2666
+
2667
+ int
2668
+ main ()
2669
+ {
2670
+
2671
+ ;
2672
+ return 0;
2673
+ }
2674
+ _ACEOF
2675
+ if ac_fn_c_try_compile "$LINENO"; then :
2676
+ ac_cv_prog_cc_g=yes
2677
+ fi
2678
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679
+ fi
2680
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681
+ fi
2682
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683
+ ac_c_werror_flag=$ac_save_c_werror_flag
2684
+ fi
2685
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2686
+ $as_echo "$ac_cv_prog_cc_g" >&6; }
2687
+ if test "$ac_test_CFLAGS" = set; then
2688
+ CFLAGS=$ac_save_CFLAGS
2689
+ elif test $ac_cv_prog_cc_g = yes; then
2690
+ if test "$GCC" = yes; then
2691
+ CFLAGS="-g -O2"
2692
+ else
2693
+ CFLAGS="-g"
2694
+ fi
2695
+ else
2696
+ if test "$GCC" = yes; then
2697
+ CFLAGS="-O2"
2698
+ else
2699
+ CFLAGS=
2700
+ fi
2701
+ fi
2702
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2703
+ $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2704
+ if ${ac_cv_prog_cc_c89+:} false; then :
2705
+ $as_echo_n "(cached) " >&6
2706
+ else
2707
+ ac_cv_prog_cc_c89=no
2708
+ ac_save_CC=$CC
2709
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710
+ /* end confdefs.h. */
2711
+ #include <stdarg.h>
2712
+ #include <stdio.h>
2713
+ struct stat;
2714
+ /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2715
+ struct buf { int x; };
2716
+ FILE * (*rcsopen) (struct buf *, struct stat *, int);
2717
+ static char *e (p, i)
2718
+ char **p;
2719
+ int i;
2720
+ {
2721
+ return p[i];
2722
+ }
2723
+ static char *f (char * (*g) (char **, int), char **p, ...)
2724
+ {
2725
+ char *s;
2726
+ va_list v;
2727
+ va_start (v,p);
2728
+ s = g (p, va_arg (v,int));
2729
+ va_end (v);
2730
+ return s;
2731
+ }
2732
+
2733
+ /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2734
+ function prototypes and stuff, but not '\xHH' hex character constants.
2735
+ These don't provoke an error unfortunately, instead are silently treated
2736
+ as 'x'. The following induces an error, until -std is added to get
2737
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2738
+ array size at least. It's necessary to write '\x00'==0 to get something
2739
+ that's true only with -std. */
2740
+ int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2741
+
2742
+ /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2743
+ inside strings and character constants. */
2744
+ #define FOO(x) 'x'
2745
+ int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2746
+
2747
+ int test (int i, double x);
2748
+ struct s1 {int (*f) (int a);};
2749
+ struct s2 {int (*f) (double a);};
2750
+ int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2751
+ int argc;
2752
+ char **argv;
2753
+ int
2754
+ main ()
2755
+ {
2756
+ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2757
+ ;
2758
+ return 0;
2759
+ }
2760
+ _ACEOF
2761
+ for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2762
+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2763
+ do
2764
+ CC="$ac_save_CC $ac_arg"
2765
+ if ac_fn_c_try_compile "$LINENO"; then :
2766
+ ac_cv_prog_cc_c89=$ac_arg
2767
+ fi
2768
+ rm -f core conftest.err conftest.$ac_objext
2769
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
2770
+ done
2771
+ rm -f conftest.$ac_ext
2772
+ CC=$ac_save_CC
2773
+
2774
+ fi
2775
+ # AC_CACHE_VAL
2776
+ case "x$ac_cv_prog_cc_c89" in
2777
+ x)
2778
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2779
+ $as_echo "none needed" >&6; } ;;
2780
+ xno)
2781
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2782
+ $as_echo "unsupported" >&6; } ;;
2783
+ *)
2784
+ CC="$CC $ac_cv_prog_cc_c89"
2785
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2786
+ $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2787
+ esac
2788
+ if test "x$ac_cv_prog_cc_c89" != xno; then :
2789
+
2790
+ fi
2791
+
2792
+ ac_ext=c
2793
+ ac_cpp='$CPP $CPPFLAGS'
2794
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
+
2798
+ CFLAGS=$saved_cflags
2799
+
2800
+ # ar and ranlib:
2801
+ if test -n "$ac_tool_prefix"; then
2802
+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2803
+ set dummy ${ac_tool_prefix}ar; ac_word=$2
2804
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805
+ $as_echo_n "checking for $ac_word... " >&6; }
2806
+ if ${ac_cv_prog_AR+:} false; then :
2807
+ $as_echo_n "(cached) " >&6
2808
+ else
2809
+ if test -n "$AR"; then
2810
+ ac_cv_prog_AR="$AR" # Let the user override the test.
2811
+ else
2812
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813
+ for as_dir in $PATH
2814
+ do
2815
+ IFS=$as_save_IFS
2816
+ test -z "$as_dir" && as_dir=.
2817
+ for ac_exec_ext in '' $ac_executable_extensions; do
2818
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819
+ ac_cv_prog_AR="${ac_tool_prefix}ar"
2820
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821
+ break 2
2822
+ fi
2823
+ done
2824
+ done
2825
+ IFS=$as_save_IFS
2826
+
2827
+ fi
2828
+ fi
2829
+ AR=$ac_cv_prog_AR
2830
+ if test -n "$AR"; then
2831
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2832
+ $as_echo "$AR" >&6; }
2833
+ else
2834
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835
+ $as_echo "no" >&6; }
2836
+ fi
2837
+
2838
+
2839
+ fi
2840
+ if test -z "$ac_cv_prog_AR"; then
2841
+ ac_ct_AR=$AR
2842
+ # Extract the first word of "ar", so it can be a program name with args.
2843
+ set dummy ar; ac_word=$2
2844
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845
+ $as_echo_n "checking for $ac_word... " >&6; }
2846
+ if ${ac_cv_prog_ac_ct_AR+:} false; then :
2847
+ $as_echo_n "(cached) " >&6
2848
+ else
2849
+ if test -n "$ac_ct_AR"; then
2850
+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2851
+ else
2852
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853
+ for as_dir in $PATH
2854
+ do
2855
+ IFS=$as_save_IFS
2856
+ test -z "$as_dir" && as_dir=.
2857
+ for ac_exec_ext in '' $ac_executable_extensions; do
2858
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859
+ ac_cv_prog_ac_ct_AR="ar"
2860
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861
+ break 2
2862
+ fi
2863
+ done
2864
+ done
2865
+ IFS=$as_save_IFS
2866
+
2867
+ fi
2868
+ fi
2869
+ ac_ct_AR=$ac_cv_prog_ac_ct_AR
2870
+ if test -n "$ac_ct_AR"; then
2871
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2872
+ $as_echo "$ac_ct_AR" >&6; }
2873
+ else
2874
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875
+ $as_echo "no" >&6; }
2876
+ fi
2877
+
2878
+ if test "x$ac_ct_AR" = x; then
2879
+ AR="ar"
2880
+ else
2881
+ case $cross_compiling:$ac_tool_warned in
2882
+ yes:)
2883
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884
+ $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885
+ ac_tool_warned=yes ;;
2886
+ esac
2887
+ AR=$ac_ct_AR
2888
+ fi
2889
+ else
2890
+ AR="$ac_cv_prog_AR"
2891
+ fi
2892
+
2893
+ if test -n "$ac_tool_prefix"; then
2894
+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2895
+ set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2896
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897
+ $as_echo_n "checking for $ac_word... " >&6; }
2898
+ if ${ac_cv_prog_RANLIB+:} false; then :
2899
+ $as_echo_n "(cached) " >&6
2900
+ else
2901
+ if test -n "$RANLIB"; then
2902
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2903
+ else
2904
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905
+ for as_dir in $PATH
2906
+ do
2907
+ IFS=$as_save_IFS
2908
+ test -z "$as_dir" && as_dir=.
2909
+ for ac_exec_ext in '' $ac_executable_extensions; do
2910
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911
+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2912
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913
+ break 2
2914
+ fi
2915
+ done
2916
+ done
2917
+ IFS=$as_save_IFS
2918
+
2919
+ fi
2920
+ fi
2921
+ RANLIB=$ac_cv_prog_RANLIB
2922
+ if test -n "$RANLIB"; then
2923
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2924
+ $as_echo "$RANLIB" >&6; }
2925
+ else
2926
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927
+ $as_echo "no" >&6; }
2928
+ fi
2929
+
2930
+
2931
+ fi
2932
+ if test -z "$ac_cv_prog_RANLIB"; then
2933
+ ac_ct_RANLIB=$RANLIB
2934
+ # Extract the first word of "ranlib", so it can be a program name with args.
2935
+ set dummy ranlib; ac_word=$2
2936
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937
+ $as_echo_n "checking for $ac_word... " >&6; }
2938
+ if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2939
+ $as_echo_n "(cached) " >&6
2940
+ else
2941
+ if test -n "$ac_ct_RANLIB"; then
2942
+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2943
+ else
2944
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945
+ for as_dir in $PATH
2946
+ do
2947
+ IFS=$as_save_IFS
2948
+ test -z "$as_dir" && as_dir=.
2949
+ for ac_exec_ext in '' $ac_executable_extensions; do
2950
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951
+ ac_cv_prog_ac_ct_RANLIB="ranlib"
2952
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953
+ break 2
2954
+ fi
2955
+ done
2956
+ done
2957
+ IFS=$as_save_IFS
2958
+
2959
+ fi
2960
+ fi
2961
+ ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2962
+ if test -n "$ac_ct_RANLIB"; then
2963
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2964
+ $as_echo "$ac_ct_RANLIB" >&6; }
2965
+ else
2966
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967
+ $as_echo "no" >&6; }
2968
+ fi
2969
+
2970
+ if test "x$ac_ct_RANLIB" = x; then
2971
+ RANLIB=":"
2972
+ else
2973
+ case $cross_compiling:$ac_tool_warned in
2974
+ yes:)
2975
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976
+ $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977
+ ac_tool_warned=yes ;;
2978
+ esac
2979
+ RANLIB=$ac_ct_RANLIB
2980
+ fi
2981
+ else
2982
+ RANLIB="$ac_cv_prog_RANLIB"
2983
+ fi
2984
+
2985
+
2986
+
2987
+
2988
+ # Checks for header files:
2989
+
2990
+ ac_ext=c
2991
+ ac_cpp='$CPP $CPPFLAGS'
2992
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2996
+ $as_echo_n "checking how to run the C preprocessor... " >&6; }
2997
+ # On Suns, sometimes $CPP names a directory.
2998
+ if test -n "$CPP" && test -d "$CPP"; then
2999
+ CPP=
3000
+ fi
3001
+ if test -z "$CPP"; then
3002
+ if ${ac_cv_prog_CPP+:} false; then :
3003
+ $as_echo_n "(cached) " >&6
3004
+ else
3005
+ # Double quotes because CPP needs to be expanded
3006
+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3007
+ do
3008
+ ac_preproc_ok=false
3009
+ for ac_c_preproc_warn_flag in '' yes
3010
+ do
3011
+ # Use a header file that comes with gcc, so configuring glibc
3012
+ # with a fresh cross-compiler works.
3013
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014
+ # <limits.h> exists even on freestanding compilers.
3015
+ # On the NeXT, cc -E runs the code through the compiler's parser,
3016
+ # not just through cpp. "Syntax error" is here to catch this case.
3017
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018
+ /* end confdefs.h. */
3019
+ #ifdef __STDC__
3020
+ # include <limits.h>
3021
+ #else
3022
+ # include <assert.h>
3023
+ #endif
3024
+ Syntax error
3025
+ _ACEOF
3026
+ if ac_fn_c_try_cpp "$LINENO"; then :
3027
+
3028
+ else
3029
+ # Broken: fails on valid input.
3030
+ continue
3031
+ fi
3032
+ rm -f conftest.err conftest.i conftest.$ac_ext
3033
+
3034
+ # OK, works on sane cases. Now check whether nonexistent headers
3035
+ # can be detected and how.
3036
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037
+ /* end confdefs.h. */
3038
+ #include <ac_nonexistent.h>
3039
+ _ACEOF
3040
+ if ac_fn_c_try_cpp "$LINENO"; then :
3041
+ # Broken: success on invalid input.
3042
+ continue
3043
+ else
3044
+ # Passes both tests.
3045
+ ac_preproc_ok=:
3046
+ break
3047
+ fi
3048
+ rm -f conftest.err conftest.i conftest.$ac_ext
3049
+
3050
+ done
3051
+ # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3052
+ rm -f conftest.i conftest.err conftest.$ac_ext
3053
+ if $ac_preproc_ok; then :
3054
+ break
3055
+ fi
3056
+
3057
+ done
3058
+ ac_cv_prog_CPP=$CPP
3059
+
3060
+ fi
3061
+ CPP=$ac_cv_prog_CPP
3062
+ else
3063
+ ac_cv_prog_CPP=$CPP
3064
+ fi
3065
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3066
+ $as_echo "$CPP" >&6; }
3067
+ ac_preproc_ok=false
3068
+ for ac_c_preproc_warn_flag in '' yes
3069
+ do
3070
+ # Use a header file that comes with gcc, so configuring glibc
3071
+ # with a fresh cross-compiler works.
3072
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3073
+ # <limits.h> exists even on freestanding compilers.
3074
+ # On the NeXT, cc -E runs the code through the compiler's parser,
3075
+ # not just through cpp. "Syntax error" is here to catch this case.
3076
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077
+ /* end confdefs.h. */
3078
+ #ifdef __STDC__
3079
+ # include <limits.h>
3080
+ #else
3081
+ # include <assert.h>
3082
+ #endif
3083
+ Syntax error
3084
+ _ACEOF
3085
+ if ac_fn_c_try_cpp "$LINENO"; then :
3086
+
3087
+ else
3088
+ # Broken: fails on valid input.
3089
+ continue
3090
+ fi
3091
+ rm -f conftest.err conftest.i conftest.$ac_ext
3092
+
3093
+ # OK, works on sane cases. Now check whether nonexistent headers
3094
+ # can be detected and how.
3095
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096
+ /* end confdefs.h. */
3097
+ #include <ac_nonexistent.h>
3098
+ _ACEOF
3099
+ if ac_fn_c_try_cpp "$LINENO"; then :
3100
+ # Broken: success on invalid input.
3101
+ continue
3102
+ else
3103
+ # Passes both tests.
3104
+ ac_preproc_ok=:
3105
+ break
3106
+ fi
3107
+ rm -f conftest.err conftest.i conftest.$ac_ext
3108
+
3109
+ done
3110
+ # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111
+ rm -f conftest.i conftest.err conftest.$ac_ext
3112
+ if $ac_preproc_ok; then :
3113
+
3114
+ else
3115
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117
+ as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3118
+ See \`config.log' for more details" "$LINENO" 5; }
3119
+ fi
3120
+
3121
+ ac_ext=c
3122
+ ac_cpp='$CPP $CPPFLAGS'
3123
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126
+
3127
+
3128
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3129
+ $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3130
+ if ${ac_cv_path_GREP+:} false; then :
3131
+ $as_echo_n "(cached) " >&6
3132
+ else
3133
+ if test -z "$GREP"; then
3134
+ ac_path_GREP_found=false
3135
+ # Loop through the user's path and test for each of PROGNAME-LIST
3136
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137
+ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3138
+ do
3139
+ IFS=$as_save_IFS
3140
+ test -z "$as_dir" && as_dir=.
3141
+ for ac_prog in grep ggrep; do
3142
+ for ac_exec_ext in '' $ac_executable_extensions; do
3143
+ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3144
+ as_fn_executable_p "$ac_path_GREP" || continue
3145
+ # Check for GNU ac_path_GREP and select it if it is found.
3146
+ # Check for GNU $ac_path_GREP
3147
+ case `"$ac_path_GREP" --version 2>&1` in
3148
+ *GNU*)
3149
+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3150
+ *)
3151
+ ac_count=0
3152
+ $as_echo_n 0123456789 >"conftest.in"
3153
+ while :
3154
+ do
3155
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
3156
+ mv "conftest.tmp" "conftest.in"
3157
+ cp "conftest.in" "conftest.nl"
3158
+ $as_echo 'GREP' >> "conftest.nl"
3159
+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3160
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3161
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
3162
+ if test $ac_count -gt ${ac_path_GREP_max-0}; then
3163
+ # Best one so far, save it but keep looking for a better one
3164
+ ac_cv_path_GREP="$ac_path_GREP"
3165
+ ac_path_GREP_max=$ac_count
3166
+ fi
3167
+ # 10*(2^10) chars as input seems more than enough
3168
+ test $ac_count -gt 10 && break
3169
+ done
3170
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3171
+ esac
3172
+
3173
+ $ac_path_GREP_found && break 3
3174
+ done
3175
+ done
3176
+ done
3177
+ IFS=$as_save_IFS
3178
+ if test -z "$ac_cv_path_GREP"; then
3179
+ as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3180
+ fi
3181
+ else
3182
+ ac_cv_path_GREP=$GREP
3183
+ fi
3184
+
3185
+ fi
3186
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3187
+ $as_echo "$ac_cv_path_GREP" >&6; }
3188
+ GREP="$ac_cv_path_GREP"
3189
+
3190
+
3191
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3192
+ $as_echo_n "checking for egrep... " >&6; }
3193
+ if ${ac_cv_path_EGREP+:} false; then :
3194
+ $as_echo_n "(cached) " >&6
3195
+ else
3196
+ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3197
+ then ac_cv_path_EGREP="$GREP -E"
3198
+ else
3199
+ if test -z "$EGREP"; then
3200
+ ac_path_EGREP_found=false
3201
+ # Loop through the user's path and test for each of PROGNAME-LIST
3202
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203
+ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3204
+ do
3205
+ IFS=$as_save_IFS
3206
+ test -z "$as_dir" && as_dir=.
3207
+ for ac_prog in egrep; do
3208
+ for ac_exec_ext in '' $ac_executable_extensions; do
3209
+ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3210
+ as_fn_executable_p "$ac_path_EGREP" || continue
3211
+ # Check for GNU ac_path_EGREP and select it if it is found.
3212
+ # Check for GNU $ac_path_EGREP
3213
+ case `"$ac_path_EGREP" --version 2>&1` in
3214
+ *GNU*)
3215
+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3216
+ *)
3217
+ ac_count=0
3218
+ $as_echo_n 0123456789 >"conftest.in"
3219
+ while :
3220
+ do
3221
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
3222
+ mv "conftest.tmp" "conftest.in"
3223
+ cp "conftest.in" "conftest.nl"
3224
+ $as_echo 'EGREP' >> "conftest.nl"
3225
+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3226
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3227
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
3228
+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3229
+ # Best one so far, save it but keep looking for a better one
3230
+ ac_cv_path_EGREP="$ac_path_EGREP"
3231
+ ac_path_EGREP_max=$ac_count
3232
+ fi
3233
+ # 10*(2^10) chars as input seems more than enough
3234
+ test $ac_count -gt 10 && break
3235
+ done
3236
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3237
+ esac
3238
+
3239
+ $ac_path_EGREP_found && break 3
3240
+ done
3241
+ done
3242
+ done
3243
+ IFS=$as_save_IFS
3244
+ if test -z "$ac_cv_path_EGREP"; then
3245
+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3246
+ fi
3247
+ else
3248
+ ac_cv_path_EGREP=$EGREP
3249
+ fi
3250
+
3251
+ fi
3252
+ fi
3253
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3254
+ $as_echo "$ac_cv_path_EGREP" >&6; }
3255
+ EGREP="$ac_cv_path_EGREP"
3256
+
3257
+
3258
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3259
+ $as_echo_n "checking for ANSI C header files... " >&6; }
3260
+ if ${ac_cv_header_stdc+:} false; then :
3261
+ $as_echo_n "(cached) " >&6
3262
+ else
3263
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264
+ /* end confdefs.h. */
3265
+ #include <stdlib.h>
3266
+ #include <stdarg.h>
3267
+ #include <string.h>
3268
+ #include <float.h>
3269
+
3270
+ int
3271
+ main ()
3272
+ {
3273
+
3274
+ ;
3275
+ return 0;
3276
+ }
3277
+ _ACEOF
3278
+ if ac_fn_c_try_compile "$LINENO"; then :
3279
+ ac_cv_header_stdc=yes
3280
+ else
3281
+ ac_cv_header_stdc=no
3282
+ fi
3283
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284
+
3285
+ if test $ac_cv_header_stdc = yes; then
3286
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3287
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288
+ /* end confdefs.h. */
3289
+ #include <string.h>
3290
+
3291
+ _ACEOF
3292
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3293
+ $EGREP "memchr" >/dev/null 2>&1; then :
3294
+
3295
+ else
3296
+ ac_cv_header_stdc=no
3297
+ fi
3298
+ rm -f conftest*
3299
+
3300
+ fi
3301
+
3302
+ if test $ac_cv_header_stdc = yes; then
3303
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3304
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305
+ /* end confdefs.h. */
3306
+ #include <stdlib.h>
3307
+
3308
+ _ACEOF
3309
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3310
+ $EGREP "free" >/dev/null 2>&1; then :
3311
+
3312
+ else
3313
+ ac_cv_header_stdc=no
3314
+ fi
3315
+ rm -f conftest*
3316
+
3317
+ fi
3318
+
3319
+ if test $ac_cv_header_stdc = yes; then
3320
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3321
+ if test "$cross_compiling" = yes; then :
3322
+ :
3323
+ else
3324
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325
+ /* end confdefs.h. */
3326
+ #include <ctype.h>
3327
+ #include <stdlib.h>
3328
+ #if ((' ' & 0x0FF) == 0x020)
3329
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3330
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3331
+ #else
3332
+ # define ISLOWER(c) \
3333
+ (('a' <= (c) && (c) <= 'i') \
3334
+ || ('j' <= (c) && (c) <= 'r') \
3335
+ || ('s' <= (c) && (c) <= 'z'))
3336
+ # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3337
+ #endif
3338
+
3339
+ #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3340
+ int
3341
+ main ()
3342
+ {
3343
+ int i;
3344
+ for (i = 0; i < 256; i++)
3345
+ if (XOR (islower (i), ISLOWER (i))
3346
+ || toupper (i) != TOUPPER (i))
3347
+ return 2;
3348
+ return 0;
3349
+ }
3350
+ _ACEOF
3351
+ if ac_fn_c_try_run "$LINENO"; then :
3352
+
3353
+ else
3354
+ ac_cv_header_stdc=no
3355
+ fi
3356
+ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3357
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
3358
+ fi
3359
+
3360
+ fi
3361
+ fi
3362
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3363
+ $as_echo "$ac_cv_header_stdc" >&6; }
3364
+ if test $ac_cv_header_stdc = yes; then
3365
+
3366
+ $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3367
+
3368
+ fi
3369
+
3370
+
3371
+ # Install program:
3372
+ # Find a good install program. We prefer a C program (faster),
3373
+ # so one script is as good as another. But avoid the broken or
3374
+ # incompatible versions:
3375
+ # SysV /etc/install, /usr/sbin/install
3376
+ # SunOS /usr/etc/install
3377
+ # IRIX /sbin/install
3378
+ # AIX /bin/install
3379
+ # AmigaOS /C/install, which installs bootblocks on floppy discs
3380
+ # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3381
+ # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3382
+ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3383
+ # OS/2's system install, which has a completely different semantic
3384
+ # ./install, which can be erroneously created by make from ./install.sh.
3385
+ # Reject install programs that cannot install multiple files.
3386
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3387
+ $as_echo_n "checking for a BSD-compatible install... " >&6; }
3388
+ if test -z "$INSTALL"; then
3389
+ if ${ac_cv_path_install+:} false; then :
3390
+ $as_echo_n "(cached) " >&6
3391
+ else
3392
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393
+ for as_dir in $PATH
3394
+ do
3395
+ IFS=$as_save_IFS
3396
+ test -z "$as_dir" && as_dir=.
3397
+ # Account for people who put trailing slashes in PATH elements.
3398
+ case $as_dir/ in #((
3399
+ ./ | .// | /[cC]/* | \
3400
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3401
+ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3402
+ /usr/ucb/* ) ;;
3403
+ *)
3404
+ # OSF1 and SCO ODT 3.0 have their own names for install.
3405
+ # Don't use installbsd from OSF since it installs stuff as root
3406
+ # by default.
3407
+ for ac_prog in ginstall scoinst install; do
3408
+ for ac_exec_ext in '' $ac_executable_extensions; do
3409
+ if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3410
+ if test $ac_prog = install &&
3411
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3412
+ # AIX install. It has an incompatible calling convention.
3413
+ :
3414
+ elif test $ac_prog = install &&
3415
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3416
+ # program-specific install script used by HP pwplus--don't use.
3417
+ :
3418
+ else
3419
+ rm -rf conftest.one conftest.two conftest.dir
3420
+ echo one > conftest.one
3421
+ echo two > conftest.two
3422
+ mkdir conftest.dir
3423
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3424
+ test -s conftest.one && test -s conftest.two &&
3425
+ test -s conftest.dir/conftest.one &&
3426
+ test -s conftest.dir/conftest.two
3427
+ then
3428
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3429
+ break 3
3430
+ fi
3431
+ fi
3432
+ fi
3433
+ done
3434
+ done
3435
+ ;;
3436
+ esac
3437
+
3438
+ done
3439
+ IFS=$as_save_IFS
3440
+
3441
+ rm -rf conftest.one conftest.two conftest.dir
3442
+
3443
+ fi
3444
+ if test "${ac_cv_path_install+set}" = set; then
3445
+ INSTALL=$ac_cv_path_install
3446
+ else
3447
+ # As a last resort, use the slow shell script. Don't cache a
3448
+ # value for INSTALL within a source directory, because that will
3449
+ # break other packages using the cache if that directory is
3450
+ # removed, or if the value is a relative name.
3451
+ INSTALL=$ac_install_sh
3452
+ fi
3453
+ fi
3454
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3455
+ $as_echo "$INSTALL" >&6; }
3456
+
3457
+ # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3458
+ # It thinks the first close brace ends the variable substitution.
3459
+ test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3460
+
3461
+ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3462
+
3463
+ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3464
+
3465
+
3466
+
3467
+ # Add an explicit include directory.
3468
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-includes" >&5
3469
+ $as_echo_n "checking for --with-includes... " >&6; }
3470
+
3471
+ # Check whether --with-includes was given.
3472
+ if test "${with_includes+set}" = set; then :
3473
+ withval=$with_includes;
3474
+ else
3475
+ with_includes="none"
3476
+ fi
3477
+
3478
+
3479
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_includes" >&5
3480
+ $as_echo "$with_includes" >&6; }
3481
+
3482
+ if test "$with_includes" = "none"; then
3483
+ CONFIGURE_INCLUDES=../ndtypes/libndtypes
3484
+ CONFIGURE_INCLUDES_TEST=../../ndtypes/libndtypes
3485
+ else
3486
+ CONFIGURE_INCLUDES=$with_includes
3487
+ CONFIGURE_INCLUDES_TEST=$with_includes
3488
+ fi
3489
+
3490
+
3491
+
3492
+
3493
+ # Add an explicit library path.
3494
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
3495
+ $as_echo_n "checking for --with-libs... " >&6; }
3496
+
3497
+ # Check whether --with-libs was given.
3498
+ if test "${with_libs+set}" = set; then :
3499
+ withval=$with_libs;
3500
+ else
3501
+ with_libs="none"
3502
+ fi
3503
+
3504
+
3505
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libs" >&5
3506
+ $as_echo "$with_libs" >&6; }
3507
+
3508
+ if test "$with_libs" = "none"; then
3509
+ CONFIGURE_LIBS=../ndtypes/libndtypes
3510
+ CONFIGURE_LIBS_TEST=../../ndtypes/libndtypes
3511
+ else
3512
+ CONFIGURE_LIBS=$with_libs
3513
+ CONFIGURE_LIBS_TEST=$with_libs
3514
+ fi
3515
+
3516
+
3517
+
3518
+
3519
+ # Without documentation:
3520
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-docs" >&5
3521
+ $as_echo_n "checking for --with-docs... " >&6; }
3522
+
3523
+ # Check whether --with-docs was given.
3524
+ if test "${with_docs+set}" = set; then :
3525
+ withval=$with_docs;
3526
+ else
3527
+ with_docs=yes
3528
+ fi
3529
+
3530
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_docs" >&5
3531
+ $as_echo "$with_docs" >&6; }
3532
+ if test "$with_docs" = yes; then
3533
+ NDT_INSTALL_DOCS="install_docs"
3534
+ else
3535
+ NDT_INSTALL_DOCS=""
3536
+ fi
3537
+
3538
+
3539
+
3540
+ # Compiler dependent settings:
3541
+ XND_WARN=
3542
+ XND_OPT="-O2"
3543
+ case $CC in
3544
+ *gcc*)
3545
+ XND_WARN="-Wall -Wextra -std=c11 -pedantic"
3546
+ XND_OPT="-O2"
3547
+ ;;
3548
+ *icc*)
3549
+ AR=xiar
3550
+ XND_WARN="-Wall"
3551
+ XND_OPT="-O2"
3552
+ ;;
3553
+ *clang*)
3554
+ XND_WARN="-Wall -Wextra -std=c11 -pedantic"
3555
+ XND_OPT="-O2"
3556
+ ;;
3557
+ esac
3558
+
3559
+
3560
+
3561
+ # Substitute variables and generate output:
3562
+ if test -z "$LD"; then
3563
+ LD="$CC"
3564
+ fi
3565
+
3566
+
3567
+
3568
+
3569
+
3570
+
3571
+ if test -z "$CFLAGS"; then
3572
+ CONFIGURE_CFLAGS="$XND_INCLUDE $XND_WARN $XND_CONFIG $XND_OPT"
3573
+ else
3574
+ CONFIGURE_CFLAGS="$XND_INCLUDE $XND_WARN $XND_CONFIG $XND_OPT $CFLAGS"
3575
+ fi
3576
+
3577
+ if test -z "$LDFLAGS"; then
3578
+ CONFIGURE_LDFLAGS="$XND_LINK $CONFIGURE_LDFLAGS"
3579
+ else
3580
+ CONFIGURE_LDFLAGS="$XND_LINK $CONFIGURE_LDFLAGS $LDFLAGS"
3581
+ fi
3582
+
3583
+
3584
+
3585
+
3586
+ cat >confcache <<\_ACEOF
3587
+ # This file is a shell script that caches the results of configure
3588
+ # tests run on this system so they can be shared between configure
3589
+ # scripts and configure runs, see configure's option --config-cache.
3590
+ # It is not useful on other systems. If it contains results you don't
3591
+ # want to keep, you may remove or edit it.
3592
+ #
3593
+ # config.status only pays attention to the cache file if you give it
3594
+ # the --recheck option to rerun configure.
3595
+ #
3596
+ # `ac_cv_env_foo' variables (set or unset) will be overridden when
3597
+ # loading this file, other *unset* `ac_cv_foo' will be assigned the
3598
+ # following values.
3599
+
3600
+ _ACEOF
3601
+
3602
+ # The following way of writing the cache mishandles newlines in values,
3603
+ # but we know of no workaround that is simple, portable, and efficient.
3604
+ # So, we kill variables containing newlines.
3605
+ # Ultrix sh set writes to stderr and can't be redirected directly,
3606
+ # and sets the high bit in the cache file unless we assign to the vars.
3607
+ (
3608
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3609
+ eval ac_val=\$$ac_var
3610
+ case $ac_val in #(
3611
+ *${as_nl}*)
3612
+ case $ac_var in #(
3613
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3614
+ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3615
+ esac
3616
+ case $ac_var in #(
3617
+ _ | IFS | as_nl) ;; #(
3618
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3619
+ *) { eval $ac_var=; unset $ac_var;} ;;
3620
+ esac ;;
3621
+ esac
3622
+ done
3623
+
3624
+ (set) 2>&1 |
3625
+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
3626
+ *${as_nl}ac_space=\ *)
3627
+ # `set' does not quote correctly, so add quotes: double-quote
3628
+ # substitution turns \\\\ into \\, and sed turns \\ into \.
3629
+ sed -n \
3630
+ "s/'/'\\\\''/g;
3631
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3632
+ ;; #(
3633
+ *)
3634
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
3635
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3636
+ ;;
3637
+ esac |
3638
+ sort
3639
+ ) |
3640
+ sed '
3641
+ /^ac_cv_env_/b end
3642
+ t clear
3643
+ :clear
3644
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3645
+ t end
3646
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3647
+ :end' >>confcache
3648
+ if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3649
+ if test -w "$cache_file"; then
3650
+ if test "x$cache_file" != "x/dev/null"; then
3651
+ { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3652
+ $as_echo "$as_me: updating cache $cache_file" >&6;}
3653
+ if test ! -f "$cache_file" || test -h "$cache_file"; then
3654
+ cat confcache >"$cache_file"
3655
+ else
3656
+ case $cache_file in #(
3657
+ */* | ?:*)
3658
+ mv -f confcache "$cache_file"$$ &&
3659
+ mv -f "$cache_file"$$ "$cache_file" ;; #(
3660
+ *)
3661
+ mv -f confcache "$cache_file" ;;
3662
+ esac
3663
+ fi
3664
+ fi
3665
+ else
3666
+ { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3667
+ $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3668
+ fi
3669
+ fi
3670
+ rm -f confcache
3671
+
3672
+ test "x$prefix" = xNONE && prefix=$ac_default_prefix
3673
+ # Let make expand exec_prefix.
3674
+ test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3675
+
3676
+ DEFS=-DHAVE_CONFIG_H
3677
+
3678
+ ac_libobjs=
3679
+ ac_ltlibobjs=
3680
+ U=
3681
+ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3682
+ # 1. Remove the extension, and $U if already installed.
3683
+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3684
+ ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3685
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3686
+ # will be set to the directory where LIBOBJS objects are built.
3687
+ as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3688
+ as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3689
+ done
3690
+ LIBOBJS=$ac_libobjs
3691
+
3692
+ LTLIBOBJS=$ac_ltlibobjs
3693
+
3694
+
3695
+
3696
+ : "${CONFIG_STATUS=./config.status}"
3697
+ ac_write_fail=0
3698
+ ac_clean_files_save=$ac_clean_files
3699
+ ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3700
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3701
+ $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3702
+ as_write_fail=0
3703
+ cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3704
+ #! $SHELL
3705
+ # Generated by $as_me.
3706
+ # Run this file to recreate the current configuration.
3707
+ # Compiler output produced by configure, useful for debugging
3708
+ # configure, is in config.log if it exists.
3709
+
3710
+ debug=false
3711
+ ac_cs_recheck=false
3712
+ ac_cs_silent=false
3713
+
3714
+ SHELL=\${CONFIG_SHELL-$SHELL}
3715
+ export SHELL
3716
+ _ASEOF
3717
+ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3718
+ ## -------------------- ##
3719
+ ## M4sh Initialization. ##
3720
+ ## -------------------- ##
3721
+
3722
+ # Be more Bourne compatible
3723
+ DUALCASE=1; export DUALCASE # for MKS sh
3724
+ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3725
+ emulate sh
3726
+ NULLCMD=:
3727
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3728
+ # is contrary to our usage. Disable this feature.
3729
+ alias -g '${1+"$@"}'='"$@"'
3730
+ setopt NO_GLOB_SUBST
3731
+ else
3732
+ case `(set -o) 2>/dev/null` in #(
3733
+ *posix*) :
3734
+ set -o posix ;; #(
3735
+ *) :
3736
+ ;;
3737
+ esac
3738
+ fi
3739
+
3740
+
3741
+ as_nl='
3742
+ '
3743
+ export as_nl
3744
+ # Printing a long string crashes Solaris 7 /usr/bin/printf.
3745
+ as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3746
+ as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3747
+ as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3748
+ # Prefer a ksh shell builtin over an external printf program on Solaris,
3749
+ # but without wasting forks for bash or zsh.
3750
+ if test -z "$BASH_VERSION$ZSH_VERSION" \
3751
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3752
+ as_echo='print -r --'
3753
+ as_echo_n='print -rn --'
3754
+ elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3755
+ as_echo='printf %s\n'
3756
+ as_echo_n='printf %s'
3757
+ else
3758
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3759
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3760
+ as_echo_n='/usr/ucb/echo -n'
3761
+ else
3762
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3763
+ as_echo_n_body='eval
3764
+ arg=$1;
3765
+ case $arg in #(
3766
+ *"$as_nl"*)
3767
+ expr "X$arg" : "X\\(.*\\)$as_nl";
3768
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3769
+ esac;
3770
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3771
+ '
3772
+ export as_echo_n_body
3773
+ as_echo_n='sh -c $as_echo_n_body as_echo'
3774
+ fi
3775
+ export as_echo_body
3776
+ as_echo='sh -c $as_echo_body as_echo'
3777
+ fi
3778
+
3779
+ # The user is always right.
3780
+ if test "${PATH_SEPARATOR+set}" != set; then
3781
+ PATH_SEPARATOR=:
3782
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3783
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3784
+ PATH_SEPARATOR=';'
3785
+ }
3786
+ fi
3787
+
3788
+
3789
+ # IFS
3790
+ # We need space, tab and new line, in precisely that order. Quoting is
3791
+ # there to prevent editors from complaining about space-tab.
3792
+ # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3793
+ # splitting by setting IFS to empty value.)
3794
+ IFS=" "" $as_nl"
3795
+
3796
+ # Find who we are. Look in the path if we contain no directory separator.
3797
+ as_myself=
3798
+ case $0 in #((
3799
+ *[\\/]* ) as_myself=$0 ;;
3800
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801
+ for as_dir in $PATH
3802
+ do
3803
+ IFS=$as_save_IFS
3804
+ test -z "$as_dir" && as_dir=.
3805
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3806
+ done
3807
+ IFS=$as_save_IFS
3808
+
3809
+ ;;
3810
+ esac
3811
+ # We did not find ourselves, most probably we were run as `sh COMMAND'
3812
+ # in which case we are not to be found in the path.
3813
+ if test "x$as_myself" = x; then
3814
+ as_myself=$0
3815
+ fi
3816
+ if test ! -f "$as_myself"; then
3817
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3818
+ exit 1
3819
+ fi
3820
+
3821
+ # Unset variables that we do not need and which cause bugs (e.g. in
3822
+ # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3823
+ # suppresses any "Segmentation fault" message there. '((' could
3824
+ # trigger a bug in pdksh 5.2.14.
3825
+ for as_var in BASH_ENV ENV MAIL MAILPATH
3826
+ do eval test x\${$as_var+set} = xset \
3827
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3828
+ done
3829
+ PS1='$ '
3830
+ PS2='> '
3831
+ PS4='+ '
3832
+
3833
+ # NLS nuisances.
3834
+ LC_ALL=C
3835
+ export LC_ALL
3836
+ LANGUAGE=C
3837
+ export LANGUAGE
3838
+
3839
+ # CDPATH.
3840
+ (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3841
+
3842
+
3843
+ # as_fn_error STATUS ERROR [LINENO LOG_FD]
3844
+ # ----------------------------------------
3845
+ # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3846
+ # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3847
+ # script with STATUS, using 1 if that was 0.
3848
+ as_fn_error ()
3849
+ {
3850
+ as_status=$1; test $as_status -eq 0 && as_status=1
3851
+ if test "$4"; then
3852
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3853
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3854
+ fi
3855
+ $as_echo "$as_me: error: $2" >&2
3856
+ as_fn_exit $as_status
3857
+ } # as_fn_error
3858
+
3859
+
3860
+ # as_fn_set_status STATUS
3861
+ # -----------------------
3862
+ # Set $? to STATUS, without forking.
3863
+ as_fn_set_status ()
3864
+ {
3865
+ return $1
3866
+ } # as_fn_set_status
3867
+
3868
+ # as_fn_exit STATUS
3869
+ # -----------------
3870
+ # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3871
+ as_fn_exit ()
3872
+ {
3873
+ set +e
3874
+ as_fn_set_status $1
3875
+ exit $1
3876
+ } # as_fn_exit
3877
+
3878
+ # as_fn_unset VAR
3879
+ # ---------------
3880
+ # Portably unset VAR.
3881
+ as_fn_unset ()
3882
+ {
3883
+ { eval $1=; unset $1;}
3884
+ }
3885
+ as_unset=as_fn_unset
3886
+ # as_fn_append VAR VALUE
3887
+ # ----------------------
3888
+ # Append the text in VALUE to the end of the definition contained in VAR. Take
3889
+ # advantage of any shell optimizations that allow amortized linear growth over
3890
+ # repeated appends, instead of the typical quadratic growth present in naive
3891
+ # implementations.
3892
+ if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3893
+ eval 'as_fn_append ()
3894
+ {
3895
+ eval $1+=\$2
3896
+ }'
3897
+ else
3898
+ as_fn_append ()
3899
+ {
3900
+ eval $1=\$$1\$2
3901
+ }
3902
+ fi # as_fn_append
3903
+
3904
+ # as_fn_arith ARG...
3905
+ # ------------------
3906
+ # Perform arithmetic evaluation on the ARGs, and store the result in the
3907
+ # global $as_val. Take advantage of shells that can avoid forks. The arguments
3908
+ # must be portable across $(()) and expr.
3909
+ if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3910
+ eval 'as_fn_arith ()
3911
+ {
3912
+ as_val=$(( $* ))
3913
+ }'
3914
+ else
3915
+ as_fn_arith ()
3916
+ {
3917
+ as_val=`expr "$@" || test $? -eq 1`
3918
+ }
3919
+ fi # as_fn_arith
3920
+
3921
+
3922
+ if expr a : '\(a\)' >/dev/null 2>&1 &&
3923
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
3924
+ as_expr=expr
3925
+ else
3926
+ as_expr=false
3927
+ fi
3928
+
3929
+ if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3930
+ as_basename=basename
3931
+ else
3932
+ as_basename=false
3933
+ fi
3934
+
3935
+ if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3936
+ as_dirname=dirname
3937
+ else
3938
+ as_dirname=false
3939
+ fi
3940
+
3941
+ as_me=`$as_basename -- "$0" ||
3942
+ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3943
+ X"$0" : 'X\(//\)$' \| \
3944
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3945
+ $as_echo X/"$0" |
3946
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
3947
+ s//\1/
3948
+ q
3949
+ }
3950
+ /^X\/\(\/\/\)$/{
3951
+ s//\1/
3952
+ q
3953
+ }
3954
+ /^X\/\(\/\).*/{
3955
+ s//\1/
3956
+ q
3957
+ }
3958
+ s/.*/./; q'`
3959
+
3960
+ # Avoid depending upon Character Ranges.
3961
+ as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3962
+ as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3963
+ as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3964
+ as_cr_digits='0123456789'
3965
+ as_cr_alnum=$as_cr_Letters$as_cr_digits
3966
+
3967
+ ECHO_C= ECHO_N= ECHO_T=
3968
+ case `echo -n x` in #(((((
3969
+ -n*)
3970
+ case `echo 'xy\c'` in
3971
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3972
+ xy) ECHO_C='\c';;
3973
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3974
+ ECHO_T=' ';;
3975
+ esac;;
3976
+ *)
3977
+ ECHO_N='-n';;
3978
+ esac
3979
+
3980
+ rm -f conf$$ conf$$.exe conf$$.file
3981
+ if test -d conf$$.dir; then
3982
+ rm -f conf$$.dir/conf$$.file
3983
+ else
3984
+ rm -f conf$$.dir
3985
+ mkdir conf$$.dir 2>/dev/null
3986
+ fi
3987
+ if (echo >conf$$.file) 2>/dev/null; then
3988
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
3989
+ as_ln_s='ln -s'
3990
+ # ... but there are two gotchas:
3991
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3992
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3993
+ # In both cases, we have to default to `cp -pR'.
3994
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3995
+ as_ln_s='cp -pR'
3996
+ elif ln conf$$.file conf$$ 2>/dev/null; then
3997
+ as_ln_s=ln
3998
+ else
3999
+ as_ln_s='cp -pR'
4000
+ fi
4001
+ else
4002
+ as_ln_s='cp -pR'
4003
+ fi
4004
+ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4005
+ rmdir conf$$.dir 2>/dev/null
4006
+
4007
+
4008
+ # as_fn_mkdir_p
4009
+ # -------------
4010
+ # Create "$as_dir" as a directory, including parents if necessary.
4011
+ as_fn_mkdir_p ()
4012
+ {
4013
+
4014
+ case $as_dir in #(
4015
+ -*) as_dir=./$as_dir;;
4016
+ esac
4017
+ test -d "$as_dir" || eval $as_mkdir_p || {
4018
+ as_dirs=
4019
+ while :; do
4020
+ case $as_dir in #(
4021
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4022
+ *) as_qdir=$as_dir;;
4023
+ esac
4024
+ as_dirs="'$as_qdir' $as_dirs"
4025
+ as_dir=`$as_dirname -- "$as_dir" ||
4026
+ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4027
+ X"$as_dir" : 'X\(//\)[^/]' \| \
4028
+ X"$as_dir" : 'X\(//\)$' \| \
4029
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4030
+ $as_echo X"$as_dir" |
4031
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4032
+ s//\1/
4033
+ q
4034
+ }
4035
+ /^X\(\/\/\)[^/].*/{
4036
+ s//\1/
4037
+ q
4038
+ }
4039
+ /^X\(\/\/\)$/{
4040
+ s//\1/
4041
+ q
4042
+ }
4043
+ /^X\(\/\).*/{
4044
+ s//\1/
4045
+ q
4046
+ }
4047
+ s/.*/./; q'`
4048
+ test -d "$as_dir" && break
4049
+ done
4050
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
4051
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4052
+
4053
+
4054
+ } # as_fn_mkdir_p
4055
+ if mkdir -p . 2>/dev/null; then
4056
+ as_mkdir_p='mkdir -p "$as_dir"'
4057
+ else
4058
+ test -d ./-p && rmdir ./-p
4059
+ as_mkdir_p=false
4060
+ fi
4061
+
4062
+
4063
+ # as_fn_executable_p FILE
4064
+ # -----------------------
4065
+ # Test if FILE is an executable regular file.
4066
+ as_fn_executable_p ()
4067
+ {
4068
+ test -f "$1" && test -x "$1"
4069
+ } # as_fn_executable_p
4070
+ as_test_x='test -x'
4071
+ as_executable_p=as_fn_executable_p
4072
+
4073
+ # Sed expression to map a string onto a valid CPP name.
4074
+ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4075
+
4076
+ # Sed expression to map a string onto a valid variable name.
4077
+ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4078
+
4079
+
4080
+ exec 6>&1
4081
+ ## ----------------------------------- ##
4082
+ ## Main body of $CONFIG_STATUS script. ##
4083
+ ## ----------------------------------- ##
4084
+ _ASEOF
4085
+ test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4086
+
4087
+ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4088
+ # Save the log message, to keep $0 and so on meaningful, and to
4089
+ # report actual input values of CONFIG_FILES etc. instead of their
4090
+ # values after options handling.
4091
+ ac_log="
4092
+ This file was extended by xnd $as_me 0.2.0dev3, which was
4093
+ generated by GNU Autoconf 2.69. Invocation command line was
4094
+
4095
+ CONFIG_FILES = $CONFIG_FILES
4096
+ CONFIG_HEADERS = $CONFIG_HEADERS
4097
+ CONFIG_LINKS = $CONFIG_LINKS
4098
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
4099
+ $ $0 $@
4100
+
4101
+ on `(hostname || uname -n) 2>/dev/null | sed 1q`
4102
+ "
4103
+
4104
+ _ACEOF
4105
+
4106
+ case $ac_config_files in *"
4107
+ "*) set x $ac_config_files; shift; ac_config_files=$*;;
4108
+ esac
4109
+
4110
+ case $ac_config_headers in *"
4111
+ "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4112
+ esac
4113
+
4114
+
4115
+ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4116
+ # Files that config.status was made for.
4117
+ config_files="$ac_config_files"
4118
+ config_headers="$ac_config_headers"
4119
+
4120
+ _ACEOF
4121
+
4122
+ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4123
+ ac_cs_usage="\
4124
+ \`$as_me' instantiates files and other configuration actions
4125
+ from templates according to the current configuration. Unless the files
4126
+ and actions are specified as TAGs, all are instantiated by default.
4127
+
4128
+ Usage: $0 [OPTION]... [TAG]...
4129
+
4130
+ -h, --help print this help, then exit
4131
+ -V, --version print version number and configuration settings, then exit
4132
+ --config print configuration, then exit
4133
+ -q, --quiet, --silent
4134
+ do not print progress messages
4135
+ -d, --debug don't remove temporary files
4136
+ --recheck update $as_me by reconfiguring in the same conditions
4137
+ --file=FILE[:TEMPLATE]
4138
+ instantiate the configuration file FILE
4139
+ --header=FILE[:TEMPLATE]
4140
+ instantiate the configuration header FILE
4141
+
4142
+ Configuration files:
4143
+ $config_files
4144
+
4145
+ Configuration headers:
4146
+ $config_headers
4147
+
4148
+ Report bugs to <skrah@bytereef.org>.
4149
+ xnd home page: <https://github.com/plures/>."
4150
+
4151
+ _ACEOF
4152
+ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4153
+ ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4154
+ ac_cs_version="\\
4155
+ xnd config.status 0.2.0dev3
4156
+ configured by $0, generated by GNU Autoconf 2.69,
4157
+ with options \\"\$ac_cs_config\\"
4158
+
4159
+ Copyright (C) 2012 Free Software Foundation, Inc.
4160
+ This config.status script is free software; the Free Software Foundation
4161
+ gives unlimited permission to copy, distribute and modify it."
4162
+
4163
+ ac_pwd='$ac_pwd'
4164
+ srcdir='$srcdir'
4165
+ INSTALL='$INSTALL'
4166
+ test -n "\$AWK" || AWK=awk
4167
+ _ACEOF
4168
+
4169
+ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4170
+ # The default lists apply if the user does not specify any file.
4171
+ ac_need_defaults=:
4172
+ while test $# != 0
4173
+ do
4174
+ case $1 in
4175
+ --*=?*)
4176
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
4177
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4178
+ ac_shift=:
4179
+ ;;
4180
+ --*=)
4181
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
4182
+ ac_optarg=
4183
+ ac_shift=:
4184
+ ;;
4185
+ *)
4186
+ ac_option=$1
4187
+ ac_optarg=$2
4188
+ ac_shift=shift
4189
+ ;;
4190
+ esac
4191
+
4192
+ case $ac_option in
4193
+ # Handling of the options.
4194
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4195
+ ac_cs_recheck=: ;;
4196
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4197
+ $as_echo "$ac_cs_version"; exit ;;
4198
+ --config | --confi | --conf | --con | --co | --c )
4199
+ $as_echo "$ac_cs_config"; exit ;;
4200
+ --debug | --debu | --deb | --de | --d | -d )
4201
+ debug=: ;;
4202
+ --file | --fil | --fi | --f )
4203
+ $ac_shift
4204
+ case $ac_optarg in
4205
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4206
+ '') as_fn_error $? "missing file argument" ;;
4207
+ esac
4208
+ as_fn_append CONFIG_FILES " '$ac_optarg'"
4209
+ ac_need_defaults=false;;
4210
+ --header | --heade | --head | --hea )
4211
+ $ac_shift
4212
+ case $ac_optarg in
4213
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4214
+ esac
4215
+ as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4216
+ ac_need_defaults=false;;
4217
+ --he | --h)
4218
+ # Conflict between --help and --header
4219
+ as_fn_error $? "ambiguous option: \`$1'
4220
+ Try \`$0 --help' for more information.";;
4221
+ --help | --hel | -h )
4222
+ $as_echo "$ac_cs_usage"; exit ;;
4223
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4224
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
4225
+ ac_cs_silent=: ;;
4226
+
4227
+ # This is an error.
4228
+ -*) as_fn_error $? "unrecognized option: \`$1'
4229
+ Try \`$0 --help' for more information." ;;
4230
+
4231
+ *) as_fn_append ac_config_targets " $1"
4232
+ ac_need_defaults=false ;;
4233
+
4234
+ esac
4235
+ shift
4236
+ done
4237
+
4238
+ ac_configure_extra_args=
4239
+
4240
+ if $ac_cs_silent; then
4241
+ exec 6>/dev/null
4242
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
4243
+ fi
4244
+
4245
+ _ACEOF
4246
+ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4247
+ if \$ac_cs_recheck; then
4248
+ set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4249
+ shift
4250
+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4251
+ CONFIG_SHELL='$SHELL'
4252
+ export CONFIG_SHELL
4253
+ exec "\$@"
4254
+ fi
4255
+
4256
+ _ACEOF
4257
+ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4258
+ exec 5>>config.log
4259
+ {
4260
+ echo
4261
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4262
+ ## Running $as_me. ##
4263
+ _ASBOX
4264
+ $as_echo "$ac_log"
4265
+ } >&5
4266
+
4267
+ _ACEOF
4268
+ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4269
+ _ACEOF
4270
+
4271
+ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4272
+
4273
+ # Handling of arguments.
4274
+ for ac_config_target in $ac_config_targets
4275
+ do
4276
+ case $ac_config_target in
4277
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4278
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4279
+ "libxnd/Makefile") CONFIG_FILES="$CONFIG_FILES libxnd/Makefile" ;;
4280
+ "libxnd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libxnd/tests/Makefile" ;;
4281
+
4282
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4283
+ esac
4284
+ done
4285
+
4286
+
4287
+ # If the user did not use the arguments to specify the items to instantiate,
4288
+ # then the envvar interface is used. Set only those that are not.
4289
+ # We use the long form for the default assignment because of an extremely
4290
+ # bizarre bug on SunOS 4.1.3.
4291
+ if $ac_need_defaults; then
4292
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4293
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4294
+ fi
4295
+
4296
+ # Have a temporary directory for convenience. Make it in the build tree
4297
+ # simply because there is no reason against having it here, and in addition,
4298
+ # creating and moving files from /tmp can sometimes cause problems.
4299
+ # Hook for its removal unless debugging.
4300
+ # Note that there is a small window in which the directory will not be cleaned:
4301
+ # after its creation but before its name has been assigned to `$tmp'.
4302
+ $debug ||
4303
+ {
4304
+ tmp= ac_tmp=
4305
+ trap 'exit_status=$?
4306
+ : "${ac_tmp:=$tmp}"
4307
+ { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4308
+ ' 0
4309
+ trap 'as_fn_exit 1' 1 2 13 15
4310
+ }
4311
+ # Create a (secure) tmp directory for tmp files.
4312
+
4313
+ {
4314
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4315
+ test -d "$tmp"
4316
+ } ||
4317
+ {
4318
+ tmp=./conf$$-$RANDOM
4319
+ (umask 077 && mkdir "$tmp")
4320
+ } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4321
+ ac_tmp=$tmp
4322
+
4323
+ # Set up the scripts for CONFIG_FILES section.
4324
+ # No need to generate them if there are no CONFIG_FILES.
4325
+ # This happens for instance with `./config.status config.h'.
4326
+ if test -n "$CONFIG_FILES"; then
4327
+
4328
+
4329
+ ac_cr=`echo X | tr X '\015'`
4330
+ # On cygwin, bash can eat \r inside `` if the user requested igncr.
4331
+ # But we know of no other shell where ac_cr would be empty at this
4332
+ # point, so we can use a bashism as a fallback.
4333
+ if test "x$ac_cr" = x; then
4334
+ eval ac_cr=\$\'\\r\'
4335
+ fi
4336
+ ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4337
+ if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4338
+ ac_cs_awk_cr='\\r'
4339
+ else
4340
+ ac_cs_awk_cr=$ac_cr
4341
+ fi
4342
+
4343
+ echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4344
+ _ACEOF
4345
+
4346
+
4347
+ {
4348
+ echo "cat >conf$$subs.awk <<_ACEOF" &&
4349
+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4350
+ echo "_ACEOF"
4351
+ } >conf$$subs.sh ||
4352
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4353
+ ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4354
+ ac_delim='%!_!# '
4355
+ for ac_last_try in false false false false false :; do
4356
+ . ./conf$$subs.sh ||
4357
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4358
+
4359
+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4360
+ if test $ac_delim_n = $ac_delim_num; then
4361
+ break
4362
+ elif $ac_last_try; then
4363
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4364
+ else
4365
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4366
+ fi
4367
+ done
4368
+ rm -f conf$$subs.sh
4369
+
4370
+ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4371
+ cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4372
+ _ACEOF
4373
+ sed -n '
4374
+ h
4375
+ s/^/S["/; s/!.*/"]=/
4376
+ p
4377
+ g
4378
+ s/^[^!]*!//
4379
+ :repl
4380
+ t repl
4381
+ s/'"$ac_delim"'$//
4382
+ t delim
4383
+ :nl
4384
+ h
4385
+ s/\(.\{148\}\)..*/\1/
4386
+ t more1
4387
+ s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4388
+ p
4389
+ n
4390
+ b repl
4391
+ :more1
4392
+ s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4393
+ p
4394
+ g
4395
+ s/.\{148\}//
4396
+ t nl
4397
+ :delim
4398
+ h
4399
+ s/\(.\{148\}\)..*/\1/
4400
+ t more2
4401
+ s/["\\]/\\&/g; s/^/"/; s/$/"/
4402
+ p
4403
+ b
4404
+ :more2
4405
+ s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4406
+ p
4407
+ g
4408
+ s/.\{148\}//
4409
+ t delim
4410
+ ' <conf$$subs.awk | sed '
4411
+ /^[^""]/{
4412
+ N
4413
+ s/\n//
4414
+ }
4415
+ ' >>$CONFIG_STATUS || ac_write_fail=1
4416
+ rm -f conf$$subs.awk
4417
+ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4418
+ _ACAWK
4419
+ cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4420
+ for (key in S) S_is_set[key] = 1
4421
+ FS = ""
4422
+
4423
+ }
4424
+ {
4425
+ line = $ 0
4426
+ nfields = split(line, field, "@")
4427
+ substed = 0
4428
+ len = length(field[1])
4429
+ for (i = 2; i < nfields; i++) {
4430
+ key = field[i]
4431
+ keylen = length(key)
4432
+ if (S_is_set[key]) {
4433
+ value = S[key]
4434
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4435
+ len += length(value) + length(field[++i])
4436
+ substed = 1
4437
+ } else
4438
+ len += 1 + keylen
4439
+ }
4440
+
4441
+ print line
4442
+ }
4443
+
4444
+ _ACAWK
4445
+ _ACEOF
4446
+ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4447
+ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4448
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4449
+ else
4450
+ cat
4451
+ fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4452
+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4453
+ _ACEOF
4454
+
4455
+ # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4456
+ # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4457
+ # trailing colons and then remove the whole line if VPATH becomes empty
4458
+ # (actually we leave an empty line to preserve line numbers).
4459
+ if test "x$srcdir" = x.; then
4460
+ ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4461
+ h
4462
+ s///
4463
+ s/^/:/
4464
+ s/[ ]*$/:/
4465
+ s/:\$(srcdir):/:/g
4466
+ s/:\${srcdir}:/:/g
4467
+ s/:@srcdir@:/:/g
4468
+ s/^:*//
4469
+ s/:*$//
4470
+ x
4471
+ s/\(=[ ]*\).*/\1/
4472
+ G
4473
+ s/\n//
4474
+ s/^[^=]*=[ ]*$//
4475
+ }'
4476
+ fi
4477
+
4478
+ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4479
+ fi # test -n "$CONFIG_FILES"
4480
+
4481
+ # Set up the scripts for CONFIG_HEADERS section.
4482
+ # No need to generate them if there are no CONFIG_HEADERS.
4483
+ # This happens for instance with `./config.status Makefile'.
4484
+ if test -n "$CONFIG_HEADERS"; then
4485
+ cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4486
+ BEGIN {
4487
+ _ACEOF
4488
+
4489
+ # Transform confdefs.h into an awk script `defines.awk', embedded as
4490
+ # here-document in config.status, that substitutes the proper values into
4491
+ # config.h.in to produce config.h.
4492
+
4493
+ # Create a delimiter string that does not exist in confdefs.h, to ease
4494
+ # handling of long lines.
4495
+ ac_delim='%!_!# '
4496
+ for ac_last_try in false false :; do
4497
+ ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4498
+ if test -z "$ac_tt"; then
4499
+ break
4500
+ elif $ac_last_try; then
4501
+ as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4502
+ else
4503
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4504
+ fi
4505
+ done
4506
+
4507
+ # For the awk script, D is an array of macro values keyed by name,
4508
+ # likewise P contains macro parameters if any. Preserve backslash
4509
+ # newline sequences.
4510
+
4511
+ ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4512
+ sed -n '
4513
+ s/.\{148\}/&'"$ac_delim"'/g
4514
+ t rset
4515
+ :rset
4516
+ s/^[ ]*#[ ]*define[ ][ ]*/ /
4517
+ t def
4518
+ d
4519
+ :def
4520
+ s/\\$//
4521
+ t bsnl
4522
+ s/["\\]/\\&/g
4523
+ s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4524
+ D["\1"]=" \3"/p
4525
+ s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4526
+ d
4527
+ :bsnl
4528
+ s/["\\]/\\&/g
4529
+ s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4530
+ D["\1"]=" \3\\\\\\n"\\/p
4531
+ t cont
4532
+ s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4533
+ t cont
4534
+ d
4535
+ :cont
4536
+ n
4537
+ s/.\{148\}/&'"$ac_delim"'/g
4538
+ t clear
4539
+ :clear
4540
+ s/\\$//
4541
+ t bsnlc
4542
+ s/["\\]/\\&/g; s/^/"/; s/$/"/p
4543
+ d
4544
+ :bsnlc
4545
+ s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4546
+ b cont
4547
+ ' <confdefs.h | sed '
4548
+ s/'"$ac_delim"'/"\\\
4549
+ "/g' >>$CONFIG_STATUS || ac_write_fail=1
4550
+
4551
+ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4552
+ for (key in D) D_is_set[key] = 1
4553
+ FS = ""
4554
+ }
4555
+ /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4556
+ line = \$ 0
4557
+ split(line, arg, " ")
4558
+ if (arg[1] == "#") {
4559
+ defundef = arg[2]
4560
+ mac1 = arg[3]
4561
+ } else {
4562
+ defundef = substr(arg[1], 2)
4563
+ mac1 = arg[2]
4564
+ }
4565
+ split(mac1, mac2, "(") #)
4566
+ macro = mac2[1]
4567
+ prefix = substr(line, 1, index(line, defundef) - 1)
4568
+ if (D_is_set[macro]) {
4569
+ # Preserve the white space surrounding the "#".
4570
+ print prefix "define", macro P[macro] D[macro]
4571
+ next
4572
+ } else {
4573
+ # Replace #undef with comments. This is necessary, for example,
4574
+ # in the case of _POSIX_SOURCE, which is predefined and required
4575
+ # on some systems where configure will not decide to define it.
4576
+ if (defundef == "undef") {
4577
+ print "/*", prefix defundef, macro, "*/"
4578
+ next
4579
+ }
4580
+ }
4581
+ }
4582
+ { print }
4583
+ _ACAWK
4584
+ _ACEOF
4585
+ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4586
+ as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4587
+ fi # test -n "$CONFIG_HEADERS"
4588
+
4589
+
4590
+ eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4591
+ shift
4592
+ for ac_tag
4593
+ do
4594
+ case $ac_tag in
4595
+ :[FHLC]) ac_mode=$ac_tag; continue;;
4596
+ esac
4597
+ case $ac_mode$ac_tag in
4598
+ :[FHL]*:*);;
4599
+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4600
+ :[FH]-) ac_tag=-:-;;
4601
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4602
+ esac
4603
+ ac_save_IFS=$IFS
4604
+ IFS=:
4605
+ set x $ac_tag
4606
+ IFS=$ac_save_IFS
4607
+ shift
4608
+ ac_file=$1
4609
+ shift
4610
+
4611
+ case $ac_mode in
4612
+ :L) ac_source=$1;;
4613
+ :[FH])
4614
+ ac_file_inputs=
4615
+ for ac_f
4616
+ do
4617
+ case $ac_f in
4618
+ -) ac_f="$ac_tmp/stdin";;
4619
+ *) # Look for the file first in the build tree, then in the source tree
4620
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
4621
+ # because $ac_f cannot contain `:'.
4622
+ test -f "$ac_f" ||
4623
+ case $ac_f in
4624
+ [\\/$]*) false;;
4625
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4626
+ esac ||
4627
+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4628
+ esac
4629
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4630
+ as_fn_append ac_file_inputs " '$ac_f'"
4631
+ done
4632
+
4633
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
4634
+ # use $as_me), people would be surprised to read:
4635
+ # /* config.h. Generated by config.status. */
4636
+ configure_input='Generated from '`
4637
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4638
+ `' by configure.'
4639
+ if test x"$ac_file" != x-; then
4640
+ configure_input="$ac_file. $configure_input"
4641
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4642
+ $as_echo "$as_me: creating $ac_file" >&6;}
4643
+ fi
4644
+ # Neutralize special characters interpreted by sed in replacement strings.
4645
+ case $configure_input in #(
4646
+ *\&* | *\|* | *\\* )
4647
+ ac_sed_conf_input=`$as_echo "$configure_input" |
4648
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
4649
+ *) ac_sed_conf_input=$configure_input;;
4650
+ esac
4651
+
4652
+ case $ac_tag in
4653
+ *:-:* | *:-) cat >"$ac_tmp/stdin" \
4654
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4655
+ esac
4656
+ ;;
4657
+ esac
4658
+
4659
+ ac_dir=`$as_dirname -- "$ac_file" ||
4660
+ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4661
+ X"$ac_file" : 'X\(//\)[^/]' \| \
4662
+ X"$ac_file" : 'X\(//\)$' \| \
4663
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4664
+ $as_echo X"$ac_file" |
4665
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4666
+ s//\1/
4667
+ q
4668
+ }
4669
+ /^X\(\/\/\)[^/].*/{
4670
+ s//\1/
4671
+ q
4672
+ }
4673
+ /^X\(\/\/\)$/{
4674
+ s//\1/
4675
+ q
4676
+ }
4677
+ /^X\(\/\).*/{
4678
+ s//\1/
4679
+ q
4680
+ }
4681
+ s/.*/./; q'`
4682
+ as_dir="$ac_dir"; as_fn_mkdir_p
4683
+ ac_builddir=.
4684
+
4685
+ case "$ac_dir" in
4686
+ .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4687
+ *)
4688
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4689
+ # A ".." for each directory in $ac_dir_suffix.
4690
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4691
+ case $ac_top_builddir_sub in
4692
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4693
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4694
+ esac ;;
4695
+ esac
4696
+ ac_abs_top_builddir=$ac_pwd
4697
+ ac_abs_builddir=$ac_pwd$ac_dir_suffix
4698
+ # for backward compatibility:
4699
+ ac_top_builddir=$ac_top_build_prefix
4700
+
4701
+ case $srcdir in
4702
+ .) # We are building in place.
4703
+ ac_srcdir=.
4704
+ ac_top_srcdir=$ac_top_builddir_sub
4705
+ ac_abs_top_srcdir=$ac_pwd ;;
4706
+ [\\/]* | ?:[\\/]* ) # Absolute name.
4707
+ ac_srcdir=$srcdir$ac_dir_suffix;
4708
+ ac_top_srcdir=$srcdir
4709
+ ac_abs_top_srcdir=$srcdir ;;
4710
+ *) # Relative name.
4711
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4712
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
4713
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4714
+ esac
4715
+ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4716
+
4717
+
4718
+ case $ac_mode in
4719
+ :F)
4720
+ #
4721
+ # CONFIG_FILE
4722
+ #
4723
+
4724
+ case $INSTALL in
4725
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4726
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4727
+ esac
4728
+ _ACEOF
4729
+
4730
+ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4731
+ # If the template does not know about datarootdir, expand it.
4732
+ # FIXME: This hack should be removed a few years after 2.60.
4733
+ ac_datarootdir_hack=; ac_datarootdir_seen=
4734
+ ac_sed_dataroot='
4735
+ /datarootdir/ {
4736
+ p
4737
+ q
4738
+ }
4739
+ /@datadir@/p
4740
+ /@docdir@/p
4741
+ /@infodir@/p
4742
+ /@localedir@/p
4743
+ /@mandir@/p'
4744
+ case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4745
+ *datarootdir*) ac_datarootdir_seen=yes;;
4746
+ *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4747
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4748
+ $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4749
+ _ACEOF
4750
+ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4751
+ ac_datarootdir_hack='
4752
+ s&@datadir@&$datadir&g
4753
+ s&@docdir@&$docdir&g
4754
+ s&@infodir@&$infodir&g
4755
+ s&@localedir@&$localedir&g
4756
+ s&@mandir@&$mandir&g
4757
+ s&\\\${datarootdir}&$datarootdir&g' ;;
4758
+ esac
4759
+ _ACEOF
4760
+
4761
+ # Neutralize VPATH when `$srcdir' = `.'.
4762
+ # Shell code in configure.ac might set extrasub.
4763
+ # FIXME: do we really want to maintain this feature?
4764
+ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4765
+ ac_sed_extra="$ac_vpsub
4766
+ $extrasub
4767
+ _ACEOF
4768
+ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4769
+ :t
4770
+ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4771
+ s|@configure_input@|$ac_sed_conf_input|;t t
4772
+ s&@top_builddir@&$ac_top_builddir_sub&;t t
4773
+ s&@top_build_prefix@&$ac_top_build_prefix&;t t
4774
+ s&@srcdir@&$ac_srcdir&;t t
4775
+ s&@abs_srcdir@&$ac_abs_srcdir&;t t
4776
+ s&@top_srcdir@&$ac_top_srcdir&;t t
4777
+ s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4778
+ s&@builddir@&$ac_builddir&;t t
4779
+ s&@abs_builddir@&$ac_abs_builddir&;t t
4780
+ s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4781
+ s&@INSTALL@&$ac_INSTALL&;t t
4782
+ $ac_datarootdir_hack
4783
+ "
4784
+ eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4785
+ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4786
+
4787
+ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4788
+ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4789
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4790
+ "$ac_tmp/out"`; test -z "$ac_out"; } &&
4791
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4792
+ which seems to be undefined. Please make sure it is defined" >&5
4793
+ $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4794
+ which seems to be undefined. Please make sure it is defined" >&2;}
4795
+
4796
+ rm -f "$ac_tmp/stdin"
4797
+ case $ac_file in
4798
+ -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4799
+ *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4800
+ esac \
4801
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4802
+ ;;
4803
+ :H)
4804
+ #
4805
+ # CONFIG_HEADER
4806
+ #
4807
+ if test x"$ac_file" != x-; then
4808
+ {
4809
+ $as_echo "/* $configure_input */" \
4810
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4811
+ } >"$ac_tmp/config.h" \
4812
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4813
+ if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4814
+ { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4815
+ $as_echo "$as_me: $ac_file is unchanged" >&6;}
4816
+ else
4817
+ rm -f "$ac_file"
4818
+ mv "$ac_tmp/config.h" "$ac_file" \
4819
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4820
+ fi
4821
+ else
4822
+ $as_echo "/* $configure_input */" \
4823
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4824
+ || as_fn_error $? "could not create -" "$LINENO" 5
4825
+ fi
4826
+ ;;
4827
+
4828
+
4829
+ esac
4830
+
4831
+ done # for ac_tag
4832
+
4833
+
4834
+ as_fn_exit 0
4835
+ _ACEOF
4836
+ ac_clean_files=$ac_clean_files_save
4837
+
4838
+ test $ac_write_fail = 0 ||
4839
+ as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4840
+
4841
+
4842
+ # configure is writing to config.log, and then calls config.status.
4843
+ # config.status does its own redirection, appending to config.log.
4844
+ # Unfortunately, on DOS this fails, as config.log is still kept open
4845
+ # by configure, so config.status won't be able to write to it; its
4846
+ # output is simply discarded. So we exec the FD to /dev/null,
4847
+ # effectively closing config.log, so it can be properly (re)opened and
4848
+ # appended to by config.status. When coming back to configure, we
4849
+ # need to make the FD available again.
4850
+ if test "$no_create" != yes; then
4851
+ ac_cs_success=:
4852
+ ac_config_status_args=
4853
+ test "$silent" = yes &&
4854
+ ac_config_status_args="$ac_config_status_args --quiet"
4855
+ exec 5>/dev/null
4856
+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4857
+ exec 5>>config.log
4858
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4859
+ # would make configure fail if this is the last instruction.
4860
+ $ac_cs_success || as_fn_exit 1
4861
+ fi
4862
+ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4863
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4864
+ $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4865
+ fi
4866
+
4867
+