~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): Sébastien Villemot, Rafael Laboissiere, Sébastien Villemot
  • Date: 2012-10-17 13:40:55 UTC
  • mfrom: (1.2.1) (12 sid)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: package-import@ubuntu.com-20121017134055-vatltexghy77fnv7
Tags: 1.2.0-1
[ Rafael Laboissiere ]
* Imported Upstream version 1.2.0
* Bump Standards-Version to 3.9.4 (no changes needed)
* Refresh for new upstream release
* Use Sébastien Villemot's @debian.org email address
* Remove obsolete DM-Upload-Allowed flag
* Add patch autoload-yes.patch
* Add copyright info for file lauchli.m (included in a Debian patch)
* Add patch partcnt-test-succeeds.patch
* Build-depends on octave-pkg-dev >= 1.0.3

[ Sébastien Villemot ]
* debian/control: fix versioned dependency on debhelper
* Add lintian override for false positive on hardening (fortify)

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