~ubuntu-branches/ubuntu/wily/octave-miscellaneous/wily

« back to all changes in this revision

Viewing changes to src/configure

  • Committer: Package Import Robot
  • Author(s): Thomas Weber
  • Date: 2014-06-09 15:43:35 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20140609154335-qtyms40gdz6lrvui
Tags: upstream-1.2.1
ImportĀ upstreamĀ versionĀ 1.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.69 for Octave-Forge miscellaneous package 1.2.0+.
 
4
#
 
5
#
 
6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
7
#
 
8
#
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## -------------------- ##
 
12
## M4sh Initialization. ##
 
13
## -------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in #(
 
26
  *posix*) :
 
27
    set -o posix ;; #(
 
28
  *) :
 
29
     ;;
 
30
esac
 
31
fi
 
32
 
 
33
 
 
34
as_nl='
 
35
'
 
36
export as_nl
 
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
42
# but without wasting forks for bash or zsh.
 
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
45
  as_echo='print -r --'
 
46
  as_echo_n='print -rn --'
 
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
48
  as_echo='printf %s\n'
 
49
  as_echo_n='printf %s'
 
50
else
 
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
53
    as_echo_n='/usr/ucb/echo -n'
 
54
  else
 
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
56
    as_echo_n_body='eval
 
57
      arg=$1;
 
58
      case $arg in #(
 
59
      *"$as_nl"*)
 
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
62
      esac;
 
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
64
    '
 
65
    export as_echo_n_body
 
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
67
  fi
 
68
  export as_echo_body
 
69
  as_echo='sh -c $as_echo_body as_echo'
 
70
fi
 
71
 
 
72
# The user is always right.
 
73
if test "${PATH_SEPARATOR+set}" != set; then
 
74
  PATH_SEPARATOR=:
 
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
77
      PATH_SEPARATOR=';'
 
78
  }
 
79
fi
 
80
 
 
81
 
 
82
# IFS
 
83
# We need space, tab and new line, in precisely that order.  Quoting is
 
84
# there to prevent editors from complaining about space-tab.
 
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
86
# splitting by setting IFS to empty value.)
 
87
IFS=" ""        $as_nl"
 
88
 
 
89
# Find who we are.  Look in the path if we contain no directory separator.
 
90
as_myself=
 
91
case $0 in #((
 
92
  *[\\/]* ) as_myself=$0 ;;
 
93
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
94
for as_dir in $PATH
 
95
do
 
96
  IFS=$as_save_IFS
 
97
  test -z "$as_dir" && as_dir=.
 
98
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
99
  done
 
100
IFS=$as_save_IFS
 
101
 
 
102
     ;;
 
103
esac
 
104
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
105
# in which case we are not to be found in the path.
 
106
if test "x$as_myself" = x; then
 
107
  as_myself=$0
 
108
fi
 
109
if test ! -f "$as_myself"; then
 
110
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
111
  exit 1
 
112
fi
 
113
 
 
114
# Unset variables that we do not need and which cause bugs (e.g. in
 
115
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
116
# suppresses any "Segmentation fault" message there.  '((' could
 
117
# trigger a bug in pdksh 5.2.14.
 
118
for as_var in BASH_ENV ENV MAIL MAILPATH
 
119
do eval test x\${$as_var+set} = xset \
 
120
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
121
done
 
122
PS1='$ '
 
123
PS2='> '
 
124
PS4='+ '
 
125
 
 
126
# NLS nuisances.
 
127
LC_ALL=C
 
128
export LC_ALL
 
129
LANGUAGE=C
 
130
export LANGUAGE
 
131
 
 
132
# CDPATH.
 
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
134
 
 
135
# Use a proper internal environment variable to ensure we don't fall
 
136
  # into an infinite loop, continuously re-executing ourselves.
 
137
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
138
    _as_can_reexec=no; export _as_can_reexec;
 
139
    # We cannot yet assume a decent shell, so we have to provide a
 
140
# neutralization value for shells without unset; and this also
 
141
# works around shells that cannot unset nonexistent variables.
 
142
# Preserve -v and -x to the replacement shell.
 
143
BASH_ENV=/dev/null
 
144
ENV=/dev/null
 
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
146
case $- in # ((((
 
147
  *v*x* | *x*v* ) as_opts=-vx ;;
 
148
  *v* ) as_opts=-v ;;
 
149
  *x* ) as_opts=-x ;;
 
150
  * ) as_opts= ;;
 
151
esac
 
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
153
# Admittedly, this is quite paranoid, since all the known shells bail
 
154
# out after a failed `exec'.
 
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
156
as_fn_exit 255
 
157
  fi
 
158
  # We don't want this to propagate to other subprocesses.
 
159
          { _as_can_reexec=; unset _as_can_reexec;}
 
160
if test "x$CONFIG_SHELL" = x; then
 
161
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
162
  emulate sh
 
163
  NULLCMD=:
 
164
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
165
  # is contrary to our usage.  Disable this feature.
 
166
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
167
  setopt NO_GLOB_SUBST
 
168
else
 
169
  case \`(set -o) 2>/dev/null\` in #(
 
170
  *posix*) :
 
171
    set -o posix ;; #(
 
172
  *) :
 
173
     ;;
 
174
esac
 
175
fi
 
176
"
 
177
  as_required="as_fn_return () { (exit \$1); }
 
178
as_fn_success () { as_fn_return 0; }
 
179
as_fn_failure () { as_fn_return 1; }
 
180
as_fn_ret_success () { return 0; }
 
181
as_fn_ret_failure () { return 1; }
 
182
 
 
183
exitcode=0
 
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
189
 
 
190
else
 
191
  exitcode=1; echo positional parameters were not saved.
 
192
fi
 
193
test x\$exitcode = x0 || exit 1
 
194
test -x / || exit 1"
 
195
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
196
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
197
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
198
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
199
test \$(( 1 + 1 )) = 2 || exit 1"
 
200
  if (eval "$as_required") 2>/dev/null; then :
 
201
  as_have_required=yes
 
202
else
 
203
  as_have_required=no
 
204
fi
 
205
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
206
 
 
207
else
 
208
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
209
as_found=false
 
210
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
211
do
 
212
  IFS=$as_save_IFS
 
213
  test -z "$as_dir" && as_dir=.
 
214
  as_found=:
 
215
  case $as_dir in #(
 
216
         /*)
 
217
           for as_base in sh bash ksh sh5; do
 
218
             # Try only shells that exist, to save several forks.
 
219
             as_shell=$as_dir/$as_base
 
220
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
221
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
222
  CONFIG_SHELL=$as_shell as_have_required=yes
 
223
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
224
  break 2
 
225
fi
 
226
fi
 
227
           done;;
 
228
       esac
 
229
  as_found=false
 
230
done
 
231
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
232
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
233
  CONFIG_SHELL=$SHELL as_have_required=yes
 
234
fi; }
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      if test "x$CONFIG_SHELL" != x; then :
 
239
  export CONFIG_SHELL
 
240
             # We cannot yet assume a decent shell, so we have to provide a
 
241
# neutralization value for shells without unset; and this also
 
242
# works around shells that cannot unset nonexistent variables.
 
243
# Preserve -v and -x to the replacement shell.
 
244
BASH_ENV=/dev/null
 
245
ENV=/dev/null
 
246
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
247
case $- in # ((((
 
248
  *v*x* | *x*v* ) as_opts=-vx ;;
 
249
  *v* ) as_opts=-v ;;
 
250
  *x* ) as_opts=-x ;;
 
251
  * ) as_opts= ;;
 
252
esac
 
253
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
254
# Admittedly, this is quite paranoid, since all the known shells bail
 
255
# out after a failed `exec'.
 
256
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
257
exit 255
 
258
fi
 
259
 
 
260
    if test x$as_have_required = xno; then :
 
261
  $as_echo "$0: This script requires a shell more modern than all"
 
262
  $as_echo "$0: the shells that I found on your system."
 
263
  if test x${ZSH_VERSION+set} = xset ; then
 
264
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
265
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
266
  else
 
267
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
268
$0: including any error possibly output before this
 
269
$0: message. Then install a modern shell, or manually run
 
270
$0: the script under such a shell if you do have one."
 
271
  fi
 
272
  exit 1
 
273
fi
 
274
fi
 
275
fi
 
276
SHELL=${CONFIG_SHELL-/bin/sh}
 
277
export SHELL
 
278
# Unset more variables known to interfere with behavior of common tools.
 
279
CLICOLOR_FORCE= GREP_OPTIONS=
 
280
unset CLICOLOR_FORCE GREP_OPTIONS
 
281
 
 
282
## --------------------- ##
 
283
## M4sh Shell Functions. ##
 
284
## --------------------- ##
 
285
# as_fn_unset VAR
 
286
# ---------------
 
287
# Portably unset VAR.
 
288
as_fn_unset ()
 
289
{
 
290
  { eval $1=; unset $1;}
 
291
}
 
292
as_unset=as_fn_unset
 
293
 
 
294
# as_fn_set_status STATUS
 
295
# -----------------------
 
296
# Set $? to STATUS, without forking.
 
297
as_fn_set_status ()
 
298
{
 
299
  return $1
 
300
} # as_fn_set_status
 
301
 
 
302
# as_fn_exit STATUS
 
303
# -----------------
 
304
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
305
as_fn_exit ()
 
306
{
 
307
  set +e
 
308
  as_fn_set_status $1
 
309
  exit $1
 
310
} # as_fn_exit
 
311
 
 
312
# as_fn_mkdir_p
 
313
# -------------
 
314
# Create "$as_dir" as a directory, including parents if necessary.
 
315
as_fn_mkdir_p ()
 
316
{
 
317
 
 
318
  case $as_dir in #(
 
319
  -*) as_dir=./$as_dir;;
 
320
  esac
 
321
  test -d "$as_dir" || eval $as_mkdir_p || {
 
322
    as_dirs=
 
323
    while :; do
 
324
      case $as_dir in #(
 
325
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
326
      *) as_qdir=$as_dir;;
 
327
      esac
 
328
      as_dirs="'$as_qdir' $as_dirs"
 
329
      as_dir=`$as_dirname -- "$as_dir" ||
 
330
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
331
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
332
         X"$as_dir" : 'X\(//\)$' \| \
 
333
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
334
$as_echo X"$as_dir" |
 
335
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
336
            s//\1/
 
337
            q
 
338
          }
 
339
          /^X\(\/\/\)[^/].*/{
 
340
            s//\1/
 
341
            q
 
342
          }
 
343
          /^X\(\/\/\)$/{
 
344
            s//\1/
 
345
            q
 
346
          }
 
347
          /^X\(\/\).*/{
 
348
            s//\1/
 
349
            q
 
350
          }
 
351
          s/.*/./; q'`
 
352
      test -d "$as_dir" && break
 
353
    done
 
354
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
355
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
356
 
 
357
 
 
358
} # as_fn_mkdir_p
 
359
 
 
360
# as_fn_executable_p FILE
 
361
# -----------------------
 
362
# Test if FILE is an executable regular file.
 
363
as_fn_executable_p ()
 
364
{
 
365
  test -f "$1" && test -x "$1"
 
366
} # as_fn_executable_p
 
367
# as_fn_append VAR VALUE
 
368
# ----------------------
 
369
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
370
# advantage of any shell optimizations that allow amortized linear growth over
 
371
# repeated appends, instead of the typical quadratic growth present in naive
 
372
# implementations.
 
373
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
374
  eval 'as_fn_append ()
 
375
  {
 
376
    eval $1+=\$2
 
377
  }'
 
378
else
 
379
  as_fn_append ()
 
380
  {
 
381
    eval $1=\$$1\$2
 
382
  }
 
383
fi # as_fn_append
 
384
 
 
385
# as_fn_arith ARG...
 
386
# ------------------
 
387
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
388
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
389
# must be portable across $(()) and expr.
 
390
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
391
  eval 'as_fn_arith ()
 
392
  {
 
393
    as_val=$(( $* ))
 
394
  }'
 
395
else
 
396
  as_fn_arith ()
 
397
  {
 
398
    as_val=`expr "$@" || test $? -eq 1`
 
399
  }
 
400
fi # as_fn_arith
 
401
 
 
402
 
 
403
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
404
# ----------------------------------------
 
405
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
406
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
407
# script with STATUS, using 1 if that was 0.
 
408
as_fn_error ()
 
409
{
 
410
  as_status=$1; test $as_status -eq 0 && as_status=1
 
411
  if test "$4"; then
 
412
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
413
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
414
  fi
 
415
  $as_echo "$as_me: error: $2" >&2
 
416
  as_fn_exit $as_status
 
417
} # as_fn_error
 
418
 
 
419
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
420
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
421
  as_expr=expr
 
422
else
 
423
  as_expr=false
 
424
fi
 
425
 
 
426
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
427
  as_basename=basename
 
428
else
 
429
  as_basename=false
 
430
fi
 
431
 
 
432
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
433
  as_dirname=dirname
 
434
else
 
435
  as_dirname=false
 
436
fi
 
437
 
 
438
as_me=`$as_basename -- "$0" ||
 
439
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
440
         X"$0" : 'X\(//\)$' \| \
 
441
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
442
$as_echo X/"$0" |
 
443
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
444
            s//\1/
 
445
            q
 
446
          }
 
447
          /^X\/\(\/\/\)$/{
 
448
            s//\1/
 
449
            q
 
450
          }
 
451
          /^X\/\(\/\).*/{
 
452
            s//\1/
 
453
            q
 
454
          }
 
455
          s/.*/./; q'`
 
456
 
 
457
# Avoid depending upon Character Ranges.
 
458
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
459
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
460
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
461
as_cr_digits='0123456789'
 
462
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
463
 
 
464
 
 
465
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
466
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
467
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
468
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
469
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
470
  sed -n '
 
471
    p
 
472
    /[$]LINENO/=
 
473
  ' <$as_myself |
 
474
    sed '
 
475
      s/[$]LINENO.*/&-/
 
476
      t lineno
 
477
      b
 
478
      :lineno
 
479
      N
 
480
      :loop
 
481
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
482
      t loop
 
483
      s/-\n.*//
 
484
    ' >$as_me.lineno &&
 
485
  chmod +x "$as_me.lineno" ||
 
486
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
487
 
 
488
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
489
  # already done that, so ensure we don't try to do so again and fall
 
490
  # in an infinite loop.  This has already happened in practice.
 
491
  _as_can_reexec=no; export _as_can_reexec
 
492
  # Don't try to exec as it changes $[0], causing all sort of problems
 
493
  # (the dirname of $[0] is not the place where we might find the
 
494
  # original and so on.  Autoconf is especially sensitive to this).
 
495
  . "./$as_me.lineno"
 
496
  # Exit status is that of the last command.
 
497
  exit
 
498
}
 
499
 
 
500
ECHO_C= ECHO_N= ECHO_T=
 
501
case `echo -n x` in #(((((
 
502
-n*)
 
503
  case `echo 'xy\c'` in
 
504
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
505
  xy)  ECHO_C='\c';;
 
506
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
507
       ECHO_T=' ';;
 
508
  esac;;
 
509
*)
 
510
  ECHO_N='-n';;
 
511
esac
 
512
 
 
513
rm -f conf$$ conf$$.exe conf$$.file
 
514
if test -d conf$$.dir; then
 
515
  rm -f conf$$.dir/conf$$.file
 
516
else
 
517
  rm -f conf$$.dir
 
518
  mkdir conf$$.dir 2>/dev/null
 
519
fi
 
520
if (echo >conf$$.file) 2>/dev/null; then
 
521
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
522
    as_ln_s='ln -s'
 
523
    # ... but there are two gotchas:
 
524
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
525
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
526
    # In both cases, we have to default to `cp -pR'.
 
527
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
528
      as_ln_s='cp -pR'
 
529
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
530
    as_ln_s=ln
 
531
  else
 
532
    as_ln_s='cp -pR'
 
533
  fi
 
534
else
 
535
  as_ln_s='cp -pR'
 
536
fi
 
537
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
538
rmdir conf$$.dir 2>/dev/null
 
539
 
 
540
if mkdir -p . 2>/dev/null; then
 
541
  as_mkdir_p='mkdir -p "$as_dir"'
 
542
else
 
543
  test -d ./-p && rmdir ./-p
 
544
  as_mkdir_p=false
 
545
fi
 
546
 
 
547
as_test_x='test -x'
 
548
as_executable_p=as_fn_executable_p
 
549
 
 
550
# Sed expression to map a string onto a valid CPP name.
 
551
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
552
 
 
553
# Sed expression to map a string onto a valid variable name.
 
554
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
555
 
 
556
 
 
557
test -n "$DJDIR" || exec 7<&0 </dev/null
 
558
exec 6>&1
 
559
 
 
560
# Name of the host.
 
561
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
562
# so uname gets run too.
 
563
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
564
 
 
565
#
 
566
# Initializations.
 
567
#
 
568
ac_default_prefix=/usr/local
 
569
ac_clean_files=
 
570
ac_config_libobj_dir=.
 
571
LIBOBJS=
 
572
cross_compiling=no
 
573
subdirs=
 
574
MFLAGS=
 
575
MAKEFLAGS=
 
576
 
 
577
# Identity of this package.
 
578
PACKAGE_NAME='Octave-Forge miscellaneous package'
 
579
PACKAGE_TARNAME='octave-forge-miscellaneous-package'
 
580
PACKAGE_VERSION='1.2.0+'
 
581
PACKAGE_STRING='Octave-Forge miscellaneous package 1.2.0+'
 
582
PACKAGE_BUGREPORT=''
 
583
PACKAGE_URL=''
 
584
 
 
585
# Factoring default headers for most tests.
 
586
ac_includes_default="\
 
587
#include <stdio.h>
 
588
#ifdef HAVE_SYS_TYPES_H
 
589
# include <sys/types.h>
 
590
#endif
 
591
#ifdef HAVE_SYS_STAT_H
 
592
# include <sys/stat.h>
 
593
#endif
 
594
#ifdef STDC_HEADERS
 
595
# include <stdlib.h>
 
596
# include <stddef.h>
 
597
#else
 
598
# ifdef HAVE_STDLIB_H
 
599
#  include <stdlib.h>
 
600
# endif
 
601
#endif
 
602
#ifdef HAVE_STRING_H
 
603
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
604
#  include <memory.h>
 
605
# endif
 
606
# include <string.h>
 
607
#endif
 
608
#ifdef HAVE_STRINGS_H
 
609
# include <strings.h>
 
610
#endif
 
611
#ifdef HAVE_INTTYPES_H
 
612
# include <inttypes.h>
 
613
#endif
 
614
#ifdef HAVE_STDINT_H
 
615
# include <stdint.h>
 
616
#endif
 
617
#ifdef HAVE_UNISTD_H
 
618
# include <unistd.h>
 
619
#endif"
 
620
 
 
621
ac_subst_vars='UNITS_AVAILABLE
 
622
ac_ct_CXX
 
623
CXXFLAGS
 
624
CXX
 
625
EGREP
 
626
GREP
 
627
CPP
 
628
OBJEXT
 
629
EXEEXT
 
630
ac_ct_CC
 
631
CPPFLAGS
 
632
LDFLAGS
 
633
CFLAGS
 
634
CC
 
635
target_alias
 
636
host_alias
 
637
build_alias
 
638
LIBS
 
639
ECHO_T
 
640
ECHO_N
 
641
ECHO_C
 
642
DEFS
 
643
mandir
 
644
localedir
 
645
libdir
 
646
psdir
 
647
pdfdir
 
648
dvidir
 
649
htmldir
 
650
infodir
 
651
docdir
 
652
oldincludedir
 
653
includedir
 
654
localstatedir
 
655
sharedstatedir
 
656
sysconfdir
 
657
datadir
 
658
datarootdir
 
659
libexecdir
 
660
sbindir
 
661
bindir
 
662
program_transform_name
 
663
prefix
 
664
exec_prefix
 
665
PACKAGE_URL
 
666
PACKAGE_BUGREPORT
 
667
PACKAGE_STRING
 
668
PACKAGE_VERSION
 
669
PACKAGE_TARNAME
 
670
PACKAGE_NAME
 
671
PATH_SEPARATOR
 
672
SHELL'
 
673
ac_subst_files=''
 
674
ac_user_opts='
 
675
enable_option_checking
 
676
'
 
677
      ac_precious_vars='build_alias
 
678
host_alias
 
679
target_alias
 
680
CC
 
681
CFLAGS
 
682
LDFLAGS
 
683
LIBS
 
684
CPPFLAGS
 
685
CPP
 
686
CXX
 
687
CXXFLAGS
 
688
CCC'
 
689
 
 
690
 
 
691
# Initialize some variables set by options.
 
692
ac_init_help=
 
693
ac_init_version=false
 
694
ac_unrecognized_opts=
 
695
ac_unrecognized_sep=
 
696
# The variables have the same names as the options, with
 
697
# dashes changed to underlines.
 
698
cache_file=/dev/null
 
699
exec_prefix=NONE
 
700
no_create=
 
701
no_recursion=
 
702
prefix=NONE
 
703
program_prefix=NONE
 
704
program_suffix=NONE
 
705
program_transform_name=s,x,x,
 
706
silent=
 
707
site=
 
708
srcdir=
 
709
verbose=
 
710
x_includes=NONE
 
711
x_libraries=NONE
 
712
 
 
713
# Installation directory options.
 
714
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
715
# and all the variables that are supposed to be based on exec_prefix
 
716
# by default will actually change.
 
717
# Use braces instead of parens because sh, perl, etc. also accept them.
 
718
# (The list follows the same order as the GNU Coding Standards.)
 
719
bindir='${exec_prefix}/bin'
 
720
sbindir='${exec_prefix}/sbin'
 
721
libexecdir='${exec_prefix}/libexec'
 
722
datarootdir='${prefix}/share'
 
723
datadir='${datarootdir}'
 
724
sysconfdir='${prefix}/etc'
 
725
sharedstatedir='${prefix}/com'
 
726
localstatedir='${prefix}/var'
 
727
includedir='${prefix}/include'
 
728
oldincludedir='/usr/include'
 
729
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
730
infodir='${datarootdir}/info'
 
731
htmldir='${docdir}'
 
732
dvidir='${docdir}'
 
733
pdfdir='${docdir}'
 
734
psdir='${docdir}'
 
735
libdir='${exec_prefix}/lib'
 
736
localedir='${datarootdir}/locale'
 
737
mandir='${datarootdir}/man'
 
738
 
 
739
ac_prev=
 
740
ac_dashdash=
 
741
for ac_option
 
742
do
 
743
  # If the previous option needs an argument, assign it.
 
744
  if test -n "$ac_prev"; then
 
745
    eval $ac_prev=\$ac_option
 
746
    ac_prev=
 
747
    continue
 
748
  fi
 
749
 
 
750
  case $ac_option in
 
751
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
752
  *=)   ac_optarg= ;;
 
753
  *)    ac_optarg=yes ;;
 
754
  esac
 
755
 
 
756
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
757
 
 
758
  case $ac_dashdash$ac_option in
 
759
  --)
 
760
    ac_dashdash=yes ;;
 
761
 
 
762
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
763
    ac_prev=bindir ;;
 
764
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
765
    bindir=$ac_optarg ;;
 
766
 
 
767
  -build | --build | --buil | --bui | --bu)
 
768
    ac_prev=build_alias ;;
 
769
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
770
    build_alias=$ac_optarg ;;
 
771
 
 
772
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
773
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
774
    ac_prev=cache_file ;;
 
775
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
776
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
777
    cache_file=$ac_optarg ;;
 
778
 
 
779
  --config-cache | -C)
 
780
    cache_file=config.cache ;;
 
781
 
 
782
  -datadir | --datadir | --datadi | --datad)
 
783
    ac_prev=datadir ;;
 
784
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
785
    datadir=$ac_optarg ;;
 
786
 
 
787
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
788
  | --dataroo | --dataro | --datar)
 
789
    ac_prev=datarootdir ;;
 
790
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
791
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
792
    datarootdir=$ac_optarg ;;
 
793
 
 
794
  -disable-* | --disable-*)
 
795
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
796
    # Reject names that are not valid shell variable names.
 
797
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
798
      as_fn_error $? "invalid feature name: $ac_useropt"
 
799
    ac_useropt_orig=$ac_useropt
 
800
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
801
    case $ac_user_opts in
 
802
      *"
 
803
"enable_$ac_useropt"
 
804
"*) ;;
 
805
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
806
         ac_unrecognized_sep=', ';;
 
807
    esac
 
808
    eval enable_$ac_useropt=no ;;
 
809
 
 
810
  -docdir | --docdir | --docdi | --doc | --do)
 
811
    ac_prev=docdir ;;
 
812
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
813
    docdir=$ac_optarg ;;
 
814
 
 
815
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
816
    ac_prev=dvidir ;;
 
817
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
818
    dvidir=$ac_optarg ;;
 
819
 
 
820
  -enable-* | --enable-*)
 
821
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
822
    # Reject names that are not valid shell variable names.
 
823
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
824
      as_fn_error $? "invalid feature name: $ac_useropt"
 
825
    ac_useropt_orig=$ac_useropt
 
826
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
827
    case $ac_user_opts in
 
828
      *"
 
829
"enable_$ac_useropt"
 
830
"*) ;;
 
831
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
832
         ac_unrecognized_sep=', ';;
 
833
    esac
 
834
    eval enable_$ac_useropt=\$ac_optarg ;;
 
835
 
 
836
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
837
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
838
  | --exec | --exe | --ex)
 
839
    ac_prev=exec_prefix ;;
 
840
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
841
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
842
  | --exec=* | --exe=* | --ex=*)
 
843
    exec_prefix=$ac_optarg ;;
 
844
 
 
845
  -gas | --gas | --ga | --g)
 
846
    # Obsolete; use --with-gas.
 
847
    with_gas=yes ;;
 
848
 
 
849
  -help | --help | --hel | --he | -h)
 
850
    ac_init_help=long ;;
 
851
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
852
    ac_init_help=recursive ;;
 
853
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
854
    ac_init_help=short ;;
 
855
 
 
856
  -host | --host | --hos | --ho)
 
857
    ac_prev=host_alias ;;
 
858
  -host=* | --host=* | --hos=* | --ho=*)
 
859
    host_alias=$ac_optarg ;;
 
860
 
 
861
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
862
    ac_prev=htmldir ;;
 
863
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
864
  | --ht=*)
 
865
    htmldir=$ac_optarg ;;
 
866
 
 
867
  -includedir | --includedir | --includedi | --included | --include \
 
868
  | --includ | --inclu | --incl | --inc)
 
869
    ac_prev=includedir ;;
 
870
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
871
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
872
    includedir=$ac_optarg ;;
 
873
 
 
874
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
875
    ac_prev=infodir ;;
 
876
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
877
    infodir=$ac_optarg ;;
 
878
 
 
879
  -libdir | --libdir | --libdi | --libd)
 
880
    ac_prev=libdir ;;
 
881
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
882
    libdir=$ac_optarg ;;
 
883
 
 
884
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
885
  | --libexe | --libex | --libe)
 
886
    ac_prev=libexecdir ;;
 
887
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
888
  | --libexe=* | --libex=* | --libe=*)
 
889
    libexecdir=$ac_optarg ;;
 
890
 
 
891
  -localedir | --localedir | --localedi | --localed | --locale)
 
892
    ac_prev=localedir ;;
 
893
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
894
    localedir=$ac_optarg ;;
 
895
 
 
896
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
897
  | --localstate | --localstat | --localsta | --localst | --locals)
 
898
    ac_prev=localstatedir ;;
 
899
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
900
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
901
    localstatedir=$ac_optarg ;;
 
902
 
 
903
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
904
    ac_prev=mandir ;;
 
905
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
906
    mandir=$ac_optarg ;;
 
907
 
 
908
  -nfp | --nfp | --nf)
 
909
    # Obsolete; use --without-fp.
 
910
    with_fp=no ;;
 
911
 
 
912
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
913
  | --no-cr | --no-c | -n)
 
914
    no_create=yes ;;
 
915
 
 
916
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
917
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
918
    no_recursion=yes ;;
 
919
 
 
920
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
921
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
922
  | --oldin | --oldi | --old | --ol | --o)
 
923
    ac_prev=oldincludedir ;;
 
924
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
925
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
926
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
927
    oldincludedir=$ac_optarg ;;
 
928
 
 
929
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
930
    ac_prev=prefix ;;
 
931
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
932
    prefix=$ac_optarg ;;
 
933
 
 
934
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
935
  | --program-pre | --program-pr | --program-p)
 
936
    ac_prev=program_prefix ;;
 
937
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
938
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
939
    program_prefix=$ac_optarg ;;
 
940
 
 
941
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
942
  | --program-suf | --program-su | --program-s)
 
943
    ac_prev=program_suffix ;;
 
944
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
945
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
946
    program_suffix=$ac_optarg ;;
 
947
 
 
948
  -program-transform-name | --program-transform-name \
 
949
  | --program-transform-nam | --program-transform-na \
 
950
  | --program-transform-n | --program-transform- \
 
951
  | --program-transform | --program-transfor \
 
952
  | --program-transfo | --program-transf \
 
953
  | --program-trans | --program-tran \
 
954
  | --progr-tra | --program-tr | --program-t)
 
955
    ac_prev=program_transform_name ;;
 
956
  -program-transform-name=* | --program-transform-name=* \
 
957
  | --program-transform-nam=* | --program-transform-na=* \
 
958
  | --program-transform-n=* | --program-transform-=* \
 
959
  | --program-transform=* | --program-transfor=* \
 
960
  | --program-transfo=* | --program-transf=* \
 
961
  | --program-trans=* | --program-tran=* \
 
962
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
963
    program_transform_name=$ac_optarg ;;
 
964
 
 
965
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
966
    ac_prev=pdfdir ;;
 
967
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
968
    pdfdir=$ac_optarg ;;
 
969
 
 
970
  -psdir | --psdir | --psdi | --psd | --ps)
 
971
    ac_prev=psdir ;;
 
972
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
973
    psdir=$ac_optarg ;;
 
974
 
 
975
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
976
  | -silent | --silent | --silen | --sile | --sil)
 
977
    silent=yes ;;
 
978
 
 
979
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
980
    ac_prev=sbindir ;;
 
981
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
982
  | --sbi=* | --sb=*)
 
983
    sbindir=$ac_optarg ;;
 
984
 
 
985
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
986
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
987
  | --sharedst | --shareds | --shared | --share | --shar \
 
988
  | --sha | --sh)
 
989
    ac_prev=sharedstatedir ;;
 
990
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
991
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
992
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
993
  | --sha=* | --sh=*)
 
994
    sharedstatedir=$ac_optarg ;;
 
995
 
 
996
  -site | --site | --sit)
 
997
    ac_prev=site ;;
 
998
  -site=* | --site=* | --sit=*)
 
999
    site=$ac_optarg ;;
 
1000
 
 
1001
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1002
    ac_prev=srcdir ;;
 
1003
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1004
    srcdir=$ac_optarg ;;
 
1005
 
 
1006
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1007
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1008
    ac_prev=sysconfdir ;;
 
1009
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1010
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1011
    sysconfdir=$ac_optarg ;;
 
1012
 
 
1013
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1014
    ac_prev=target_alias ;;
 
1015
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1016
    target_alias=$ac_optarg ;;
 
1017
 
 
1018
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1019
    verbose=yes ;;
 
1020
 
 
1021
  -version | --version | --versio | --versi | --vers | -V)
 
1022
    ac_init_version=: ;;
 
1023
 
 
1024
  -with-* | --with-*)
 
1025
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1026
    # Reject names that are not valid shell variable names.
 
1027
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1028
      as_fn_error $? "invalid package name: $ac_useropt"
 
1029
    ac_useropt_orig=$ac_useropt
 
1030
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1031
    case $ac_user_opts in
 
1032
      *"
 
1033
"with_$ac_useropt"
 
1034
"*) ;;
 
1035
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1036
         ac_unrecognized_sep=', ';;
 
1037
    esac
 
1038
    eval with_$ac_useropt=\$ac_optarg ;;
 
1039
 
 
1040
  -without-* | --without-*)
 
1041
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1042
    # Reject names that are not valid shell variable names.
 
1043
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1044
      as_fn_error $? "invalid package name: $ac_useropt"
 
1045
    ac_useropt_orig=$ac_useropt
 
1046
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1047
    case $ac_user_opts in
 
1048
      *"
 
1049
"with_$ac_useropt"
 
1050
"*) ;;
 
1051
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1052
         ac_unrecognized_sep=', ';;
 
1053
    esac
 
1054
    eval with_$ac_useropt=no ;;
 
1055
 
 
1056
  --x)
 
1057
    # Obsolete; use --with-x.
 
1058
    with_x=yes ;;
 
1059
 
 
1060
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1061
  | --x-incl | --x-inc | --x-in | --x-i)
 
1062
    ac_prev=x_includes ;;
 
1063
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1064
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1065
    x_includes=$ac_optarg ;;
 
1066
 
 
1067
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1068
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1069
    ac_prev=x_libraries ;;
 
1070
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1071
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1072
    x_libraries=$ac_optarg ;;
 
1073
 
 
1074
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1075
Try \`$0 --help' for more information"
 
1076
    ;;
 
1077
 
 
1078
  *=*)
 
1079
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1080
    # Reject names that are not valid shell variable names.
 
1081
    case $ac_envvar in #(
 
1082
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1083
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1084
    esac
 
1085
    eval $ac_envvar=\$ac_optarg
 
1086
    export $ac_envvar ;;
 
1087
 
 
1088
  *)
 
1089
    # FIXME: should be removed in autoconf 3.0.
 
1090
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1091
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1092
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1093
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1094
    ;;
 
1095
 
 
1096
  esac
 
1097
done
 
1098
 
 
1099
if test -n "$ac_prev"; then
 
1100
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1101
  as_fn_error $? "missing argument to $ac_option"
 
1102
fi
 
1103
 
 
1104
if test -n "$ac_unrecognized_opts"; then
 
1105
  case $enable_option_checking in
 
1106
    no) ;;
 
1107
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1108
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1109
  esac
 
1110
fi
 
1111
 
 
1112
# Check all directory arguments for consistency.
 
1113
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1114
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1115
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1116
                libdir localedir mandir
 
1117
do
 
1118
  eval ac_val=\$$ac_var
 
1119
  # Remove trailing slashes.
 
1120
  case $ac_val in
 
1121
    */ )
 
1122
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1123
      eval $ac_var=\$ac_val;;
 
1124
  esac
 
1125
  # Be sure to have absolute directory names.
 
1126
  case $ac_val in
 
1127
    [\\/$]* | ?:[\\/]* )  continue;;
 
1128
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1129
  esac
 
1130
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1131
done
 
1132
 
 
1133
# There might be people who depend on the old broken behavior: `$host'
 
1134
# used to hold the argument of --host etc.
 
1135
# FIXME: To remove some day.
 
1136
build=$build_alias
 
1137
host=$host_alias
 
1138
target=$target_alias
 
1139
 
 
1140
# FIXME: To remove some day.
 
1141
if test "x$host_alias" != x; then
 
1142
  if test "x$build_alias" = x; then
 
1143
    cross_compiling=maybe
 
1144
  elif test "x$build_alias" != "x$host_alias"; then
 
1145
    cross_compiling=yes
 
1146
  fi
 
1147
fi
 
1148
 
 
1149
ac_tool_prefix=
 
1150
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1151
 
 
1152
test "$silent" = yes && exec 6>/dev/null
 
1153
 
 
1154
 
 
1155
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1156
ac_ls_di=`ls -di .` &&
 
1157
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1158
  as_fn_error $? "working directory cannot be determined"
 
1159
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1160
  as_fn_error $? "pwd does not report name of working directory"
 
1161
 
 
1162
 
 
1163
# Find the source files, if location was not specified.
 
1164
if test -z "$srcdir"; then
 
1165
  ac_srcdir_defaulted=yes
 
1166
  # Try the directory containing this script, then the parent directory.
 
1167
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1168
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1169
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1170
         X"$as_myself" : 'X\(//\)$' \| \
 
1171
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1172
$as_echo X"$as_myself" |
 
1173
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1174
            s//\1/
 
1175
            q
 
1176
          }
 
1177
          /^X\(\/\/\)[^/].*/{
 
1178
            s//\1/
 
1179
            q
 
1180
          }
 
1181
          /^X\(\/\/\)$/{
 
1182
            s//\1/
 
1183
            q
 
1184
          }
 
1185
          /^X\(\/\).*/{
 
1186
            s//\1/
 
1187
            q
 
1188
          }
 
1189
          s/.*/./; q'`
 
1190
  srcdir=$ac_confdir
 
1191
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1192
    srcdir=..
 
1193
  fi
 
1194
else
 
1195
  ac_srcdir_defaulted=no
 
1196
fi
 
1197
if test ! -r "$srcdir/$ac_unique_file"; then
 
1198
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1199
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1200
fi
 
1201
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1202
ac_abs_confdir=`(
 
1203
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1204
        pwd)`
 
1205
# When building in place, set srcdir=.
 
1206
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1207
  srcdir=.
 
1208
fi
 
1209
# Remove unnecessary trailing slashes from srcdir.
 
1210
# Double slashes in file names in object file debugging info
 
1211
# mess up M-x gdb in Emacs.
 
1212
case $srcdir in
 
1213
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1214
esac
 
1215
for ac_var in $ac_precious_vars; do
 
1216
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1217
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1218
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1219
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1220
done
 
1221
 
 
1222
#
 
1223
# Report the --help message.
 
1224
#
 
1225
if test "$ac_init_help" = "long"; then
 
1226
  # Omit some internal or obsolete options to make the list less imposing.
 
1227
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1228
  cat <<_ACEOF
 
1229
\`configure' configures Octave-Forge miscellaneous package 1.2.0+ to adapt to many kinds of systems.
 
1230
 
 
1231
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1232
 
 
1233
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1234
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1235
 
 
1236
Defaults for the options are specified in brackets.
 
1237
 
 
1238
Configuration:
 
1239
  -h, --help              display this help and exit
 
1240
      --help=short        display options specific to this package
 
1241
      --help=recursive    display the short help of all the included packages
 
1242
  -V, --version           display version information and exit
 
1243
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1244
      --cache-file=FILE   cache test results in FILE [disabled]
 
1245
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1246
  -n, --no-create         do not create output files
 
1247
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1248
 
 
1249
Installation directories:
 
1250
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1251
                          [$ac_default_prefix]
 
1252
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1253
                          [PREFIX]
 
1254
 
 
1255
By default, \`make install' will install all the files in
 
1256
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1257
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1258
for instance \`--prefix=\$HOME'.
 
1259
 
 
1260
For better control, use the options below.
 
1261
 
 
1262
Fine tuning of the installation directories:
 
1263
  --bindir=DIR            user executables [EPREFIX/bin]
 
1264
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1265
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1266
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1267
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1268
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1269
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1270
  --includedir=DIR        C header files [PREFIX/include]
 
1271
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1272
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1273
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1274
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1275
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1276
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1277
  --docdir=DIR            documentation root
 
1278
                          [DATAROOTDIR/doc/octave-forge-miscellaneous-package]
 
1279
  --htmldir=DIR           html documentation [DOCDIR]
 
1280
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1281
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1282
  --psdir=DIR             ps documentation [DOCDIR]
 
1283
_ACEOF
 
1284
 
 
1285
  cat <<\_ACEOF
 
1286
_ACEOF
 
1287
fi
 
1288
 
 
1289
if test -n "$ac_init_help"; then
 
1290
  case $ac_init_help in
 
1291
     short | recursive ) echo "Configuration of Octave-Forge miscellaneous package 1.2.0+:";;
 
1292
   esac
 
1293
  cat <<\_ACEOF
 
1294
 
 
1295
Some influential environment variables:
 
1296
  CC          C compiler command
 
1297
  CFLAGS      C compiler flags
 
1298
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1299
              nonstandard directory <lib dir>
 
1300
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1301
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1302
              you have headers in a nonstandard directory <include dir>
 
1303
  CPP         C preprocessor
 
1304
  CXX         C++ compiler command
 
1305
  CXXFLAGS    C++ compiler flags
 
1306
 
 
1307
Use these variables to override the choices made by `configure' or to help
 
1308
it to find libraries and programs with nonstandard names/locations.
 
1309
 
 
1310
Report bugs to the package provider.
 
1311
_ACEOF
 
1312
ac_status=$?
 
1313
fi
 
1314
 
 
1315
if test "$ac_init_help" = "recursive"; then
 
1316
  # If there are subdirs, report their specific --help.
 
1317
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1318
    test -d "$ac_dir" ||
 
1319
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1320
      continue
 
1321
    ac_builddir=.
 
1322
 
 
1323
case "$ac_dir" in
 
1324
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1325
*)
 
1326
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1327
  # A ".." for each directory in $ac_dir_suffix.
 
1328
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1329
  case $ac_top_builddir_sub in
 
1330
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1331
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1332
  esac ;;
 
1333
esac
 
1334
ac_abs_top_builddir=$ac_pwd
 
1335
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1336
# for backward compatibility:
 
1337
ac_top_builddir=$ac_top_build_prefix
 
1338
 
 
1339
case $srcdir in
 
1340
  .)  # We are building in place.
 
1341
    ac_srcdir=.
 
1342
    ac_top_srcdir=$ac_top_builddir_sub
 
1343
    ac_abs_top_srcdir=$ac_pwd ;;
 
1344
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1345
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1346
    ac_top_srcdir=$srcdir
 
1347
    ac_abs_top_srcdir=$srcdir ;;
 
1348
  *) # Relative name.
 
1349
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1350
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1351
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1352
esac
 
1353
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1354
 
 
1355
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1356
    # Check for guested configure.
 
1357
    if test -f "$ac_srcdir/configure.gnu"; then
 
1358
      echo &&
 
1359
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1360
    elif test -f "$ac_srcdir/configure"; then
 
1361
      echo &&
 
1362
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1363
    else
 
1364
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1365
    fi || ac_status=$?
 
1366
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1367
  done
 
1368
fi
 
1369
 
 
1370
test -n "$ac_init_help" && exit $ac_status
 
1371
if $ac_init_version; then
 
1372
  cat <<\_ACEOF
 
1373
Octave-Forge miscellaneous package configure 1.2.0+
 
1374
generated by GNU Autoconf 2.69
 
1375
 
 
1376
Copyright (C) 2012 Free Software Foundation, Inc.
 
1377
This configure script is free software; the Free Software Foundation
 
1378
gives unlimited permission to copy, distribute and modify it.
 
1379
_ACEOF
 
1380
  exit
 
1381
fi
 
1382
 
 
1383
## ------------------------ ##
 
1384
## Autoconf initialization. ##
 
1385
## ------------------------ ##
 
1386
 
 
1387
# ac_fn_c_try_compile LINENO
 
1388
# --------------------------
 
1389
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1390
ac_fn_c_try_compile ()
 
1391
{
 
1392
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1393
  rm -f conftest.$ac_objext
 
1394
  if { { ac_try="$ac_compile"
 
1395
case "(($ac_try" in
 
1396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1397
  *) ac_try_echo=$ac_try;;
 
1398
esac
 
1399
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1400
$as_echo "$ac_try_echo"; } >&5
 
1401
  (eval "$ac_compile") 2>conftest.err
 
1402
  ac_status=$?
 
1403
  if test -s conftest.err; then
 
1404
    grep -v '^ *+' conftest.err >conftest.er1
 
1405
    cat conftest.er1 >&5
 
1406
    mv -f conftest.er1 conftest.err
 
1407
  fi
 
1408
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1409
  test $ac_status = 0; } && {
 
1410
         test -z "$ac_c_werror_flag" ||
 
1411
         test ! -s conftest.err
 
1412
       } && test -s conftest.$ac_objext; then :
 
1413
  ac_retval=0
 
1414
else
 
1415
  $as_echo "$as_me: failed program was:" >&5
 
1416
sed 's/^/| /' conftest.$ac_ext >&5
 
1417
 
 
1418
        ac_retval=1
 
1419
fi
 
1420
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1421
  as_fn_set_status $ac_retval
 
1422
 
 
1423
} # ac_fn_c_try_compile
 
1424
 
 
1425
# ac_fn_c_try_cpp LINENO
 
1426
# ----------------------
 
1427
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1428
ac_fn_c_try_cpp ()
 
1429
{
 
1430
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1431
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1432
case "(($ac_try" in
 
1433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1434
  *) ac_try_echo=$ac_try;;
 
1435
esac
 
1436
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1437
$as_echo "$ac_try_echo"; } >&5
 
1438
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1439
  ac_status=$?
 
1440
  if test -s conftest.err; then
 
1441
    grep -v '^ *+' conftest.err >conftest.er1
 
1442
    cat conftest.er1 >&5
 
1443
    mv -f conftest.er1 conftest.err
 
1444
  fi
 
1445
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1446
  test $ac_status = 0; } > conftest.i && {
 
1447
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1448
         test ! -s conftest.err
 
1449
       }; then :
 
1450
  ac_retval=0
 
1451
else
 
1452
  $as_echo "$as_me: failed program was:" >&5
 
1453
sed 's/^/| /' conftest.$ac_ext >&5
 
1454
 
 
1455
    ac_retval=1
 
1456
fi
 
1457
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1458
  as_fn_set_status $ac_retval
 
1459
 
 
1460
} # ac_fn_c_try_cpp
 
1461
 
 
1462
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1463
# -------------------------------------------------------
 
1464
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1465
# the include files in INCLUDES and setting the cache variable VAR
 
1466
# accordingly.
 
1467
ac_fn_c_check_header_mongrel ()
 
1468
{
 
1469
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1470
  if eval \${$3+:} false; then :
 
1471
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1472
$as_echo_n "checking for $2... " >&6; }
 
1473
if eval \${$3+:} false; then :
 
1474
  $as_echo_n "(cached) " >&6
 
1475
fi
 
1476
eval ac_res=\$$3
 
1477
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1478
$as_echo "$ac_res" >&6; }
 
1479
else
 
1480
  # Is the header compilable?
 
1481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1482
$as_echo_n "checking $2 usability... " >&6; }
 
1483
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1484
/* end confdefs.h.  */
 
1485
$4
 
1486
#include <$2>
 
1487
_ACEOF
 
1488
if ac_fn_c_try_compile "$LINENO"; then :
 
1489
  ac_header_compiler=yes
 
1490
else
 
1491
  ac_header_compiler=no
 
1492
fi
 
1493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1495
$as_echo "$ac_header_compiler" >&6; }
 
1496
 
 
1497
# Is the header present?
 
1498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1499
$as_echo_n "checking $2 presence... " >&6; }
 
1500
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1501
/* end confdefs.h.  */
 
1502
#include <$2>
 
1503
_ACEOF
 
1504
if ac_fn_c_try_cpp "$LINENO"; then :
 
1505
  ac_header_preproc=yes
 
1506
else
 
1507
  ac_header_preproc=no
 
1508
fi
 
1509
rm -f conftest.err conftest.i conftest.$ac_ext
 
1510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1511
$as_echo "$ac_header_preproc" >&6; }
 
1512
 
 
1513
# So?  What about this header?
 
1514
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1515
  yes:no: )
 
1516
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1517
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1518
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1519
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1520
    ;;
 
1521
  no:yes:* )
 
1522
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1523
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1524
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1525
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1526
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1527
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1528
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1529
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1530
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1531
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1532
    ;;
 
1533
esac
 
1534
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1535
$as_echo_n "checking for $2... " >&6; }
 
1536
if eval \${$3+:} false; then :
 
1537
  $as_echo_n "(cached) " >&6
 
1538
else
 
1539
  eval "$3=\$ac_header_compiler"
 
1540
fi
 
1541
eval ac_res=\$$3
 
1542
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1543
$as_echo "$ac_res" >&6; }
 
1544
fi
 
1545
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1546
 
 
1547
} # ac_fn_c_check_header_mongrel
 
1548
 
 
1549
# ac_fn_c_try_run LINENO
 
1550
# ----------------------
 
1551
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1552
# that executables *can* be run.
 
1553
ac_fn_c_try_run ()
 
1554
{
 
1555
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1556
  if { { ac_try="$ac_link"
 
1557
case "(($ac_try" in
 
1558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1559
  *) ac_try_echo=$ac_try;;
 
1560
esac
 
1561
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1562
$as_echo "$ac_try_echo"; } >&5
 
1563
  (eval "$ac_link") 2>&5
 
1564
  ac_status=$?
 
1565
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1566
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1567
  { { case "(($ac_try" in
 
1568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1569
  *) ac_try_echo=$ac_try;;
 
1570
esac
 
1571
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1572
$as_echo "$ac_try_echo"; } >&5
 
1573
  (eval "$ac_try") 2>&5
 
1574
  ac_status=$?
 
1575
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1576
  test $ac_status = 0; }; }; then :
 
1577
  ac_retval=0
 
1578
else
 
1579
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1580
       $as_echo "$as_me: failed program was:" >&5
 
1581
sed 's/^/| /' conftest.$ac_ext >&5
 
1582
 
 
1583
       ac_retval=$ac_status
 
1584
fi
 
1585
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1586
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1587
  as_fn_set_status $ac_retval
 
1588
 
 
1589
} # ac_fn_c_try_run
 
1590
 
 
1591
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1592
# -------------------------------------------------------
 
1593
# Tests whether HEADER exists and can be compiled using the include files in
 
1594
# INCLUDES, setting the cache variable VAR accordingly.
 
1595
ac_fn_c_check_header_compile ()
 
1596
{
 
1597
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1598
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1599
$as_echo_n "checking for $2... " >&6; }
 
1600
if eval \${$3+:} false; then :
 
1601
  $as_echo_n "(cached) " >&6
 
1602
else
 
1603
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1604
/* end confdefs.h.  */
 
1605
$4
 
1606
#include <$2>
 
1607
_ACEOF
 
1608
if ac_fn_c_try_compile "$LINENO"; then :
 
1609
  eval "$3=yes"
 
1610
else
 
1611
  eval "$3=no"
 
1612
fi
 
1613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1614
fi
 
1615
eval ac_res=\$$3
 
1616
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1617
$as_echo "$ac_res" >&6; }
 
1618
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1619
 
 
1620
} # ac_fn_c_check_header_compile
 
1621
 
 
1622
# ac_fn_cxx_try_compile LINENO
 
1623
# ----------------------------
 
1624
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1625
ac_fn_cxx_try_compile ()
 
1626
{
 
1627
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1628
  rm -f conftest.$ac_objext
 
1629
  if { { ac_try="$ac_compile"
 
1630
case "(($ac_try" in
 
1631
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1632
  *) ac_try_echo=$ac_try;;
 
1633
esac
 
1634
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1635
$as_echo "$ac_try_echo"; } >&5
 
1636
  (eval "$ac_compile") 2>conftest.err
 
1637
  ac_status=$?
 
1638
  if test -s conftest.err; then
 
1639
    grep -v '^ *+' conftest.err >conftest.er1
 
1640
    cat conftest.er1 >&5
 
1641
    mv -f conftest.er1 conftest.err
 
1642
  fi
 
1643
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1644
  test $ac_status = 0; } && {
 
1645
         test -z "$ac_cxx_werror_flag" ||
 
1646
         test ! -s conftest.err
 
1647
       } && test -s conftest.$ac_objext; then :
 
1648
  ac_retval=0
 
1649
else
 
1650
  $as_echo "$as_me: failed program was:" >&5
 
1651
sed 's/^/| /' conftest.$ac_ext >&5
 
1652
 
 
1653
        ac_retval=1
 
1654
fi
 
1655
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1656
  as_fn_set_status $ac_retval
 
1657
 
 
1658
} # ac_fn_cxx_try_compile
 
1659
cat >config.log <<_ACEOF
 
1660
This file contains any messages produced by compilers while
 
1661
running configure, to aid debugging if configure makes a mistake.
 
1662
 
 
1663
It was created by Octave-Forge miscellaneous package $as_me 1.2.0+, which was
 
1664
generated by GNU Autoconf 2.69.  Invocation command line was
 
1665
 
 
1666
  $ $0 $@
 
1667
 
 
1668
_ACEOF
 
1669
exec 5>>config.log
 
1670
{
 
1671
cat <<_ASUNAME
 
1672
## --------- ##
 
1673
## Platform. ##
 
1674
## --------- ##
 
1675
 
 
1676
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1677
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1678
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1679
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1680
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1681
 
 
1682
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1683
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1684
 
 
1685
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1686
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1687
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1688
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1689
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1690
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1691
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1692
 
 
1693
_ASUNAME
 
1694
 
 
1695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1696
for as_dir in $PATH
 
1697
do
 
1698
  IFS=$as_save_IFS
 
1699
  test -z "$as_dir" && as_dir=.
 
1700
    $as_echo "PATH: $as_dir"
 
1701
  done
 
1702
IFS=$as_save_IFS
 
1703
 
 
1704
} >&5
 
1705
 
 
1706
cat >&5 <<_ACEOF
 
1707
 
 
1708
 
 
1709
## ----------- ##
 
1710
## Core tests. ##
 
1711
## ----------- ##
 
1712
 
 
1713
_ACEOF
 
1714
 
 
1715
 
 
1716
# Keep a trace of the command line.
 
1717
# Strip out --no-create and --no-recursion so they do not pile up.
 
1718
# Strip out --silent because we don't want to record it for future runs.
 
1719
# Also quote any args containing shell meta-characters.
 
1720
# Make two passes to allow for proper duplicate-argument suppression.
 
1721
ac_configure_args=
 
1722
ac_configure_args0=
 
1723
ac_configure_args1=
 
1724
ac_must_keep_next=false
 
1725
for ac_pass in 1 2
 
1726
do
 
1727
  for ac_arg
 
1728
  do
 
1729
    case $ac_arg in
 
1730
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1731
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1732
    | -silent | --silent | --silen | --sile | --sil)
 
1733
      continue ;;
 
1734
    *\'*)
 
1735
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1736
    esac
 
1737
    case $ac_pass in
 
1738
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1739
    2)
 
1740
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1741
      if test $ac_must_keep_next = true; then
 
1742
        ac_must_keep_next=false # Got value, back to normal.
 
1743
      else
 
1744
        case $ac_arg in
 
1745
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1746
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1747
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1748
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1749
            case "$ac_configure_args0 " in
 
1750
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1751
            esac
 
1752
            ;;
 
1753
          -* ) ac_must_keep_next=true ;;
 
1754
        esac
 
1755
      fi
 
1756
      as_fn_append ac_configure_args " '$ac_arg'"
 
1757
      ;;
 
1758
    esac
 
1759
  done
 
1760
done
 
1761
{ ac_configure_args0=; unset ac_configure_args0;}
 
1762
{ ac_configure_args1=; unset ac_configure_args1;}
 
1763
 
 
1764
# When interrupted or exit'd, cleanup temporary files, and complete
 
1765
# config.log.  We remove comments because anyway the quotes in there
 
1766
# would cause problems or look ugly.
 
1767
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1768
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1769
trap 'exit_status=$?
 
1770
  # Save into config.log some information that might help in debugging.
 
1771
  {
 
1772
    echo
 
1773
 
 
1774
    $as_echo "## ---------------- ##
 
1775
## Cache variables. ##
 
1776
## ---------------- ##"
 
1777
    echo
 
1778
    # The following way of writing the cache mishandles newlines in values,
 
1779
(
 
1780
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1781
    eval ac_val=\$$ac_var
 
1782
    case $ac_val in #(
 
1783
    *${as_nl}*)
 
1784
      case $ac_var in #(
 
1785
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1786
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1787
      esac
 
1788
      case $ac_var in #(
 
1789
      _ | IFS | as_nl) ;; #(
 
1790
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1791
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1792
      esac ;;
 
1793
    esac
 
1794
  done
 
1795
  (set) 2>&1 |
 
1796
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1797
    *${as_nl}ac_space=\ *)
 
1798
      sed -n \
 
1799
        "s/'\''/'\''\\\\'\'''\''/g;
 
1800
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1801
      ;; #(
 
1802
    *)
 
1803
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1804
      ;;
 
1805
    esac |
 
1806
    sort
 
1807
)
 
1808
    echo
 
1809
 
 
1810
    $as_echo "## ----------------- ##
 
1811
## Output variables. ##
 
1812
## ----------------- ##"
 
1813
    echo
 
1814
    for ac_var in $ac_subst_vars
 
1815
    do
 
1816
      eval ac_val=\$$ac_var
 
1817
      case $ac_val in
 
1818
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1819
      esac
 
1820
      $as_echo "$ac_var='\''$ac_val'\''"
 
1821
    done | sort
 
1822
    echo
 
1823
 
 
1824
    if test -n "$ac_subst_files"; then
 
1825
      $as_echo "## ------------------- ##
 
1826
## File substitutions. ##
 
1827
## ------------------- ##"
 
1828
      echo
 
1829
      for ac_var in $ac_subst_files
 
1830
      do
 
1831
        eval ac_val=\$$ac_var
 
1832
        case $ac_val in
 
1833
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1834
        esac
 
1835
        $as_echo "$ac_var='\''$ac_val'\''"
 
1836
      done | sort
 
1837
      echo
 
1838
    fi
 
1839
 
 
1840
    if test -s confdefs.h; then
 
1841
      $as_echo "## ----------- ##
 
1842
## confdefs.h. ##
 
1843
## ----------- ##"
 
1844
      echo
 
1845
      cat confdefs.h
 
1846
      echo
 
1847
    fi
 
1848
    test "$ac_signal" != 0 &&
 
1849
      $as_echo "$as_me: caught signal $ac_signal"
 
1850
    $as_echo "$as_me: exit $exit_status"
 
1851
  } >&5
 
1852
  rm -f core *.core core.conftest.* &&
 
1853
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1854
    exit $exit_status
 
1855
' 0
 
1856
for ac_signal in 1 2 13 15; do
 
1857
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
1858
done
 
1859
ac_signal=0
 
1860
 
 
1861
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1862
rm -f -r conftest* confdefs.h
 
1863
 
 
1864
$as_echo "/* confdefs.h */" > confdefs.h
 
1865
 
 
1866
# Predefined preprocessor variables.
 
1867
 
 
1868
cat >>confdefs.h <<_ACEOF
 
1869
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1870
_ACEOF
 
1871
 
 
1872
cat >>confdefs.h <<_ACEOF
 
1873
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1874
_ACEOF
 
1875
 
 
1876
cat >>confdefs.h <<_ACEOF
 
1877
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1878
_ACEOF
 
1879
 
 
1880
cat >>confdefs.h <<_ACEOF
 
1881
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1882
_ACEOF
 
1883
 
 
1884
cat >>confdefs.h <<_ACEOF
 
1885
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1886
_ACEOF
 
1887
 
 
1888
cat >>confdefs.h <<_ACEOF
 
1889
#define PACKAGE_URL "$PACKAGE_URL"
 
1890
_ACEOF
 
1891
 
 
1892
 
 
1893
# Let the site file select an alternate cache file if it wants to.
 
1894
# Prefer an explicitly selected file to automatically selected ones.
 
1895
ac_site_file1=NONE
 
1896
ac_site_file2=NONE
 
1897
if test -n "$CONFIG_SITE"; then
 
1898
  # We do not want a PATH search for config.site.
 
1899
  case $CONFIG_SITE in #((
 
1900
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
1901
    */*) ac_site_file1=$CONFIG_SITE;;
 
1902
    *)   ac_site_file1=./$CONFIG_SITE;;
 
1903
  esac
 
1904
elif test "x$prefix" != xNONE; then
 
1905
  ac_site_file1=$prefix/share/config.site
 
1906
  ac_site_file2=$prefix/etc/config.site
 
1907
else
 
1908
  ac_site_file1=$ac_default_prefix/share/config.site
 
1909
  ac_site_file2=$ac_default_prefix/etc/config.site
 
1910
fi
 
1911
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
1912
do
 
1913
  test "x$ac_site_file" = xNONE && continue
 
1914
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
1915
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
1916
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
1917
    sed 's/^/| /' "$ac_site_file" >&5
 
1918
    . "$ac_site_file" \
 
1919
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
1920
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
1921
as_fn_error $? "failed to load site script $ac_site_file
 
1922
See \`config.log' for more details" "$LINENO" 5; }
 
1923
  fi
 
1924
done
 
1925
 
 
1926
if test -r "$cache_file"; then
 
1927
  # Some versions of bash will fail to source /dev/null (special files
 
1928
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
1929
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
1930
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
1931
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
1932
    case $cache_file in
 
1933
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1934
      *)                      . "./$cache_file";;
 
1935
    esac
 
1936
  fi
 
1937
else
 
1938
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
1939
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
1940
  >$cache_file
 
1941
fi
 
1942
 
 
1943
# Check that the precious variables saved in the cache have kept the same
 
1944
# value.
 
1945
ac_cache_corrupted=false
 
1946
for ac_var in $ac_precious_vars; do
 
1947
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1948
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1949
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1950
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1951
  case $ac_old_set,$ac_new_set in
 
1952
    set,)
 
1953
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1954
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1955
      ac_cache_corrupted=: ;;
 
1956
    ,set)
 
1957
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
1958
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1959
      ac_cache_corrupted=: ;;
 
1960
    ,);;
 
1961
    *)
 
1962
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1963
        # differences in whitespace do not lead to failure.
 
1964
        ac_old_val_w=`echo x $ac_old_val`
 
1965
        ac_new_val_w=`echo x $ac_new_val`
 
1966
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
1967
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
1968
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1969
          ac_cache_corrupted=:
 
1970
        else
 
1971
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
1972
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
1973
          eval $ac_var=\$ac_old_val
 
1974
        fi
 
1975
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
1976
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
1977
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
1978
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
1979
      fi;;
 
1980
  esac
 
1981
  # Pass precious variables to config.status.
 
1982
  if test "$ac_new_set" = set; then
 
1983
    case $ac_new_val in
 
1984
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1985
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1986
    esac
 
1987
    case " $ac_configure_args " in
 
1988
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1989
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
1990
    esac
 
1991
  fi
 
1992
done
 
1993
if $ac_cache_corrupted; then
 
1994
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
1995
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
1996
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
1997
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1998
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
1999
fi
 
2000
## -------------------- ##
 
2001
## Main body of script. ##
 
2002
## -------------------- ##
 
2003
 
 
2004
ac_ext=c
 
2005
ac_cpp='$CPP $CPPFLAGS'
 
2006
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2007
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2008
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2009
 
 
2010
 
 
2011
 
 
2012
## these are C headers required for text_waitbar
 
2013
ac_ext=c
 
2014
ac_cpp='$CPP $CPPFLAGS'
 
2015
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2016
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2017
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2018
if test -n "$ac_tool_prefix"; then
 
2019
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2020
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2022
$as_echo_n "checking for $ac_word... " >&6; }
 
2023
if ${ac_cv_prog_CC+:} false; then :
 
2024
  $as_echo_n "(cached) " >&6
 
2025
else
 
2026
  if test -n "$CC"; then
 
2027
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2028
else
 
2029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2030
for as_dir in $PATH
 
2031
do
 
2032
  IFS=$as_save_IFS
 
2033
  test -z "$as_dir" && as_dir=.
 
2034
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2035
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2036
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2037
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2038
    break 2
 
2039
  fi
 
2040
done
 
2041
  done
 
2042
IFS=$as_save_IFS
 
2043
 
 
2044
fi
 
2045
fi
 
2046
CC=$ac_cv_prog_CC
 
2047
if test -n "$CC"; then
 
2048
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2049
$as_echo "$CC" >&6; }
 
2050
else
 
2051
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2052
$as_echo "no" >&6; }
 
2053
fi
 
2054
 
 
2055
 
 
2056
fi
 
2057
if test -z "$ac_cv_prog_CC"; then
 
2058
  ac_ct_CC=$CC
 
2059
  # Extract the first word of "gcc", so it can be a program name with args.
 
2060
set dummy gcc; ac_word=$2
 
2061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2062
$as_echo_n "checking for $ac_word... " >&6; }
 
2063
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2064
  $as_echo_n "(cached) " >&6
 
2065
else
 
2066
  if test -n "$ac_ct_CC"; then
 
2067
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2068
else
 
2069
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2070
for as_dir in $PATH
 
2071
do
 
2072
  IFS=$as_save_IFS
 
2073
  test -z "$as_dir" && as_dir=.
 
2074
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2075
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2076
    ac_cv_prog_ac_ct_CC="gcc"
 
2077
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2078
    break 2
 
2079
  fi
 
2080
done
 
2081
  done
 
2082
IFS=$as_save_IFS
 
2083
 
 
2084
fi
 
2085
fi
 
2086
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2087
if test -n "$ac_ct_CC"; then
 
2088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2089
$as_echo "$ac_ct_CC" >&6; }
 
2090
else
 
2091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2092
$as_echo "no" >&6; }
 
2093
fi
 
2094
 
 
2095
  if test "x$ac_ct_CC" = x; then
 
2096
    CC=""
 
2097
  else
 
2098
    case $cross_compiling:$ac_tool_warned in
 
2099
yes:)
 
2100
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2101
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2102
ac_tool_warned=yes ;;
 
2103
esac
 
2104
    CC=$ac_ct_CC
 
2105
  fi
 
2106
else
 
2107
  CC="$ac_cv_prog_CC"
 
2108
fi
 
2109
 
 
2110
if test -z "$CC"; then
 
2111
          if test -n "$ac_tool_prefix"; then
 
2112
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2113
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2115
$as_echo_n "checking for $ac_word... " >&6; }
 
2116
if ${ac_cv_prog_CC+:} false; then :
 
2117
  $as_echo_n "(cached) " >&6
 
2118
else
 
2119
  if test -n "$CC"; then
 
2120
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2121
else
 
2122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2123
for as_dir in $PATH
 
2124
do
 
2125
  IFS=$as_save_IFS
 
2126
  test -z "$as_dir" && as_dir=.
 
2127
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2128
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2129
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2130
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2131
    break 2
 
2132
  fi
 
2133
done
 
2134
  done
 
2135
IFS=$as_save_IFS
 
2136
 
 
2137
fi
 
2138
fi
 
2139
CC=$ac_cv_prog_CC
 
2140
if test -n "$CC"; then
 
2141
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2142
$as_echo "$CC" >&6; }
 
2143
else
 
2144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2145
$as_echo "no" >&6; }
 
2146
fi
 
2147
 
 
2148
 
 
2149
  fi
 
2150
fi
 
2151
if test -z "$CC"; then
 
2152
  # Extract the first word of "cc", so it can be a program name with args.
 
2153
set dummy cc; ac_word=$2
 
2154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2155
$as_echo_n "checking for $ac_word... " >&6; }
 
2156
if ${ac_cv_prog_CC+:} false; then :
 
2157
  $as_echo_n "(cached) " >&6
 
2158
else
 
2159
  if test -n "$CC"; then
 
2160
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2161
else
 
2162
  ac_prog_rejected=no
 
2163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2164
for as_dir in $PATH
 
2165
do
 
2166
  IFS=$as_save_IFS
 
2167
  test -z "$as_dir" && as_dir=.
 
2168
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2169
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2170
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2171
       ac_prog_rejected=yes
 
2172
       continue
 
2173
     fi
 
2174
    ac_cv_prog_CC="cc"
 
2175
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2176
    break 2
 
2177
  fi
 
2178
done
 
2179
  done
 
2180
IFS=$as_save_IFS
 
2181
 
 
2182
if test $ac_prog_rejected = yes; then
 
2183
  # We found a bogon in the path, so make sure we never use it.
 
2184
  set dummy $ac_cv_prog_CC
 
2185
  shift
 
2186
  if test $# != 0; then
 
2187
    # We chose a different compiler from the bogus one.
 
2188
    # However, it has the same basename, so the bogon will be chosen
 
2189
    # first if we set CC to just the basename; use the full file name.
 
2190
    shift
 
2191
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2192
  fi
 
2193
fi
 
2194
fi
 
2195
fi
 
2196
CC=$ac_cv_prog_CC
 
2197
if test -n "$CC"; then
 
2198
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2199
$as_echo "$CC" >&6; }
 
2200
else
 
2201
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2202
$as_echo "no" >&6; }
 
2203
fi
 
2204
 
 
2205
 
 
2206
fi
 
2207
if test -z "$CC"; then
 
2208
  if test -n "$ac_tool_prefix"; then
 
2209
  for ac_prog in cl.exe
 
2210
  do
 
2211
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2212
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2214
$as_echo_n "checking for $ac_word... " >&6; }
 
2215
if ${ac_cv_prog_CC+:} false; then :
 
2216
  $as_echo_n "(cached) " >&6
 
2217
else
 
2218
  if test -n "$CC"; then
 
2219
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2220
else
 
2221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2222
for as_dir in $PATH
 
2223
do
 
2224
  IFS=$as_save_IFS
 
2225
  test -z "$as_dir" && as_dir=.
 
2226
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2227
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2228
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2229
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2230
    break 2
 
2231
  fi
 
2232
done
 
2233
  done
 
2234
IFS=$as_save_IFS
 
2235
 
 
2236
fi
 
2237
fi
 
2238
CC=$ac_cv_prog_CC
 
2239
if test -n "$CC"; then
 
2240
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2241
$as_echo "$CC" >&6; }
 
2242
else
 
2243
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2244
$as_echo "no" >&6; }
 
2245
fi
 
2246
 
 
2247
 
 
2248
    test -n "$CC" && break
 
2249
  done
 
2250
fi
 
2251
if test -z "$CC"; then
 
2252
  ac_ct_CC=$CC
 
2253
  for ac_prog in cl.exe
 
2254
do
 
2255
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2256
set dummy $ac_prog; ac_word=$2
 
2257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2258
$as_echo_n "checking for $ac_word... " >&6; }
 
2259
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2260
  $as_echo_n "(cached) " >&6
 
2261
else
 
2262
  if test -n "$ac_ct_CC"; then
 
2263
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2264
else
 
2265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2266
for as_dir in $PATH
 
2267
do
 
2268
  IFS=$as_save_IFS
 
2269
  test -z "$as_dir" && as_dir=.
 
2270
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2271
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2272
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2273
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2274
    break 2
 
2275
  fi
 
2276
done
 
2277
  done
 
2278
IFS=$as_save_IFS
 
2279
 
 
2280
fi
 
2281
fi
 
2282
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2283
if test -n "$ac_ct_CC"; then
 
2284
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2285
$as_echo "$ac_ct_CC" >&6; }
 
2286
else
 
2287
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2288
$as_echo "no" >&6; }
 
2289
fi
 
2290
 
 
2291
 
 
2292
  test -n "$ac_ct_CC" && break
 
2293
done
 
2294
 
 
2295
  if test "x$ac_ct_CC" = x; then
 
2296
    CC=""
 
2297
  else
 
2298
    case $cross_compiling:$ac_tool_warned in
 
2299
yes:)
 
2300
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2301
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2302
ac_tool_warned=yes ;;
 
2303
esac
 
2304
    CC=$ac_ct_CC
 
2305
  fi
 
2306
fi
 
2307
 
 
2308
fi
 
2309
 
 
2310
 
 
2311
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2312
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2313
as_fn_error $? "no acceptable C compiler found in \$PATH
 
2314
See \`config.log' for more details" "$LINENO" 5; }
 
2315
 
 
2316
# Provide some information about the compiler.
 
2317
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
2318
set X $ac_compile
 
2319
ac_compiler=$2
 
2320
for ac_option in --version -v -V -qversion; do
 
2321
  { { ac_try="$ac_compiler $ac_option >&5"
 
2322
case "(($ac_try" in
 
2323
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2324
  *) ac_try_echo=$ac_try;;
 
2325
esac
 
2326
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2327
$as_echo "$ac_try_echo"; } >&5
 
2328
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
2329
  ac_status=$?
 
2330
  if test -s conftest.err; then
 
2331
    sed '10a\
 
2332
... rest of stderr output deleted ...
 
2333
         10q' conftest.err >conftest.er1
 
2334
    cat conftest.er1 >&5
 
2335
  fi
 
2336
  rm -f conftest.er1 conftest.err
 
2337
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2338
  test $ac_status = 0; }
 
2339
done
 
2340
 
 
2341
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2342
/* end confdefs.h.  */
 
2343
 
 
2344
int
 
2345
main ()
 
2346
{
 
2347
 
 
2348
  ;
 
2349
  return 0;
 
2350
}
 
2351
_ACEOF
 
2352
ac_clean_files_save=$ac_clean_files
 
2353
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
2354
# Try to create an executable without -o first, disregard a.out.
 
2355
# It will help us diagnose broken compilers, and finding out an intuition
 
2356
# of exeext.
 
2357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
2358
$as_echo_n "checking whether the C compiler works... " >&6; }
 
2359
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2360
 
 
2361
# The possible output files:
 
2362
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2363
 
 
2364
ac_rmfiles=
 
2365
for ac_file in $ac_files
 
2366
do
 
2367
  case $ac_file in
 
2368
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2369
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2370
  esac
 
2371
done
 
2372
rm -f $ac_rmfiles
 
2373
 
 
2374
if { { ac_try="$ac_link_default"
 
2375
case "(($ac_try" in
 
2376
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2377
  *) ac_try_echo=$ac_try;;
 
2378
esac
 
2379
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2380
$as_echo "$ac_try_echo"; } >&5
 
2381
  (eval "$ac_link_default") 2>&5
 
2382
  ac_status=$?
 
2383
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2384
  test $ac_status = 0; }; then :
 
2385
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2386
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2387
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2388
# so that the user can short-circuit this test for compilers unknown to
 
2389
# Autoconf.
 
2390
for ac_file in $ac_files ''
 
2391
do
 
2392
  test -f "$ac_file" || continue
 
2393
  case $ac_file in
 
2394
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
2395
        ;;
 
2396
    [ab].out )
 
2397
        # We found the default executable, but exeext='' is most
 
2398
        # certainly right.
 
2399
        break;;
 
2400
    *.* )
 
2401
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2402
        then :; else
 
2403
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2404
        fi
 
2405
        # We set ac_cv_exeext here because the later test for it is not
 
2406
        # safe: cross compilers may not add the suffix if given an `-o'
 
2407
        # argument, so we may need to know it at that point already.
 
2408
        # Even if this section looks crufty: it has the advantage of
 
2409
        # actually working.
 
2410
        break;;
 
2411
    * )
 
2412
        break;;
 
2413
  esac
 
2414
done
 
2415
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2416
 
 
2417
else
 
2418
  ac_file=''
 
2419
fi
 
2420
if test -z "$ac_file"; then :
 
2421
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2422
$as_echo "no" >&6; }
 
2423
$as_echo "$as_me: failed program was:" >&5
 
2424
sed 's/^/| /' conftest.$ac_ext >&5
 
2425
 
 
2426
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2427
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2428
as_fn_error 77 "C compiler cannot create executables
 
2429
See \`config.log' for more details" "$LINENO" 5; }
 
2430
else
 
2431
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2432
$as_echo "yes" >&6; }
 
2433
fi
 
2434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
2435
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
2436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
2437
$as_echo "$ac_file" >&6; }
 
2438
ac_exeext=$ac_cv_exeext
 
2439
 
 
2440
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
2441
ac_clean_files=$ac_clean_files_save
 
2442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
2443
$as_echo_n "checking for suffix of executables... " >&6; }
 
2444
if { { ac_try="$ac_link"
 
2445
case "(($ac_try" in
 
2446
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2447
  *) ac_try_echo=$ac_try;;
 
2448
esac
 
2449
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2450
$as_echo "$ac_try_echo"; } >&5
 
2451
  (eval "$ac_link") 2>&5
 
2452
  ac_status=$?
 
2453
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2454
  test $ac_status = 0; }; then :
 
2455
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2456
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2457
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2458
# `rm'.
 
2459
for ac_file in conftest.exe conftest conftest.*; do
 
2460
  test -f "$ac_file" || continue
 
2461
  case $ac_file in
 
2462
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2463
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2464
          break;;
 
2465
    * ) break;;
 
2466
  esac
 
2467
done
 
2468
else
 
2469
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2470
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2471
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
2472
See \`config.log' for more details" "$LINENO" 5; }
 
2473
fi
 
2474
rm -f conftest conftest$ac_cv_exeext
 
2475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
2476
$as_echo "$ac_cv_exeext" >&6; }
 
2477
 
 
2478
rm -f conftest.$ac_ext
 
2479
EXEEXT=$ac_cv_exeext
 
2480
ac_exeext=$EXEEXT
 
2481
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2482
/* end confdefs.h.  */
 
2483
#include <stdio.h>
 
2484
int
 
2485
main ()
 
2486
{
 
2487
FILE *f = fopen ("conftest.out", "w");
 
2488
 return ferror (f) || fclose (f) != 0;
 
2489
 
 
2490
  ;
 
2491
  return 0;
 
2492
}
 
2493
_ACEOF
 
2494
ac_clean_files="$ac_clean_files conftest.out"
 
2495
# Check that the compiler produces executables we can run.  If not, either
 
2496
# the compiler is broken, or we cross compile.
 
2497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
2498
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
2499
if test "$cross_compiling" != yes; then
 
2500
  { { ac_try="$ac_link"
 
2501
case "(($ac_try" in
 
2502
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2503
  *) ac_try_echo=$ac_try;;
 
2504
esac
 
2505
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2506
$as_echo "$ac_try_echo"; } >&5
 
2507
  (eval "$ac_link") 2>&5
 
2508
  ac_status=$?
 
2509
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2510
  test $ac_status = 0; }
 
2511
  if { ac_try='./conftest$ac_cv_exeext'
 
2512
  { { case "(($ac_try" in
 
2513
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2514
  *) ac_try_echo=$ac_try;;
 
2515
esac
 
2516
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2517
$as_echo "$ac_try_echo"; } >&5
 
2518
  (eval "$ac_try") 2>&5
 
2519
  ac_status=$?
 
2520
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2521
  test $ac_status = 0; }; }; then
 
2522
    cross_compiling=no
 
2523
  else
 
2524
    if test "$cross_compiling" = maybe; then
 
2525
        cross_compiling=yes
 
2526
    else
 
2527
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2528
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2529
as_fn_error $? "cannot run C compiled programs.
 
2530
If you meant to cross compile, use \`--host'.
 
2531
See \`config.log' for more details" "$LINENO" 5; }
 
2532
    fi
 
2533
  fi
 
2534
fi
 
2535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
2536
$as_echo "$cross_compiling" >&6; }
 
2537
 
 
2538
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
2539
ac_clean_files=$ac_clean_files_save
 
2540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
2541
$as_echo_n "checking for suffix of object files... " >&6; }
 
2542
if ${ac_cv_objext+:} false; then :
 
2543
  $as_echo_n "(cached) " >&6
 
2544
else
 
2545
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2546
/* end confdefs.h.  */
 
2547
 
 
2548
int
 
2549
main ()
 
2550
{
 
2551
 
 
2552
  ;
 
2553
  return 0;
 
2554
}
 
2555
_ACEOF
 
2556
rm -f conftest.o conftest.obj
 
2557
if { { ac_try="$ac_compile"
 
2558
case "(($ac_try" in
 
2559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2560
  *) ac_try_echo=$ac_try;;
 
2561
esac
 
2562
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2563
$as_echo "$ac_try_echo"; } >&5
 
2564
  (eval "$ac_compile") 2>&5
 
2565
  ac_status=$?
 
2566
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2567
  test $ac_status = 0; }; then :
 
2568
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2569
  test -f "$ac_file" || continue;
 
2570
  case $ac_file in
 
2571
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
2572
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2573
       break;;
 
2574
  esac
 
2575
done
 
2576
else
 
2577
  $as_echo "$as_me: failed program was:" >&5
 
2578
sed 's/^/| /' conftest.$ac_ext >&5
 
2579
 
 
2580
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2581
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2582
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
2583
See \`config.log' for more details" "$LINENO" 5; }
 
2584
fi
 
2585
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2586
fi
 
2587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
2588
$as_echo "$ac_cv_objext" >&6; }
 
2589
OBJEXT=$ac_cv_objext
 
2590
ac_objext=$OBJEXT
 
2591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
2592
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
2593
if ${ac_cv_c_compiler_gnu+:} false; then :
 
2594
  $as_echo_n "(cached) " >&6
 
2595
else
 
2596
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2597
/* end confdefs.h.  */
 
2598
 
 
2599
int
 
2600
main ()
 
2601
{
 
2602
#ifndef __GNUC__
 
2603
       choke me
 
2604
#endif
 
2605
 
 
2606
  ;
 
2607
  return 0;
 
2608
}
 
2609
_ACEOF
 
2610
if ac_fn_c_try_compile "$LINENO"; then :
 
2611
  ac_compiler_gnu=yes
 
2612
else
 
2613
  ac_compiler_gnu=no
 
2614
fi
 
2615
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2616
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2617
 
 
2618
fi
 
2619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
2620
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
2621
if test $ac_compiler_gnu = yes; then
 
2622
  GCC=yes
 
2623
else
 
2624
  GCC=
 
2625
fi
 
2626
ac_test_CFLAGS=${CFLAGS+set}
 
2627
ac_save_CFLAGS=$CFLAGS
 
2628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
2629
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
2630
if ${ac_cv_prog_cc_g+:} false; then :
 
2631
  $as_echo_n "(cached) " >&6
 
2632
else
 
2633
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2634
   ac_c_werror_flag=yes
 
2635
   ac_cv_prog_cc_g=no
 
2636
   CFLAGS="-g"
 
2637
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2638
/* end confdefs.h.  */
 
2639
 
 
2640
int
 
2641
main ()
 
2642
{
 
2643
 
 
2644
  ;
 
2645
  return 0;
 
2646
}
 
2647
_ACEOF
 
2648
if ac_fn_c_try_compile "$LINENO"; then :
 
2649
  ac_cv_prog_cc_g=yes
 
2650
else
 
2651
  CFLAGS=""
 
2652
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2653
/* end confdefs.h.  */
 
2654
 
 
2655
int
 
2656
main ()
 
2657
{
 
2658
 
 
2659
  ;
 
2660
  return 0;
 
2661
}
 
2662
_ACEOF
 
2663
if ac_fn_c_try_compile "$LINENO"; then :
 
2664
 
 
2665
else
 
2666
  ac_c_werror_flag=$ac_save_c_werror_flag
 
2667
         CFLAGS="-g"
 
2668
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2669
/* end confdefs.h.  */
 
2670
 
 
2671
int
 
2672
main ()
 
2673
{
 
2674
 
 
2675
  ;
 
2676
  return 0;
 
2677
}
 
2678
_ACEOF
 
2679
if ac_fn_c_try_compile "$LINENO"; then :
 
2680
  ac_cv_prog_cc_g=yes
 
2681
fi
 
2682
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2683
fi
 
2684
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2685
fi
 
2686
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2687
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2688
fi
 
2689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
2690
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
2691
if test "$ac_test_CFLAGS" = set; then
 
2692
  CFLAGS=$ac_save_CFLAGS
 
2693
elif test $ac_cv_prog_cc_g = yes; then
 
2694
  if test "$GCC" = yes; then
 
2695
    CFLAGS="-g -O2"
 
2696
  else
 
2697
    CFLAGS="-g"
 
2698
  fi
 
2699
else
 
2700
  if test "$GCC" = yes; then
 
2701
    CFLAGS="-O2"
 
2702
  else
 
2703
    CFLAGS=
 
2704
  fi
 
2705
fi
 
2706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
2707
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
2708
if ${ac_cv_prog_cc_c89+:} false; then :
 
2709
  $as_echo_n "(cached) " >&6
 
2710
else
 
2711
  ac_cv_prog_cc_c89=no
 
2712
ac_save_CC=$CC
 
2713
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2714
/* end confdefs.h.  */
 
2715
#include <stdarg.h>
 
2716
#include <stdio.h>
 
2717
struct stat;
 
2718
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2719
struct buf { int x; };
 
2720
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2721
static char *e (p, i)
 
2722
     char **p;
 
2723
     int i;
 
2724
{
 
2725
  return p[i];
 
2726
}
 
2727
static char *f (char * (*g) (char **, int), char **p, ...)
 
2728
{
 
2729
  char *s;
 
2730
  va_list v;
 
2731
  va_start (v,p);
 
2732
  s = g (p, va_arg (v,int));
 
2733
  va_end (v);
 
2734
  return s;
 
2735
}
 
2736
 
 
2737
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2738
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2739
   These don't provoke an error unfortunately, instead are silently treated
 
2740
   as 'x'.  The following induces an error, until -std is added to get
 
2741
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2742
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2743
   that's true only with -std.  */
 
2744
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2745
 
 
2746
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2747
   inside strings and character constants.  */
 
2748
#define FOO(x) 'x'
 
2749
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2750
 
 
2751
int test (int i, double x);
 
2752
struct s1 {int (*f) (int a);};
 
2753
struct s2 {int (*f) (double a);};
 
2754
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2755
int argc;
 
2756
char **argv;
 
2757
int
 
2758
main ()
 
2759
{
 
2760
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2761
  ;
 
2762
  return 0;
 
2763
}
 
2764
_ACEOF
 
2765
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2766
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2767
do
 
2768
  CC="$ac_save_CC $ac_arg"
 
2769
  if ac_fn_c_try_compile "$LINENO"; then :
 
2770
  ac_cv_prog_cc_c89=$ac_arg
 
2771
fi
 
2772
rm -f core conftest.err conftest.$ac_objext
 
2773
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
2774
done
 
2775
rm -f conftest.$ac_ext
 
2776
CC=$ac_save_CC
 
2777
 
 
2778
fi
 
2779
# AC_CACHE_VAL
 
2780
case "x$ac_cv_prog_cc_c89" in
 
2781
  x)
 
2782
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
2783
$as_echo "none needed" >&6; } ;;
 
2784
  xno)
 
2785
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
2786
$as_echo "unsupported" >&6; } ;;
 
2787
  *)
 
2788
    CC="$CC $ac_cv_prog_cc_c89"
 
2789
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
2790
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
2791
esac
 
2792
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
2793
 
 
2794
fi
 
2795
 
 
2796
ac_ext=c
 
2797
ac_cpp='$CPP $CPPFLAGS'
 
2798
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2799
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2800
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2801
 
 
2802
 
 
2803
ac_ext=c
 
2804
ac_cpp='$CPP $CPPFLAGS'
 
2805
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2806
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2807
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
2809
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
2810
# On Suns, sometimes $CPP names a directory.
 
2811
if test -n "$CPP" && test -d "$CPP"; then
 
2812
  CPP=
 
2813
fi
 
2814
if test -z "$CPP"; then
 
2815
  if ${ac_cv_prog_CPP+:} false; then :
 
2816
  $as_echo_n "(cached) " >&6
 
2817
else
 
2818
      # Double quotes because CPP needs to be expanded
 
2819
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2820
    do
 
2821
      ac_preproc_ok=false
 
2822
for ac_c_preproc_warn_flag in '' yes
 
2823
do
 
2824
  # Use a header file that comes with gcc, so configuring glibc
 
2825
  # with a fresh cross-compiler works.
 
2826
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2827
  # <limits.h> exists even on freestanding compilers.
 
2828
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2829
  # not just through cpp. "Syntax error" is here to catch this case.
 
2830
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2831
/* end confdefs.h.  */
 
2832
#ifdef __STDC__
 
2833
# include <limits.h>
 
2834
#else
 
2835
# include <assert.h>
 
2836
#endif
 
2837
                     Syntax error
 
2838
_ACEOF
 
2839
if ac_fn_c_try_cpp "$LINENO"; then :
 
2840
 
 
2841
else
 
2842
  # Broken: fails on valid input.
 
2843
continue
 
2844
fi
 
2845
rm -f conftest.err conftest.i conftest.$ac_ext
 
2846
 
 
2847
  # OK, works on sane cases.  Now check whether nonexistent headers
 
2848
  # can be detected and how.
 
2849
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2850
/* end confdefs.h.  */
 
2851
#include <ac_nonexistent.h>
 
2852
_ACEOF
 
2853
if ac_fn_c_try_cpp "$LINENO"; then :
 
2854
  # Broken: success on invalid input.
 
2855
continue
 
2856
else
 
2857
  # Passes both tests.
 
2858
ac_preproc_ok=:
 
2859
break
 
2860
fi
 
2861
rm -f conftest.err conftest.i conftest.$ac_ext
 
2862
 
 
2863
done
 
2864
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2865
rm -f conftest.i conftest.err conftest.$ac_ext
 
2866
if $ac_preproc_ok; then :
 
2867
  break
 
2868
fi
 
2869
 
 
2870
    done
 
2871
    ac_cv_prog_CPP=$CPP
 
2872
 
 
2873
fi
 
2874
  CPP=$ac_cv_prog_CPP
 
2875
else
 
2876
  ac_cv_prog_CPP=$CPP
 
2877
fi
 
2878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
2879
$as_echo "$CPP" >&6; }
 
2880
ac_preproc_ok=false
 
2881
for ac_c_preproc_warn_flag in '' yes
 
2882
do
 
2883
  # Use a header file that comes with gcc, so configuring glibc
 
2884
  # with a fresh cross-compiler works.
 
2885
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2886
  # <limits.h> exists even on freestanding compilers.
 
2887
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2888
  # not just through cpp. "Syntax error" is here to catch this case.
 
2889
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2890
/* end confdefs.h.  */
 
2891
#ifdef __STDC__
 
2892
# include <limits.h>
 
2893
#else
 
2894
# include <assert.h>
 
2895
#endif
 
2896
                     Syntax error
 
2897
_ACEOF
 
2898
if ac_fn_c_try_cpp "$LINENO"; then :
 
2899
 
 
2900
else
 
2901
  # Broken: fails on valid input.
 
2902
continue
 
2903
fi
 
2904
rm -f conftest.err conftest.i conftest.$ac_ext
 
2905
 
 
2906
  # OK, works on sane cases.  Now check whether nonexistent headers
 
2907
  # can be detected and how.
 
2908
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2909
/* end confdefs.h.  */
 
2910
#include <ac_nonexistent.h>
 
2911
_ACEOF
 
2912
if ac_fn_c_try_cpp "$LINENO"; then :
 
2913
  # Broken: success on invalid input.
 
2914
continue
 
2915
else
 
2916
  # Passes both tests.
 
2917
ac_preproc_ok=:
 
2918
break
 
2919
fi
 
2920
rm -f conftest.err conftest.i conftest.$ac_ext
 
2921
 
 
2922
done
 
2923
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2924
rm -f conftest.i conftest.err conftest.$ac_ext
 
2925
if $ac_preproc_ok; then :
 
2926
 
 
2927
else
 
2928
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2929
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2930
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
2931
See \`config.log' for more details" "$LINENO" 5; }
 
2932
fi
 
2933
 
 
2934
ac_ext=c
 
2935
ac_cpp='$CPP $CPPFLAGS'
 
2936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2939
 
 
2940
 
 
2941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
2942
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
2943
if ${ac_cv_path_GREP+:} false; then :
 
2944
  $as_echo_n "(cached) " >&6
 
2945
else
 
2946
  if test -z "$GREP"; then
 
2947
  ac_path_GREP_found=false
 
2948
  # Loop through the user's path and test for each of PROGNAME-LIST
 
2949
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2950
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
2951
do
 
2952
  IFS=$as_save_IFS
 
2953
  test -z "$as_dir" && as_dir=.
 
2954
    for ac_prog in grep ggrep; do
 
2955
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2956
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
2957
      as_fn_executable_p "$ac_path_GREP" || continue
 
2958
# Check for GNU ac_path_GREP and select it if it is found.
 
2959
  # Check for GNU $ac_path_GREP
 
2960
case `"$ac_path_GREP" --version 2>&1` in
 
2961
*GNU*)
 
2962
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
2963
*)
 
2964
  ac_count=0
 
2965
  $as_echo_n 0123456789 >"conftest.in"
 
2966
  while :
 
2967
  do
 
2968
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
2969
    mv "conftest.tmp" "conftest.in"
 
2970
    cp "conftest.in" "conftest.nl"
 
2971
    $as_echo 'GREP' >> "conftest.nl"
 
2972
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
2973
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
2974
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
2975
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
2976
      # Best one so far, save it but keep looking for a better one
 
2977
      ac_cv_path_GREP="$ac_path_GREP"
 
2978
      ac_path_GREP_max=$ac_count
 
2979
    fi
 
2980
    # 10*(2^10) chars as input seems more than enough
 
2981
    test $ac_count -gt 10 && break
 
2982
  done
 
2983
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
2984
esac
 
2985
 
 
2986
      $ac_path_GREP_found && break 3
 
2987
    done
 
2988
  done
 
2989
  done
 
2990
IFS=$as_save_IFS
 
2991
  if test -z "$ac_cv_path_GREP"; then
 
2992
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
2993
  fi
 
2994
else
 
2995
  ac_cv_path_GREP=$GREP
 
2996
fi
 
2997
 
 
2998
fi
 
2999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
3000
$as_echo "$ac_cv_path_GREP" >&6; }
 
3001
 GREP="$ac_cv_path_GREP"
 
3002
 
 
3003
 
 
3004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
3005
$as_echo_n "checking for egrep... " >&6; }
 
3006
if ${ac_cv_path_EGREP+:} false; then :
 
3007
  $as_echo_n "(cached) " >&6
 
3008
else
 
3009
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3010
   then ac_cv_path_EGREP="$GREP -E"
 
3011
   else
 
3012
     if test -z "$EGREP"; then
 
3013
  ac_path_EGREP_found=false
 
3014
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3015
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3016
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3017
do
 
3018
  IFS=$as_save_IFS
 
3019
  test -z "$as_dir" && as_dir=.
 
3020
    for ac_prog in egrep; do
 
3021
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3022
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3023
      as_fn_executable_p "$ac_path_EGREP" || continue
 
3024
# Check for GNU ac_path_EGREP and select it if it is found.
 
3025
  # Check for GNU $ac_path_EGREP
 
3026
case `"$ac_path_EGREP" --version 2>&1` in
 
3027
*GNU*)
 
3028
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3029
*)
 
3030
  ac_count=0
 
3031
  $as_echo_n 0123456789 >"conftest.in"
 
3032
  while :
 
3033
  do
 
3034
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3035
    mv "conftest.tmp" "conftest.in"
 
3036
    cp "conftest.in" "conftest.nl"
 
3037
    $as_echo 'EGREP' >> "conftest.nl"
 
3038
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3039
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3040
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3041
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3042
      # Best one so far, save it but keep looking for a better one
 
3043
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3044
      ac_path_EGREP_max=$ac_count
 
3045
    fi
 
3046
    # 10*(2^10) chars as input seems more than enough
 
3047
    test $ac_count -gt 10 && break
 
3048
  done
 
3049
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3050
esac
 
3051
 
 
3052
      $ac_path_EGREP_found && break 3
 
3053
    done
 
3054
  done
 
3055
  done
 
3056
IFS=$as_save_IFS
 
3057
  if test -z "$ac_cv_path_EGREP"; then
 
3058
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3059
  fi
 
3060
else
 
3061
  ac_cv_path_EGREP=$EGREP
 
3062
fi
 
3063
 
 
3064
   fi
 
3065
fi
 
3066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
3067
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3068
 EGREP="$ac_cv_path_EGREP"
 
3069
 
 
3070
 
 
3071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
3072
$as_echo_n "checking for ANSI C header files... " >&6; }
 
3073
if ${ac_cv_header_stdc+:} false; then :
 
3074
  $as_echo_n "(cached) " >&6
 
3075
else
 
3076
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3077
/* end confdefs.h.  */
 
3078
#include <stdlib.h>
 
3079
#include <stdarg.h>
 
3080
#include <string.h>
 
3081
#include <float.h>
 
3082
 
 
3083
int
 
3084
main ()
 
3085
{
 
3086
 
 
3087
  ;
 
3088
  return 0;
 
3089
}
 
3090
_ACEOF
 
3091
if ac_fn_c_try_compile "$LINENO"; then :
 
3092
  ac_cv_header_stdc=yes
 
3093
else
 
3094
  ac_cv_header_stdc=no
 
3095
fi
 
3096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3097
 
 
3098
if test $ac_cv_header_stdc = yes; then
 
3099
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3100
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3101
/* end confdefs.h.  */
 
3102
#include <string.h>
 
3103
 
 
3104
_ACEOF
 
3105
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3106
  $EGREP "memchr" >/dev/null 2>&1; then :
 
3107
 
 
3108
else
 
3109
  ac_cv_header_stdc=no
 
3110
fi
 
3111
rm -f conftest*
 
3112
 
 
3113
fi
 
3114
 
 
3115
if test $ac_cv_header_stdc = yes; then
 
3116
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3117
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3118
/* end confdefs.h.  */
 
3119
#include <stdlib.h>
 
3120
 
 
3121
_ACEOF
 
3122
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3123
  $EGREP "free" >/dev/null 2>&1; then :
 
3124
 
 
3125
else
 
3126
  ac_cv_header_stdc=no
 
3127
fi
 
3128
rm -f conftest*
 
3129
 
 
3130
fi
 
3131
 
 
3132
if test $ac_cv_header_stdc = yes; then
 
3133
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3134
  if test "$cross_compiling" = yes; then :
 
3135
  :
 
3136
else
 
3137
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3138
/* end confdefs.h.  */
 
3139
#include <ctype.h>
 
3140
#include <stdlib.h>
 
3141
#if ((' ' & 0x0FF) == 0x020)
 
3142
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3143
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3144
#else
 
3145
# define ISLOWER(c) \
 
3146
                   (('a' <= (c) && (c) <= 'i') \
 
3147
                     || ('j' <= (c) && (c) <= 'r') \
 
3148
                     || ('s' <= (c) && (c) <= 'z'))
 
3149
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3150
#endif
 
3151
 
 
3152
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3153
int
 
3154
main ()
 
3155
{
 
3156
  int i;
 
3157
  for (i = 0; i < 256; i++)
 
3158
    if (XOR (islower (i), ISLOWER (i))
 
3159
        || toupper (i) != TOUPPER (i))
 
3160
      return 2;
 
3161
  return 0;
 
3162
}
 
3163
_ACEOF
 
3164
if ac_fn_c_try_run "$LINENO"; then :
 
3165
 
 
3166
else
 
3167
  ac_cv_header_stdc=no
 
3168
fi
 
3169
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
3170
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3171
fi
 
3172
 
 
3173
fi
 
3174
fi
 
3175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
3176
$as_echo "$ac_cv_header_stdc" >&6; }
 
3177
if test $ac_cv_header_stdc = yes; then
 
3178
 
 
3179
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
3180
 
 
3181
fi
 
3182
 
 
3183
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3184
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3185
                  inttypes.h stdint.h unistd.h
 
3186
do :
 
3187
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3188
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
3189
"
 
3190
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
3191
  cat >>confdefs.h <<_ACEOF
 
3192
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3193
_ACEOF
 
3194
 
 
3195
fi
 
3196
 
 
3197
done
 
3198
 
 
3199
 
 
3200
ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
 
3201
if test "x$ac_cv_header_term_h" = xyes; then :
 
3202
 
 
3203
else
 
3204
  ac_fn_c_check_header_mongrel "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
 
3205
if test "x$ac_cv_header_termcap_h" = xyes; then :
 
3206
 
 
3207
else
 
3208
  as_fn_error $? "Unable to find ncurses library headers." "$LINENO" 5
 
3209
 
 
3210
fi
 
3211
 
 
3212
 
 
3213
 
 
3214
fi
 
3215
 
 
3216
 
 
3217
 
 
3218
ac_ext=cpp
 
3219
ac_cpp='$CXXCPP $CPPFLAGS'
 
3220
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3221
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3222
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3223
if test -z "$CXX"; then
 
3224
  if test -n "$CCC"; then
 
3225
    CXX=$CCC
 
3226
  else
 
3227
    if test -n "$ac_tool_prefix"; then
 
3228
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3229
  do
 
3230
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3231
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3233
$as_echo_n "checking for $ac_word... " >&6; }
 
3234
if ${ac_cv_prog_CXX+:} false; then :
 
3235
  $as_echo_n "(cached) " >&6
 
3236
else
 
3237
  if test -n "$CXX"; then
 
3238
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3239
else
 
3240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3241
for as_dir in $PATH
 
3242
do
 
3243
  IFS=$as_save_IFS
 
3244
  test -z "$as_dir" && as_dir=.
 
3245
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3246
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3247
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3248
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3249
    break 2
 
3250
  fi
 
3251
done
 
3252
  done
 
3253
IFS=$as_save_IFS
 
3254
 
 
3255
fi
 
3256
fi
 
3257
CXX=$ac_cv_prog_CXX
 
3258
if test -n "$CXX"; then
 
3259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
3260
$as_echo "$CXX" >&6; }
 
3261
else
 
3262
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3263
$as_echo "no" >&6; }
 
3264
fi
 
3265
 
 
3266
 
 
3267
    test -n "$CXX" && break
 
3268
  done
 
3269
fi
 
3270
if test -z "$CXX"; then
 
3271
  ac_ct_CXX=$CXX
 
3272
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3273
do
 
3274
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3275
set dummy $ac_prog; ac_word=$2
 
3276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3277
$as_echo_n "checking for $ac_word... " >&6; }
 
3278
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
3279
  $as_echo_n "(cached) " >&6
 
3280
else
 
3281
  if test -n "$ac_ct_CXX"; then
 
3282
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3283
else
 
3284
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3285
for as_dir in $PATH
 
3286
do
 
3287
  IFS=$as_save_IFS
 
3288
  test -z "$as_dir" && as_dir=.
 
3289
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3290
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3291
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3292
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3293
    break 2
 
3294
  fi
 
3295
done
 
3296
  done
 
3297
IFS=$as_save_IFS
 
3298
 
 
3299
fi
 
3300
fi
 
3301
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3302
if test -n "$ac_ct_CXX"; then
 
3303
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
3304
$as_echo "$ac_ct_CXX" >&6; }
 
3305
else
 
3306
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3307
$as_echo "no" >&6; }
 
3308
fi
 
3309
 
 
3310
 
 
3311
  test -n "$ac_ct_CXX" && break
 
3312
done
 
3313
 
 
3314
  if test "x$ac_ct_CXX" = x; then
 
3315
    CXX="g++"
 
3316
  else
 
3317
    case $cross_compiling:$ac_tool_warned in
 
3318
yes:)
 
3319
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3320
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3321
ac_tool_warned=yes ;;
 
3322
esac
 
3323
    CXX=$ac_ct_CXX
 
3324
  fi
 
3325
fi
 
3326
 
 
3327
  fi
 
3328
fi
 
3329
# Provide some information about the compiler.
 
3330
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
3331
set X $ac_compile
 
3332
ac_compiler=$2
 
3333
for ac_option in --version -v -V -qversion; do
 
3334
  { { ac_try="$ac_compiler $ac_option >&5"
 
3335
case "(($ac_try" in
 
3336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3337
  *) ac_try_echo=$ac_try;;
 
3338
esac
 
3339
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3340
$as_echo "$ac_try_echo"; } >&5
 
3341
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3342
  ac_status=$?
 
3343
  if test -s conftest.err; then
 
3344
    sed '10a\
 
3345
... rest of stderr output deleted ...
 
3346
         10q' conftest.err >conftest.er1
 
3347
    cat conftest.er1 >&5
 
3348
  fi
 
3349
  rm -f conftest.er1 conftest.err
 
3350
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3351
  test $ac_status = 0; }
 
3352
done
 
3353
 
 
3354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
3355
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
3356
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
3357
  $as_echo_n "(cached) " >&6
 
3358
else
 
3359
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3360
/* end confdefs.h.  */
 
3361
 
 
3362
int
 
3363
main ()
 
3364
{
 
3365
#ifndef __GNUC__
 
3366
       choke me
 
3367
#endif
 
3368
 
 
3369
  ;
 
3370
  return 0;
 
3371
}
 
3372
_ACEOF
 
3373
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3374
  ac_compiler_gnu=yes
 
3375
else
 
3376
  ac_compiler_gnu=no
 
3377
fi
 
3378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3379
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3380
 
 
3381
fi
 
3382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
3383
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3384
if test $ac_compiler_gnu = yes; then
 
3385
  GXX=yes
 
3386
else
 
3387
  GXX=
 
3388
fi
 
3389
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3390
ac_save_CXXFLAGS=$CXXFLAGS
 
3391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
3392
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3393
if ${ac_cv_prog_cxx_g+:} false; then :
 
3394
  $as_echo_n "(cached) " >&6
 
3395
else
 
3396
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3397
   ac_cxx_werror_flag=yes
 
3398
   ac_cv_prog_cxx_g=no
 
3399
   CXXFLAGS="-g"
 
3400
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3401
/* end confdefs.h.  */
 
3402
 
 
3403
int
 
3404
main ()
 
3405
{
 
3406
 
 
3407
  ;
 
3408
  return 0;
 
3409
}
 
3410
_ACEOF
 
3411
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3412
  ac_cv_prog_cxx_g=yes
 
3413
else
 
3414
  CXXFLAGS=""
 
3415
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3416
/* end confdefs.h.  */
 
3417
 
 
3418
int
 
3419
main ()
 
3420
{
 
3421
 
 
3422
  ;
 
3423
  return 0;
 
3424
}
 
3425
_ACEOF
 
3426
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3427
 
 
3428
else
 
3429
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3430
         CXXFLAGS="-g"
 
3431
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3432
/* end confdefs.h.  */
 
3433
 
 
3434
int
 
3435
main ()
 
3436
{
 
3437
 
 
3438
  ;
 
3439
  return 0;
 
3440
}
 
3441
_ACEOF
 
3442
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3443
  ac_cv_prog_cxx_g=yes
 
3444
fi
 
3445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3446
fi
 
3447
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3448
fi
 
3449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3450
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3451
fi
 
3452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
3453
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
3454
if test "$ac_test_CXXFLAGS" = set; then
 
3455
  CXXFLAGS=$ac_save_CXXFLAGS
 
3456
elif test $ac_cv_prog_cxx_g = yes; then
 
3457
  if test "$GXX" = yes; then
 
3458
    CXXFLAGS="-g -O2"
 
3459
  else
 
3460
    CXXFLAGS="-g"
 
3461
  fi
 
3462
else
 
3463
  if test "$GXX" = yes; then
 
3464
    CXXFLAGS="-O2"
 
3465
  else
 
3466
    CXXFLAGS=
 
3467
  fi
 
3468
fi
 
3469
ac_ext=c
 
3470
ac_cpp='$CPP $CPPFLAGS'
 
3471
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3472
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3473
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3474
 
 
3475
ac_ext=cpp
 
3476
ac_cpp='$CXXCPP $CPPFLAGS'
 
3477
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3478
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3479
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3480
 
 
3481
 
 
3482
## this is required for the units.m function
 
3483
# Extract the first word of "units", so it can be a program name with args.
 
3484
set dummy units; ac_word=$2
 
3485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3486
$as_echo_n "checking for $ac_word... " >&6; }
 
3487
if ${ac_cv_prog_UNITS_AVAILABLE+:} false; then :
 
3488
  $as_echo_n "(cached) " >&6
 
3489
else
 
3490
  if test -n "$UNITS_AVAILABLE"; then
 
3491
  ac_cv_prog_UNITS_AVAILABLE="$UNITS_AVAILABLE" # Let the user override the test.
 
3492
else
 
3493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3494
for as_dir in $PATH
 
3495
do
 
3496
  IFS=$as_save_IFS
 
3497
  test -z "$as_dir" && as_dir=.
 
3498
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3499
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3500
    ac_cv_prog_UNITS_AVAILABLE="yes"
 
3501
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3502
    break 2
 
3503
  fi
 
3504
done
 
3505
  done
 
3506
IFS=$as_save_IFS
 
3507
 
 
3508
fi
 
3509
fi
 
3510
UNITS_AVAILABLE=$ac_cv_prog_UNITS_AVAILABLE
 
3511
if test -n "$UNITS_AVAILABLE"; then
 
3512
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNITS_AVAILABLE" >&5
 
3513
$as_echo "$UNITS_AVAILABLE" >&6; }
 
3514
else
 
3515
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3516
$as_echo "no" >&6; }
 
3517
fi
 
3518
 
 
3519
 
 
3520
if test x"$UNITS_AVAILABLE" != x"yes" ; then
 
3521
  as_fn_error $? "The program GNU Units is required to install $PACKAGE_NAME." "$LINENO" 5
 
3522
fi