~ubuntu-branches/ubuntu/lucid/graphviz/lucid-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2002-02-05 18:52:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020205185212-8i04c70te00rc40y
Tags: upstream-1.7.16
ImportĀ upstreamĀ versionĀ 1.7.16

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.52f.
 
4
#
 
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
6
# 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
# Find the correct PATH separator.  Usually this is `:', but
 
11
# DJGPP uses `;' like DOS.
 
12
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
13
  UNAME=${UNAME-`uname 2>/dev/null`}
 
14
  case X$UNAME in
 
15
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
16
    *)     lt_cv_sys_path_separator=':' ;;
 
17
  esac
 
18
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
19
fi
 
20
 
 
21
# Check that we are running under the correct shell.
 
22
SHELL=${CONFIG_SHELL-/bin/sh}
 
23
 
 
24
case X$ECHO in
 
25
X*--fallback-echo)
 
26
  # Remove one level of quotation (which was required for Make).
 
27
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
28
  ;;
 
29
esac
 
30
 
 
31
echo=${ECHO-echo}
 
32
if test "X$1" = X--no-reexec; then
 
33
  # Discard the --no-reexec flag, and continue.
 
34
  shift
 
35
elif test "X$1" = X--fallback-echo; then
 
36
  # Avoid inline document here, it may be left over
 
37
  :
 
38
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
39
  # Yippee, $echo works!
 
40
  :
 
41
else
 
42
  # Restart under the correct shell.
 
43
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
44
fi
 
45
 
 
46
if test "X$1" = X--fallback-echo; then
 
47
  # used as fallback echo
 
48
  shift
 
49
  cat <<EOF
 
50
 
 
51
EOF
 
52
  exit 0
 
53
fi
 
54
 
 
55
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
56
# if CDPATH is set.
 
57
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
58
 
 
59
if test -z "$ECHO"; then
 
60
if test "X${echo_test_string+set}" != Xset; then
 
61
# find a string as large as possible, as long as the shell can cope with it
 
62
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
63
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
64
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
65
       echo_test_string="`eval $cmd`" &&
 
66
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
67
    then
 
68
      break
 
69
    fi
 
70
  done
 
71
fi
 
72
 
 
73
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
74
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
75
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
76
  :
 
77
else
 
78
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
79
  # backslashes.  This makes it impossible to quote backslashes using
 
80
  #   echo "$something" | sed 's/\\/\\\\/g'
 
81
  #
 
82
  # So, first we look for a working echo in the user's PATH.
 
83
 
 
84
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
85
  for dir in $PATH /usr/ucb; do
 
86
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
87
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
88
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
89
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
90
      echo="$dir/echo"
 
91
      break
 
92
    fi
 
93
  done
 
94
  IFS="$save_ifs"
 
95
 
 
96
  if test "X$echo" = Xecho; then
 
97
    # We didn't find a better echo, so look for alternatives.
 
98
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
99
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
100
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
101
      # This shell has a builtin print -r that does the trick.
 
102
      echo='print -r'
 
103
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
104
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
105
      # If we have ksh, try running configure again with it.
 
106
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
107
      export ORIGINAL_CONFIG_SHELL
 
108
      CONFIG_SHELL=/bin/ksh
 
109
      export CONFIG_SHELL
 
110
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
111
    else
 
112
      # Try using printf.
 
113
      echo='printf %s\n'
 
114
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
115
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
116
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
117
        # Cool, printf works
 
118
        :
 
119
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
120
           test "X$echo_testing_string" = 'X\t' &&
 
121
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
122
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
123
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
124
        export CONFIG_SHELL
 
125
        SHELL="$CONFIG_SHELL"
 
126
        export SHELL
 
127
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
128
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
129
           test "X$echo_testing_string" = 'X\t' &&
 
130
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
131
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
132
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
133
      else
 
134
        # maybe with a smaller string...
 
135
        prev=:
 
136
 
 
137
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
138
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
139
          then
 
140
            break
 
141
          fi
 
142
          prev="$cmd"
 
143
        done
 
144
 
 
145
        if test "$prev" != 'sed 50q "$0"'; then
 
146
          echo_test_string=`eval $prev`
 
147
          export echo_test_string
 
148
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
149
        else
 
150
          # Oops.  We lost completely, so just stick with echo.
 
151
          echo=echo
 
152
        fi
 
153
      fi
 
154
    fi
 
155
  fi
 
156
fi
 
157
fi
 
158
 
 
159
# Copy echo and quote the copy suitably for passing to libtool from
 
160
# the Makefile, instead of quoting the original, which is used later.
 
161
ECHO=$echo
 
162
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
163
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
164
fi
 
165
 
 
166
if expr a : '\(a\)' >/dev/null 2>&1; then
 
167
  as_expr=expr
 
168
else
 
169
  as_expr=false
 
170
fi
 
171
 
 
172
## --------------------- ##
 
173
## M4sh Initialization.  ##
 
174
## --------------------- ##
 
175
 
 
176
# Be Bourne compatible
 
177
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
178
  emulate sh
 
179
  NULLCMD=:
 
180
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
181
  set -o posix
 
182
fi
 
183
 
 
184
# NLS nuisances.
 
185
# Support unset when possible.
 
186
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
187
  as_unset=unset
 
188
else
 
189
  as_unset=false
 
190
fi
 
191
 
 
192
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
 
193
    { $as_unset LANG || test "${LANG+set}" != set; } ||
 
194
      { LANG=C; export LANG; }
 
195
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
 
196
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
 
197
      { LC_ALL=C; export LC_ALL; }
 
198
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
 
199
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
 
200
      { LC_TIME=C; export LC_TIME; }
 
201
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
 
202
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
 
203
      { LC_CTYPE=C; export LC_CTYPE; }
 
204
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
 
205
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
 
206
      { LANGUAGE=C; export LANGUAGE; }
 
207
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
 
208
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
 
209
      { LC_COLLATE=C; export LC_COLLATE; }
 
210
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
 
211
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
 
212
      { LC_NUMERIC=C; export LC_NUMERIC; }
 
213
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
 
214
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
 
215
      { LC_MESSAGES=C; export LC_MESSAGES; }
 
216
 
 
217
# Name of the executable.
 
218
as_me=`(basename "$0") 2>/dev/null ||
 
219
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
220
         X"$0" : 'X\(//\)$' \| \
 
221
         X"$0" : 'X\(/\)$' \| \
 
222
         .     : '\(.\)' 2>/dev/null ||
 
223
echo X/"$0" |
 
224
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
225
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
226
          /^X\/\(\/\).*/{ s//\1/; q; }
 
227
          s/.*/./; q'`
 
228
 
 
229
# PATH needs CR, and LINENO needs CR and PATH.
 
230
# Avoid depending upon Character Ranges.
 
231
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
232
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
233
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
234
as_cr_digits='0123456789'
 
235
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
236
 
 
237
# The user is always right.
 
238
if test "${PATH_SEPARATOR+set}" != set; then
 
239
  echo "#! $SHELL" >conftest.sh
 
240
  echo  "exit 0"   >>conftest.sh
 
241
  chmod +x conftest.sh
 
242
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
 
243
    PATH_SEPARATOR=';'
 
244
  else
 
245
    PATH_SEPARATOR=:
 
246
  fi
 
247
  rm -f conftest.sh
 
248
fi
 
249
 
 
250
  as_lineno_1=$LINENO
 
251
  as_lineno_2=$LINENO
 
252
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
253
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
254
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
255
  # Find who we are.  Look in the path if we contain no path at all
 
256
  # relative or not.
 
257
  case $0 in
 
258
    *[\\/]* ) as_myself=$0 ;;
 
259
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
260
for as_dir in $PATH
 
261
do
 
262
  IFS=$as_save_IFS
 
263
  test -z "$as_dir" && as_dir=.
 
264
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
265
done
 
266
 
 
267
       ;;
 
268
  esac
 
269
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
270
  # in which case we are not to be found in the path.
 
271
  if test "x$as_myself" = x; then
 
272
    as_myself=$0
 
273
  fi
 
274
  if test ! -f "$as_myself"; then
 
275
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
276
   { (exit 1); exit 1; }; }
 
277
  fi
 
278
  case $CONFIG_SHELL in
 
279
  '')
 
280
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
281
for as_dir in /bin:/usr/bin:$PATH
 
282
do
 
283
  IFS=$as_save_IFS
 
284
  test -z "$as_dir" && as_dir=.
 
285
  for as_base in sh bash ksh sh5; do
 
286
         case $as_dir in
 
287
         /*)
 
288
           if ("$as_dir/$as_base" -c '
 
289
  as_lineno_1=$LINENO
 
290
  as_lineno_2=$LINENO
 
291
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
292
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
293
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
294
             CONFIG_SHELL=$as_dir/$as_base
 
295
             export CONFIG_SHELL
 
296
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
297
           fi;;
 
298
         esac
 
299
       done
 
300
done
 
301
;;
 
302
  esac
 
303
 
 
304
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
305
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
306
  # line-number line before each line; the second 'sed' does the real
 
307
  # work.  The second script uses 'N' to pair each line-number line
 
308
  # with the numbered line, and appends trailing '-' during
 
309
  # substitution so that $LINENO is not a special case at line end.
 
310
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
311
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
312
  sed '=' <$as_myself |
 
313
    sed '
 
314
      N
 
315
      s,$,-,
 
316
      : loop
 
317
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
318
      t loop
 
319
      s,-$,,
 
320
      s,^['$as_cr_digits']*\n,,
 
321
    ' >$as_me.lineno &&
 
322
  chmod +x $as_me.lineno ||
 
323
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
324
   { (exit 1); exit 1; }; }
 
325
 
 
326
  # Don't try to exec as it changes $[0], causing all sort of problems
 
327
  # (the dirname of $[0] is not the place where we might find the
 
328
  # original and so on.  Autoconf is especially sensible to this).
 
329
  . ./$as_me.lineno
 
330
  # Exit status is that of the last command.
 
331
  exit
 
332
}
 
333
 
 
334
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
335
  *c*,-n*) ECHO_N= ECHO_C='
 
336
' ECHO_T='      ' ;;
 
337
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
338
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
339
esac
 
340
 
 
341
if expr a : '\(a\)' >/dev/null 2>&1; then
 
342
  as_expr=expr
 
343
else
 
344
  as_expr=false
 
345
fi
 
346
 
 
347
rm -f conf$$ conf$$.exe conf$$.file
 
348
echo >conf$$.file
 
349
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
350
  # We could just check for DJGPP; but this test a) works b) is more generic
 
351
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
352
  if test -f conf$$.exe; then
 
353
    # Don't use ln at all; we don't have any links
 
354
    as_ln_s='cp -p'
 
355
  else
 
356
    as_ln_s='ln -s'
 
357
  fi
 
358
elif ln conf$$.file conf$$ 2>/dev/null; then
 
359
  as_ln_s=ln
 
360
else
 
361
  as_ln_s='cp -p'
 
362
fi
 
363
rm -f conf$$ conf$$.exe conf$$.file
 
364
 
 
365
as_executable_p="test -f"
 
366
 
 
367
# Sed expression to map a string onto a valid CPP name.
 
368
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
369
 
 
370
# Sed expression to map a string onto a valid variable name.
 
371
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
372
 
 
373
# IFS
 
374
# We need space, tab and new line, in precisely that order.
 
375
as_nl='
 
376
'
 
377
IFS="   $as_nl"
 
378
 
 
379
# CDPATH.
 
380
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
 
381
 
 
382
# Name of the host.
 
383
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
384
# so uname gets run too.
 
385
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
386
 
 
387
exec 6>&1
 
388
 
 
389
#
 
390
# Initializations.
 
391
#
 
392
ac_default_prefix=/usr/local
 
393
cross_compiling=no
 
394
subdirs=
 
395
MFLAGS=
 
396
MAKEFLAGS=
 
397
SHELL=${CONFIG_SHELL-/bin/sh}
 
398
 
 
399
# Maximum number of lines to put in a shell here document.
 
400
# This variable seems obsolete.  It should probably be removed, and
 
401
# only ac_max_sed_lines should be used.
 
402
: ${ac_max_here_lines=38}
 
403
 
 
404
ac_unique_file="configure.in"
 
405
# Factoring default headers for most tests.
 
406
ac_includes_default="\
 
407
#include <stdio.h>
 
408
#if HAVE_SYS_TYPES_H
 
409
# include <sys/types.h>
 
410
#endif
 
411
#if HAVE_SYS_STAT_H
 
412
# include <sys/stat.h>
 
413
#endif
 
414
#if STDC_HEADERS
 
415
# include <stdlib.h>
 
416
# include <stddef.h>
 
417
#else
 
418
# if HAVE_STDLIB_H
 
419
#  include <stdlib.h>
 
420
# endif
 
421
#endif
 
422
#if HAVE_STRING_H
 
423
# if !STDC_HEADERS && HAVE_MEMORY_H
 
424
#  include <memory.h>
 
425
# endif
 
426
# include <string.h>
 
427
#endif
 
428
#if HAVE_STRINGS_H
 
429
# include <strings.h>
 
430
#endif
 
431
#if HAVE_INTTYPES_H
 
432
# include <inttypes.h>
 
433
#else
 
434
# if HAVE_STDINT_H
 
435
#  include <stdint.h>
 
436
# endif
 
437
#endif
 
438
#if HAVE_UNISTD_H
 
439
# include <unistd.h>
 
440
#endif"
 
441
 
 
442
# Initialize some variables set by options.
 
443
ac_init_help=
 
444
ac_init_version=false
 
445
# The variables have the same names as the options, with
 
446
# dashes changed to underlines.
 
447
cache_file=/dev/null
 
448
exec_prefix=NONE
 
449
no_create=
 
450
no_recursion=
 
451
prefix=NONE
 
452
program_prefix=NONE
 
453
program_suffix=NONE
 
454
program_transform_name=s,x,x,
 
455
silent=
 
456
site=
 
457
srcdir=
 
458
verbose=
 
459
x_includes=NONE
 
460
x_libraries=NONE
 
461
 
 
462
# Installation directory options.
 
463
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
464
# and all the variables that are supposed to be based on exec_prefix
 
465
# by default will actually change.
 
466
# Use braces instead of parens because sh, perl, etc. also accept them.
 
467
bindir='${exec_prefix}/bin'
 
468
sbindir='${exec_prefix}/sbin'
 
469
libexecdir='${exec_prefix}/libexec'
 
470
datadir='${prefix}/share'
 
471
sysconfdir='${prefix}/etc'
 
472
sharedstatedir='${prefix}/com'
 
473
localstatedir='${prefix}/var'
 
474
libdir='${exec_prefix}/lib'
 
475
includedir='${prefix}/include'
 
476
oldincludedir='/usr/include'
 
477
infodir='${prefix}/info'
 
478
mandir='${prefix}/man'
 
479
 
 
480
# Identity of this package.
 
481
PACKAGE_NAME=
 
482
PACKAGE_TARNAME=
 
483
PACKAGE_VERSION=
 
484
PACKAGE_STRING=
 
485
PACKAGE_BUGREPORT=
 
486
 
 
487
ac_prev=
 
488
for ac_option
 
489
do
 
490
  # If the previous option needs an argument, assign it.
 
491
  if test -n "$ac_prev"; then
 
492
    eval "$ac_prev=\$ac_option"
 
493
    ac_prev=
 
494
    continue
 
495
  fi
 
496
 
 
497
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
498
 
 
499
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
500
 
 
501
  case $ac_option in
 
502
 
 
503
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
504
    ac_prev=bindir ;;
 
505
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
506
    bindir=$ac_optarg ;;
 
507
 
 
508
  -build | --build | --buil | --bui | --bu)
 
509
    ac_prev=build_alias ;;
 
510
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
511
    build_alias=$ac_optarg ;;
 
512
 
 
513
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
514
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
515
    ac_prev=cache_file ;;
 
516
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
517
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
518
    cache_file=$ac_optarg ;;
 
519
 
 
520
  --config-cache | -C)
 
521
    cache_file=config.cache ;;
 
522
 
 
523
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
524
    ac_prev=datadir ;;
 
525
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
526
  | --da=*)
 
527
    datadir=$ac_optarg ;;
 
528
 
 
529
  -disable-* | --disable-*)
 
530
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
531
    # Reject names that are not valid shell variable names.
 
532
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
533
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
534
   { (exit 1); exit 1; }; }
 
535
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
536
    eval "enable_$ac_feature=no" ;;
 
537
 
 
538
  -enable-* | --enable-*)
 
539
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
540
    # Reject names that are not valid shell variable names.
 
541
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
542
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
543
   { (exit 1); exit 1; }; }
 
544
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
545
    case $ac_option in
 
546
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
547
      *) ac_optarg=yes ;;
 
548
    esac
 
549
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
550
 
 
551
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
552
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
553
  | --exec | --exe | --ex)
 
554
    ac_prev=exec_prefix ;;
 
555
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
556
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
557
  | --exec=* | --exe=* | --ex=*)
 
558
    exec_prefix=$ac_optarg ;;
 
559
 
 
560
  -gas | --gas | --ga | --g)
 
561
    # Obsolete; use --with-gas.
 
562
    with_gas=yes ;;
 
563
 
 
564
  -help | --help | --hel | --he | -h)
 
565
    ac_init_help=long ;;
 
566
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
567
    ac_init_help=recursive ;;
 
568
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
569
    ac_init_help=short ;;
 
570
 
 
571
  -host | --host | --hos | --ho)
 
572
    ac_prev=host_alias ;;
 
573
  -host=* | --host=* | --hos=* | --ho=*)
 
574
    host_alias=$ac_optarg ;;
 
575
 
 
576
  -includedir | --includedir | --includedi | --included | --include \
 
577
  | --includ | --inclu | --incl | --inc)
 
578
    ac_prev=includedir ;;
 
579
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
580
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
581
    includedir=$ac_optarg ;;
 
582
 
 
583
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
584
    ac_prev=infodir ;;
 
585
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
586
    infodir=$ac_optarg ;;
 
587
 
 
588
  -libdir | --libdir | --libdi | --libd)
 
589
    ac_prev=libdir ;;
 
590
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
591
    libdir=$ac_optarg ;;
 
592
 
 
593
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
594
  | --libexe | --libex | --libe)
 
595
    ac_prev=libexecdir ;;
 
596
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
597
  | --libexe=* | --libex=* | --libe=*)
 
598
    libexecdir=$ac_optarg ;;
 
599
 
 
600
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
601
  | --localstate | --localstat | --localsta | --localst \
 
602
  | --locals | --local | --loca | --loc | --lo)
 
603
    ac_prev=localstatedir ;;
 
604
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
605
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
606
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
607
    localstatedir=$ac_optarg ;;
 
608
 
 
609
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
610
    ac_prev=mandir ;;
 
611
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
612
    mandir=$ac_optarg ;;
 
613
 
 
614
  -nfp | --nfp | --nf)
 
615
    # Obsolete; use --without-fp.
 
616
    with_fp=no ;;
 
617
 
 
618
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
619
  | --no-cr | --no-c)
 
620
    no_create=yes ;;
 
621
 
 
622
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
623
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
624
    no_recursion=yes ;;
 
625
 
 
626
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
627
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
628
  | --oldin | --oldi | --old | --ol | --o)
 
629
    ac_prev=oldincludedir ;;
 
630
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
631
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
632
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
633
    oldincludedir=$ac_optarg ;;
 
634
 
 
635
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
636
    ac_prev=prefix ;;
 
637
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
638
    prefix=$ac_optarg ;;
 
639
 
 
640
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
641
  | --program-pre | --program-pr | --program-p)
 
642
    ac_prev=program_prefix ;;
 
643
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
644
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
645
    program_prefix=$ac_optarg ;;
 
646
 
 
647
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
648
  | --program-suf | --program-su | --program-s)
 
649
    ac_prev=program_suffix ;;
 
650
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
651
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
652
    program_suffix=$ac_optarg ;;
 
653
 
 
654
  -program-transform-name | --program-transform-name \
 
655
  | --program-transform-nam | --program-transform-na \
 
656
  | --program-transform-n | --program-transform- \
 
657
  | --program-transform | --program-transfor \
 
658
  | --program-transfo | --program-transf \
 
659
  | --program-trans | --program-tran \
 
660
  | --progr-tra | --program-tr | --program-t)
 
661
    ac_prev=program_transform_name ;;
 
662
  -program-transform-name=* | --program-transform-name=* \
 
663
  | --program-transform-nam=* | --program-transform-na=* \
 
664
  | --program-transform-n=* | --program-transform-=* \
 
665
  | --program-transform=* | --program-transfor=* \
 
666
  | --program-transfo=* | --program-transf=* \
 
667
  | --program-trans=* | --program-tran=* \
 
668
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
669
    program_transform_name=$ac_optarg ;;
 
670
 
 
671
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
672
  | -silent | --silent | --silen | --sile | --sil)
 
673
    silent=yes ;;
 
674
 
 
675
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
676
    ac_prev=sbindir ;;
 
677
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
678
  | --sbi=* | --sb=*)
 
679
    sbindir=$ac_optarg ;;
 
680
 
 
681
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
682
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
683
  | --sharedst | --shareds | --shared | --share | --shar \
 
684
  | --sha | --sh)
 
685
    ac_prev=sharedstatedir ;;
 
686
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
687
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
688
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
689
  | --sha=* | --sh=*)
 
690
    sharedstatedir=$ac_optarg ;;
 
691
 
 
692
  -site | --site | --sit)
 
693
    ac_prev=site ;;
 
694
  -site=* | --site=* | --sit=*)
 
695
    site=$ac_optarg ;;
 
696
 
 
697
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
698
    ac_prev=srcdir ;;
 
699
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
700
    srcdir=$ac_optarg ;;
 
701
 
 
702
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
703
  | --syscon | --sysco | --sysc | --sys | --sy)
 
704
    ac_prev=sysconfdir ;;
 
705
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
706
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
707
    sysconfdir=$ac_optarg ;;
 
708
 
 
709
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
710
    ac_prev=target_alias ;;
 
711
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
712
    target_alias=$ac_optarg ;;
 
713
 
 
714
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
715
    verbose=yes ;;
 
716
 
 
717
  -version | --version | --versio | --versi | --vers | -V)
 
718
    ac_init_version=: ;;
 
719
 
 
720
  -with-* | --with-*)
 
721
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
722
    # Reject names that are not valid shell variable names.
 
723
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
724
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
725
   { (exit 1); exit 1; }; }
 
726
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
727
    case $ac_option in
 
728
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
729
      *) ac_optarg=yes ;;
 
730
    esac
 
731
    eval "with_$ac_package='$ac_optarg'" ;;
 
732
 
 
733
  -without-* | --without-*)
 
734
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
735
    # Reject names that are not valid shell variable names.
 
736
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
737
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
738
   { (exit 1); exit 1; }; }
 
739
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
740
    eval "with_$ac_package=no" ;;
 
741
 
 
742
  --x)
 
743
    # Obsolete; use --with-x.
 
744
    with_x=yes ;;
 
745
 
 
746
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
747
  | --x-incl | --x-inc | --x-in | --x-i)
 
748
    ac_prev=x_includes ;;
 
749
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
750
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
751
    x_includes=$ac_optarg ;;
 
752
 
 
753
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
754
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
755
    ac_prev=x_libraries ;;
 
756
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
757
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
758
    x_libraries=$ac_optarg ;;
 
759
 
 
760
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
761
Try \`$0 --help' for more information." >&2
 
762
   { (exit 1); exit 1; }; }
 
763
    ;;
 
764
 
 
765
  *=*)
 
766
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
767
    # Reject names that are not valid shell variable names.
 
768
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
769
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
770
   { (exit 1); exit 1; }; }
 
771
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
772
    eval "$ac_envvar='$ac_optarg'"
 
773
    export $ac_envvar ;;
 
774
 
 
775
  *)
 
776
    # FIXME: should be removed in autoconf 3.0.
 
777
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
778
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
779
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
780
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
781
    ;;
 
782
 
 
783
  esac
 
784
done
 
785
 
 
786
if test -n "$ac_prev"; then
 
787
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
788
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
789
   { (exit 1); exit 1; }; }
 
790
fi
 
791
 
 
792
# Be sure to have absolute paths.
 
793
for ac_var in exec_prefix prefix
 
794
do
 
795
  eval ac_val=$`echo $ac_var`
 
796
  case $ac_val in
 
797
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
798
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
799
   { (exit 1); exit 1; }; };;
 
800
  esac
 
801
done
 
802
 
 
803
# Be sure to have absolute paths.
 
804
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
805
              localstatedir libdir includedir oldincludedir infodir mandir
 
806
do
 
807
  eval ac_val=$`echo $ac_var`
 
808
  case $ac_val in
 
809
    [\\/$]* | ?:[\\/]* ) ;;
 
810
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
811
   { (exit 1); exit 1; }; };;
 
812
  esac
 
813
done
 
814
 
 
815
# There might be people who depend on the old broken behavior: `$host'
 
816
# used to hold the argument of --host etc.
 
817
build=$build_alias
 
818
host=$host_alias
 
819
target=$target_alias
 
820
 
 
821
# FIXME: should be removed in autoconf 3.0.
 
822
if test "x$host_alias" != x; then
 
823
  if test "x$build_alias" = x; then
 
824
    cross_compiling=maybe
 
825
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
826
    If a cross compiler is detected then cross compile mode will be used." >&2
 
827
  elif test "x$build_alias" != "x$host_alias"; then
 
828
    cross_compiling=yes
 
829
  fi
 
830
fi
 
831
 
 
832
ac_tool_prefix=
 
833
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
834
 
 
835
test "$silent" = yes && exec 6>/dev/null
 
836
 
 
837
# Find the source files, if location was not specified.
 
838
if test -z "$srcdir"; then
 
839
  ac_srcdir_defaulted=yes
 
840
  # Try the directory containing this script, then its parent.
 
841
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
842
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
843
         X"$0" : 'X\(//\)[^/]' \| \
 
844
         X"$0" : 'X\(//\)$' \| \
 
845
         X"$0" : 'X\(/\)' \| \
 
846
         .     : '\(.\)' 2>/dev/null ||
 
847
echo X"$0" |
 
848
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
849
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
850
          /^X\(\/\/\)$/{ s//\1/; q; }
 
851
          /^X\(\/\).*/{ s//\1/; q; }
 
852
          s/.*/./; q'`
 
853
  srcdir=$ac_confdir
 
854
  if test ! -r $srcdir/$ac_unique_file; then
 
855
    srcdir=..
 
856
  fi
 
857
else
 
858
  ac_srcdir_defaulted=no
 
859
fi
 
860
if test ! -r $srcdir/$ac_unique_file; then
 
861
  if test "$ac_srcdir_defaulted" = yes; then
 
862
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
863
   { (exit 1); exit 1; }; }
 
864
  else
 
865
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
866
   { (exit 1); exit 1; }; }
 
867
  fi
 
868
fi
 
869
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
870
ac_env_build_alias_set=${build_alias+set}
 
871
ac_env_build_alias_value=$build_alias
 
872
ac_cv_env_build_alias_set=${build_alias+set}
 
873
ac_cv_env_build_alias_value=$build_alias
 
874
ac_env_host_alias_set=${host_alias+set}
 
875
ac_env_host_alias_value=$host_alias
 
876
ac_cv_env_host_alias_set=${host_alias+set}
 
877
ac_cv_env_host_alias_value=$host_alias
 
878
ac_env_target_alias_set=${target_alias+set}
 
879
ac_env_target_alias_value=$target_alias
 
880
ac_cv_env_target_alias_set=${target_alias+set}
 
881
ac_cv_env_target_alias_value=$target_alias
 
882
ac_env_CC_set=${CC+set}
 
883
ac_env_CC_value=$CC
 
884
ac_cv_env_CC_set=${CC+set}
 
885
ac_cv_env_CC_value=$CC
 
886
ac_env_CFLAGS_set=${CFLAGS+set}
 
887
ac_env_CFLAGS_value=$CFLAGS
 
888
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
889
ac_cv_env_CFLAGS_value=$CFLAGS
 
890
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
891
ac_env_LDFLAGS_value=$LDFLAGS
 
892
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
893
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
894
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
895
ac_env_CPPFLAGS_value=$CPPFLAGS
 
896
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
897
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
898
ac_env_CXX_set=${CXX+set}
 
899
ac_env_CXX_value=$CXX
 
900
ac_cv_env_CXX_set=${CXX+set}
 
901
ac_cv_env_CXX_value=$CXX
 
902
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
903
ac_env_CXXFLAGS_value=$CXXFLAGS
 
904
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
905
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
906
ac_env_CPP_set=${CPP+set}
 
907
ac_env_CPP_value=$CPP
 
908
ac_cv_env_CPP_set=${CPP+set}
 
909
ac_cv_env_CPP_value=$CPP
 
910
 
 
911
#
 
912
# Report the --help message.
 
913
#
 
914
if test "$ac_init_help" = "long"; then
 
915
  # Omit some internal or obsolete options to make the list less imposing.
 
916
  # This message is too long to be a string in the A/UX 3.1 sh.
 
917
  cat <<_ACEOF
 
918
\`configure' configures this package to adapt to many kinds of systems.
 
919
 
 
920
Usage: $0 [OPTION]... [VAR=VALUE]...
 
921
 
 
922
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
923
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
924
 
 
925
Defaults for the options are specified in brackets.
 
926
 
 
927
Configuration:
 
928
  -h, --help              display this help and exit
 
929
      --help=short        display options specific to this package
 
930
      --help=recursive    display the short help of all the included packages
 
931
  -V, --version           display version information and exit
 
932
  -q, --quiet, --silent   do not print \`checking...' messages
 
933
      --cache-file=FILE   cache test results in FILE [disabled]
 
934
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
935
  -n, --no-create         do not create output files
 
936
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
937
 
 
938
_ACEOF
 
939
 
 
940
  cat <<_ACEOF
 
941
Installation directories:
 
942
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
943
                          [$ac_default_prefix]
 
944
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
945
                          [PREFIX]
 
946
 
 
947
By default, \`make install' will install all the files in
 
948
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
949
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
950
for instance \`--prefix=\$HOME'.
 
951
 
 
952
For better control, use the options below.
 
953
 
 
954
Fine tuning of the installation directories:
 
955
  --bindir=DIR           user executables [EPREFIX/bin]
 
956
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
957
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
958
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
959
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
960
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
961
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
962
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
963
  --includedir=DIR       C header files [PREFIX/include]
 
964
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
965
  --infodir=DIR          info documentation [PREFIX/info]
 
966
  --mandir=DIR           man documentation [PREFIX/man]
 
967
_ACEOF
 
968
 
 
969
  cat <<\_ACEOF
 
970
 
 
971
Program names:
 
972
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
973
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
974
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
975
 
 
976
X features:
 
977
  --x-includes=DIR    X include files are in DIR
 
978
  --x-libraries=DIR   X library files are in DIR
 
979
 
 
980
System types:
 
981
  --build=BUILD     configure for building on BUILD [guessed]
 
982
  --host=HOST       build programs to run on HOST [BUILD]
 
983
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
984
_ACEOF
 
985
fi
 
986
 
 
987
if test -n "$ac_init_help"; then
 
988
 
 
989
  cat <<\_ACEOF
 
990
 
 
991
Optional Features:
 
992
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
993
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
994
  --enable-static=PKGS  build static libraries default=no
 
995
  --enable-shared=PKGS  build shared libraries default=yes
 
996
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
997
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
998
 
 
999
Optional Packages:
 
1000
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1001
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1002
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1003
  --with-pic              try to use only PIC/non-PIC objects default=use both
 
1004
  --with-dmalloc          use dmalloc for debugging memory use
 
1005
  --with-efence           use efence for debugging memory use
 
1006
  --with-tcl=DIR          use Tcl binaries from DIR
 
1007
  --with-tk=DIR           use Tk binaries from DIR
 
1008
  --with-extraincludedir=DIR use extra includes from DIR
 
1009
  --with-extralibdir=DIR  use extra libraries from DIR
 
1010
  --with-x                use the X Window System
 
1011
  --with-freetypeincludedir=DIR use FREETYPE includes from DIR
 
1012
  --with-freetypelibdir=DIR use FREETYPE libraries from DIR
 
1013
  --with-iconvincludedir=DIR  use ICONV includes from DIR
 
1014
  --with-iconvlibdir=DIR      use ICONV libraries from DIR
 
1015
  --with-zincludedir=DIR  use Z includes from DIR
 
1016
  --with-zlibdir=DIR      use Z libraries from DIR
 
1017
  --with-pngincludedir=DIR  use PNG includes from DIR
 
1018
  --with-pnglibdir=DIR      use PNG libraries from DIR
 
1019
  --with-jpegincludedir=DIR  use JPEG includes from DIR
 
1020
  --with-jpeglibdir=DIR      use JPEG libraries from DIR
 
1021
  --with-Xawincludedir=DIR  use XAW includes from DIR
 
1022
  --with-Xawlibdir=DIR      use XAW libraries from DIR
 
1023
 
 
1024
Some influential environment variables:
 
1025
  CC          C compiler command
 
1026
  CFLAGS      C compiler flags
 
1027
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1028
              nonstandard directory <lib dir>
 
1029
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1030
              headers in a nonstandard directory <include dir>
 
1031
  CXX         C++ compiler command
 
1032
  CXXFLAGS    C++ compiler flags
 
1033
  CPP         C preprocessor
 
1034
 
 
1035
Use these variables to override the choices made by `configure' or to help
 
1036
it to find libraries and programs with nonstandard names/locations.
 
1037
 
 
1038
_ACEOF
 
1039
fi
 
1040
 
 
1041
if test "$ac_init_help" = "recursive"; then
 
1042
  # If there are subdirs, report their specific --help.
 
1043
  ac_popdir=`pwd`
 
1044
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1045
    test -d $ac_dir || continue
 
1046
    ac_builddir=.
 
1047
 
 
1048
if test "$ac_dir" != .; then
 
1049
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1050
  # A "../" for each directory in $ac_dir_suffix.
 
1051
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1052
else
 
1053
  ac_dir_suffix= ac_top_builddir=
 
1054
fi
 
1055
 
 
1056
case $srcdir in
 
1057
  .)  # No --srcdir option.  We are building in place.
 
1058
    ac_srcdir=.
 
1059
    if test -z "$ac_top_builddir"; then
 
1060
       ac_top_srcdir=.
 
1061
    else
 
1062
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1063
    fi ;;
 
1064
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1065
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1066
    ac_top_srcdir=$srcdir ;;
 
1067
  *) # Relative path.
 
1068
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1069
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1070
esac
 
1071
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
1072
# absolute.
 
1073
ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
1074
ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
 
1075
ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
1076
ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1077
 
 
1078
    cd $ac_dir
 
1079
    # Check for guested configure; otherwise get Cygnus style configure.
 
1080
    if test -f $ac_srcdir/configure.gnu; then
 
1081
      echo
 
1082
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1083
    elif test -f $ac_srcdir/configure; then
 
1084
      echo
 
1085
      $SHELL $ac_srcdir/configure  --help=recursive
 
1086
    elif test -f $ac_srcdir/configure.ac ||
 
1087
           test -f $ac_srcdir/configure.in; then
 
1088
      echo
 
1089
      $ac_configure --help
 
1090
    else
 
1091
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1092
    fi
 
1093
    cd $ac_popdir
 
1094
  done
 
1095
fi
 
1096
 
 
1097
test -n "$ac_init_help" && exit 0
 
1098
if $ac_init_version; then
 
1099
  cat <<\_ACEOF
 
1100
 
 
1101
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
1102
Free Software Foundation, Inc.
 
1103
This configure script is free software; the Free Software Foundation
 
1104
gives unlimited permission to copy, distribute and modify it.
 
1105
_ACEOF
 
1106
  exit 0
 
1107
fi
 
1108
exec 5>config.log
 
1109
cat >&5 <<_ACEOF
 
1110
This file contains any messages produced by compilers while
 
1111
running configure, to aid debugging if configure makes a mistake.
 
1112
 
 
1113
It was created by $as_me, which was
 
1114
generated by GNU Autoconf 2.52f.  Invocation command line was
 
1115
 
 
1116
  $ $0 $@
 
1117
 
 
1118
_ACEOF
 
1119
{
 
1120
cat <<_ASUNAME
 
1121
## --------- ##
 
1122
## Platform. ##
 
1123
## --------- ##
 
1124
 
 
1125
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1126
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1127
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1128
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1129
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1130
 
 
1131
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1132
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1133
 
 
1134
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1135
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1136
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1137
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1138
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1139
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1140
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1141
 
 
1142
_ASUNAME
 
1143
 
 
1144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1145
for as_dir in $PATH
 
1146
do
 
1147
  IFS=$as_save_IFS
 
1148
  test -z "$as_dir" && as_dir=.
 
1149
  echo "PATH: $as_dir"
 
1150
done
 
1151
 
 
1152
} >&5
 
1153
 
 
1154
cat >&5 <<_ACEOF
 
1155
 
 
1156
## ----------- ##
 
1157
## Core tests. ##
 
1158
## ----------- ##
 
1159
 
 
1160
_ACEOF
 
1161
 
 
1162
# Keep a trace of the command line.
 
1163
# Strip out --no-create and --no-recursion so they do not pile up.
 
1164
# Also quote any args containing shell meta-characters.
 
1165
ac_configure_args=
 
1166
ac_sep=
 
1167
for ac_arg
 
1168
do
 
1169
  case $ac_arg in
 
1170
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1171
  | --no-cr | --no-c) ;;
 
1172
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1173
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
1174
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1175
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
 
1176
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1177
    ac_sep=" " ;;
 
1178
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
 
1179
     ac_sep=" " ;;
 
1180
  esac
 
1181
  # Get rid of the leading space.
 
1182
done
 
1183
 
 
1184
# When interrupted or exit'd, cleanup temporary files, and complete
 
1185
# config.log.  We remove comments because anyway the quotes in there
 
1186
# would cause problems or look ugly.
 
1187
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1188
# such as our DU 5.0 friend, will then `close' the trap.
 
1189
trap 'exit_status=$?
 
1190
  # Save into config.log some information that might help in debugging.
 
1191
  {
 
1192
    echo
 
1193
    cat <<\_ASBOX
 
1194
## ---------------- ##
 
1195
## Cache variables. ##
 
1196
## ---------------- ##
 
1197
_ASBOX
 
1198
    echo
 
1199
    # The following way of writing the cache mishandles newlines in values,
 
1200
{
 
1201
  (set) 2>&1 |
 
1202
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1203
    *ac_space=\ *)
 
1204
      sed -n \
 
1205
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1206
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1207
      ;;
 
1208
    *)
 
1209
      sed -n \
 
1210
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1211
      ;;
 
1212
    esac;
 
1213
}
 
1214
    echo
 
1215
    if test -s confdefs.h; then
 
1216
      cat <<\_ASBOX
 
1217
## ----------- ##
 
1218
## confdefs.h. ##
 
1219
## ----------- ##
 
1220
_ASBOX
 
1221
      echo
 
1222
      sed "/^$/d" confdefs.h
 
1223
      echo
 
1224
    fi
 
1225
    test "$ac_signal" != 0 &&
 
1226
      echo "$as_me: caught signal $ac_signal"
 
1227
    echo "$as_me: exit $exit_status"
 
1228
  } >&5
 
1229
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
 
1230
    exit $exit_status
 
1231
     ' 0
 
1232
for ac_signal in 1 2 13 15; do
 
1233
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1234
done
 
1235
ac_signal=0
 
1236
 
 
1237
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1238
rm -rf conftest* confdefs.h
 
1239
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1240
echo >confdefs.h
 
1241
 
 
1242
# Let the site file select an alternate cache file if it wants to.
 
1243
# Prefer explicitly selected file to automatically selected ones.
 
1244
if test -z "$CONFIG_SITE"; then
 
1245
  if test "x$prefix" != xNONE; then
 
1246
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1247
  else
 
1248
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1249
  fi
 
1250
fi
 
1251
for ac_site_file in $CONFIG_SITE; do
 
1252
  if test -r "$ac_site_file"; then
 
1253
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1254
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1255
    sed 's/^/| /' "$ac_site_file" >&5
 
1256
    . "$ac_site_file"
 
1257
  fi
 
1258
done
 
1259
 
 
1260
if test -r "$cache_file"; then
 
1261
  # Some versions of bash will fail to source /dev/null (special
 
1262
  # files actually), so we avoid doing that.
 
1263
  if test -f "$cache_file"; then
 
1264
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1265
echo "$as_me: loading cache $cache_file" >&6;}
 
1266
    case $cache_file in
 
1267
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1268
      *)                      . ./$cache_file;;
 
1269
    esac
 
1270
  fi
 
1271
else
 
1272
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1273
echo "$as_me: creating cache $cache_file" >&6;}
 
1274
  >$cache_file
 
1275
fi
 
1276
 
 
1277
# Check that the precious variables saved in the cache have kept the same
 
1278
# value.
 
1279
ac_cache_corrupted=false
 
1280
for ac_var in `(set) 2>&1 |
 
1281
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1282
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1283
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1284
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1285
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1286
  case $ac_old_set,$ac_new_set in
 
1287
    set,)
 
1288
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1289
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1290
      ac_cache_corrupted=: ;;
 
1291
    ,set)
 
1292
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1293
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1294
      ac_cache_corrupted=: ;;
 
1295
    ,);;
 
1296
    *)
 
1297
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1298
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1299
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1300
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1301
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1302
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1303
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1304
        ac_cache_corrupted=:
 
1305
      fi;;
 
1306
  esac
 
1307
  # Pass precious variables to config.status.  It doesn't matter if
 
1308
  # we pass some twice (in addition to the command line arguments).
 
1309
  if test "$ac_new_set" = set; then
 
1310
    case $ac_new_val in
 
1311
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1312
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
 
1313
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1314
      ;;
 
1315
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
 
1316
       ;;
 
1317
    esac
 
1318
  fi
 
1319
done
 
1320
if $ac_cache_corrupted; then
 
1321
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1322
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1323
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1324
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1325
   { (exit 1); exit 1; }; }
 
1326
fi
 
1327
 
 
1328
ac_ext=c
 
1329
ac_cpp='$CPP $CPPFLAGS'
 
1330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1333
 
 
1334
# Checks for system type
 
1335
ac_aux_dir=
 
1336
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1337
  if test -f $ac_dir/install-sh; then
 
1338
    ac_aux_dir=$ac_dir
 
1339
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1340
    break
 
1341
  elif test -f $ac_dir/install.sh; then
 
1342
    ac_aux_dir=$ac_dir
 
1343
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1344
    break
 
1345
  elif test -f $ac_dir/shtool; then
 
1346
    ac_aux_dir=$ac_dir
 
1347
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1348
    break
 
1349
  fi
 
1350
done
 
1351
if test -z "$ac_aux_dir"; then
 
1352
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1353
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1354
   { (exit 1); exit 1; }; }
 
1355
fi
 
1356
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1357
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1358
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1359
 
 
1360
# Make sure we can run config.sub.
 
1361
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1362
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1363
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1364
   { (exit 1); exit 1; }; }
 
1365
 
 
1366
echo "$as_me:$LINENO: checking build system type" >&5
 
1367
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1368
if test "${ac_cv_build+set}" = set; then
 
1369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1370
else
 
1371
  ac_cv_build_alias=$build_alias
 
1372
test -z "$ac_cv_build_alias" &&
 
1373
  ac_cv_build_alias=`$ac_config_guess`
 
1374
test -z "$ac_cv_build_alias" &&
 
1375
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1376
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1377
   { (exit 1); exit 1; }; }
 
1378
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1379
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
 
1380
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
 
1381
   { (exit 1); exit 1; }; }
 
1382
 
 
1383
fi
 
1384
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1385
echo "${ECHO_T}$ac_cv_build" >&6
 
1386
build=$ac_cv_build
 
1387
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1388
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1389
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1390
 
 
1391
echo "$as_me:$LINENO: checking host system type" >&5
 
1392
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1393
if test "${ac_cv_host+set}" = set; then
 
1394
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1395
else
 
1396
  ac_cv_host_alias=$host_alias
 
1397
test -z "$ac_cv_host_alias" &&
 
1398
  ac_cv_host_alias=$ac_cv_build_alias
 
1399
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1400
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1401
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1402
   { (exit 1); exit 1; }; }
 
1403
 
 
1404
fi
 
1405
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1406
echo "${ECHO_T}$ac_cv_host" >&6
 
1407
host=$ac_cv_host
 
1408
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1409
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1410
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1411
 
 
1412
echo "$as_me:$LINENO: checking target system type" >&5
 
1413
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1414
if test "${ac_cv_target+set}" = set; then
 
1415
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1416
else
 
1417
  ac_cv_target_alias=$target_alias
 
1418
test "x$ac_cv_target_alias" = "x" &&
 
1419
  ac_cv_target_alias=$ac_cv_host_alias
 
1420
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1421
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1422
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1423
   { (exit 1); exit 1; }; }
 
1424
 
 
1425
fi
 
1426
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1427
echo "${ECHO_T}$ac_cv_target" >&6
 
1428
target=$ac_cv_target
 
1429
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1430
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1431
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1432
 
 
1433
# The aliases save the names the user supplied, while $host etc.
 
1434
# will get canonicalized.
 
1435
test -n "$target_alias" &&
 
1436
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1437
    NONENONEs,x,x, &&
 
1438
  program_prefix=${target_alias}-
 
1439
 
 
1440
# AM_CONFIG_HEADER must precede AM_INIT_AUTOMAKE !! Why???
 
1441
 
 
1442
ac_config_headers="$ac_config_headers gvconfig.h"
 
1443
 
 
1444
ac_config_commands="$ac_config_commands default-1"
 
1445
 
 
1446
# Find a good install program.  We prefer a C program (faster),
 
1447
# so one script is as good as another.  But avoid the broken or
 
1448
# incompatible versions:
 
1449
# SysV /etc/install, /usr/sbin/install
 
1450
# SunOS /usr/etc/install
 
1451
# IRIX /sbin/install
 
1452
# AIX /bin/install
 
1453
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1454
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1455
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1456
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1457
# ./install, which can be erroneously created by make from ./install.sh.
 
1458
echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
 
1459
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 
1460
if test -z "$INSTALL"; then
 
1461
if test "${ac_cv_path_install+set}" = set; then
 
1462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1463
else
 
1464
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1465
for as_dir in $PATH
 
1466
do
 
1467
  IFS=$as_save_IFS
 
1468
  test -z "$as_dir" && as_dir=.
 
1469
  # Account for people who put trailing slashes in PATH elements.
 
1470
case $as_dir/ in
 
1471
  ./ | .// | /cC/* | \
 
1472
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1473
  /usr/ucb/* ) ;;
 
1474
  *)
 
1475
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1476
    # Don't use installbsd from OSF since it installs stuff as root
 
1477
    # by default.
 
1478
    for ac_prog in ginstall scoinst install; do
 
1479
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1480
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1481
          if test $ac_prog = install &&
 
1482
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1483
            # AIX install.  It has an incompatible calling convention.
 
1484
            :
 
1485
          elif test $ac_prog = install &&
 
1486
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1487
            # program-specific install script used by HP pwplus--don't use.
 
1488
            :
 
1489
          else
 
1490
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1491
            break 3
 
1492
          fi
 
1493
        fi
 
1494
      done
 
1495
    done
 
1496
    ;;
 
1497
esac
 
1498
done
 
1499
 
 
1500
fi
 
1501
  if test "${ac_cv_path_install+set}" = set; then
 
1502
    INSTALL=$ac_cv_path_install
 
1503
  else
 
1504
    # As a last resort, use the slow shell script.  We don't cache a
 
1505
    # path for INSTALL within a source directory, because that will
 
1506
    # break other packages using the cache if that directory is
 
1507
    # removed, or if the path is relative.
 
1508
    INSTALL=$ac_install_sh
 
1509
  fi
 
1510
fi
 
1511
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1512
echo "${ECHO_T}$INSTALL" >&6
 
1513
 
 
1514
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1515
# It thinks the first close brace ends the variable substitution.
 
1516
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1517
 
 
1518
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1519
 
 
1520
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1521
 
 
1522
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1523
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1524
# Just in case
 
1525
sleep 1
 
1526
echo timestamp > conftestfile
 
1527
# Do `set' in a subshell so we don't clobber the current shell's
 
1528
# arguments.  Must try -L first in case configure is actually a
 
1529
# symlink; some systems play weird games with the mod time of symlinks
 
1530
# (eg FreeBSD returns the mod time of the symlink's containing
 
1531
# directory).
 
1532
if (
 
1533
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1534
   if test "$*" = "X"; then
 
1535
      # -L didn't work.
 
1536
      set X `ls -t $srcdir/configure conftestfile`
 
1537
   fi
 
1538
   if test "$*" != "X $srcdir/configure conftestfile" \
 
1539
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1540
 
 
1541
      # If neither matched, then we have a broken ls.  This can happen
 
1542
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1543
      # broken ls alias from the environment.  This has actually
 
1544
      # happened.  Such a system could not be considered "sane".
 
1545
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1546
alias in your environment" >&5
 
1547
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1548
alias in your environment" >&2;}
 
1549
   { (exit 1); exit 1; }; }
 
1550
   fi
 
1551
 
 
1552
   test "$2" = conftestfile
 
1553
   )
 
1554
then
 
1555
   # Ok.
 
1556
   :
 
1557
else
 
1558
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1559
Check your system clock" >&5
 
1560
echo "$as_me: error: newly created file is older than distributed files!
 
1561
Check your system clock" >&2;}
 
1562
   { (exit 1); exit 1; }; }
 
1563
fi
 
1564
rm -f conftest*
 
1565
echo "$as_me:$LINENO: result: yes" >&5
 
1566
echo "${ECHO_T}yes" >&6
 
1567
test "$program_prefix" != NONE &&
 
1568
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1569
# Use a double $ so make ignores it.
 
1570
test "$program_suffix" != NONE &&
 
1571
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1572
# Double any \ or $.  echo might interpret backslashes.
 
1573
# By default was `s,x,x', remove it if useless.
 
1574
cat <<\_ACEOF >conftest.sed
 
1575
s/[\\$]/&&/g;s/;s,x,x,$//
 
1576
_ACEOF
 
1577
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1578
rm conftest.sed
 
1579
 
 
1580
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
1581
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
 
1582
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1583
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1585
else
 
1586
  cat >conftest.make <<\_ACEOF
 
1587
all:
 
1588
        @echo 'ac_maketemp="${MAKE}"'
 
1589
_ACEOF
 
1590
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1591
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1592
if test -n "$ac_maketemp"; then
 
1593
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1594
else
 
1595
  eval ac_cv_prog_make_${ac_make}_set=no
 
1596
fi
 
1597
rm -f conftest.make
 
1598
fi
 
1599
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1600
  echo "$as_me:$LINENO: result: yes" >&5
 
1601
echo "${ECHO_T}yes" >&6
 
1602
  SET_MAKE=
 
1603
else
 
1604
  echo "$as_me:$LINENO: result: no" >&5
 
1605
echo "${ECHO_T}no" >&6
 
1606
  SET_MAKE="MAKE=${MAKE-make}"
 
1607
fi
 
1608
 
 
1609
PACKAGE=graphviz
 
1610
 
 
1611
VERSION=1.7.16
 
1612
 
 
1613
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
 
1614
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1615
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1616
   { (exit 1); exit 1; }; }
 
1617
fi
 
1618
 
 
1619
cat >>confdefs.h <<_ACEOF
 
1620
#define PACKAGE "$PACKAGE"
 
1621
_ACEOF
 
1622
 
 
1623
cat >>confdefs.h <<_ACEOF
 
1624
#define VERSION "$VERSION"
 
1625
_ACEOF
 
1626
 
 
1627
missing_dir=`cd $ac_aux_dir && pwd`
 
1628
echo "$as_me:$LINENO: checking for working aclocal" >&5
 
1629
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
 
1630
# Run test in a subshell; some versions of sh will print an error if
 
1631
# an executable is not found, even if stderr is redirected.
 
1632
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1633
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
 
1634
   ACLOCAL=aclocal
 
1635
   echo "$as_me:$LINENO: result: found" >&5
 
1636
echo "${ECHO_T}found" >&6
 
1637
else
 
1638
   ACLOCAL="$missing_dir/missing aclocal"
 
1639
   echo "$as_me:$LINENO: result: missing" >&5
 
1640
echo "${ECHO_T}missing" >&6
 
1641
fi
 
1642
 
 
1643
echo "$as_me:$LINENO: checking for working autoconf" >&5
 
1644
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
 
1645
# Run test in a subshell; some versions of sh will print an error if
 
1646
# an executable is not found, even if stderr is redirected.
 
1647
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1648
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
 
1649
   AUTOCONF=autoconf
 
1650
   echo "$as_me:$LINENO: result: found" >&5
 
1651
echo "${ECHO_T}found" >&6
 
1652
else
 
1653
   AUTOCONF="$missing_dir/missing autoconf"
 
1654
   echo "$as_me:$LINENO: result: missing" >&5
 
1655
echo "${ECHO_T}missing" >&6
 
1656
fi
 
1657
 
 
1658
echo "$as_me:$LINENO: checking for working automake" >&5
 
1659
echo $ECHO_N "checking for working automake... $ECHO_C" >&6
 
1660
# Run test in a subshell; some versions of sh will print an error if
 
1661
# an executable is not found, even if stderr is redirected.
 
1662
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1663
if (automake --version) < /dev/null > /dev/null 2>&1; then
 
1664
   AUTOMAKE=automake
 
1665
   echo "$as_me:$LINENO: result: found" >&5
 
1666
echo "${ECHO_T}found" >&6
 
1667
else
 
1668
   AUTOMAKE="$missing_dir/missing automake"
 
1669
   echo "$as_me:$LINENO: result: missing" >&5
 
1670
echo "${ECHO_T}missing" >&6
 
1671
fi
 
1672
 
 
1673
echo "$as_me:$LINENO: checking for working autoheader" >&5
 
1674
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
 
1675
# Run test in a subshell; some versions of sh will print an error if
 
1676
# an executable is not found, even if stderr is redirected.
 
1677
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1678
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
 
1679
   AUTOHEADER=autoheader
 
1680
   echo "$as_me:$LINENO: result: found" >&5
 
1681
echo "${ECHO_T}found" >&6
 
1682
else
 
1683
   AUTOHEADER="$missing_dir/missing autoheader"
 
1684
   echo "$as_me:$LINENO: result: missing" >&5
 
1685
echo "${ECHO_T}missing" >&6
 
1686
fi
 
1687
 
 
1688
echo "$as_me:$LINENO: checking for working makeinfo" >&5
 
1689
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
 
1690
# Run test in a subshell; some versions of sh will print an error if
 
1691
# an executable is not found, even if stderr is redirected.
 
1692
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1693
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
 
1694
   MAKEINFO=makeinfo
 
1695
   echo "$as_me:$LINENO: result: found" >&5
 
1696
echo "${ECHO_T}found" >&6
 
1697
else
 
1698
   MAKEINFO="$missing_dir/missing makeinfo"
 
1699
   echo "$as_me:$LINENO: result: missing" >&5
 
1700
echo "${ECHO_T}missing" >&6
 
1701
fi
 
1702
 
 
1703
# Set of all available languages
 
1704
# ALL_LINGUAS=""
 
1705
 
 
1706
# Build shared libs only
 
1707
# Check whether --enable-static or --disable-static was given.
 
1708
if test "${enable_static+set}" = set; then
 
1709
  enableval="$enable_static"
 
1710
  p=${PACKAGE-default}
 
1711
case $enableval in
 
1712
yes) enable_static=yes ;;
 
1713
no) enable_static=no ;;
 
1714
*)
 
1715
  enable_static=no
 
1716
  # Look at the argument we got.  We use all the common list separators.
 
1717
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
1718
  for pkg in $enableval; do
 
1719
    if test "X$pkg" = "X$p"; then
 
1720
      enable_static=yes
 
1721
    fi
 
1722
  done
 
1723
  IFS="$ac_save_ifs"
 
1724
  ;;
 
1725
esac
 
1726
else
 
1727
  enable_static=no
 
1728
fi;
 
1729
 
 
1730
# checks for programs
 
1731
ac_ext=c
 
1732
ac_cpp='$CPP $CPPFLAGS'
 
1733
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1734
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1735
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1736
if test -n "$ac_tool_prefix"; then
 
1737
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1738
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1739
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1740
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1741
if test "${ac_cv_prog_CC+set}" = set; then
 
1742
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1743
else
 
1744
  if test -n "$CC"; then
 
1745
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1746
else
 
1747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1748
for as_dir in $PATH
 
1749
do
 
1750
  IFS=$as_save_IFS
 
1751
  test -z "$as_dir" && as_dir=.
 
1752
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1753
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1754
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1755
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1756
    break 2
 
1757
  fi
 
1758
done
 
1759
done
 
1760
 
 
1761
fi
 
1762
fi
 
1763
CC=$ac_cv_prog_CC
 
1764
if test -n "$CC"; then
 
1765
  echo "$as_me:$LINENO: result: $CC" >&5
 
1766
echo "${ECHO_T}$CC" >&6
 
1767
else
 
1768
  echo "$as_me:$LINENO: result: no" >&5
 
1769
echo "${ECHO_T}no" >&6
 
1770
fi
 
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 $as_executable_p "$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
 
 
1799
fi
 
1800
fi
 
1801
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1802
if test -n "$ac_ct_CC"; then
 
1803
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1804
echo "${ECHO_T}$ac_ct_CC" >&6
 
1805
else
 
1806
  echo "$as_me:$LINENO: result: no" >&5
 
1807
echo "${ECHO_T}no" >&6
 
1808
fi
 
1809
 
 
1810
  CC=$ac_ct_CC
 
1811
else
 
1812
  CC="$ac_cv_prog_CC"
 
1813
fi
 
1814
 
 
1815
if test -z "$CC"; then
 
1816
  if test -n "$ac_tool_prefix"; then
 
1817
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1818
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1819
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1820
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1821
if test "${ac_cv_prog_CC+set}" = set; then
 
1822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1823
else
 
1824
  if test -n "$CC"; then
 
1825
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1826
else
 
1827
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1828
for as_dir in $PATH
 
1829
do
 
1830
  IFS=$as_save_IFS
 
1831
  test -z "$as_dir" && as_dir=.
 
1832
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1833
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1834
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1835
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1836
    break 2
 
1837
  fi
 
1838
done
 
1839
done
 
1840
 
 
1841
fi
 
1842
fi
 
1843
CC=$ac_cv_prog_CC
 
1844
if test -n "$CC"; then
 
1845
  echo "$as_me:$LINENO: result: $CC" >&5
 
1846
echo "${ECHO_T}$CC" >&6
 
1847
else
 
1848
  echo "$as_me:$LINENO: result: no" >&5
 
1849
echo "${ECHO_T}no" >&6
 
1850
fi
 
1851
 
 
1852
fi
 
1853
if test -z "$ac_cv_prog_CC"; then
 
1854
  ac_ct_CC=$CC
 
1855
  # Extract the first word of "cc", so it can be a program name with args.
 
1856
set dummy cc; ac_word=$2
 
1857
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1858
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1859
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1860
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1861
else
 
1862
  if test -n "$ac_ct_CC"; then
 
1863
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1864
else
 
1865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1866
for as_dir in $PATH
 
1867
do
 
1868
  IFS=$as_save_IFS
 
1869
  test -z "$as_dir" && as_dir=.
 
1870
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1871
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1872
    ac_cv_prog_ac_ct_CC="cc"
 
1873
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1874
    break 2
 
1875
  fi
 
1876
done
 
1877
done
 
1878
 
 
1879
fi
 
1880
fi
 
1881
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1882
if test -n "$ac_ct_CC"; then
 
1883
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1884
echo "${ECHO_T}$ac_ct_CC" >&6
 
1885
else
 
1886
  echo "$as_me:$LINENO: result: no" >&5
 
1887
echo "${ECHO_T}no" >&6
 
1888
fi
 
1889
 
 
1890
  CC=$ac_ct_CC
 
1891
else
 
1892
  CC="$ac_cv_prog_CC"
 
1893
fi
 
1894
 
 
1895
fi
 
1896
if test -z "$CC"; then
 
1897
  # Extract the first word of "cc", so it can be a program name with args.
 
1898
set dummy cc; ac_word=$2
 
1899
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1900
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1901
if test "${ac_cv_prog_CC+set}" = set; then
 
1902
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1903
else
 
1904
  if test -n "$CC"; then
 
1905
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1906
else
 
1907
  ac_prog_rejected=no
 
1908
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1909
for as_dir in $PATH
 
1910
do
 
1911
  IFS=$as_save_IFS
 
1912
  test -z "$as_dir" && as_dir=.
 
1913
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1914
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1915
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1916
       ac_prog_rejected=yes
 
1917
       continue
 
1918
     fi
 
1919
    ac_cv_prog_CC="cc"
 
1920
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1921
    break 2
 
1922
  fi
 
1923
done
 
1924
done
 
1925
 
 
1926
if test $ac_prog_rejected = yes; then
 
1927
  # We found a bogon in the path, so make sure we never use it.
 
1928
  set dummy $ac_cv_prog_CC
 
1929
  shift
 
1930
  if test $# != 0; then
 
1931
    # We chose a different compiler from the bogus one.
 
1932
    # However, it has the same basename, so the bogon will be chosen
 
1933
    # first if we set CC to just the basename; use the full file name.
 
1934
    shift
 
1935
    set dummy "$as_dir/$ac_word" ${1+"$@"}
 
1936
    shift
 
1937
    ac_cv_prog_CC="$@"
 
1938
  fi
 
1939
fi
 
1940
fi
 
1941
fi
 
1942
CC=$ac_cv_prog_CC
 
1943
if test -n "$CC"; then
 
1944
  echo "$as_me:$LINENO: result: $CC" >&5
 
1945
echo "${ECHO_T}$CC" >&6
 
1946
else
 
1947
  echo "$as_me:$LINENO: result: no" >&5
 
1948
echo "${ECHO_T}no" >&6
 
1949
fi
 
1950
 
 
1951
fi
 
1952
if test -z "$CC"; then
 
1953
  if test -n "$ac_tool_prefix"; then
 
1954
  for ac_prog in cl
 
1955
  do
 
1956
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1957
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1958
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1959
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1960
if test "${ac_cv_prog_CC+set}" = set; then
 
1961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1962
else
 
1963
  if test -n "$CC"; then
 
1964
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1965
else
 
1966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1967
for as_dir in $PATH
 
1968
do
 
1969
  IFS=$as_save_IFS
 
1970
  test -z "$as_dir" && as_dir=.
 
1971
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1972
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1973
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1974
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1975
    break 2
 
1976
  fi
 
1977
done
 
1978
done
 
1979
 
 
1980
fi
 
1981
fi
 
1982
CC=$ac_cv_prog_CC
 
1983
if test -n "$CC"; then
 
1984
  echo "$as_me:$LINENO: result: $CC" >&5
 
1985
echo "${ECHO_T}$CC" >&6
 
1986
else
 
1987
  echo "$as_me:$LINENO: result: no" >&5
 
1988
echo "${ECHO_T}no" >&6
 
1989
fi
 
1990
 
 
1991
    test -n "$CC" && break
 
1992
  done
 
1993
fi
 
1994
if test -z "$CC"; then
 
1995
  ac_ct_CC=$CC
 
1996
  for ac_prog in cl
 
1997
do
 
1998
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1999
set dummy $ac_prog; ac_word=$2
 
2000
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2002
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2003
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2004
else
 
2005
  if test -n "$ac_ct_CC"; then
 
2006
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2007
else
 
2008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2009
for as_dir in $PATH
 
2010
do
 
2011
  IFS=$as_save_IFS
 
2012
  test -z "$as_dir" && as_dir=.
 
2013
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2014
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2015
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2016
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2017
    break 2
 
2018
  fi
 
2019
done
 
2020
done
 
2021
 
 
2022
fi
 
2023
fi
 
2024
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2025
if test -n "$ac_ct_CC"; then
 
2026
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2027
echo "${ECHO_T}$ac_ct_CC" >&6
 
2028
else
 
2029
  echo "$as_me:$LINENO: result: no" >&5
 
2030
echo "${ECHO_T}no" >&6
 
2031
fi
 
2032
 
 
2033
  test -n "$ac_ct_CC" && break
 
2034
done
 
2035
 
 
2036
  CC=$ac_ct_CC
 
2037
fi
 
2038
 
 
2039
fi
 
2040
 
 
2041
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
 
2042
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
2043
   { (exit 1); exit 1; }; }
 
2044
 
 
2045
# Provide some information about the compiler.
 
2046
echo "$as_me:$LINENO:" \
 
2047
     "checking for C compiler version" >&5
 
2048
ac_compiler=`set X $ac_compile; echo $2`
 
2049
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2050
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2051
  ac_status=$?
 
2052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2053
  (exit $ac_status); }
 
2054
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2055
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2056
  ac_status=$?
 
2057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2058
  (exit $ac_status); }
 
2059
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2060
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2061
  ac_status=$?
 
2062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2063
  (exit $ac_status); }
 
2064
 
 
2065
cat >conftest.$ac_ext <<_ACEOF
 
2066
#line $LINENO "configure"
 
2067
#include "confdefs.h"
 
2068
 
 
2069
#ifdef F77_DUMMY_MAIN
 
2070
#  ifdef __cplusplus
 
2071
     extern "C"
 
2072
#  endif
 
2073
   int F77_DUMMY_MAIN() { return 1; }
 
2074
#endif
 
2075
int
 
2076
main ()
 
2077
{
 
2078
 
 
2079
  ;
 
2080
  return 0;
 
2081
}
 
2082
_ACEOF
 
2083
ac_clean_files_save=$ac_clean_files
 
2084
ac_clean_files="$ac_clean_files a.out a.exe"
 
2085
# Try to create an executable without -o first, disregard a.out.
 
2086
# It will help us diagnose broken compilers, and finding out an intuition
 
2087
# of exeext.
 
2088
echo "$as_me:$LINENO: checking for C compiler default output" >&5
 
2089
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2090
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2091
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2092
  (eval $ac_link_default) 2>&5
 
2093
  ac_status=$?
 
2094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2095
  (exit $ac_status); }; then
 
2096
  # Find the output, starting from the most likely.  This scheme is
 
2097
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2098
# resort.
 
2099
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
 
2100
                ls a.out conftest 2>/dev/null;
 
2101
                ls a.* conftest.* 2>/dev/null`; do
 
2102
  case $ac_file in
 
2103
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
 
2104
    a.out ) # We found the default executable, but exeext='' is most
 
2105
            # certainly right.
 
2106
            break;;
 
2107
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2108
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
 
2109
          export ac_cv_exeext
 
2110
          break;;
 
2111
    * ) break;;
 
2112
  esac
 
2113
done
 
2114
else
 
2115
  echo "$as_me: failed program was:" >&5
 
2116
cat conftest.$ac_ext >&5
 
2117
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
 
2118
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
2119
   { (exit 77); exit 77; }; }
 
2120
fi
 
2121
 
 
2122
ac_exeext=$ac_cv_exeext
 
2123
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2124
echo "${ECHO_T}$ac_file" >&6
 
2125
 
 
2126
# Check the compiler produces executables we can run.  If not, either
 
2127
# the compiler is broken, or we cross compile.
 
2128
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2129
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2130
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2131
# If not cross compiling, check that we can run a simple program.
 
2132
if test "$cross_compiling" != yes; then
 
2133
  if { ac_try='./$ac_file'
 
2134
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2135
  (eval $ac_try) 2>&5
 
2136
  ac_status=$?
 
2137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2138
  (exit $ac_status); }; }; then
 
2139
    cross_compiling=no
 
2140
  else
 
2141
    if test "$cross_compiling" = maybe; then
 
2142
        cross_compiling=yes
 
2143
    else
 
2144
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2145
If you meant to cross compile, use \`--host'." >&5
 
2146
echo "$as_me: error: cannot run C compiled programs.
 
2147
If you meant to cross compile, use \`--host'." >&2;}
 
2148
   { (exit 1); exit 1; }; }
 
2149
    fi
 
2150
  fi
 
2151
fi
 
2152
echo "$as_me:$LINENO: result: yes" >&5
 
2153
echo "${ECHO_T}yes" >&6
 
2154
 
 
2155
rm -f a.out a.exe conftest$ac_cv_exeext
 
2156
ac_clean_files=$ac_clean_files_save
 
2157
# Check the compiler produces executables we can run.  If not, either
 
2158
# the compiler is broken, or we cross compile.
 
2159
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2160
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2161
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2162
echo "${ECHO_T}$cross_compiling" >&6
 
2163
 
 
2164
echo "$as_me:$LINENO: checking for executable suffix" >&5
 
2165
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
 
2166
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2167
  (eval $ac_link) 2>&5
 
2168
  ac_status=$?
 
2169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2170
  (exit $ac_status); }; then
 
2171
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2172
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2173
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2174
# `rm'.
 
2175
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
2176
  case $ac_file in
 
2177
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2178
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2179
          export ac_cv_exeext
 
2180
          break;;
 
2181
    * ) break;;
 
2182
  esac
 
2183
done
 
2184
else
 
2185
  { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
 
2186
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 
2187
   { (exit 1); exit 1; }; }
 
2188
fi
 
2189
 
 
2190
rm -f conftest$ac_cv_exeext
 
2191
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2192
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2193
 
 
2194
rm -f conftest.$ac_ext
 
2195
EXEEXT=$ac_cv_exeext
 
2196
ac_exeext=$EXEEXT
 
2197
echo "$as_me:$LINENO: checking for object suffix" >&5
 
2198
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 
2199
if test "${ac_cv_objext+set}" = set; then
 
2200
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2201
else
 
2202
  cat >conftest.$ac_ext <<_ACEOF
 
2203
#line $LINENO "configure"
 
2204
#include "confdefs.h"
 
2205
 
 
2206
#ifdef F77_DUMMY_MAIN
 
2207
#  ifdef __cplusplus
 
2208
     extern "C"
 
2209
#  endif
 
2210
   int F77_DUMMY_MAIN() { return 1; }
 
2211
#endif
 
2212
int
 
2213
main ()
 
2214
{
 
2215
 
 
2216
  ;
 
2217
  return 0;
 
2218
}
 
2219
_ACEOF
 
2220
rm -f conftest.o conftest.obj
 
2221
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2222
  (eval $ac_compile) 2>&5
 
2223
  ac_status=$?
 
2224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2225
  (exit $ac_status); }; then
 
2226
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2227
  case $ac_file in
 
2228
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2229
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2230
       break;;
 
2231
  esac
 
2232
done
 
2233
else
 
2234
  echo "$as_me: failed program was:" >&5
 
2235
cat conftest.$ac_ext >&5
 
2236
{ { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
 
2237
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 
2238
   { (exit 1); exit 1; }; }
 
2239
fi
 
2240
 
 
2241
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2242
fi
 
2243
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2244
echo "${ECHO_T}$ac_cv_objext" >&6
 
2245
OBJEXT=$ac_cv_objext
 
2246
ac_objext=$OBJEXT
 
2247
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2248
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2249
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2250
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2251
else
 
2252
  cat >conftest.$ac_ext <<_ACEOF
 
2253
#line $LINENO "configure"
 
2254
#include "confdefs.h"
 
2255
 
 
2256
#ifdef F77_DUMMY_MAIN
 
2257
#  ifdef __cplusplus
 
2258
     extern "C"
 
2259
#  endif
 
2260
   int F77_DUMMY_MAIN() { return 1; }
 
2261
#endif
 
2262
int
 
2263
main ()
 
2264
{
 
2265
#ifndef __GNUC__
 
2266
       choke me
 
2267
#endif
 
2268
 
 
2269
  ;
 
2270
  return 0;
 
2271
}
 
2272
_ACEOF
 
2273
rm -f conftest.$ac_objext
 
2274
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2275
  (eval $ac_compile) 2>&5
 
2276
  ac_status=$?
 
2277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2278
  (exit $ac_status); } &&
 
2279
         { ac_try='test -s conftest.$ac_objext'
 
2280
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2281
  (eval $ac_try) 2>&5
 
2282
  ac_status=$?
 
2283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2284
  (exit $ac_status); }; }; then
 
2285
  ac_compiler_gnu=yes
 
2286
else
 
2287
  echo "$as_me: failed program was:" >&5
 
2288
cat conftest.$ac_ext >&5
 
2289
ac_compiler_gnu=no
 
2290
fi
 
2291
rm -f conftest.$ac_objext conftest.$ac_ext
 
2292
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2293
 
 
2294
fi
 
2295
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2296
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2297
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2298
ac_test_CFLAGS=${CFLAGS+set}
 
2299
ac_save_CFLAGS=$CFLAGS
 
2300
CFLAGS="-g"
 
2301
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2302
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2303
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2305
else
 
2306
  cat >conftest.$ac_ext <<_ACEOF
 
2307
#line $LINENO "configure"
 
2308
#include "confdefs.h"
 
2309
 
 
2310
#ifdef F77_DUMMY_MAIN
 
2311
#  ifdef __cplusplus
 
2312
     extern "C"
 
2313
#  endif
 
2314
   int F77_DUMMY_MAIN() { return 1; }
 
2315
#endif
 
2316
int
 
2317
main ()
 
2318
{
 
2319
 
 
2320
  ;
 
2321
  return 0;
 
2322
}
 
2323
_ACEOF
 
2324
rm -f conftest.$ac_objext
 
2325
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2326
  (eval $ac_compile) 2>&5
 
2327
  ac_status=$?
 
2328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2329
  (exit $ac_status); } &&
 
2330
         { ac_try='test -s conftest.$ac_objext'
 
2331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2332
  (eval $ac_try) 2>&5
 
2333
  ac_status=$?
 
2334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2335
  (exit $ac_status); }; }; then
 
2336
  ac_cv_prog_cc_g=yes
 
2337
else
 
2338
  echo "$as_me: failed program was:" >&5
 
2339
cat conftest.$ac_ext >&5
 
2340
ac_cv_prog_cc_g=no
 
2341
fi
 
2342
rm -f conftest.$ac_objext conftest.$ac_ext
 
2343
fi
 
2344
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2345
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2346
if test "$ac_test_CFLAGS" = set; then
 
2347
  CFLAGS=$ac_save_CFLAGS
 
2348
elif test $ac_cv_prog_cc_g = yes; then
 
2349
  if test "$GCC" = yes; then
 
2350
    CFLAGS="-g -O2"
 
2351
  else
 
2352
    CFLAGS="-g"
 
2353
  fi
 
2354
else
 
2355
  if test "$GCC" = yes; then
 
2356
    CFLAGS="-O2"
 
2357
  else
 
2358
    CFLAGS=
 
2359
  fi
 
2360
fi
 
2361
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2362
# in C++ we need to declare it.  In case someone uses the same compiler
 
2363
# for both compiling C and C++ we need to have the C++ compiler decide
 
2364
# the declaration of exit, since it's the most demanding environment.
 
2365
cat >conftest.$ac_ext <<_ACEOF
 
2366
#ifndef __cplusplus
 
2367
  choke me
 
2368
#endif
 
2369
_ACEOF
 
2370
rm -f conftest.$ac_objext
 
2371
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2372
  (eval $ac_compile) 2>&5
 
2373
  ac_status=$?
 
2374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2375
  (exit $ac_status); } &&
 
2376
         { ac_try='test -s conftest.$ac_objext'
 
2377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2378
  (eval $ac_try) 2>&5
 
2379
  ac_status=$?
 
2380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2381
  (exit $ac_status); }; }; then
 
2382
  for ac_declaration in \
 
2383
   ''\
 
2384
   '#include <stdlib.h>' \
 
2385
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2386
   'extern "C" void std::exit (int); using std::exit;' \
 
2387
   'extern "C" void exit (int) throw ();' \
 
2388
   'extern "C" void exit (int);' \
 
2389
   'void exit (int);'
 
2390
do
 
2391
  cat >conftest.$ac_ext <<_ACEOF
 
2392
#line $LINENO "configure"
 
2393
#include "confdefs.h"
 
2394
#include <stdlib.h>
 
2395
$ac_declaration
 
2396
#ifdef F77_DUMMY_MAIN
 
2397
#  ifdef __cplusplus
 
2398
     extern "C"
 
2399
#  endif
 
2400
   int F77_DUMMY_MAIN() { return 1; }
 
2401
#endif
 
2402
int
 
2403
main ()
 
2404
{
 
2405
exit (42);
 
2406
  ;
 
2407
  return 0;
 
2408
}
 
2409
_ACEOF
 
2410
rm -f conftest.$ac_objext
 
2411
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2412
  (eval $ac_compile) 2>&5
 
2413
  ac_status=$?
 
2414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2415
  (exit $ac_status); } &&
 
2416
         { ac_try='test -s conftest.$ac_objext'
 
2417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2418
  (eval $ac_try) 2>&5
 
2419
  ac_status=$?
 
2420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2421
  (exit $ac_status); }; }; then
 
2422
  :
 
2423
else
 
2424
  echo "$as_me: failed program was:" >&5
 
2425
cat conftest.$ac_ext >&5
 
2426
continue
 
2427
fi
 
2428
rm -f conftest.$ac_objext conftest.$ac_ext
 
2429
  cat >conftest.$ac_ext <<_ACEOF
 
2430
#line $LINENO "configure"
 
2431
#include "confdefs.h"
 
2432
$ac_declaration
 
2433
#ifdef F77_DUMMY_MAIN
 
2434
#  ifdef __cplusplus
 
2435
     extern "C"
 
2436
#  endif
 
2437
   int F77_DUMMY_MAIN() { return 1; }
 
2438
#endif
 
2439
int
 
2440
main ()
 
2441
{
 
2442
exit (42);
 
2443
  ;
 
2444
  return 0;
 
2445
}
 
2446
_ACEOF
 
2447
rm -f conftest.$ac_objext
 
2448
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2449
  (eval $ac_compile) 2>&5
 
2450
  ac_status=$?
 
2451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2452
  (exit $ac_status); } &&
 
2453
         { ac_try='test -s conftest.$ac_objext'
 
2454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2455
  (eval $ac_try) 2>&5
 
2456
  ac_status=$?
 
2457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2458
  (exit $ac_status); }; }; then
 
2459
  break
 
2460
else
 
2461
  echo "$as_me: failed program was:" >&5
 
2462
cat conftest.$ac_ext >&5
 
2463
fi
 
2464
rm -f conftest.$ac_objext conftest.$ac_ext
 
2465
done
 
2466
rm -f conftest*
 
2467
if test -n "$ac_declaration"; then
 
2468
  echo '#ifdef __cplusplus' >>confdefs.h
 
2469
  echo $ac_declaration      >>confdefs.h
 
2470
  echo '#endif'             >>confdefs.h
 
2471
fi
 
2472
 
 
2473
else
 
2474
  echo "$as_me: failed program was:" >&5
 
2475
cat conftest.$ac_ext >&5
 
2476
fi
 
2477
rm -f conftest.$ac_objext conftest.$ac_ext
 
2478
ac_ext=c
 
2479
ac_cpp='$CPP $CPPFLAGS'
 
2480
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2481
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2482
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2483
 
 
2484
ac_ext=cc
 
2485
ac_cpp='$CXXCPP $CPPFLAGS'
 
2486
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2487
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2488
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2489
if test -n "$ac_tool_prefix"; then
 
2490
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2491
  do
 
2492
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2493
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2494
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2495
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2496
if test "${ac_cv_prog_CXX+set}" = set; then
 
2497
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2498
else
 
2499
  if test -n "$CXX"; then
 
2500
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2501
else
 
2502
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2503
for as_dir in $PATH
 
2504
do
 
2505
  IFS=$as_save_IFS
 
2506
  test -z "$as_dir" && as_dir=.
 
2507
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2508
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2509
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2510
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2511
    break 2
 
2512
  fi
 
2513
done
 
2514
done
 
2515
 
 
2516
fi
 
2517
fi
 
2518
CXX=$ac_cv_prog_CXX
 
2519
if test -n "$CXX"; then
 
2520
  echo "$as_me:$LINENO: result: $CXX" >&5
 
2521
echo "${ECHO_T}$CXX" >&6
 
2522
else
 
2523
  echo "$as_me:$LINENO: result: no" >&5
 
2524
echo "${ECHO_T}no" >&6
 
2525
fi
 
2526
 
 
2527
    test -n "$CXX" && break
 
2528
  done
 
2529
fi
 
2530
if test -z "$CXX"; then
 
2531
  ac_ct_CXX=$CXX
 
2532
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2533
do
 
2534
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2535
set dummy $ac_prog; ac_word=$2
 
2536
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2538
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2540
else
 
2541
  if test -n "$ac_ct_CXX"; then
 
2542
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2543
else
 
2544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2545
for as_dir in $PATH
 
2546
do
 
2547
  IFS=$as_save_IFS
 
2548
  test -z "$as_dir" && as_dir=.
 
2549
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2550
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2551
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2552
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2553
    break 2
 
2554
  fi
 
2555
done
 
2556
done
 
2557
 
 
2558
fi
 
2559
fi
 
2560
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2561
if test -n "$ac_ct_CXX"; then
 
2562
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2563
echo "${ECHO_T}$ac_ct_CXX" >&6
 
2564
else
 
2565
  echo "$as_me:$LINENO: result: no" >&5
 
2566
echo "${ECHO_T}no" >&6
 
2567
fi
 
2568
 
 
2569
  test -n "$ac_ct_CXX" && break
 
2570
done
 
2571
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
2572
 
 
2573
  CXX=$ac_ct_CXX
 
2574
fi
 
2575
 
 
2576
# Provide some information about the compiler.
 
2577
echo "$as_me:$LINENO:" \
 
2578
     "checking for C++ compiler version" >&5
 
2579
ac_compiler=`set X $ac_compile; echo $2`
 
2580
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2581
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2582
  ac_status=$?
 
2583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2584
  (exit $ac_status); }
 
2585
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2586
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2587
  ac_status=$?
 
2588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2589
  (exit $ac_status); }
 
2590
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2591
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2592
  ac_status=$?
 
2593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2594
  (exit $ac_status); }
 
2595
 
 
2596
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
2597
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
2598
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
2599
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2600
else
 
2601
  cat >conftest.$ac_ext <<_ACEOF
 
2602
#line $LINENO "configure"
 
2603
#include "confdefs.h"
 
2604
 
 
2605
#ifdef F77_DUMMY_MAIN
 
2606
#  ifdef __cplusplus
 
2607
     extern "C"
 
2608
#  endif
 
2609
   int F77_DUMMY_MAIN() { return 1; }
 
2610
#endif
 
2611
int
 
2612
main ()
 
2613
{
 
2614
#ifndef __GNUC__
 
2615
       choke me
 
2616
#endif
 
2617
 
 
2618
  ;
 
2619
  return 0;
 
2620
}
 
2621
_ACEOF
 
2622
rm -f conftest.$ac_objext
 
2623
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2624
  (eval $ac_compile) 2>&5
 
2625
  ac_status=$?
 
2626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2627
  (exit $ac_status); } &&
 
2628
         { ac_try='test -s conftest.$ac_objext'
 
2629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2630
  (eval $ac_try) 2>&5
 
2631
  ac_status=$?
 
2632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2633
  (exit $ac_status); }; }; then
 
2634
  ac_compiler_gnu=yes
 
2635
else
 
2636
  echo "$as_me: failed program was:" >&5
 
2637
cat conftest.$ac_ext >&5
 
2638
ac_compiler_gnu=no
 
2639
fi
 
2640
rm -f conftest.$ac_objext conftest.$ac_ext
 
2641
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
2642
 
 
2643
fi
 
2644
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
2645
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
2646
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
2647
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
2648
ac_save_CXXFLAGS=$CXXFLAGS
 
2649
CXXFLAGS="-g"
 
2650
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
2651
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
2652
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
2653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2654
else
 
2655
  cat >conftest.$ac_ext <<_ACEOF
 
2656
#line $LINENO "configure"
 
2657
#include "confdefs.h"
 
2658
 
 
2659
#ifdef F77_DUMMY_MAIN
 
2660
#  ifdef __cplusplus
 
2661
     extern "C"
 
2662
#  endif
 
2663
   int F77_DUMMY_MAIN() { return 1; }
 
2664
#endif
 
2665
int
 
2666
main ()
 
2667
{
 
2668
 
 
2669
  ;
 
2670
  return 0;
 
2671
}
 
2672
_ACEOF
 
2673
rm -f conftest.$ac_objext
 
2674
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2675
  (eval $ac_compile) 2>&5
 
2676
  ac_status=$?
 
2677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2678
  (exit $ac_status); } &&
 
2679
         { ac_try='test -s conftest.$ac_objext'
 
2680
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2681
  (eval $ac_try) 2>&5
 
2682
  ac_status=$?
 
2683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2684
  (exit $ac_status); }; }; then
 
2685
  ac_cv_prog_cxx_g=yes
 
2686
else
 
2687
  echo "$as_me: failed program was:" >&5
 
2688
cat conftest.$ac_ext >&5
 
2689
ac_cv_prog_cxx_g=no
 
2690
fi
 
2691
rm -f conftest.$ac_objext conftest.$ac_ext
 
2692
fi
 
2693
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
2694
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
2695
if test "$ac_test_CXXFLAGS" = set; then
 
2696
  CXXFLAGS=$ac_save_CXXFLAGS
 
2697
elif test $ac_cv_prog_cxx_g = yes; then
 
2698
  if test "$GXX" = yes; then
 
2699
    CXXFLAGS="-g -O2"
 
2700
  else
 
2701
    CXXFLAGS="-g"
 
2702
  fi
 
2703
else
 
2704
  if test "$GXX" = yes; then
 
2705
    CXXFLAGS="-O2"
 
2706
  else
 
2707
    CXXFLAGS=
 
2708
  fi
 
2709
fi
 
2710
for ac_declaration in \
 
2711
   ''\
 
2712
   '#include <stdlib.h>' \
 
2713
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2714
   'extern "C" void std::exit (int); using std::exit;' \
 
2715
   'extern "C" void exit (int) throw ();' \
 
2716
   'extern "C" void exit (int);' \
 
2717
   'void exit (int);'
 
2718
do
 
2719
  cat >conftest.$ac_ext <<_ACEOF
 
2720
#line $LINENO "configure"
 
2721
#include "confdefs.h"
 
2722
#include <stdlib.h>
 
2723
$ac_declaration
 
2724
#ifdef F77_DUMMY_MAIN
 
2725
#  ifdef __cplusplus
 
2726
     extern "C"
 
2727
#  endif
 
2728
   int F77_DUMMY_MAIN() { return 1; }
 
2729
#endif
 
2730
int
 
2731
main ()
 
2732
{
 
2733
exit (42);
 
2734
  ;
 
2735
  return 0;
 
2736
}
 
2737
_ACEOF
 
2738
rm -f conftest.$ac_objext
 
2739
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2740
  (eval $ac_compile) 2>&5
 
2741
  ac_status=$?
 
2742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2743
  (exit $ac_status); } &&
 
2744
         { ac_try='test -s conftest.$ac_objext'
 
2745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2746
  (eval $ac_try) 2>&5
 
2747
  ac_status=$?
 
2748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2749
  (exit $ac_status); }; }; then
 
2750
  :
 
2751
else
 
2752
  echo "$as_me: failed program was:" >&5
 
2753
cat conftest.$ac_ext >&5
 
2754
continue
 
2755
fi
 
2756
rm -f conftest.$ac_objext conftest.$ac_ext
 
2757
  cat >conftest.$ac_ext <<_ACEOF
 
2758
#line $LINENO "configure"
 
2759
#include "confdefs.h"
 
2760
$ac_declaration
 
2761
#ifdef F77_DUMMY_MAIN
 
2762
#  ifdef __cplusplus
 
2763
     extern "C"
 
2764
#  endif
 
2765
   int F77_DUMMY_MAIN() { return 1; }
 
2766
#endif
 
2767
int
 
2768
main ()
 
2769
{
 
2770
exit (42);
 
2771
  ;
 
2772
  return 0;
 
2773
}
 
2774
_ACEOF
 
2775
rm -f conftest.$ac_objext
 
2776
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2777
  (eval $ac_compile) 2>&5
 
2778
  ac_status=$?
 
2779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2780
  (exit $ac_status); } &&
 
2781
         { ac_try='test -s conftest.$ac_objext'
 
2782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2783
  (eval $ac_try) 2>&5
 
2784
  ac_status=$?
 
2785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2786
  (exit $ac_status); }; }; then
 
2787
  break
 
2788
else
 
2789
  echo "$as_me: failed program was:" >&5
 
2790
cat conftest.$ac_ext >&5
 
2791
fi
 
2792
rm -f conftest.$ac_objext conftest.$ac_ext
 
2793
done
 
2794
rm -f conftest*
 
2795
if test -n "$ac_declaration"; then
 
2796
  echo '#ifdef __cplusplus' >>confdefs.h
 
2797
  echo $ac_declaration      >>confdefs.h
 
2798
  echo '#endif'             >>confdefs.h
 
2799
fi
 
2800
 
 
2801
ac_ext=c
 
2802
ac_cpp='$CPP $CPPFLAGS'
 
2803
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2804
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2805
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2806
 
 
2807
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
2808
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
2809
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
2810
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2811
else
 
2812
  ac_check_lib_save_LIBS=$LIBS
 
2813
LIBS="-lcposix  $LIBS"
 
2814
cat >conftest.$ac_ext <<_ACEOF
 
2815
#line $LINENO "configure"
 
2816
#include "confdefs.h"
 
2817
 
 
2818
/* Override any gcc2 internal prototype to avoid an error.  */
 
2819
#ifdef __cplusplus
 
2820
extern "C"
 
2821
#endif
 
2822
/* We use char because int might match the return type of a gcc2
 
2823
   builtin and then its argument prototype would still apply.  */
 
2824
char strerror ();
 
2825
#ifdef F77_DUMMY_MAIN
 
2826
#  ifdef __cplusplus
 
2827
     extern "C"
 
2828
#  endif
 
2829
   int F77_DUMMY_MAIN() { return 1; }
 
2830
#endif
 
2831
int
 
2832
main ()
 
2833
{
 
2834
strerror ();
 
2835
  ;
 
2836
  return 0;
 
2837
}
 
2838
_ACEOF
 
2839
rm -f conftest.$ac_objext conftest$ac_exeext
 
2840
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2841
  (eval $ac_link) 2>&5
 
2842
  ac_status=$?
 
2843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2844
  (exit $ac_status); } &&
 
2845
         { ac_try='test -s conftest$ac_exeext'
 
2846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2847
  (eval $ac_try) 2>&5
 
2848
  ac_status=$?
 
2849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2850
  (exit $ac_status); }; }; then
 
2851
  ac_cv_lib_cposix_strerror=yes
 
2852
else
 
2853
  echo "$as_me: failed program was:" >&5
 
2854
cat conftest.$ac_ext >&5
 
2855
ac_cv_lib_cposix_strerror=no
 
2856
fi
 
2857
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2858
LIBS=$ac_check_lib_save_LIBS
 
2859
fi
 
2860
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
2861
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
2862
if test $ac_cv_lib_cposix_strerror = yes; then
 
2863
  LIBS="$LIBS -lcposix"
 
2864
fi
 
2865
 
 
2866
missing_dir=`cd $ac_aux_dir && pwd`
 
2867
for ac_prog in flex lex
 
2868
do
 
2869
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2870
set dummy $ac_prog; ac_word=$2
 
2871
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2873
if test "${ac_cv_prog_LEX+set}" = set; then
 
2874
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2875
else
 
2876
  if test -n "$LEX"; then
 
2877
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
2878
else
 
2879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2880
for as_dir in $PATH
 
2881
do
 
2882
  IFS=$as_save_IFS
 
2883
  test -z "$as_dir" && as_dir=.
 
2884
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2885
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2886
    ac_cv_prog_LEX="$ac_prog"
 
2887
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2888
    break 2
 
2889
  fi
 
2890
done
 
2891
done
 
2892
 
 
2893
fi
 
2894
fi
 
2895
LEX=$ac_cv_prog_LEX
 
2896
if test -n "$LEX"; then
 
2897
  echo "$as_me:$LINENO: result: $LEX" >&5
 
2898
echo "${ECHO_T}$LEX" >&6
 
2899
else
 
2900
  echo "$as_me:$LINENO: result: no" >&5
 
2901
echo "${ECHO_T}no" >&6
 
2902
fi
 
2903
 
 
2904
  test -n "$LEX" && break
 
2905
done
 
2906
test -n "$LEX" || LEX=""$missing_dir/missing flex""
 
2907
 
 
2908
for ac_prog in flex lex
 
2909
do
 
2910
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2911
set dummy $ac_prog; ac_word=$2
 
2912
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2913
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2914
if test "${ac_cv_prog_LEX+set}" = set; then
 
2915
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2916
else
 
2917
  if test -n "$LEX"; then
 
2918
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
2919
else
 
2920
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2921
for as_dir in $PATH
 
2922
do
 
2923
  IFS=$as_save_IFS
 
2924
  test -z "$as_dir" && as_dir=.
 
2925
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2926
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2927
    ac_cv_prog_LEX="$ac_prog"
 
2928
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2929
    break 2
 
2930
  fi
 
2931
done
 
2932
done
 
2933
 
 
2934
fi
 
2935
fi
 
2936
LEX=$ac_cv_prog_LEX
 
2937
if test -n "$LEX"; then
 
2938
  echo "$as_me:$LINENO: result: $LEX" >&5
 
2939
echo "${ECHO_T}$LEX" >&6
 
2940
else
 
2941
  echo "$as_me:$LINENO: result: no" >&5
 
2942
echo "${ECHO_T}no" >&6
 
2943
fi
 
2944
 
 
2945
  test -n "$LEX" && break
 
2946
done
 
2947
test -n "$LEX" || LEX=":"
 
2948
 
 
2949
if test -z "$LEXLIB"
 
2950
then
 
2951
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
 
2952
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
 
2953
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
 
2954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2955
else
 
2956
  ac_check_lib_save_LIBS=$LIBS
 
2957
LIBS="-lfl  $LIBS"
 
2958
cat >conftest.$ac_ext <<_ACEOF
 
2959
#line $LINENO "configure"
 
2960
#include "confdefs.h"
 
2961
 
 
2962
/* Override any gcc2 internal prototype to avoid an error.  */
 
2963
#ifdef __cplusplus
 
2964
extern "C"
 
2965
#endif
 
2966
/* We use char because int might match the return type of a gcc2
 
2967
   builtin and then its argument prototype would still apply.  */
 
2968
char yywrap ();
 
2969
#ifdef F77_DUMMY_MAIN
 
2970
#  ifdef __cplusplus
 
2971
     extern "C"
 
2972
#  endif
 
2973
   int F77_DUMMY_MAIN() { return 1; }
 
2974
#endif
 
2975
int
 
2976
main ()
 
2977
{
 
2978
yywrap ();
 
2979
  ;
 
2980
  return 0;
 
2981
}
 
2982
_ACEOF
 
2983
rm -f conftest.$ac_objext conftest$ac_exeext
 
2984
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2985
  (eval $ac_link) 2>&5
 
2986
  ac_status=$?
 
2987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2988
  (exit $ac_status); } &&
 
2989
         { ac_try='test -s conftest$ac_exeext'
 
2990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2991
  (eval $ac_try) 2>&5
 
2992
  ac_status=$?
 
2993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2994
  (exit $ac_status); }; }; then
 
2995
  ac_cv_lib_fl_yywrap=yes
 
2996
else
 
2997
  echo "$as_me: failed program was:" >&5
 
2998
cat conftest.$ac_ext >&5
 
2999
ac_cv_lib_fl_yywrap=no
 
3000
fi
 
3001
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3002
LIBS=$ac_check_lib_save_LIBS
 
3003
fi
 
3004
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
 
3005
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
 
3006
if test $ac_cv_lib_fl_yywrap = yes; then
 
3007
  LEXLIB="-lfl"
 
3008
else
 
3009
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
 
3010
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
 
3011
if test "${ac_cv_lib_l_yywrap+set}" = set; then
 
3012
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3013
else
 
3014
  ac_check_lib_save_LIBS=$LIBS
 
3015
LIBS="-ll  $LIBS"
 
3016
cat >conftest.$ac_ext <<_ACEOF
 
3017
#line $LINENO "configure"
 
3018
#include "confdefs.h"
 
3019
 
 
3020
/* Override any gcc2 internal prototype to avoid an error.  */
 
3021
#ifdef __cplusplus
 
3022
extern "C"
 
3023
#endif
 
3024
/* We use char because int might match the return type of a gcc2
 
3025
   builtin and then its argument prototype would still apply.  */
 
3026
char yywrap ();
 
3027
#ifdef F77_DUMMY_MAIN
 
3028
#  ifdef __cplusplus
 
3029
     extern "C"
 
3030
#  endif
 
3031
   int F77_DUMMY_MAIN() { return 1; }
 
3032
#endif
 
3033
int
 
3034
main ()
 
3035
{
 
3036
yywrap ();
 
3037
  ;
 
3038
  return 0;
 
3039
}
 
3040
_ACEOF
 
3041
rm -f conftest.$ac_objext conftest$ac_exeext
 
3042
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3043
  (eval $ac_link) 2>&5
 
3044
  ac_status=$?
 
3045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3046
  (exit $ac_status); } &&
 
3047
         { ac_try='test -s conftest$ac_exeext'
 
3048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3049
  (eval $ac_try) 2>&5
 
3050
  ac_status=$?
 
3051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3052
  (exit $ac_status); }; }; then
 
3053
  ac_cv_lib_l_yywrap=yes
 
3054
else
 
3055
  echo "$as_me: failed program was:" >&5
 
3056
cat conftest.$ac_ext >&5
 
3057
ac_cv_lib_l_yywrap=no
 
3058
fi
 
3059
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3060
LIBS=$ac_check_lib_save_LIBS
 
3061
fi
 
3062
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
 
3063
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
 
3064
if test $ac_cv_lib_l_yywrap = yes; then
 
3065
  LEXLIB="-ll"
 
3066
fi
 
3067
 
 
3068
fi
 
3069
 
 
3070
fi
 
3071
 
 
3072
if test "x$LEX" != "x:"; then
 
3073
  echo "$as_me:$LINENO: checking lex output file root" >&5
 
3074
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
 
3075
if test "${ac_cv_prog_lex_root+set}" = set; then
 
3076
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3077
else
 
3078
  # The minimal lex program is just a single line: %%.  But some broken lexes
 
3079
# (Solaris, I think it was) want two %% lines, so accommodate them.
 
3080
cat >conftest.l <<_ACEOF
 
3081
%%
 
3082
%%
 
3083
_ACEOF
 
3084
{ ac_try='$LEX conftest.l'
 
3085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3086
  (eval $ac_try) 2>&5
 
3087
  ac_status=$?
 
3088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3089
  (exit $ac_status); }; }
 
3090
if test -f lex.yy.c; then
 
3091
  ac_cv_prog_lex_root=lex.yy
 
3092
elif test -f lexyy.c; then
 
3093
  ac_cv_prog_lex_root=lexyy
 
3094
else
 
3095
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
 
3096
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
 
3097
   { (exit 1); exit 1; }; }
 
3098
fi
 
3099
fi
 
3100
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
 
3101
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
 
3102
rm -f conftest.l
 
3103
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
3104
 
 
3105
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
 
3106
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
 
3107
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
 
3108
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3109
else
 
3110
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
3111
# default is implementation-dependent. Figure out which it is, since
 
3112
# not all implementations provide the %pointer and %array declarations.
 
3113
ac_cv_prog_lex_yytext_pointer=no
 
3114
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
 
3115
ac_save_LIBS=$LIBS
 
3116
LIBS="$LIBS $LEXLIB"
 
3117
cat >conftest.$ac_ext <<_ACEOF
 
3118
`cat $LEX_OUTPUT_ROOT.c`
 
3119
_ACEOF
 
3120
rm -f conftest.$ac_objext conftest$ac_exeext
 
3121
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3122
  (eval $ac_link) 2>&5
 
3123
  ac_status=$?
 
3124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3125
  (exit $ac_status); } &&
 
3126
         { ac_try='test -s conftest$ac_exeext'
 
3127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3128
  (eval $ac_try) 2>&5
 
3129
  ac_status=$?
 
3130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3131
  (exit $ac_status); }; }; then
 
3132
  ac_cv_prog_lex_yytext_pointer=yes
 
3133
else
 
3134
  echo "$as_me: failed program was:" >&5
 
3135
cat conftest.$ac_ext >&5
 
3136
fi
 
3137
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3138
LIBS=$ac_save_LIBS
 
3139
rm -f "${LEX_OUTPUT_ROOT}.c"
 
3140
 
 
3141
fi
 
3142
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
3143
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
 
3144
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
3145
 
 
3146
cat >>confdefs.h <<\_ACEOF
 
3147
#define YYTEXT_POINTER 1
 
3148
_ACEOF
 
3149
 
 
3150
fi
 
3151
 
 
3152
fi
 
3153
 
 
3154
for ac_prog in 'bison -y' byacc
 
3155
do
 
3156
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3157
set dummy $ac_prog; ac_word=$2
 
3158
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3159
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3160
if test "${ac_cv_prog_YACC+set}" = set; then
 
3161
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3162
else
 
3163
  if test -n "$YACC"; then
 
3164
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
3165
else
 
3166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3167
for as_dir in $PATH
 
3168
do
 
3169
  IFS=$as_save_IFS
 
3170
  test -z "$as_dir" && as_dir=.
 
3171
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3172
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3173
    ac_cv_prog_YACC="$ac_prog"
 
3174
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3175
    break 2
 
3176
  fi
 
3177
done
 
3178
done
 
3179
 
 
3180
fi
 
3181
fi
 
3182
YACC=$ac_cv_prog_YACC
 
3183
if test -n "$YACC"; then
 
3184
  echo "$as_me:$LINENO: result: $YACC" >&5
 
3185
echo "${ECHO_T}$YACC" >&6
 
3186
else
 
3187
  echo "$as_me:$LINENO: result: no" >&5
 
3188
echo "${ECHO_T}no" >&6
 
3189
fi
 
3190
 
 
3191
  test -n "$YACC" && break
 
3192
done
 
3193
test -n "$YACC" || YACC="yacc"
 
3194
 
 
3195
for ac_prog in gawk mawk nawk awk
 
3196
do
 
3197
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3198
set dummy $ac_prog; ac_word=$2
 
3199
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3200
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3201
if test "${ac_cv_prog_AWK+set}" = set; then
 
3202
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3203
else
 
3204
  if test -n "$AWK"; then
 
3205
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3206
else
 
3207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3208
for as_dir in $PATH
 
3209
do
 
3210
  IFS=$as_save_IFS
 
3211
  test -z "$as_dir" && as_dir=.
 
3212
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3213
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3214
    ac_cv_prog_AWK="$ac_prog"
 
3215
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3216
    break 2
 
3217
  fi
 
3218
done
 
3219
done
 
3220
 
 
3221
fi
 
3222
fi
 
3223
AWK=$ac_cv_prog_AWK
 
3224
if test -n "$AWK"; then
 
3225
  echo "$as_me:$LINENO: result: $AWK" >&5
 
3226
echo "${ECHO_T}$AWK" >&6
 
3227
else
 
3228
  echo "$as_me:$LINENO: result: no" >&5
 
3229
echo "${ECHO_T}no" >&6
 
3230
fi
 
3231
 
 
3232
  test -n "$AWK" && break
 
3233
done
 
3234
 
 
3235
# AM_PROG_LIBTOOL includes check for ranlib and supercedes AC_CHECK_RANLIB
 
3236
# AC_PROG_RANLIB
 
3237
# Check whether --enable-shared or --disable-shared was given.
 
3238
if test "${enable_shared+set}" = set; then
 
3239
  enableval="$enable_shared"
 
3240
  p=${PACKAGE-default}
 
3241
case $enableval in
 
3242
yes) enable_shared=yes ;;
 
3243
no) enable_shared=no ;;
 
3244
*)
 
3245
  enable_shared=no
 
3246
  # Look at the argument we got.  We use all the common list separators.
 
3247
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
3248
  for pkg in $enableval; do
 
3249
    if test "X$pkg" = "X$p"; then
 
3250
      enable_shared=yes
 
3251
    fi
 
3252
  done
 
3253
  IFS="$ac_save_ifs"
 
3254
  ;;
 
3255
esac
 
3256
else
 
3257
  enable_shared=yes
 
3258
fi;
 
3259
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3260
if test "${enable_fast_install+set}" = set; then
 
3261
  enableval="$enable_fast_install"
 
3262
  p=${PACKAGE-default}
 
3263
case $enableval in
 
3264
yes) enable_fast_install=yes ;;
 
3265
no) enable_fast_install=no ;;
 
3266
*)
 
3267
  enable_fast_install=no
 
3268
  # Look at the argument we got.  We use all the common list separators.
 
3269
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
3270
  for pkg in $enableval; do
 
3271
    if test "X$pkg" = "X$p"; then
 
3272
      enable_fast_install=yes
 
3273
    fi
 
3274
  done
 
3275
  IFS="$ac_save_ifs"
 
3276
  ;;
 
3277
esac
 
3278
else
 
3279
  enable_fast_install=yes
 
3280
fi;
 
3281
# Find the correct PATH separator.  Usually this is `:', but
 
3282
# DJGPP uses `;' like DOS.
 
3283
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
3284
  UNAME=${UNAME-`uname 2>/dev/null`}
 
3285
  case X$UNAME in
 
3286
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
3287
    *)     lt_cv_sys_path_separator=':' ;;
 
3288
  esac
 
3289
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
3290
fi
 
3291
 
 
3292
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3293
if test "${with_gnu_ld+set}" = set; then
 
3294
  withval="$with_gnu_ld"
 
3295
  test "$withval" = no || with_gnu_ld=yes
 
3296
else
 
3297
  with_gnu_ld=no
 
3298
fi;
 
3299
ac_prog=ld
 
3300
if test "$GCC" = yes; then
 
3301
  # Check if gcc -print-prog-name=ld gives a path.
 
3302
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
3303
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
3304
  case $host in
 
3305
  *-*-mingw*)
 
3306
    # gcc leaves a trailing carriage return which upsets mingw
 
3307
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3308
  *)
 
3309
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3310
  esac
 
3311
  case $ac_prog in
 
3312
    # Accept absolute paths.
 
3313
    [\\/]* | [A-Za-z]:[\\/]*)
 
3314
      re_direlt='/[^/][^/]*/\.\./'
 
3315
      # Canonicalize the path of ld
 
3316
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
3317
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3318
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
3319
      done
 
3320
      test -z "$LD" && LD="$ac_prog"
 
3321
      ;;
 
3322
  "")
 
3323
    # If it fails, then pretend we aren't using GCC.
 
3324
    ac_prog=ld
 
3325
    ;;
 
3326
  *)
 
3327
    # If it is relative, then search for the first ld in PATH.
 
3328
    with_gnu_ld=unknown
 
3329
    ;;
 
3330
  esac
 
3331
elif test "$with_gnu_ld" = yes; then
 
3332
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3333
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3334
else
 
3335
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3336
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3337
fi
 
3338
if test "${lt_cv_path_LD+set}" = set; then
 
3339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3340
else
 
3341
  if test -z "$LD"; then
 
3342
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3343
  for ac_dir in $PATH; do
 
3344
    test -z "$ac_dir" && ac_dir=.
 
3345
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3346
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3347
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3348
      # but apparently some GNU ld's only accept -v.
 
3349
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3350
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3351
        test "$with_gnu_ld" != no && break
 
3352
      else
 
3353
        test "$with_gnu_ld" != yes && break
 
3354
      fi
 
3355
    fi
 
3356
  done
 
3357
  IFS="$ac_save_ifs"
 
3358
else
 
3359
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3360
fi
 
3361
fi
 
3362
 
 
3363
LD="$lt_cv_path_LD"
 
3364
if test -n "$LD"; then
 
3365
  echo "$as_me:$LINENO: result: $LD" >&5
 
3366
echo "${ECHO_T}$LD" >&6
 
3367
else
 
3368
  echo "$as_me:$LINENO: result: no" >&5
 
3369
echo "${ECHO_T}no" >&6
 
3370
fi
 
3371
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3372
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3373
   { (exit 1); exit 1; }; }
 
3374
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3375
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3376
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3377
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3378
else
 
3379
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3380
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
3381
  lt_cv_prog_gnu_ld=yes
 
3382
else
 
3383
  lt_cv_prog_gnu_ld=no
 
3384
fi
 
3385
fi
 
3386
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3387
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3388
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3389
 
 
3390
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3391
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3392
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3394
else
 
3395
  lt_cv_ld_reload_flag='-r'
 
3396
fi
 
3397
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3398
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3399
reload_flag=$lt_cv_ld_reload_flag
 
3400
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
3401
 
 
3402
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3403
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3404
if test "${lt_cv_path_NM+set}" = set; then
 
3405
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3406
else
 
3407
  if test -n "$NM"; then
 
3408
  # Let the user override the test.
 
3409
  lt_cv_path_NM="$NM"
 
3410
else
 
3411
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3412
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3413
    test -z "$ac_dir" && ac_dir=.
 
3414
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
 
3415
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
3416
      # Check to see if the nm accepts a BSD-compat flag.
 
3417
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3418
      #   nm: unknown option "B" ignored
 
3419
      # Tru64's nm complains that /dev/null is an invalid object file
 
3420
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
3421
        lt_cv_path_NM="$tmp_nm -B"
 
3422
        break
 
3423
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
3424
        lt_cv_path_NM="$tmp_nm -p"
 
3425
        break
 
3426
      else
 
3427
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3428
        continue # so that we can try to find one that supports BSD flags
 
3429
      fi
 
3430
    fi
 
3431
  done
 
3432
  IFS="$ac_save_ifs"
 
3433
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3434
fi
 
3435
fi
 
3436
 
 
3437
NM="$lt_cv_path_NM"
 
3438
echo "$as_me:$LINENO: result: $NM" >&5
 
3439
echo "${ECHO_T}$NM" >&6
 
3440
 
 
3441
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3442
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3443
LN_S=$as_ln_s
 
3444
if test "$LN_S" = "ln -s"; then
 
3445
  echo "$as_me:$LINENO: result: yes" >&5
 
3446
echo "${ECHO_T}yes" >&6
 
3447
else
 
3448
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3449
echo "${ECHO_T}no, using $LN_S" >&6
 
3450
fi
 
3451
 
 
3452
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
 
3453
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
 
3454
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3456
else
 
3457
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3458
lt_cv_file_magic_test_file=
 
3459
lt_cv_deplibs_check_method='unknown'
 
3460
# Need to set the preceding variable on all platforms that support
 
3461
# interlibrary dependencies.
 
3462
# 'none' -- dependencies not supported.
 
3463
# `unknown' -- same as none, but documents that we really don't know.
 
3464
# 'pass_all' -- all dependencies passed with no checks.
 
3465
# 'test_compile' -- check by making test program.
 
3466
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3467
# which responds to the $file_magic_cmd with a given egrep regex.
 
3468
# If you have `file' or equivalent on your system and you're not sure
 
3469
# whether `pass_all' will *always* work, you probably want this one.
 
3470
 
 
3471
case $host_os in
 
3472
aix4* | aix5*)
 
3473
  lt_cv_deplibs_check_method=pass_all
 
3474
  ;;
 
3475
 
 
3476
beos*)
 
3477
  lt_cv_deplibs_check_method=pass_all
 
3478
  ;;
 
3479
 
 
3480
bsdi4*)
 
3481
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3482
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3483
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3484
  ;;
 
3485
 
 
3486
cygwin* | mingw* | pw32*)
 
3487
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3488
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3489
  ;;
 
3490
 
 
3491
darwin* | rhapsody*)
 
3492
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
3493
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3494
  case "$host_os" in
 
3495
  rhapsody* | darwin1.[012])
 
3496
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 
3497
    ;;
 
3498
  *) # Darwin 1.3 on
 
3499
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
3500
    ;;
 
3501
  esac
 
3502
  ;;
 
3503
 
 
3504
freebsd*)
 
3505
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3506
    case $host_cpu in
 
3507
    i*86 )
 
3508
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3509
      # Let's accept both of them until this is cleared up.
 
3510
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3511
      lt_cv_file_magic_cmd=/usr/bin/file
 
3512
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3513
      ;;
 
3514
    esac
 
3515
  else
 
3516
    lt_cv_deplibs_check_method=pass_all
 
3517
  fi
 
3518
  ;;
 
3519
 
 
3520
gnu*)
 
3521
  lt_cv_deplibs_check_method=pass_all
 
3522
  ;;
 
3523
 
 
3524
hpux10.20*|hpux11*)
 
3525
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3526
  lt_cv_file_magic_cmd=/usr/bin/file
 
3527
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3528
  ;;
 
3529
 
 
3530
irix5* | irix6*)
 
3531
  case $host_os in
 
3532
  irix5*)
 
3533
    # this will be overridden with pass_all, but let us keep it just in case
 
3534
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
3535
    ;;
 
3536
  *)
 
3537
    case $LD in
 
3538
    *-32|*"-32 ") libmagic=32-bit;;
 
3539
    *-n32|*"-n32 ") libmagic=N32;;
 
3540
    *-64|*"-64 ") libmagic=64-bit;;
 
3541
    *) libmagic=never-match;;
 
3542
    esac
 
3543
    # this will be overridden with pass_all, but let us keep it just in case
 
3544
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
3545
    ;;
 
3546
  esac
 
3547
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
3548
  lt_cv_deplibs_check_method=pass_all
 
3549
  ;;
 
3550
 
 
3551
# This must be Linux ELF.
 
3552
linux-gnu*)
 
3553
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3554
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
3555
  ;;
 
3556
 
 
3557
netbsd*)
 
3558
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3559
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
3560
  else
 
3561
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
3562
  fi
 
3563
  ;;
 
3564
 
 
3565
newos6*)
 
3566
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3567
  lt_cv_file_magic_cmd=/usr/bin/file
 
3568
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3569
  ;;
 
3570
 
 
3571
openbsd*)
 
3572
  lt_cv_file_magic_cmd=/usr/bin/file
 
3573
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3574
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3575
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3576
  else
 
3577
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3578
  fi
 
3579
  ;;
 
3580
 
 
3581
osf3* | osf4* | osf5*)
 
3582
  # this will be overridden with pass_all, but let us keep it just in case
 
3583
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
3584
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3585
  lt_cv_deplibs_check_method=pass_all
 
3586
  ;;
 
3587
 
 
3588
sco3.2v5*)
 
3589
  lt_cv_deplibs_check_method=pass_all
 
3590
  ;;
 
3591
 
 
3592
solaris*)
 
3593
  lt_cv_deplibs_check_method=pass_all
 
3594
  lt_cv_file_magic_test_file=/lib/libc.so
 
3595
  ;;
 
3596
 
 
3597
sysv5uw[78]* | sysv4*uw2*)
 
3598
  lt_cv_deplibs_check_method=pass_all
 
3599
  ;;
 
3600
 
 
3601
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3602
  case $host_vendor in
 
3603
  motorola)
 
3604
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
3605
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3606
    ;;
 
3607
  ncr)
 
3608
    lt_cv_deplibs_check_method=pass_all
 
3609
    ;;
 
3610
  sequent)
 
3611
    lt_cv_file_magic_cmd='/bin/file'
 
3612
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3613
    ;;
 
3614
  sni)
 
3615
    lt_cv_file_magic_cmd='/bin/file'
 
3616
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3617
    lt_cv_file_magic_test_file=/lib/libc.so
 
3618
    ;;
 
3619
  esac
 
3620
  ;;
 
3621
esac
 
3622
 
 
3623
fi
 
3624
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3625
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3626
file_magic_cmd=$lt_cv_file_magic_cmd
 
3627
deplibs_check_method=$lt_cv_deplibs_check_method
 
3628
 
 
3629
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
3630
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
 
3631
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
 
3632
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
3633
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3634
else
 
3635
 
 
3636
# These are sane defaults that work on at least a few old systems.
 
3637
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
3638
 
 
3639
# Character class describing NM global symbol codes.
 
3640
symcode='[BCDEGRST]'
 
3641
 
 
3642
# Regexp to match symbols that can be accessed directly from C.
 
3643
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
3644
 
 
3645
# Transform the above into a raw symbol and a C symbol.
 
3646
symxfrm='\1 \2\3 \3'
 
3647
 
 
3648
# Transform an extracted symbol line into a proper C declaration
 
3649
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
3650
 
 
3651
# Transform an extracted symbol line into symbol name and symbol address
 
3652
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
3653
 
 
3654
# Define system-specific variables.
 
3655
case $host_os in
 
3656
aix*)
 
3657
  symcode='[BCDT]'
 
3658
  ;;
 
3659
cygwin* | mingw* | pw32*)
 
3660
  symcode='[ABCDGISTW]'
 
3661
  ;;
 
3662
hpux*) # Its linker distinguishes data from code symbols
 
3663
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
3664
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
3665
  ;;
 
3666
irix*)
 
3667
  symcode='[BCDEGRST]'
 
3668
  ;;
 
3669
solaris* | sysv5*)
 
3670
  symcode='[BDT]'
 
3671
  ;;
 
3672
sysv4)
 
3673
  symcode='[DFNSTU]'
 
3674
  ;;
 
3675
esac
 
3676
 
 
3677
# Handle CRLF in mingw tool chain
 
3678
opt_cr=
 
3679
case $host_os in
 
3680
mingw*)
 
3681
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
3682
  ;;
 
3683
esac
 
3684
 
 
3685
# If we're using GNU nm, then use its standard symbol codes.
 
3686
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
 
3687
  symcode='[ABCDGISTW]'
 
3688
fi
 
3689
 
 
3690
# Try without a prefix undercore, then with it.
 
3691
for ac_symprfx in "" "_"; do
 
3692
 
 
3693
  # Write the raw and C identifiers.
 
3694
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
3695
 
 
3696
  # Check to see that the pipe works correctly.
 
3697
  pipe_works=no
 
3698
  rm -f conftest*
 
3699
  cat > conftest.$ac_ext <<EOF
 
3700
#ifdef __cplusplus
 
3701
extern "C" {
 
3702
#endif
 
3703
char nm_test_var;
 
3704
void nm_test_func(){}
 
3705
#ifdef __cplusplus
 
3706
}
 
3707
#endif
 
3708
int main(){nm_test_var='a';nm_test_func();return(0);}
 
3709
EOF
 
3710
 
 
3711
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3712
  (eval $ac_compile) 2>&5
 
3713
  ac_status=$?
 
3714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3715
  (exit $ac_status); }; then
 
3716
    # Now try to grab the symbols.
 
3717
    nlist=conftest.nm
 
3718
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
3719
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
3720
  ac_status=$?
 
3721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3722
  (exit $ac_status); } && test -s "$nlist"; then
 
3723
      # Try sorting and uniquifying the output.
 
3724
      if sort "$nlist" | uniq > "$nlist"T; then
 
3725
        mv -f "$nlist"T "$nlist"
 
3726
      else
 
3727
        rm -f "$nlist"T
 
3728
      fi
 
3729
 
 
3730
      # Make sure that we snagged all the symbols we need.
 
3731
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
 
3732
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
3733
          cat <<EOF > conftest.$ac_ext
 
3734
#ifdef __cplusplus
 
3735
extern "C" {
 
3736
#endif
 
3737
 
 
3738
EOF
 
3739
          # Now generate the symbol file.
 
3740
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
3741
 
 
3742
          cat <<EOF >> conftest.$ac_ext
 
3743
#if defined (__STDC__) && __STDC__
 
3744
# define lt_ptr void *
 
3745
#else
 
3746
# define lt_ptr char *
 
3747
# define const
 
3748
#endif
 
3749
 
 
3750
/* The mapping between symbol names and symbols. */
 
3751
const struct {
 
3752
  const char *name;
 
3753
  lt_ptr address;
 
3754
}
 
3755
lt_preloaded_symbols[] =
 
3756
{
 
3757
EOF
 
3758
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
3759
          cat <<\EOF >> conftest.$ac_ext
 
3760
  {0, (lt_ptr) 0}
 
3761
};
 
3762
 
 
3763
#ifdef __cplusplus
 
3764
}
 
3765
#endif
 
3766
EOF
 
3767
          # Now try linking the two files.
 
3768
          mv conftest.$ac_objext conftstm.$ac_objext
 
3769
          save_LIBS="$LIBS"
 
3770
          save_CFLAGS="$CFLAGS"
 
3771
          LIBS="conftstm.$ac_objext"
 
3772
          CFLAGS="$CFLAGS$no_builtin_flag"
 
3773
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3774
  (eval $ac_link) 2>&5
 
3775
  ac_status=$?
 
3776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3777
  (exit $ac_status); } && test -s conftest; then
 
3778
            pipe_works=yes
 
3779
          fi
 
3780
          LIBS="$save_LIBS"
 
3781
          CFLAGS="$save_CFLAGS"
 
3782
        else
 
3783
          echo "cannot find nm_test_func in $nlist" >&5
 
3784
        fi
 
3785
      else
 
3786
        echo "cannot find nm_test_var in $nlist" >&5
 
3787
      fi
 
3788
    else
 
3789
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
3790
    fi
 
3791
  else
 
3792
    echo "$progname: failed program was:" >&5
 
3793
    cat conftest.$ac_ext >&5
 
3794
  fi
 
3795
  rm -f conftest* conftst*
 
3796
 
 
3797
  # Do not use the global_symbol_pipe unless it works.
 
3798
  if test "$pipe_works" = yes; then
 
3799
    break
 
3800
  else
 
3801
    lt_cv_sys_global_symbol_pipe=
 
3802
  fi
 
3803
done
 
3804
 
 
3805
fi
 
3806
 
 
3807
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
 
3808
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
3809
  global_symbol_to_cdecl=
 
3810
  global_symbol_to_c_name_address=
 
3811
else
 
3812
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
 
3813
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
 
3814
fi
 
3815
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
 
3816
then
 
3817
  echo "$as_me:$LINENO: result: failed" >&5
 
3818
echo "${ECHO_T}failed" >&6
 
3819
else
 
3820
  echo "$as_me:$LINENO: result: ok" >&5
 
3821
echo "${ECHO_T}ok" >&6
 
3822
fi
 
3823
 
 
3824
ac_ext=c
 
3825
ac_cpp='$CPP $CPPFLAGS'
 
3826
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3827
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3828
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3829
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3830
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3831
# On Suns, sometimes $CPP names a directory.
 
3832
if test -n "$CPP" && test -d "$CPP"; then
 
3833
  CPP=
 
3834
fi
 
3835
if test -z "$CPP"; then
 
3836
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3837
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3838
else
 
3839
      # Double quotes because CPP needs to be expanded
 
3840
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3841
    do
 
3842
      ac_preproc_ok=false
 
3843
for ac_c_preproc_warn_flag in '' yes
 
3844
do
 
3845
  # Use a header file that comes with gcc, so configuring glibc
 
3846
  # with a fresh cross-compiler works.
 
3847
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3848
  # not just through cpp. "Syntax error" is here to catch this case.
 
3849
  cat >conftest.$ac_ext <<_ACEOF
 
3850
#line $LINENO "configure"
 
3851
#include "confdefs.h"
 
3852
#include <assert.h>
 
3853
                     Syntax error
 
3854
_ACEOF
 
3855
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3856
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3857
  ac_status=$?
 
3858
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3859
  rm -f conftest.er1
 
3860
  cat conftest.err >&5
 
3861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3862
  (exit $ac_status); } >/dev/null; then
 
3863
  if test -s conftest.err; then
 
3864
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3865
  else
 
3866
    ac_cpp_err=
 
3867
  fi
 
3868
else
 
3869
  ac_cpp_err=yes
 
3870
fi
 
3871
if test -z "$ac_cpp_err"; then
 
3872
  :
 
3873
else
 
3874
  echo "$as_me: failed program was:" >&5
 
3875
  cat conftest.$ac_ext >&5
 
3876
  # Broken: fails on valid input.
 
3877
continue
 
3878
fi
 
3879
rm -f conftest.err conftest.$ac_ext
 
3880
 
 
3881
  # OK, works on sane cases.  Now check whether non-existent headers
 
3882
  # can be detected and how.
 
3883
  cat >conftest.$ac_ext <<_ACEOF
 
3884
#line $LINENO "configure"
 
3885
#include "confdefs.h"
 
3886
#include <ac_nonexistent.h>
 
3887
_ACEOF
 
3888
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3889
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3890
  ac_status=$?
 
3891
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3892
  rm -f conftest.er1
 
3893
  cat conftest.err >&5
 
3894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3895
  (exit $ac_status); } >/dev/null; then
 
3896
  if test -s conftest.err; then
 
3897
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3898
  else
 
3899
    ac_cpp_err=
 
3900
  fi
 
3901
else
 
3902
  ac_cpp_err=yes
 
3903
fi
 
3904
if test -z "$ac_cpp_err"; then
 
3905
  # Broken: success on invalid input.
 
3906
continue
 
3907
else
 
3908
  echo "$as_me: failed program was:" >&5
 
3909
  cat conftest.$ac_ext >&5
 
3910
  # Passes both tests.
 
3911
ac_preproc_ok=:
 
3912
break
 
3913
fi
 
3914
rm -f conftest.err conftest.$ac_ext
 
3915
 
 
3916
done
 
3917
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3918
rm -f conftest.err conftest.$ac_ext
 
3919
if $ac_preproc_ok; then
 
3920
  break
 
3921
fi
 
3922
 
 
3923
    done
 
3924
    ac_cv_prog_CPP=$CPP
 
3925
 
 
3926
fi
 
3927
  CPP=$ac_cv_prog_CPP
 
3928
else
 
3929
  ac_cv_prog_CPP=$CPP
 
3930
fi
 
3931
echo "$as_me:$LINENO: result: $CPP" >&5
 
3932
echo "${ECHO_T}$CPP" >&6
 
3933
ac_preproc_ok=false
 
3934
for ac_c_preproc_warn_flag in '' yes
 
3935
do
 
3936
  # Use a header file that comes with gcc, so configuring glibc
 
3937
  # with a fresh cross-compiler works.
 
3938
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3939
  # not just through cpp. "Syntax error" is here to catch this case.
 
3940
  cat >conftest.$ac_ext <<_ACEOF
 
3941
#line $LINENO "configure"
 
3942
#include "confdefs.h"
 
3943
#include <assert.h>
 
3944
                     Syntax error
 
3945
_ACEOF
 
3946
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3947
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3948
  ac_status=$?
 
3949
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3950
  rm -f conftest.er1
 
3951
  cat conftest.err >&5
 
3952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3953
  (exit $ac_status); } >/dev/null; then
 
3954
  if test -s conftest.err; then
 
3955
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3956
  else
 
3957
    ac_cpp_err=
 
3958
  fi
 
3959
else
 
3960
  ac_cpp_err=yes
 
3961
fi
 
3962
if test -z "$ac_cpp_err"; then
 
3963
  :
 
3964
else
 
3965
  echo "$as_me: failed program was:" >&5
 
3966
  cat conftest.$ac_ext >&5
 
3967
  # Broken: fails on valid input.
 
3968
continue
 
3969
fi
 
3970
rm -f conftest.err conftest.$ac_ext
 
3971
 
 
3972
  # OK, works on sane cases.  Now check whether non-existent headers
 
3973
  # can be detected and how.
 
3974
  cat >conftest.$ac_ext <<_ACEOF
 
3975
#line $LINENO "configure"
 
3976
#include "confdefs.h"
 
3977
#include <ac_nonexistent.h>
 
3978
_ACEOF
 
3979
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3980
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3981
  ac_status=$?
 
3982
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3983
  rm -f conftest.er1
 
3984
  cat conftest.err >&5
 
3985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3986
  (exit $ac_status); } >/dev/null; then
 
3987
  if test -s conftest.err; then
 
3988
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3989
  else
 
3990
    ac_cpp_err=
 
3991
  fi
 
3992
else
 
3993
  ac_cpp_err=yes
 
3994
fi
 
3995
if test -z "$ac_cpp_err"; then
 
3996
  # Broken: success on invalid input.
 
3997
continue
 
3998
else
 
3999
  echo "$as_me: failed program was:" >&5
 
4000
  cat conftest.$ac_ext >&5
 
4001
  # Passes both tests.
 
4002
ac_preproc_ok=:
 
4003
break
 
4004
fi
 
4005
rm -f conftest.err conftest.$ac_ext
 
4006
 
 
4007
done
 
4008
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4009
rm -f conftest.err conftest.$ac_ext
 
4010
if $ac_preproc_ok; then
 
4011
  :
 
4012
else
 
4013
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
 
4014
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
 
4015
   { (exit 1); exit 1; }; }
 
4016
fi
 
4017
 
 
4018
ac_ext=c
 
4019
ac_cpp='$CPP $CPPFLAGS'
 
4020
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4021
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4022
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4023
 
 
4024
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4025
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4026
if test "${ac_cv_header_stdc+set}" = set; then
 
4027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4028
else
 
4029
  cat >conftest.$ac_ext <<_ACEOF
 
4030
#line $LINENO "configure"
 
4031
#include "confdefs.h"
 
4032
#include <stdlib.h>
 
4033
#include <stdarg.h>
 
4034
#include <string.h>
 
4035
#include <float.h>
 
4036
 
 
4037
_ACEOF
 
4038
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4039
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4040
  ac_status=$?
 
4041
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4042
  rm -f conftest.er1
 
4043
  cat conftest.err >&5
 
4044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4045
  (exit $ac_status); } >/dev/null; then
 
4046
  if test -s conftest.err; then
 
4047
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4048
  else
 
4049
    ac_cpp_err=
 
4050
  fi
 
4051
else
 
4052
  ac_cpp_err=yes
 
4053
fi
 
4054
if test -z "$ac_cpp_err"; then
 
4055
  ac_cv_header_stdc=yes
 
4056
else
 
4057
  echo "$as_me: failed program was:" >&5
 
4058
  cat conftest.$ac_ext >&5
 
4059
  ac_cv_header_stdc=no
 
4060
fi
 
4061
rm -f conftest.err conftest.$ac_ext
 
4062
 
 
4063
if test $ac_cv_header_stdc = yes; then
 
4064
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4065
  cat >conftest.$ac_ext <<_ACEOF
 
4066
#line $LINENO "configure"
 
4067
#include "confdefs.h"
 
4068
#include <string.h>
 
4069
 
 
4070
_ACEOF
 
4071
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4072
  egrep "memchr" >/dev/null 2>&1; then
 
4073
  :
 
4074
else
 
4075
  ac_cv_header_stdc=no
 
4076
fi
 
4077
rm -f conftest*
 
4078
 
 
4079
fi
 
4080
 
 
4081
if test $ac_cv_header_stdc = yes; then
 
4082
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4083
  cat >conftest.$ac_ext <<_ACEOF
 
4084
#line $LINENO "configure"
 
4085
#include "confdefs.h"
 
4086
#include <stdlib.h>
 
4087
 
 
4088
_ACEOF
 
4089
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4090
  egrep "free" >/dev/null 2>&1; then
 
4091
  :
 
4092
else
 
4093
  ac_cv_header_stdc=no
 
4094
fi
 
4095
rm -f conftest*
 
4096
 
 
4097
fi
 
4098
 
 
4099
if test $ac_cv_header_stdc = yes; then
 
4100
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4101
  if test "$cross_compiling" = yes; then
 
4102
  :
 
4103
else
 
4104
  cat >conftest.$ac_ext <<_ACEOF
 
4105
#line $LINENO "configure"
 
4106
#include "confdefs.h"
 
4107
#include <ctype.h>
 
4108
#if ((' ' & 0x0FF) == 0x020)
 
4109
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4110
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4111
#else
 
4112
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
 
4113
                     || ('j' <= (c) && (c) <= 'r') \
 
4114
                     || ('s' <= (c) && (c) <= 'z'))
 
4115
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4116
#endif
 
4117
 
 
4118
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4119
int
 
4120
main ()
 
4121
{
 
4122
  int i;
 
4123
  for (i = 0; i < 256; i++)
 
4124
    if (XOR (islower (i), ISLOWER (i))
 
4125
        || toupper (i) != TOUPPER (i))
 
4126
      exit(2);
 
4127
  exit (0);
 
4128
}
 
4129
_ACEOF
 
4130
rm -f conftest$ac_exeext
 
4131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4132
  (eval $ac_link) 2>&5
 
4133
  ac_status=$?
 
4134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4135
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4137
  (eval $ac_try) 2>&5
 
4138
  ac_status=$?
 
4139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4140
  (exit $ac_status); }; }; then
 
4141
  :
 
4142
else
 
4143
  echo "$as_me: program exited with status $ac_status" >&5
 
4144
echo "$as_me: failed program was:" >&5
 
4145
cat conftest.$ac_ext >&5
 
4146
( exit $ac_status )
 
4147
ac_cv_header_stdc=no
 
4148
fi
 
4149
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4150
fi
 
4151
fi
 
4152
fi
 
4153
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4154
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4155
if test $ac_cv_header_stdc = yes; then
 
4156
 
 
4157
cat >>confdefs.h <<\_ACEOF
 
4158
#define STDC_HEADERS 1
 
4159
_ACEOF
 
4160
 
 
4161
fi
 
4162
 
 
4163
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4164
 
 
4165
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4166
                  inttypes.h stdint.h unistd.h
 
4167
do
 
4168
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4169
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4170
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4171
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4173
else
 
4174
  cat >conftest.$ac_ext <<_ACEOF
 
4175
#line $LINENO "configure"
 
4176
#include "confdefs.h"
 
4177
$ac_includes_default
 
4178
 
 
4179
#include <$ac_header>
 
4180
_ACEOF
 
4181
rm -f conftest.$ac_objext
 
4182
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4183
  (eval $ac_compile) 2>&5
 
4184
  ac_status=$?
 
4185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4186
  (exit $ac_status); } &&
 
4187
         { ac_try='test -s conftest.$ac_objext'
 
4188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4189
  (eval $ac_try) 2>&5
 
4190
  ac_status=$?
 
4191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4192
  (exit $ac_status); }; }; then
 
4193
  eval "$as_ac_Header=yes"
 
4194
else
 
4195
  echo "$as_me: failed program was:" >&5
 
4196
cat conftest.$ac_ext >&5
 
4197
eval "$as_ac_Header=no"
 
4198
fi
 
4199
rm -f conftest.$ac_objext conftest.$ac_ext
 
4200
fi
 
4201
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4202
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4203
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4204
  cat >>confdefs.h <<_ACEOF
 
4205
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4206
_ACEOF
 
4207
 
 
4208
fi
 
4209
 
 
4210
done
 
4211
 
 
4212
for ac_header in dlfcn.h
 
4213
do
 
4214
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4215
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4216
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4217
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4218
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4220
fi
 
4221
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4222
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4223
else
 
4224
  # Is the header compilable?
 
4225
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4226
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4227
cat >conftest.$ac_ext <<_ACEOF
 
4228
#line $LINENO "configure"
 
4229
#include "confdefs.h"
 
4230
$ac_includes_default
 
4231
#include <$ac_header>
 
4232
_ACEOF
 
4233
rm -f conftest.$ac_objext
 
4234
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4235
  (eval $ac_compile) 2>&5
 
4236
  ac_status=$?
 
4237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4238
  (exit $ac_status); } &&
 
4239
         { ac_try='test -s conftest.$ac_objext'
 
4240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4241
  (eval $ac_try) 2>&5
 
4242
  ac_status=$?
 
4243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4244
  (exit $ac_status); }; }; then
 
4245
  ac_header_compiler=yes
 
4246
else
 
4247
  echo "$as_me: failed program was:" >&5
 
4248
cat conftest.$ac_ext >&5
 
4249
ac_header_compiler=no
 
4250
fi
 
4251
rm -f conftest.$ac_objext conftest.$ac_ext
 
4252
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4253
echo "${ECHO_T}$ac_header_compiler" >&6
 
4254
 
 
4255
# Is the header present?
 
4256
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4257
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4258
cat >conftest.$ac_ext <<_ACEOF
 
4259
#line $LINENO "configure"
 
4260
#include "confdefs.h"
 
4261
#include <$ac_header>
 
4262
_ACEOF
 
4263
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4264
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4265
  ac_status=$?
 
4266
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4267
  rm -f conftest.er1
 
4268
  cat conftest.err >&5
 
4269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4270
  (exit $ac_status); } >/dev/null; then
 
4271
  if test -s conftest.err; then
 
4272
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4273
  else
 
4274
    ac_cpp_err=
 
4275
  fi
 
4276
else
 
4277
  ac_cpp_err=yes
 
4278
fi
 
4279
if test -z "$ac_cpp_err"; then
 
4280
  ac_header_preproc=yes
 
4281
else
 
4282
  echo "$as_me: failed program was:" >&5
 
4283
  cat conftest.$ac_ext >&5
 
4284
  ac_header_preproc=no
 
4285
fi
 
4286
rm -f conftest.err conftest.$ac_ext
 
4287
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4288
echo "${ECHO_T}$ac_header_preproc" >&6
 
4289
 
 
4290
# So?  What about this header?
 
4291
case $ac_header_compiler:$ac_header_preproc in
 
4292
  yes:no )
 
4293
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4294
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4295
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4296
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
4297
  no:yes )
 
4298
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
 
4299
echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
 
4300
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4301
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4302
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4303
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
4304
esac
 
4305
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4306
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4307
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4309
else
 
4310
  eval "$as_ac_Header=$ac_header_preproc"
 
4311
fi
 
4312
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4313
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4314
 
 
4315
fi
 
4316
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4317
  cat >>confdefs.h <<_ACEOF
 
4318
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4319
_ACEOF
 
4320
 
 
4321
fi
 
4322
 
 
4323
done
 
4324
 
 
4325
# Only perform the check for file, if the check method requires it
 
4326
case $deplibs_check_method in
 
4327
file_magic*)
 
4328
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
4329
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
4330
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
4331
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
4332
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4333
else
 
4334
  case $MAGIC_CMD in
 
4335
  /*)
 
4336
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
4337
  ;;
 
4338
  ?:/*)
 
4339
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
4340
  ;;
 
4341
  *)
 
4342
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
4343
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
4344
  ac_dummy="/usr/bin:$PATH"
 
4345
  for ac_dir in $ac_dummy; do
 
4346
    test -z "$ac_dir" && ac_dir=.
 
4347
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
4348
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
4349
      if test -n "$file_magic_test_file"; then
 
4350
        case $deplibs_check_method in
 
4351
        "file_magic "*)
 
4352
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
4353
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4354
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
4355
            egrep "$file_magic_regex" > /dev/null; then
 
4356
            :
 
4357
          else
 
4358
            cat <<EOF 1>&2
 
4359
 
 
4360
*** Warning: the command libtool uses to detect shared libraries,
 
4361
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
4362
*** The result is that libtool may fail to recognize shared libraries
 
4363
*** as such.  This will affect the creation of libtool libraries that
 
4364
*** depend on shared libraries, but programs linked with such libtool
 
4365
*** libraries will work regardless of this problem.  Nevertheless, you
 
4366
*** may want to report the problem to your system manager and/or to
 
4367
*** bug-libtool@gnu.org
 
4368
 
 
4369
EOF
 
4370
          fi ;;
 
4371
        esac
 
4372
      fi
 
4373
      break
 
4374
    fi
 
4375
  done
 
4376
  IFS="$ac_save_ifs"
 
4377
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
4378
  ;;
 
4379
esac
 
4380
fi
 
4381
 
 
4382
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4383
if test -n "$MAGIC_CMD"; then
 
4384
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
4385
echo "${ECHO_T}$MAGIC_CMD" >&6
 
4386
else
 
4387
  echo "$as_me:$LINENO: result: no" >&5
 
4388
echo "${ECHO_T}no" >&6
 
4389
fi
 
4390
 
 
4391
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
4392
  if test -n "$ac_tool_prefix"; then
 
4393
    echo "$as_me:$LINENO: checking for file" >&5
 
4394
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
4395
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
4396
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4397
else
 
4398
  case $MAGIC_CMD in
 
4399
  /*)
 
4400
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
4401
  ;;
 
4402
  ?:/*)
 
4403
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
4404
  ;;
 
4405
  *)
 
4406
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
4407
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
4408
  ac_dummy="/usr/bin:$PATH"
 
4409
  for ac_dir in $ac_dummy; do
 
4410
    test -z "$ac_dir" && ac_dir=.
 
4411
    if test -f $ac_dir/file; then
 
4412
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
4413
      if test -n "$file_magic_test_file"; then
 
4414
        case $deplibs_check_method in
 
4415
        "file_magic "*)
 
4416
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
4417
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4418
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
4419
            egrep "$file_magic_regex" > /dev/null; then
 
4420
            :
 
4421
          else
 
4422
            cat <<EOF 1>&2
 
4423
 
 
4424
*** Warning: the command libtool uses to detect shared libraries,
 
4425
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
4426
*** The result is that libtool may fail to recognize shared libraries
 
4427
*** as such.  This will affect the creation of libtool libraries that
 
4428
*** depend on shared libraries, but programs linked with such libtool
 
4429
*** libraries will work regardless of this problem.  Nevertheless, you
 
4430
*** may want to report the problem to your system manager and/or to
 
4431
*** bug-libtool@gnu.org
 
4432
 
 
4433
EOF
 
4434
          fi ;;
 
4435
        esac
 
4436
      fi
 
4437
      break
 
4438
    fi
 
4439
  done
 
4440
  IFS="$ac_save_ifs"
 
4441
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
4442
  ;;
 
4443
esac
 
4444
fi
 
4445
 
 
4446
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4447
if test -n "$MAGIC_CMD"; then
 
4448
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
4449
echo "${ECHO_T}$MAGIC_CMD" >&6
 
4450
else
 
4451
  echo "$as_me:$LINENO: result: no" >&5
 
4452
echo "${ECHO_T}no" >&6
 
4453
fi
 
4454
 
 
4455
  else
 
4456
    MAGIC_CMD=:
 
4457
  fi
 
4458
fi
 
4459
 
 
4460
  fi
 
4461
  ;;
 
4462
esac
 
4463
 
 
4464
if test -n "$ac_tool_prefix"; then
 
4465
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4466
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4467
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4468
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4469
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
4470
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4471
else
 
4472
  if test -n "$RANLIB"; then
 
4473
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4474
else
 
4475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4476
for as_dir in $PATH
 
4477
do
 
4478
  IFS=$as_save_IFS
 
4479
  test -z "$as_dir" && as_dir=.
 
4480
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4481
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4482
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4483
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4484
    break 2
 
4485
  fi
 
4486
done
 
4487
done
 
4488
 
 
4489
fi
 
4490
fi
 
4491
RANLIB=$ac_cv_prog_RANLIB
 
4492
if test -n "$RANLIB"; then
 
4493
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
4494
echo "${ECHO_T}$RANLIB" >&6
 
4495
else
 
4496
  echo "$as_me:$LINENO: result: no" >&5
 
4497
echo "${ECHO_T}no" >&6
 
4498
fi
 
4499
 
 
4500
fi
 
4501
if test -z "$ac_cv_prog_RANLIB"; then
 
4502
  ac_ct_RANLIB=$RANLIB
 
4503
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4504
set dummy ranlib; ac_word=$2
 
4505
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4506
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4507
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
4508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4509
else
 
4510
  if test -n "$ac_ct_RANLIB"; then
 
4511
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4512
else
 
4513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4514
for as_dir in $PATH
 
4515
do
 
4516
  IFS=$as_save_IFS
 
4517
  test -z "$as_dir" && as_dir=.
 
4518
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4519
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4520
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4521
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4522
    break 2
 
4523
  fi
 
4524
done
 
4525
done
 
4526
 
 
4527
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
4528
fi
 
4529
fi
 
4530
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4531
if test -n "$ac_ct_RANLIB"; then
 
4532
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
4533
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
4534
else
 
4535
  echo "$as_me:$LINENO: result: no" >&5
 
4536
echo "${ECHO_T}no" >&6
 
4537
fi
 
4538
 
 
4539
  RANLIB=$ac_ct_RANLIB
 
4540
else
 
4541
  RANLIB="$ac_cv_prog_RANLIB"
 
4542
fi
 
4543
 
 
4544
if test -n "$ac_tool_prefix"; then
 
4545
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
4546
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
4547
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4548
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4549
if test "${ac_cv_prog_STRIP+set}" = set; then
 
4550
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4551
else
 
4552
  if test -n "$STRIP"; then
 
4553
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
4554
else
 
4555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4556
for as_dir in $PATH
 
4557
do
 
4558
  IFS=$as_save_IFS
 
4559
  test -z "$as_dir" && as_dir=.
 
4560
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4561
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4562
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
4563
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4564
    break 2
 
4565
  fi
 
4566
done
 
4567
done
 
4568
 
 
4569
fi
 
4570
fi
 
4571
STRIP=$ac_cv_prog_STRIP
 
4572
if test -n "$STRIP"; then
 
4573
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
4574
echo "${ECHO_T}$STRIP" >&6
 
4575
else
 
4576
  echo "$as_me:$LINENO: result: no" >&5
 
4577
echo "${ECHO_T}no" >&6
 
4578
fi
 
4579
 
 
4580
fi
 
4581
if test -z "$ac_cv_prog_STRIP"; then
 
4582
  ac_ct_STRIP=$STRIP
 
4583
  # Extract the first word of "strip", so it can be a program name with args.
 
4584
set dummy strip; ac_word=$2
 
4585
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4586
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4587
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
4588
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4589
else
 
4590
  if test -n "$ac_ct_STRIP"; then
 
4591
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
4592
else
 
4593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4594
for as_dir in $PATH
 
4595
do
 
4596
  IFS=$as_save_IFS
 
4597
  test -z "$as_dir" && as_dir=.
 
4598
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4599
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4600
    ac_cv_prog_ac_ct_STRIP="strip"
 
4601
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4602
    break 2
 
4603
  fi
 
4604
done
 
4605
done
 
4606
 
 
4607
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
4608
fi
 
4609
fi
 
4610
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
4611
if test -n "$ac_ct_STRIP"; then
 
4612
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
4613
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
4614
else
 
4615
  echo "$as_me:$LINENO: result: no" >&5
 
4616
echo "${ECHO_T}no" >&6
 
4617
fi
 
4618
 
 
4619
  STRIP=$ac_ct_STRIP
 
4620
else
 
4621
  STRIP="$ac_cv_prog_STRIP"
 
4622
fi
 
4623
 
 
4624
enable_dlopen=no
 
4625
enable_win32_dll=no
 
4626
 
 
4627
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
4628
if test "${enable_libtool_lock+set}" = set; then
 
4629
  enableval="$enable_libtool_lock"
 
4630
 
 
4631
fi;
 
4632
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4633
 
 
4634
# Some flags need to be propagated to the compiler or linker for good
 
4635
# libtool support.
 
4636
case $host in
 
4637
*-*-irix6*)
 
4638
  # Find out which ABI we are using.
 
4639
  echo '#line 4639 "configure"' > conftest.$ac_ext
 
4640
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4641
  (eval $ac_compile) 2>&5
 
4642
  ac_status=$?
 
4643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4644
  (exit $ac_status); }; then
 
4645
    case `/usr/bin/file conftest.$ac_objext` in
 
4646
    *32-bit*)
 
4647
      LD="${LD-ld} -32"
 
4648
      ;;
 
4649
    *N32*)
 
4650
      LD="${LD-ld} -n32"
 
4651
      ;;
 
4652
    *64-bit*)
 
4653
      LD="${LD-ld} -64"
 
4654
      ;;
 
4655
    esac
 
4656
  fi
 
4657
  rm -rf conftest*
 
4658
  ;;
 
4659
 
 
4660
*-*-sco3.2v5*)
 
4661
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4662
  SAVE_CFLAGS="$CFLAGS"
 
4663
  CFLAGS="$CFLAGS -belf"
 
4664
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4665
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
4666
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4668
else
 
4669
 
 
4670
     ac_ext=c
 
4671
ac_cpp='$CPP $CPPFLAGS'
 
4672
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4673
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4674
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4675
 
 
4676
     cat >conftest.$ac_ext <<_ACEOF
 
4677
#line $LINENO "configure"
 
4678
#include "confdefs.h"
 
4679
 
 
4680
#ifdef F77_DUMMY_MAIN
 
4681
#  ifdef __cplusplus
 
4682
     extern "C"
 
4683
#  endif
 
4684
   int F77_DUMMY_MAIN() { return 1; }
 
4685
#endif
 
4686
int
 
4687
main ()
 
4688
{
 
4689
 
 
4690
  ;
 
4691
  return 0;
 
4692
}
 
4693
_ACEOF
 
4694
rm -f conftest.$ac_objext conftest$ac_exeext
 
4695
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4696
  (eval $ac_link) 2>&5
 
4697
  ac_status=$?
 
4698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4699
  (exit $ac_status); } &&
 
4700
         { ac_try='test -s conftest$ac_exeext'
 
4701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4702
  (eval $ac_try) 2>&5
 
4703
  ac_status=$?
 
4704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4705
  (exit $ac_status); }; }; then
 
4706
  lt_cv_cc_needs_belf=yes
 
4707
else
 
4708
  echo "$as_me: failed program was:" >&5
 
4709
cat conftest.$ac_ext >&5
 
4710
lt_cv_cc_needs_belf=no
 
4711
fi
 
4712
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4713
     ac_ext=c
 
4714
ac_cpp='$CPP $CPPFLAGS'
 
4715
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4716
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4717
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4718
 
 
4719
fi
 
4720
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4721
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
4722
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4723
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4724
    CFLAGS="$SAVE_CFLAGS"
 
4725
  fi
 
4726
  ;;
 
4727
 
 
4728
esac
 
4729
 
 
4730
# Sed substitution that helps us do robust quoting.  It backslashifies
 
4731
# metacharacters that are still active within double-quoted strings.
 
4732
Xsed='sed -e s/^X//'
 
4733
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
4734
 
 
4735
# Same as above, but do not quote variable references.
 
4736
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
4737
 
 
4738
# Sed substitution to delay expansion of an escaped shell variable in a
 
4739
# double_quote_subst'ed string.
 
4740
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4741
 
 
4742
# Constants:
 
4743
rm="rm -f"
 
4744
 
 
4745
# Global variables:
 
4746
default_ofile=libtool
 
4747
can_build_shared=yes
 
4748
 
 
4749
# All known linkers require a `.a' archive for static linking (except M$VC,
 
4750
# which needs '.lib').
 
4751
libext=a
 
4752
ltmain="$ac_aux_dir/ltmain.sh"
 
4753
ofile="$default_ofile"
 
4754
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
4755
need_locks="$enable_libtool_lock"
 
4756
 
 
4757
old_CC="$CC"
 
4758
old_CFLAGS="$CFLAGS"
 
4759
 
 
4760
# Set sane defaults for various variables
 
4761
test -z "$AR" && AR=ar
 
4762
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
4763
test -z "$AS" && AS=as
 
4764
test -z "$CC" && CC=cc
 
4765
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
4766
test -z "$LD" && LD=ld
 
4767
test -z "$LN_S" && LN_S="ln -s"
 
4768
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
4769
test -z "$NM" && NM=nm
 
4770
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4771
test -z "$RANLIB" && RANLIB=:
 
4772
test -z "$STRIP" && STRIP=:
 
4773
test -z "$ac_objext" && ac_objext=o
 
4774
 
 
4775
if test x"$host" != x"$build"; then
 
4776
  ac_tool_prefix=${host_alias}-
 
4777
else
 
4778
  ac_tool_prefix=
 
4779
fi
 
4780
 
 
4781
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
 
4782
case $host_os in
 
4783
linux-gnu*) ;;
 
4784
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
 
4785
esac
 
4786
 
 
4787
case $host_os in
 
4788
aix3*)
 
4789
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
4790
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
4791
  # vanish in a puff of smoke.
 
4792
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
4793
    COLLECT_NAMES=
 
4794
    export COLLECT_NAMES
 
4795
  fi
 
4796
  ;;
 
4797
esac
 
4798
 
 
4799
# Determine commands to create old-style static archives.
 
4800
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
4801
old_postinstall_cmds='chmod 644 $oldlib'
 
4802
old_postuninstall_cmds=
 
4803
 
 
4804
if test -n "$RANLIB"; then
 
4805
  case $host_os in
 
4806
  openbsd*)
 
4807
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
4808
    ;;
 
4809
  *)
 
4810
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
4811
    ;;
 
4812
  esac
 
4813
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
4814
fi
 
4815
 
 
4816
# Allow CC to be a program name with arguments.
 
4817
set dummy $CC
 
4818
compiler="$2"
 
4819
 
 
4820
echo "$as_me:$LINENO: checking for objdir" >&5
 
4821
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
4822
rm -f .libs 2>/dev/null
 
4823
mkdir .libs 2>/dev/null
 
4824
if test -d .libs; then
 
4825
  objdir=.libs
 
4826
else
 
4827
  # MS-DOS does not allow filenames that begin with a dot.
 
4828
  objdir=_libs
 
4829
fi
 
4830
rmdir .libs 2>/dev/null
 
4831
echo "$as_me:$LINENO: result: $objdir" >&5
 
4832
echo "${ECHO_T}$objdir" >&6
 
4833
 
 
4834
# Check whether --with-pic or --without-pic was given.
 
4835
if test "${with_pic+set}" = set; then
 
4836
  withval="$with_pic"
 
4837
  pic_mode="$withval"
 
4838
else
 
4839
  pic_mode=default
 
4840
fi;
 
4841
test -z "$pic_mode" && pic_mode=default
 
4842
 
 
4843
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
 
4844
# in isolation, and that seeing it set (from the cache) indicates that
 
4845
# the associated values are set (in the cache) correctly too.
 
4846
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
4847
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
4848
if test "${lt_cv_prog_cc_pic+set}" = set; then
 
4849
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4850
else
 
4851
   lt_cv_prog_cc_pic=
 
4852
  lt_cv_prog_cc_shlib=
 
4853
  lt_cv_prog_cc_wl=
 
4854
  lt_cv_prog_cc_static=
 
4855
  lt_cv_prog_cc_no_builtin=
 
4856
  lt_cv_prog_cc_can_build_shared=$can_build_shared
 
4857
 
 
4858
  if test "$GCC" = yes; then
 
4859
    lt_cv_prog_cc_wl='-Wl,'
 
4860
    lt_cv_prog_cc_static='-static'
 
4861
 
 
4862
    case $host_os in
 
4863
    aix*)
 
4864
      # Below there is a dirty hack to force normal static linking with -ldl
 
4865
      # The problem is because libdl dynamically linked with both libc and
 
4866
      # libC (AIX C++ library), which obviously doesn't included in libraries
 
4867
      # list by gcc. This cause undefined symbols with -static flags.
 
4868
      # This hack allows C programs to be linked with "-static -ldl", but
 
4869
      # not sure about C++ programs.
 
4870
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
 
4871
      ;;
 
4872
    amigaos*)
 
4873
      # FIXME: we need at least 68020 code to build shared libraries, but
 
4874
      # adding the `-m68020' flag to GCC prevents building anything better,
 
4875
      # like `-m68040'.
 
4876
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
 
4877
      ;;
 
4878
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
 
4879
      # PIC is the default for these OSes.
 
4880
      ;;
 
4881
    darwin* | rhapsody*)
 
4882
      # PIC is the default on this platform
 
4883
      # Common symbols not allowed in MH_DYLIB files
 
4884
      lt_cv_prog_cc_pic='-fno-common'
 
4885
      ;;
 
4886
    cygwin* | mingw* | pw32* | os2*)
 
4887
      # This hack is so that the source file can tell whether it is being
 
4888
      # built for inclusion in a dll (and should export symbols for example).
 
4889
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
4890
      ;;
 
4891
    sysv4*MP*)
 
4892
      if test -d /usr/nec; then
 
4893
         lt_cv_prog_cc_pic=-Kconform_pic
 
4894
      fi
 
4895
      ;;
 
4896
    *)
 
4897
      lt_cv_prog_cc_pic='-fPIC'
 
4898
      ;;
 
4899
    esac
 
4900
  else
 
4901
    # PORTME Check for PIC flags for the system compiler.
 
4902
    case $host_os in
 
4903
    aix3* | aix4* | aix5*)
 
4904
      lt_cv_prog_cc_wl='-Wl,'
 
4905
      # All AIX code is PIC.
 
4906
      if test "$host_cpu" = ia64; then
 
4907
        # AIX 5 now supports IA64 processor
 
4908
        lt_cv_prog_cc_static='-Bstatic'
 
4909
      else
 
4910
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
 
4911
      fi
 
4912
      ;;
 
4913
 
 
4914
    hpux9* | hpux10* | hpux11*)
 
4915
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
 
4916
      lt_cv_prog_cc_wl='-Wl,'
 
4917
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
 
4918
      lt_cv_prog_cc_pic='+Z'
 
4919
      ;;
 
4920
 
 
4921
    irix5* | irix6*)
 
4922
      lt_cv_prog_cc_wl='-Wl,'
 
4923
      lt_cv_prog_cc_static='-non_shared'
 
4924
      # PIC (with -KPIC) is the default.
 
4925
      ;;
 
4926
 
 
4927
    cygwin* | mingw* | pw32* | os2*)
 
4928
      # This hack is so that the source file can tell whether it is being
 
4929
      # built for inclusion in a dll (and should export symbols for example).
 
4930
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
4931
      ;;
 
4932
 
 
4933
    newsos6)
 
4934
      lt_cv_prog_cc_pic='-KPIC'
 
4935
      lt_cv_prog_cc_static='-Bstatic'
 
4936
      ;;
 
4937
 
 
4938
    osf3* | osf4* | osf5*)
 
4939
      # All OSF/1 code is PIC.
 
4940
      lt_cv_prog_cc_wl='-Wl,'
 
4941
      lt_cv_prog_cc_static='-non_shared'
 
4942
      ;;
 
4943
 
 
4944
    sco3.2v5*)
 
4945
      lt_cv_prog_cc_pic='-Kpic'
 
4946
      lt_cv_prog_cc_static='-dn'
 
4947
      lt_cv_prog_cc_shlib='-belf'
 
4948
      ;;
 
4949
 
 
4950
    solaris*)
 
4951
      lt_cv_prog_cc_pic='-KPIC'
 
4952
      lt_cv_prog_cc_static='-Bstatic'
 
4953
      lt_cv_prog_cc_wl='-Wl,'
 
4954
      ;;
 
4955
 
 
4956
    sunos4*)
 
4957
      lt_cv_prog_cc_pic='-PIC'
 
4958
      lt_cv_prog_cc_static='-Bstatic'
 
4959
      lt_cv_prog_cc_wl='-Qoption ld '
 
4960
      ;;
 
4961
 
 
4962
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4963
      lt_cv_prog_cc_pic='-KPIC'
 
4964
      lt_cv_prog_cc_static='-Bstatic'
 
4965
      if test "x$host_vendor" = xsni; then
 
4966
        lt_cv_prog_cc_wl='-LD'
 
4967
      else
 
4968
        lt_cv_prog_cc_wl='-Wl,'
 
4969
      fi
 
4970
      ;;
 
4971
 
 
4972
    uts4*)
 
4973
      lt_cv_prog_cc_pic='-pic'
 
4974
      lt_cv_prog_cc_static='-Bstatic'
 
4975
      ;;
 
4976
 
 
4977
    sysv4*MP*)
 
4978
      if test -d /usr/nec ;then
 
4979
        lt_cv_prog_cc_pic='-Kconform_pic'
 
4980
        lt_cv_prog_cc_static='-Bstatic'
 
4981
      fi
 
4982
      ;;
 
4983
 
 
4984
    *)
 
4985
      lt_cv_prog_cc_can_build_shared=no
 
4986
      ;;
 
4987
    esac
 
4988
  fi
 
4989
 
 
4990
fi
 
4991
 
 
4992
if test -z "$lt_cv_prog_cc_pic"; then
 
4993
  echo "$as_me:$LINENO: result: none" >&5
 
4994
echo "${ECHO_T}none" >&6
 
4995
else
 
4996
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
 
4997
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
 
4998
 
 
4999
  # Check to make sure the pic_flag actually works.
 
5000
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
 
5001
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
 
5002
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
 
5003
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5004
else
 
5005
      save_CFLAGS="$CFLAGS"
 
5006
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
 
5007
    cat >conftest.$ac_ext <<_ACEOF
 
5008
#line $LINENO "configure"
 
5009
#include "confdefs.h"
 
5010
 
 
5011
#ifdef F77_DUMMY_MAIN
 
5012
#  ifdef __cplusplus
 
5013
     extern "C"
 
5014
#  endif
 
5015
   int F77_DUMMY_MAIN() { return 1; }
 
5016
#endif
 
5017
int
 
5018
main ()
 
5019
{
 
5020
 
 
5021
  ;
 
5022
  return 0;
 
5023
}
 
5024
_ACEOF
 
5025
rm -f conftest.$ac_objext
 
5026
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5027
  (eval $ac_compile) 2>&5
 
5028
  ac_status=$?
 
5029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5030
  (exit $ac_status); } &&
 
5031
         { ac_try='test -s conftest.$ac_objext'
 
5032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5033
  (eval $ac_try) 2>&5
 
5034
  ac_status=$?
 
5035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5036
  (exit $ac_status); }; }; then
 
5037
        case $host_os in
 
5038
      hpux9* | hpux10* | hpux11*)
 
5039
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
 
5040
        # they create non-PIC objects.  So, if there were any warnings, we
 
5041
        # assume that PIC is not supported.
 
5042
        if test -s conftest.err; then
 
5043
          lt_cv_prog_cc_pic_works=no
 
5044
        else
 
5045
          lt_cv_prog_cc_pic_works=yes
 
5046
        fi
 
5047
        ;;
 
5048
      *)
 
5049
        lt_cv_prog_cc_pic_works=yes
 
5050
        ;;
 
5051
      esac
 
5052
 
 
5053
else
 
5054
  echo "$as_me: failed program was:" >&5
 
5055
cat conftest.$ac_ext >&5
 
5056
      lt_cv_prog_cc_pic_works=no
 
5057
 
 
5058
fi
 
5059
rm -f conftest.$ac_objext conftest.$ac_ext
 
5060
    CFLAGS="$save_CFLAGS"
 
5061
 
 
5062
fi
 
5063
 
 
5064
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
 
5065
    lt_cv_prog_cc_pic=
 
5066
    lt_cv_prog_cc_can_build_shared=no
 
5067
  else
 
5068
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
 
5069
  fi
 
5070
 
 
5071
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
 
5072
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
 
5073
fi
 
5074
 
 
5075
# Check for any special shared library compilation flags.
 
5076
if test -n "$lt_cv_prog_cc_shlib"; then
 
5077
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
 
5078
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
 
5079
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
5080
  else
 
5081
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5082
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5083
    lt_cv_prog_cc_can_build_shared=no
 
5084
  fi
 
5085
fi
 
5086
 
 
5087
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 
5088
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
 
5089
if test "${lt_cv_prog_cc_static_works+set}" = set; then
 
5090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5091
else
 
5092
    lt_cv_prog_cc_static_works=no
 
5093
  save_LDFLAGS="$LDFLAGS"
 
5094
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
 
5095
  cat >conftest.$ac_ext <<_ACEOF
 
5096
#line $LINENO "configure"
 
5097
#include "confdefs.h"
 
5098
 
 
5099
#ifdef F77_DUMMY_MAIN
 
5100
#  ifdef __cplusplus
 
5101
     extern "C"
 
5102
#  endif
 
5103
   int F77_DUMMY_MAIN() { return 1; }
 
5104
#endif
 
5105
int
 
5106
main ()
 
5107
{
 
5108
 
 
5109
  ;
 
5110
  return 0;
 
5111
}
 
5112
_ACEOF
 
5113
rm -f conftest.$ac_objext conftest$ac_exeext
 
5114
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5115
  (eval $ac_link) 2>&5
 
5116
  ac_status=$?
 
5117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5118
  (exit $ac_status); } &&
 
5119
         { ac_try='test -s conftest$ac_exeext'
 
5120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5121
  (eval $ac_try) 2>&5
 
5122
  ac_status=$?
 
5123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5124
  (exit $ac_status); }; }; then
 
5125
  lt_cv_prog_cc_static_works=yes
 
5126
else
 
5127
  echo "$as_me: failed program was:" >&5
 
5128
cat conftest.$ac_ext >&5
 
5129
fi
 
5130
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5131
  LDFLAGS="$save_LDFLAGS"
 
5132
 
 
5133
fi
 
5134
 
 
5135
# Belt *and* braces to stop my trousers falling down:
 
5136
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
 
5137
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
 
5138
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
 
5139
 
 
5140
pic_flag="$lt_cv_prog_cc_pic"
 
5141
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
 
5142
wl="$lt_cv_prog_cc_wl"
 
5143
link_static_flag="$lt_cv_prog_cc_static"
 
5144
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
 
5145
can_build_shared="$lt_cv_prog_cc_can_build_shared"
 
5146
 
 
5147
# Check to see if options -o and -c are simultaneously supported by compiler
 
5148
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
5149
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
5150
if test "${lt_cv_compiler_c_o+set}" = set; then
 
5151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5152
else
 
5153
 
 
5154
$rm -r conftest 2>/dev/null
 
5155
mkdir conftest
 
5156
cd conftest
 
5157
echo "int some_variable = 0;" > conftest.$ac_ext
 
5158
mkdir out
 
5159
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
5160
# that will create temporary files in the current directory regardless of
 
5161
# the output directory.  Thus, making CWD read-only will cause this test
 
5162
# to fail, enabling locking or at least warning the user not to do parallel
 
5163
# builds.
 
5164
chmod -w .
 
5165
save_CFLAGS="$CFLAGS"
 
5166
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 
5167
compiler_c_o=no
 
5168
if { (eval echo configure:5168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 
5169
  # The compiler can only warn and ignore the option if not recognized
 
5170
  # So say no if there are warnings
 
5171
  if test -s out/conftest.err; then
 
5172
    lt_cv_compiler_c_o=no
 
5173
  else
 
5174
    lt_cv_compiler_c_o=yes
 
5175
  fi
 
5176
else
 
5177
  # Append any errors to the config.log.
 
5178
  cat out/conftest.err 1>&5
 
5179
  lt_cv_compiler_c_o=no
 
5180
fi
 
5181
CFLAGS="$save_CFLAGS"
 
5182
chmod u+w .
 
5183
$rm conftest* out/*
 
5184
rmdir out
 
5185
cd ..
 
5186
rmdir conftest
 
5187
$rm -r conftest 2>/dev/null
 
5188
 
 
5189
fi
 
5190
 
 
5191
compiler_c_o=$lt_cv_compiler_c_o
 
5192
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
 
5193
echo "${ECHO_T}$compiler_c_o" >&6
 
5194
 
 
5195
if test x"$compiler_c_o" = x"yes"; then
 
5196
  # Check to see if we can write to a .lo
 
5197
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
 
5198
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
 
5199
  if test "${lt_cv_compiler_o_lo+set}" = set; then
 
5200
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5201
else
 
5202
 
 
5203
  lt_cv_compiler_o_lo=no
 
5204
  save_CFLAGS="$CFLAGS"
 
5205
  CFLAGS="$CFLAGS -c -o conftest.lo"
 
5206
  save_objext="$ac_objext"
 
5207
  ac_objext=lo
 
5208
  cat >conftest.$ac_ext <<_ACEOF
 
5209
#line $LINENO "configure"
 
5210
#include "confdefs.h"
 
5211
 
 
5212
#ifdef F77_DUMMY_MAIN
 
5213
#  ifdef __cplusplus
 
5214
     extern "C"
 
5215
#  endif
 
5216
   int F77_DUMMY_MAIN() { return 1; }
 
5217
#endif
 
5218
int
 
5219
main ()
 
5220
{
 
5221
int some_variable = 0;
 
5222
  ;
 
5223
  return 0;
 
5224
}
 
5225
_ACEOF
 
5226
rm -f conftest.$ac_objext
 
5227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5228
  (eval $ac_compile) 2>&5
 
5229
  ac_status=$?
 
5230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5231
  (exit $ac_status); } &&
 
5232
         { ac_try='test -s conftest.$ac_objext'
 
5233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5234
  (eval $ac_try) 2>&5
 
5235
  ac_status=$?
 
5236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5237
  (exit $ac_status); }; }; then
 
5238
      # The compiler can only warn and ignore the option if not recognized
 
5239
    # So say no if there are warnings
 
5240
    if test -s conftest.err; then
 
5241
      lt_cv_compiler_o_lo=no
 
5242
    else
 
5243
      lt_cv_compiler_o_lo=yes
 
5244
    fi
 
5245
 
 
5246
else
 
5247
  echo "$as_me: failed program was:" >&5
 
5248
cat conftest.$ac_ext >&5
 
5249
fi
 
5250
rm -f conftest.$ac_objext conftest.$ac_ext
 
5251
  ac_objext="$save_objext"
 
5252
  CFLAGS="$save_CFLAGS"
 
5253
 
 
5254
fi
 
5255
 
 
5256
  compiler_o_lo=$lt_cv_compiler_o_lo
 
5257
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
 
5258
echo "${ECHO_T}$compiler_o_lo" >&6
 
5259
else
 
5260
  compiler_o_lo=no
 
5261
fi
 
5262
 
 
5263
# Check to see if we can do hard links to lock some files if needed
 
5264
hard_links="nottested"
 
5265
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
5266
  # do not overwrite the value of need_locks provided by the user
 
5267
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
5268
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
5269
  hard_links=yes
 
5270
  $rm conftest*
 
5271
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
5272
  touch conftest.a
 
5273
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
5274
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
5275
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
5276
echo "${ECHO_T}$hard_links" >&6
 
5277
  if test "$hard_links" = no; then
 
5278
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
5279
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
5280
    need_locks=warn
 
5281
  fi
 
5282
else
 
5283
  need_locks=no
 
5284
fi
 
5285
 
 
5286
if test "$GCC" = yes; then
 
5287
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
 
5288
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5289
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5290
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5291
  save_CFLAGS="$CFLAGS"
 
5292
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
 
5293
  compiler_rtti_exceptions=no
 
5294
  cat >conftest.$ac_ext <<_ACEOF
 
5295
#line $LINENO "configure"
 
5296
#include "confdefs.h"
 
5297
 
 
5298
#ifdef F77_DUMMY_MAIN
 
5299
#  ifdef __cplusplus
 
5300
     extern "C"
 
5301
#  endif
 
5302
   int F77_DUMMY_MAIN() { return 1; }
 
5303
#endif
 
5304
int
 
5305
main ()
 
5306
{
 
5307
int some_variable = 0;
 
5308
  ;
 
5309
  return 0;
 
5310
}
 
5311
_ACEOF
 
5312
rm -f conftest.$ac_objext
 
5313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5314
  (eval $ac_compile) 2>&5
 
5315
  ac_status=$?
 
5316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5317
  (exit $ac_status); } &&
 
5318
         { ac_try='test -s conftest.$ac_objext'
 
5319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5320
  (eval $ac_try) 2>&5
 
5321
  ac_status=$?
 
5322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5323
  (exit $ac_status); }; }; then
 
5324
      # The compiler can only warn and ignore the option if not recognized
 
5325
    # So say no if there are warnings
 
5326
    if test -s conftest.err; then
 
5327
      compiler_rtti_exceptions=no
 
5328
    else
 
5329
      compiler_rtti_exceptions=yes
 
5330
    fi
 
5331
 
 
5332
else
 
5333
  echo "$as_me: failed program was:" >&5
 
5334
cat conftest.$ac_ext >&5
 
5335
fi
 
5336
rm -f conftest.$ac_objext conftest.$ac_ext
 
5337
  CFLAGS="$save_CFLAGS"
 
5338
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
 
5339
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
 
5340
 
 
5341
  if test "$compiler_rtti_exceptions" = "yes"; then
 
5342
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
 
5343
  else
 
5344
    no_builtin_flag=' -fno-builtin'
 
5345
  fi
 
5346
fi
 
5347
 
 
5348
# See if the linker supports building shared libraries.
 
5349
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
 
5350
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
 
5351
 
 
5352
allow_undefined_flag=
 
5353
no_undefined_flag=
 
5354
need_lib_prefix=unknown
 
5355
need_version=unknown
 
5356
# when you set need_version to no, make sure it does not cause -set_version
 
5357
# flags to be left without arguments
 
5358
archive_cmds=
 
5359
archive_expsym_cmds=
 
5360
old_archive_from_new_cmds=
 
5361
old_archive_from_expsyms_cmds=
 
5362
export_dynamic_flag_spec=
 
5363
whole_archive_flag_spec=
 
5364
thread_safe_flag_spec=
 
5365
hardcode_into_libs=no
 
5366
hardcode_libdir_flag_spec=
 
5367
hardcode_libdir_separator=
 
5368
hardcode_direct=no
 
5369
hardcode_minus_L=no
 
5370
hardcode_shlibpath_var=unsupported
 
5371
runpath_var=
 
5372
link_all_deplibs=unknown
 
5373
always_export_symbols=no
 
5374
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5375
# include_expsyms should be a list of space-separated symbols to be *always*
 
5376
# included in the symbol list
 
5377
include_expsyms=
 
5378
# exclude_expsyms can be an egrep regular expression of symbols to exclude
 
5379
# it will be wrapped by ` (' and `)$', so one must not match beginning or
 
5380
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
5381
# as well as any symbol that contains `d'.
 
5382
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
5383
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
5384
# platforms (ab)use it in PIC code, but their linkers get confused if
 
5385
# the symbol is explicitly referenced.  Since portable code cannot
 
5386
# rely on this symbol name, it's probably fine to never include it in
 
5387
# preloaded symbol tables.
 
5388
extract_expsyms_cmds=
 
5389
 
 
5390
case $host_os in
 
5391
cygwin* | mingw* | pw32*)
 
5392
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
5393
  # When not using gcc, we currently assume that we are using
 
5394
  # Microsoft Visual C++.
 
5395
  if test "$GCC" != yes; then
 
5396
    with_gnu_ld=no
 
5397
  fi
 
5398
  ;;
 
5399
openbsd*)
 
5400
  with_gnu_ld=no
 
5401
  ;;
 
5402
esac
 
5403
 
 
5404
ld_shlibs=yes
 
5405
if test "$with_gnu_ld" = yes; then
 
5406
  # If archive_cmds runs LD, not CC, wlarc should be empty
 
5407
  wlarc='${wl}'
 
5408
 
 
5409
  # See if GNU ld supports shared libraries.
 
5410
  case $host_os in
 
5411
  aix3* | aix4* | aix5*)
 
5412
    # On AIX, the GNU linker is very broken
 
5413
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
 
5414
    ld_shlibs=no
 
5415
    cat <<EOF 1>&2
 
5416
 
 
5417
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
5418
*** to be unable to reliably create shared libraries on AIX.
 
5419
*** Therefore, libtool is disabling shared libraries support.  If you
 
5420
*** really care for shared libraries, you may want to modify your PATH
 
5421
*** so that a non-GNU linker is found, and then restart.
 
5422
 
 
5423
EOF
 
5424
    ;;
 
5425
 
 
5426
  amigaos*)
 
5427
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
5428
    hardcode_libdir_flag_spec='-L$libdir'
 
5429
    hardcode_minus_L=yes
 
5430
 
 
5431
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
5432
    # that the semantics of dynamic libraries on AmigaOS, at least up
 
5433
    # to version 4, is to share data among multiple programs linked
 
5434
    # with the same dynamic library.  Since this doesn't match the
 
5435
    # behavior of shared libraries on other platforms, we can use
 
5436
    # them.
 
5437
    ld_shlibs=no
 
5438
    ;;
 
5439
 
 
5440
  beos*)
 
5441
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5442
      allow_undefined_flag=unsupported
 
5443
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
5444
      # support --undefined.  This deserves some investigation.  FIXME
 
5445
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5446
    else
 
5447
      ld_shlibs=no
 
5448
    fi
 
5449
    ;;
 
5450
 
 
5451
  cygwin* | mingw* | pw32*)
 
5452
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
5453
    # no search path for DLLs.
 
5454
    hardcode_libdir_flag_spec='-L$libdir'
 
5455
    allow_undefined_flag=unsupported
 
5456
    always_export_symbols=yes
 
5457
 
 
5458
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
 
5459
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
 
5460
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
 
5461
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
 
5462
      else $CC -o impgen impgen.c ; fi)~
 
5463
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
 
5464
 
 
5465
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
 
5466
 
 
5467
    # cygwin and mingw dlls have different entry points and sets of symbols
 
5468
    # to exclude.
 
5469
    # FIXME: what about values for MSVC?
 
5470
    dll_entry=__cygwin_dll_entry@12
 
5471
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
 
5472
    case $host_os in
 
5473
    mingw*)
 
5474
      # mingw values
 
5475
      dll_entry=_DllMainCRTStartup@12
 
5476
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
 
5477
      ;;
 
5478
    esac
 
5479
 
 
5480
    # mingw and cygwin differ, and it's simplest to just exclude the union
 
5481
    # of the two symbol sets.
 
5482
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
 
5483
 
 
5484
    # recent cygwin and mingw systems supply a stub DllMain which the user
 
5485
    # can override, but on older systems we have to supply one (in ltdll.c)
 
5486
    if test "x$lt_cv_need_dllmain" = "xyes"; then
 
5487
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
 
5488
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
 
5489
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 
5490
    else
 
5491
      ltdll_obj=
 
5492
      ltdll_cmds=
 
5493
    fi
 
5494
 
 
5495
    # Extract the symbol export list from an `--export-all' def file,
 
5496
    # then regenerate the def file from the symbol export list, so that
 
5497
    # the compiled dll only exports the symbol export list.
 
5498
    # Be careful not to strip the DATA tag left be newer dlltools.
 
5499
    export_symbols_cmds="$ltdll_cmds"'
 
5500
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
 
5501
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
 
5502
 
 
5503
    # If the export-symbols file already is a .def file (1st line
 
5504
    # is EXPORTS), use it as is.
 
5505
    # If DATA tags from a recent dlltool are present, honour them!
 
5506
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
 
5507
        cp $export_symbols $output_objdir/$soname-def;
 
5508
      else
 
5509
        echo EXPORTS > $output_objdir/$soname-def;
 
5510
        _lt_hint=1;
 
5511
        cat $export_symbols | while read symbol; do
 
5512
         set dummy \$symbol;
 
5513
         case \$# in
 
5514
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
 
5515
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
 
5516
         esac;
 
5517
         _lt_hint=`expr 1 + \$_lt_hint`;
 
5518
        done;
 
5519
      fi~
 
5520
      '"$ltdll_cmds"'
 
5521
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 
5522
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
 
5523
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 
5524
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
 
5525
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 
5526
    ;;
 
5527
 
 
5528
  netbsd*)
 
5529
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5530
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5531
      wlarc=
 
5532
    else
 
5533
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5534
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5535
    fi
 
5536
    ;;
 
5537
 
 
5538
  solaris* | sysv5*)
 
5539
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 
5540
      ld_shlibs=no
 
5541
      cat <<EOF 1>&2
 
5542
 
 
5543
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
5544
*** create shared libraries on Solaris systems.  Therefore, libtool
 
5545
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5546
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
5547
*** your PATH or compiler configuration so that the native linker is
 
5548
*** used, and then restart.
 
5549
 
 
5550
EOF
 
5551
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5552
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5553
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5554
    else
 
5555
      ld_shlibs=no
 
5556
    fi
 
5557
    ;;
 
5558
 
 
5559
  sunos4*)
 
5560
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5561
    wlarc=
 
5562
    hardcode_direct=yes
 
5563
    hardcode_shlibpath_var=no
 
5564
    ;;
 
5565
 
 
5566
  *)
 
5567
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5568
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5569
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5570
    else
 
5571
      ld_shlibs=no
 
5572
    fi
 
5573
    ;;
 
5574
  esac
 
5575
 
 
5576
  if test "$ld_shlibs" = yes; then
 
5577
    runpath_var=LD_RUN_PATH
 
5578
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
5579
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
5580
    case $host_os in
 
5581
    cygwin* | mingw* | pw32*)
 
5582
      # dlltool doesn't understand --whole-archive et. al.
 
5583
      whole_archive_flag_spec=
 
5584
      ;;
 
5585
    *)
 
5586
      # ancient GNU ld didn't support --whole-archive et. al.
 
5587
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
 
5588
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5589
      else
 
5590
        whole_archive_flag_spec=
 
5591
      fi
 
5592
      ;;
 
5593
    esac
 
5594
  fi
 
5595
else
 
5596
  # PORTME fill in a description of your system's linker (not GNU ld)
 
5597
  case $host_os in
 
5598
  aix3*)
 
5599
    allow_undefined_flag=unsupported
 
5600
    always_export_symbols=yes
 
5601
    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
5602
    # Note: this linker hardcodes the directories in LIBPATH if there
 
5603
    # are no directories specified by -L.
 
5604
    hardcode_minus_L=yes
 
5605
    if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5606
      # Neither direct hardcoding nor static linking is supported with a
 
5607
      # broken collect2.
 
5608
      hardcode_direct=unsupported
 
5609
    fi
 
5610
    ;;
 
5611
 
 
5612
  aix4* | aix5*)
 
5613
    if test "$host_cpu" = ia64; then
 
5614
      # On IA64, the linker does run time linking by default, so we don't
 
5615
      # have to do anything special.
 
5616
      aix_use_runtimelinking=no
 
5617
      exp_sym_flag='-Bexport'
 
5618
      no_entry_flag=""
 
5619
    else
 
5620
      aix_use_runtimelinking=no
 
5621
 
 
5622
      # Test if we are trying to use run time linking or normal
 
5623
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
5624
      # need to do runtime linking.
 
5625
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
5626
        for ld_flag in $LDFLAGS; do
 
5627
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
5628
            aix_use_runtimelinking=yes
 
5629
            break
 
5630
          fi
 
5631
        done
 
5632
      esac
 
5633
 
 
5634
      exp_sym_flag='-bexport'
 
5635
      no_entry_flag='-bnoentry'
 
5636
    fi
 
5637
 
 
5638
    # When large executables or shared objects are built, AIX ld can
 
5639
    # have problems creating the table of contents.  If linking a library
 
5640
    # or program results in "error TOC overflow" add -mminimal-toc to
 
5641
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
5642
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
5643
 
 
5644
    hardcode_direct=yes
 
5645
    archive_cmds=''
 
5646
    hardcode_libdir_separator=':'
 
5647
    if test "$GCC" = yes; then
 
5648
      case $host_os in aix4.[012]|aix4.[012].*)
 
5649
        collect2name=`${CC} -print-prog-name=collect2`
 
5650
        if test -f "$collect2name" && \
 
5651
          strings "$collect2name" | grep resolve_lib_name >/dev/null
 
5652
        then
 
5653
          # We have reworked collect2
 
5654
          hardcode_direct=yes
 
5655
        else
 
5656
          # We have old collect2
 
5657
          hardcode_direct=unsupported
 
5658
          # It fails to find uninstalled libraries when the uninstalled
 
5659
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5660
          # to unsupported forces relinking
 
5661
          hardcode_minus_L=yes
 
5662
          hardcode_libdir_flag_spec='-L$libdir'
 
5663
          hardcode_libdir_separator=
 
5664
        fi
 
5665
      esac
 
5666
 
 
5667
      shared_flag='-shared'
 
5668
    else
 
5669
      # not using gcc
 
5670
      if test "$host_cpu" = ia64; then
 
5671
        shared_flag='${wl}-G'
 
5672
      else
 
5673
        if test "$aix_use_runtimelinking" = yes; then
 
5674
          shared_flag='${wl}-G'
 
5675
        else
 
5676
          shared_flag='${wl}-bM:SRE'
 
5677
        fi
 
5678
      fi
 
5679
    fi
 
5680
 
 
5681
    # It seems that -bexpall can do strange things, so it is better to
 
5682
    # generate a list of symbols to export.
 
5683
    always_export_symbols=yes
 
5684
    if test "$aix_use_runtimelinking" = yes; then
 
5685
      # Warning - without using the other runtime loading flags (-brtl),
 
5686
      # -berok will link without error, but may produce a broken library.
 
5687
      allow_undefined_flag='-berok'
 
5688
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
 
5689
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5690
    else
 
5691
      if test "$host_cpu" = ia64; then
 
5692
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
5693
        allow_undefined_flag="-z nodefs"
 
5694
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
5695
      else
 
5696
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
 
5697
        # Warning - without using the other run time loading flags,
 
5698
        # -berok will link without error, but may produce a broken library.
 
5699
        allow_undefined_flag='${wl}-berok'
 
5700
        # This is a bit strange, but is similar to how AIX traditionally builds
 
5701
        # it's shared libraries.
 
5702
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
 
5703
      fi
 
5704
    fi
 
5705
    ;;
 
5706
 
 
5707
  amigaos*)
 
5708
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
5709
    hardcode_libdir_flag_spec='-L$libdir'
 
5710
    hardcode_minus_L=yes
 
5711
    # see comment about different semantics on the GNU ld section
 
5712
    ld_shlibs=no
 
5713
    ;;
 
5714
 
 
5715
  cygwin* | mingw* | pw32*)
 
5716
    # When not using gcc, we currently assume that we are using
 
5717
    # Microsoft Visual C++.
 
5718
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
5719
    # no search path for DLLs.
 
5720
    hardcode_libdir_flag_spec=' '
 
5721
    allow_undefined_flag=unsupported
 
5722
    # Tell ltmain to make .lib files, not .a files.
 
5723
    libext=lib
 
5724
    # FIXME: Setting linknames here is a bad hack.
 
5725
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5726
    # The linker will automatically build a .lib file if we build a DLL.
 
5727
    old_archive_from_new_cmds='true'
 
5728
    # FIXME: Should let the user specify the lib program.
 
5729
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5730
    fix_srcfile_path='`cygpath -w "$srcfile"`'
 
5731
    ;;
 
5732
 
 
5733
  darwin* | rhapsody*)
 
5734
    case "$host_os" in
 
5735
    rhapsody* | darwin1.[012])
 
5736
      allow_undefined_flag='-undefined suppress'
 
5737
      ;;
 
5738
    *) # Darwin 1.3 on
 
5739
      allow_undefined_flag='-flat_namespace -undefined suppress'
 
5740
      ;;
 
5741
    esac
 
5742
    # FIXME: Relying on posixy $() will cause problems for
 
5743
    #        cross-compilation, but unfortunately the echo tests do not
 
5744
    #        yet detect zsh echo's removal of \ escapes.
 
5745
    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
 
5746
    # We need to add '_' to the symbols in $export_symbols first
 
5747
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
 
5748
    hardcode_direct=yes
 
5749
    hardcode_shlibpath_var=no
 
5750
    whole_archive_flag_spec='-all_load $convenience'
 
5751
    ;;
 
5752
 
 
5753
  freebsd1*)
 
5754
    ld_shlibs=no
 
5755
    ;;
 
5756
 
 
5757
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
5758
  # support.  Future versions do this automatically, but an explicit c++rt0.o
 
5759
  # does not break anything, and helps significantly (at the cost of a little
 
5760
  # extra space).
 
5761
  freebsd2.2*)
 
5762
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5763
    hardcode_libdir_flag_spec='-R$libdir'
 
5764
    hardcode_direct=yes
 
5765
    hardcode_shlibpath_var=no
 
5766
    ;;
 
5767
 
 
5768
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
5769
  freebsd2*)
 
5770
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5771
    hardcode_direct=yes
 
5772
    hardcode_minus_L=yes
 
5773
    hardcode_shlibpath_var=no
 
5774
    ;;
 
5775
 
 
5776
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
5777
  freebsd*)
 
5778
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5779
    hardcode_libdir_flag_spec='-R$libdir'
 
5780
    hardcode_direct=yes
 
5781
    hardcode_shlibpath_var=no
 
5782
    ;;
 
5783
 
 
5784
  hpux9* | hpux10* | hpux11*)
 
5785
    case $host_os in
 
5786
    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
 
5787
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
 
5788
    esac
 
5789
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
5790
    hardcode_libdir_separator=:
 
5791
    hardcode_direct=yes
 
5792
    hardcode_minus_L=yes # Not in the search PATH, but as the default
 
5793
                         # location of the library.
 
5794
    export_dynamic_flag_spec='${wl}-E'
 
5795
    ;;
 
5796
 
 
5797
  irix5* | irix6*)
 
5798
    if test "$GCC" = yes; then
 
5799
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5800
    else
 
5801
      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
5802
    fi
 
5803
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5804
    hardcode_libdir_separator=:
 
5805
    link_all_deplibs=yes
 
5806
    ;;
 
5807
 
 
5808
  netbsd*)
 
5809
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5810
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5811
    else
 
5812
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5813
    fi
 
5814
    hardcode_libdir_flag_spec='-R$libdir'
 
5815
    hardcode_direct=yes
 
5816
    hardcode_shlibpath_var=no
 
5817
    ;;
 
5818
 
 
5819
  newsos6)
 
5820
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5821
    hardcode_direct=yes
 
5822
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5823
    hardcode_libdir_separator=:
 
5824
    hardcode_shlibpath_var=no
 
5825
    ;;
 
5826
 
 
5827
  openbsd*)
 
5828
    hardcode_direct=yes
 
5829
    hardcode_shlibpath_var=no
 
5830
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5831
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 
5832
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
5833
      export_dynamic_flag_spec='${wl}-E'
 
5834
    else
 
5835
      case "$host_os" in
 
5836
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
5837
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5838
        hardcode_libdir_flag_spec='-R$libdir'
 
5839
        ;;
 
5840
      *)
 
5841
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 
5842
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
5843
        ;;
 
5844
      esac
 
5845
    fi
 
5846
    ;;
 
5847
 
 
5848
  os2*)
 
5849
    hardcode_libdir_flag_spec='-L$libdir'
 
5850
    hardcode_minus_L=yes
 
5851
    allow_undefined_flag=unsupported
 
5852
    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
5853
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5854
    ;;
 
5855
 
 
5856
  osf3*)
 
5857
    if test "$GCC" = yes; then
 
5858
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
5859
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5860
    else
 
5861
      allow_undefined_flag=' -expect_unresolved \*'
 
5862
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
5863
    fi
 
5864
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5865
    hardcode_libdir_separator=:
 
5866
    ;;
 
5867
 
 
5868
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
 
5869
    if test "$GCC" = yes; then
 
5870
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
5871
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5872
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5873
    else
 
5874
      allow_undefined_flag=' -expect_unresolved \*'
 
5875
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
5876
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
5877
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
5878
 
 
5879
      #Both c and cxx compiler support -rpath directly
 
5880
      hardcode_libdir_flag_spec='-rpath $libdir'
 
5881
    fi
 
5882
    hardcode_libdir_separator=:
 
5883
    ;;
 
5884
 
 
5885
  sco3.2v5*)
 
5886
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5887
    hardcode_shlibpath_var=no
 
5888
    runpath_var=LD_RUN_PATH
 
5889
    hardcode_runpath_var=yes
 
5890
    export_dynamic_flag_spec='${wl}-Bexport'
 
5891
    ;;
 
5892
 
 
5893
  solaris*)
 
5894
    # gcc --version < 3.0 without binutils cannot create self contained
 
5895
    # shared libraries reliably, requiring libgcc.a to resolve some of
 
5896
    # the object symbols generated in some cases.  Libraries that use
 
5897
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
 
5898
    # a copy of libgcc.a into every shared library to guarantee resolving
 
5899
    # such symbols causes other problems:  According to Tim Van Holder
 
5900
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
 
5901
    # (to the application) exception stack for one thing.
 
5902
    no_undefined_flag=' -z defs'
 
5903
    if test "$GCC" = yes; then
 
5904
      case `$CC --version 2>/dev/null` in
 
5905
      [12].*)
 
5906
        cat <<EOF 1>&2
 
5907
 
 
5908
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
 
5909
*** create self contained shared libraries on Solaris systems, without
 
5910
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
 
5911
*** -no-undefined support, which will at least allow you to build shared
 
5912
*** libraries.  However, you may find that when you link such libraries
 
5913
*** into an application without using GCC, you have to manually add
 
5914
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
 
5915
*** upgrade to a newer version of GCC.  Another option is to rebuild your
 
5916
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
 
5917
 
 
5918
EOF
 
5919
        no_undefined_flag=
 
5920
        ;;
 
5921
      esac
 
5922
    fi
 
5923
    # $CC -shared without GNU ld will not create a library from C++
 
5924
    # object files and a static libstdc++, better avoid it by now
 
5925
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5926
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5927
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5928
    hardcode_libdir_flag_spec='-R$libdir'
 
5929
    hardcode_shlibpath_var=no
 
5930
    case $host_os in
 
5931
    solaris2.[0-5] | solaris2.[0-5].*) ;;
 
5932
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5933
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
5934
    esac
 
5935
    link_all_deplibs=yes
 
5936
    ;;
 
5937
 
 
5938
  sunos4*)
 
5939
    if test "x$host_vendor" = xsequent; then
 
5940
      # Use $CC to link under sequent, because it throws in some extra .o
 
5941
      # files that make .init and .fini sections work.
 
5942
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5943
    else
 
5944
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
5945
    fi
 
5946
    hardcode_libdir_flag_spec='-L$libdir'
 
5947
    hardcode_direct=yes
 
5948
    hardcode_minus_L=yes
 
5949
    hardcode_shlibpath_var=no
 
5950
    ;;
 
5951
 
 
5952
  sysv4)
 
5953
    if test "x$host_vendor" = xsno; then
 
5954
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5955
      hardcode_direct=yes # is this really true???
 
5956
    else
 
5957
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5958
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
5959
    fi
 
5960
    runpath_var='LD_RUN_PATH'
 
5961
    hardcode_shlibpath_var=no
 
5962
    ;;
 
5963
 
 
5964
  sysv4.3*)
 
5965
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5966
    hardcode_shlibpath_var=no
 
5967
    export_dynamic_flag_spec='-Bexport'
 
5968
    ;;
 
5969
 
 
5970
  sysv5*)
 
5971
    no_undefined_flag=' -z text'
 
5972
    # $CC -shared without GNU ld will not create a library from C++
 
5973
    # object files and a static libstdc++, better avoid it by now
 
5974
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5975
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5976
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5977
    hardcode_libdir_flag_spec=
 
5978
    hardcode_shlibpath_var=no
 
5979
    runpath_var='LD_RUN_PATH'
 
5980
    ;;
 
5981
 
 
5982
  uts4*)
 
5983
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5984
    hardcode_libdir_flag_spec='-L$libdir'
 
5985
    hardcode_shlibpath_var=no
 
5986
    ;;
 
5987
 
 
5988
  dgux*)
 
5989
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5990
    hardcode_libdir_flag_spec='-L$libdir'
 
5991
    hardcode_shlibpath_var=no
 
5992
    ;;
 
5993
 
 
5994
  sysv4*MP*)
 
5995
    if test -d /usr/nec; then
 
5996
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5997
      hardcode_shlibpath_var=no
 
5998
      runpath_var=LD_RUN_PATH
 
5999
      hardcode_runpath_var=yes
 
6000
      ld_shlibs=yes
 
6001
    fi
 
6002
    ;;
 
6003
 
 
6004
  sysv4.2uw2*)
 
6005
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6006
    hardcode_direct=yes
 
6007
    hardcode_minus_L=no
 
6008
    hardcode_shlibpath_var=no
 
6009
    hardcode_runpath_var=yes
 
6010
    runpath_var=LD_RUN_PATH
 
6011
    ;;
 
6012
 
 
6013
  sysv5uw7* | unixware7*)
 
6014
    no_undefined_flag='${wl}-z ${wl}text'
 
6015
    if test "$GCC" = yes; then
 
6016
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6017
    else
 
6018
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6019
    fi
 
6020
    runpath_var='LD_RUN_PATH'
 
6021
    hardcode_shlibpath_var=no
 
6022
    ;;
 
6023
 
 
6024
  *)
 
6025
    ld_shlibs=no
 
6026
    ;;
 
6027
  esac
 
6028
fi
 
6029
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
6030
echo "${ECHO_T}$ld_shlibs" >&6
 
6031
test "$ld_shlibs" = no && can_build_shared=no
 
6032
 
 
6033
# Check hardcoding attributes.
 
6034
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
6035
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
6036
hardcode_action=
 
6037
if test -n "$hardcode_libdir_flag_spec" || \
 
6038
   test -n "$runpath_var"; then
 
6039
 
 
6040
  # We can hardcode non-existant directories.
 
6041
  if test "$hardcode_direct" != no &&
 
6042
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
6043
     # have to relink, otherwise we might link with an installed library
 
6044
     # when we should be linking with a yet-to-be-installed one
 
6045
     ## test "$hardcode_shlibpath_var" != no &&
 
6046
     test "$hardcode_minus_L" != no; then
 
6047
    # Linking always hardcodes the temporary library directory.
 
6048
    hardcode_action=relink
 
6049
  else
 
6050
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
6051
    hardcode_action=immediate
 
6052
  fi
 
6053
else
 
6054
  # We cannot hardcode anything, or else we can only hardcode existing
 
6055
  # directories.
 
6056
  hardcode_action=unsupported
 
6057
fi
 
6058
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
6059
echo "${ECHO_T}$hardcode_action" >&6
 
6060
 
 
6061
striplib=
 
6062
old_striplib=
 
6063
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
6064
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
6065
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
6066
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
6067
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
6068
  echo "$as_me:$LINENO: result: yes" >&5
 
6069
echo "${ECHO_T}yes" >&6
 
6070
else
 
6071
  echo "$as_me:$LINENO: result: no" >&5
 
6072
echo "${ECHO_T}no" >&6
 
6073
fi
 
6074
 
 
6075
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6076
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6077
 
 
6078
# PORTME Fill in your ld.so characteristics
 
6079
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
6080
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
6081
library_names_spec=
 
6082
libname_spec='lib$name'
 
6083
soname_spec=
 
6084
postinstall_cmds=
 
6085
postuninstall_cmds=
 
6086
finish_cmds=
 
6087
finish_eval=
 
6088
shlibpath_var=
 
6089
shlibpath_overrides_runpath=unknown
 
6090
version_type=none
 
6091
dynamic_linker="$host_os ld.so"
 
6092
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
6093
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
6094
 
 
6095
case $host_os in
 
6096
aix3*)
 
6097
  version_type=linux
 
6098
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
 
6099
  shlibpath_var=LIBPATH
 
6100
 
 
6101
  # AIX has no versioning support, so we append a major version to the name.
 
6102
  soname_spec='${libname}${release}.so$major'
 
6103
  ;;
 
6104
 
 
6105
aix4* | aix5*)
 
6106
  version_type=linux
 
6107
  if test "$host_cpu" = ia64; then
 
6108
    # AIX 5 supports IA64
 
6109
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 
6110
    shlibpath_var=LD_LIBRARY_PATH
 
6111
  else
 
6112
    # With GCC up to 2.95.x, collect2 would create an import file
 
6113
    # for dependence libraries.  The import file would start with
 
6114
    # the line `#! .'.  This would cause the generated library to
 
6115
    # depend on `.', always an invalid library.  This was fixed in
 
6116
    # development snapshots of GCC prior to 3.0.
 
6117
    case $host_os in
 
6118
      aix4 | aix4.[01] | aix4.[01].*)
 
6119
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
6120
             echo ' yes '
 
6121
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
6122
          :
 
6123
        else
 
6124
          can_build_shared=no
 
6125
        fi
 
6126
        ;;
 
6127
    esac
 
6128
    # AIX (on Power*) has no versioning support, so currently we can
 
6129
    # not hardcode correct soname into executable. Probably we can
 
6130
    # add versioning support to collect2, so additional links can
 
6131
    # be useful in future.
 
6132
    if test "$aix_use_runtimelinking" = yes; then
 
6133
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
6134
      # instead of lib<name>.a to let people know that these are not
 
6135
      # typical AIX shared libraries.
 
6136
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6137
    else
 
6138
      # We preserve .a as extension for shared libraries through AIX4.2
 
6139
      # and later when we are not doing run time linking.
 
6140
      library_names_spec='${libname}${release}.a $libname.a'
 
6141
      soname_spec='${libname}${release}.so$major'
 
6142
    fi
 
6143
    shlibpath_var=LIBPATH
 
6144
  fi
 
6145
  ;;
 
6146
 
 
6147
amigaos*)
 
6148
  library_names_spec='$libname.ixlibrary $libname.a'
 
6149
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
6150
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 
6151
  ;;
 
6152
 
 
6153
beos*)
 
6154
  library_names_spec='${libname}.so'
 
6155
  dynamic_linker="$host_os ld.so"
 
6156
  shlibpath_var=LIBRARY_PATH
 
6157
  ;;
 
6158
 
 
6159
bsdi4*)
 
6160
  version_type=linux
 
6161
  need_version=no
 
6162
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6163
  soname_spec='${libname}${release}.so$major'
 
6164
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
6165
  shlibpath_var=LD_LIBRARY_PATH
 
6166
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
6167
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
6168
  export_dynamic_flag_spec=-rdynamic
 
6169
  # the default ld.so.conf also contains /usr/contrib/lib and
 
6170
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
6171
  # libtool to hard-code these into programs
 
6172
  ;;
 
6173
 
 
6174
cygwin* | mingw* | pw32*)
 
6175
  version_type=windows
 
6176
  need_version=no
 
6177
  need_lib_prefix=no
 
6178
  case $GCC,$host_os in
 
6179
  yes,cygwin*)
 
6180
    library_names_spec='$libname.dll.a'
 
6181
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
6182
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 
6183
      dldir=$destdir/`dirname \$dlpath`~
 
6184
      test -d \$dldir || mkdir -p \$dldir~
 
6185
      $install_prog .libs/$dlname \$dldir/$dlname'
 
6186
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
6187
      dlpath=$dir/\$dldll~
 
6188
       $rm \$dlpath'
 
6189
    ;;
 
6190
  yes,mingw*)
 
6191
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
6192
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
 
6193
    ;;
 
6194
  yes,pw32*)
 
6195
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
 
6196
    ;;
 
6197
  *)
 
6198
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
 
6199
    ;;
 
6200
  esac
 
6201
  dynamic_linker='Win32 ld.exe'
 
6202
  # FIXME: first we should search . and the directory the executable is in
 
6203
  shlibpath_var=PATH
 
6204
  ;;
 
6205
 
 
6206
darwin* | rhapsody*)
 
6207
  dynamic_linker="$host_os dyld"
 
6208
  version_type=darwin
 
6209
  need_lib_prefix=no
 
6210
  need_version=no
 
6211
  # FIXME: Relying on posixy $() will cause problems for
 
6212
  #        cross-compilation, but unfortunately the echo tests do not
 
6213
  #        yet detect zsh echo's removal of \ escapes.
 
6214
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
 
6215
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 
6216
  shlibpath_overrides_runpath=yes
 
6217
  shlibpath_var=DYLD_LIBRARY_PATH
 
6218
  ;;
 
6219
 
 
6220
freebsd1*)
 
6221
  dynamic_linker=no
 
6222
  ;;
 
6223
 
 
6224
freebsd*)
 
6225
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
6226
  version_type=freebsd-$objformat
 
6227
  case $version_type in
 
6228
    freebsd-elf*)
 
6229
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
6230
      need_version=no
 
6231
      need_lib_prefix=no
 
6232
      ;;
 
6233
    freebsd-*)
 
6234
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 
6235
      need_version=yes
 
6236
      ;;
 
6237
  esac
 
6238
  shlibpath_var=LD_LIBRARY_PATH
 
6239
  case $host_os in
 
6240
  freebsd2*)
 
6241
    shlibpath_overrides_runpath=yes
 
6242
    ;;
 
6243
  *)
 
6244
    shlibpath_overrides_runpath=no
 
6245
    hardcode_into_libs=yes
 
6246
    ;;
 
6247
  esac
 
6248
  ;;
 
6249
 
 
6250
gnu*)
 
6251
  version_type=linux
 
6252
  need_lib_prefix=no
 
6253
  need_version=no
 
6254
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
 
6255
  soname_spec='${libname}${release}.so$major'
 
6256
  shlibpath_var=LD_LIBRARY_PATH
 
6257
  hardcode_into_libs=yes
 
6258
  ;;
 
6259
 
 
6260
hpux9* | hpux10* | hpux11*)
 
6261
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
6262
  # link against other versions.
 
6263
  dynamic_linker="$host_os dld.sl"
 
6264
  version_type=sunos
 
6265
  need_lib_prefix=no
 
6266
  need_version=no
 
6267
  shlibpath_var=SHLIB_PATH
 
6268
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
6269
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
 
6270
  soname_spec='${libname}${release}.sl$major'
 
6271
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
6272
  postinstall_cmds='chmod 555 $lib'
 
6273
  ;;
 
6274
 
 
6275
irix5* | irix6*)
 
6276
  version_type=irix
 
6277
  need_lib_prefix=no
 
6278
  need_version=no
 
6279
  soname_spec='${libname}${release}.so$major'
 
6280
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 
6281
  case $host_os in
 
6282
  irix5*)
 
6283
    libsuff= shlibsuff=
 
6284
    ;;
 
6285
  *)
 
6286
    case $LD in # libtool.m4 will add one of these switches to LD
 
6287
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
 
6288
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
 
6289
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
6290
    *) libsuff= shlibsuff= libmagic=never-match;;
 
6291
    esac
 
6292
    ;;
 
6293
  esac
 
6294
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
6295
  shlibpath_overrides_runpath=no
 
6296
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
6297
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
6298
  ;;
 
6299
 
 
6300
# No shared lib support for Linux oldld, aout, or coff.
 
6301
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
 
6302
  dynamic_linker=no
 
6303
  ;;
 
6304
 
 
6305
# This must be Linux ELF.
 
6306
linux-gnu*)
 
6307
  version_type=linux
 
6308
  need_lib_prefix=no
 
6309
  need_version=no
 
6310
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6311
  soname_spec='${libname}${release}.so$major'
 
6312
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
6313
  shlibpath_var=LD_LIBRARY_PATH
 
6314
  shlibpath_overrides_runpath=no
 
6315
  # This implies no fast_install, which is unacceptable.
 
6316
  # Some rework will be needed to allow for fast_install
 
6317
  # before this can be enabled.
 
6318
  hardcode_into_libs=yes
 
6319
 
 
6320
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
6321
  # powerpc, because MkLinux only supported shared libraries with the
 
6322
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
6323
  # most powerpc-linux boxes support dynamic linking these days and
 
6324
  # people can always --disable-shared, the test was removed, and we
 
6325
  # assume the GNU/Linux dynamic linker is in use.
 
6326
  dynamic_linker='GNU/Linux ld.so'
 
6327
  ;;
 
6328
 
 
6329
netbsd*)
 
6330
  version_type=sunos
 
6331
  need_lib_prefix=no
 
6332
  need_version=no
 
6333
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6334
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6335
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
6336
    dynamic_linker='NetBSD (a.out) ld.so'
 
6337
  else
 
6338
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
 
6339
    soname_spec='${libname}${release}.so$major'
 
6340
    dynamic_linker='NetBSD ld.elf_so'
 
6341
  fi
 
6342
  shlibpath_var=LD_LIBRARY_PATH
 
6343
  shlibpath_overrides_runpath=yes
 
6344
  hardcode_into_libs=yes
 
6345
  ;;
 
6346
 
 
6347
newsos6)
 
6348
  version_type=linux
 
6349
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6350
  shlibpath_var=LD_LIBRARY_PATH
 
6351
  shlibpath_overrides_runpath=yes
 
6352
  ;;
 
6353
 
 
6354
openbsd*)
 
6355
  version_type=sunos
 
6356
  need_lib_prefix=no
 
6357
  need_version=no
 
6358
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6359
    case "$host_os" in
 
6360
    openbsd2.[89] | openbsd2.[89].*)
 
6361
      shlibpath_overrides_runpath=no
 
6362
      ;;
 
6363
    *)
 
6364
      shlibpath_overrides_runpath=yes
 
6365
      ;;
 
6366
    esac
 
6367
  else
 
6368
    shlibpath_overrides_runpath=yes
 
6369
  fi
 
6370
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6371
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
6372
  shlibpath_var=LD_LIBRARY_PATH
 
6373
  ;;
 
6374
 
 
6375
os2*)
 
6376
  libname_spec='$name'
 
6377
  need_lib_prefix=no
 
6378
  library_names_spec='$libname.dll $libname.a'
 
6379
  dynamic_linker='OS/2 ld.exe'
 
6380
  shlibpath_var=LIBPATH
 
6381
  ;;
 
6382
 
 
6383
osf3* | osf4* | osf5*)
 
6384
  version_type=osf
 
6385
  need_version=no
 
6386
  soname_spec='${libname}${release}.so'
 
6387
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
6388
  shlibpath_var=LD_LIBRARY_PATH
 
6389
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
6390
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
6391
  ;;
 
6392
 
 
6393
sco3.2v5*)
 
6394
  version_type=osf
 
6395
  soname_spec='${libname}${release}.so$major'
 
6396
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6397
  shlibpath_var=LD_LIBRARY_PATH
 
6398
  ;;
 
6399
 
 
6400
solaris*)
 
6401
  version_type=linux
 
6402
  need_lib_prefix=no
 
6403
  need_version=no
 
6404
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6405
  soname_spec='${libname}${release}.so$major'
 
6406
  shlibpath_var=LD_LIBRARY_PATH
 
6407
  shlibpath_overrides_runpath=yes
 
6408
  hardcode_into_libs=yes
 
6409
  # ldd complains unless libraries are executable
 
6410
  postinstall_cmds='chmod +x $lib'
 
6411
  ;;
 
6412
 
 
6413
sunos4*)
 
6414
  version_type=sunos
 
6415
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6416
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
6417
  shlibpath_var=LD_LIBRARY_PATH
 
6418
  shlibpath_overrides_runpath=yes
 
6419
  if test "$with_gnu_ld" = yes; then
 
6420
    need_lib_prefix=no
 
6421
  fi
 
6422
  need_version=yes
 
6423
  ;;
 
6424
 
 
6425
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6426
  version_type=linux
 
6427
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6428
  soname_spec='${libname}${release}.so$major'
 
6429
  shlibpath_var=LD_LIBRARY_PATH
 
6430
  case $host_vendor in
 
6431
    sni)
 
6432
      shlibpath_overrides_runpath=no
 
6433
      ;;
 
6434
    motorola)
 
6435
      need_lib_prefix=no
 
6436
      need_version=no
 
6437
      shlibpath_overrides_runpath=no
 
6438
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
6439
      ;;
 
6440
  esac
 
6441
  ;;
 
6442
 
 
6443
uts4*)
 
6444
  version_type=linux
 
6445
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6446
  soname_spec='${libname}${release}.so$major'
 
6447
  shlibpath_var=LD_LIBRARY_PATH
 
6448
  ;;
 
6449
 
 
6450
dgux*)
 
6451
  version_type=linux
 
6452
  need_lib_prefix=no
 
6453
  need_version=no
 
6454
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6455
  soname_spec='${libname}${release}.so$major'
 
6456
  shlibpath_var=LD_LIBRARY_PATH
 
6457
  ;;
 
6458
 
 
6459
sysv4*MP*)
 
6460
  if test -d /usr/nec ;then
 
6461
    version_type=linux
 
6462
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
 
6463
    soname_spec='$libname.so.$major'
 
6464
    shlibpath_var=LD_LIBRARY_PATH
 
6465
  fi
 
6466
  ;;
 
6467
 
 
6468
*)
 
6469
  dynamic_linker=no
 
6470
  ;;
 
6471
esac
 
6472
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
6473
echo "${ECHO_T}$dynamic_linker" >&6
 
6474
test "$dynamic_linker" = no && can_build_shared=no
 
6475
 
 
6476
# Report the final consequences.
 
6477
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
6478
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
6479
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
6480
echo "${ECHO_T}$can_build_shared" >&6
 
6481
 
 
6482
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
6483
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
6484
test "$can_build_shared" = "no" && enable_shared=no
 
6485
 
 
6486
# On AIX, shared libraries and static libraries use the same namespace, and
 
6487
# are all built from PIC.
 
6488
case "$host_os" in
 
6489
aix3*)
 
6490
  test "$enable_shared" = yes && enable_static=no
 
6491
  if test -n "$RANLIB"; then
 
6492
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6493
    postinstall_cmds='$RANLIB $lib'
 
6494
  fi
 
6495
  ;;
 
6496
 
 
6497
aix4*)
 
6498
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6499
    test "$enable_shared" = yes && enable_static=no
 
6500
  fi
 
6501
  ;;
 
6502
esac
 
6503
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
6504
echo "${ECHO_T}$enable_shared" >&6
 
6505
 
 
6506
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
6507
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
6508
# Make sure either enable_shared or enable_static is yes.
 
6509
test "$enable_shared" = yes || enable_static=yes
 
6510
echo "$as_me:$LINENO: result: $enable_static" >&5
 
6511
echo "${ECHO_T}$enable_static" >&6
 
6512
 
 
6513
if test "$hardcode_action" = relink; then
 
6514
  # Fast installation is not supported
 
6515
  enable_fast_install=no
 
6516
elif test "$shlibpath_overrides_runpath" = yes ||
 
6517
     test "$enable_shared" = no; then
 
6518
  # Fast installation is not necessary
 
6519
  enable_fast_install=needless
 
6520
fi
 
6521
 
 
6522
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
6523
if test "$GCC" = yes; then
 
6524
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
6525
fi
 
6526
 
 
6527
if test "x$enable_dlopen" != xyes; then
 
6528
  enable_dlopen=unknown
 
6529
  enable_dlopen_self=unknown
 
6530
  enable_dlopen_self_static=unknown
 
6531
else
 
6532
  lt_cv_dlopen=no
 
6533
  lt_cv_dlopen_libs=
 
6534
 
 
6535
  case $host_os in
 
6536
  beos*)
 
6537
    lt_cv_dlopen="load_add_on"
 
6538
    lt_cv_dlopen_libs=
 
6539
    lt_cv_dlopen_self=yes
 
6540
    ;;
 
6541
 
 
6542
  cygwin* | mingw* | pw32*)
 
6543
    lt_cv_dlopen="LoadLibrary"
 
6544
    lt_cv_dlopen_libs=
 
6545
   ;;
 
6546
 
 
6547
  *)
 
6548
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
6549
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
6550
if test "${ac_cv_func_shl_load+set}" = set; then
 
6551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6552
else
 
6553
  cat >conftest.$ac_ext <<_ACEOF
 
6554
#line $LINENO "configure"
 
6555
#include "confdefs.h"
 
6556
/* System header to define __stub macros and hopefully few prototypes,
 
6557
    which can conflict with char shl_load (); below.  */
 
6558
#include <assert.h>
 
6559
/* Override any gcc2 internal prototype to avoid an error.  */
 
6560
#ifdef __cplusplus
 
6561
extern "C"
 
6562
#endif
 
6563
/* We use char because int might match the return type of a gcc2
 
6564
   builtin and then its argument prototype would still apply.  */
 
6565
char shl_load ();
 
6566
char (*f) ();
 
6567
 
 
6568
#ifdef F77_DUMMY_MAIN
 
6569
#  ifdef __cplusplus
 
6570
     extern "C"
 
6571
#  endif
 
6572
   int F77_DUMMY_MAIN() { return 1; }
 
6573
#endif
 
6574
int
 
6575
main ()
 
6576
{
 
6577
/* The GNU C library defines this for functions which it implements
 
6578
    to always fail with ENOSYS.  Some functions are actually named
 
6579
    something starting with __ and the normal name is an alias.  */
 
6580
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
6581
choke me
 
6582
#else
 
6583
f = shl_load;
 
6584
#endif
 
6585
 
 
6586
  ;
 
6587
  return 0;
 
6588
}
 
6589
_ACEOF
 
6590
rm -f conftest.$ac_objext conftest$ac_exeext
 
6591
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6592
  (eval $ac_link) 2>&5
 
6593
  ac_status=$?
 
6594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6595
  (exit $ac_status); } &&
 
6596
         { ac_try='test -s conftest$ac_exeext'
 
6597
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6598
  (eval $ac_try) 2>&5
 
6599
  ac_status=$?
 
6600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6601
  (exit $ac_status); }; }; then
 
6602
  ac_cv_func_shl_load=yes
 
6603
else
 
6604
  echo "$as_me: failed program was:" >&5
 
6605
cat conftest.$ac_ext >&5
 
6606
ac_cv_func_shl_load=no
 
6607
fi
 
6608
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6609
fi
 
6610
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
6611
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
6612
if test $ac_cv_func_shl_load = yes; then
 
6613
  lt_cv_dlopen="shl_load"
 
6614
else
 
6615
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
6616
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
6617
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
6618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6619
else
 
6620
  ac_check_lib_save_LIBS=$LIBS
 
6621
LIBS="-ldld  $LIBS"
 
6622
cat >conftest.$ac_ext <<_ACEOF
 
6623
#line $LINENO "configure"
 
6624
#include "confdefs.h"
 
6625
 
 
6626
/* Override any gcc2 internal prototype to avoid an error.  */
 
6627
#ifdef __cplusplus
 
6628
extern "C"
 
6629
#endif
 
6630
/* We use char because int might match the return type of a gcc2
 
6631
   builtin and then its argument prototype would still apply.  */
 
6632
char shl_load ();
 
6633
#ifdef F77_DUMMY_MAIN
 
6634
#  ifdef __cplusplus
 
6635
     extern "C"
 
6636
#  endif
 
6637
   int F77_DUMMY_MAIN() { return 1; }
 
6638
#endif
 
6639
int
 
6640
main ()
 
6641
{
 
6642
shl_load ();
 
6643
  ;
 
6644
  return 0;
 
6645
}
 
6646
_ACEOF
 
6647
rm -f conftest.$ac_objext conftest$ac_exeext
 
6648
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6649
  (eval $ac_link) 2>&5
 
6650
  ac_status=$?
 
6651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6652
  (exit $ac_status); } &&
 
6653
         { ac_try='test -s conftest$ac_exeext'
 
6654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6655
  (eval $ac_try) 2>&5
 
6656
  ac_status=$?
 
6657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6658
  (exit $ac_status); }; }; then
 
6659
  ac_cv_lib_dld_shl_load=yes
 
6660
else
 
6661
  echo "$as_me: failed program was:" >&5
 
6662
cat conftest.$ac_ext >&5
 
6663
ac_cv_lib_dld_shl_load=no
 
6664
fi
 
6665
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6666
LIBS=$ac_check_lib_save_LIBS
 
6667
fi
 
6668
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
6669
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
6670
if test $ac_cv_lib_dld_shl_load = yes; then
 
6671
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
6672
else
 
6673
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
6674
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
6675
if test "${ac_cv_func_dlopen+set}" = set; then
 
6676
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6677
else
 
6678
  cat >conftest.$ac_ext <<_ACEOF
 
6679
#line $LINENO "configure"
 
6680
#include "confdefs.h"
 
6681
/* System header to define __stub macros and hopefully few prototypes,
 
6682
    which can conflict with char dlopen (); below.  */
 
6683
#include <assert.h>
 
6684
/* Override any gcc2 internal prototype to avoid an error.  */
 
6685
#ifdef __cplusplus
 
6686
extern "C"
 
6687
#endif
 
6688
/* We use char because int might match the return type of a gcc2
 
6689
   builtin and then its argument prototype would still apply.  */
 
6690
char dlopen ();
 
6691
char (*f) ();
 
6692
 
 
6693
#ifdef F77_DUMMY_MAIN
 
6694
#  ifdef __cplusplus
 
6695
     extern "C"
 
6696
#  endif
 
6697
   int F77_DUMMY_MAIN() { return 1; }
 
6698
#endif
 
6699
int
 
6700
main ()
 
6701
{
 
6702
/* The GNU C library defines this for functions which it implements
 
6703
    to always fail with ENOSYS.  Some functions are actually named
 
6704
    something starting with __ and the normal name is an alias.  */
 
6705
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
6706
choke me
 
6707
#else
 
6708
f = dlopen;
 
6709
#endif
 
6710
 
 
6711
  ;
 
6712
  return 0;
 
6713
}
 
6714
_ACEOF
 
6715
rm -f conftest.$ac_objext conftest$ac_exeext
 
6716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6717
  (eval $ac_link) 2>&5
 
6718
  ac_status=$?
 
6719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6720
  (exit $ac_status); } &&
 
6721
         { ac_try='test -s conftest$ac_exeext'
 
6722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6723
  (eval $ac_try) 2>&5
 
6724
  ac_status=$?
 
6725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6726
  (exit $ac_status); }; }; then
 
6727
  ac_cv_func_dlopen=yes
 
6728
else
 
6729
  echo "$as_me: failed program was:" >&5
 
6730
cat conftest.$ac_ext >&5
 
6731
ac_cv_func_dlopen=no
 
6732
fi
 
6733
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6734
fi
 
6735
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
6736
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
6737
if test $ac_cv_func_dlopen = yes; then
 
6738
  lt_cv_dlopen="dlopen"
 
6739
else
 
6740
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
6741
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
6742
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
6743
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6744
else
 
6745
  ac_check_lib_save_LIBS=$LIBS
 
6746
LIBS="-ldl  $LIBS"
 
6747
cat >conftest.$ac_ext <<_ACEOF
 
6748
#line $LINENO "configure"
 
6749
#include "confdefs.h"
 
6750
 
 
6751
/* Override any gcc2 internal prototype to avoid an error.  */
 
6752
#ifdef __cplusplus
 
6753
extern "C"
 
6754
#endif
 
6755
/* We use char because int might match the return type of a gcc2
 
6756
   builtin and then its argument prototype would still apply.  */
 
6757
char dlopen ();
 
6758
#ifdef F77_DUMMY_MAIN
 
6759
#  ifdef __cplusplus
 
6760
     extern "C"
 
6761
#  endif
 
6762
   int F77_DUMMY_MAIN() { return 1; }
 
6763
#endif
 
6764
int
 
6765
main ()
 
6766
{
 
6767
dlopen ();
 
6768
  ;
 
6769
  return 0;
 
6770
}
 
6771
_ACEOF
 
6772
rm -f conftest.$ac_objext conftest$ac_exeext
 
6773
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6774
  (eval $ac_link) 2>&5
 
6775
  ac_status=$?
 
6776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6777
  (exit $ac_status); } &&
 
6778
         { ac_try='test -s conftest$ac_exeext'
 
6779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6780
  (eval $ac_try) 2>&5
 
6781
  ac_status=$?
 
6782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6783
  (exit $ac_status); }; }; then
 
6784
  ac_cv_lib_dl_dlopen=yes
 
6785
else
 
6786
  echo "$as_me: failed program was:" >&5
 
6787
cat conftest.$ac_ext >&5
 
6788
ac_cv_lib_dl_dlopen=no
 
6789
fi
 
6790
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6791
LIBS=$ac_check_lib_save_LIBS
 
6792
fi
 
6793
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
6794
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
6795
if test $ac_cv_lib_dl_dlopen = yes; then
 
6796
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
6797
else
 
6798
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
6799
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
6800
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
6801
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6802
else
 
6803
  ac_check_lib_save_LIBS=$LIBS
 
6804
LIBS="-lsvld  $LIBS"
 
6805
cat >conftest.$ac_ext <<_ACEOF
 
6806
#line $LINENO "configure"
 
6807
#include "confdefs.h"
 
6808
 
 
6809
/* Override any gcc2 internal prototype to avoid an error.  */
 
6810
#ifdef __cplusplus
 
6811
extern "C"
 
6812
#endif
 
6813
/* We use char because int might match the return type of a gcc2
 
6814
   builtin and then its argument prototype would still apply.  */
 
6815
char dlopen ();
 
6816
#ifdef F77_DUMMY_MAIN
 
6817
#  ifdef __cplusplus
 
6818
     extern "C"
 
6819
#  endif
 
6820
   int F77_DUMMY_MAIN() { return 1; }
 
6821
#endif
 
6822
int
 
6823
main ()
 
6824
{
 
6825
dlopen ();
 
6826
  ;
 
6827
  return 0;
 
6828
}
 
6829
_ACEOF
 
6830
rm -f conftest.$ac_objext conftest$ac_exeext
 
6831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6832
  (eval $ac_link) 2>&5
 
6833
  ac_status=$?
 
6834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6835
  (exit $ac_status); } &&
 
6836
         { ac_try='test -s conftest$ac_exeext'
 
6837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6838
  (eval $ac_try) 2>&5
 
6839
  ac_status=$?
 
6840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6841
  (exit $ac_status); }; }; then
 
6842
  ac_cv_lib_svld_dlopen=yes
 
6843
else
 
6844
  echo "$as_me: failed program was:" >&5
 
6845
cat conftest.$ac_ext >&5
 
6846
ac_cv_lib_svld_dlopen=no
 
6847
fi
 
6848
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6849
LIBS=$ac_check_lib_save_LIBS
 
6850
fi
 
6851
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
6852
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
6853
if test $ac_cv_lib_svld_dlopen = yes; then
 
6854
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
6855
else
 
6856
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
6857
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
6858
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
6859
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6860
else
 
6861
  ac_check_lib_save_LIBS=$LIBS
 
6862
LIBS="-ldld  $LIBS"
 
6863
cat >conftest.$ac_ext <<_ACEOF
 
6864
#line $LINENO "configure"
 
6865
#include "confdefs.h"
 
6866
 
 
6867
/* Override any gcc2 internal prototype to avoid an error.  */
 
6868
#ifdef __cplusplus
 
6869
extern "C"
 
6870
#endif
 
6871
/* We use char because int might match the return type of a gcc2
 
6872
   builtin and then its argument prototype would still apply.  */
 
6873
char dld_link ();
 
6874
#ifdef F77_DUMMY_MAIN
 
6875
#  ifdef __cplusplus
 
6876
     extern "C"
 
6877
#  endif
 
6878
   int F77_DUMMY_MAIN() { return 1; }
 
6879
#endif
 
6880
int
 
6881
main ()
 
6882
{
 
6883
dld_link ();
 
6884
  ;
 
6885
  return 0;
 
6886
}
 
6887
_ACEOF
 
6888
rm -f conftest.$ac_objext conftest$ac_exeext
 
6889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6890
  (eval $ac_link) 2>&5
 
6891
  ac_status=$?
 
6892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6893
  (exit $ac_status); } &&
 
6894
         { ac_try='test -s conftest$ac_exeext'
 
6895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6896
  (eval $ac_try) 2>&5
 
6897
  ac_status=$?
 
6898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6899
  (exit $ac_status); }; }; then
 
6900
  ac_cv_lib_dld_dld_link=yes
 
6901
else
 
6902
  echo "$as_me: failed program was:" >&5
 
6903
cat conftest.$ac_ext >&5
 
6904
ac_cv_lib_dld_dld_link=no
 
6905
fi
 
6906
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6907
LIBS=$ac_check_lib_save_LIBS
 
6908
fi
 
6909
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
6910
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
6911
if test $ac_cv_lib_dld_dld_link = yes; then
 
6912
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
6913
fi
 
6914
 
 
6915
fi
 
6916
 
 
6917
fi
 
6918
 
 
6919
fi
 
6920
 
 
6921
fi
 
6922
 
 
6923
fi
 
6924
 
 
6925
    ;;
 
6926
  esac
 
6927
 
 
6928
  if test "x$lt_cv_dlopen" != xno; then
 
6929
    enable_dlopen=yes
 
6930
  else
 
6931
    enable_dlopen=no
 
6932
  fi
 
6933
 
 
6934
  case $lt_cv_dlopen in
 
6935
  dlopen)
 
6936
    save_CPPFLAGS="$CPPFLAGS"
 
6937
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
6938
 
 
6939
    save_LDFLAGS="$LDFLAGS"
 
6940
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
6941
 
 
6942
    save_LIBS="$LIBS"
 
6943
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
6944
 
 
6945
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
6946
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
6947
if test "${lt_cv_dlopen_self+set}" = set; then
 
6948
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6949
else
 
6950
          if test "$cross_compiling" = yes; then :
 
6951
  lt_cv_dlopen_self=cross
 
6952
else
 
6953
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
6954
  lt_status=$lt_dlunknown
 
6955
  cat > conftest.$ac_ext <<EOF
 
6956
#line 6956 "configure"
 
6957
#include "confdefs.h"
 
6958
 
 
6959
#if HAVE_DLFCN_H
 
6960
#include <dlfcn.h>
 
6961
#endif
 
6962
 
 
6963
#include <stdio.h>
 
6964
 
 
6965
#ifdef RTLD_GLOBAL
 
6966
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
6967
#else
 
6968
#  ifdef DL_GLOBAL
 
6969
#    define LT_DLGLOBAL         DL_GLOBAL
 
6970
#  else
 
6971
#    define LT_DLGLOBAL         0
 
6972
#  endif
 
6973
#endif
 
6974
 
 
6975
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
6976
   find out it does not work in some platform. */
 
6977
#ifndef LT_DLLAZY_OR_NOW
 
6978
#  ifdef RTLD_LAZY
 
6979
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
6980
#  else
 
6981
#    ifdef DL_LAZY
 
6982
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
6983
#    else
 
6984
#      ifdef RTLD_NOW
 
6985
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
6986
#      else
 
6987
#        ifdef DL_NOW
 
6988
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
6989
#        else
 
6990
#          define LT_DLLAZY_OR_NOW      0
 
6991
#        endif
 
6992
#      endif
 
6993
#    endif
 
6994
#  endif
 
6995
#endif
 
6996
 
 
6997
#ifdef __cplusplus
 
6998
extern "C" void exit (int);
 
6999
#endif
 
7000
 
 
7001
void fnord() { int i=42;}
 
7002
int main ()
 
7003
{
 
7004
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
7005
  int status = $lt_dlunknown;
 
7006
 
 
7007
  if (self)
 
7008
    {
 
7009
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
7010
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
7011
      /* dlclose (self); */
 
7012
    }
 
7013
 
 
7014
    exit (status);
 
7015
}
 
7016
EOF
 
7017
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7018
  (eval $ac_link) 2>&5
 
7019
  ac_status=$?
 
7020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7021
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
7022
    (./conftest; exit; ) 2>/dev/null
 
7023
    lt_status=$?
 
7024
    case x$lt_status in
 
7025
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
7026
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
7027
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
7028
    esac
 
7029
  else :
 
7030
    # compilation failed
 
7031
    lt_cv_dlopen_self=no
 
7032
  fi
 
7033
fi
 
7034
rm -fr conftest*
 
7035
 
 
7036
fi
 
7037
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
7038
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
7039
 
 
7040
    if test "x$lt_cv_dlopen_self" = xyes; then
 
7041
      LDFLAGS="$LDFLAGS $link_static_flag"
 
7042
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
7043
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
7044
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
7045
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7046
else
 
7047
          if test "$cross_compiling" = yes; then :
 
7048
  lt_cv_dlopen_self_static=cross
 
7049
else
 
7050
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
7051
  lt_status=$lt_dlunknown
 
7052
  cat > conftest.$ac_ext <<EOF
 
7053
#line 7053 "configure"
 
7054
#include "confdefs.h"
 
7055
 
 
7056
#if HAVE_DLFCN_H
 
7057
#include <dlfcn.h>
 
7058
#endif
 
7059
 
 
7060
#include <stdio.h>
 
7061
 
 
7062
#ifdef RTLD_GLOBAL
 
7063
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
7064
#else
 
7065
#  ifdef DL_GLOBAL
 
7066
#    define LT_DLGLOBAL         DL_GLOBAL
 
7067
#  else
 
7068
#    define LT_DLGLOBAL         0
 
7069
#  endif
 
7070
#endif
 
7071
 
 
7072
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
7073
   find out it does not work in some platform. */
 
7074
#ifndef LT_DLLAZY_OR_NOW
 
7075
#  ifdef RTLD_LAZY
 
7076
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
7077
#  else
 
7078
#    ifdef DL_LAZY
 
7079
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
7080
#    else
 
7081
#      ifdef RTLD_NOW
 
7082
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
7083
#      else
 
7084
#        ifdef DL_NOW
 
7085
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
7086
#        else
 
7087
#          define LT_DLLAZY_OR_NOW      0
 
7088
#        endif
 
7089
#      endif
 
7090
#    endif
 
7091
#  endif
 
7092
#endif
 
7093
 
 
7094
#ifdef __cplusplus
 
7095
extern "C" void exit (int);
 
7096
#endif
 
7097
 
 
7098
void fnord() { int i=42;}
 
7099
int main ()
 
7100
{
 
7101
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
7102
  int status = $lt_dlunknown;
 
7103
 
 
7104
  if (self)
 
7105
    {
 
7106
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
7107
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
7108
      /* dlclose (self); */
 
7109
    }
 
7110
 
 
7111
    exit (status);
 
7112
}
 
7113
EOF
 
7114
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7115
  (eval $ac_link) 2>&5
 
7116
  ac_status=$?
 
7117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7118
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
7119
    (./conftest; exit; ) 2>/dev/null
 
7120
    lt_status=$?
 
7121
    case x$lt_status in
 
7122
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
7123
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
7124
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
7125
    esac
 
7126
  else :
 
7127
    # compilation failed
 
7128
    lt_cv_dlopen_self_static=no
 
7129
  fi
 
7130
fi
 
7131
rm -fr conftest*
 
7132
 
 
7133
fi
 
7134
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
7135
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
7136
    fi
 
7137
 
 
7138
    CPPFLAGS="$save_CPPFLAGS"
 
7139
    LDFLAGS="$save_LDFLAGS"
 
7140
    LIBS="$save_LIBS"
 
7141
    ;;
 
7142
  esac
 
7143
 
 
7144
  case $lt_cv_dlopen_self in
 
7145
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
7146
  *) enable_dlopen_self=unknown ;;
 
7147
  esac
 
7148
 
 
7149
  case $lt_cv_dlopen_self_static in
 
7150
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
7151
  *) enable_dlopen_self_static=unknown ;;
 
7152
  esac
 
7153
fi
 
7154
 
 
7155
if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7156
  case $archive_cmds in
 
7157
  *'~'*)
 
7158
    # FIXME: we may have to deal with multi-command sequences.
 
7159
    ;;
 
7160
  '$CC '*)
 
7161
    # Test whether the compiler implicitly links with -lc since on some
 
7162
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7163
    # to ld, don't add -lc before -lgcc.
 
7164
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7165
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7166
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
 
7167
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7168
else
 
7169
  $rm conftest*
 
7170
    echo 'static int dummy;' > conftest.$ac_ext
 
7171
 
 
7172
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7173
  (eval $ac_compile) 2>&5
 
7174
  ac_status=$?
 
7175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7176
  (exit $ac_status); }; then
 
7177
      soname=conftest
 
7178
      lib=conftest
 
7179
      libobjs=conftest.$ac_objext
 
7180
      deplibs=
 
7181
      wl=$lt_cv_prog_cc_wl
 
7182
      compiler_flags=-v
 
7183
      linker_flags=-v
 
7184
      verstring=
 
7185
      output_objdir=.
 
7186
      libname=conftest
 
7187
      save_allow_undefined_flag=$allow_undefined_flag
 
7188
      allow_undefined_flag=
 
7189
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7190
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7191
  ac_status=$?
 
7192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7193
  (exit $ac_status); }
 
7194
      then
 
7195
        lt_cv_archive_cmds_need_lc=no
 
7196
      else
 
7197
        lt_cv_archive_cmds_need_lc=yes
 
7198
      fi
 
7199
      allow_undefined_flag=$save_allow_undefined_flag
 
7200
    else
 
7201
      cat conftest.err 1>&5
 
7202
    fi
 
7203
fi
 
7204
 
 
7205
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
 
7206
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
 
7207
    ;;
 
7208
  esac
 
7209
fi
 
7210
need_lc=${lt_cv_archive_cmds_need_lc-yes}
 
7211
 
 
7212
# The second clause should only fire when bootstrapping the
 
7213
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
7214
# with your package, and you will get complaints that there are
 
7215
# no rules to generate ltmain.sh.
 
7216
if test -f "$ltmain"; then
 
7217
  :
 
7218
else
 
7219
  # If there is no Makefile yet, we rely on a make rule to execute
 
7220
  # `config.status --recheck' to rerun these tests and create the
 
7221
  # libtool script then.
 
7222
  test -f Makefile && make "$ltmain"
 
7223
fi
 
7224
 
 
7225
if test -f "$ltmain"; then
 
7226
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
 
7227
  $rm -f "${ofile}T"
 
7228
 
 
7229
  echo creating $ofile
 
7230
 
 
7231
  # Now quote all the things that may contain metacharacters while being
 
7232
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
7233
  # variables and quote the copies for generation of the libtool script.
 
7234
  for var in echo old_CC old_CFLAGS \
 
7235
    AR AR_FLAGS CC LD LN_S NM SHELL \
 
7236
    reload_flag reload_cmds wl \
 
7237
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
 
7238
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
 
7239
    library_names_spec soname_spec \
 
7240
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
 
7241
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
 
7242
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
 
7243
    old_striplib striplib file_magic_cmd export_symbols_cmds \
 
7244
    deplibs_check_method allow_undefined_flag no_undefined_flag \
 
7245
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
 
7246
    global_symbol_to_c_name_address \
 
7247
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
7248
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
7249
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
7250
 
 
7251
    case $var in
 
7252
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
7253
    old_postinstall_cmds | old_postuninstall_cmds | \
 
7254
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
 
7255
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
 
7256
    postinstall_cmds | postuninstall_cmds | \
 
7257
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
7258
      # Double-quote double-evaled strings.
 
7259
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
7260
      ;;
 
7261
    *)
 
7262
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
7263
      ;;
 
7264
    esac
 
7265
  done
 
7266
 
 
7267
  cat <<__EOF__ > "${ofile}T"
 
7268
#! $SHELL
 
7269
 
 
7270
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
7271
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
7272
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
7273
#
 
7274
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
7275
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
7276
#
 
7277
# This program is free software; you can redistribute it and/or modify
 
7278
# it under the terms of the GNU General Public License as published by
 
7279
# the Free Software Foundation; either version 2 of the License, or
 
7280
# (at your option) any later version.
 
7281
#
 
7282
# This program is distributed in the hope that it will be useful, but
 
7283
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
7284
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
7285
# General Public License for more details.
 
7286
#
 
7287
# You should have received a copy of the GNU General Public License
 
7288
# along with this program; if not, write to the Free Software
 
7289
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7290
#
 
7291
# As a special exception to the GNU General Public License, if you
 
7292
# distribute this file as part of a program that contains a
 
7293
# configuration script generated by Autoconf, you may include it under
 
7294
# the same distribution terms that you use for the rest of that program.
 
7295
 
 
7296
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
7297
Xsed="sed -e s/^X//"
 
7298
 
 
7299
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
7300
# if CDPATH is set.
 
7301
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
7302
 
 
7303
# ### BEGIN LIBTOOL CONFIG
 
7304
 
 
7305
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
7306
 
 
7307
# Shell to use when invoking shell scripts.
 
7308
SHELL=$lt_SHELL
 
7309
 
 
7310
# Whether or not to build shared libraries.
 
7311
build_libtool_libs=$enable_shared
 
7312
 
 
7313
# Whether or not to build static libraries.
 
7314
build_old_libs=$enable_static
 
7315
 
 
7316
# Whether or not to add -lc for building shared libraries.
 
7317
build_libtool_need_lc=$need_lc
 
7318
 
 
7319
# Whether or not to optimize for fast installation.
 
7320
fast_install=$enable_fast_install
 
7321
 
 
7322
# The host system.
 
7323
host_alias=$host_alias
 
7324
host=$host
 
7325
 
 
7326
# An echo program that does not interpret backslashes.
 
7327
echo=$lt_echo
 
7328
 
 
7329
# The archiver.
 
7330
AR=$lt_AR
 
7331
AR_FLAGS=$lt_AR_FLAGS
 
7332
 
 
7333
# The default C compiler.
 
7334
CC=$lt_CC
 
7335
 
 
7336
# Is the compiler the GNU C compiler?
 
7337
with_gcc=$GCC
 
7338
 
 
7339
# The linker used to build libraries.
 
7340
LD=$lt_LD
 
7341
 
 
7342
# Whether we need hard or soft links.
 
7343
LN_S=$lt_LN_S
 
7344
 
 
7345
# A BSD-compatible nm program.
 
7346
NM=$lt_NM
 
7347
 
 
7348
# A symbol stripping program
 
7349
STRIP=$STRIP
 
7350
 
 
7351
# Used to examine libraries when file_magic_cmd begins "file"
 
7352
MAGIC_CMD=$MAGIC_CMD
 
7353
 
 
7354
# Used on cygwin: DLL creation program.
 
7355
DLLTOOL="$DLLTOOL"
 
7356
 
 
7357
# Used on cygwin: object dumper.
 
7358
OBJDUMP="$OBJDUMP"
 
7359
 
 
7360
# Used on cygwin: assembler.
 
7361
AS="$AS"
 
7362
 
 
7363
# The name of the directory that contains temporary libtool files.
 
7364
objdir=$objdir
 
7365
 
 
7366
# How to create reloadable object files.
 
7367
reload_flag=$lt_reload_flag
 
7368
reload_cmds=$lt_reload_cmds
 
7369
 
 
7370
# How to pass a linker flag through the compiler.
 
7371
wl=$lt_wl
 
7372
 
 
7373
# Object file suffix (normally "o").
 
7374
objext="$ac_objext"
 
7375
 
 
7376
# Old archive suffix (normally "a").
 
7377
libext="$libext"
 
7378
 
 
7379
# Executable file suffix (normally "").
 
7380
exeext="$exeext"
 
7381
 
 
7382
# Additional compiler flags for building library objects.
 
7383
pic_flag=$lt_pic_flag
 
7384
pic_mode=$pic_mode
 
7385
 
 
7386
# Does compiler simultaneously support -c and -o options?
 
7387
compiler_c_o=$lt_compiler_c_o
 
7388
 
 
7389
# Can we write directly to a .lo ?
 
7390
compiler_o_lo=$lt_compiler_o_lo
 
7391
 
 
7392
# Must we lock files when doing compilation ?
 
7393
need_locks=$lt_need_locks
 
7394
 
 
7395
# Do we need the lib prefix for modules?
 
7396
need_lib_prefix=$need_lib_prefix
 
7397
 
 
7398
# Do we need a version for libraries?
 
7399
need_version=$need_version
 
7400
 
 
7401
# Whether dlopen is supported.
 
7402
dlopen_support=$enable_dlopen
 
7403
 
 
7404
# Whether dlopen of programs is supported.
 
7405
dlopen_self=$enable_dlopen_self
 
7406
 
 
7407
# Whether dlopen of statically linked programs is supported.
 
7408
dlopen_self_static=$enable_dlopen_self_static
 
7409
 
 
7410
# Compiler flag to prevent dynamic linking.
 
7411
link_static_flag=$lt_link_static_flag
 
7412
 
 
7413
# Compiler flag to turn off builtin functions.
 
7414
no_builtin_flag=$lt_no_builtin_flag
 
7415
 
 
7416
# Compiler flag to allow reflexive dlopens.
 
7417
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
7418
 
 
7419
# Compiler flag to generate shared objects directly from archives.
 
7420
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
7421
 
 
7422
# Compiler flag to generate thread-safe objects.
 
7423
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
7424
 
 
7425
# Library versioning type.
 
7426
version_type=$version_type
 
7427
 
 
7428
# Format of library name prefix.
 
7429
libname_spec=$lt_libname_spec
 
7430
 
 
7431
# List of archive names.  First name is the real one, the rest are links.
 
7432
# The last name is the one that the linker finds with -lNAME.
 
7433
library_names_spec=$lt_library_names_spec
 
7434
 
 
7435
# The coded name of the library, if different from the real name.
 
7436
soname_spec=$lt_soname_spec
 
7437
 
 
7438
# Commands used to build and install an old-style archive.
 
7439
RANLIB=$lt_RANLIB
 
7440
old_archive_cmds=$lt_old_archive_cmds
 
7441
old_postinstall_cmds=$lt_old_postinstall_cmds
 
7442
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
7443
 
 
7444
# Create an old-style archive from a shared archive.
 
7445
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
7446
 
 
7447
# Create a temporary old-style archive to link instead of a shared archive.
 
7448
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
7449
 
 
7450
# Commands used to build and install a shared archive.
 
7451
archive_cmds=$lt_archive_cmds
 
7452
archive_expsym_cmds=$lt_archive_expsym_cmds
 
7453
postinstall_cmds=$lt_postinstall_cmds
 
7454
postuninstall_cmds=$lt_postuninstall_cmds
 
7455
 
 
7456
# Commands to strip libraries.
 
7457
old_striplib=$lt_old_striplib
 
7458
striplib=$lt_striplib
 
7459
 
 
7460
# Method to check whether dependent libraries are shared objects.
 
7461
deplibs_check_method=$lt_deplibs_check_method
 
7462
 
 
7463
# Command to use when deplibs_check_method == file_magic.
 
7464
file_magic_cmd=$lt_file_magic_cmd
 
7465
 
 
7466
# Flag that allows shared libraries with undefined symbols to be built.
 
7467
allow_undefined_flag=$lt_allow_undefined_flag
 
7468
 
 
7469
# Flag that forces no undefined symbols.
 
7470
no_undefined_flag=$lt_no_undefined_flag
 
7471
 
 
7472
# Commands used to finish a libtool library installation in a directory.
 
7473
finish_cmds=$lt_finish_cmds
 
7474
 
 
7475
# Same as above, but a single script fragment to be evaled but not shown.
 
7476
finish_eval=$lt_finish_eval
 
7477
 
 
7478
# Take the output of nm and produce a listing of raw symbols and C names.
 
7479
global_symbol_pipe=$lt_global_symbol_pipe
 
7480
 
 
7481
# Transform the output of nm in a proper C declaration
 
7482
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
7483
 
 
7484
# Transform the output of nm in a C name address pair
 
7485
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
7486
 
 
7487
# This is the shared library runtime path variable.
 
7488
runpath_var=$runpath_var
 
7489
 
 
7490
# This is the shared library path variable.
 
7491
shlibpath_var=$shlibpath_var
 
7492
 
 
7493
# Is shlibpath searched before the hard-coded library search path?
 
7494
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
7495
 
 
7496
# How to hardcode a shared library path into an executable.
 
7497
hardcode_action=$hardcode_action
 
7498
 
 
7499
# Whether we should hardcode library paths into libraries.
 
7500
hardcode_into_libs=$hardcode_into_libs
 
7501
 
 
7502
# Flag to hardcode \$libdir into a binary during linking.
 
7503
# This must work even if \$libdir does not exist.
 
7504
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
7505
 
 
7506
# Whether we need a single -rpath flag with a separated argument.
 
7507
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
7508
 
 
7509
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
7510
# resulting binary.
 
7511
hardcode_direct=$hardcode_direct
 
7512
 
 
7513
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
7514
# resulting binary.
 
7515
hardcode_minus_L=$hardcode_minus_L
 
7516
 
 
7517
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
7518
# the resulting binary.
 
7519
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
7520
 
 
7521
# Variables whose values should be saved in libtool wrapper scripts and
 
7522
# restored at relink time.
 
7523
variables_saved_for_relink="$variables_saved_for_relink"
 
7524
 
 
7525
# Whether libtool must link a program against all its dependency libraries.
 
7526
link_all_deplibs=$link_all_deplibs
 
7527
 
 
7528
# Compile-time system search path for libraries
 
7529
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
7530
 
 
7531
# Run-time system search path for libraries
 
7532
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
7533
 
 
7534
# Fix the shell variable \$srcfile for the compiler.
 
7535
fix_srcfile_path="$fix_srcfile_path"
 
7536
 
 
7537
# Set to yes if exported symbols are required.
 
7538
always_export_symbols=$always_export_symbols
 
7539
 
 
7540
# The commands to list exported symbols.
 
7541
export_symbols_cmds=$lt_export_symbols_cmds
 
7542
 
 
7543
# The commands to extract the exported symbol list from a shared archive.
 
7544
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
7545
 
 
7546
# Symbols that should not be listed in the preloaded symbols.
 
7547
exclude_expsyms=$lt_exclude_expsyms
 
7548
 
 
7549
# Symbols that must always be exported.
 
7550
include_expsyms=$lt_include_expsyms
 
7551
 
 
7552
# ### END LIBTOOL CONFIG
 
7553
 
 
7554
__EOF__
 
7555
 
 
7556
  case $host_os in
 
7557
  aix3*)
 
7558
    cat <<\EOF >> "${ofile}T"
 
7559
 
 
7560
# AIX sometimes has problems with the GCC collect2 program.  For some
 
7561
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
7562
# vanish in a puff of smoke.
 
7563
if test "X${COLLECT_NAMES+set}" != Xset; then
 
7564
  COLLECT_NAMES=
 
7565
  export COLLECT_NAMES
 
7566
fi
 
7567
EOF
 
7568
    ;;
 
7569
  esac
 
7570
 
 
7571
  case $host_os in
 
7572
  cygwin* | mingw* | pw32* | os2*)
 
7573
    cat <<'EOF' >> "${ofile}T"
 
7574
      # This is a source program that is used to create dlls on Windows
 
7575
      # Don't remove nor modify the starting and closing comments
 
7576
# /* ltdll.c starts here */
 
7577
# #define WIN32_LEAN_AND_MEAN
 
7578
# #include <windows.h>
 
7579
# #undef WIN32_LEAN_AND_MEAN
 
7580
# #include <stdio.h>
 
7581
#
 
7582
# #ifndef __CYGWIN__
 
7583
# #  ifdef __CYGWIN32__
 
7584
# #    define __CYGWIN__ __CYGWIN32__
 
7585
# #  endif
 
7586
# #endif
 
7587
#
 
7588
# #ifdef __cplusplus
 
7589
# extern "C" {
 
7590
# #endif
 
7591
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
7592
# #ifdef __cplusplus
 
7593
# }
 
7594
# #endif
 
7595
#
 
7596
# #ifdef __CYGWIN__
 
7597
# #include <cygwin/cygwin_dll.h>
 
7598
# DECLARE_CYGWIN_DLL( DllMain );
 
7599
# #endif
 
7600
# HINSTANCE __hDllInstance_base;
 
7601
#
 
7602
# BOOL APIENTRY
 
7603
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
7604
# {
 
7605
#   __hDllInstance_base = hInst;
 
7606
#   return TRUE;
 
7607
# }
 
7608
# /* ltdll.c ends here */
 
7609
        # This is a source program that is used to create import libraries
 
7610
        # on Windows for dlls which lack them. Don't remove nor modify the
 
7611
        # starting and closing comments
 
7612
# /* impgen.c starts here */
 
7613
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
 
7614
#
 
7615
#  This file is part of GNU libtool.
 
7616
#
 
7617
#  This program is free software; you can redistribute it and/or modify
 
7618
#  it under the terms of the GNU General Public License as published by
 
7619
#  the Free Software Foundation; either version 2 of the License, or
 
7620
#  (at your option) any later version.
 
7621
#
 
7622
#  This program is distributed in the hope that it will be useful,
 
7623
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7624
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7625
#  GNU General Public License for more details.
 
7626
#
 
7627
#  You should have received a copy of the GNU General Public License
 
7628
#  along with this program; if not, write to the Free Software
 
7629
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7630
#  */
 
7631
#
 
7632
# #include <stdio.h>            /* for printf() */
 
7633
# #include <unistd.h>           /* for open(), lseek(), read() */
 
7634
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
 
7635
# #include <string.h>           /* for strdup() */
 
7636
#
 
7637
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
 
7638
# #ifndef O_BINARY
 
7639
# #define O_BINARY 0
 
7640
# #endif
 
7641
#
 
7642
# static unsigned int
 
7643
# pe_get16 (fd, offset)
 
7644
#      int fd;
 
7645
#      int offset;
 
7646
# {
 
7647
#   unsigned char b[2];
 
7648
#   lseek (fd, offset, SEEK_SET);
 
7649
#   read (fd, b, 2);
 
7650
#   return b[0] + (b[1]<<8);
 
7651
# }
 
7652
#
 
7653
# static unsigned int
 
7654
# pe_get32 (fd, offset)
 
7655
#     int fd;
 
7656
#     int offset;
 
7657
# {
 
7658
#   unsigned char b[4];
 
7659
#   lseek (fd, offset, SEEK_SET);
 
7660
#   read (fd, b, 4);
 
7661
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
7662
# }
 
7663
#
 
7664
# static unsigned int
 
7665
# pe_as32 (ptr)
 
7666
#      void *ptr;
 
7667
# {
 
7668
#   unsigned char *b = ptr;
 
7669
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
7670
# }
 
7671
#
 
7672
# int
 
7673
# main (argc, argv)
 
7674
#     int argc;
 
7675
#     char *argv[];
 
7676
# {
 
7677
#     int dll;
 
7678
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
 
7679
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
 
7680
#     unsigned long name_rvas, nexp;
 
7681
#     unsigned char *expdata, *erva;
 
7682
#     char *filename, *dll_name;
 
7683
#
 
7684
#     filename = argv[1];
 
7685
#
 
7686
#     dll = open(filename, O_RDONLY|O_BINARY);
 
7687
#     if (dll < 1)
 
7688
#       return 1;
 
7689
#
 
7690
#     dll_name = filename;
 
7691
#
 
7692
#     for (i=0; filename[i]; i++)
 
7693
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
 
7694
#           dll_name = filename + i +1;
 
7695
#
 
7696
#     pe_header_offset = pe_get32 (dll, 0x3c);
 
7697
#     opthdr_ofs = pe_header_offset + 4 + 20;
 
7698
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
 
7699
#
 
7700
#     if (num_entries < 1) /* no exports */
 
7701
#       return 1;
 
7702
#
 
7703
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
 
7704
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
 
7705
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
 
7706
#     secptr = (pe_header_offset + 4 + 20 +
 
7707
#             pe_get16 (dll, pe_header_offset + 4 + 16));
 
7708
#
 
7709
#     expptr = 0;
 
7710
#     for (i = 0; i < nsections; i++)
 
7711
#     {
 
7712
#       char sname[8];
 
7713
#       unsigned long secptr1 = secptr + 40 * i;
 
7714
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
 
7715
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
 
7716
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
 
7717
#       lseek(dll, secptr1, SEEK_SET);
 
7718
#       read(dll, sname, 8);
 
7719
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
 
7720
#       {
 
7721
#           expptr = fptr + (export_rva - vaddr);
 
7722
#           if (export_rva + export_size > vaddr + vsize)
 
7723
#               export_size = vsize - (export_rva - vaddr);
 
7724
#           break;
 
7725
#       }
 
7726
#     }
 
7727
#
 
7728
#     expdata = (unsigned char*)malloc(export_size);
 
7729
#     lseek (dll, expptr, SEEK_SET);
 
7730
#     read (dll, expdata, export_size);
 
7731
#     erva = expdata - export_rva;
 
7732
#
 
7733
#     nexp = pe_as32 (expdata+24);
 
7734
#     name_rvas = pe_as32 (expdata+32);
 
7735
#
 
7736
#     printf ("EXPORTS\n");
 
7737
#     for (i = 0; i<nexp; i++)
 
7738
#     {
 
7739
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
 
7740
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
 
7741
#     }
 
7742
#
 
7743
#     return 0;
 
7744
# }
 
7745
# /* impgen.c ends here */
 
7746
 
 
7747
EOF
 
7748
    ;;
 
7749
  esac
 
7750
 
 
7751
  # We use sed instead of cat because bash on DJGPP gets confused if
 
7752
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
7753
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
7754
  # is reportedly fixed, but why not run on old versions too?
 
7755
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
7756
 
 
7757
  mv -f "${ofile}T" "$ofile" || \
 
7758
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
7759
  chmod +x "$ofile"
 
7760
fi
 
7761
 
 
7762
# This can be used to rebuild libtool when needed
 
7763
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
7764
 
 
7765
# Always use our own libtool.
 
7766
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7767
 
 
7768
# Prevent multiple expansion
 
7769
 
 
7770
# Find a good install program.  We prefer a C program (faster),
 
7771
# so one script is as good as another.  But avoid the broken or
 
7772
# incompatible versions:
 
7773
# SysV /etc/install, /usr/sbin/install
 
7774
# SunOS /usr/etc/install
 
7775
# IRIX /sbin/install
 
7776
# AIX /bin/install
 
7777
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
7778
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
7779
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
7780
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
7781
# ./install, which can be erroneously created by make from ./install.sh.
 
7782
echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
 
7783
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 
7784
if test -z "$INSTALL"; then
 
7785
if test "${ac_cv_path_install+set}" = set; then
 
7786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7787
else
 
7788
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7789
for as_dir in $PATH
 
7790
do
 
7791
  IFS=$as_save_IFS
 
7792
  test -z "$as_dir" && as_dir=.
 
7793
  # Account for people who put trailing slashes in PATH elements.
 
7794
case $as_dir/ in
 
7795
  ./ | .// | /cC/* | \
 
7796
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
7797
  /usr/ucb/* ) ;;
 
7798
  *)
 
7799
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
7800
    # Don't use installbsd from OSF since it installs stuff as root
 
7801
    # by default.
 
7802
    for ac_prog in ginstall scoinst install; do
 
7803
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7804
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
7805
          if test $ac_prog = install &&
 
7806
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
7807
            # AIX install.  It has an incompatible calling convention.
 
7808
            :
 
7809
          elif test $ac_prog = install &&
 
7810
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
7811
            # program-specific install script used by HP pwplus--don't use.
 
7812
            :
 
7813
          else
 
7814
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
7815
            break 3
 
7816
          fi
 
7817
        fi
 
7818
      done
 
7819
    done
 
7820
    ;;
 
7821
esac
 
7822
done
 
7823
 
 
7824
fi
 
7825
  if test "${ac_cv_path_install+set}" = set; then
 
7826
    INSTALL=$ac_cv_path_install
 
7827
  else
 
7828
    # As a last resort, use the slow shell script.  We don't cache a
 
7829
    # path for INSTALL within a source directory, because that will
 
7830
    # break other packages using the cache if that directory is
 
7831
    # removed, or if the path is relative.
 
7832
    INSTALL=$ac_install_sh
 
7833
  fi
 
7834
fi
 
7835
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
7836
echo "${ECHO_T}$INSTALL" >&6
 
7837
 
 
7838
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
7839
# It thinks the first close brace ends the variable substitution.
 
7840
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
7841
 
 
7842
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
7843
 
 
7844
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
7845
 
 
7846
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
7847
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
7848
LN_S=$as_ln_s
 
7849
if test "$LN_S" = "ln -s"; then
 
7850
  echo "$as_me:$LINENO: result: yes" >&5
 
7851
echo "${ECHO_T}yes" >&6
 
7852
else
 
7853
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
7854
echo "${ECHO_T}no, using $LN_S" >&6
 
7855
fi
 
7856
 
 
7857
# Extract the first word of "sed", so it can be a program name with args.
 
7858
set dummy sed; ac_word=$2
 
7859
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7860
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7861
if test "${ac_cv_prog_SED+set}" = set; then
 
7862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7863
else
 
7864
  if test -n "$SED"; then
 
7865
  ac_cv_prog_SED="$SED" # Let the user override the test.
 
7866
else
 
7867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7868
for as_dir in $PATH
 
7869
do
 
7870
  IFS=$as_save_IFS
 
7871
  test -z "$as_dir" && as_dir=.
 
7872
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7873
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7874
    ac_cv_prog_SED="sed"
 
7875
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7876
    break 2
 
7877
  fi
 
7878
done
 
7879
done
 
7880
 
 
7881
  test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false"
 
7882
fi
 
7883
fi
 
7884
SED=$ac_cv_prog_SED
 
7885
if test -n "$SED"; then
 
7886
  echo "$as_me:$LINENO: result: $SED" >&5
 
7887
echo "${ECHO_T}$SED" >&6
 
7888
else
 
7889
  echo "$as_me:$LINENO: result: no" >&5
 
7890
echo "${ECHO_T}no" >&6
 
7891
fi
 
7892
 
 
7893
# Extract the first word of "sort", so it can be a program name with args.
 
7894
set dummy sort; ac_word=$2
 
7895
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7896
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7897
if test "${ac_cv_prog_SORT+set}" = set; then
 
7898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7899
else
 
7900
  if test -n "$SORT"; then
 
7901
  ac_cv_prog_SORT="$SORT" # Let the user override the test.
 
7902
else
 
7903
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7904
for as_dir in $PATH
 
7905
do
 
7906
  IFS=$as_save_IFS
 
7907
  test -z "$as_dir" && as_dir=.
 
7908
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7909
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7910
    ac_cv_prog_SORT="sort"
 
7911
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7912
    break 2
 
7913
  fi
 
7914
done
 
7915
done
 
7916
 
 
7917
  test -z "$ac_cv_prog_SORT" && ac_cv_prog_SORT="false"
 
7918
fi
 
7919
fi
 
7920
SORT=$ac_cv_prog_SORT
 
7921
if test -n "$SORT"; then
 
7922
  echo "$as_me:$LINENO: result: $SORT" >&5
 
7923
echo "${ECHO_T}$SORT" >&6
 
7924
else
 
7925
  echo "$as_me:$LINENO: result: no" >&5
 
7926
echo "${ECHO_T}no" >&6
 
7927
fi
 
7928
 
 
7929
# Extract the first word of "ksh", so it can be a program name with args.
 
7930
set dummy ksh; ac_word=$2
 
7931
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7932
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7933
if test "${ac_cv_prog_KSH+set}" = set; then
 
7934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7935
else
 
7936
  if test -n "$KSH"; then
 
7937
  ac_cv_prog_KSH="$KSH" # Let the user override the test.
 
7938
else
 
7939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7940
for as_dir in $PATH
 
7941
do
 
7942
  IFS=$as_save_IFS
 
7943
  test -z "$as_dir" && as_dir=.
 
7944
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7945
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7946
    ac_cv_prog_KSH="ksh"
 
7947
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7948
    break 2
 
7949
  fi
 
7950
done
 
7951
done
 
7952
 
 
7953
  test -z "$ac_cv_prog_KSH" && ac_cv_prog_KSH="sh"
 
7954
fi
 
7955
fi
 
7956
KSH=$ac_cv_prog_KSH
 
7957
if test -n "$KSH"; then
 
7958
  echo "$as_me:$LINENO: result: $KSH" >&5
 
7959
echo "${ECHO_T}$KSH" >&6
 
7960
else
 
7961
  echo "$as_me:$LINENO: result: no" >&5
 
7962
echo "${ECHO_T}no" >&6
 
7963
fi
 
7964
 
 
7965
# are we building for windows?
 
7966
# (these tests must follow AC_ISC_POSIX)
 
7967
case $host_os in
 
7968
  *cygwin* ) CYGWIN=yes;;
 
7969
         * ) CYGWIN=no;;
 
7970
esac
 
7971
 
 
7972
case $host_os in
 
7973
  *mingw32* ) MINGW32=yes;;
 
7974
          * ) MINGW32=no;;
 
7975
esac
 
7976
 
 
7977
if test "$ac_cv_cygwin" = yes; then
 
7978
DEFAULT_FONTPATH="C:/WINDOWS/FONTS;C:/WINNT/Fonts;C:/winnt/fonts"
 
7979
PATHSEPARATOR=";"
 
7980
else
 
7981
if test "$ac_cv_mingw32" = yes; then
 
7982
DEFAULT_FONTPATH="C:/WINDOWS/FONTS;C:/WINNT/Fonts;C:/winnt/fonts"
 
7983
PATHSEPARATOR=";"
 
7984
else
 
7985
# This sucks!  Whatever happened to standards for file system layout?
 
7986
DEFAULT_FONTPATH="/usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/openwin/lib/X11/fonts/TrueType"
 
7987
PATHSEPARATOR=":"
 
7988
fi
 
7989
fi
 
7990
 
 
7991
cat >>confdefs.h <<_ACEOF
 
7992
#define DEFAULT_FONTPATH "$DEFAULT_FONTPATH"
 
7993
_ACEOF
 
7994
 
 
7995
cat >>confdefs.h <<_ACEOF
 
7996
#define PATHSEPARATOR "$PATHSEPARATOR"
 
7997
_ACEOF
 
7998
 
 
7999
BUILD_DIR=`pwd`
 
8000
cd ${srcdir}
 
8001
TOP_DIR=`pwd`
 
8002
cd ${BUILD_DIR}
 
8003
 
 
8004
# Check whether --with-dmalloc or --without-dmalloc was given.
 
8005
if test "${with_dmalloc+set}" = set; then
 
8006
  withval="$with_dmalloc"
 
8007
  DMALLOC=true
 
8008
fi;
 
8009
 
 
8010
if test "x${DMALLOC}" != "x"; then
 
8011
        LIBS="$LIBS -ldmalloc"
 
8012
        CFLAGS="$CFLAGS -DDMALLOC -g -O0"
 
8013
fi
 
8014
 
 
8015
# Check whether --with-efence or --without-efence was given.
 
8016
if test "${with_efence+set}" = set; then
 
8017
  withval="$with_efence"
 
8018
  EFENCE=true
 
8019
fi;
 
8020
 
 
8021
if test "x${EFENCE}" != "x"; then
 
8022
        LIBS="$LIBS -lefence"
 
8023
fi
 
8024
 
 
8025
if test "${GCC}" != "yes" ; then
 
8026
    case "${host}" in
 
8027
        *-*-hpux* )
 
8028
            CFLAGS="${CFLAGS} -Wp,-H30000"
 
8029
            ;;
 
8030
        *-dec-osf* )
 
8031
            CFLAGS="${CFLAGS} -ieee"
 
8032
            ;;
 
8033
    esac
 
8034
else
 
8035
    CFLAGS="${CFLAGS} -Wall -Wno-unknown-pragmas"
 
8036
    case "${host}" in
 
8037
        *-dec-osf* )
 
8038
            CFLAGS="${CFLAGS} -mieee"
 
8039
            ;;
 
8040
        alpha*-*-linux* )
 
8041
            CFLAGS="${CFLAGS} -mieee"
 
8042
            ;;
 
8043
    esac
 
8044
fi
 
8045
#AC_PATH_PROG(TCLSH,tclsh8.4)
 
8046
#if test "x$TCLSH" = "x"; then
 
8047
        # Extract the first word of "tclsh8.3", so it can be a program name with args.
 
8048
set dummy tclsh8.3; ac_word=$2
 
8049
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8050
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8051
if test "${ac_cv_path_TCLSH+set}" = set; then
 
8052
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8053
else
 
8054
  case $TCLSH in
 
8055
  [\\/]* | ?:[\\/]*)
 
8056
  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
 
8057
  ;;
 
8058
  *)
 
8059
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8060
for as_dir in $PATH
 
8061
do
 
8062
  IFS=$as_save_IFS
 
8063
  test -z "$as_dir" && as_dir=.
 
8064
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8065
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8066
    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
 
8067
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8068
    break 2
 
8069
  fi
 
8070
done
 
8071
done
 
8072
 
 
8073
  ;;
 
8074
esac
 
8075
fi
 
8076
TCLSH=$ac_cv_path_TCLSH
 
8077
 
 
8078
if test -n "$TCLSH"; then
 
8079
  echo "$as_me:$LINENO: result: $TCLSH" >&5
 
8080
echo "${ECHO_T}$TCLSH" >&6
 
8081
else
 
8082
  echo "$as_me:$LINENO: result: no" >&5
 
8083
echo "${ECHO_T}no" >&6
 
8084
fi
 
8085
 
 
8086
        if test "x$TCLSH" = "x"; then
 
8087
                # Extract the first word of "tclsh", so it can be a program name with args.
 
8088
set dummy tclsh; ac_word=$2
 
8089
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8090
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8091
if test "${ac_cv_path_TCLSH+set}" = set; then
 
8092
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8093
else
 
8094
  case $TCLSH in
 
8095
  [\\/]* | ?:[\\/]*)
 
8096
  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
 
8097
  ;;
 
8098
  *)
 
8099
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8100
for as_dir in $PATH
 
8101
do
 
8102
  IFS=$as_save_IFS
 
8103
  test -z "$as_dir" && as_dir=.
 
8104
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8105
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8106
    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
 
8107
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8108
    break 2
 
8109
  fi
 
8110
done
 
8111
done
 
8112
 
 
8113
  ;;
 
8114
esac
 
8115
fi
 
8116
TCLSH=$ac_cv_path_TCLSH
 
8117
 
 
8118
if test -n "$TCLSH"; then
 
8119
  echo "$as_me:$LINENO: result: $TCLSH" >&5
 
8120
echo "${ECHO_T}$TCLSH" >&6
 
8121
else
 
8122
  echo "$as_me:$LINENO: result: no" >&5
 
8123
echo "${ECHO_T}no" >&6
 
8124
fi
 
8125
 
 
8126
        fi
 
8127
#fi
 
8128
 
 
8129
# can't assume ksh on all architectures
 
8130
# TCLSH_EXEC_PREFIX=${TCLSH%%/bin/tclsh.*}
 
8131
TCLSH_EXEC_PREFIX=`echo $TCLSH|sed -e 's%/bin/tclsh.*$%%'`
 
8132
 
 
8133
# Check whether --with-tcl or --without-tcl was given.
 
8134
if test "${with_tcl+set}" = set; then
 
8135
  withval="$with_tcl"
 
8136
  TCLSH_EXEC_PREFIX=$withval
 
8137
fi;
 
8138
 
 
8139
# Some systems don't have Tcl.  Don't build
 
8140
# the Tcl products if we don't have the library.
 
8141
TCLCONFIG=${TCLSH_EXEC_PREFIX}/lib/tclConfig.sh
 
8142
if test -f $TCLCONFIG; then
 
8143
    echo "$as_me:$LINENO: result: using $TCLCONFIG" >&5
 
8144
echo "${ECHO_T}using $TCLCONFIG" >&6
 
8145
    file=${TCLCONFIG}
 
8146
    . $file
 
8147
    TCL_SUBDIRS="tclstubs tclhandle gdtclft tcldot tcldgr tcldgl tclpathplan"
 
8148
    TCL_PKGINDEX="gdtclft/pkgIndex.tcl tcldot/pkgIndex.tcl tcldgr/pkgIndex.tcl tcldgl/pkgIndex.tcl tclpathplan/pkgIndex.tcl"
 
8149
else
 
8150
    { echo "$as_me:$LINENO: WARNING: Unable to find tclConfig.sh. The packages: \"gdtclft tcldot tcldgr tcldgl tclpathplan\" will not be built" >&5
 
8151
echo "$as_me: WARNING: Unable to find tclConfig.sh. The packages: \"gdtclft tcldot tcldgr tcldgl tclpathplan\" will not be built" >&2;}
 
8152
    TCL_SUBDIRS=""
 
8153
    TCL_PKGINDEX=""
 
8154
fi
 
8155
 
 
8156
if test "${TCL_SUPPORTS_STUBS}" = "1"; then
 
8157
    TCL_CFLAGS="${TCL_CFLAGS} -DUSE_TCL_STUBS"
 
8158
fi
 
8159
 
 
8160
WISH_EXEC_PREFIX=$TCLSH_EXEC_PREFIX
 
8161
 
 
8162
# Check whether --with-tk or --without-tk was given.
 
8163
if test "${with_tk+set}" = set; then
 
8164
  withval="$with_tk"
 
8165
  WISH_EXEC_PREFIX=$withval
 
8166
fi;
 
8167
 
 
8168
# Some systems have Tcl, but not TK.  Don't build
 
8169
# the Tk products if we don't have the library.
 
8170
TKCONFIG=${WISH_EXEC_PREFIX}/lib/tkConfig.sh
 
8171
if test -f $TKCONFIG; then
 
8172
    echo "$as_me:$LINENO: result: using $TKCONFIG" >&5
 
8173
echo "${ECHO_T}using $TKCONFIG" >&6
 
8174
    file=${TKCONFIG}
 
8175
    . $file
 
8176
    TK_SUBDIRS="tkstubs tkspline"
 
8177
    TK_PKGINDEX="tkspline/pkgIndex.tcl"
 
8178
else
 
8179
    { echo "$as_me:$LINENO: WARNING: Unable to find tkConfig.sh. The package \"tkspline\" will not be built" >&5
 
8180
echo "$as_me: WARNING: Unable to find tkConfig.sh. The package \"tkspline\" will not be built" >&2;}
 
8181
    TK_SUBDIRS=""
 
8182
    TK_PKGINDEX=""
 
8183
fi
 
8184
 
 
8185
# NB. No TK_SUPPORTS_STUBS set by tkConfig.sh
 
8186
if test "${TCL_SUPPORTS_STUBS}" = "1"; then
 
8187
    TK_CFLAGS="${TK_CFLAGS} -DUSE_TK_STUBS"
 
8188
fi
 
8189
 
 
8190
# Check whether --with-extraincludedir or --without-extraincludedir was given.
 
8191
if test "${with_extraincludedir+set}" = set; then
 
8192
  withval="$with_extraincludedir"
 
8193
  EXTRA_INCLUDES="-I$withval $INCLUDES"
 
8194
fi;
 
8195
 
 
8196
# Check whether --with-extralibdir or --without-extralibdir was given.
 
8197
if test "${with_extralibdir+set}" = set; then
 
8198
  withval="$with_extralibdir"
 
8199
  EXTRA_LIBS="-L$withval $LIBS"
 
8200
fi;
 
8201
 
 
8202
echo "$as_me:$LINENO: checking for main in -lm" >&5
 
8203
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
 
8204
if test "${ac_cv_lib_m_main+set}" = set; then
 
8205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8206
else
 
8207
  ac_check_lib_save_LIBS=$LIBS
 
8208
LIBS="-lm  $LIBS"
 
8209
cat >conftest.$ac_ext <<_ACEOF
 
8210
#line $LINENO "configure"
 
8211
#include "confdefs.h"
 
8212
 
 
8213
#ifdef F77_DUMMY_MAIN
 
8214
#  ifdef __cplusplus
 
8215
     extern "C"
 
8216
#  endif
 
8217
   int F77_DUMMY_MAIN() { return 1; }
 
8218
#endif
 
8219
int
 
8220
main ()
 
8221
{
 
8222
main ();
 
8223
  ;
 
8224
  return 0;
 
8225
}
 
8226
_ACEOF
 
8227
rm -f conftest.$ac_objext conftest$ac_exeext
 
8228
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8229
  (eval $ac_link) 2>&5
 
8230
  ac_status=$?
 
8231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8232
  (exit $ac_status); } &&
 
8233
         { ac_try='test -s conftest$ac_exeext'
 
8234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8235
  (eval $ac_try) 2>&5
 
8236
  ac_status=$?
 
8237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8238
  (exit $ac_status); }; }; then
 
8239
  ac_cv_lib_m_main=yes
 
8240
else
 
8241
  echo "$as_me: failed program was:" >&5
 
8242
cat conftest.$ac_ext >&5
 
8243
ac_cv_lib_m_main=no
 
8244
fi
 
8245
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8246
LIBS=$ac_check_lib_save_LIBS
 
8247
fi
 
8248
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
 
8249
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
 
8250
if test $ac_cv_lib_m_main = yes; then
 
8251
  cat >>confdefs.h <<_ACEOF
 
8252
#define HAVE_LIBM 1
 
8253
_ACEOF
 
8254
 
 
8255
  LIBS="-lm $LIBS"
 
8256
 
 
8257
fi
 
8258
 
 
8259
save_LIBS=$LIBS
 
8260
LIBS=
 
8261
tk_checkBoth=0
 
8262
echo "$as_me:$LINENO: checking for connect" >&5
 
8263
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
8264
if test "${ac_cv_func_connect+set}" = set; then
 
8265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8266
else
 
8267
  cat >conftest.$ac_ext <<_ACEOF
 
8268
#line $LINENO "configure"
 
8269
#include "confdefs.h"
 
8270
/* System header to define __stub macros and hopefully few prototypes,
 
8271
    which can conflict with char connect (); below.  */
 
8272
#include <assert.h>
 
8273
/* Override any gcc2 internal prototype to avoid an error.  */
 
8274
#ifdef __cplusplus
 
8275
extern "C"
 
8276
#endif
 
8277
/* We use char because int might match the return type of a gcc2
 
8278
   builtin and then its argument prototype would still apply.  */
 
8279
char connect ();
 
8280
char (*f) ();
 
8281
 
 
8282
#ifdef F77_DUMMY_MAIN
 
8283
#  ifdef __cplusplus
 
8284
     extern "C"
 
8285
#  endif
 
8286
   int F77_DUMMY_MAIN() { return 1; }
 
8287
#endif
 
8288
int
 
8289
main ()
 
8290
{
 
8291
/* The GNU C library defines this for functions which it implements
 
8292
    to always fail with ENOSYS.  Some functions are actually named
 
8293
    something starting with __ and the normal name is an alias.  */
 
8294
#if defined (__stub_connect) || defined (__stub___connect)
 
8295
choke me
 
8296
#else
 
8297
f = connect;
 
8298
#endif
 
8299
 
 
8300
  ;
 
8301
  return 0;
 
8302
}
 
8303
_ACEOF
 
8304
rm -f conftest.$ac_objext conftest$ac_exeext
 
8305
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8306
  (eval $ac_link) 2>&5
 
8307
  ac_status=$?
 
8308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8309
  (exit $ac_status); } &&
 
8310
         { ac_try='test -s conftest$ac_exeext'
 
8311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8312
  (eval $ac_try) 2>&5
 
8313
  ac_status=$?
 
8314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8315
  (exit $ac_status); }; }; then
 
8316
  ac_cv_func_connect=yes
 
8317
else
 
8318
  echo "$as_me: failed program was:" >&5
 
8319
cat conftest.$ac_ext >&5
 
8320
ac_cv_func_connect=no
 
8321
fi
 
8322
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8323
fi
 
8324
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
8325
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
8326
if test $ac_cv_func_connect = yes; then
 
8327
  tk_checkSocket=0
 
8328
else
 
8329
  tk_checkSocket=1
 
8330
fi
 
8331
 
 
8332
if test "$tk_checkSocket" = 1; then
 
8333
  echo "$as_me:$LINENO: checking for main in -lsocket" >&5
 
8334
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
 
8335
if test "${ac_cv_lib_socket_main+set}" = set; then
 
8336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8337
else
 
8338
  ac_check_lib_save_LIBS=$LIBS
 
8339
LIBS="-lsocket  $LIBS"
 
8340
cat >conftest.$ac_ext <<_ACEOF
 
8341
#line $LINENO "configure"
 
8342
#include "confdefs.h"
 
8343
 
 
8344
#ifdef F77_DUMMY_MAIN
 
8345
#  ifdef __cplusplus
 
8346
     extern "C"
 
8347
#  endif
 
8348
   int F77_DUMMY_MAIN() { return 1; }
 
8349
#endif
 
8350
int
 
8351
main ()
 
8352
{
 
8353
main ();
 
8354
  ;
 
8355
  return 0;
 
8356
}
 
8357
_ACEOF
 
8358
rm -f conftest.$ac_objext conftest$ac_exeext
 
8359
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8360
  (eval $ac_link) 2>&5
 
8361
  ac_status=$?
 
8362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8363
  (exit $ac_status); } &&
 
8364
         { ac_try='test -s conftest$ac_exeext'
 
8365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8366
  (eval $ac_try) 2>&5
 
8367
  ac_status=$?
 
8368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8369
  (exit $ac_status); }; }; then
 
8370
  ac_cv_lib_socket_main=yes
 
8371
else
 
8372
  echo "$as_me: failed program was:" >&5
 
8373
cat conftest.$ac_ext >&5
 
8374
ac_cv_lib_socket_main=no
 
8375
fi
 
8376
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8377
LIBS=$ac_check_lib_save_LIBS
 
8378
fi
 
8379
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
 
8380
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
 
8381
if test $ac_cv_lib_socket_main = yes; then
 
8382
  LIBS="$LIBS -lsocket"
 
8383
else
 
8384
  tk_checkBoth=1
 
8385
fi
 
8386
 
 
8387
fi
 
8388
if test "$tk_checkBoth" = 1; then
 
8389
  tk_oldLibs=$LIBS
 
8390
  LIBS="$LIBS -lsocket -lnsl"
 
8391
  echo "$as_me:$LINENO: checking for accept" >&5
 
8392
echo $ECHO_N "checking for accept... $ECHO_C" >&6
 
8393
if test "${ac_cv_func_accept+set}" = set; then
 
8394
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8395
else
 
8396
  cat >conftest.$ac_ext <<_ACEOF
 
8397
#line $LINENO "configure"
 
8398
#include "confdefs.h"
 
8399
/* System header to define __stub macros and hopefully few prototypes,
 
8400
    which can conflict with char accept (); below.  */
 
8401
#include <assert.h>
 
8402
/* Override any gcc2 internal prototype to avoid an error.  */
 
8403
#ifdef __cplusplus
 
8404
extern "C"
 
8405
#endif
 
8406
/* We use char because int might match the return type of a gcc2
 
8407
   builtin and then its argument prototype would still apply.  */
 
8408
char accept ();
 
8409
char (*f) ();
 
8410
 
 
8411
#ifdef F77_DUMMY_MAIN
 
8412
#  ifdef __cplusplus
 
8413
     extern "C"
 
8414
#  endif
 
8415
   int F77_DUMMY_MAIN() { return 1; }
 
8416
#endif
 
8417
int
 
8418
main ()
 
8419
{
 
8420
/* The GNU C library defines this for functions which it implements
 
8421
    to always fail with ENOSYS.  Some functions are actually named
 
8422
    something starting with __ and the normal name is an alias.  */
 
8423
#if defined (__stub_accept) || defined (__stub___accept)
 
8424
choke me
 
8425
#else
 
8426
f = accept;
 
8427
#endif
 
8428
 
 
8429
  ;
 
8430
  return 0;
 
8431
}
 
8432
_ACEOF
 
8433
rm -f conftest.$ac_objext conftest$ac_exeext
 
8434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8435
  (eval $ac_link) 2>&5
 
8436
  ac_status=$?
 
8437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8438
  (exit $ac_status); } &&
 
8439
         { ac_try='test -s conftest$ac_exeext'
 
8440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8441
  (eval $ac_try) 2>&5
 
8442
  ac_status=$?
 
8443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8444
  (exit $ac_status); }; }; then
 
8445
  ac_cv_func_accept=yes
 
8446
else
 
8447
  echo "$as_me: failed program was:" >&5
 
8448
cat conftest.$ac_ext >&5
 
8449
ac_cv_func_accept=no
 
8450
fi
 
8451
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8452
fi
 
8453
echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
 
8454
echo "${ECHO_T}$ac_cv_func_accept" >&6
 
8455
if test $ac_cv_func_accept = yes; then
 
8456
  tk_checkNsl=0
 
8457
else
 
8458
  LIBS=$tk_oldLibs
 
8459
fi
 
8460
 
 
8461
fi
 
8462
echo "$as_me:$LINENO: checking for gethostname" >&5
 
8463
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
 
8464
if test "${ac_cv_func_gethostname+set}" = set; then
 
8465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8466
else
 
8467
  cat >conftest.$ac_ext <<_ACEOF
 
8468
#line $LINENO "configure"
 
8469
#include "confdefs.h"
 
8470
/* System header to define __stub macros and hopefully few prototypes,
 
8471
    which can conflict with char gethostname (); below.  */
 
8472
#include <assert.h>
 
8473
/* Override any gcc2 internal prototype to avoid an error.  */
 
8474
#ifdef __cplusplus
 
8475
extern "C"
 
8476
#endif
 
8477
/* We use char because int might match the return type of a gcc2
 
8478
   builtin and then its argument prototype would still apply.  */
 
8479
char gethostname ();
 
8480
char (*f) ();
 
8481
 
 
8482
#ifdef F77_DUMMY_MAIN
 
8483
#  ifdef __cplusplus
 
8484
     extern "C"
 
8485
#  endif
 
8486
   int F77_DUMMY_MAIN() { return 1; }
 
8487
#endif
 
8488
int
 
8489
main ()
 
8490
{
 
8491
/* The GNU C library defines this for functions which it implements
 
8492
    to always fail with ENOSYS.  Some functions are actually named
 
8493
    something starting with __ and the normal name is an alias.  */
 
8494
#if defined (__stub_gethostname) || defined (__stub___gethostname)
 
8495
choke me
 
8496
#else
 
8497
f = gethostname;
 
8498
#endif
 
8499
 
 
8500
  ;
 
8501
  return 0;
 
8502
}
 
8503
_ACEOF
 
8504
rm -f conftest.$ac_objext conftest$ac_exeext
 
8505
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8506
  (eval $ac_link) 2>&5
 
8507
  ac_status=$?
 
8508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8509
  (exit $ac_status); } &&
 
8510
         { ac_try='test -s conftest$ac_exeext'
 
8511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8512
  (eval $ac_try) 2>&5
 
8513
  ac_status=$?
 
8514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8515
  (exit $ac_status); }; }; then
 
8516
  ac_cv_func_gethostname=yes
 
8517
else
 
8518
  echo "$as_me: failed program was:" >&5
 
8519
cat conftest.$ac_ext >&5
 
8520
ac_cv_func_gethostname=no
 
8521
fi
 
8522
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8523
fi
 
8524
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
 
8525
echo "${ECHO_T}$ac_cv_func_gethostname" >&6
 
8526
if test $ac_cv_func_gethostname = yes; then
 
8527
  :
 
8528
else
 
8529
  echo "$as_me:$LINENO: checking for main in -lnsl" >&5
 
8530
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
 
8531
if test "${ac_cv_lib_nsl_main+set}" = set; then
 
8532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8533
else
 
8534
  ac_check_lib_save_LIBS=$LIBS
 
8535
LIBS="-lnsl  $LIBS"
 
8536
cat >conftest.$ac_ext <<_ACEOF
 
8537
#line $LINENO "configure"
 
8538
#include "confdefs.h"
 
8539
 
 
8540
#ifdef F77_DUMMY_MAIN
 
8541
#  ifdef __cplusplus
 
8542
     extern "C"
 
8543
#  endif
 
8544
   int F77_DUMMY_MAIN() { return 1; }
 
8545
#endif
 
8546
int
 
8547
main ()
 
8548
{
 
8549
main ();
 
8550
  ;
 
8551
  return 0;
 
8552
}
 
8553
_ACEOF
 
8554
rm -f conftest.$ac_objext conftest$ac_exeext
 
8555
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8556
  (eval $ac_link) 2>&5
 
8557
  ac_status=$?
 
8558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8559
  (exit $ac_status); } &&
 
8560
         { ac_try='test -s conftest$ac_exeext'
 
8561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8562
  (eval $ac_try) 2>&5
 
8563
  ac_status=$?
 
8564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8565
  (exit $ac_status); }; }; then
 
8566
  ac_cv_lib_nsl_main=yes
 
8567
else
 
8568
  echo "$as_me: failed program was:" >&5
 
8569
cat conftest.$ac_ext >&5
 
8570
ac_cv_lib_nsl_main=no
 
8571
fi
 
8572
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8573
LIBS=$ac_check_lib_save_LIBS
 
8574
fi
 
8575
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
 
8576
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
 
8577
if test $ac_cv_lib_nsl_main = yes; then
 
8578
  LIBS="$LIBS -lnsl"
 
8579
fi
 
8580
 
 
8581
fi
 
8582
 
 
8583
SOCKET_LIBS=$LIBS
 
8584
 
 
8585
LIBS=$save_LIBS
 
8586
save_LIBS=$LIBS
 
8587
echo "$as_me:$LINENO: checking for X" >&5
 
8588
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
8589
 
 
8590
# Check whether --with-x or --without-x was given.
 
8591
if test "${with_x+set}" = set; then
 
8592
  withval="$with_x"
 
8593
 
 
8594
fi;
 
8595
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 
8596
if test "x$with_x" = xno; then
 
8597
  # The user explicitly disabled X.
 
8598
  have_x=disabled
 
8599
else
 
8600
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
8601
    # Both variables are already set.
 
8602
    have_x=yes
 
8603
  else
 
8604
    if test "${ac_cv_have_x+set}" = set; then
 
8605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8606
else
 
8607
  # One or both of the vars are not set, and there is no cached value.
 
8608
ac_x_includes=no ac_x_libraries=no
 
8609
rm -fr conftest.dir
 
8610
if mkdir conftest.dir; then
 
8611
  cd conftest.dir
 
8612
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
8613
  cat >Imakefile <<'_ACEOF'
 
8614
acfindx:
 
8615
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
8616
_ACEOF
 
8617
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
8618
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
8619
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
8620
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
8621
    for ac_extension in a so sl; do
 
8622
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
8623
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
8624
        ac_im_usrlibdir=$ac_im_libdir; break
 
8625
      fi
 
8626
    done
 
8627
    # Screen out bogus values from the imake configuration.  They are
 
8628
    # bogus both because they are the default anyway, and because
 
8629
    # using them would break gcc on systems where it needs fixed includes.
 
8630
    case $ac_im_incroot in
 
8631
        /usr/include) ;;
 
8632
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
8633
    esac
 
8634
    case $ac_im_usrlibdir in
 
8635
        /usr/lib | /lib) ;;
 
8636
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
8637
    esac
 
8638
  fi
 
8639
  cd ..
 
8640
  rm -fr conftest.dir
 
8641
fi
 
8642
 
 
8643
# Standard set of common directories for X headers.
 
8644
# Check X11 before X11Rn because it is often a symlink to the current release.
 
8645
ac_x_header_dirs='
 
8646
/usr/X11/include
 
8647
/usr/X11R6/include
 
8648
/usr/X11R5/include
 
8649
/usr/X11R4/include
 
8650
 
 
8651
/usr/include/X11
 
8652
/usr/include/X11R6
 
8653
/usr/include/X11R5
 
8654
/usr/include/X11R4
 
8655
 
 
8656
/usr/local/X11/include
 
8657
/usr/local/X11R6/include
 
8658
/usr/local/X11R5/include
 
8659
/usr/local/X11R4/include
 
8660
 
 
8661
/usr/local/include/X11
 
8662
/usr/local/include/X11R6
 
8663
/usr/local/include/X11R5
 
8664
/usr/local/include/X11R4
 
8665
 
 
8666
/usr/X386/include
 
8667
/usr/x386/include
 
8668
/usr/XFree86/include/X11
 
8669
 
 
8670
/usr/include
 
8671
/usr/local/include
 
8672
/usr/unsupported/include
 
8673
/usr/athena/include
 
8674
/usr/local/x11r5/include
 
8675
/usr/lpp/Xamples/include
 
8676
 
 
8677
/usr/openwin/include
 
8678
/usr/openwin/share/include'
 
8679
 
 
8680
if test "$ac_x_includes" = no; then
 
8681
  # Guess where to find include files, by looking for Intrinsic.h.
 
8682
  # First, try using that file with no special directory specified.
 
8683
  cat >conftest.$ac_ext <<_ACEOF
 
8684
#line $LINENO "configure"
 
8685
#include "confdefs.h"
 
8686
#include <X11/Intrinsic.h>
 
8687
_ACEOF
 
8688
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8689
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8690
  ac_status=$?
 
8691
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
8692
  rm -f conftest.er1
 
8693
  cat conftest.err >&5
 
8694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8695
  (exit $ac_status); } >/dev/null; then
 
8696
  if test -s conftest.err; then
 
8697
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8698
  else
 
8699
    ac_cpp_err=
 
8700
  fi
 
8701
else
 
8702
  ac_cpp_err=yes
 
8703
fi
 
8704
if test -z "$ac_cpp_err"; then
 
8705
  # We can compile using X headers with no special include directory.
 
8706
ac_x_includes=
 
8707
else
 
8708
  echo "$as_me: failed program was:" >&5
 
8709
  cat conftest.$ac_ext >&5
 
8710
  for ac_dir in $ac_x_header_dirs; do
 
8711
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
8712
    ac_x_includes=$ac_dir
 
8713
    break
 
8714
  fi
 
8715
done
 
8716
fi
 
8717
rm -f conftest.err conftest.$ac_ext
 
8718
fi # $ac_x_includes = no
 
8719
 
 
8720
if test "$ac_x_libraries" = no; then
 
8721
  # Check for the libraries.
 
8722
  # See if we find them without any special options.
 
8723
  # Don't add to $LIBS permanently.
 
8724
  ac_save_LIBS=$LIBS
 
8725
  LIBS="-lXt $LIBS"
 
8726
  cat >conftest.$ac_ext <<_ACEOF
 
8727
#line $LINENO "configure"
 
8728
#include "confdefs.h"
 
8729
#include <X11/Intrinsic.h>
 
8730
#ifdef F77_DUMMY_MAIN
 
8731
#  ifdef __cplusplus
 
8732
     extern "C"
 
8733
#  endif
 
8734
   int F77_DUMMY_MAIN() { return 1; }
 
8735
#endif
 
8736
int
 
8737
main ()
 
8738
{
 
8739
XtMalloc (0)
 
8740
  ;
 
8741
  return 0;
 
8742
}
 
8743
_ACEOF
 
8744
rm -f conftest.$ac_objext conftest$ac_exeext
 
8745
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8746
  (eval $ac_link) 2>&5
 
8747
  ac_status=$?
 
8748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8749
  (exit $ac_status); } &&
 
8750
         { ac_try='test -s conftest$ac_exeext'
 
8751
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8752
  (eval $ac_try) 2>&5
 
8753
  ac_status=$?
 
8754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8755
  (exit $ac_status); }; }; then
 
8756
  LIBS=$ac_save_LIBS
 
8757
# We can link X programs with no special library path.
 
8758
ac_x_libraries=
 
8759
else
 
8760
  echo "$as_me: failed program was:" >&5
 
8761
cat conftest.$ac_ext >&5
 
8762
LIBS=$ac_save_LIBS
 
8763
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
8764
do
 
8765
  # Don't even attempt the hair of trying to link an X program!
 
8766
  for ac_extension in a so sl; do
 
8767
    if test -r $ac_dir/libXt.$ac_extension; then
 
8768
      ac_x_libraries=$ac_dir
 
8769
      break 2
 
8770
    fi
 
8771
  done
 
8772
done
 
8773
fi
 
8774
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8775
fi # $ac_x_libraries = no
 
8776
 
 
8777
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
 
8778
  # Didn't find X anywhere.  Cache the known absence of X.
 
8779
  ac_cv_have_x="have_x=no"
 
8780
else
 
8781
  # Record where we found X for the cache.
 
8782
  ac_cv_have_x="have_x=yes \
 
8783
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
 
8784
fi
 
8785
fi
 
8786
 
 
8787
  fi
 
8788
  eval "$ac_cv_have_x"
 
8789
fi # $with_x != no
 
8790
 
 
8791
if test "$have_x" != yes; then
 
8792
  echo "$as_me:$LINENO: result: $have_x" >&5
 
8793
echo "${ECHO_T}$have_x" >&6
 
8794
  no_x=yes
 
8795
else
 
8796
  # If each of the values was on the command line, it overrides each guess.
 
8797
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 
8798
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 
8799
  # Update the cache value to reflect the command line values.
 
8800
  ac_cv_have_x="have_x=yes \
 
8801
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
 
8802
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
8803
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
 
8804
fi
 
8805
 
 
8806
if test "$no_x" = yes; then
 
8807
  # Not all programs may use this symbol, but it does not hurt to define it.
 
8808
 
 
8809
cat >>confdefs.h <<\_ACEOF
 
8810
#define X_DISPLAY_MISSING 1
 
8811
_ACEOF
 
8812
 
 
8813
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 
8814
else
 
8815
  if test -n "$x_includes"; then
 
8816
    X_CFLAGS="$X_CFLAGS -I$x_includes"
 
8817
  fi
 
8818
 
 
8819
  # It would also be nice to do this for all -L options, not just this one.
 
8820
  if test -n "$x_libraries"; then
 
8821
    X_LIBS="$X_LIBS -L$x_libraries"
 
8822
    # For Solaris; some versions of Sun CC require a space after -R and
 
8823
    # others require no space.  Words are not sufficient . . . .
 
8824
    case `(uname -sr) 2>/dev/null` in
 
8825
    "SunOS 5"*)
 
8826
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
8827
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
 
8828
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
8829
      cat >conftest.$ac_ext <<_ACEOF
 
8830
#line $LINENO "configure"
 
8831
#include "confdefs.h"
 
8832
 
 
8833
#ifdef F77_DUMMY_MAIN
 
8834
#  ifdef __cplusplus
 
8835
     extern "C"
 
8836
#  endif
 
8837
   int F77_DUMMY_MAIN() { return 1; }
 
8838
#endif
 
8839
int
 
8840
main ()
 
8841
{
 
8842
 
 
8843
  ;
 
8844
  return 0;
 
8845
}
 
8846
_ACEOF
 
8847
rm -f conftest.$ac_objext conftest$ac_exeext
 
8848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8849
  (eval $ac_link) 2>&5
 
8850
  ac_status=$?
 
8851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8852
  (exit $ac_status); } &&
 
8853
         { ac_try='test -s conftest$ac_exeext'
 
8854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8855
  (eval $ac_try) 2>&5
 
8856
  ac_status=$?
 
8857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8858
  (exit $ac_status); }; }; then
 
8859
  ac_R_nospace=yes
 
8860
else
 
8861
  echo "$as_me: failed program was:" >&5
 
8862
cat conftest.$ac_ext >&5
 
8863
ac_R_nospace=no
 
8864
fi
 
8865
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8866
      if test $ac_R_nospace = yes; then
 
8867
        echo "$as_me:$LINENO: result: no" >&5
 
8868
echo "${ECHO_T}no" >&6
 
8869
        X_LIBS="$X_LIBS -R$x_libraries"
 
8870
      else
 
8871
        LIBS="$ac_xsave_LIBS -R $x_libraries"
 
8872
        cat >conftest.$ac_ext <<_ACEOF
 
8873
#line $LINENO "configure"
 
8874
#include "confdefs.h"
 
8875
 
 
8876
#ifdef F77_DUMMY_MAIN
 
8877
#  ifdef __cplusplus
 
8878
     extern "C"
 
8879
#  endif
 
8880
   int F77_DUMMY_MAIN() { return 1; }
 
8881
#endif
 
8882
int
 
8883
main ()
 
8884
{
 
8885
 
 
8886
  ;
 
8887
  return 0;
 
8888
}
 
8889
_ACEOF
 
8890
rm -f conftest.$ac_objext conftest$ac_exeext
 
8891
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8892
  (eval $ac_link) 2>&5
 
8893
  ac_status=$?
 
8894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8895
  (exit $ac_status); } &&
 
8896
         { ac_try='test -s conftest$ac_exeext'
 
8897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8898
  (eval $ac_try) 2>&5
 
8899
  ac_status=$?
 
8900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8901
  (exit $ac_status); }; }; then
 
8902
  ac_R_space=yes
 
8903
else
 
8904
  echo "$as_me: failed program was:" >&5
 
8905
cat conftest.$ac_ext >&5
 
8906
ac_R_space=no
 
8907
fi
 
8908
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8909
        if test $ac_R_space = yes; then
 
8910
          echo "$as_me:$LINENO: result: yes" >&5
 
8911
echo "${ECHO_T}yes" >&6
 
8912
          X_LIBS="$X_LIBS -R $x_libraries"
 
8913
        else
 
8914
          echo "$as_me:$LINENO: result: neither works" >&5
 
8915
echo "${ECHO_T}neither works" >&6
 
8916
        fi
 
8917
      fi
 
8918
      LIBS=$ac_xsave_LIBS
 
8919
    esac
 
8920
  fi
 
8921
 
 
8922
  # Check for system-dependent libraries X programs must link with.
 
8923
  # Do this before checking for the system-independent R6 libraries
 
8924
  # (-lICE), since we may need -lsocket or whatever for X linking.
 
8925
 
 
8926
  if test "$ISC" = yes; then
 
8927
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 
8928
  else
 
8929
    # Martyn Johnson says this is needed for Ultrix, if the X
 
8930
    # libraries were built with DECnet support.  And Karl Berry says
 
8931
    # the Alpha needs dnet_stub (dnet does not exist).
 
8932
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 
8933
    cat >conftest.$ac_ext <<_ACEOF
 
8934
#line $LINENO "configure"
 
8935
#include "confdefs.h"
 
8936
 
 
8937
/* Override any gcc2 internal prototype to avoid an error.  */
 
8938
#ifdef __cplusplus
 
8939
extern "C"
 
8940
#endif
 
8941
/* We use char because int might match the return type of a gcc2
 
8942
   builtin and then its argument prototype would still apply.  */
 
8943
char XOpenDisplay ();
 
8944
#ifdef F77_DUMMY_MAIN
 
8945
#  ifdef __cplusplus
 
8946
     extern "C"
 
8947
#  endif
 
8948
   int F77_DUMMY_MAIN() { return 1; }
 
8949
#endif
 
8950
int
 
8951
main ()
 
8952
{
 
8953
XOpenDisplay ();
 
8954
  ;
 
8955
  return 0;
 
8956
}
 
8957
_ACEOF
 
8958
rm -f conftest.$ac_objext conftest$ac_exeext
 
8959
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8960
  (eval $ac_link) 2>&5
 
8961
  ac_status=$?
 
8962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8963
  (exit $ac_status); } &&
 
8964
         { ac_try='test -s conftest$ac_exeext'
 
8965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8966
  (eval $ac_try) 2>&5
 
8967
  ac_status=$?
 
8968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8969
  (exit $ac_status); }; }; then
 
8970
  :
 
8971
else
 
8972
  echo "$as_me: failed program was:" >&5
 
8973
cat conftest.$ac_ext >&5
 
8974
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
8975
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
 
8976
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
8977
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8978
else
 
8979
  ac_check_lib_save_LIBS=$LIBS
 
8980
LIBS="-ldnet  $LIBS"
 
8981
cat >conftest.$ac_ext <<_ACEOF
 
8982
#line $LINENO "configure"
 
8983
#include "confdefs.h"
 
8984
 
 
8985
/* Override any gcc2 internal prototype to avoid an error.  */
 
8986
#ifdef __cplusplus
 
8987
extern "C"
 
8988
#endif
 
8989
/* We use char because int might match the return type of a gcc2
 
8990
   builtin and then its argument prototype would still apply.  */
 
8991
char dnet_ntoa ();
 
8992
#ifdef F77_DUMMY_MAIN
 
8993
#  ifdef __cplusplus
 
8994
     extern "C"
 
8995
#  endif
 
8996
   int F77_DUMMY_MAIN() { return 1; }
 
8997
#endif
 
8998
int
 
8999
main ()
 
9000
{
 
9001
dnet_ntoa ();
 
9002
  ;
 
9003
  return 0;
 
9004
}
 
9005
_ACEOF
 
9006
rm -f conftest.$ac_objext conftest$ac_exeext
 
9007
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9008
  (eval $ac_link) 2>&5
 
9009
  ac_status=$?
 
9010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9011
  (exit $ac_status); } &&
 
9012
         { ac_try='test -s conftest$ac_exeext'
 
9013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9014
  (eval $ac_try) 2>&5
 
9015
  ac_status=$?
 
9016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9017
  (exit $ac_status); }; }; then
 
9018
  ac_cv_lib_dnet_dnet_ntoa=yes
 
9019
else
 
9020
  echo "$as_me: failed program was:" >&5
 
9021
cat conftest.$ac_ext >&5
 
9022
ac_cv_lib_dnet_dnet_ntoa=no
 
9023
fi
 
9024
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9025
LIBS=$ac_check_lib_save_LIBS
 
9026
fi
 
9027
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
9028
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
 
9029
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
9030
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
9031
fi
 
9032
 
 
9033
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
9034
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
9035
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
 
9036
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
9037
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9038
else
 
9039
  ac_check_lib_save_LIBS=$LIBS
 
9040
LIBS="-ldnet_stub  $LIBS"
 
9041
cat >conftest.$ac_ext <<_ACEOF
 
9042
#line $LINENO "configure"
 
9043
#include "confdefs.h"
 
9044
 
 
9045
/* Override any gcc2 internal prototype to avoid an error.  */
 
9046
#ifdef __cplusplus
 
9047
extern "C"
 
9048
#endif
 
9049
/* We use char because int might match the return type of a gcc2
 
9050
   builtin and then its argument prototype would still apply.  */
 
9051
char dnet_ntoa ();
 
9052
#ifdef F77_DUMMY_MAIN
 
9053
#  ifdef __cplusplus
 
9054
     extern "C"
 
9055
#  endif
 
9056
   int F77_DUMMY_MAIN() { return 1; }
 
9057
#endif
 
9058
int
 
9059
main ()
 
9060
{
 
9061
dnet_ntoa ();
 
9062
  ;
 
9063
  return 0;
 
9064
}
 
9065
_ACEOF
 
9066
rm -f conftest.$ac_objext conftest$ac_exeext
 
9067
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9068
  (eval $ac_link) 2>&5
 
9069
  ac_status=$?
 
9070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9071
  (exit $ac_status); } &&
 
9072
         { ac_try='test -s conftest$ac_exeext'
 
9073
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9074
  (eval $ac_try) 2>&5
 
9075
  ac_status=$?
 
9076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9077
  (exit $ac_status); }; }; then
 
9078
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
9079
else
 
9080
  echo "$as_me: failed program was:" >&5
 
9081
cat conftest.$ac_ext >&5
 
9082
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
9083
fi
 
9084
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9085
LIBS=$ac_check_lib_save_LIBS
 
9086
fi
 
9087
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
9088
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
 
9089
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
9090
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
9091
fi
 
9092
 
 
9093
    fi
 
9094
fi
 
9095
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9096
    LIBS="$ac_xsave_LIBS"
 
9097
 
 
9098
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
 
9099
    # to get the SysV transport functions.
 
9100
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
 
9101
    # needs -lnsl.
 
9102
    # The nsl library prevents programs from opening the X display
 
9103
    # on Irix 5.2, according to T.E. Dickey.
 
9104
    # The functions gethostbyname, getservbyname, and inet_addr are
 
9105
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 
9106
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
9107
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
9108
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
9109
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9110
else
 
9111
  cat >conftest.$ac_ext <<_ACEOF
 
9112
#line $LINENO "configure"
 
9113
#include "confdefs.h"
 
9114
/* System header to define __stub macros and hopefully few prototypes,
 
9115
    which can conflict with char gethostbyname (); below.  */
 
9116
#include <assert.h>
 
9117
/* Override any gcc2 internal prototype to avoid an error.  */
 
9118
#ifdef __cplusplus
 
9119
extern "C"
 
9120
#endif
 
9121
/* We use char because int might match the return type of a gcc2
 
9122
   builtin and then its argument prototype would still apply.  */
 
9123
char gethostbyname ();
 
9124
char (*f) ();
 
9125
 
 
9126
#ifdef F77_DUMMY_MAIN
 
9127
#  ifdef __cplusplus
 
9128
     extern "C"
 
9129
#  endif
 
9130
   int F77_DUMMY_MAIN() { return 1; }
 
9131
#endif
 
9132
int
 
9133
main ()
 
9134
{
 
9135
/* The GNU C library defines this for functions which it implements
 
9136
    to always fail with ENOSYS.  Some functions are actually named
 
9137
    something starting with __ and the normal name is an alias.  */
 
9138
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
9139
choke me
 
9140
#else
 
9141
f = gethostbyname;
 
9142
#endif
 
9143
 
 
9144
  ;
 
9145
  return 0;
 
9146
}
 
9147
_ACEOF
 
9148
rm -f conftest.$ac_objext conftest$ac_exeext
 
9149
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9150
  (eval $ac_link) 2>&5
 
9151
  ac_status=$?
 
9152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9153
  (exit $ac_status); } &&
 
9154
         { ac_try='test -s conftest$ac_exeext'
 
9155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9156
  (eval $ac_try) 2>&5
 
9157
  ac_status=$?
 
9158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9159
  (exit $ac_status); }; }; then
 
9160
  ac_cv_func_gethostbyname=yes
 
9161
else
 
9162
  echo "$as_me: failed program was:" >&5
 
9163
cat conftest.$ac_ext >&5
 
9164
ac_cv_func_gethostbyname=no
 
9165
fi
 
9166
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9167
fi
 
9168
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
9169
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
9170
 
 
9171
    if test $ac_cv_func_gethostbyname = no; then
 
9172
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
9173
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
9174
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
9175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9176
else
 
9177
  ac_check_lib_save_LIBS=$LIBS
 
9178
LIBS="-lnsl  $LIBS"
 
9179
cat >conftest.$ac_ext <<_ACEOF
 
9180
#line $LINENO "configure"
 
9181
#include "confdefs.h"
 
9182
 
 
9183
/* Override any gcc2 internal prototype to avoid an error.  */
 
9184
#ifdef __cplusplus
 
9185
extern "C"
 
9186
#endif
 
9187
/* We use char because int might match the return type of a gcc2
 
9188
   builtin and then its argument prototype would still apply.  */
 
9189
char gethostbyname ();
 
9190
#ifdef F77_DUMMY_MAIN
 
9191
#  ifdef __cplusplus
 
9192
     extern "C"
 
9193
#  endif
 
9194
   int F77_DUMMY_MAIN() { return 1; }
 
9195
#endif
 
9196
int
 
9197
main ()
 
9198
{
 
9199
gethostbyname ();
 
9200
  ;
 
9201
  return 0;
 
9202
}
 
9203
_ACEOF
 
9204
rm -f conftest.$ac_objext conftest$ac_exeext
 
9205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9206
  (eval $ac_link) 2>&5
 
9207
  ac_status=$?
 
9208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9209
  (exit $ac_status); } &&
 
9210
         { ac_try='test -s conftest$ac_exeext'
 
9211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9212
  (eval $ac_try) 2>&5
 
9213
  ac_status=$?
 
9214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9215
  (exit $ac_status); }; }; then
 
9216
  ac_cv_lib_nsl_gethostbyname=yes
 
9217
else
 
9218
  echo "$as_me: failed program was:" >&5
 
9219
cat conftest.$ac_ext >&5
 
9220
ac_cv_lib_nsl_gethostbyname=no
 
9221
fi
 
9222
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9223
LIBS=$ac_check_lib_save_LIBS
 
9224
fi
 
9225
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
9226
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
9227
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
9228
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
9229
fi
 
9230
 
 
9231
      if test $ac_cv_lib_nsl_gethostbyname = no; then
 
9232
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
9233
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
 
9234
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
9235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9236
else
 
9237
  ac_check_lib_save_LIBS=$LIBS
 
9238
LIBS="-lbsd  $LIBS"
 
9239
cat >conftest.$ac_ext <<_ACEOF
 
9240
#line $LINENO "configure"
 
9241
#include "confdefs.h"
 
9242
 
 
9243
/* Override any gcc2 internal prototype to avoid an error.  */
 
9244
#ifdef __cplusplus
 
9245
extern "C"
 
9246
#endif
 
9247
/* We use char because int might match the return type of a gcc2
 
9248
   builtin and then its argument prototype would still apply.  */
 
9249
char gethostbyname ();
 
9250
#ifdef F77_DUMMY_MAIN
 
9251
#  ifdef __cplusplus
 
9252
     extern "C"
 
9253
#  endif
 
9254
   int F77_DUMMY_MAIN() { return 1; }
 
9255
#endif
 
9256
int
 
9257
main ()
 
9258
{
 
9259
gethostbyname ();
 
9260
  ;
 
9261
  return 0;
 
9262
}
 
9263
_ACEOF
 
9264
rm -f conftest.$ac_objext conftest$ac_exeext
 
9265
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9266
  (eval $ac_link) 2>&5
 
9267
  ac_status=$?
 
9268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9269
  (exit $ac_status); } &&
 
9270
         { ac_try='test -s conftest$ac_exeext'
 
9271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9272
  (eval $ac_try) 2>&5
 
9273
  ac_status=$?
 
9274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9275
  (exit $ac_status); }; }; then
 
9276
  ac_cv_lib_bsd_gethostbyname=yes
 
9277
else
 
9278
  echo "$as_me: failed program was:" >&5
 
9279
cat conftest.$ac_ext >&5
 
9280
ac_cv_lib_bsd_gethostbyname=no
 
9281
fi
 
9282
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9283
LIBS=$ac_check_lib_save_LIBS
 
9284
fi
 
9285
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
9286
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
 
9287
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
9288
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 
9289
fi
 
9290
 
 
9291
      fi
 
9292
    fi
 
9293
 
 
9294
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
 
9295
    # socket/setsockopt and other routines are undefined under SCO ODT
 
9296
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
 
9297
    # on later versions), says Simon Leinen: it contains gethostby*
 
9298
    # variants that don't use the nameserver (or something).  -lsocket
 
9299
    # must be given before -lnsl if both are needed.  We assume that
 
9300
    # if connect needs -lnsl, so does gethostbyname.
 
9301
    echo "$as_me:$LINENO: checking for connect" >&5
 
9302
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
9303
if test "${ac_cv_func_connect+set}" = set; then
 
9304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9305
else
 
9306
  cat >conftest.$ac_ext <<_ACEOF
 
9307
#line $LINENO "configure"
 
9308
#include "confdefs.h"
 
9309
/* System header to define __stub macros and hopefully few prototypes,
 
9310
    which can conflict with char connect (); below.  */
 
9311
#include <assert.h>
 
9312
/* Override any gcc2 internal prototype to avoid an error.  */
 
9313
#ifdef __cplusplus
 
9314
extern "C"
 
9315
#endif
 
9316
/* We use char because int might match the return type of a gcc2
 
9317
   builtin and then its argument prototype would still apply.  */
 
9318
char connect ();
 
9319
char (*f) ();
 
9320
 
 
9321
#ifdef F77_DUMMY_MAIN
 
9322
#  ifdef __cplusplus
 
9323
     extern "C"
 
9324
#  endif
 
9325
   int F77_DUMMY_MAIN() { return 1; }
 
9326
#endif
 
9327
int
 
9328
main ()
 
9329
{
 
9330
/* The GNU C library defines this for functions which it implements
 
9331
    to always fail with ENOSYS.  Some functions are actually named
 
9332
    something starting with __ and the normal name is an alias.  */
 
9333
#if defined (__stub_connect) || defined (__stub___connect)
 
9334
choke me
 
9335
#else
 
9336
f = connect;
 
9337
#endif
 
9338
 
 
9339
  ;
 
9340
  return 0;
 
9341
}
 
9342
_ACEOF
 
9343
rm -f conftest.$ac_objext conftest$ac_exeext
 
9344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9345
  (eval $ac_link) 2>&5
 
9346
  ac_status=$?
 
9347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9348
  (exit $ac_status); } &&
 
9349
         { ac_try='test -s conftest$ac_exeext'
 
9350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9351
  (eval $ac_try) 2>&5
 
9352
  ac_status=$?
 
9353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9354
  (exit $ac_status); }; }; then
 
9355
  ac_cv_func_connect=yes
 
9356
else
 
9357
  echo "$as_me: failed program was:" >&5
 
9358
cat conftest.$ac_ext >&5
 
9359
ac_cv_func_connect=no
 
9360
fi
 
9361
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9362
fi
 
9363
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
9364
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
9365
 
 
9366
    if test $ac_cv_func_connect = no; then
 
9367
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
9368
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
9369
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
9370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9371
else
 
9372
  ac_check_lib_save_LIBS=$LIBS
 
9373
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
9374
cat >conftest.$ac_ext <<_ACEOF
 
9375
#line $LINENO "configure"
 
9376
#include "confdefs.h"
 
9377
 
 
9378
/* Override any gcc2 internal prototype to avoid an error.  */
 
9379
#ifdef __cplusplus
 
9380
extern "C"
 
9381
#endif
 
9382
/* We use char because int might match the return type of a gcc2
 
9383
   builtin and then its argument prototype would still apply.  */
 
9384
char connect ();
 
9385
#ifdef F77_DUMMY_MAIN
 
9386
#  ifdef __cplusplus
 
9387
     extern "C"
 
9388
#  endif
 
9389
   int F77_DUMMY_MAIN() { return 1; }
 
9390
#endif
 
9391
int
 
9392
main ()
 
9393
{
 
9394
connect ();
 
9395
  ;
 
9396
  return 0;
 
9397
}
 
9398
_ACEOF
 
9399
rm -f conftest.$ac_objext conftest$ac_exeext
 
9400
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9401
  (eval $ac_link) 2>&5
 
9402
  ac_status=$?
 
9403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9404
  (exit $ac_status); } &&
 
9405
         { ac_try='test -s conftest$ac_exeext'
 
9406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9407
  (eval $ac_try) 2>&5
 
9408
  ac_status=$?
 
9409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9410
  (exit $ac_status); }; }; then
 
9411
  ac_cv_lib_socket_connect=yes
 
9412
else
 
9413
  echo "$as_me: failed program was:" >&5
 
9414
cat conftest.$ac_ext >&5
 
9415
ac_cv_lib_socket_connect=no
 
9416
fi
 
9417
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9418
LIBS=$ac_check_lib_save_LIBS
 
9419
fi
 
9420
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
9421
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
9422
if test $ac_cv_lib_socket_connect = yes; then
 
9423
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
9424
fi
 
9425
 
 
9426
    fi
 
9427
 
 
9428
    # Guillermo Gomez says -lposix is necessary on A/UX.
 
9429
    echo "$as_me:$LINENO: checking for remove" >&5
 
9430
echo $ECHO_N "checking for remove... $ECHO_C" >&6
 
9431
if test "${ac_cv_func_remove+set}" = set; then
 
9432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9433
else
 
9434
  cat >conftest.$ac_ext <<_ACEOF
 
9435
#line $LINENO "configure"
 
9436
#include "confdefs.h"
 
9437
/* System header to define __stub macros and hopefully few prototypes,
 
9438
    which can conflict with char remove (); below.  */
 
9439
#include <assert.h>
 
9440
/* Override any gcc2 internal prototype to avoid an error.  */
 
9441
#ifdef __cplusplus
 
9442
extern "C"
 
9443
#endif
 
9444
/* We use char because int might match the return type of a gcc2
 
9445
   builtin and then its argument prototype would still apply.  */
 
9446
char remove ();
 
9447
char (*f) ();
 
9448
 
 
9449
#ifdef F77_DUMMY_MAIN
 
9450
#  ifdef __cplusplus
 
9451
     extern "C"
 
9452
#  endif
 
9453
   int F77_DUMMY_MAIN() { return 1; }
 
9454
#endif
 
9455
int
 
9456
main ()
 
9457
{
 
9458
/* The GNU C library defines this for functions which it implements
 
9459
    to always fail with ENOSYS.  Some functions are actually named
 
9460
    something starting with __ and the normal name is an alias.  */
 
9461
#if defined (__stub_remove) || defined (__stub___remove)
 
9462
choke me
 
9463
#else
 
9464
f = remove;
 
9465
#endif
 
9466
 
 
9467
  ;
 
9468
  return 0;
 
9469
}
 
9470
_ACEOF
 
9471
rm -f conftest.$ac_objext conftest$ac_exeext
 
9472
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9473
  (eval $ac_link) 2>&5
 
9474
  ac_status=$?
 
9475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9476
  (exit $ac_status); } &&
 
9477
         { ac_try='test -s conftest$ac_exeext'
 
9478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9479
  (eval $ac_try) 2>&5
 
9480
  ac_status=$?
 
9481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9482
  (exit $ac_status); }; }; then
 
9483
  ac_cv_func_remove=yes
 
9484
else
 
9485
  echo "$as_me: failed program was:" >&5
 
9486
cat conftest.$ac_ext >&5
 
9487
ac_cv_func_remove=no
 
9488
fi
 
9489
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9490
fi
 
9491
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
9492
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
9493
 
 
9494
    if test $ac_cv_func_remove = no; then
 
9495
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
9496
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
 
9497
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
9498
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9499
else
 
9500
  ac_check_lib_save_LIBS=$LIBS
 
9501
LIBS="-lposix  $LIBS"
 
9502
cat >conftest.$ac_ext <<_ACEOF
 
9503
#line $LINENO "configure"
 
9504
#include "confdefs.h"
 
9505
 
 
9506
/* Override any gcc2 internal prototype to avoid an error.  */
 
9507
#ifdef __cplusplus
 
9508
extern "C"
 
9509
#endif
 
9510
/* We use char because int might match the return type of a gcc2
 
9511
   builtin and then its argument prototype would still apply.  */
 
9512
char remove ();
 
9513
#ifdef F77_DUMMY_MAIN
 
9514
#  ifdef __cplusplus
 
9515
     extern "C"
 
9516
#  endif
 
9517
   int F77_DUMMY_MAIN() { return 1; }
 
9518
#endif
 
9519
int
 
9520
main ()
 
9521
{
 
9522
remove ();
 
9523
  ;
 
9524
  return 0;
 
9525
}
 
9526
_ACEOF
 
9527
rm -f conftest.$ac_objext conftest$ac_exeext
 
9528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9529
  (eval $ac_link) 2>&5
 
9530
  ac_status=$?
 
9531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9532
  (exit $ac_status); } &&
 
9533
         { ac_try='test -s conftest$ac_exeext'
 
9534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9535
  (eval $ac_try) 2>&5
 
9536
  ac_status=$?
 
9537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9538
  (exit $ac_status); }; }; then
 
9539
  ac_cv_lib_posix_remove=yes
 
9540
else
 
9541
  echo "$as_me: failed program was:" >&5
 
9542
cat conftest.$ac_ext >&5
 
9543
ac_cv_lib_posix_remove=no
 
9544
fi
 
9545
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9546
LIBS=$ac_check_lib_save_LIBS
 
9547
fi
 
9548
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
9549
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
 
9550
if test $ac_cv_lib_posix_remove = yes; then
 
9551
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
9552
fi
 
9553
 
 
9554
    fi
 
9555
 
 
9556
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
9557
    echo "$as_me:$LINENO: checking for shmat" >&5
 
9558
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
 
9559
if test "${ac_cv_func_shmat+set}" = set; then
 
9560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9561
else
 
9562
  cat >conftest.$ac_ext <<_ACEOF
 
9563
#line $LINENO "configure"
 
9564
#include "confdefs.h"
 
9565
/* System header to define __stub macros and hopefully few prototypes,
 
9566
    which can conflict with char shmat (); below.  */
 
9567
#include <assert.h>
 
9568
/* Override any gcc2 internal prototype to avoid an error.  */
 
9569
#ifdef __cplusplus
 
9570
extern "C"
 
9571
#endif
 
9572
/* We use char because int might match the return type of a gcc2
 
9573
   builtin and then its argument prototype would still apply.  */
 
9574
char shmat ();
 
9575
char (*f) ();
 
9576
 
 
9577
#ifdef F77_DUMMY_MAIN
 
9578
#  ifdef __cplusplus
 
9579
     extern "C"
 
9580
#  endif
 
9581
   int F77_DUMMY_MAIN() { return 1; }
 
9582
#endif
 
9583
int
 
9584
main ()
 
9585
{
 
9586
/* The GNU C library defines this for functions which it implements
 
9587
    to always fail with ENOSYS.  Some functions are actually named
 
9588
    something starting with __ and the normal name is an alias.  */
 
9589
#if defined (__stub_shmat) || defined (__stub___shmat)
 
9590
choke me
 
9591
#else
 
9592
f = shmat;
 
9593
#endif
 
9594
 
 
9595
  ;
 
9596
  return 0;
 
9597
}
 
9598
_ACEOF
 
9599
rm -f conftest.$ac_objext conftest$ac_exeext
 
9600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9601
  (eval $ac_link) 2>&5
 
9602
  ac_status=$?
 
9603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9604
  (exit $ac_status); } &&
 
9605
         { ac_try='test -s conftest$ac_exeext'
 
9606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9607
  (eval $ac_try) 2>&5
 
9608
  ac_status=$?
 
9609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9610
  (exit $ac_status); }; }; then
 
9611
  ac_cv_func_shmat=yes
 
9612
else
 
9613
  echo "$as_me: failed program was:" >&5
 
9614
cat conftest.$ac_ext >&5
 
9615
ac_cv_func_shmat=no
 
9616
fi
 
9617
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9618
fi
 
9619
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
9620
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
9621
 
 
9622
    if test $ac_cv_func_shmat = no; then
 
9623
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
9624
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
 
9625
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
9626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9627
else
 
9628
  ac_check_lib_save_LIBS=$LIBS
 
9629
LIBS="-lipc  $LIBS"
 
9630
cat >conftest.$ac_ext <<_ACEOF
 
9631
#line $LINENO "configure"
 
9632
#include "confdefs.h"
 
9633
 
 
9634
/* Override any gcc2 internal prototype to avoid an error.  */
 
9635
#ifdef __cplusplus
 
9636
extern "C"
 
9637
#endif
 
9638
/* We use char because int might match the return type of a gcc2
 
9639
   builtin and then its argument prototype would still apply.  */
 
9640
char shmat ();
 
9641
#ifdef F77_DUMMY_MAIN
 
9642
#  ifdef __cplusplus
 
9643
     extern "C"
 
9644
#  endif
 
9645
   int F77_DUMMY_MAIN() { return 1; }
 
9646
#endif
 
9647
int
 
9648
main ()
 
9649
{
 
9650
shmat ();
 
9651
  ;
 
9652
  return 0;
 
9653
}
 
9654
_ACEOF
 
9655
rm -f conftest.$ac_objext conftest$ac_exeext
 
9656
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9657
  (eval $ac_link) 2>&5
 
9658
  ac_status=$?
 
9659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9660
  (exit $ac_status); } &&
 
9661
         { ac_try='test -s conftest$ac_exeext'
 
9662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9663
  (eval $ac_try) 2>&5
 
9664
  ac_status=$?
 
9665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9666
  (exit $ac_status); }; }; then
 
9667
  ac_cv_lib_ipc_shmat=yes
 
9668
else
 
9669
  echo "$as_me: failed program was:" >&5
 
9670
cat conftest.$ac_ext >&5
 
9671
ac_cv_lib_ipc_shmat=no
 
9672
fi
 
9673
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9674
LIBS=$ac_check_lib_save_LIBS
 
9675
fi
 
9676
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
9677
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
 
9678
if test $ac_cv_lib_ipc_shmat = yes; then
 
9679
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
9680
fi
 
9681
 
 
9682
    fi
 
9683
  fi
 
9684
 
 
9685
  # Check for libraries that X11R6 Xt/Xaw programs need.
 
9686
  ac_save_LDFLAGS=$LDFLAGS
 
9687
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
 
9688
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
9689
  # check for ICE first), but we must link in the order -lSM -lICE or
 
9690
  # we get undefined symbols.  So assume we have SM if we have ICE.
 
9691
  # These have to be linked with before -lX11, unlike the other
 
9692
  # libraries we check for below, so use a different variable.
 
9693
  # John Interrante, Karl Berry
 
9694
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
9695
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
 
9696
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
9697
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9698
else
 
9699
  ac_check_lib_save_LIBS=$LIBS
 
9700
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
9701
cat >conftest.$ac_ext <<_ACEOF
 
9702
#line $LINENO "configure"
 
9703
#include "confdefs.h"
 
9704
 
 
9705
/* Override any gcc2 internal prototype to avoid an error.  */
 
9706
#ifdef __cplusplus
 
9707
extern "C"
 
9708
#endif
 
9709
/* We use char because int might match the return type of a gcc2
 
9710
   builtin and then its argument prototype would still apply.  */
 
9711
char IceConnectionNumber ();
 
9712
#ifdef F77_DUMMY_MAIN
 
9713
#  ifdef __cplusplus
 
9714
     extern "C"
 
9715
#  endif
 
9716
   int F77_DUMMY_MAIN() { return 1; }
 
9717
#endif
 
9718
int
 
9719
main ()
 
9720
{
 
9721
IceConnectionNumber ();
 
9722
  ;
 
9723
  return 0;
 
9724
}
 
9725
_ACEOF
 
9726
rm -f conftest.$ac_objext conftest$ac_exeext
 
9727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9728
  (eval $ac_link) 2>&5
 
9729
  ac_status=$?
 
9730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9731
  (exit $ac_status); } &&
 
9732
         { ac_try='test -s conftest$ac_exeext'
 
9733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9734
  (eval $ac_try) 2>&5
 
9735
  ac_status=$?
 
9736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9737
  (exit $ac_status); }; }; then
 
9738
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
9739
else
 
9740
  echo "$as_me: failed program was:" >&5
 
9741
cat conftest.$ac_ext >&5
 
9742
ac_cv_lib_ICE_IceConnectionNumber=no
 
9743
fi
 
9744
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9745
LIBS=$ac_check_lib_save_LIBS
 
9746
fi
 
9747
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
9748
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
 
9749
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
9750
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 
9751
fi
 
9752
 
 
9753
  LDFLAGS=$ac_save_LDFLAGS
 
9754
 
 
9755
fi
 
9756
 
 
9757
LIBS="$X_LIBS $SOCKET_LIBS"
 
9758
if test "$no_x" = yes; then
 
9759
  { echo "$as_me:$LINENO: WARNING: X11 not available." >&5
 
9760
echo "$as_me: WARNING: X11 not available." >&2;}
 
9761
  X_SUBDIRS=""
 
9762
else
 
9763
  X_SUBDIRS="lefty"
 
9764
 
 
9765
echo "$as_me:$LINENO: checking for main in -lX11" >&5
 
9766
echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
 
9767
if test "${ac_cv_lib_X11_main+set}" = set; then
 
9768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9769
else
 
9770
  ac_check_lib_save_LIBS=$LIBS
 
9771
LIBS="-lX11  $LIBS"
 
9772
cat >conftest.$ac_ext <<_ACEOF
 
9773
#line $LINENO "configure"
 
9774
#include "confdefs.h"
 
9775
 
 
9776
#ifdef F77_DUMMY_MAIN
 
9777
#  ifdef __cplusplus
 
9778
     extern "C"
 
9779
#  endif
 
9780
   int F77_DUMMY_MAIN() { return 1; }
 
9781
#endif
 
9782
int
 
9783
main ()
 
9784
{
 
9785
main ();
 
9786
  ;
 
9787
  return 0;
 
9788
}
 
9789
_ACEOF
 
9790
rm -f conftest.$ac_objext conftest$ac_exeext
 
9791
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9792
  (eval $ac_link) 2>&5
 
9793
  ac_status=$?
 
9794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9795
  (exit $ac_status); } &&
 
9796
         { ac_try='test -s conftest$ac_exeext'
 
9797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9798
  (eval $ac_try) 2>&5
 
9799
  ac_status=$?
 
9800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9801
  (exit $ac_status); }; }; then
 
9802
  ac_cv_lib_X11_main=yes
 
9803
else
 
9804
  echo "$as_me: failed program was:" >&5
 
9805
cat conftest.$ac_ext >&5
 
9806
ac_cv_lib_X11_main=no
 
9807
fi
 
9808
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9809
LIBS=$ac_check_lib_save_LIBS
 
9810
fi
 
9811
echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
 
9812
echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
 
9813
if test $ac_cv_lib_X11_main = yes; then
 
9814
  cat >>confdefs.h <<_ACEOF
 
9815
#define HAVE_LIBX11 1
 
9816
_ACEOF
 
9817
 
 
9818
  LIBS="-lX11 $LIBS"
 
9819
 
 
9820
else
 
9821
  { { echo "$as_me:$LINENO: error: libX11 not found." >&5
 
9822
echo "$as_me: error: libX11 not found." >&2;}
 
9823
   { (exit 1); exit 1; }; }
 
9824
fi
 
9825
 
 
9826
fi
 
9827
 
 
9828
LIBS=$save_LIBS
 
9829
XPM_LIBS=
 
9830
XPM_INCLUDES=
 
9831
#
 
9832
# gd only inputs from xbm files, no output is provided, so its of no use to us.
 
9833
#
 
9834
#  save_INCLUDES=$INCLUDES
 
9835
#  save_LIBS=$LIBS
 
9836
#  if test -f "/usr/include/X11/xpm.h"; then
 
9837
#  XPM_INCLUDES="-I/usr/include/X11"
 
9838
#  else
 
9839
#  if test -f "${x_includes}/xpm.h"; then
 
9840
#  XPM_INCLUDES="-I${x_includes}"
 
9841
#  else
 
9842
#  if test -f "${x_includes}/X11/xpm.h"; then
 
9843
#  XPM_INCLUDES="-I${x_includes}/X11"
 
9844
#  fi
 
9845
#  fi
 
9846
#  fi
 
9847
#  XPM_LIBS=$X_LIBS
 
9848
#  if test "$no_x" = yes; then
 
9849
#    AC_MSG_WARN(No X, so no XPM support.)
 
9850
#  else
 
9851
#    AC_ARG_WITH(Xpmincludedir,
 
9852
#      [  --with-Xpmincludedir=DIR use Xpm includes from DIR],
 
9853
#      XPM_INCLUDES="-I$withval",)
 
9854
#    AC_ARG_WITH(Xpmlibdir,
 
9855
#      [  --with-Xpmlibdir=DIR    use Xpm libraries from DIR],
 
9856
#      XPM_LIBS="-L$withval",)
 
9857
#    INCLUDES="$INCLUDES $XPM_INCLUDES"
 
9858
#    LIBS="$LIBS $XPM_LIBS -lXpm -lX11 $SOCKET_LIBS"
 
9859
#    AC_CHECK_LIB(Xpm,main,,AC_MSG_WARN(Optional XPM library not available.))
 
9860
#  fi
 
9861
#  if test "$ac_cv_lib_Xpm_main" = yes; then
 
9862
#       XPM_LIBS="$XPM_LIBS -lXpm -lX11 $SOCKET_LIBS"
 
9863
#  fi
 
9864
 
 
9865
#  INCLUDES=$save_INCLUDES
 
9866
#  LIBS=$save_LIBS
 
9867
save_CPPFLAGS=$CPPFLAGS
 
9868
save_LDFLAGS=$LDFLAGS
 
9869
if test -f "/usr/include/freetype2/freetype/freetype.h"; then
 
9870
FT_INCLUDES="-I/usr/include/freetype2"
 
9871
else
 
9872
if test -f "/usr/local/include/freetype2/freetype/freetype.h"; then
 
9873
FT_INCLUDES="-I/usr/local/include/freetype2"
 
9874
else
 
9875
if test -f "/usr/local/include/freetype/freetype.h"; then
 
9876
FT_INCLUDES="-I/usr/local/include"
 
9877
fi
 
9878
fi
 
9879
fi
 
9880
 
 
9881
# Check whether --with-freetypeincludedir or --without-freetypeincludedir was given.
 
9882
if test "${with_freetypeincludedir+set}" = set; then
 
9883
  withval="$with_freetypeincludedir"
 
9884
  FT_INCLUDES="-I$withval"
 
9885
fi;
 
9886
CPPFLAGS="$CPPFLAGS $FT_INCLUDES"
 
9887
 
 
9888
# Check whether --with-freetypelibdir or --without-freetypelibdir was given.
 
9889
if test "${with_freetypelibdir+set}" = set; then
 
9890
  withval="$with_freetypelibdir"
 
9891
  FT_LIBS="-L$withval"
 
9892
        LDFLAGS="$LDFLAGS $FT_LIBS"
 
9893
fi;
 
9894
if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
 
9895
  echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
 
9896
echo $ECHO_N "checking for freetype/freetype.h... $ECHO_C" >&6
 
9897
if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
 
9898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9899
fi
 
9900
echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
 
9901
echo "${ECHO_T}$ac_cv_header_freetype_freetype_h" >&6
 
9902
else
 
9903
  # Is the header compilable?
 
9904
echo "$as_me:$LINENO: checking freetype/freetype.h usability" >&5
 
9905
echo $ECHO_N "checking freetype/freetype.h usability... $ECHO_C" >&6
 
9906
cat >conftest.$ac_ext <<_ACEOF
 
9907
#line $LINENO "configure"
 
9908
#include "confdefs.h"
 
9909
$ac_includes_default
 
9910
#include <freetype/freetype.h>
 
9911
_ACEOF
 
9912
rm -f conftest.$ac_objext
 
9913
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9914
  (eval $ac_compile) 2>&5
 
9915
  ac_status=$?
 
9916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9917
  (exit $ac_status); } &&
 
9918
         { ac_try='test -s conftest.$ac_objext'
 
9919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9920
  (eval $ac_try) 2>&5
 
9921
  ac_status=$?
 
9922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9923
  (exit $ac_status); }; }; then
 
9924
  ac_header_compiler=yes
 
9925
else
 
9926
  echo "$as_me: failed program was:" >&5
 
9927
cat conftest.$ac_ext >&5
 
9928
ac_header_compiler=no
 
9929
fi
 
9930
rm -f conftest.$ac_objext conftest.$ac_ext
 
9931
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9932
echo "${ECHO_T}$ac_header_compiler" >&6
 
9933
 
 
9934
# Is the header present?
 
9935
echo "$as_me:$LINENO: checking freetype/freetype.h presence" >&5
 
9936
echo $ECHO_N "checking freetype/freetype.h presence... $ECHO_C" >&6
 
9937
cat >conftest.$ac_ext <<_ACEOF
 
9938
#line $LINENO "configure"
 
9939
#include "confdefs.h"
 
9940
#include <freetype/freetype.h>
 
9941
_ACEOF
 
9942
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9943
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9944
  ac_status=$?
 
9945
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
9946
  rm -f conftest.er1
 
9947
  cat conftest.err >&5
 
9948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9949
  (exit $ac_status); } >/dev/null; then
 
9950
  if test -s conftest.err; then
 
9951
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9952
  else
 
9953
    ac_cpp_err=
 
9954
  fi
 
9955
else
 
9956
  ac_cpp_err=yes
 
9957
fi
 
9958
if test -z "$ac_cpp_err"; then
 
9959
  ac_header_preproc=yes
 
9960
else
 
9961
  echo "$as_me: failed program was:" >&5
 
9962
  cat conftest.$ac_ext >&5
 
9963
  ac_header_preproc=no
 
9964
fi
 
9965
rm -f conftest.err conftest.$ac_ext
 
9966
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9967
echo "${ECHO_T}$ac_header_preproc" >&6
 
9968
 
 
9969
# So?  What about this header?
 
9970
case $ac_header_compiler:$ac_header_preproc in
 
9971
  yes:no )
 
9972
    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
9973
echo "$as_me: WARNING: freetype/freetype.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9974
    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h: proceeding with the preprocessor's result" >&5
 
9975
echo "$as_me: WARNING: freetype/freetype.h: proceeding with the preprocessor's result" >&2;};;
 
9976
  no:yes )
 
9977
    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h: present but cannot be compiled." >&5
 
9978
echo "$as_me: WARNING: freetype/freetype.h: present but cannot be compiled." >&2;}
 
9979
    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h: check for missing prerequisite headers?" >&5
 
9980
echo "$as_me: WARNING: freetype/freetype.h: check for missing prerequisite headers?" >&2;}
 
9981
    { echo "$as_me:$LINENO: WARNING: freetype/freetype.h: proceeding with the preprocessor's result" >&5
 
9982
echo "$as_me: WARNING: freetype/freetype.h: proceeding with the preprocessor's result" >&2;};;
 
9983
esac
 
9984
echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
 
9985
echo $ECHO_N "checking for freetype/freetype.h... $ECHO_C" >&6
 
9986
if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
 
9987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9988
else
 
9989
  ac_cv_header_freetype_freetype_h=$ac_header_preproc
 
9990
fi
 
9991
echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
 
9992
echo "${ECHO_T}$ac_cv_header_freetype_freetype_h" >&6
 
9993
 
 
9994
fi
 
9995
if test $ac_cv_header_freetype_freetype_h = yes; then
 
9996
  echo "$as_me:$LINENO: checking for main in -lfreetype" >&5
 
9997
echo $ECHO_N "checking for main in -lfreetype... $ECHO_C" >&6
 
9998
if test "${ac_cv_lib_freetype_main+set}" = set; then
 
9999
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10000
else
 
10001
  ac_check_lib_save_LIBS=$LIBS
 
10002
LIBS="-lfreetype  $LIBS"
 
10003
cat >conftest.$ac_ext <<_ACEOF
 
10004
#line $LINENO "configure"
 
10005
#include "confdefs.h"
 
10006
 
 
10007
#ifdef F77_DUMMY_MAIN
 
10008
#  ifdef __cplusplus
 
10009
     extern "C"
 
10010
#  endif
 
10011
   int F77_DUMMY_MAIN() { return 1; }
 
10012
#endif
 
10013
int
 
10014
main ()
 
10015
{
 
10016
main ();
 
10017
  ;
 
10018
  return 0;
 
10019
}
 
10020
_ACEOF
 
10021
rm -f conftest.$ac_objext conftest$ac_exeext
 
10022
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10023
  (eval $ac_link) 2>&5
 
10024
  ac_status=$?
 
10025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10026
  (exit $ac_status); } &&
 
10027
         { ac_try='test -s conftest$ac_exeext'
 
10028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10029
  (eval $ac_try) 2>&5
 
10030
  ac_status=$?
 
10031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10032
  (exit $ac_status); }; }; then
 
10033
  ac_cv_lib_freetype_main=yes
 
10034
else
 
10035
  echo "$as_me: failed program was:" >&5
 
10036
cat conftest.$ac_ext >&5
 
10037
ac_cv_lib_freetype_main=no
 
10038
fi
 
10039
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10040
LIBS=$ac_check_lib_save_LIBS
 
10041
fi
 
10042
echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_main" >&5
 
10043
echo "${ECHO_T}$ac_cv_lib_freetype_main" >&6
 
10044
if test $ac_cv_lib_freetype_main = yes; then
 
10045
  FT_LIBS="$FT_LIBS -lfreetype"
 
10046
 
 
10047
cat >>confdefs.h <<_ACEOF
 
10048
#define HAVE_LIBFREETYPE 1
 
10049
_ACEOF
 
10050
 
 
10051
else
 
10052
  { echo "$as_me:$LINENO: WARNING: FreeType library not available. Will try for older TTF library instead." >&5
 
10053
echo "$as_me: WARNING: FreeType library not available. Will try for older TTF library instead." >&2;}
 
10054
                echo "$as_me:$LINENO: checking for main in -lttf" >&5
 
10055
echo $ECHO_N "checking for main in -lttf... $ECHO_C" >&6
 
10056
if test "${ac_cv_lib_ttf_main+set}" = set; then
 
10057
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10058
else
 
10059
  ac_check_lib_save_LIBS=$LIBS
 
10060
LIBS="-lttf  $LIBS"
 
10061
cat >conftest.$ac_ext <<_ACEOF
 
10062
#line $LINENO "configure"
 
10063
#include "confdefs.h"
 
10064
 
 
10065
#ifdef F77_DUMMY_MAIN
 
10066
#  ifdef __cplusplus
 
10067
     extern "C"
 
10068
#  endif
 
10069
   int F77_DUMMY_MAIN() { return 1; }
 
10070
#endif
 
10071
int
 
10072
main ()
 
10073
{
 
10074
main ();
 
10075
  ;
 
10076
  return 0;
 
10077
}
 
10078
_ACEOF
 
10079
rm -f conftest.$ac_objext conftest$ac_exeext
 
10080
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10081
  (eval $ac_link) 2>&5
 
10082
  ac_status=$?
 
10083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10084
  (exit $ac_status); } &&
 
10085
         { ac_try='test -s conftest$ac_exeext'
 
10086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10087
  (eval $ac_try) 2>&5
 
10088
  ac_status=$?
 
10089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10090
  (exit $ac_status); }; }; then
 
10091
  ac_cv_lib_ttf_main=yes
 
10092
else
 
10093
  echo "$as_me: failed program was:" >&5
 
10094
cat conftest.$ac_ext >&5
 
10095
ac_cv_lib_ttf_main=no
 
10096
fi
 
10097
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10098
LIBS=$ac_check_lib_save_LIBS
 
10099
fi
 
10100
echo "$as_me:$LINENO: result: $ac_cv_lib_ttf_main" >&5
 
10101
echo "${ECHO_T}$ac_cv_lib_ttf_main" >&6
 
10102
if test $ac_cv_lib_ttf_main = yes; then
 
10103
  FT_LIBS="$FT_LIBS -lttf"
 
10104
 
 
10105
cat >>confdefs.h <<_ACEOF
 
10106
#define HAVE_LIBTTF 1
 
10107
_ACEOF
 
10108
 
 
10109
else
 
10110
  { echo "$as_me:$LINENO: WARNING: Required TTF library not available (need freetype + freetype-devel rpms)." >&5
 
10111
echo "$as_me: WARNING: Required TTF library not available (need freetype + freetype-devel rpms)." >&2;}
 
10112
fi
 
10113
 
 
10114
fi
 
10115
 
 
10116
else
 
10117
  { echo "$as_me:$LINENO: WARNING: Optional freetype library not available - no freetype.h" >&5
 
10118
echo "$as_me: WARNING: Optional freetype library not available - no freetype.h" >&2;}
 
10119
fi
 
10120
 
 
10121
CPPFLAGS=$save_CPPFLAGS
 
10122
LDFLAGS=$save_LDFLAGS
 
10123
 
 
10124
save_CPPFLAGS=$CPPFLAGS
 
10125
save_LDFLAGS=$LDFLAGS
 
10126
 
 
10127
# Check whether --with-iconvincludedir or --without-iconvincludedir was given.
 
10128
if test "${with_iconvincludedir+set}" = set; then
 
10129
  withval="$with_iconvincludedir"
 
10130
  ICONV_INCLUDES="-I$withval"
 
10131
        CPPFLAGS="$CPPFLAGS -I$withval"
 
10132
fi;
 
10133
 
 
10134
# Check whether --with-iconvlibdir or --without-iconvlibdir was given.
 
10135
if test "${with_iconvlibdir+set}" = set; then
 
10136
  withval="$with_iconvlibdir"
 
10137
  ICONV_LIBS="-L$withval"
 
10138
        LDFLAGS="$LDFLAGS -L$withval"
 
10139
fi;
 
10140
# Some systems have iconv in a separate library (e.g. Tru64 UNIX)
 
10141
if test "${ac_cv_header_iconv_h+set}" = set; then
 
10142
  echo "$as_me:$LINENO: checking for iconv.h" >&5
 
10143
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
 
10144
if test "${ac_cv_header_iconv_h+set}" = set; then
 
10145
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10146
fi
 
10147
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
 
10148
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
 
10149
else
 
10150
  # Is the header compilable?
 
10151
echo "$as_me:$LINENO: checking iconv.h usability" >&5
 
10152
echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
 
10153
cat >conftest.$ac_ext <<_ACEOF
 
10154
#line $LINENO "configure"
 
10155
#include "confdefs.h"
 
10156
$ac_includes_default
 
10157
#include <iconv.h>
 
10158
_ACEOF
 
10159
rm -f conftest.$ac_objext
 
10160
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10161
  (eval $ac_compile) 2>&5
 
10162
  ac_status=$?
 
10163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10164
  (exit $ac_status); } &&
 
10165
         { ac_try='test -s conftest.$ac_objext'
 
10166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10167
  (eval $ac_try) 2>&5
 
10168
  ac_status=$?
 
10169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10170
  (exit $ac_status); }; }; then
 
10171
  ac_header_compiler=yes
 
10172
else
 
10173
  echo "$as_me: failed program was:" >&5
 
10174
cat conftest.$ac_ext >&5
 
10175
ac_header_compiler=no
 
10176
fi
 
10177
rm -f conftest.$ac_objext conftest.$ac_ext
 
10178
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10179
echo "${ECHO_T}$ac_header_compiler" >&6
 
10180
 
 
10181
# Is the header present?
 
10182
echo "$as_me:$LINENO: checking iconv.h presence" >&5
 
10183
echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
 
10184
cat >conftest.$ac_ext <<_ACEOF
 
10185
#line $LINENO "configure"
 
10186
#include "confdefs.h"
 
10187
#include <iconv.h>
 
10188
_ACEOF
 
10189
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10190
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10191
  ac_status=$?
 
10192
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10193
  rm -f conftest.er1
 
10194
  cat conftest.err >&5
 
10195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10196
  (exit $ac_status); } >/dev/null; then
 
10197
  if test -s conftest.err; then
 
10198
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10199
  else
 
10200
    ac_cpp_err=
 
10201
  fi
 
10202
else
 
10203
  ac_cpp_err=yes
 
10204
fi
 
10205
if test -z "$ac_cpp_err"; then
 
10206
  ac_header_preproc=yes
 
10207
else
 
10208
  echo "$as_me: failed program was:" >&5
 
10209
  cat conftest.$ac_ext >&5
 
10210
  ac_header_preproc=no
 
10211
fi
 
10212
rm -f conftest.err conftest.$ac_ext
 
10213
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10214
echo "${ECHO_T}$ac_header_preproc" >&6
 
10215
 
 
10216
# So?  What about this header?
 
10217
case $ac_header_compiler:$ac_header_preproc in
 
10218
  yes:no )
 
10219
    { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
10220
echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10221
    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
 
10222
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
 
10223
  no:yes )
 
10224
    { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled." >&5
 
10225
echo "$as_me: WARNING: iconv.h: present but cannot be compiled." >&2;}
 
10226
    { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
 
10227
echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
 
10228
    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
 
10229
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
 
10230
esac
 
10231
echo "$as_me:$LINENO: checking for iconv.h" >&5
 
10232
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
 
10233
if test "${ac_cv_header_iconv_h+set}" = set; then
 
10234
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10235
else
 
10236
  ac_cv_header_iconv_h=$ac_header_preproc
 
10237
fi
 
10238
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
 
10239
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
 
10240
 
 
10241
fi
 
10242
if test $ac_cv_header_iconv_h = yes; then
 
10243
 
 
10244
for ac_func in iconv
 
10245
do
 
10246
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10247
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10248
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
10249
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
10250
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10251
else
 
10252
  cat >conftest.$ac_ext <<_ACEOF
 
10253
#line $LINENO "configure"
 
10254
#include "confdefs.h"
 
10255
/* System header to define __stub macros and hopefully few prototypes
 
10256
else
 
10257
  which can conflict with char $ac_func (); below.  */
 
10258
#include <assert.h>
 
10259
/* Override any gcc2 internal prototype to avoid an error.  */
 
10260
#ifdef __cplusplus
 
10261
extern "C"
 
10262
#endif
 
10263
/* We use char because int might match the return type of a gcc2
 
10264
   builtin and then its argument prototype would still apply.  */
 
10265
char $ac_func ();
 
10266
char (*f) ();
 
10267
 
 
10268
#ifdef F77_DUMMY_MAIN
 
10269
#  ifdef __cplusplus
 
10270
     extern "C"
 
10271
#  endif
 
10272
   int F77_DUMMY_MAIN() { return 1; }
 
10273
#endif
 
10274
int
 
10275
main ()
 
10276
{
 
10277
/* The GNU C library defines this for functions which it implements
 
10278
    to always fail with ENOSYS.  Some functions are actually named
 
10279
    something starting with __ and the normal name is an alias.  */
 
10280
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
10281
choke me
 
10282
#else
 
10283
f = $ac_func;
 
10284
#endif
 
10285
 
 
10286
  ;
 
10287
  return 0;
 
10288
}
 
10289
_ACEOF
 
10290
rm -f conftest.$ac_objext conftest$ac_exeext
 
10291
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10292
  (eval $ac_link) 2>&5
 
10293
  ac_status=$?
 
10294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10295
  (exit $ac_status); } &&
 
10296
         { ac_try='test -s conftest$ac_exeext'
 
10297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10298
  (eval $ac_try) 2>&5
 
10299
  ac_status=$?
 
10300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10301
  (exit $ac_status); }; }; then
 
10302
  eval "$as_ac_var=yes"
 
10303
else
 
10304
  echo "$as_me: failed program was:" >&5
 
10305
cat conftest.$ac_ext >&5
 
10306
eval "$as_ac_var=no"
 
10307
fi
 
10308
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10309
fi
 
10310
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
10311
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
10312
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10313
  cat >>confdefs.h <<_ACEOF
 
10314
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10315
_ACEOF
 
10316
 
 
10317
else
 
10318
  echo "$as_me:$LINENO: checking for main in -liconv" >&5
 
10319
echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6
 
10320
if test "${ac_cv_lib_iconv_main+set}" = set; then
 
10321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10322
else
 
10323
  ac_check_lib_save_LIBS=$LIBS
 
10324
LIBS="-liconv  $LIBS"
 
10325
cat >conftest.$ac_ext <<_ACEOF
 
10326
#line $LINENO "configure"
 
10327
#include "confdefs.h"
 
10328
 
 
10329
#ifdef F77_DUMMY_MAIN
 
10330
#  ifdef __cplusplus
 
10331
     extern "C"
 
10332
#  endif
 
10333
   int F77_DUMMY_MAIN() { return 1; }
 
10334
#endif
 
10335
int
 
10336
main ()
 
10337
{
 
10338
main ();
 
10339
  ;
 
10340
  return 0;
 
10341
}
 
10342
_ACEOF
 
10343
rm -f conftest.$ac_objext conftest$ac_exeext
 
10344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10345
  (eval $ac_link) 2>&5
 
10346
  ac_status=$?
 
10347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10348
  (exit $ac_status); } &&
 
10349
         { ac_try='test -s conftest$ac_exeext'
 
10350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10351
  (eval $ac_try) 2>&5
 
10352
  ac_status=$?
 
10353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10354
  (exit $ac_status); }; }; then
 
10355
  ac_cv_lib_iconv_main=yes
 
10356
else
 
10357
  echo "$as_me: failed program was:" >&5
 
10358
cat conftest.$ac_ext >&5
 
10359
ac_cv_lib_iconv_main=no
 
10360
fi
 
10361
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10362
LIBS=$ac_check_lib_save_LIBS
 
10363
fi
 
10364
echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5
 
10365
echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6
 
10366
if test $ac_cv_lib_iconv_main = yes; then
 
10367
  ICONV_LIBS="$ICONV_LIBS -liconv"
 
10368
 
 
10369
cat >>confdefs.h <<_ACEOF
 
10370
#define HAVE_LIBICONV 1
 
10371
_ACEOF
 
10372
 
 
10373
else
 
10374
  { echo "$as_me:$LINENO: WARNING: Optional iconv library not available - no iconv.h" >&5
 
10375
echo "$as_me: WARNING: Optional iconv library not available - no iconv.h" >&2;}
 
10376
fi
 
10377
 
 
10378
fi
 
10379
done
 
10380
 
 
10381
fi
 
10382
 
 
10383
LDFLAGS=$save_LDFLAGS
 
10384
CPPFLAGS=$save_CPPFLAGS
 
10385
 
 
10386
save_CPPFLAGS=$CPPFLAGS
 
10387
save_LDFLAGS=$LDFLAGS
 
10388
 
 
10389
# Check whether --with-zincludedir or --without-zincludedir was given.
 
10390
if test "${with_zincludedir+set}" = set; then
 
10391
  withval="$with_zincludedir"
 
10392
  Z_INCLUDES="-I$withval"
 
10393
        CPPFLAGS="$CPPFLAGS -I$withval"
 
10394
fi;
 
10395
 
 
10396
# Check whether --with-zlibdir or --without-zlibdir was given.
 
10397
if test "${with_zlibdir+set}" = set; then
 
10398
  withval="$with_zlibdir"
 
10399
  Z_LIBS="-L$withval"
 
10400
        LDFLAGS="$LDFLAGS -L$withval"
 
10401
fi;
 
10402
if test "${ac_cv_header_zlib_h+set}" = set; then
 
10403
  echo "$as_me:$LINENO: checking for zlib.h" >&5
 
10404
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
 
10405
if test "${ac_cv_header_zlib_h+set}" = set; then
 
10406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10407
fi
 
10408
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
10409
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
 
10410
else
 
10411
  # Is the header compilable?
 
10412
echo "$as_me:$LINENO: checking zlib.h usability" >&5
 
10413
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
 
10414
cat >conftest.$ac_ext <<_ACEOF
 
10415
#line $LINENO "configure"
 
10416
#include "confdefs.h"
 
10417
$ac_includes_default
 
10418
#include <zlib.h>
 
10419
_ACEOF
 
10420
rm -f conftest.$ac_objext
 
10421
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10422
  (eval $ac_compile) 2>&5
 
10423
  ac_status=$?
 
10424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10425
  (exit $ac_status); } &&
 
10426
         { ac_try='test -s conftest.$ac_objext'
 
10427
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10428
  (eval $ac_try) 2>&5
 
10429
  ac_status=$?
 
10430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10431
  (exit $ac_status); }; }; then
 
10432
  ac_header_compiler=yes
 
10433
else
 
10434
  echo "$as_me: failed program was:" >&5
 
10435
cat conftest.$ac_ext >&5
 
10436
ac_header_compiler=no
 
10437
fi
 
10438
rm -f conftest.$ac_objext conftest.$ac_ext
 
10439
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10440
echo "${ECHO_T}$ac_header_compiler" >&6
 
10441
 
 
10442
# Is the header present?
 
10443
echo "$as_me:$LINENO: checking zlib.h presence" >&5
 
10444
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
 
10445
cat >conftest.$ac_ext <<_ACEOF
 
10446
#line $LINENO "configure"
 
10447
#include "confdefs.h"
 
10448
#include <zlib.h>
 
10449
_ACEOF
 
10450
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10451
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10452
  ac_status=$?
 
10453
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10454
  rm -f conftest.er1
 
10455
  cat conftest.err >&5
 
10456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10457
  (exit $ac_status); } >/dev/null; then
 
10458
  if test -s conftest.err; then
 
10459
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10460
  else
 
10461
    ac_cpp_err=
 
10462
  fi
 
10463
else
 
10464
  ac_cpp_err=yes
 
10465
fi
 
10466
if test -z "$ac_cpp_err"; then
 
10467
  ac_header_preproc=yes
 
10468
else
 
10469
  echo "$as_me: failed program was:" >&5
 
10470
  cat conftest.$ac_ext >&5
 
10471
  ac_header_preproc=no
 
10472
fi
 
10473
rm -f conftest.err conftest.$ac_ext
 
10474
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10475
echo "${ECHO_T}$ac_header_preproc" >&6
 
10476
 
 
10477
# So?  What about this header?
 
10478
case $ac_header_compiler:$ac_header_preproc in
 
10479
  yes:no )
 
10480
    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
10481
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10482
    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
 
10483
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
 
10484
  no:yes )
 
10485
    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled." >&5
 
10486
echo "$as_me: WARNING: zlib.h: present but cannot be compiled." >&2;}
 
10487
    { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
 
10488
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
 
10489
    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
 
10490
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
 
10491
esac
 
10492
echo "$as_me:$LINENO: checking for zlib.h" >&5
 
10493
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
 
10494
if test "${ac_cv_header_zlib_h+set}" = set; then
 
10495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10496
else
 
10497
  ac_cv_header_zlib_h=$ac_header_preproc
 
10498
fi
 
10499
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
10500
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
 
10501
 
 
10502
fi
 
10503
if test $ac_cv_header_zlib_h = yes; then
 
10504
  echo "$as_me:$LINENO: checking for main in -lz" >&5
 
10505
echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6
 
10506
if test "${ac_cv_lib_z_main+set}" = set; then
 
10507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10508
else
 
10509
  ac_check_lib_save_LIBS=$LIBS
 
10510
LIBS="-lz  $LIBS"
 
10511
cat >conftest.$ac_ext <<_ACEOF
 
10512
#line $LINENO "configure"
 
10513
#include "confdefs.h"
 
10514
 
 
10515
#ifdef F77_DUMMY_MAIN
 
10516
#  ifdef __cplusplus
 
10517
     extern "C"
 
10518
#  endif
 
10519
   int F77_DUMMY_MAIN() { return 1; }
 
10520
#endif
 
10521
int
 
10522
main ()
 
10523
{
 
10524
main ();
 
10525
  ;
 
10526
  return 0;
 
10527
}
 
10528
_ACEOF
 
10529
rm -f conftest.$ac_objext conftest$ac_exeext
 
10530
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10531
  (eval $ac_link) 2>&5
 
10532
  ac_status=$?
 
10533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10534
  (exit $ac_status); } &&
 
10535
         { ac_try='test -s conftest$ac_exeext'
 
10536
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10537
  (eval $ac_try) 2>&5
 
10538
  ac_status=$?
 
10539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10540
  (exit $ac_status); }; }; then
 
10541
  ac_cv_lib_z_main=yes
 
10542
else
 
10543
  echo "$as_me: failed program was:" >&5
 
10544
cat conftest.$ac_ext >&5
 
10545
ac_cv_lib_z_main=no
 
10546
fi
 
10547
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10548
LIBS=$ac_check_lib_save_LIBS
 
10549
fi
 
10550
echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
 
10551
echo "${ECHO_T}$ac_cv_lib_z_main" >&6
 
10552
if test $ac_cv_lib_z_main = yes; then
 
10553
  Z_LIBS="$Z_LIBS -lz"
 
10554
 
 
10555
cat >>confdefs.h <<_ACEOF
 
10556
#define HAVE_LIBZ 1
 
10557
_ACEOF
 
10558
 
 
10559
else
 
10560
  { echo "$as_me:$LINENO: WARNING: Optional z library not available" >&5
 
10561
echo "$as_me: WARNING: Optional z library not available" >&2;}
 
10562
fi
 
10563
 
 
10564
else
 
10565
  { echo "$as_me:$LINENO: WARNING: Optional z library not available - no zlib.h" >&5
 
10566
echo "$as_me: WARNING: Optional z library not available - no zlib.h" >&2;}
 
10567
fi
 
10568
 
 
10569
LDFLAGS=$save_LDFLAGS
 
10570
CPPFLAGS=$save_CPPFLAGS
 
10571
 
 
10572
save_CPPFLAGS=$CPPFLAGS
 
10573
save_LDFLAGS=$LDFLAGS
 
10574
 
 
10575
# Check whether --with-pngincludedir or --without-pngincludedir was given.
 
10576
if test "${with_pngincludedir+set}" = set; then
 
10577
  withval="$with_pngincludedir"
 
10578
  PNG_INCLUDES="-I$withval"
 
10579
        CPPFLAGS="$CPPFLAGS -I$withval"
 
10580
fi;
 
10581
 
 
10582
# Check whether --with-pnglibdir or --without-pnglibdir was given.
 
10583
if test "${with_pnglibdir+set}" = set; then
 
10584
  withval="$with_pnglibdir"
 
10585
  PNG_LIBS="-L$withval"
 
10586
        LDFLAGS="$LDFLAGS -L$withval"
 
10587
fi;
 
10588
if test "${ac_cv_header_png_h+set}" = set; then
 
10589
  echo "$as_me:$LINENO: checking for png.h" >&5
 
10590
echo $ECHO_N "checking for png.h... $ECHO_C" >&6
 
10591
if test "${ac_cv_header_png_h+set}" = set; then
 
10592
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10593
fi
 
10594
echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
 
10595
echo "${ECHO_T}$ac_cv_header_png_h" >&6
 
10596
else
 
10597
  # Is the header compilable?
 
10598
echo "$as_me:$LINENO: checking png.h usability" >&5
 
10599
echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
 
10600
cat >conftest.$ac_ext <<_ACEOF
 
10601
#line $LINENO "configure"
 
10602
#include "confdefs.h"
 
10603
$ac_includes_default
 
10604
#include <png.h>
 
10605
_ACEOF
 
10606
rm -f conftest.$ac_objext
 
10607
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10608
  (eval $ac_compile) 2>&5
 
10609
  ac_status=$?
 
10610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10611
  (exit $ac_status); } &&
 
10612
         { ac_try='test -s conftest.$ac_objext'
 
10613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10614
  (eval $ac_try) 2>&5
 
10615
  ac_status=$?
 
10616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10617
  (exit $ac_status); }; }; then
 
10618
  ac_header_compiler=yes
 
10619
else
 
10620
  echo "$as_me: failed program was:" >&5
 
10621
cat conftest.$ac_ext >&5
 
10622
ac_header_compiler=no
 
10623
fi
 
10624
rm -f conftest.$ac_objext conftest.$ac_ext
 
10625
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10626
echo "${ECHO_T}$ac_header_compiler" >&6
 
10627
 
 
10628
# Is the header present?
 
10629
echo "$as_me:$LINENO: checking png.h presence" >&5
 
10630
echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
 
10631
cat >conftest.$ac_ext <<_ACEOF
 
10632
#line $LINENO "configure"
 
10633
#include "confdefs.h"
 
10634
#include <png.h>
 
10635
_ACEOF
 
10636
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10637
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10638
  ac_status=$?
 
10639
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10640
  rm -f conftest.er1
 
10641
  cat conftest.err >&5
 
10642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10643
  (exit $ac_status); } >/dev/null; then
 
10644
  if test -s conftest.err; then
 
10645
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10646
  else
 
10647
    ac_cpp_err=
 
10648
  fi
 
10649
else
 
10650
  ac_cpp_err=yes
 
10651
fi
 
10652
if test -z "$ac_cpp_err"; then
 
10653
  ac_header_preproc=yes
 
10654
else
 
10655
  echo "$as_me: failed program was:" >&5
 
10656
  cat conftest.$ac_ext >&5
 
10657
  ac_header_preproc=no
 
10658
fi
 
10659
rm -f conftest.err conftest.$ac_ext
 
10660
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10661
echo "${ECHO_T}$ac_header_preproc" >&6
 
10662
 
 
10663
# So?  What about this header?
 
10664
case $ac_header_compiler:$ac_header_preproc in
 
10665
  yes:no )
 
10666
    { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
10667
echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10668
    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
 
10669
echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
 
10670
  no:yes )
 
10671
    { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled." >&5
 
10672
echo "$as_me: WARNING: png.h: present but cannot be compiled." >&2;}
 
10673
    { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
 
10674
echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
 
10675
    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
 
10676
echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
 
10677
esac
 
10678
echo "$as_me:$LINENO: checking for png.h" >&5
 
10679
echo $ECHO_N "checking for png.h... $ECHO_C" >&6
 
10680
if test "${ac_cv_header_png_h+set}" = set; then
 
10681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10682
else
 
10683
  ac_cv_header_png_h=$ac_header_preproc
 
10684
fi
 
10685
echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
 
10686
echo "${ECHO_T}$ac_cv_header_png_h" >&6
 
10687
 
 
10688
fi
 
10689
if test $ac_cv_header_png_h = yes; then
 
10690
  echo "$as_me:$LINENO: checking for main in -lpng" >&5
 
10691
echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
 
10692
if test "${ac_cv_lib_png_main+set}" = set; then
 
10693
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10694
else
 
10695
  ac_check_lib_save_LIBS=$LIBS
 
10696
LIBS="-lpng  $LIBS"
 
10697
cat >conftest.$ac_ext <<_ACEOF
 
10698
#line $LINENO "configure"
 
10699
#include "confdefs.h"
 
10700
 
 
10701
#ifdef F77_DUMMY_MAIN
 
10702
#  ifdef __cplusplus
 
10703
     extern "C"
 
10704
#  endif
 
10705
   int F77_DUMMY_MAIN() { return 1; }
 
10706
#endif
 
10707
int
 
10708
main ()
 
10709
{
 
10710
main ();
 
10711
  ;
 
10712
  return 0;
 
10713
}
 
10714
_ACEOF
 
10715
rm -f conftest.$ac_objext conftest$ac_exeext
 
10716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10717
  (eval $ac_link) 2>&5
 
10718
  ac_status=$?
 
10719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10720
  (exit $ac_status); } &&
 
10721
         { ac_try='test -s conftest$ac_exeext'
 
10722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10723
  (eval $ac_try) 2>&5
 
10724
  ac_status=$?
 
10725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10726
  (exit $ac_status); }; }; then
 
10727
  ac_cv_lib_png_main=yes
 
10728
else
 
10729
  echo "$as_me: failed program was:" >&5
 
10730
cat conftest.$ac_ext >&5
 
10731
ac_cv_lib_png_main=no
 
10732
fi
 
10733
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10734
LIBS=$ac_check_lib_save_LIBS
 
10735
fi
 
10736
echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
 
10737
echo "${ECHO_T}$ac_cv_lib_png_main" >&6
 
10738
if test $ac_cv_lib_png_main = yes; then
 
10739
  PNG_LIBS="$PNG_LIBS -lpng"
 
10740
 
 
10741
cat >>confdefs.h <<_ACEOF
 
10742
#define HAVE_LIBPNG 1
 
10743
_ACEOF
 
10744
 
 
10745
else
 
10746
  { echo "$as_me:$LINENO: WARNING: Optional png library not available" >&5
 
10747
echo "$as_me: WARNING: Optional png library not available" >&2;}
 
10748
fi
 
10749
 
 
10750
else
 
10751
  { echo "$as_me:$LINENO: WARNING: Optional png library not available - no png.h" >&5
 
10752
echo "$as_me: WARNING: Optional png library not available - no png.h" >&2;}
 
10753
fi
 
10754
 
 
10755
LDFLAGS=$save_LDFLAGS
 
10756
CPPFLAGS=$save_CPPFLAGS
 
10757
 
 
10758
save_CPPFLAGS=$CPPFLAGS
 
10759
save_LDFLAGS=$LDFLAGS
 
10760
 
 
10761
# Check whether --with-jpegincludedir or --without-jpegincludedir was given.
 
10762
if test "${with_jpegincludedir+set}" = set; then
 
10763
  withval="$with_jpegincludedir"
 
10764
  JPEG_INCLUDES="-I$withval"
 
10765
        CPPFLAGS="$CPPFLAGS -I$withval"
 
10766
fi;
 
10767
 
 
10768
# Check whether --with-jpeglibdir or --without-jpeglibdir was given.
 
10769
if test "${with_jpeglibdir+set}" = set; then
 
10770
  withval="$with_jpeglibdir"
 
10771
  JPEG_LIBS="-L$withval"
 
10772
        LDFLAGS="$LDFLAGS -L$withval"
 
10773
fi;
 
10774
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
10775
  echo "$as_me:$LINENO: checking for jpeglib.h" >&5
 
10776
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
 
10777
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
10778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10779
fi
 
10780
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
 
10781
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
 
10782
else
 
10783
  # Is the header compilable?
 
10784
echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
 
10785
echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
 
10786
cat >conftest.$ac_ext <<_ACEOF
 
10787
#line $LINENO "configure"
 
10788
#include "confdefs.h"
 
10789
$ac_includes_default
 
10790
#include <jpeglib.h>
 
10791
_ACEOF
 
10792
rm -f conftest.$ac_objext
 
10793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10794
  (eval $ac_compile) 2>&5
 
10795
  ac_status=$?
 
10796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10797
  (exit $ac_status); } &&
 
10798
         { ac_try='test -s conftest.$ac_objext'
 
10799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10800
  (eval $ac_try) 2>&5
 
10801
  ac_status=$?
 
10802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10803
  (exit $ac_status); }; }; then
 
10804
  ac_header_compiler=yes
 
10805
else
 
10806
  echo "$as_me: failed program was:" >&5
 
10807
cat conftest.$ac_ext >&5
 
10808
ac_header_compiler=no
 
10809
fi
 
10810
rm -f conftest.$ac_objext conftest.$ac_ext
 
10811
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
10812
echo "${ECHO_T}$ac_header_compiler" >&6
 
10813
 
 
10814
# Is the header present?
 
10815
echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
 
10816
echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
 
10817
cat >conftest.$ac_ext <<_ACEOF
 
10818
#line $LINENO "configure"
 
10819
#include "confdefs.h"
 
10820
#include <jpeglib.h>
 
10821
_ACEOF
 
10822
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10823
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10824
  ac_status=$?
 
10825
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10826
  rm -f conftest.er1
 
10827
  cat conftest.err >&5
 
10828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10829
  (exit $ac_status); } >/dev/null; then
 
10830
  if test -s conftest.err; then
 
10831
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10832
  else
 
10833
    ac_cpp_err=
 
10834
  fi
 
10835
else
 
10836
  ac_cpp_err=yes
 
10837
fi
 
10838
if test -z "$ac_cpp_err"; then
 
10839
  ac_header_preproc=yes
 
10840
else
 
10841
  echo "$as_me: failed program was:" >&5
 
10842
  cat conftest.$ac_ext >&5
 
10843
  ac_header_preproc=no
 
10844
fi
 
10845
rm -f conftest.err conftest.$ac_ext
 
10846
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
10847
echo "${ECHO_T}$ac_header_preproc" >&6
 
10848
 
 
10849
# So?  What about this header?
 
10850
case $ac_header_compiler:$ac_header_preproc in
 
10851
  yes:no )
 
10852
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
10853
echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
10854
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
 
10855
echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;};;
 
10856
  no:yes )
 
10857
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled." >&5
 
10858
echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled." >&2;}
 
10859
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
 
10860
echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
 
10861
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
 
10862
echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;};;
 
10863
esac
 
10864
echo "$as_me:$LINENO: checking for jpeglib.h" >&5
 
10865
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
 
10866
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
10867
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10868
else
 
10869
  ac_cv_header_jpeglib_h=$ac_header_preproc
 
10870
fi
 
10871
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
 
10872
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
 
10873
 
 
10874
fi
 
10875
if test $ac_cv_header_jpeglib_h = yes; then
 
10876
  echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
 
10877
echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
 
10878
if test "${ac_cv_lib_jpeg_main+set}" = set; then
 
10879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10880
else
 
10881
  ac_check_lib_save_LIBS=$LIBS
 
10882
LIBS="-ljpeg  $LIBS"
 
10883
cat >conftest.$ac_ext <<_ACEOF
 
10884
#line $LINENO "configure"
 
10885
#include "confdefs.h"
 
10886
 
 
10887
#ifdef F77_DUMMY_MAIN
 
10888
#  ifdef __cplusplus
 
10889
     extern "C"
 
10890
#  endif
 
10891
   int F77_DUMMY_MAIN() { return 1; }
 
10892
#endif
 
10893
int
 
10894
main ()
 
10895
{
 
10896
main ();
 
10897
  ;
 
10898
  return 0;
 
10899
}
 
10900
_ACEOF
 
10901
rm -f conftest.$ac_objext conftest$ac_exeext
 
10902
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10903
  (eval $ac_link) 2>&5
 
10904
  ac_status=$?
 
10905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10906
  (exit $ac_status); } &&
 
10907
         { ac_try='test -s conftest$ac_exeext'
 
10908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10909
  (eval $ac_try) 2>&5
 
10910
  ac_status=$?
 
10911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10912
  (exit $ac_status); }; }; then
 
10913
  ac_cv_lib_jpeg_main=yes
 
10914
else
 
10915
  echo "$as_me: failed program was:" >&5
 
10916
cat conftest.$ac_ext >&5
 
10917
ac_cv_lib_jpeg_main=no
 
10918
fi
 
10919
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10920
LIBS=$ac_check_lib_save_LIBS
 
10921
fi
 
10922
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
 
10923
echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
 
10924
if test $ac_cv_lib_jpeg_main = yes; then
 
10925
  JPEG_LIBS="$JPEG_LIBS -ljpeg"
 
10926
 
 
10927
cat >>confdefs.h <<_ACEOF
 
10928
#define HAVE_LIBJPEG 1
 
10929
_ACEOF
 
10930
 
 
10931
else
 
10932
  { echo "$as_me:$LINENO: WARNING: Optional jpeg library not available" >&5
 
10933
echo "$as_me: WARNING: Optional jpeg library not available" >&2;}
 
10934
fi
 
10935
 
 
10936
else
 
10937
  { echo "$as_me:$LINENO: WARNING: Optional jpeg library not available - no jpeglib.h" >&5
 
10938
echo "$as_me: WARNING: Optional jpeg library not available - no jpeglib.h" >&2;}
 
10939
fi
 
10940
 
 
10941
LDFLAGS=$save_LDFLAGS
 
10942
CPPFLAGS=$save_CPPFLAGS
 
10943
 
 
10944
save_CPPFLAGS=$CPPFLAGS
 
10945
save_LDFLAGS=$LDFLAGS
 
10946
 
 
10947
# Check whether --with-Xawincludedir or --without-Xawincludedir was given.
 
10948
if test "${with_Xawincludedir+set}" = set; then
 
10949
  withval="$with_Xawincludedir"
 
10950
  XAW_INCLUDES="-I$withval"
 
10951
        CPPFLAGS="$CPPFLAGS -I$withval"
 
10952
fi;
 
10953
 
 
10954
# Check whether --with-Xawlibdir or --without-Xawlibdir was given.
 
10955
if test "${with_Xawlibdir+set}" = set; then
 
10956
  withval="$with_Xawlibdir"
 
10957
  XAW_LIBS="-L$withval"
 
10958
        LDFLAGS="$LDFLAGS -L$withval"
 
10959
fi;
 
10960
#On i386-pc-sysv, Xaw exists but the linker doesn't resolve
 
10961
#sub-dependencies.  Give them all and hope this doesn't break
 
10962
#on other systems.
 
10963
LDFLAGS="$LDFLAGS $X_LIBS"
 
10964
if test "${ac_cv_header_X11_Xaw_XawInit_h+set}" = set; then
 
10965
  echo "$as_me:$LINENO: checking for X11/Xaw/XawInit.h" >&5
 
10966
echo $ECHO_N "checking for X11/Xaw/XawInit.h... $ECHO_C" >&6
 
10967
if test "${ac_cv_header_X11_Xaw_XawInit_h+set}" = set; then
 
10968
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10969
fi
 
10970
echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_XawInit_h" >&5
 
10971
echo "${ECHO_T}$ac_cv_header_X11_Xaw_XawInit_h" >&6
 
10972
else
 
10973
  # Is the header compilable?
 
10974
echo "$as_me:$LINENO: checking X11/Xaw/XawInit.h usability" >&5
 
10975
echo $ECHO_N "checking X11/Xaw/XawInit.h usability... $ECHO_C" >&6
 
10976
cat >conftest.$ac_ext <<_ACEOF
 
10977
#line $LINENO "configure"
 
10978
#include "confdefs.h"
 
10979
$ac_includes_default
 
10980
#include <X11/Xaw/XawInit.h>
 
10981
_ACEOF
 
10982
rm -f conftest.$ac_objext
 
10983
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10984
  (eval $ac_compile) 2>&5
 
10985
  ac_status=$?
 
10986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10987
  (exit $ac_status); } &&
 
10988
         { ac_try='test -s conftest.$ac_objext'
 
10989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10990
  (eval $ac_try) 2>&5
 
10991
  ac_status=$?
 
10992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10993
  (exit $ac_status); }; }; then
 
10994
  ac_header_compiler=yes
 
10995
else
 
10996
  echo "$as_me: failed program was:" >&5
 
10997
cat conftest.$ac_ext >&5
 
10998
ac_header_compiler=no
 
10999
fi
 
11000
rm -f conftest.$ac_objext conftest.$ac_ext
 
11001
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11002
echo "${ECHO_T}$ac_header_compiler" >&6
 
11003
 
 
11004
# Is the header present?
 
11005
echo "$as_me:$LINENO: checking X11/Xaw/XawInit.h presence" >&5
 
11006
echo $ECHO_N "checking X11/Xaw/XawInit.h presence... $ECHO_C" >&6
 
11007
cat >conftest.$ac_ext <<_ACEOF
 
11008
#line $LINENO "configure"
 
11009
#include "confdefs.h"
 
11010
#include <X11/Xaw/XawInit.h>
 
11011
_ACEOF
 
11012
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11013
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11014
  ac_status=$?
 
11015
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
11016
  rm -f conftest.er1
 
11017
  cat conftest.err >&5
 
11018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11019
  (exit $ac_status); } >/dev/null; then
 
11020
  if test -s conftest.err; then
 
11021
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11022
  else
 
11023
    ac_cpp_err=
 
11024
  fi
 
11025
else
 
11026
  ac_cpp_err=yes
 
11027
fi
 
11028
if test -z "$ac_cpp_err"; then
 
11029
  ac_header_preproc=yes
 
11030
else
 
11031
  echo "$as_me: failed program was:" >&5
 
11032
  cat conftest.$ac_ext >&5
 
11033
  ac_header_preproc=no
 
11034
fi
 
11035
rm -f conftest.err conftest.$ac_ext
 
11036
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11037
echo "${ECHO_T}$ac_header_preproc" >&6
 
11038
 
 
11039
# So?  What about this header?
 
11040
case $ac_header_compiler:$ac_header_preproc in
 
11041
  yes:no )
 
11042
    { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
11043
echo "$as_me: WARNING: X11/Xaw/XawInit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11044
    { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: proceeding with the preprocessor's result" >&5
 
11045
echo "$as_me: WARNING: X11/Xaw/XawInit.h: proceeding with the preprocessor's result" >&2;};;
 
11046
  no:yes )
 
11047
    { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: present but cannot be compiled." >&5
 
11048
echo "$as_me: WARNING: X11/Xaw/XawInit.h: present but cannot be compiled." >&2;}
 
11049
    { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: check for missing prerequisite headers?" >&5
 
11050
echo "$as_me: WARNING: X11/Xaw/XawInit.h: check for missing prerequisite headers?" >&2;}
 
11051
    { echo "$as_me:$LINENO: WARNING: X11/Xaw/XawInit.h: proceeding with the preprocessor's result" >&5
 
11052
echo "$as_me: WARNING: X11/Xaw/XawInit.h: proceeding with the preprocessor's result" >&2;};;
 
11053
esac
 
11054
echo "$as_me:$LINENO: checking for X11/Xaw/XawInit.h" >&5
 
11055
echo $ECHO_N "checking for X11/Xaw/XawInit.h... $ECHO_C" >&6
 
11056
if test "${ac_cv_header_X11_Xaw_XawInit_h+set}" = set; then
 
11057
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11058
else
 
11059
  ac_cv_header_X11_Xaw_XawInit_h=$ac_header_preproc
 
11060
fi
 
11061
echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw_XawInit_h" >&5
 
11062
echo "${ECHO_T}$ac_cv_header_X11_Xaw_XawInit_h" >&6
 
11063
 
 
11064
fi
 
11065
if test $ac_cv_header_X11_Xaw_XawInit_h = yes; then
 
11066
  echo "$as_me:$LINENO: checking for main in -lXaw" >&5
 
11067
echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6
 
11068
if test "${ac_cv_lib_Xaw_main+set}" = set; then
 
11069
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11070
else
 
11071
  ac_check_lib_save_LIBS=$LIBS
 
11072
LIBS="-lXaw -lXmu -lXt -lX11 -lXext -lnsl $LIBS"
 
11073
cat >conftest.$ac_ext <<_ACEOF
 
11074
#line $LINENO "configure"
 
11075
#include "confdefs.h"
 
11076
 
 
11077
#ifdef F77_DUMMY_MAIN
 
11078
#  ifdef __cplusplus
 
11079
     extern "C"
 
11080
#  endif
 
11081
   int F77_DUMMY_MAIN() { return 1; }
 
11082
#endif
 
11083
int
 
11084
main ()
 
11085
{
 
11086
main ();
 
11087
  ;
 
11088
  return 0;
 
11089
}
 
11090
_ACEOF
 
11091
rm -f conftest.$ac_objext conftest$ac_exeext
 
11092
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11093
  (eval $ac_link) 2>&5
 
11094
  ac_status=$?
 
11095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11096
  (exit $ac_status); } &&
 
11097
         { ac_try='test -s conftest$ac_exeext'
 
11098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11099
  (eval $ac_try) 2>&5
 
11100
  ac_status=$?
 
11101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11102
  (exit $ac_status); }; }; then
 
11103
  ac_cv_lib_Xaw_main=yes
 
11104
else
 
11105
  echo "$as_me: failed program was:" >&5
 
11106
cat conftest.$ac_ext >&5
 
11107
ac_cv_lib_Xaw_main=no
 
11108
fi
 
11109
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11110
LIBS=$ac_check_lib_save_LIBS
 
11111
fi
 
11112
echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5
 
11113
echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6
 
11114
if test $ac_cv_lib_Xaw_main = yes; then
 
11115
  XAW_LIBS="$XAW_LIBS -lXaw"
 
11116
 
 
11117
cat >>confdefs.h <<_ACEOF
 
11118
#define HAVE_LIBXAW 1
 
11119
_ACEOF
 
11120
 
 
11121
else
 
11122
  { echo "$as_me:$LINENO: WARNING: Optional Xaw library not available" >&5
 
11123
echo "$as_me: WARNING: Optional Xaw library not available" >&2;}
 
11124
fi
 
11125
 
 
11126
else
 
11127
  { echo "$as_me:$LINENO: WARNING: Optional Xaw library not available - no X11/Xaw/XawInit.h" >&5
 
11128
echo "$as_me: WARNING: Optional Xaw library not available - no X11/Xaw/XawInit.h" >&2;}
 
11129
fi
 
11130
 
 
11131
LDFLAGS=$save_LDFLAGS
 
11132
CPPFLAGS=$save_CPPFLAGS
 
11133
 
 
11134
# -----------------------------------
 
11135
 
 
11136
# Checks for library functions
 
11137
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
11138
# for constant arguments.  Useless!
 
11139
echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
11140
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
11141
if test "${ac_cv_working_alloca_h+set}" = set; then
 
11142
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11143
else
 
11144
  cat >conftest.$ac_ext <<_ACEOF
 
11145
#line $LINENO "configure"
 
11146
#include "confdefs.h"
 
11147
#include <alloca.h>
 
11148
#ifdef F77_DUMMY_MAIN
 
11149
#  ifdef __cplusplus
 
11150
     extern "C"
 
11151
#  endif
 
11152
   int F77_DUMMY_MAIN() { return 1; }
 
11153
#endif
 
11154
int
 
11155
main ()
 
11156
{
 
11157
char *p = (char *) alloca (2 * sizeof (int));
 
11158
  ;
 
11159
  return 0;
 
11160
}
 
11161
_ACEOF
 
11162
rm -f conftest.$ac_objext conftest$ac_exeext
 
11163
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11164
  (eval $ac_link) 2>&5
 
11165
  ac_status=$?
 
11166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11167
  (exit $ac_status); } &&
 
11168
         { ac_try='test -s conftest$ac_exeext'
 
11169
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11170
  (eval $ac_try) 2>&5
 
11171
  ac_status=$?
 
11172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11173
  (exit $ac_status); }; }; then
 
11174
  ac_cv_working_alloca_h=yes
 
11175
else
 
11176
  echo "$as_me: failed program was:" >&5
 
11177
cat conftest.$ac_ext >&5
 
11178
ac_cv_working_alloca_h=no
 
11179
fi
 
11180
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11181
fi
 
11182
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
11183
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
11184
if test $ac_cv_working_alloca_h = yes; then
 
11185
 
 
11186
cat >>confdefs.h <<\_ACEOF
 
11187
#define HAVE_ALLOCA_H 1
 
11188
_ACEOF
 
11189
 
 
11190
fi
 
11191
 
 
11192
echo "$as_me:$LINENO: checking for alloca" >&5
 
11193
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
11194
if test "${ac_cv_func_alloca_works+set}" = set; then
 
11195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11196
else
 
11197
  cat >conftest.$ac_ext <<_ACEOF
 
11198
#line $LINENO "configure"
 
11199
#include "confdefs.h"
 
11200
#ifdef __GNUC__
 
11201
# define alloca __builtin_alloca
 
11202
#else
 
11203
# ifdef _MSC_VER
 
11204
#  include <malloc.h>
 
11205
#  define alloca _alloca
 
11206
# else
 
11207
#  if HAVE_ALLOCA_H
 
11208
#   include <alloca.h>
 
11209
#  else
 
11210
#   ifdef _AIX
 
11211
 #pragma alloca
 
11212
#   else
 
11213
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
11214
char *alloca ();
 
11215
#    endif
 
11216
#   endif
 
11217
#  endif
 
11218
# endif
 
11219
#endif
 
11220
 
 
11221
#ifdef F77_DUMMY_MAIN
 
11222
#  ifdef __cplusplus
 
11223
     extern "C"
 
11224
#  endif
 
11225
   int F77_DUMMY_MAIN() { return 1; }
 
11226
#endif
 
11227
int
 
11228
main ()
 
11229
{
 
11230
char *p = (char *) alloca (1);
 
11231
  ;
 
11232
  return 0;
 
11233
}
 
11234
_ACEOF
 
11235
rm -f conftest.$ac_objext conftest$ac_exeext
 
11236
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11237
  (eval $ac_link) 2>&5
 
11238
  ac_status=$?
 
11239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11240
  (exit $ac_status); } &&
 
11241
         { ac_try='test -s conftest$ac_exeext'
 
11242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11243
  (eval $ac_try) 2>&5
 
11244
  ac_status=$?
 
11245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11246
  (exit $ac_status); }; }; then
 
11247
  ac_cv_func_alloca_works=yes
 
11248
else
 
11249
  echo "$as_me: failed program was:" >&5
 
11250
cat conftest.$ac_ext >&5
 
11251
ac_cv_func_alloca_works=no
 
11252
fi
 
11253
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11254
fi
 
11255
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
11256
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
11257
 
 
11258
if test $ac_cv_func_alloca_works = yes; then
 
11259
 
 
11260
cat >>confdefs.h <<\_ACEOF
 
11261
#define HAVE_ALLOCA 1
 
11262
_ACEOF
 
11263
 
 
11264
else
 
11265
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
11266
# that cause trouble.  Some versions do not even contain alloca or
 
11267
# contain a buggy version.  If you still want to use their alloca,
 
11268
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
11269
 
 
11270
ALLOCA=alloca.$ac_objext
 
11271
 
 
11272
cat >>confdefs.h <<\_ACEOF
 
11273
#define C_ALLOCA 1
 
11274
_ACEOF
 
11275
 
 
11276
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
11277
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
 
11278
if test "${ac_cv_os_cray+set}" = set; then
 
11279
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11280
else
 
11281
  cat >conftest.$ac_ext <<_ACEOF
 
11282
#line $LINENO "configure"
 
11283
#include "confdefs.h"
 
11284
#if defined(CRAY) && ! defined(CRAY2)
 
11285
webecray
 
11286
#else
 
11287
wenotbecray
 
11288
#endif
 
11289
 
 
11290
_ACEOF
 
11291
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11292
  egrep "webecray" >/dev/null 2>&1; then
 
11293
  ac_cv_os_cray=yes
 
11294
else
 
11295
  ac_cv_os_cray=no
 
11296
fi
 
11297
rm -f conftest*
 
11298
 
 
11299
fi
 
11300
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
11301
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
11302
if test $ac_cv_os_cray = yes; then
 
11303
  for ac_func in _getb67 GETB67 getb67; do
 
11304
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11305
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11306
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11307
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11309
else
 
11310
  cat >conftest.$ac_ext <<_ACEOF
 
11311
#line $LINENO "configure"
 
11312
#include "confdefs.h"
 
11313
/* System header to define __stub macros and hopefully few prototypes,
 
11314
    which can conflict with char $ac_func (); below.  */
 
11315
#include <assert.h>
 
11316
/* Override any gcc2 internal prototype to avoid an error.  */
 
11317
#ifdef __cplusplus
 
11318
extern "C"
 
11319
#endif
 
11320
/* We use char because int might match the return type of a gcc2
 
11321
   builtin and then its argument prototype would still apply.  */
 
11322
char $ac_func ();
 
11323
char (*f) ();
 
11324
 
 
11325
#ifdef F77_DUMMY_MAIN
 
11326
#  ifdef __cplusplus
 
11327
     extern "C"
 
11328
#  endif
 
11329
   int F77_DUMMY_MAIN() { return 1; }
 
11330
#endif
 
11331
int
 
11332
main ()
 
11333
{
 
11334
/* The GNU C library defines this for functions which it implements
 
11335
    to always fail with ENOSYS.  Some functions are actually named
 
11336
    something starting with __ and the normal name is an alias.  */
 
11337
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11338
choke me
 
11339
#else
 
11340
f = $ac_func;
 
11341
#endif
 
11342
 
 
11343
  ;
 
11344
  return 0;
 
11345
}
 
11346
_ACEOF
 
11347
rm -f conftest.$ac_objext conftest$ac_exeext
 
11348
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11349
  (eval $ac_link) 2>&5
 
11350
  ac_status=$?
 
11351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11352
  (exit $ac_status); } &&
 
11353
         { ac_try='test -s conftest$ac_exeext'
 
11354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11355
  (eval $ac_try) 2>&5
 
11356
  ac_status=$?
 
11357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11358
  (exit $ac_status); }; }; then
 
11359
  eval "$as_ac_var=yes"
 
11360
else
 
11361
  echo "$as_me: failed program was:" >&5
 
11362
cat conftest.$ac_ext >&5
 
11363
eval "$as_ac_var=no"
 
11364
fi
 
11365
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11366
fi
 
11367
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11368
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11369
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11370
 
 
11371
cat >>confdefs.h <<_ACEOF
 
11372
#define CRAY_STACKSEG_END $ac_func
 
11373
_ACEOF
 
11374
 
 
11375
    break
 
11376
fi
 
11377
 
 
11378
  done
 
11379
fi
 
11380
 
 
11381
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
11382
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
11383
if test "${ac_cv_c_stack_direction+set}" = set; then
 
11384
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11385
else
 
11386
  if test "$cross_compiling" = yes; then
 
11387
  ac_cv_c_stack_direction=0
 
11388
else
 
11389
  cat >conftest.$ac_ext <<_ACEOF
 
11390
#line $LINENO "configure"
 
11391
#include "confdefs.h"
 
11392
int
 
11393
find_stack_direction ()
 
11394
{
 
11395
  static char *addr = 0;
 
11396
  auto char dummy;
 
11397
  if (addr == 0)
 
11398
    {
 
11399
      addr = &dummy;
 
11400
      return find_stack_direction ();
 
11401
    }
 
11402
  else
 
11403
    return (&dummy > addr) ? 1 : -1;
 
11404
}
 
11405
 
 
11406
int
 
11407
main ()
 
11408
{
 
11409
  exit (find_stack_direction () < 0);
 
11410
}
 
11411
_ACEOF
 
11412
rm -f conftest$ac_exeext
 
11413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11414
  (eval $ac_link) 2>&5
 
11415
  ac_status=$?
 
11416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11417
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11419
  (eval $ac_try) 2>&5
 
11420
  ac_status=$?
 
11421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11422
  (exit $ac_status); }; }; then
 
11423
  ac_cv_c_stack_direction=1
 
11424
else
 
11425
  echo "$as_me: program exited with status $ac_status" >&5
 
11426
echo "$as_me: failed program was:" >&5
 
11427
cat conftest.$ac_ext >&5
 
11428
( exit $ac_status )
 
11429
ac_cv_c_stack_direction=-1
 
11430
fi
 
11431
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11432
fi
 
11433
fi
 
11434
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
11435
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
11436
 
 
11437
cat >>confdefs.h <<_ACEOF
 
11438
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
11439
_ACEOF
 
11440
 
 
11441
fi
 
11442
 
 
11443
for ac_func in drand48 srand48 setmode setenv _sysconf getrusage strerror strcasecmp strncasecmp cbrt lsqrt sincos vsnprintf
 
11444
do
 
11445
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11446
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11447
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11448
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11449
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11450
else
 
11451
  cat >conftest.$ac_ext <<_ACEOF
 
11452
#line $LINENO "configure"
 
11453
#include "confdefs.h"
 
11454
/* System header to define __stub macros and hopefully few prototypes,
 
11455
    which can conflict with char $ac_func (); below.  */
 
11456
#include <assert.h>
 
11457
/* Override any gcc2 internal prototype to avoid an error.  */
 
11458
#ifdef __cplusplus
 
11459
extern "C"
 
11460
#endif
 
11461
/* We use char because int might match the return type of a gcc2
 
11462
   builtin and then its argument prototype would still apply.  */
 
11463
char $ac_func ();
 
11464
char (*f) ();
 
11465
 
 
11466
#ifdef F77_DUMMY_MAIN
 
11467
#  ifdef __cplusplus
 
11468
     extern "C"
 
11469
#  endif
 
11470
   int F77_DUMMY_MAIN() { return 1; }
 
11471
#endif
 
11472
int
 
11473
main ()
 
11474
{
 
11475
/* The GNU C library defines this for functions which it implements
 
11476
    to always fail with ENOSYS.  Some functions are actually named
 
11477
    something starting with __ and the normal name is an alias.  */
 
11478
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11479
choke me
 
11480
#else
 
11481
f = $ac_func;
 
11482
#endif
 
11483
 
 
11484
  ;
 
11485
  return 0;
 
11486
}
 
11487
_ACEOF
 
11488
rm -f conftest.$ac_objext conftest$ac_exeext
 
11489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11490
  (eval $ac_link) 2>&5
 
11491
  ac_status=$?
 
11492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11493
  (exit $ac_status); } &&
 
11494
         { ac_try='test -s conftest$ac_exeext'
 
11495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11496
  (eval $ac_try) 2>&5
 
11497
  ac_status=$?
 
11498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11499
  (exit $ac_status); }; }; then
 
11500
  eval "$as_ac_var=yes"
 
11501
else
 
11502
  echo "$as_me: failed program was:" >&5
 
11503
cat conftest.$ac_ext >&5
 
11504
eval "$as_ac_var=no"
 
11505
fi
 
11506
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11507
fi
 
11508
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11509
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11510
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11511
  cat >>confdefs.h <<_ACEOF
 
11512
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11513
_ACEOF
 
11514
 
 
11515
fi
 
11516
done
 
11517
 
 
11518
for ac_func in strtoll
 
11519
do
 
11520
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11521
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11522
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11523
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11525
else
 
11526
  cat >conftest.$ac_ext <<_ACEOF
 
11527
#line $LINENO "configure"
 
11528
#include "confdefs.h"
 
11529
/* System header to define __stub macros and hopefully few prototypes,
 
11530
    which can conflict with char $ac_func (); below.  */
 
11531
#include <assert.h>
 
11532
/* Override any gcc2 internal prototype to avoid an error.  */
 
11533
#ifdef __cplusplus
 
11534
extern "C"
 
11535
#endif
 
11536
/* We use char because int might match the return type of a gcc2
 
11537
   builtin and then its argument prototype would still apply.  */
 
11538
char $ac_func ();
 
11539
char (*f) ();
 
11540
 
 
11541
#ifdef F77_DUMMY_MAIN
 
11542
#  ifdef __cplusplus
 
11543
     extern "C"
 
11544
#  endif
 
11545
   int F77_DUMMY_MAIN() { return 1; }
 
11546
#endif
 
11547
int
 
11548
main ()
 
11549
{
 
11550
/* The GNU C library defines this for functions which it implements
 
11551
    to always fail with ENOSYS.  Some functions are actually named
 
11552
    something starting with __ and the normal name is an alias.  */
 
11553
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11554
choke me
 
11555
#else
 
11556
f = $ac_func;
 
11557
#endif
 
11558
 
 
11559
  ;
 
11560
  return 0;
 
11561
}
 
11562
_ACEOF
 
11563
rm -f conftest.$ac_objext conftest$ac_exeext
 
11564
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11565
  (eval $ac_link) 2>&5
 
11566
  ac_status=$?
 
11567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11568
  (exit $ac_status); } &&
 
11569
         { ac_try='test -s conftest$ac_exeext'
 
11570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11571
  (eval $ac_try) 2>&5
 
11572
  ac_status=$?
 
11573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11574
  (exit $ac_status); }; }; then
 
11575
  eval "$as_ac_var=yes"
 
11576
else
 
11577
  echo "$as_me: failed program was:" >&5
 
11578
cat conftest.$ac_ext >&5
 
11579
eval "$as_ac_var=no"
 
11580
fi
 
11581
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11582
fi
 
11583
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11584
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11585
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11586
  cat >>confdefs.h <<_ACEOF
 
11587
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11588
_ACEOF
 
11589
 STRTOLL=""
 
11590
else
 
11591
  STRTOLL="-Dstrtoll=strtol"
 
11592
fi
 
11593
done
 
11594
 
 
11595
for ac_func in strtoull
 
11596
do
 
11597
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11598
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11599
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11600
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11601
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11602
else
 
11603
  cat >conftest.$ac_ext <<_ACEOF
 
11604
#line $LINENO "configure"
 
11605
#include "confdefs.h"
 
11606
/* System header to define __stub macros and hopefully few prototypes,
 
11607
    which can conflict with char $ac_func (); below.  */
 
11608
#include <assert.h>
 
11609
/* Override any gcc2 internal prototype to avoid an error.  */
 
11610
#ifdef __cplusplus
 
11611
extern "C"
 
11612
#endif
 
11613
/* We use char because int might match the return type of a gcc2
 
11614
   builtin and then its argument prototype would still apply.  */
 
11615
char $ac_func ();
 
11616
char (*f) ();
 
11617
 
 
11618
#ifdef F77_DUMMY_MAIN
 
11619
#  ifdef __cplusplus
 
11620
     extern "C"
 
11621
#  endif
 
11622
   int F77_DUMMY_MAIN() { return 1; }
 
11623
#endif
 
11624
int
 
11625
main ()
 
11626
{
 
11627
/* The GNU C library defines this for functions which it implements
 
11628
    to always fail with ENOSYS.  Some functions are actually named
 
11629
    something starting with __ and the normal name is an alias.  */
 
11630
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11631
choke me
 
11632
#else
 
11633
f = $ac_func;
 
11634
#endif
 
11635
 
 
11636
  ;
 
11637
  return 0;
 
11638
}
 
11639
_ACEOF
 
11640
rm -f conftest.$ac_objext conftest$ac_exeext
 
11641
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11642
  (eval $ac_link) 2>&5
 
11643
  ac_status=$?
 
11644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11645
  (exit $ac_status); } &&
 
11646
         { ac_try='test -s conftest$ac_exeext'
 
11647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11648
  (eval $ac_try) 2>&5
 
11649
  ac_status=$?
 
11650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11651
  (exit $ac_status); }; }; then
 
11652
  eval "$as_ac_var=yes"
 
11653
else
 
11654
  echo "$as_me: failed program was:" >&5
 
11655
cat conftest.$ac_ext >&5
 
11656
eval "$as_ac_var=no"
 
11657
fi
 
11658
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11659
fi
 
11660
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11661
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11662
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11663
  cat >>confdefs.h <<_ACEOF
 
11664
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11665
_ACEOF
 
11666
 STRTOULL=""
 
11667
else
 
11668
  STRTOULL="-Dstrtoull=\"(unsigned long)strtol\""
 
11669
fi
 
11670
done
 
11671
 
 
11672
# Check for st_blksize in struct stat
 
11673
# AC_ST_BLKSIZE
 
11674
 
 
11675
# Internationalization macros
 
11676
# AM_GNU_GETTEXT
 
11677
 
 
11678
# Checks for header files
 
11679
# AC_STDC_HEADERS
 
11680
# AC_HAVE_HEADERS(string.h)
 
11681
 
 
11682
for ac_header in values.h termios.h errno.h sys/time.h unistd.h
 
11683
do
 
11684
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11685
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11686
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11687
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11688
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11690
fi
 
11691
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11692
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11693
else
 
11694
  # Is the header compilable?
 
11695
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11696
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11697
cat >conftest.$ac_ext <<_ACEOF
 
11698
#line $LINENO "configure"
 
11699
#include "confdefs.h"
 
11700
$ac_includes_default
 
11701
#include <$ac_header>
 
11702
_ACEOF
 
11703
rm -f conftest.$ac_objext
 
11704
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11705
  (eval $ac_compile) 2>&5
 
11706
  ac_status=$?
 
11707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11708
  (exit $ac_status); } &&
 
11709
         { ac_try='test -s conftest.$ac_objext'
 
11710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11711
  (eval $ac_try) 2>&5
 
11712
  ac_status=$?
 
11713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11714
  (exit $ac_status); }; }; then
 
11715
  ac_header_compiler=yes
 
11716
else
 
11717
  echo "$as_me: failed program was:" >&5
 
11718
cat conftest.$ac_ext >&5
 
11719
ac_header_compiler=no
 
11720
fi
 
11721
rm -f conftest.$ac_objext conftest.$ac_ext
 
11722
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11723
echo "${ECHO_T}$ac_header_compiler" >&6
 
11724
 
 
11725
# Is the header present?
 
11726
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11727
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11728
cat >conftest.$ac_ext <<_ACEOF
 
11729
#line $LINENO "configure"
 
11730
#include "confdefs.h"
 
11731
#include <$ac_header>
 
11732
_ACEOF
 
11733
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11734
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11735
  ac_status=$?
 
11736
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
11737
  rm -f conftest.er1
 
11738
  cat conftest.err >&5
 
11739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11740
  (exit $ac_status); } >/dev/null; then
 
11741
  if test -s conftest.err; then
 
11742
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11743
  else
 
11744
    ac_cpp_err=
 
11745
  fi
 
11746
else
 
11747
  ac_cpp_err=yes
 
11748
fi
 
11749
if test -z "$ac_cpp_err"; then
 
11750
  ac_header_preproc=yes
 
11751
else
 
11752
  echo "$as_me: failed program was:" >&5
 
11753
  cat conftest.$ac_ext >&5
 
11754
  ac_header_preproc=no
 
11755
fi
 
11756
rm -f conftest.err conftest.$ac_ext
 
11757
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11758
echo "${ECHO_T}$ac_header_preproc" >&6
 
11759
 
 
11760
# So?  What about this header?
 
11761
case $ac_header_compiler:$ac_header_preproc in
 
11762
  yes:no )
 
11763
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11764
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11765
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11766
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
11767
  no:yes )
 
11768
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
 
11769
echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
 
11770
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
11771
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
11772
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11773
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
11774
esac
 
11775
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11776
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11777
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11779
else
 
11780
  eval "$as_ac_Header=$ac_header_preproc"
 
11781
fi
 
11782
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11783
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11784
 
 
11785
fi
 
11786
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11787
  cat >>confdefs.h <<_ACEOF
 
11788
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11789
_ACEOF
 
11790
 
 
11791
fi
 
11792
 
 
11793
done
 
11794
 
 
11795
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
11796
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
11797
if test "${ac_cv_header_time+set}" = set; then
 
11798
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11799
else
 
11800
  cat >conftest.$ac_ext <<_ACEOF
 
11801
#line $LINENO "configure"
 
11802
#include "confdefs.h"
 
11803
#include <sys/types.h>
 
11804
#include <sys/time.h>
 
11805
#include <time.h>
 
11806
 
 
11807
#ifdef F77_DUMMY_MAIN
 
11808
#  ifdef __cplusplus
 
11809
     extern "C"
 
11810
#  endif
 
11811
   int F77_DUMMY_MAIN() { return 1; }
 
11812
#endif
 
11813
int
 
11814
main ()
 
11815
{
 
11816
if ((struct tm *) 0)
 
11817
return 0;
 
11818
  ;
 
11819
  return 0;
 
11820
}
 
11821
_ACEOF
 
11822
rm -f conftest.$ac_objext
 
11823
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11824
  (eval $ac_compile) 2>&5
 
11825
  ac_status=$?
 
11826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11827
  (exit $ac_status); } &&
 
11828
         { ac_try='test -s conftest.$ac_objext'
 
11829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11830
  (eval $ac_try) 2>&5
 
11831
  ac_status=$?
 
11832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11833
  (exit $ac_status); }; }; then
 
11834
  ac_cv_header_time=yes
 
11835
else
 
11836
  echo "$as_me: failed program was:" >&5
 
11837
cat conftest.$ac_ext >&5
 
11838
ac_cv_header_time=no
 
11839
fi
 
11840
rm -f conftest.$ac_objext conftest.$ac_ext
 
11841
fi
 
11842
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
11843
echo "${ECHO_T}$ac_cv_header_time" >&6
 
11844
if test $ac_cv_header_time = yes; then
 
11845
 
 
11846
cat >>confdefs.h <<\_ACEOF
 
11847
#define TIME_WITH_SYS_TIME 1
 
11848
_ACEOF
 
11849
 
 
11850
fi
 
11851
 
 
11852
ac_header_dirent=no
 
11853
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
11854
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
11855
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
11856
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
 
11857
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11859
else
 
11860
  cat >conftest.$ac_ext <<_ACEOF
 
11861
#line $LINENO "configure"
 
11862
#include "confdefs.h"
 
11863
#include <sys/types.h>
 
11864
#include <$ac_hdr>
 
11865
 
 
11866
#ifdef F77_DUMMY_MAIN
 
11867
#  ifdef __cplusplus
 
11868
     extern "C"
 
11869
#  endif
 
11870
   int F77_DUMMY_MAIN() { return 1; }
 
11871
#endif
 
11872
int
 
11873
main ()
 
11874
{
 
11875
if ((DIR *) 0)
 
11876
return 0;
 
11877
  ;
 
11878
  return 0;
 
11879
}
 
11880
_ACEOF
 
11881
rm -f conftest.$ac_objext
 
11882
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11883
  (eval $ac_compile) 2>&5
 
11884
  ac_status=$?
 
11885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11886
  (exit $ac_status); } &&
 
11887
         { ac_try='test -s conftest.$ac_objext'
 
11888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11889
  (eval $ac_try) 2>&5
 
11890
  ac_status=$?
 
11891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11892
  (exit $ac_status); }; }; then
 
11893
  eval "$as_ac_Header=yes"
 
11894
else
 
11895
  echo "$as_me: failed program was:" >&5
 
11896
cat conftest.$ac_ext >&5
 
11897
eval "$as_ac_Header=no"
 
11898
fi
 
11899
rm -f conftest.$ac_objext conftest.$ac_ext
 
11900
fi
 
11901
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11902
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11903
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11904
  cat >>confdefs.h <<_ACEOF
 
11905
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
11906
_ACEOF
 
11907
 
 
11908
ac_header_dirent=$ac_hdr; break
 
11909
fi
 
11910
 
 
11911
done
 
11912
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
11913
if test $ac_header_dirent = dirent.h; then
 
11914
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
11915
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
11916
if test "${ac_cv_search_opendir+set}" = set; then
 
11917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11918
else
 
11919
  ac_func_search_save_LIBS=$LIBS
 
11920
ac_cv_search_opendir=no
 
11921
cat >conftest.$ac_ext <<_ACEOF
 
11922
#line $LINENO "configure"
 
11923
#include "confdefs.h"
 
11924
 
 
11925
/* Override any gcc2 internal prototype to avoid an error.  */
 
11926
#ifdef __cplusplus
 
11927
extern "C"
 
11928
#endif
 
11929
/* We use char because int might match the return type of a gcc2
 
11930
   builtin and then its argument prototype would still apply.  */
 
11931
char opendir ();
 
11932
#ifdef F77_DUMMY_MAIN
 
11933
#  ifdef __cplusplus
 
11934
     extern "C"
 
11935
#  endif
 
11936
   int F77_DUMMY_MAIN() { return 1; }
 
11937
#endif
 
11938
int
 
11939
main ()
 
11940
{
 
11941
opendir ();
 
11942
  ;
 
11943
  return 0;
 
11944
}
 
11945
_ACEOF
 
11946
rm -f conftest.$ac_objext conftest$ac_exeext
 
11947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11948
  (eval $ac_link) 2>&5
 
11949
  ac_status=$?
 
11950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11951
  (exit $ac_status); } &&
 
11952
         { ac_try='test -s conftest$ac_exeext'
 
11953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11954
  (eval $ac_try) 2>&5
 
11955
  ac_status=$?
 
11956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11957
  (exit $ac_status); }; }; then
 
11958
  ac_cv_search_opendir="none required"
 
11959
else
 
11960
  echo "$as_me: failed program was:" >&5
 
11961
cat conftest.$ac_ext >&5
 
11962
fi
 
11963
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11964
if test "$ac_cv_search_opendir" = no; then
 
11965
  for ac_lib in dir; do
 
11966
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
11967
    cat >conftest.$ac_ext <<_ACEOF
 
11968
#line $LINENO "configure"
 
11969
#include "confdefs.h"
 
11970
 
 
11971
/* Override any gcc2 internal prototype to avoid an error.  */
 
11972
#ifdef __cplusplus
 
11973
extern "C"
 
11974
#endif
 
11975
/* We use char because int might match the return type of a gcc2
 
11976
   builtin and then its argument prototype would still apply.  */
 
11977
char opendir ();
 
11978
#ifdef F77_DUMMY_MAIN
 
11979
#  ifdef __cplusplus
 
11980
     extern "C"
 
11981
#  endif
 
11982
   int F77_DUMMY_MAIN() { return 1; }
 
11983
#endif
 
11984
int
 
11985
main ()
 
11986
{
 
11987
opendir ();
 
11988
  ;
 
11989
  return 0;
 
11990
}
 
11991
_ACEOF
 
11992
rm -f conftest.$ac_objext conftest$ac_exeext
 
11993
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11994
  (eval $ac_link) 2>&5
 
11995
  ac_status=$?
 
11996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11997
  (exit $ac_status); } &&
 
11998
         { ac_try='test -s conftest$ac_exeext'
 
11999
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12000
  (eval $ac_try) 2>&5
 
12001
  ac_status=$?
 
12002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12003
  (exit $ac_status); }; }; then
 
12004
  ac_cv_search_opendir="-l$ac_lib"
 
12005
break
 
12006
else
 
12007
  echo "$as_me: failed program was:" >&5
 
12008
cat conftest.$ac_ext >&5
 
12009
fi
 
12010
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12011
  done
 
12012
fi
 
12013
LIBS=$ac_func_search_save_LIBS
 
12014
fi
 
12015
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
12016
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
12017
if test "$ac_cv_search_opendir" != no; then
 
12018
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
12019
 
 
12020
fi
 
12021
 
 
12022
else
 
12023
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
12024
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
12025
if test "${ac_cv_search_opendir+set}" = set; then
 
12026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12027
else
 
12028
  ac_func_search_save_LIBS=$LIBS
 
12029
ac_cv_search_opendir=no
 
12030
cat >conftest.$ac_ext <<_ACEOF
 
12031
#line $LINENO "configure"
 
12032
#include "confdefs.h"
 
12033
 
 
12034
/* Override any gcc2 internal prototype to avoid an error.  */
 
12035
#ifdef __cplusplus
 
12036
extern "C"
 
12037
#endif
 
12038
/* We use char because int might match the return type of a gcc2
 
12039
   builtin and then its argument prototype would still apply.  */
 
12040
char opendir ();
 
12041
#ifdef F77_DUMMY_MAIN
 
12042
#  ifdef __cplusplus
 
12043
     extern "C"
 
12044
#  endif
 
12045
   int F77_DUMMY_MAIN() { return 1; }
 
12046
#endif
 
12047
int
 
12048
main ()
 
12049
{
 
12050
opendir ();
 
12051
  ;
 
12052
  return 0;
 
12053
}
 
12054
_ACEOF
 
12055
rm -f conftest.$ac_objext conftest$ac_exeext
 
12056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12057
  (eval $ac_link) 2>&5
 
12058
  ac_status=$?
 
12059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12060
  (exit $ac_status); } &&
 
12061
         { ac_try='test -s conftest$ac_exeext'
 
12062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12063
  (eval $ac_try) 2>&5
 
12064
  ac_status=$?
 
12065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12066
  (exit $ac_status); }; }; then
 
12067
  ac_cv_search_opendir="none required"
 
12068
else
 
12069
  echo "$as_me: failed program was:" >&5
 
12070
cat conftest.$ac_ext >&5
 
12071
fi
 
12072
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12073
if test "$ac_cv_search_opendir" = no; then
 
12074
  for ac_lib in x; do
 
12075
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
12076
    cat >conftest.$ac_ext <<_ACEOF
 
12077
#line $LINENO "configure"
 
12078
#include "confdefs.h"
 
12079
 
 
12080
/* Override any gcc2 internal prototype to avoid an error.  */
 
12081
#ifdef __cplusplus
 
12082
extern "C"
 
12083
#endif
 
12084
/* We use char because int might match the return type of a gcc2
 
12085
   builtin and then its argument prototype would still apply.  */
 
12086
char opendir ();
 
12087
#ifdef F77_DUMMY_MAIN
 
12088
#  ifdef __cplusplus
 
12089
     extern "C"
 
12090
#  endif
 
12091
   int F77_DUMMY_MAIN() { return 1; }
 
12092
#endif
 
12093
int
 
12094
main ()
 
12095
{
 
12096
opendir ();
 
12097
  ;
 
12098
  return 0;
 
12099
}
 
12100
_ACEOF
 
12101
rm -f conftest.$ac_objext conftest$ac_exeext
 
12102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12103
  (eval $ac_link) 2>&5
 
12104
  ac_status=$?
 
12105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12106
  (exit $ac_status); } &&
 
12107
         { ac_try='test -s conftest$ac_exeext'
 
12108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12109
  (eval $ac_try) 2>&5
 
12110
  ac_status=$?
 
12111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12112
  (exit $ac_status); }; }; then
 
12113
  ac_cv_search_opendir="-l$ac_lib"
 
12114
break
 
12115
else
 
12116
  echo "$as_me: failed program was:" >&5
 
12117
cat conftest.$ac_ext >&5
 
12118
fi
 
12119
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12120
  done
 
12121
fi
 
12122
LIBS=$ac_func_search_save_LIBS
 
12123
fi
 
12124
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
12125
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
12126
if test "$ac_cv_search_opendir" != no; then
 
12127
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
12128
 
 
12129
fi
 
12130
 
 
12131
fi
 
12132
 
 
12133
# -----------------------------------
 
12134
# tclInt.h
 
12135
if test -f "$TCL_SRC_DIR/generic/tclInt.h"; then
 
12136
TCLINT_INCLUDES="-I$TCL_SRC_DIR/generic"
 
12137
else
 
12138
if test -f "/usr/include/tclInt.h"; then
 
12139
TCLINT_INCLUDES="-I/usr/include"
 
12140
else
 
12141
if test -f "/usr/local/include/tclInt.h"; then
 
12142
TCLINT_INCLUDES="-I/usr/local/include"
 
12143
else
 
12144
TCLINT_INCLUDES="-I$TOP_DIR/tclstubs"
 
12145
fi
 
12146
fi
 
12147
fi
 
12148
 
 
12149
# -----------------------------------
 
12150
# tkInt.h
 
12151
if test -f "$TK_SRC_DIR/generic/tkInt.h"; then
 
12152
TKINT_INCLUDES="-I$TK_SRC_DIR/generic"
 
12153
else
 
12154
if test -f "/usr/include/tkInt.h"; then
 
12155
TKINT_INCLUDES="-I/usr/include"
 
12156
else
 
12157
if test -f "/usr/local/include/tkInt.h"; then
 
12158
TKINT_INCLUDES="-I/usr/local/include"
 
12159
else
 
12160
TKINT_INCLUDES="-I$TOP_DIR/tkstubs"
 
12161
fi
 
12162
fi
 
12163
fi
 
12164
 
 
12165
# -----------------------------------
 
12166
# Special checks
 
12167
 
 
12168
echo "$as_me:$LINENO: checking if FILE struct contains _cnt" >&5
 
12169
echo $ECHO_N "checking if FILE struct contains _cnt... $ECHO_C" >&6
 
12170
cat >conftest.$ac_ext <<_ACEOF
 
12171
#line $LINENO "configure"
 
12172
#include "confdefs.h"
 
12173
#include <stdio.h>
 
12174
 
 
12175
#ifdef F77_DUMMY_MAIN
 
12176
#  ifdef __cplusplus
 
12177
     extern "C"
 
12178
#  endif
 
12179
   int F77_DUMMY_MAIN() { return 1; }
 
12180
#endif
 
12181
int
 
12182
main ()
 
12183
{
 
12184
FILE *f;
 
12185
        int i;
 
12186
        i = f->_cnt;
 
12187
 
 
12188
  ;
 
12189
  return 0;
 
12190
}
 
12191
_ACEOF
 
12192
rm -f conftest.$ac_objext
 
12193
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12194
  (eval $ac_compile) 2>&5
 
12195
  ac_status=$?
 
12196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12197
  (exit $ac_status); } &&
 
12198
         { ac_try='test -s conftest.$ac_objext'
 
12199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12200
  (eval $ac_try) 2>&5
 
12201
  ac_status=$?
 
12202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12203
  (exit $ac_status); }; }; then
 
12204
  echo "$as_me:$LINENO: result: yes" >&5
 
12205
echo "${ECHO_T}yes" >&6
 
12206
        NO_CNT_IN_FILESTRUCT=""
 
12207
 
 
12208
else
 
12209
  echo "$as_me: failed program was:" >&5
 
12210
cat conftest.$ac_ext >&5
 
12211
echo "$as_me:$LINENO: result: no" >&5
 
12212
echo "${ECHO_T}no" >&6
 
12213
        NO_CNT_IN_FILESTRUCT="-DNO_CNT_IN_FILESTRUCT"
 
12214
 
 
12215
fi
 
12216
rm -f conftest.$ac_objext conftest.$ac_ext
 
12217
 
 
12218
# -----------------------------------
 
12219
 
 
12220
echo "$as_me:$LINENO: checking if errno externs are declared" >&5
 
12221
echo $ECHO_N "checking if errno externs are declared... $ECHO_C" >&6
 
12222
cat >conftest.$ac_ext <<_ACEOF
 
12223
#line $LINENO "configure"
 
12224
#include "confdefs.h"
 
12225
#include <errno.h>
 
12226
 
 
12227
#ifdef F77_DUMMY_MAIN
 
12228
#  ifdef __cplusplus
 
12229
     extern "C"
 
12230
#  endif
 
12231
   int F77_DUMMY_MAIN() { return 1; }
 
12232
#endif
 
12233
int
 
12234
main ()
 
12235
{
 
12236
if ( errno < sys_nerr ) return sys_errlist[errno];
 
12237
 
 
12238
  ;
 
12239
  return 0;
 
12240
}
 
12241
_ACEOF
 
12242
rm -f conftest.$ac_objext conftest$ac_exeext
 
12243
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12244
  (eval $ac_link) 2>&5
 
12245
  ac_status=$?
 
12246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12247
  (exit $ac_status); } &&
 
12248
         { ac_try='test -s conftest$ac_exeext'
 
12249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12250
  (eval $ac_try) 2>&5
 
12251
  ac_status=$?
 
12252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12253
  (exit $ac_status); }; }; then
 
12254
  echo "$as_me:$LINENO: result: yes" >&5
 
12255
echo "${ECHO_T}yes" >&6
 
12256
       NO_ERRNO_DECL=''
 
12257
 
 
12258
else
 
12259
  echo "$as_me: failed program was:" >&5
 
12260
cat conftest.$ac_ext >&5
 
12261
echo "$as_me:$LINENO: result: no" >&5
 
12262
echo "${ECHO_T}no" >&6
 
12263
       NO_ERRNO_DECL="-DNO_ERRNO_DECL"
 
12264
 
 
12265
fi
 
12266
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12267
 
 
12268
# -----------------------------------
 
12269
 
 
12270
# Check if getopt externs are declared in standard headers.
 
12271
echo "$as_me:$LINENO: checking if getopt and optopt are declared" >&5
 
12272
echo $ECHO_N "checking if getopt and optopt are declared... $ECHO_C" >&6
 
12273
cat >conftest.$ac_ext <<_ACEOF
 
12274
#line $LINENO "configure"
 
12275
#include "confdefs.h"
 
12276
#include <stdlib.h>
 
12277
        #include <stdio.h>
 
12278
        #if HAVE_UNISTD_H
 
12279
        #include <unistd.h>
 
12280
        #endif
 
12281
 
 
12282
#ifdef F77_DUMMY_MAIN
 
12283
#  ifdef __cplusplus
 
12284
     extern "C"
 
12285
#  endif
 
12286
   int F77_DUMMY_MAIN() { return 1; }
 
12287
#endif
 
12288
int
 
12289
main ()
 
12290
{
 
12291
if ( optopt ) exit(0); else exit(1);
 
12292
 
 
12293
  ;
 
12294
  return 0;
 
12295
}
 
12296
_ACEOF
 
12297
rm -f conftest.$ac_objext conftest$ac_exeext
 
12298
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12299
  (eval $ac_link) 2>&5
 
12300
  ac_status=$?
 
12301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12302
  (exit $ac_status); } &&
 
12303
         { ac_try='test -s conftest$ac_exeext'
 
12304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12305
  (eval $ac_try) 2>&5
 
12306
  ac_status=$?
 
12307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12308
  (exit $ac_status); }; }; then
 
12309
  echo "$as_me:$LINENO: result: yes" >&5
 
12310
echo "${ECHO_T}yes" >&6
 
12311
        NO_OPTOPT_DECL=''
 
12312
 
 
12313
else
 
12314
  echo "$as_me: failed program was:" >&5
 
12315
cat conftest.$ac_ext >&5
 
12316
echo "$as_me:$LINENO: result: no" >&5
 
12317
echo "${ECHO_T}no" >&6
 
12318
        NO_OPTOPT_DECL="-DNO_OPTOPT_DECL"
 
12319
 
 
12320
fi
 
12321
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12322
 
 
12323
# -----------------------------------
 
12324
 
 
12325
echo "$as_me:$LINENO: checking if assert needs __eprintf" >&5
 
12326
echo $ECHO_N "checking if assert needs __eprintf... $ECHO_C" >&6
 
12327
cat > conftest.$ac_ext <<EOF
 
12328
#include "confdefs.h"
 
12329
#include "assert.h"
 
12330
int main(argc)
 
12331
    int argc;
 
12332
{
 
12333
assert(argc);
 
12334
; return 0; }
 
12335
EOF
 
12336
${CC-cc} -c $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext 1>&5
 
12337
if test "x`nm conftest.o |grep __eprintf`" != "x"; then
 
12338
    echo "$as_me:$LINENO: result: yes" >&5
 
12339
echo "${ECHO_T}yes" >&6
 
12340
    CFLAGS="$CFLAGS -DNDEBUG"
 
12341
else
 
12342
    echo "$as_me:$LINENO: result: no" >&5
 
12343
echo "${ECHO_T}no" >&6
 
12344
fi
 
12345
rm -f conftest*
 
12346
 
 
12347
# -----------------------------------------------------------------------
 
12348
 
 
12349
# Generate Makefiles
 
12350
ac_config_files="$ac_config_files Makefile doc/Makefile contrib/Makefile graphs/Makefile graphs/directed/Makefile graphs/undirected/Makefile gd/Makefile cdt/Makefile agraph/Makefile graph/Makefile pathplan/Makefile dotneato/dotgen/Makefile dotneato/neatogen/Makefile dotneato/twopigen/Makefile dotneato/common/Makefile dotneato/Makefile dag/Makefile fdp/Makefile geo/Makefile grid/Makefile incr/Makefile shape/Makefile ns/Makefile agutil/Makefile tclhandle/Makefile tclstubs/Makefile tkstubs/Makefile tcldot/Makefile tcldot/demo/Makefile tcldgr/Makefile tcldgr/demo/Makefile tcldgl/Makefile tcldgl/demo/Makefile tclpathplan/Makefile tclpathplan/demo/Makefile tclpathplan/demo/pathplan_data/Makefile tkspline/Makefile tkspline/demo/Makefile gdtclft/Makefile gdtclft/demo/Makefile lefty/ws/x11/libfilereq/Makefile lefty/ws/x11/Makefile lefty/ws/Makefile lefty/os/unix/Makefile lefty/os/Makefile lefty/dot2l/Makefile lefty/cs2l/Makefile lefty/examples/Makefile lefty/Makefile lneato/Makefile dotty/Makefile tools/Makefile tools/vmalloc/Makefile tools/sfio/Makefile tools/sfio/Sfio_dc/Makefile tools/sfio/Sfio_f/Makefile tools/ast/Makefile tools/expr/Makefile tools/gpr/Makefile tools/src/Makefile graphviz.spec"
 
12351
cat >confcache <<\_ACEOF
 
12352
# This file is a shell script that caches the results of configure
 
12353
# tests run on this system so they can be shared between configure
 
12354
# scripts and configure runs, see configure's option --config-cache.
 
12355
# It is not useful on other systems.  If it contains results you don't
 
12356
# want to keep, you may remove or edit it.
 
12357
#
 
12358
# config.status only pays attention to the cache file if you give it
 
12359
# the --recheck option to rerun configure.
 
12360
#
 
12361
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
12362
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
12363
# following values.
 
12364
 
 
12365
_ACEOF
 
12366
 
 
12367
# The following way of writing the cache mishandles newlines in values,
 
12368
# but we know of no workaround that is simple, portable, and efficient.
 
12369
# So, don't put newlines in cache variables' values.
 
12370
# Ultrix sh set writes to stderr and can't be redirected directly,
 
12371
# and sets the high bit in the cache file unless we assign to the vars.
 
12372
{
 
12373
  (set) 2>&1 |
 
12374
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
12375
    *ac_space=\ *)
 
12376
      # `set' does not quote correctly, so add quotes (double-quote
 
12377
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
12378
      sed -n \
 
12379
        "s/'/'\\\\''/g;
 
12380
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
12381
      ;;
 
12382
    *)
 
12383
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
12384
      sed -n \
 
12385
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
12386
      ;;
 
12387
    esac;
 
12388
} |
 
12389
  sed '
 
12390
     t clear
 
12391
     : clear
 
12392
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
12393
     t end
 
12394
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
12395
     : end' >>confcache
 
12396
if cmp -s $cache_file confcache; then :; else
 
12397
  if test -w $cache_file; then
 
12398
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
12399
    cat confcache >$cache_file
 
12400
  else
 
12401
    echo "not updating unwritable cache $cache_file"
 
12402
  fi
 
12403
fi
 
12404
rm -f confcache
 
12405
 
 
12406
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
12407
# Let make expand exec_prefix.
 
12408
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
12409
 
 
12410
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
12411
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
12412
# trailing colons and then remove the whole line if VPATH becomes empty
 
12413
# (actually we leave an empty line to preserve line numbers).
 
12414
if test "x$srcdir" = x.; then
 
12415
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
12416
s/:*\$(srcdir):*/:/;
 
12417
s/:*\${srcdir}:*/:/;
 
12418
s/:*@srcdir@:*/:/;
 
12419
s/^\([^=]*=[    ]*\):*/\1/;
 
12420
s/:*$//;
 
12421
s/^[^=]*=[      ]*$//;
 
12422
}'
 
12423
fi
 
12424
 
 
12425
DEFS=-DHAVE_CONFIG_H
 
12426
 
 
12427
: ${CONFIG_STATUS=./config.status}
 
12428
ac_clean_files_save=$ac_clean_files
 
12429
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
12430
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
12431
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
12432
cat >$CONFIG_STATUS <<_ACEOF
 
12433
#! $SHELL
 
12434
# Generated by $as_me.
 
12435
# Run this file to recreate the current configuration.
 
12436
# Compiler output produced by configure, useful for debugging
 
12437
# configure, is in config.log if it exists.
 
12438
 
 
12439
debug=false
 
12440
SHELL=\${CONFIG_SHELL-$SHELL}
 
12441
_ACEOF
 
12442
 
 
12443
cat >>$CONFIG_STATUS <<\_ACEOF
 
12444
 
 
12445
## --------------------- ##
 
12446
## M4sh Initialization.  ##
 
12447
## --------------------- ##
 
12448
 
 
12449
# Be Bourne compatible
 
12450
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
12451
  emulate sh
 
12452
  NULLCMD=:
 
12453
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
12454
  set -o posix
 
12455
fi
 
12456
 
 
12457
# NLS nuisances.
 
12458
# Support unset when possible.
 
12459
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
12460
  as_unset=unset
 
12461
else
 
12462
  as_unset=false
 
12463
fi
 
12464
 
 
12465
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
 
12466
    { $as_unset LANG || test "${LANG+set}" != set; } ||
 
12467
      { LANG=C; export LANG; }
 
12468
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
 
12469
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
 
12470
      { LC_ALL=C; export LC_ALL; }
 
12471
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
 
12472
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
 
12473
      { LC_TIME=C; export LC_TIME; }
 
12474
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
 
12475
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
 
12476
      { LC_CTYPE=C; export LC_CTYPE; }
 
12477
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
 
12478
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
 
12479
      { LANGUAGE=C; export LANGUAGE; }
 
12480
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
 
12481
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
 
12482
      { LC_COLLATE=C; export LC_COLLATE; }
 
12483
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
 
12484
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
 
12485
      { LC_NUMERIC=C; export LC_NUMERIC; }
 
12486
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
 
12487
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
 
12488
      { LC_MESSAGES=C; export LC_MESSAGES; }
 
12489
 
 
12490
# Name of the executable.
 
12491
as_me=`(basename "$0") 2>/dev/null ||
 
12492
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
12493
         X"$0" : 'X\(//\)$' \| \
 
12494
         X"$0" : 'X\(/\)$' \| \
 
12495
         .     : '\(.\)' 2>/dev/null ||
 
12496
echo X/"$0" |
 
12497
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
12498
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
12499
          /^X\/\(\/\).*/{ s//\1/; q; }
 
12500
          s/.*/./; q'`
 
12501
 
 
12502
# PATH needs CR, and LINENO needs CR and PATH.
 
12503
# Avoid depending upon Character Ranges.
 
12504
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
12505
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
12506
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
12507
as_cr_digits='0123456789'
 
12508
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
12509
 
 
12510
# The user is always right.
 
12511
if test "${PATH_SEPARATOR+set}" != set; then
 
12512
  echo "#! $SHELL" >conftest.sh
 
12513
  echo  "exit 0"   >>conftest.sh
 
12514
  chmod +x conftest.sh
 
12515
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
 
12516
    PATH_SEPARATOR=';'
 
12517
  else
 
12518
    PATH_SEPARATOR=:
 
12519
  fi
 
12520
  rm -f conftest.sh
 
12521
fi
 
12522
 
 
12523
  as_lineno_1=$LINENO
 
12524
  as_lineno_2=$LINENO
 
12525
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
12526
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
12527
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
12528
  # Find who we are.  Look in the path if we contain no path at all
 
12529
  # relative or not.
 
12530
  case $0 in
 
12531
    *[\\/]* ) as_myself=$0 ;;
 
12532
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12533
for as_dir in $PATH
 
12534
do
 
12535
  IFS=$as_save_IFS
 
12536
  test -z "$as_dir" && as_dir=.
 
12537
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
12538
done
 
12539
 
 
12540
       ;;
 
12541
  esac
 
12542
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
12543
  # in which case we are not to be found in the path.
 
12544
  if test "x$as_myself" = x; then
 
12545
    as_myself=$0
 
12546
  fi
 
12547
  if test ! -f "$as_myself"; then
 
12548
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
12549
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
12550
   { (exit 1); exit 1; }; }
 
12551
  fi
 
12552
  case $CONFIG_SHELL in
 
12553
  '')
 
12554
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12555
for as_dir in /bin:/usr/bin:$PATH
 
12556
do
 
12557
  IFS=$as_save_IFS
 
12558
  test -z "$as_dir" && as_dir=.
 
12559
  for as_base in sh bash ksh sh5; do
 
12560
         case $as_dir in
 
12561
         /*)
 
12562
           if ("$as_dir/$as_base" -c '
 
12563
  as_lineno_1=$LINENO
 
12564
  as_lineno_2=$LINENO
 
12565
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
12566
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
12567
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
12568
             CONFIG_SHELL=$as_dir/$as_base
 
12569
             export CONFIG_SHELL
 
12570
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
12571
           fi;;
 
12572
         esac
 
12573
       done
 
12574
done
 
12575
;;
 
12576
  esac
 
12577
 
 
12578
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
12579
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
12580
  # line-number line before each line; the second 'sed' does the real
 
12581
  # work.  The second script uses 'N' to pair each line-number line
 
12582
  # with the numbered line, and appends trailing '-' during
 
12583
  # substitution so that $LINENO is not a special case at line end.
 
12584
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
12585
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
12586
  sed '=' <$as_myself |
 
12587
    sed '
 
12588
      N
 
12589
      s,$,-,
 
12590
      : loop
 
12591
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
12592
      t loop
 
12593
      s,-$,,
 
12594
      s,^['$as_cr_digits']*\n,,
 
12595
    ' >$as_me.lineno &&
 
12596
  chmod +x $as_me.lineno ||
 
12597
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
12598
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
12599
   { (exit 1); exit 1; }; }
 
12600
 
 
12601
  # Don't try to exec as it changes $[0], causing all sort of problems
 
12602
  # (the dirname of $[0] is not the place where we might find the
 
12603
  # original and so on.  Autoconf is especially sensible to this).
 
12604
  . ./$as_me.lineno
 
12605
  # Exit status is that of the last command.
 
12606
  exit
 
12607
}
 
12608
 
 
12609
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
12610
  *c*,-n*) ECHO_N= ECHO_C='
 
12611
' ECHO_T='      ' ;;
 
12612
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
12613
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
12614
esac
 
12615
 
 
12616
if expr a : '\(a\)' >/dev/null 2>&1; then
 
12617
  as_expr=expr
 
12618
else
 
12619
  as_expr=false
 
12620
fi
 
12621
 
 
12622
rm -f conf$$ conf$$.exe conf$$.file
 
12623
echo >conf$$.file
 
12624
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
12625
  # We could just check for DJGPP; but this test a) works b) is more generic
 
12626
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
12627
  if test -f conf$$.exe; then
 
12628
    # Don't use ln at all; we don't have any links
 
12629
    as_ln_s='cp -p'
 
12630
  else
 
12631
    as_ln_s='ln -s'
 
12632
  fi
 
12633
elif ln conf$$.file conf$$ 2>/dev/null; then
 
12634
  as_ln_s=ln
 
12635
else
 
12636
  as_ln_s='cp -p'
 
12637
fi
 
12638
rm -f conf$$ conf$$.exe conf$$.file
 
12639
 
 
12640
as_executable_p="test -f"
 
12641
 
 
12642
# Sed expression to map a string onto a valid CPP name.
 
12643
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
12644
 
 
12645
# Sed expression to map a string onto a valid variable name.
 
12646
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
12647
 
 
12648
# IFS
 
12649
# We need space, tab and new line, in precisely that order.
 
12650
as_nl='
 
12651
'
 
12652
IFS="   $as_nl"
 
12653
 
 
12654
# CDPATH.
 
12655
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
 
12656
 
 
12657
exec 6>&1
 
12658
 
 
12659
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
12660
# report actual input values of CONFIG_FILES etc. instead of their
 
12661
# values after options handling.  Logging --version etc. is OK.
 
12662
exec 5>>config.log
 
12663
{
 
12664
  echo
 
12665
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
12666
## Running $as_me. ##
 
12667
_ASBOX
 
12668
} >&5
 
12669
cat >&5 <<_CSEOF
 
12670
 
 
12671
This file was extended by $as_me, which was
 
12672
generated by GNU Autoconf 2.52f.  Invocation command line was
 
12673
 
 
12674
  CONFIG_FILES    = $CONFIG_FILES
 
12675
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
12676
  CONFIG_LINKS    = $CONFIG_LINKS
 
12677
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
12678
  $ $0 $@
 
12679
 
 
12680
_CSEOF
 
12681
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
12682
echo >&5
 
12683
_ACEOF
 
12684
 
 
12685
# Files that config.status was made for.
 
12686
if test -n "$ac_config_files"; then
 
12687
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
12688
fi
 
12689
 
 
12690
if test -n "$ac_config_headers"; then
 
12691
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
12692
fi
 
12693
 
 
12694
if test -n "$ac_config_links"; then
 
12695
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
12696
fi
 
12697
 
 
12698
if test -n "$ac_config_commands"; then
 
12699
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
12700
fi
 
12701
 
 
12702
cat >>$CONFIG_STATUS <<\_ACEOF
 
12703
 
 
12704
ac_cs_usage="\
 
12705
\`$as_me' instantiates files from templates according to the
 
12706
current configuration.
 
12707
 
 
12708
Usage: $0 [OPTIONS] [FILE]...
 
12709
 
 
12710
  -h, --help       print this help, then exit
 
12711
  -V, --version    print version number, then exit
 
12712
  -d, --debug      don't remove temporary files
 
12713
      --recheck    update $as_me by reconfiguring in the same conditions
 
12714
  --file=FILE[:TEMPLATE]
 
12715
                   instantiate the configuration file FILE
 
12716
  --header=FILE[:TEMPLATE]
 
12717
                   instantiate the configuration header FILE
 
12718
 
 
12719
Configuration files:
 
12720
$config_files
 
12721
 
 
12722
Configuration headers:
 
12723
$config_headers
 
12724
 
 
12725
Configuration commands:
 
12726
$config_commands
 
12727
 
 
12728
Report bugs to <bug-autoconf@gnu.org>."
 
12729
_ACEOF
 
12730
 
 
12731
cat >>$CONFIG_STATUS <<_ACEOF
 
12732
ac_cs_version="\\
 
12733
config.status
 
12734
configured by $0, generated by GNU Autoconf 2.52f,
 
12735
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
12736
 
 
12737
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
12738
Free Software Foundation, Inc.
 
12739
This config.status script is free software; the Free Software Foundation
 
12740
gives unlimited permission to copy, distribute and modify it."
 
12741
srcdir=$srcdir
 
12742
INSTALL="$INSTALL"
 
12743
_ACEOF
 
12744
 
 
12745
cat >>$CONFIG_STATUS <<\_ACEOF
 
12746
# If no file are specified by the user, then we need to provide default
 
12747
# value.  By we need to know if files were specified by the user.
 
12748
ac_need_defaults=:
 
12749
while test $# != 0
 
12750
do
 
12751
  case $1 in
 
12752
  --*=*)
 
12753
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
12754
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
12755
    shift
 
12756
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
 
12757
    shift
 
12758
    ;;
 
12759
  -*);;
 
12760
  *) # This is not an option, so the user has probably given explicit
 
12761
     # arguments.
 
12762
     ac_need_defaults=false;;
 
12763
  esac
 
12764
 
 
12765
  case $1 in
 
12766
  # Handling of the options.
 
12767
_ACEOF
 
12768
cat >>$CONFIG_STATUS <<_ACEOF
 
12769
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
12770
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
 
12771
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
 
12772
_ACEOF
 
12773
cat >>$CONFIG_STATUS <<\_ACEOF
 
12774
  --version | --vers* | -V )
 
12775
    echo "$ac_cs_version"; exit 0 ;;
 
12776
  --he | --h)
 
12777
    # Conflict between --help and --header
 
12778
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
12779
Try \`$0 --help' for more information." >&5
 
12780
echo "$as_me: error: ambiguous option: $1
 
12781
Try \`$0 --help' for more information." >&2;}
 
12782
   { (exit 1); exit 1; }; };;
 
12783
  --help | --hel | -h )
 
12784
    echo "$ac_cs_usage"; exit 0 ;;
 
12785
  --debug | --d* | -d )
 
12786
    debug=: ;;
 
12787
  --file | --fil | --fi | --f )
 
12788
    shift
 
12789
    CONFIG_FILES="$CONFIG_FILES $1"
 
12790
    ac_need_defaults=false;;
 
12791
  --header | --heade | --head | --hea )
 
12792
    shift
 
12793
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
12794
    ac_need_defaults=false;;
 
12795
 
 
12796
  # This is an error.
 
12797
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
12798
Try \`$0 --help' for more information." >&5
 
12799
echo "$as_me: error: unrecognized option: $1
 
12800
Try \`$0 --help' for more information." >&2;}
 
12801
   { (exit 1); exit 1; }; } ;;
 
12802
 
 
12803
  *) ac_config_targets="$ac_config_targets $1" ;;
 
12804
 
 
12805
  esac
 
12806
  shift
 
12807
done
 
12808
 
 
12809
_ACEOF
 
12810
 
 
12811
cat >>$CONFIG_STATUS <<_ACEOF
 
12812
#
 
12813
# INIT-COMMANDS section.
 
12814
#
 
12815
 
 
12816
_ACEOF
 
12817
 
 
12818
cat >>$CONFIG_STATUS <<\_ACEOF
 
12819
for ac_config_target in $ac_config_targets
 
12820
do
 
12821
  case "$ac_config_target" in
 
12822
  # Handling of arguments.
 
12823
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
12824
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
12825
  "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
 
12826
  "graphs/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphs/Makefile" ;;
 
12827
  "graphs/directed/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphs/directed/Makefile" ;;
 
12828
  "graphs/undirected/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphs/undirected/Makefile" ;;
 
12829
  "gd/Makefile" ) CONFIG_FILES="$CONFIG_FILES gd/Makefile" ;;
 
12830
  "cdt/Makefile" ) CONFIG_FILES="$CONFIG_FILES cdt/Makefile" ;;
 
12831
  "agraph/Makefile" ) CONFIG_FILES="$CONFIG_FILES agraph/Makefile" ;;
 
12832
  "graph/Makefile" ) CONFIG_FILES="$CONFIG_FILES graph/Makefile" ;;
 
12833
  "pathplan/Makefile" ) CONFIG_FILES="$CONFIG_FILES pathplan/Makefile" ;;
 
12834
  "dotneato/dotgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES dotneato/dotgen/Makefile" ;;
 
12835
  "dotneato/neatogen/Makefile" ) CONFIG_FILES="$CONFIG_FILES dotneato/neatogen/Makefile" ;;
 
12836
  "dotneato/twopigen/Makefile" ) CONFIG_FILES="$CONFIG_FILES dotneato/twopigen/Makefile" ;;
 
12837
  "dotneato/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES dotneato/common/Makefile" ;;
 
12838
  "dotneato/Makefile" ) CONFIG_FILES="$CONFIG_FILES dotneato/Makefile" ;;
 
12839
  "dag/Makefile" ) CONFIG_FILES="$CONFIG_FILES dag/Makefile" ;;
 
12840
  "fdp/Makefile" ) CONFIG_FILES="$CONFIG_FILES fdp/Makefile" ;;
 
12841
  "geo/Makefile" ) CONFIG_FILES="$CONFIG_FILES geo/Makefile" ;;
 
12842
  "grid/Makefile" ) CONFIG_FILES="$CONFIG_FILES grid/Makefile" ;;
 
12843
  "incr/Makefile" ) CONFIG_FILES="$CONFIG_FILES incr/Makefile" ;;
 
12844
  "shape/Makefile" ) CONFIG_FILES="$CONFIG_FILES shape/Makefile" ;;
 
12845
  "ns/Makefile" ) CONFIG_FILES="$CONFIG_FILES ns/Makefile" ;;
 
12846
  "agutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES agutil/Makefile" ;;
 
12847
  "tclhandle/Makefile" ) CONFIG_FILES="$CONFIG_FILES tclhandle/Makefile" ;;
 
12848
  "tclstubs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tclstubs/Makefile" ;;
 
12849
  "tkstubs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tkstubs/Makefile" ;;
 
12850
  "tcldot/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcldot/Makefile" ;;
 
12851
  "tcldot/demo/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcldot/demo/Makefile" ;;
 
12852
  "tcldgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcldgr/Makefile" ;;
 
12853
  "tcldgr/demo/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcldgr/demo/Makefile" ;;
 
12854
  "tcldgl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcldgl/Makefile" ;;
 
12855
  "tcldgl/demo/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcldgl/demo/Makefile" ;;
 
12856
  "tclpathplan/Makefile" ) CONFIG_FILES="$CONFIG_FILES tclpathplan/Makefile" ;;
 
12857
  "tclpathplan/demo/Makefile" ) CONFIG_FILES="$CONFIG_FILES tclpathplan/demo/Makefile" ;;
 
12858
  "tclpathplan/demo/pathplan_data/Makefile" ) CONFIG_FILES="$CONFIG_FILES tclpathplan/demo/pathplan_data/Makefile" ;;
 
12859
  "tkspline/Makefile" ) CONFIG_FILES="$CONFIG_FILES tkspline/Makefile" ;;
 
12860
  "tkspline/demo/Makefile" ) CONFIG_FILES="$CONFIG_FILES tkspline/demo/Makefile" ;;
 
12861
  "gdtclft/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdtclft/Makefile" ;;
 
12862
  "gdtclft/demo/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdtclft/demo/Makefile" ;;
 
12863
  "lefty/ws/x11/libfilereq/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/ws/x11/libfilereq/Makefile" ;;
 
12864
  "lefty/ws/x11/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/ws/x11/Makefile" ;;
 
12865
  "lefty/ws/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/ws/Makefile" ;;
 
12866
  "lefty/os/unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/os/unix/Makefile" ;;
 
12867
  "lefty/os/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/os/Makefile" ;;
 
12868
  "lefty/dot2l/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/dot2l/Makefile" ;;
 
12869
  "lefty/cs2l/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/cs2l/Makefile" ;;
 
12870
  "lefty/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/examples/Makefile" ;;
 
12871
  "lefty/Makefile" ) CONFIG_FILES="$CONFIG_FILES lefty/Makefile" ;;
 
12872
  "lneato/Makefile" ) CONFIG_FILES="$CONFIG_FILES lneato/Makefile" ;;
 
12873
  "dotty/Makefile" ) CONFIG_FILES="$CONFIG_FILES dotty/Makefile" ;;
 
12874
  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
 
12875
  "tools/vmalloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/vmalloc/Makefile" ;;
 
12876
  "tools/sfio/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/sfio/Makefile" ;;
 
12877
  "tools/sfio/Sfio_dc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/sfio/Sfio_dc/Makefile" ;;
 
12878
  "tools/sfio/Sfio_f/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/sfio/Sfio_f/Makefile" ;;
 
12879
  "tools/ast/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/ast/Makefile" ;;
 
12880
  "tools/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/expr/Makefile" ;;
 
12881
  "tools/gpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gpr/Makefile" ;;
 
12882
  "tools/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/src/Makefile" ;;
 
12883
  "graphviz.spec" ) CONFIG_FILES="$CONFIG_FILES graphviz.spec" ;;
 
12884
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
12885
  "gvconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gvconfig.h" ;;
 
12886
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
12887
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
12888
   { (exit 1); exit 1; }; };;
 
12889
  esac
 
12890
done
 
12891
 
 
12892
# If the user did not use the arguments to specify the items to instantiate,
 
12893
# then the envvar interface is used.  Set only those that are not.
 
12894
# We use the long form for the default assignment because of an extremely
 
12895
# bizarre bug on SunOS 4.1.3.
 
12896
if $ac_need_defaults; then
 
12897
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
12898
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
12899
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
12900
fi
 
12901
 
 
12902
# Create a temporary directory, and hook for its removal unless debugging.
 
12903
$debug ||
 
12904
{
 
12905
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
12906
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
12907
}
 
12908
 
 
12909
# Create a (secure) tmp directory for tmp files.
 
12910
: ${TMPDIR=/tmp}
 
12911
{
 
12912
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
12913
  test -n "$tmp" && test -d "$tmp"
 
12914
}  ||
 
12915
{
 
12916
  tmp=$TMPDIR/cs$$-$RANDOM
 
12917
  (umask 077 && mkdir $tmp)
 
12918
} ||
 
12919
{
 
12920
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
12921
   { (exit 1); exit 1; }
 
12922
}
 
12923
 
 
12924
_ACEOF
 
12925
 
 
12926
cat >>$CONFIG_STATUS <<_ACEOF
 
12927
 
 
12928
#
 
12929
# CONFIG_FILES section.
 
12930
#
 
12931
 
 
12932
# No need to generate the scripts if there are no CONFIG_FILES.
 
12933
# This happens for instance when ./config.status config.h
 
12934
if test -n "\$CONFIG_FILES"; then
 
12935
  # Protect against being on the right side of a sed subst in config.status.
 
12936
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
12937
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
12938
s,@SHELL@,$SHELL,;t t
 
12939
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
12940
s,@exec_prefix@,$exec_prefix,;t t
 
12941
s,@prefix@,$prefix,;t t
 
12942
s,@program_transform_name@,$program_transform_name,;t t
 
12943
s,@bindir@,$bindir,;t t
 
12944
s,@sbindir@,$sbindir,;t t
 
12945
s,@libexecdir@,$libexecdir,;t t
 
12946
s,@datadir@,$datadir,;t t
 
12947
s,@sysconfdir@,$sysconfdir,;t t
 
12948
s,@sharedstatedir@,$sharedstatedir,;t t
 
12949
s,@localstatedir@,$localstatedir,;t t
 
12950
s,@libdir@,$libdir,;t t
 
12951
s,@includedir@,$includedir,;t t
 
12952
s,@oldincludedir@,$oldincludedir,;t t
 
12953
s,@infodir@,$infodir,;t t
 
12954
s,@mandir@,$mandir,;t t
 
12955
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
12956
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
12957
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
12958
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
12959
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
12960
s,@build_alias@,$build_alias,;t t
 
12961
s,@host_alias@,$host_alias,;t t
 
12962
s,@target_alias@,$target_alias,;t t
 
12963
s,@DEFS@,$DEFS,;t t
 
12964
s,@ECHO_C@,$ECHO_C,;t t
 
12965
s,@ECHO_N@,$ECHO_N,;t t
 
12966
s,@ECHO_T@,$ECHO_T,;t t
 
12967
s,@LIBS@,$LIBS,;t t
 
12968
s,@build@,$build,;t t
 
12969
s,@build_cpu@,$build_cpu,;t t
 
12970
s,@build_vendor@,$build_vendor,;t t
 
12971
s,@build_os@,$build_os,;t t
 
12972
s,@host@,$host,;t t
 
12973
s,@host_cpu@,$host_cpu,;t t
 
12974
s,@host_vendor@,$host_vendor,;t t
 
12975
s,@host_os@,$host_os,;t t
 
12976
s,@target@,$target,;t t
 
12977
s,@target_cpu@,$target_cpu,;t t
 
12978
s,@target_vendor@,$target_vendor,;t t
 
12979
s,@target_os@,$target_os,;t t
 
12980
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
12981
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
12982
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
12983
s,@PACKAGE@,$PACKAGE,;t t
 
12984
s,@VERSION@,$VERSION,;t t
 
12985
s,@ACLOCAL@,$ACLOCAL,;t t
 
12986
s,@AUTOCONF@,$AUTOCONF,;t t
 
12987
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
12988
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
12989
s,@MAKEINFO@,$MAKEINFO,;t t
 
12990
s,@SET_MAKE@,$SET_MAKE,;t t
 
12991
s,@CC@,$CC,;t t
 
12992
s,@CFLAGS@,$CFLAGS,;t t
 
12993
s,@LDFLAGS@,$LDFLAGS,;t t
 
12994
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
12995
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
12996
s,@EXEEXT@,$EXEEXT,;t t
 
12997
s,@OBJEXT@,$OBJEXT,;t t
 
12998
s,@CXX@,$CXX,;t t
 
12999
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
13000
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
13001
s,@LEX@,$LEX,;t t
 
13002
s,@LEXLIB@,$LEXLIB,;t t
 
13003
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
 
13004
s,@YACC@,$YACC,;t t
 
13005
s,@AWK@,$AWK,;t t
 
13006
s,@LN_S@,$LN_S,;t t
 
13007
s,@ECHO@,$ECHO,;t t
 
13008
s,@RANLIB@,$RANLIB,;t t
 
13009
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
13010
s,@STRIP@,$STRIP,;t t
 
13011
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
13012
s,@CPP@,$CPP,;t t
 
13013
s,@LIBTOOL@,$LIBTOOL,;t t
 
13014
s,@SED@,$SED,;t t
 
13015
s,@SORT@,$SORT,;t t
 
13016
s,@KSH@,$KSH,;t t
 
13017
s,@TOP_DIR@,$TOP_DIR,;t t
 
13018
s,@BUILD_DIR@,$BUILD_DIR,;t t
 
13019
s,@TCLSH@,$TCLSH,;t t
 
13020
s,@TCL_SUBDIRS@,$TCL_SUBDIRS,;t t
 
13021
s,@TCL_PKGINDEX@,$TCL_PKGINDEX,;t t
 
13022
s,@TCLSH_EXEC_PREFIX@,$TCLSH_EXEC_PREFIX,;t t
 
13023
s,@TCL_VERSION@,$TCL_VERSION,;t t
 
13024
s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
 
13025
s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
 
13026
s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
 
13027
s,@TCL_CC@,$TCL_CC,;t t
 
13028
s,@TCL_CXX@,$TCL_CXX,;t t
 
13029
s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
 
13030
s,@TCL_CXXFLAGS@,$TCL_CXXFLAGS,;t t
 
13031
s,@TCL_DEFS@,$TCL_DEFS,;t t
 
13032
s,@TCL_DBGX@,$TCL_DBGX,;t t
 
13033
s,@TCL_CFLAGS_DEBUG@,$TCL_CFLAGS_DEBUG,;t t
 
13034
s,@TCL_CFLAGS_OPTIMIZE@,$TCL_CFLAGS_OPTIMIZE,;t t
 
13035
s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
 
13036
s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
 
13037
s,@TCL_NEEDS_EXP_FILE@,$TCL_NEEDS_EXP_FILE,;t t
 
13038
s,@TCL_EXPORT_FILE_SUFFIX@,$TCL_EXPORT_FILE_SUFFIX,;t t
 
13039
s,@TCL_LIBS@,$TCL_LIBS,;t t
 
13040
s,@TCL_PREFIX@,$TCL_PREFIX,;t t
 
13041
s,@TCL_EXEC_PREFIX@,$TCL_EXEC_PREFIX,;t t
 
13042
s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
 
13043
s,@TCL_SHLIB_CXXFLAGS@,$TCL_SHLIB_CXXFLAGS,;t t
 
13044
s,@TCL_EXTRA_CFLAGS@,$TCL_EXTRA_CFLAGS,;t t
 
13045
s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
 
13046
s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
 
13047
s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
 
13048
s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
 
13049
s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
 
13050
s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
 
13051
s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
 
13052
s,@TCL_RANLIB@,$TCL_RANLIB,;t t
 
13053
s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
 
13054
s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
 
13055
s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
 
13056
s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
 
13057
s,@TCL_SHARED_LIB_SUFFIX@,$TCL_SHARED_LIB_SUFFIX,;t t
 
13058
s,@TCL_UNSHARED_LIB_SUFFIX@,$TCL_UNSHARED_LIB_SUFFIX,;t t
 
13059
s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
 
13060
s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t
 
13061
s,@TCL_SUPPORTS_STUBS@,$TCL_SUPPORTS_STUBS,;t t
 
13062
s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
 
13063
s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
 
13064
s,@TCL_BUILD_STUB_LIB_SPEC@,$TCL_BUILD_STUB_LIB_SPEC,;t t
 
13065
s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
 
13066
s,@TCL_BUILD_STUB_LIB_PATH@,$TCL_BUILD_STUB_LIB_PATH,;t t
 
13067
s,@TCL_STUB_LIB_PATH@,$TCL_STUB_LIB_PATH,;t t
 
13068
s,@TK_SUBDIRS@,$TK_SUBDIRS,;t t
 
13069
s,@TK_PKGINDEX@,$TK_PKGINDEX,;t t
 
13070
s,@TK_VERSION@,$TK_VERSION,;t t
 
13071
s,@TK_MAJOR_VERSION@,$TK_MAJOR_VERSION,;t t
 
13072
s,@TK_MINOR_VERSION@,$TK_MINOR_VERSION,;t t
 
13073
s,@TK_PATCH_LEVEL@,$TK_PATCH_LEVEL,;t t
 
13074
s,@TK_DEFS@,$TK_DEFS,;t t
 
13075
s,@TK_SHARED_BUILD@,$TK_SHARED_BUILD,;t t
 
13076
s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
 
13077
s,@TK_LIBS@,$TK_LIBS,;t t
 
13078
s,@TK_PREFIX@,$TK_PREFIX,;t t
 
13079
s,@TK_EXEC_PREFIX@,$TK_EXEC_PREFIX,;t t
 
13080
s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
 
13081
s,@TK_XLIBSW@,$TK_XLIBSW,;t t
 
13082
s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
 
13083
s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
 
13084
s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
 
13085
s,@TK_CFLAGS@,$TK_CFLAGS,;t t
 
13086
s,@TK_SUPPORTS_STUBS@,$TK_SUPPORTS_STUBS,;t t
 
13087
s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
 
13088
s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
 
13089
s,@TK_BUILD_STUB_LIB_SPEC@,$TK_BUILD_STUB_LIB_SPEC,;t t
 
13090
s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
 
13091
s,@TK_BUILD_STUB_LIB_PATH@,$TK_BUILD_STUB_LIB_PATH,;t t
 
13092
s,@TK_STUB_LIB_PATH@,$TK_STUB_LIB_PATH,;t t
 
13093
s,@EXTRA_INCLUDES@,$EXTRA_INCLUDES,;t t
 
13094
s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t
 
13095
s,@SOCKET_LIBS@,$SOCKET_LIBS,;t t
 
13096
s,@X_CFLAGS@,$X_CFLAGS,;t t
 
13097
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
 
13098
s,@X_LIBS@,$X_LIBS,;t t
 
13099
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
 
13100
s,@X_SUBDIRS@,$X_SUBDIRS,;t t
 
13101
s,@XPM_INCLUDES@,$XPM_INCLUDES,;t t
 
13102
s,@XPM_LIBS@,$XPM_LIBS,;t t
 
13103
s,@FT_INCLUDES@,$FT_INCLUDES,;t t
 
13104
s,@FT_LIBS@,$FT_LIBS,;t t
 
13105
s,@ICONV_INCLUDES@,$ICONV_INCLUDES,;t t
 
13106
s,@ICONV_LIBS@,$ICONV_LIBS,;t t
 
13107
s,@Z_INCLUDES@,$Z_INCLUDES,;t t
 
13108
s,@Z_LIBS@,$Z_LIBS,;t t
 
13109
s,@PNG_INCLUDES@,$PNG_INCLUDES,;t t
 
13110
s,@PNG_LIBS@,$PNG_LIBS,;t t
 
13111
s,@JPEG_INCLUDES@,$JPEG_INCLUDES,;t t
 
13112
s,@JPEG_LIBS@,$JPEG_LIBS,;t t
 
13113
s,@XAW_INCLUDES@,$XAW_INCLUDES,;t t
 
13114
s,@XAW_LIBS@,$XAW_LIBS,;t t
 
13115
s,@ALLOCA@,$ALLOCA,;t t
 
13116
s,@STRTOLL@,$STRTOLL,;t t
 
13117
s,@STRTOULL@,$STRTOULL,;t t
 
13118
s,@TCLINT_INCLUDES@,$TCLINT_INCLUDES,;t t
 
13119
s,@TKINT_INCLUDES@,$TKINT_INCLUDES,;t t
 
13120
s,@NO_CNT_IN_FILESTRUCT@,$NO_CNT_IN_FILESTRUCT,;t t
 
13121
s,@NO_ERRNO_DECL@,$NO_ERRNO_DECL,;t t
 
13122
s,@NO_OPTOPT_DECL@,$NO_OPTOPT_DECL,;t t
 
13123
CEOF
 
13124
 
 
13125
_ACEOF
 
13126
 
 
13127
  cat >>$CONFIG_STATUS <<\_ACEOF
 
13128
  # Split the substitutions into bite-sized pieces for seds with
 
13129
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
13130
  ac_max_sed_lines=48
 
13131
  ac_sed_frag=1 # Number of current file.
 
13132
  ac_beg=1 # First line for current file.
 
13133
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
13134
  ac_more_lines=:
 
13135
  ac_sed_cmds=
 
13136
  while $ac_more_lines; do
 
13137
    if test $ac_beg -gt 1; then
 
13138
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
13139
    else
 
13140
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
13141
    fi
 
13142
    if test ! -s $tmp/subs.frag; then
 
13143
      ac_more_lines=false
 
13144
    else
 
13145
      # The purpose of the label and of the branching condition is to
 
13146
      # speed up the sed processing (if there are no `@' at all, there
 
13147
      # is no need to browse any of the substitutions).
 
13148
      # These are the two extra sed commands mentioned above.
 
13149
      (echo ':t
 
13150
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
13151
      if test -z "$ac_sed_cmds"; then
 
13152
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
13153
      else
 
13154
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
13155
      fi
 
13156
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
13157
      ac_beg=$ac_end
 
13158
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
13159
    fi
 
13160
  done
 
13161
  if test -z "$ac_sed_cmds"; then
 
13162
    ac_sed_cmds=cat
 
13163
  fi
 
13164
fi # test -n "$CONFIG_FILES"
 
13165
 
 
13166
_ACEOF
 
13167
cat >>$CONFIG_STATUS <<\_ACEOF
 
13168
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
13169
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
13170
  case $ac_file in
 
13171
  - | *:- | *:-:* ) # input from stdin
 
13172
        cat >$tmp/stdin
 
13173
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
13174
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
13175
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
13176
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
13177
  * )   ac_file_in=$ac_file.in ;;
 
13178
  esac
 
13179
 
 
13180
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
13181
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
13182
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13183
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
13184
         X"$ac_file" : 'X\(//\)$' \| \
 
13185
         X"$ac_file" : 'X\(/\)' \| \
 
13186
         .     : '\(.\)' 2>/dev/null ||
 
13187
echo X"$ac_file" |
 
13188
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
13189
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
13190
          /^X\(\/\/\)$/{ s//\1/; q; }
 
13191
          /^X\(\/\).*/{ s//\1/; q; }
 
13192
          s/.*/./; q'`
 
13193
  { case "$ac_dir" in
 
13194
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
13195
  *)                      as_incr_dir=.;;
 
13196
esac
 
13197
as_dummy="$ac_dir"
 
13198
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
13199
  case $as_mkdir_dir in
 
13200
    # Skip DOS drivespec
 
13201
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
13202
    *)
 
13203
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
13204
      test -d "$as_incr_dir" ||
 
13205
        mkdir "$as_incr_dir" ||
 
13206
        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
 
13207
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
 
13208
   { (exit 1); exit 1; }; }
 
13209
    ;;
 
13210
  esac
 
13211
done; }
 
13212
 
 
13213
  ac_builddir=.
 
13214
 
 
13215
if test "$ac_dir" != .; then
 
13216
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
13217
  # A "../" for each directory in $ac_dir_suffix.
 
13218
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
13219
else
 
13220
  ac_dir_suffix= ac_top_builddir=
 
13221
fi
 
13222
 
 
13223
case $srcdir in
 
13224
  .)  # No --srcdir option.  We are building in place.
 
13225
    ac_srcdir=.
 
13226
    if test -z "$ac_top_builddir"; then
 
13227
       ac_top_srcdir=.
 
13228
    else
 
13229
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
13230
    fi ;;
 
13231
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
13232
    ac_srcdir=$srcdir$ac_dir_suffix;
 
13233
    ac_top_srcdir=$srcdir ;;
 
13234
  *) # Relative path.
 
13235
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
13236
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
13237
esac
 
13238
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
13239
# absolute.
 
13240
ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
13241
ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
 
13242
ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
13243
ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
13244
 
 
13245
  case $INSTALL in
 
13246
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
13247
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
13248
  esac
 
13249
 
 
13250
  if test x"$ac_file" != x-; then
 
13251
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
13252
echo "$as_me: creating $ac_file" >&6;}
 
13253
    rm -f "$ac_file"
 
13254
  fi
 
13255
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
13256
  # use $as_me), people would be surprised to read:
 
13257
  #    /* config.h.  Generated by config.status.  */
 
13258
  if test x"$ac_file" = x-; then
 
13259
    configure_input=
 
13260
  else
 
13261
    configure_input="$ac_file.  "
 
13262
  fi
 
13263
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
13264
                                     sed 's,.*/,,'` by configure."
 
13265
 
 
13266
  # First look for the input files in the build tree, otherwise in the
 
13267
  # src tree.
 
13268
  ac_file_inputs=`IFS=:
 
13269
    for f in $ac_file_in; do
 
13270
      case $f in
 
13271
      -) echo $tmp/stdin ;;
 
13272
      [\\/$]*)
 
13273
         # Absolute (can't be DOS-style, as IFS=:)
 
13274
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
13275
echo "$as_me: error: cannot find input file: $f" >&2;}
 
13276
   { (exit 1); exit 1; }; }
 
13277
         echo $f;;
 
13278
      *) # Relative
 
13279
         if test -f "$f"; then
 
13280
           # Build tree
 
13281
           echo $f
 
13282
         elif test -f "$srcdir/$f"; then
 
13283
           # Source tree
 
13284
           echo $srcdir/$f
 
13285
         else
 
13286
           # /dev/null tree
 
13287
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
13288
echo "$as_me: error: cannot find input file: $f" >&2;}
 
13289
   { (exit 1); exit 1; }; }
 
13290
         fi;;
 
13291
      esac
 
13292
    done` || { (exit 1); exit 1; }
 
13293
_ACEOF
 
13294
cat >>$CONFIG_STATUS <<_ACEOF
 
13295
  sed "$ac_vpsub
 
13296
$extrasub
 
13297
_ACEOF
 
13298
cat >>$CONFIG_STATUS <<\_ACEOF
 
13299
:t
 
13300
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
13301
s,@configure_input@,$configure_input,;t t
 
13302
s,@srcdir@,$ac_srcdir,;t t
 
13303
s,@srcpath@,$ac_srcpath,;t t
 
13304
s,@top_srcdir@,$ac_top_srcdir,;t t
 
13305
s,@top_srcpath@,$ac_top_srcpath,;t t
 
13306
s,@builddir@,$ac_builddir,;t t
 
13307
s,@buildpath@,$ac_buildpath,;t t
 
13308
s,@top_builddir@,$ac_top_builddir,;t t
 
13309
s,@top_buildpath@,$ac_top_buildpath,;t t
 
13310
s,@INSTALL@,$ac_INSTALL,;t t
 
13311
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
13312
  rm -f $tmp/stdin
 
13313
  if test x"$ac_file" != x-; then
 
13314
    mv $tmp/out $ac_file
 
13315
  else
 
13316
    cat $tmp/out
 
13317
    rm -f $tmp/out
 
13318
  fi
 
13319
 
 
13320
done
 
13321
_ACEOF
 
13322
cat >>$CONFIG_STATUS <<\_ACEOF
 
13323
 
 
13324
#
 
13325
# CONFIG_HEADER section.
 
13326
#
 
13327
 
 
13328
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
13329
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
13330
#
 
13331
# ac_d sets the value in "#define NAME VALUE" lines.
 
13332
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
13333
ac_dB='[        ].*$,\1#\2'
 
13334
ac_dC=' '
 
13335
ac_dD=',;t'
 
13336
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
13337
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
13338
ac_uB='$,\1#\2define\3'
 
13339
ac_uC=' '
 
13340
ac_uD=',;t'
 
13341
 
 
13342
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
13343
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
13344
  case $ac_file in
 
13345
  - | *:- | *:-:* ) # input from stdin
 
13346
        cat >$tmp/stdin
 
13347
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
13348
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
13349
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
13350
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
13351
  * )   ac_file_in=$ac_file.in ;;
 
13352
  esac
 
13353
 
 
13354
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
13355
echo "$as_me: creating $ac_file" >&6;}
 
13356
 
 
13357
  # First look for the input files in the build tree, otherwise in the
 
13358
  # src tree.
 
13359
  ac_file_inputs=`IFS=:
 
13360
    for f in $ac_file_in; do
 
13361
      case $f in
 
13362
      -) echo $tmp/stdin ;;
 
13363
      [\\/$]*)
 
13364
         # Absolute (can't be DOS-style, as IFS=:)
 
13365
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
13366
echo "$as_me: error: cannot find input file: $f" >&2;}
 
13367
   { (exit 1); exit 1; }; }
 
13368
         echo $f;;
 
13369
      *) # Relative
 
13370
         if test -f "$f"; then
 
13371
           # Build tree
 
13372
           echo $f
 
13373
         elif test -f "$srcdir/$f"; then
 
13374
           # Source tree
 
13375
           echo $srcdir/$f
 
13376
         else
 
13377
           # /dev/null tree
 
13378
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
13379
echo "$as_me: error: cannot find input file: $f" >&2;}
 
13380
   { (exit 1); exit 1; }; }
 
13381
         fi;;
 
13382
      esac
 
13383
    done` || { (exit 1); exit 1; }
 
13384
  # Remove the trailing spaces.
 
13385
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
13386
 
 
13387
_ACEOF
 
13388
 
 
13389
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
13390
# `conftest.undefs', that substitutes the proper values into
 
13391
# config.h.in to produce config.h.  The first handles `#define'
 
13392
# templates, and the second `#undef' templates.
 
13393
# And first: Protect against being on the right side of a sed subst in
 
13394
# config.status.  Protect against being in an unquoted here document
 
13395
# in config.status.
 
13396
rm -f conftest.defines conftest.undefs
 
13397
# Using a here document instead of a string reduces the quoting nightmare.
 
13398
# Putting comments in sed scripts is not portable.
 
13399
#
 
13400
# `end' is used to avoid that the second main sed command (meant for
 
13401
# 0-ary CPP macros) applies to n-ary macro definitions.
 
13402
# See the Autoconf documentation for `clear'.
 
13403
cat >confdef2sed.sed <<\_ACEOF
 
13404
s/[\\&,]/\\&/g
 
13405
s,[\\$`],\\&,g
 
13406
t clear
 
13407
: clear
 
13408
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
13409
t end
 
13410
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
13411
: end
 
13412
_ACEOF
 
13413
# If some macros were called several times there might be several times
 
13414
# the same #defines, which is useless.  Nevertheless, we may not want to
 
13415
# sort them, since we want the *last* AC-DEFINE to be honored.
 
13416
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
13417
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
13418
rm -f confdef2sed.sed
 
13419
 
 
13420
# This sed command replaces #undef with comments.  This is necessary, for
 
13421
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
13422
# on some systems where configure will not decide to define it.
 
13423
cat >>conftest.undefs <<\_ACEOF
 
13424
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
13425
_ACEOF
 
13426
 
 
13427
# Break up conftest.defines because some shells have a limit on the size
 
13428
# of here documents, and old seds have small limits too (100 cmds).
 
13429
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
13430
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
13431
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
13432
echo '  :' >>$CONFIG_STATUS
 
13433
rm -f conftest.tail
 
13434
while grep . conftest.defines >/dev/null
 
13435
do
 
13436
  # Write a limited-size here document to $tmp/defines.sed.
 
13437
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
13438
  # Speed up: don't consider the non `#define' lines.
 
13439
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
13440
  # Work around the forget-to-reset-the-flag bug.
 
13441
  echo 't clr' >>$CONFIG_STATUS
 
13442
  echo ': clr' >>$CONFIG_STATUS
 
13443
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
13444
  echo 'CEOF
 
13445
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
13446
  rm -f $tmp/in
 
13447
  mv $tmp/out $tmp/in
 
13448
' >>$CONFIG_STATUS
 
13449
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
13450
  rm -f conftest.defines
 
13451
  mv conftest.tail conftest.defines
 
13452
done
 
13453
rm -f conftest.defines
 
13454
echo '  fi # egrep' >>$CONFIG_STATUS
 
13455
echo >>$CONFIG_STATUS
 
13456
 
 
13457
# Break up conftest.undefs because some shells have a limit on the size
 
13458
# of here documents, and old seds have small limits too (100 cmds).
 
13459
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
13460
rm -f conftest.tail
 
13461
while grep . conftest.undefs >/dev/null
 
13462
do
 
13463
  # Write a limited-size here document to $tmp/undefs.sed.
 
13464
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
13465
  # Speed up: don't consider the non `#undef'
 
13466
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
13467
  # Work around the forget-to-reset-the-flag bug.
 
13468
  echo 't clr' >>$CONFIG_STATUS
 
13469
  echo ': clr' >>$CONFIG_STATUS
 
13470
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
13471
  echo 'CEOF
 
13472
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
13473
  rm -f $tmp/in
 
13474
  mv $tmp/out $tmp/in
 
13475
' >>$CONFIG_STATUS
 
13476
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
13477
  rm -f conftest.undefs
 
13478
  mv conftest.tail conftest.undefs
 
13479
done
 
13480
rm -f conftest.undefs
 
13481
 
 
13482
cat >>$CONFIG_STATUS <<\_ACEOF
 
13483
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
13484
  # use $as_me), people would be surprised to read:
 
13485
  #    /* config.h.  Generated by config.status.  */
 
13486
  if test x"$ac_file" = x-; then
 
13487
    echo "/* Generated by configure.  */" >$tmp/config.h
 
13488
  else
 
13489
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
13490
  fi
 
13491
  cat $tmp/in >>$tmp/config.h
 
13492
  rm -f $tmp/in
 
13493
  if test x"$ac_file" != x-; then
 
13494
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
 
13495
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
13496
echo "$as_me: $ac_file is unchanged" >&6;}
 
13497
    else
 
13498
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
13499
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13500
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
13501
         X"$ac_file" : 'X\(//\)$' \| \
 
13502
         X"$ac_file" : 'X\(/\)' \| \
 
13503
         .     : '\(.\)' 2>/dev/null ||
 
13504
echo X"$ac_file" |
 
13505
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
13506
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
13507
          /^X\(\/\/\)$/{ s//\1/; q; }
 
13508
          /^X\(\/\).*/{ s//\1/; q; }
 
13509
          s/.*/./; q'`
 
13510
      { case "$ac_dir" in
 
13511
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
13512
  *)                      as_incr_dir=.;;
 
13513
esac
 
13514
as_dummy="$ac_dir"
 
13515
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
13516
  case $as_mkdir_dir in
 
13517
    # Skip DOS drivespec
 
13518
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
13519
    *)
 
13520
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
13521
      test -d "$as_incr_dir" ||
 
13522
        mkdir "$as_incr_dir" ||
 
13523
        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
 
13524
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
 
13525
   { (exit 1); exit 1; }; }
 
13526
    ;;
 
13527
  esac
 
13528
done; }
 
13529
 
 
13530
      rm -f $ac_file
 
13531
      mv $tmp/config.h $ac_file
 
13532
    fi
 
13533
  else
 
13534
    cat $tmp/config.h
 
13535
    rm -f $tmp/config.h
 
13536
  fi
 
13537
done
 
13538
_ACEOF
 
13539
cat >>$CONFIG_STATUS <<\_ACEOF
 
13540
 
 
13541
#
 
13542
# CONFIG_COMMANDS section.
 
13543
#
 
13544
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
13545
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
13546
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
13547
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
13548
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13549
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
13550
         X"$ac_dest" : 'X\(//\)$' \| \
 
13551
         X"$ac_dest" : 'X\(/\)' \| \
 
13552
         .     : '\(.\)' 2>/dev/null ||
 
13553
echo X"$ac_dest" |
 
13554
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
13555
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
13556
          /^X\(\/\/\)$/{ s//\1/; q; }
 
13557
          /^X\(\/\).*/{ s//\1/; q; }
 
13558
          s/.*/./; q'`
 
13559
  ac_builddir=.
 
13560
 
 
13561
if test "$ac_dir" != .; then
 
13562
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
13563
  # A "../" for each directory in $ac_dir_suffix.
 
13564
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
13565
else
 
13566
  ac_dir_suffix= ac_top_builddir=
 
13567
fi
 
13568
 
 
13569
case $srcdir in
 
13570
  .)  # No --srcdir option.  We are building in place.
 
13571
    ac_srcdir=.
 
13572
    if test -z "$ac_top_builddir"; then
 
13573
       ac_top_srcdir=.
 
13574
    else
 
13575
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
13576
    fi ;;
 
13577
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
13578
    ac_srcdir=$srcdir$ac_dir_suffix;
 
13579
    ac_top_srcdir=$srcdir ;;
 
13580
  *) # Relative path.
 
13581
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
13582
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
13583
esac
 
13584
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
13585
# absolute.
 
13586
ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
13587
ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
 
13588
ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
13589
ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
13590
 
 
13591
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
13592
echo "$as_me: executing $ac_dest commands" >&6;}
 
13593
  case $ac_dest in
 
13594
    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
 
13595
  esac
 
13596
done
 
13597
_ACEOF
 
13598
 
 
13599
cat >>$CONFIG_STATUS <<\_ACEOF
 
13600
 
 
13601
{ (exit 0); exit 0; }
 
13602
_ACEOF
 
13603
chmod +x $CONFIG_STATUS
 
13604
ac_clean_files=$ac_clean_files_save
 
13605
 
 
13606
# configure is writing to config.log, and then calls config.status.
 
13607
# config.status does its own redirection, appending to config.log.
 
13608
# Unfortunately, on DOS this fails, as config.log is still kept open
 
13609
# by configure, so config.status won't be able to write to it; its
 
13610
# output is simply discarded.  So we exec the FD to /dev/null,
 
13611
# effectively closing config.log, so it can be properly (re)opened and
 
13612
# appended to by config.status.  When coming back to configure, we
 
13613
# need to make the FD available again.
 
13614
if test "$no_create" != yes; then
 
13615
  ac_cs_success=:
 
13616
  exec 5>/dev/null
 
13617
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
13618
  exec 5>>config.log
 
13619
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
13620
  # would make configure fail if this is the last instruction.
 
13621
  $ac_cs_success || { (exit 1); exit 1; }
 
13622
fi
 
13623
 
 
13624
#       dynagraph/Makefile
 
13625
#       dynagraph/common/Makefile
 
13626
#       dynagraph/dynadag/Makefile