~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to extern/bFTGL/unix/configure

Tags: upstream-2.40
ImportĀ upstreamĀ versionĀ 2.40

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.57 for ftgl 2.0.5.
 
4
#
 
5
# Report bugs to <henryj@paradise.net.nz>.
 
6
#
 
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
8
# Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be Bourne compatible
 
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
17
  emulate sh
 
18
  NULLCMD=:
 
19
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20
  # is contrary to our usage.  Disable this feature.
 
21
  alias -g '${1+"$@"}'='"$@"'
 
22
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
23
  set -o posix
 
24
fi
 
25
 
 
26
# Support unset when possible.
 
27
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  as_mkdir_p=false
 
224
fi
 
225
 
 
226
as_executable_p="test -f"
 
227
 
 
228
# Sed expression to map a string onto a valid CPP name.
 
229
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
230
 
 
231
# Sed expression to map a string onto a valid variable name.
 
232
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
233
 
 
234
 
 
235
# IFS
 
236
# We need space, tab and new line, in precisely that order.
 
237
as_nl='
 
238
'
 
239
IFS="   $as_nl"
 
240
 
 
241
# CDPATH.
 
242
$as_unset CDPATH
 
243
 
 
244
 
 
245
# Find the correct PATH separator.  Usually this is `:', but
 
246
# DJGPP uses `;' like DOS.
 
247
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
248
  UNAME=${UNAME-`uname 2>/dev/null`}
 
249
  case X$UNAME in
 
250
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
251
    *)     lt_cv_sys_path_separator=':' ;;
 
252
  esac
 
253
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
254
fi
 
255
 
 
256
 
 
257
# Check that we are running under the correct shell.
 
258
SHELL=${CONFIG_SHELL-/bin/sh}
 
259
 
 
260
case X$ECHO in
 
261
X*--fallback-echo)
 
262
  # Remove one level of quotation (which was required for Make).
 
263
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
264
  ;;
 
265
esac
 
266
 
 
267
echo=${ECHO-echo}
 
268
if test "X$1" = X--no-reexec; then
 
269
  # Discard the --no-reexec flag, and continue.
 
270
  shift
 
271
elif test "X$1" = X--fallback-echo; then
 
272
  # Avoid inline document here, it may be left over
 
273
  :
 
274
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
275
  # Yippee, $echo works!
 
276
  :
 
277
else
 
278
  # Restart under the correct shell.
 
279
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
280
fi
 
281
 
 
282
if test "X$1" = X--fallback-echo; then
 
283
  # used as fallback echo
 
284
  shift
 
285
  cat <<EOF
 
286
 
 
287
EOF
 
288
  exit 0
 
289
fi
 
290
 
 
291
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
292
# if CDPATH is set.
 
293
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
294
 
 
295
if test -z "$ECHO"; then
 
296
if test "X${echo_test_string+set}" != Xset; then
 
297
# find a string as large as possible, as long as the shell can cope with it
 
298
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
299
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
300
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
301
       echo_test_string="`eval $cmd`" &&
 
302
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
303
    then
 
304
      break
 
305
    fi
 
306
  done
 
307
fi
 
308
 
 
309
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
310
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
311
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
312
  :
 
313
else
 
314
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
315
  # backslashes.  This makes it impossible to quote backslashes using
 
316
  #   echo "$something" | sed 's/\\/\\\\/g'
 
317
  #
 
318
  # So, first we look for a working echo in the user's PATH.
 
319
 
 
320
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
321
  for dir in $PATH /usr/ucb; do
 
322
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
323
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      echo="$dir/echo"
 
327
      break
 
328
    fi
 
329
  done
 
330
  IFS="$save_ifs"
 
331
 
 
332
  if test "X$echo" = Xecho; then
 
333
    # We didn't find a better echo, so look for alternatives.
 
334
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
335
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
336
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
337
      # This shell has a builtin print -r that does the trick.
 
338
      echo='print -r'
 
339
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
340
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
341
      # If we have ksh, try running configure again with it.
 
342
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
343
      export ORIGINAL_CONFIG_SHELL
 
344
      CONFIG_SHELL=/bin/ksh
 
345
      export CONFIG_SHELL
 
346
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
347
    else
 
348
      # Try using printf.
 
349
      echo='printf %s\n'
 
350
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
351
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
352
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
353
        # Cool, printf works
 
354
        :
 
355
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = 'X\t' &&
 
357
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
359
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
360
        export CONFIG_SHELL
 
361
        SHELL="$CONFIG_SHELL"
 
362
        export SHELL
 
363
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
364
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
365
           test "X$echo_testing_string" = 'X\t' &&
 
366
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
367
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
368
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
369
      else
 
370
        # maybe with a smaller string...
 
371
        prev=:
 
372
 
 
373
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
374
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
375
          then
 
376
            break
 
377
          fi
 
378
          prev="$cmd"
 
379
        done
 
380
 
 
381
        if test "$prev" != 'sed 50q "$0"'; then
 
382
          echo_test_string=`eval $prev`
 
383
          export echo_test_string
 
384
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
385
        else
 
386
          # Oops.  We lost completely, so just stick with echo.
 
387
          echo=echo
 
388
        fi
 
389
      fi
 
390
    fi
 
391
  fi
 
392
fi
 
393
fi
 
394
 
 
395
# Copy echo and quote the copy suitably for passing to libtool from
 
396
# the Makefile, instead of quoting the original, which is used later.
 
397
ECHO=$echo
 
398
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
399
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
400
fi
 
401
 
 
402
 
 
403
 
 
404
# Name of the host.
 
405
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
406
# so uname gets run too.
 
407
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
408
 
 
409
exec 6>&1
 
410
 
 
411
#
 
412
# Initializations.
 
413
#
 
414
ac_default_prefix=/usr/local
 
415
ac_config_libobj_dir=.
 
416
cross_compiling=no
 
417
subdirs=
 
418
MFLAGS=
 
419
MAKEFLAGS=
 
420
SHELL=${CONFIG_SHELL-/bin/sh}
 
421
 
 
422
# Maximum number of lines to put in a shell here document.
 
423
# This variable seems obsolete.  It should probably be removed, and
 
424
# only ac_max_sed_lines should be used.
 
425
: ${ac_max_here_lines=38}
 
426
 
 
427
# Identity of this package.
 
428
PACKAGE_NAME='ftgl'
 
429
PACKAGE_TARNAME='ftgl'
 
430
PACKAGE_VERSION='2.0.5'
 
431
PACKAGE_STRING='ftgl 2.0.5'
 
432
PACKAGE_BUGREPORT='henryj@paradise.net.nz'
 
433
 
 
434
ac_unique_file="Make.conf.in"
 
435
# Factoring default headers for most tests.
 
436
ac_includes_default="\
 
437
#include <stdio.h>
 
438
#if HAVE_SYS_TYPES_H
 
439
# include <sys/types.h>
 
440
#endif
 
441
#if HAVE_SYS_STAT_H
 
442
# include <sys/stat.h>
 
443
#endif
 
444
#if STDC_HEADERS
 
445
# include <stdlib.h>
 
446
# include <stddef.h>
 
447
#else
 
448
# if HAVE_STDLIB_H
 
449
#  include <stdlib.h>
 
450
# endif
 
451
#endif
 
452
#if HAVE_STRING_H
 
453
# if !STDC_HEADERS && HAVE_MEMORY_H
 
454
#  include <memory.h>
 
455
# endif
 
456
# include <string.h>
 
457
#endif
 
458
#if HAVE_STRINGS_H
 
459
# include <strings.h>
 
460
#endif
 
461
#if HAVE_INTTYPES_H
 
462
# include <inttypes.h>
 
463
#else
 
464
# if HAVE_STDINT_H
 
465
#  include <stdint.h>
 
466
# endif
 
467
#endif
 
468
#if HAVE_UNISTD_H
 
469
# include <unistd.h>
 
470
#endif"
 
471
 
 
472
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL FT2_CONFIG FT2_CFLAGS FT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GL_CFLAGS GL_LIBS HAVE_GLUT GLUT_CFLAGS GLUT_LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA DOXYGEN LIBOBJS LTLIBOBJS'
 
473
ac_subst_files=''
 
474
 
 
475
# Initialize some variables set by options.
 
476
ac_init_help=
 
477
ac_init_version=false
 
478
# The variables have the same names as the options, with
 
479
# dashes changed to underlines.
 
480
cache_file=/dev/null
 
481
exec_prefix=NONE
 
482
no_create=
 
483
no_recursion=
 
484
prefix=NONE
 
485
program_prefix=NONE
 
486
program_suffix=NONE
 
487
program_transform_name=s,x,x,
 
488
silent=
 
489
site=
 
490
srcdir=
 
491
verbose=
 
492
x_includes=NONE
 
493
x_libraries=NONE
 
494
 
 
495
# Installation directory options.
 
496
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
497
# and all the variables that are supposed to be based on exec_prefix
 
498
# by default will actually change.
 
499
# Use braces instead of parens because sh, perl, etc. also accept them.
 
500
bindir='${exec_prefix}/bin'
 
501
sbindir='${exec_prefix}/sbin'
 
502
libexecdir='${exec_prefix}/libexec'
 
503
datadir='${prefix}/share'
 
504
sysconfdir='${prefix}/etc'
 
505
sharedstatedir='${prefix}/com'
 
506
localstatedir='${prefix}/var'
 
507
libdir='${exec_prefix}/lib'
 
508
includedir='${prefix}/include'
 
509
oldincludedir='/usr/include'
 
510
infodir='${prefix}/info'
 
511
mandir='${prefix}/man'
 
512
 
 
513
ac_prev=
 
514
for ac_option
 
515
do
 
516
  # If the previous option needs an argument, assign it.
 
517
  if test -n "$ac_prev"; then
 
518
    eval "$ac_prev=\$ac_option"
 
519
    ac_prev=
 
520
    continue
 
521
  fi
 
522
 
 
523
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
524
 
 
525
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
526
 
 
527
  case $ac_option in
 
528
 
 
529
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
530
    ac_prev=bindir ;;
 
531
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
532
    bindir=$ac_optarg ;;
 
533
 
 
534
  -build | --build | --buil | --bui | --bu)
 
535
    ac_prev=build_alias ;;
 
536
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
537
    build_alias=$ac_optarg ;;
 
538
 
 
539
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
540
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
541
    ac_prev=cache_file ;;
 
542
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
543
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
544
    cache_file=$ac_optarg ;;
 
545
 
 
546
  --config-cache | -C)
 
547
    cache_file=config.cache ;;
 
548
 
 
549
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
550
    ac_prev=datadir ;;
 
551
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
552
  | --da=*)
 
553
    datadir=$ac_optarg ;;
 
554
 
 
555
  -disable-* | --disable-*)
 
556
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
557
    # Reject names that are not valid shell variable names.
 
558
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
559
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
560
   { (exit 1); exit 1; }; }
 
561
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
562
    eval "enable_$ac_feature=no" ;;
 
563
 
 
564
  -enable-* | --enable-*)
 
565
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
566
    # Reject names that are not valid shell variable names.
 
567
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
568
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
569
   { (exit 1); exit 1; }; }
 
570
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
571
    case $ac_option in
 
572
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
573
      *) ac_optarg=yes ;;
 
574
    esac
 
575
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
576
 
 
577
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
578
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
579
  | --exec | --exe | --ex)
 
580
    ac_prev=exec_prefix ;;
 
581
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
582
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
583
  | --exec=* | --exe=* | --ex=*)
 
584
    exec_prefix=$ac_optarg ;;
 
585
 
 
586
  -gas | --gas | --ga | --g)
 
587
    # Obsolete; use --with-gas.
 
588
    with_gas=yes ;;
 
589
 
 
590
  -help | --help | --hel | --he | -h)
 
591
    ac_init_help=long ;;
 
592
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
593
    ac_init_help=recursive ;;
 
594
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
595
    ac_init_help=short ;;
 
596
 
 
597
  -host | --host | --hos | --ho)
 
598
    ac_prev=host_alias ;;
 
599
  -host=* | --host=* | --hos=* | --ho=*)
 
600
    host_alias=$ac_optarg ;;
 
601
 
 
602
  -includedir | --includedir | --includedi | --included | --include \
 
603
  | --includ | --inclu | --incl | --inc)
 
604
    ac_prev=includedir ;;
 
605
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
606
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
607
    includedir=$ac_optarg ;;
 
608
 
 
609
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
610
    ac_prev=infodir ;;
 
611
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
612
    infodir=$ac_optarg ;;
 
613
 
 
614
  -libdir | --libdir | --libdi | --libd)
 
615
    ac_prev=libdir ;;
 
616
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
617
    libdir=$ac_optarg ;;
 
618
 
 
619
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
620
  | --libexe | --libex | --libe)
 
621
    ac_prev=libexecdir ;;
 
622
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
623
  | --libexe=* | --libex=* | --libe=*)
 
624
    libexecdir=$ac_optarg ;;
 
625
 
 
626
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
627
  | --localstate | --localstat | --localsta | --localst \
 
628
  | --locals | --local | --loca | --loc | --lo)
 
629
    ac_prev=localstatedir ;;
 
630
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
631
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
632
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
633
    localstatedir=$ac_optarg ;;
 
634
 
 
635
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
636
    ac_prev=mandir ;;
 
637
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
638
    mandir=$ac_optarg ;;
 
639
 
 
640
  -nfp | --nfp | --nf)
 
641
    # Obsolete; use --without-fp.
 
642
    with_fp=no ;;
 
643
 
 
644
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
645
  | --no-cr | --no-c | -n)
 
646
    no_create=yes ;;
 
647
 
 
648
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
649
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
650
    no_recursion=yes ;;
 
651
 
 
652
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
653
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
654
  | --oldin | --oldi | --old | --ol | --o)
 
655
    ac_prev=oldincludedir ;;
 
656
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
657
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
658
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
659
    oldincludedir=$ac_optarg ;;
 
660
 
 
661
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
662
    ac_prev=prefix ;;
 
663
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
664
    prefix=$ac_optarg ;;
 
665
 
 
666
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
667
  | --program-pre | --program-pr | --program-p)
 
668
    ac_prev=program_prefix ;;
 
669
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
670
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
671
    program_prefix=$ac_optarg ;;
 
672
 
 
673
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
674
  | --program-suf | --program-su | --program-s)
 
675
    ac_prev=program_suffix ;;
 
676
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
677
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
678
    program_suffix=$ac_optarg ;;
 
679
 
 
680
  -program-transform-name | --program-transform-name \
 
681
  | --program-transform-nam | --program-transform-na \
 
682
  | --program-transform-n | --program-transform- \
 
683
  | --program-transform | --program-transfor \
 
684
  | --program-transfo | --program-transf \
 
685
  | --program-trans | --program-tran \
 
686
  | --progr-tra | --program-tr | --program-t)
 
687
    ac_prev=program_transform_name ;;
 
688
  -program-transform-name=* | --program-transform-name=* \
 
689
  | --program-transform-nam=* | --program-transform-na=* \
 
690
  | --program-transform-n=* | --program-transform-=* \
 
691
  | --program-transform=* | --program-transfor=* \
 
692
  | --program-transfo=* | --program-transf=* \
 
693
  | --program-trans=* | --program-tran=* \
 
694
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
695
    program_transform_name=$ac_optarg ;;
 
696
 
 
697
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
698
  | -silent | --silent | --silen | --sile | --sil)
 
699
    silent=yes ;;
 
700
 
 
701
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
702
    ac_prev=sbindir ;;
 
703
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
704
  | --sbi=* | --sb=*)
 
705
    sbindir=$ac_optarg ;;
 
706
 
 
707
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
708
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
709
  | --sharedst | --shareds | --shared | --share | --shar \
 
710
  | --sha | --sh)
 
711
    ac_prev=sharedstatedir ;;
 
712
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
713
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
714
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
715
  | --sha=* | --sh=*)
 
716
    sharedstatedir=$ac_optarg ;;
 
717
 
 
718
  -site | --site | --sit)
 
719
    ac_prev=site ;;
 
720
  -site=* | --site=* | --sit=*)
 
721
    site=$ac_optarg ;;
 
722
 
 
723
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
724
    ac_prev=srcdir ;;
 
725
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
726
    srcdir=$ac_optarg ;;
 
727
 
 
728
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
729
  | --syscon | --sysco | --sysc | --sys | --sy)
 
730
    ac_prev=sysconfdir ;;
 
731
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
732
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
733
    sysconfdir=$ac_optarg ;;
 
734
 
 
735
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
736
    ac_prev=target_alias ;;
 
737
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
738
    target_alias=$ac_optarg ;;
 
739
 
 
740
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
741
    verbose=yes ;;
 
742
 
 
743
  -version | --version | --versio | --versi | --vers | -V)
 
744
    ac_init_version=: ;;
 
745
 
 
746
  -with-* | --with-*)
 
747
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
748
    # Reject names that are not valid shell variable names.
 
749
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
750
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
751
   { (exit 1); exit 1; }; }
 
752
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
753
    case $ac_option in
 
754
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
755
      *) ac_optarg=yes ;;
 
756
    esac
 
757
    eval "with_$ac_package='$ac_optarg'" ;;
 
758
 
 
759
  -without-* | --without-*)
 
760
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
761
    # Reject names that are not valid shell variable names.
 
762
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
763
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
764
   { (exit 1); exit 1; }; }
 
765
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
766
    eval "with_$ac_package=no" ;;
 
767
 
 
768
  --x)
 
769
    # Obsolete; use --with-x.
 
770
    with_x=yes ;;
 
771
 
 
772
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
773
  | --x-incl | --x-inc | --x-in | --x-i)
 
774
    ac_prev=x_includes ;;
 
775
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
776
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
777
    x_includes=$ac_optarg ;;
 
778
 
 
779
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
780
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
781
    ac_prev=x_libraries ;;
 
782
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
783
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
784
    x_libraries=$ac_optarg ;;
 
785
 
 
786
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
787
Try \`$0 --help' for more information." >&2
 
788
   { (exit 1); exit 1; }; }
 
789
    ;;
 
790
 
 
791
  *=*)
 
792
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
793
    # Reject names that are not valid shell variable names.
 
794
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
795
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
796
   { (exit 1); exit 1; }; }
 
797
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
798
    eval "$ac_envvar='$ac_optarg'"
 
799
    export $ac_envvar ;;
 
800
 
 
801
  *)
 
802
    # FIXME: should be removed in autoconf 3.0.
 
803
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
804
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
805
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
806
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
807
    ;;
 
808
 
 
809
  esac
 
810
done
 
811
 
 
812
if test -n "$ac_prev"; then
 
813
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
814
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
815
   { (exit 1); exit 1; }; }
 
816
fi
 
817
 
 
818
# Be sure to have absolute paths.
 
819
for ac_var in exec_prefix prefix
 
820
do
 
821
  eval ac_val=$`echo $ac_var`
 
822
  case $ac_val in
 
823
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
824
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
825
   { (exit 1); exit 1; }; };;
 
826
  esac
 
827
done
 
828
 
 
829
# Be sure to have absolute paths.
 
830
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
831
              localstatedir libdir includedir oldincludedir infodir mandir
 
832
do
 
833
  eval ac_val=$`echo $ac_var`
 
834
  case $ac_val in
 
835
    [\\/$]* | ?:[\\/]* ) ;;
 
836
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
837
   { (exit 1); exit 1; }; };;
 
838
  esac
 
839
done
 
840
 
 
841
# There might be people who depend on the old broken behavior: `$host'
 
842
# used to hold the argument of --host etc.
 
843
# FIXME: To remove some day.
 
844
build=$build_alias
 
845
host=$host_alias
 
846
target=$target_alias
 
847
 
 
848
# FIXME: To remove some day.
 
849
if test "x$host_alias" != x; then
 
850
  if test "x$build_alias" = x; then
 
851
    cross_compiling=maybe
 
852
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
853
    If a cross compiler is detected then cross compile mode will be used." >&2
 
854
  elif test "x$build_alias" != "x$host_alias"; then
 
855
    cross_compiling=yes
 
856
  fi
 
857
fi
 
858
 
 
859
ac_tool_prefix=
 
860
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
861
 
 
862
test "$silent" = yes && exec 6>/dev/null
 
863
 
 
864
 
 
865
# Find the source files, if location was not specified.
 
866
if test -z "$srcdir"; then
 
867
  ac_srcdir_defaulted=yes
 
868
  # Try the directory containing this script, then its parent.
 
869
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
870
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
871
         X"$0" : 'X\(//\)[^/]' \| \
 
872
         X"$0" : 'X\(//\)$' \| \
 
873
         X"$0" : 'X\(/\)' \| \
 
874
         .     : '\(.\)' 2>/dev/null ||
 
875
echo X"$0" |
 
876
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
877
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
878
          /^X\(\/\/\)$/{ s//\1/; q; }
 
879
          /^X\(\/\).*/{ s//\1/; q; }
 
880
          s/.*/./; q'`
 
881
  srcdir=$ac_confdir
 
882
  if test ! -r $srcdir/$ac_unique_file; then
 
883
    srcdir=..
 
884
  fi
 
885
else
 
886
  ac_srcdir_defaulted=no
 
887
fi
 
888
if test ! -r $srcdir/$ac_unique_file; then
 
889
  if test "$ac_srcdir_defaulted" = yes; then
 
890
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
891
   { (exit 1); exit 1; }; }
 
892
  else
 
893
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
894
   { (exit 1); exit 1; }; }
 
895
  fi
 
896
fi
 
897
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
898
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
899
   { (exit 1); exit 1; }; }
 
900
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
901
ac_env_build_alias_set=${build_alias+set}
 
902
ac_env_build_alias_value=$build_alias
 
903
ac_cv_env_build_alias_set=${build_alias+set}
 
904
ac_cv_env_build_alias_value=$build_alias
 
905
ac_env_host_alias_set=${host_alias+set}
 
906
ac_env_host_alias_value=$host_alias
 
907
ac_cv_env_host_alias_set=${host_alias+set}
 
908
ac_cv_env_host_alias_value=$host_alias
 
909
ac_env_target_alias_set=${target_alias+set}
 
910
ac_env_target_alias_value=$target_alias
 
911
ac_cv_env_target_alias_set=${target_alias+set}
 
912
ac_cv_env_target_alias_value=$target_alias
 
913
ac_env_CXX_set=${CXX+set}
 
914
ac_env_CXX_value=$CXX
 
915
ac_cv_env_CXX_set=${CXX+set}
 
916
ac_cv_env_CXX_value=$CXX
 
917
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
918
ac_env_CXXFLAGS_value=$CXXFLAGS
 
919
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
920
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
921
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
922
ac_env_LDFLAGS_value=$LDFLAGS
 
923
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
924
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
925
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
926
ac_env_CPPFLAGS_value=$CPPFLAGS
 
927
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
928
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
929
ac_env_CC_set=${CC+set}
 
930
ac_env_CC_value=$CC
 
931
ac_cv_env_CC_set=${CC+set}
 
932
ac_cv_env_CC_value=$CC
 
933
ac_env_CFLAGS_set=${CFLAGS+set}
 
934
ac_env_CFLAGS_value=$CFLAGS
 
935
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
936
ac_cv_env_CFLAGS_value=$CFLAGS
 
937
ac_env_CPP_set=${CPP+set}
 
938
ac_env_CPP_value=$CPP
 
939
ac_cv_env_CPP_set=${CPP+set}
 
940
ac_cv_env_CPP_value=$CPP
 
941
 
 
942
#
 
943
# Report the --help message.
 
944
#
 
945
if test "$ac_init_help" = "long"; then
 
946
  # Omit some internal or obsolete options to make the list less imposing.
 
947
  # This message is too long to be a string in the A/UX 3.1 sh.
 
948
  cat <<_ACEOF
 
949
\`configure' configures ftgl 2.0.5 to adapt to many kinds of systems.
 
950
 
 
951
Usage: $0 [OPTION]... [VAR=VALUE]...
 
952
 
 
953
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
954
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
955
 
 
956
Defaults for the options are specified in brackets.
 
957
 
 
958
Configuration:
 
959
  -h, --help              display this help and exit
 
960
      --help=short        display options specific to this package
 
961
      --help=recursive    display the short help of all the included packages
 
962
  -V, --version           display version information and exit
 
963
  -q, --quiet, --silent   do not print \`checking...' messages
 
964
      --cache-file=FILE   cache test results in FILE [disabled]
 
965
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
966
  -n, --no-create         do not create output files
 
967
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
968
 
 
969
_ACEOF
 
970
 
 
971
  cat <<_ACEOF
 
972
Installation directories:
 
973
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
974
                          [$ac_default_prefix]
 
975
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
976
                          [PREFIX]
 
977
 
 
978
By default, \`make install' will install all the files in
 
979
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
980
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
981
for instance \`--prefix=\$HOME'.
 
982
 
 
983
For better control, use the options below.
 
984
 
 
985
Fine tuning of the installation directories:
 
986
  --bindir=DIR           user executables [EPREFIX/bin]
 
987
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
988
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
989
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
990
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
991
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
992
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
993
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
994
  --includedir=DIR       C header files [PREFIX/include]
 
995
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
996
  --infodir=DIR          info documentation [PREFIX/info]
 
997
  --mandir=DIR           man documentation [PREFIX/man]
 
998
_ACEOF
 
999
 
 
1000
  cat <<\_ACEOF
 
1001
 
 
1002
X features:
 
1003
  --x-includes=DIR    X include files are in DIR
 
1004
  --x-libraries=DIR   X library files are in DIR
 
1005
 
 
1006
System types:
 
1007
  --build=BUILD     configure for building on BUILD [guessed]
 
1008
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1009
_ACEOF
 
1010
fi
 
1011
 
 
1012
if test -n "$ac_init_help"; then
 
1013
  case $ac_init_help in
 
1014
     short | recursive ) echo "Configuration of ftgl 2.0.5:";;
 
1015
   esac
 
1016
  cat <<\_ACEOF
 
1017
 
 
1018
Optional Features:
 
1019
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1020
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1021
  --enable-shared=PKGS  build shared libraries default=no
 
1022
  --enable-static=PKGS  build static libraries default=yes
 
1023
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
1024
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1025
  --disable-freetypetest  Do not try to compile and run a test FreeType program
 
1026
 
 
1027
Optional Packages:
 
1028
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1029
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1030
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1031
  --with-pic              try to use only PIC/non-PIC objects default=use both
 
1032
  --with-x                use the X Window System
 
1033
  --with-ft-prefix=PFX      Prefix where FreeType is installed (optional)
 
1034
  --with-ft-exec-prefix=PFX Exec prefix where FreeType is installed (optional)
 
1035
  --with-gl-inc=DIR       Directory where GL/gl.h is installed
 
1036
  --with-gl-lib=DIR       Directory where OpenGL libraries are installed
 
1037
  --with-glut-inc=DIR     Directory where GL/glut.h is installed (optional)
 
1038
  --with-glut-lib=DIR     Directory where GLUT libraries are installed
 
1039
                          (optional)
 
1040
 
 
1041
Some influential environment variables:
 
1042
  CXX         C++ compiler command
 
1043
  CXXFLAGS    C++ compiler flags
 
1044
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1045
              nonstandard directory <lib dir>
 
1046
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1047
              headers in a nonstandard directory <include dir>
 
1048
  CC          C compiler command
 
1049
  CFLAGS      C compiler flags
 
1050
  CPP         C preprocessor
 
1051
 
 
1052
Use these variables to override the choices made by `configure' or to help
 
1053
it to find libraries and programs with nonstandard names/locations.
 
1054
 
 
1055
Report bugs to <henryj@paradise.net.nz>.
 
1056
_ACEOF
 
1057
fi
 
1058
 
 
1059
if test "$ac_init_help" = "recursive"; then
 
1060
  # If there are subdirs, report their specific --help.
 
1061
  ac_popdir=`pwd`
 
1062
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1063
    test -d $ac_dir || continue
 
1064
    ac_builddir=.
 
1065
 
 
1066
if test "$ac_dir" != .; then
 
1067
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1068
  # A "../" for each directory in $ac_dir_suffix.
 
1069
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1070
else
 
1071
  ac_dir_suffix= ac_top_builddir=
 
1072
fi
 
1073
 
 
1074
case $srcdir in
 
1075
  .)  # No --srcdir option.  We are building in place.
 
1076
    ac_srcdir=.
 
1077
    if test -z "$ac_top_builddir"; then
 
1078
       ac_top_srcdir=.
 
1079
    else
 
1080
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1081
    fi ;;
 
1082
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1083
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1084
    ac_top_srcdir=$srcdir ;;
 
1085
  *) # Relative path.
 
1086
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1087
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1088
esac
 
1089
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
1090
# absolute.
 
1091
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
1092
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
1093
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
1094
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1095
 
 
1096
    cd $ac_dir
 
1097
    # Check for guested configure; otherwise get Cygnus style configure.
 
1098
    if test -f $ac_srcdir/configure.gnu; then
 
1099
      echo
 
1100
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1101
    elif test -f $ac_srcdir/configure; then
 
1102
      echo
 
1103
      $SHELL $ac_srcdir/configure  --help=recursive
 
1104
    elif test -f $ac_srcdir/configure.ac ||
 
1105
           test -f $ac_srcdir/configure.in; then
 
1106
      echo
 
1107
      $ac_configure --help
 
1108
    else
 
1109
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1110
    fi
 
1111
    cd $ac_popdir
 
1112
  done
 
1113
fi
 
1114
 
 
1115
test -n "$ac_init_help" && exit 0
 
1116
if $ac_init_version; then
 
1117
  cat <<\_ACEOF
 
1118
ftgl configure 2.0.5
 
1119
generated by GNU Autoconf 2.57
 
1120
 
 
1121
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
1122
Free Software Foundation, Inc.
 
1123
This configure script is free software; the Free Software Foundation
 
1124
gives unlimited permission to copy, distribute and modify it.
 
1125
_ACEOF
 
1126
  exit 0
 
1127
fi
 
1128
exec 5>config.log
 
1129
cat >&5 <<_ACEOF
 
1130
This file contains any messages produced by compilers while
 
1131
running configure, to aid debugging if configure makes a mistake.
 
1132
 
 
1133
It was created by ftgl $as_me 2.0.5, which was
 
1134
generated by GNU Autoconf 2.57.  Invocation command line was
 
1135
 
 
1136
  $ $0 $@
 
1137
 
 
1138
_ACEOF
 
1139
{
 
1140
cat <<_ASUNAME
 
1141
## --------- ##
 
1142
## Platform. ##
 
1143
## --------- ##
 
1144
 
 
1145
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1146
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1147
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1148
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1149
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1150
 
 
1151
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1152
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1153
 
 
1154
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1155
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1156
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1157
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1158
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1159
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1160
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1161
 
 
1162
_ASUNAME
 
1163
 
 
1164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1165
for as_dir in $PATH
 
1166
do
 
1167
  IFS=$as_save_IFS
 
1168
  test -z "$as_dir" && as_dir=.
 
1169
  echo "PATH: $as_dir"
 
1170
done
 
1171
 
 
1172
} >&5
 
1173
 
 
1174
cat >&5 <<_ACEOF
 
1175
 
 
1176
 
 
1177
## ----------- ##
 
1178
## Core tests. ##
 
1179
## ----------- ##
 
1180
 
 
1181
_ACEOF
 
1182
 
 
1183
 
 
1184
# Keep a trace of the command line.
 
1185
# Strip out --no-create and --no-recursion so they do not pile up.
 
1186
# Strip out --silent because we don't want to record it for future runs.
 
1187
# Also quote any args containing shell meta-characters.
 
1188
# Make two passes to allow for proper duplicate-argument suppression.
 
1189
ac_configure_args=
 
1190
ac_configure_args0=
 
1191
ac_configure_args1=
 
1192
ac_sep=
 
1193
ac_must_keep_next=false
 
1194
for ac_pass in 1 2
 
1195
do
 
1196
  for ac_arg
 
1197
  do
 
1198
    case $ac_arg in
 
1199
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1200
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1201
    | -silent | --silent | --silen | --sile | --sil)
 
1202
      continue ;;
 
1203
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1204
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1205
    esac
 
1206
    case $ac_pass in
 
1207
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1208
    2)
 
1209
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1210
      if test $ac_must_keep_next = true; then
 
1211
        ac_must_keep_next=false # Got value, back to normal.
 
1212
      else
 
1213
        case $ac_arg in
 
1214
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1215
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1216
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1217
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1218
            case "$ac_configure_args0 " in
 
1219
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1220
            esac
 
1221
            ;;
 
1222
          -* ) ac_must_keep_next=true ;;
 
1223
        esac
 
1224
      fi
 
1225
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1226
      # Get rid of the leading space.
 
1227
      ac_sep=" "
 
1228
      ;;
 
1229
    esac
 
1230
  done
 
1231
done
 
1232
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1233
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1234
 
 
1235
# When interrupted or exit'd, cleanup temporary files, and complete
 
1236
# config.log.  We remove comments because anyway the quotes in there
 
1237
# would cause problems or look ugly.
 
1238
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1239
# such as our DU 5.0 friend, will then `close' the trap.
 
1240
trap 'exit_status=$?
 
1241
  # Save into config.log some information that might help in debugging.
 
1242
  {
 
1243
    echo
 
1244
 
 
1245
    cat <<\_ASBOX
 
1246
## ---------------- ##
 
1247
## Cache variables. ##
 
1248
## ---------------- ##
 
1249
_ASBOX
 
1250
    echo
 
1251
    # The following way of writing the cache mishandles newlines in values,
 
1252
{
 
1253
  (set) 2>&1 |
 
1254
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1255
    *ac_space=\ *)
 
1256
      sed -n \
 
1257
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1258
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1259
      ;;
 
1260
    *)
 
1261
      sed -n \
 
1262
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1263
      ;;
 
1264
    esac;
 
1265
}
 
1266
    echo
 
1267
 
 
1268
    cat <<\_ASBOX
 
1269
## ----------------- ##
 
1270
## Output variables. ##
 
1271
## ----------------- ##
 
1272
_ASBOX
 
1273
    echo
 
1274
    for ac_var in $ac_subst_vars
 
1275
    do
 
1276
      eval ac_val=$`echo $ac_var`
 
1277
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1278
    done | sort
 
1279
    echo
 
1280
 
 
1281
    if test -n "$ac_subst_files"; then
 
1282
      cat <<\_ASBOX
 
1283
## ------------- ##
 
1284
## Output files. ##
 
1285
## ------------- ##
 
1286
_ASBOX
 
1287
      echo
 
1288
      for ac_var in $ac_subst_files
 
1289
      do
 
1290
        eval ac_val=$`echo $ac_var`
 
1291
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1292
      done | sort
 
1293
      echo
 
1294
    fi
 
1295
 
 
1296
    if test -s confdefs.h; then
 
1297
      cat <<\_ASBOX
 
1298
## ----------- ##
 
1299
## confdefs.h. ##
 
1300
## ----------- ##
 
1301
_ASBOX
 
1302
      echo
 
1303
      sed "/^$/d" confdefs.h | sort
 
1304
      echo
 
1305
    fi
 
1306
    test "$ac_signal" != 0 &&
 
1307
      echo "$as_me: caught signal $ac_signal"
 
1308
    echo "$as_me: exit $exit_status"
 
1309
  } >&5
 
1310
  rm -f core core.* *.core &&
 
1311
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1312
    exit $exit_status
 
1313
     ' 0
 
1314
for ac_signal in 1 2 13 15; do
 
1315
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1316
done
 
1317
ac_signal=0
 
1318
 
 
1319
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1320
rm -rf conftest* confdefs.h
 
1321
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1322
echo >confdefs.h
 
1323
 
 
1324
# Predefined preprocessor variables.
 
1325
 
 
1326
cat >>confdefs.h <<_ACEOF
 
1327
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1328
_ACEOF
 
1329
 
 
1330
 
 
1331
cat >>confdefs.h <<_ACEOF
 
1332
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1333
_ACEOF
 
1334
 
 
1335
 
 
1336
cat >>confdefs.h <<_ACEOF
 
1337
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1338
_ACEOF
 
1339
 
 
1340
 
 
1341
cat >>confdefs.h <<_ACEOF
 
1342
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1343
_ACEOF
 
1344
 
 
1345
 
 
1346
cat >>confdefs.h <<_ACEOF
 
1347
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1348
_ACEOF
 
1349
 
 
1350
 
 
1351
# Let the site file select an alternate cache file if it wants to.
 
1352
# Prefer explicitly selected file to automatically selected ones.
 
1353
if test -z "$CONFIG_SITE"; then
 
1354
  if test "x$prefix" != xNONE; then
 
1355
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1356
  else
 
1357
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1358
  fi
 
1359
fi
 
1360
for ac_site_file in $CONFIG_SITE; do
 
1361
  if test -r "$ac_site_file"; then
 
1362
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1363
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1364
    sed 's/^/| /' "$ac_site_file" >&5
 
1365
    . "$ac_site_file"
 
1366
  fi
 
1367
done
 
1368
 
 
1369
if test -r "$cache_file"; then
 
1370
  # Some versions of bash will fail to source /dev/null (special
 
1371
  # files actually), so we avoid doing that.
 
1372
  if test -f "$cache_file"; then
 
1373
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1374
echo "$as_me: loading cache $cache_file" >&6;}
 
1375
    case $cache_file in
 
1376
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1377
      *)                      . ./$cache_file;;
 
1378
    esac
 
1379
  fi
 
1380
else
 
1381
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1382
echo "$as_me: creating cache $cache_file" >&6;}
 
1383
  >$cache_file
 
1384
fi
 
1385
 
 
1386
# Check that the precious variables saved in the cache have kept the same
 
1387
# value.
 
1388
ac_cache_corrupted=false
 
1389
for ac_var in `(set) 2>&1 |
 
1390
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1391
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1392
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1393
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1394
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1395
  case $ac_old_set,$ac_new_set in
 
1396
    set,)
 
1397
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1398
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1399
      ac_cache_corrupted=: ;;
 
1400
    ,set)
 
1401
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1402
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1403
      ac_cache_corrupted=: ;;
 
1404
    ,);;
 
1405
    *)
 
1406
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1407
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1408
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1409
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1410
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1411
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1412
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1413
        ac_cache_corrupted=:
 
1414
      fi;;
 
1415
  esac
 
1416
  # Pass precious variables to config.status.
 
1417
  if test "$ac_new_set" = set; then
 
1418
    case $ac_new_val in
 
1419
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1420
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1421
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1422
    esac
 
1423
    case " $ac_configure_args " in
 
1424
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1425
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1426
    esac
 
1427
  fi
 
1428
done
 
1429
if $ac_cache_corrupted; then
 
1430
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1431
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1432
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1433
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1434
   { (exit 1); exit 1; }; }
 
1435
fi
 
1436
 
 
1437
ac_ext=c
 
1438
ac_cpp='$CPP $CPPFLAGS'
 
1439
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1440
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1441
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1442
 
 
1443
 
 
1444
 
 
1445
 
 
1446
 
 
1447
 
 
1448
 
 
1449
 
 
1450
 
 
1451
 
 
1452
 
 
1453
 
 
1454
 
 
1455
 
 
1456
 
 
1457
 
 
1458
 
 
1459
 
 
1460
 
 
1461
 
 
1462
 
 
1463
 
 
1464
 
 
1465
 
 
1466
 
 
1467
 
 
1468
 
 
1469
 
 
1470
 
 
1471
ac_aux_dir=
 
1472
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1473
  if test -f $ac_dir/install-sh; then
 
1474
    ac_aux_dir=$ac_dir
 
1475
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1476
    break
 
1477
  elif test -f $ac_dir/install.sh; then
 
1478
    ac_aux_dir=$ac_dir
 
1479
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1480
    break
 
1481
  elif test -f $ac_dir/shtool; then
 
1482
    ac_aux_dir=$ac_dir
 
1483
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1484
    break
 
1485
  fi
 
1486
done
 
1487
if test -z "$ac_aux_dir"; then
 
1488
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1489
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1490
   { (exit 1); exit 1; }; }
 
1491
fi
 
1492
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1493
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1494
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1495
 
 
1496
# Make sure we can run config.sub.
 
1497
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1498
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1499
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1500
   { (exit 1); exit 1; }; }
 
1501
 
 
1502
echo "$as_me:$LINENO: checking build system type" >&5
 
1503
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1504
if test "${ac_cv_build+set}" = set; then
 
1505
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1506
else
 
1507
  ac_cv_build_alias=$build_alias
 
1508
test -z "$ac_cv_build_alias" &&
 
1509
  ac_cv_build_alias=`$ac_config_guess`
 
1510
test -z "$ac_cv_build_alias" &&
 
1511
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1512
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1513
   { (exit 1); exit 1; }; }
 
1514
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1515
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1516
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1517
   { (exit 1); exit 1; }; }
 
1518
 
 
1519
fi
 
1520
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1521
echo "${ECHO_T}$ac_cv_build" >&6
 
1522
build=$ac_cv_build
 
1523
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1524
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1525
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1526
 
 
1527
 
 
1528
echo "$as_me:$LINENO: checking host system type" >&5
 
1529
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1530
if test "${ac_cv_host+set}" = set; then
 
1531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1532
else
 
1533
  ac_cv_host_alias=$host_alias
 
1534
test -z "$ac_cv_host_alias" &&
 
1535
  ac_cv_host_alias=$ac_cv_build_alias
 
1536
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1537
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1538
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1539
   { (exit 1); exit 1; }; }
 
1540
 
 
1541
fi
 
1542
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1543
echo "${ECHO_T}$ac_cv_host" >&6
 
1544
host=$ac_cv_host
 
1545
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1546
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1547
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1548
 
 
1549
 
 
1550
 
 
1551
if test "$build" = "$host" ; then
 
1552
    case "$build" in
 
1553
        *-*-irix*)
 
1554
            if test -z "$CXX" ; then
 
1555
                CXX=CC
 
1556
            fi
 
1557
            if test -z "$CC" ; then
 
1558
                CC=cc
 
1559
            fi
 
1560
            if test x$CXX = xCC -a -z "$CXXFLAGS" ; then
 
1561
                # It might be worthwhile to move this out of here, say
 
1562
                # EXTRA_CXXFLAGS.  Forcing -n32 might cause trouble, too.
 
1563
                CXXFLAGS="-LANG:std -n32 -woff 1201 -O3"
 
1564
            fi
 
1565
        ;;
 
1566
    esac
 
1567
fi
 
1568
 
 
1569
ac_ext=cc
 
1570
ac_cpp='$CXXCPP $CPPFLAGS'
 
1571
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1572
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1573
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
1574
if test -n "$ac_tool_prefix"; then
 
1575
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
1576
  do
 
1577
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1578
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1579
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1580
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1581
if test "${ac_cv_prog_CXX+set}" = set; then
 
1582
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1583
else
 
1584
  if test -n "$CXX"; then
 
1585
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
1586
else
 
1587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1588
for as_dir in $PATH
 
1589
do
 
1590
  IFS=$as_save_IFS
 
1591
  test -z "$as_dir" && as_dir=.
 
1592
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1593
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1594
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
1595
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1596
    break 2
 
1597
  fi
 
1598
done
 
1599
done
 
1600
 
 
1601
fi
 
1602
fi
 
1603
CXX=$ac_cv_prog_CXX
 
1604
if test -n "$CXX"; then
 
1605
  echo "$as_me:$LINENO: result: $CXX" >&5
 
1606
echo "${ECHO_T}$CXX" >&6
 
1607
else
 
1608
  echo "$as_me:$LINENO: result: no" >&5
 
1609
echo "${ECHO_T}no" >&6
 
1610
fi
 
1611
 
 
1612
    test -n "$CXX" && break
 
1613
  done
 
1614
fi
 
1615
if test -z "$CXX"; then
 
1616
  ac_ct_CXX=$CXX
 
1617
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
1618
do
 
1619
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1620
set dummy $ac_prog; ac_word=$2
 
1621
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1622
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1623
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
1624
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1625
else
 
1626
  if test -n "$ac_ct_CXX"; then
 
1627
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
1628
else
 
1629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1630
for as_dir in $PATH
 
1631
do
 
1632
  IFS=$as_save_IFS
 
1633
  test -z "$as_dir" && as_dir=.
 
1634
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1635
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1636
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
1637
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1638
    break 2
 
1639
  fi
 
1640
done
 
1641
done
 
1642
 
 
1643
fi
 
1644
fi
 
1645
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
1646
if test -n "$ac_ct_CXX"; then
 
1647
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
1648
echo "${ECHO_T}$ac_ct_CXX" >&6
 
1649
else
 
1650
  echo "$as_me:$LINENO: result: no" >&5
 
1651
echo "${ECHO_T}no" >&6
 
1652
fi
 
1653
 
 
1654
  test -n "$ac_ct_CXX" && break
 
1655
done
 
1656
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
1657
 
 
1658
  CXX=$ac_ct_CXX
 
1659
fi
 
1660
 
 
1661
 
 
1662
# Provide some information about the compiler.
 
1663
echo "$as_me:$LINENO:" \
 
1664
     "checking for C++ compiler version" >&5
 
1665
ac_compiler=`set X $ac_compile; echo $2`
 
1666
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1667
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1668
  ac_status=$?
 
1669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1670
  (exit $ac_status); }
 
1671
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1672
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1673
  ac_status=$?
 
1674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1675
  (exit $ac_status); }
 
1676
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1677
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1678
  ac_status=$?
 
1679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1680
  (exit $ac_status); }
 
1681
 
 
1682
cat >conftest.$ac_ext <<_ACEOF
 
1683
#line $LINENO "configure"
 
1684
/* confdefs.h.  */
 
1685
_ACEOF
 
1686
cat confdefs.h >>conftest.$ac_ext
 
1687
cat >>conftest.$ac_ext <<_ACEOF
 
1688
/* end confdefs.h.  */
 
1689
 
 
1690
int
 
1691
main ()
 
1692
{
 
1693
 
 
1694
  ;
 
1695
  return 0;
 
1696
}
 
1697
_ACEOF
 
1698
ac_clean_files_save=$ac_clean_files
 
1699
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1700
# Try to create an executable without -o first, disregard a.out.
 
1701
# It will help us diagnose broken compilers, and finding out an intuition
 
1702
# of exeext.
 
1703
echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
 
1704
echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
 
1705
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1706
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1707
  (eval $ac_link_default) 2>&5
 
1708
  ac_status=$?
 
1709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1710
  (exit $ac_status); }; then
 
1711
  # Find the output, starting from the most likely.  This scheme is
 
1712
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1713
# resort.
 
1714
 
 
1715
# Be careful to initialize this variable, since it used to be cached.
 
1716
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1717
ac_cv_exeext=
 
1718
# b.out is created by i960 compilers.
 
1719
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1720
do
 
1721
  test -f "$ac_file" || continue
 
1722
  case $ac_file in
 
1723
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1724
        ;;
 
1725
    conftest.$ac_ext )
 
1726
        # This is the source file.
 
1727
        ;;
 
1728
    [ab].out )
 
1729
        # We found the default executable, but exeext='' is most
 
1730
        # certainly right.
 
1731
        break;;
 
1732
    *.* )
 
1733
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1734
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1735
        # but it would be cool to find out if it's true.  Does anybody
 
1736
        # maintain Libtool? --akim.
 
1737
        export ac_cv_exeext
 
1738
        break;;
 
1739
    * )
 
1740
        break;;
 
1741
  esac
 
1742
done
 
1743
else
 
1744
  echo "$as_me: failed program was:" >&5
 
1745
sed 's/^/| /' conftest.$ac_ext >&5
 
1746
 
 
1747
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
 
1748
See \`config.log' for more details." >&5
 
1749
echo "$as_me: error: C++ compiler cannot create executables
 
1750
See \`config.log' for more details." >&2;}
 
1751
   { (exit 77); exit 77; }; }
 
1752
fi
 
1753
 
 
1754
ac_exeext=$ac_cv_exeext
 
1755
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1756
echo "${ECHO_T}$ac_file" >&6
 
1757
 
 
1758
# Check the compiler produces executables we can run.  If not, either
 
1759
# the compiler is broken, or we cross compile.
 
1760
echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
 
1761
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
 
1762
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1763
# If not cross compiling, check that we can run a simple program.
 
1764
if test "$cross_compiling" != yes; then
 
1765
  if { ac_try='./$ac_file'
 
1766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1767
  (eval $ac_try) 2>&5
 
1768
  ac_status=$?
 
1769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1770
  (exit $ac_status); }; }; then
 
1771
    cross_compiling=no
 
1772
  else
 
1773
    if test "$cross_compiling" = maybe; then
 
1774
        cross_compiling=yes
 
1775
    else
 
1776
        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
 
1777
If you meant to cross compile, use \`--host'.
 
1778
See \`config.log' for more details." >&5
 
1779
echo "$as_me: error: cannot run C++ compiled programs.
 
1780
If you meant to cross compile, use \`--host'.
 
1781
See \`config.log' for more details." >&2;}
 
1782
   { (exit 1); exit 1; }; }
 
1783
    fi
 
1784
  fi
 
1785
fi
 
1786
echo "$as_me:$LINENO: result: yes" >&5
 
1787
echo "${ECHO_T}yes" >&6
 
1788
 
 
1789
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
1790
ac_clean_files=$ac_clean_files_save
 
1791
# Check the compiler produces executables we can run.  If not, either
 
1792
# the compiler is broken, or we cross compile.
 
1793
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
1794
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1795
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
1796
echo "${ECHO_T}$cross_compiling" >&6
 
1797
 
 
1798
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
1799
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
1800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
1801
  (eval $ac_link) 2>&5
 
1802
  ac_status=$?
 
1803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1804
  (exit $ac_status); }; then
 
1805
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1806
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1807
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1808
# `rm'.
 
1809
for ac_file in conftest.exe conftest conftest.*; do
 
1810
  test -f "$ac_file" || continue
 
1811
  case $ac_file in
 
1812
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
1813
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1814
          export ac_cv_exeext
 
1815
          break;;
 
1816
    * ) break;;
 
1817
  esac
 
1818
done
 
1819
else
 
1820
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
1821
See \`config.log' for more details." >&5
 
1822
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
1823
See \`config.log' for more details." >&2;}
 
1824
   { (exit 1); exit 1; }; }
 
1825
fi
 
1826
 
 
1827
rm -f conftest$ac_cv_exeext
 
1828
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
1829
echo "${ECHO_T}$ac_cv_exeext" >&6
 
1830
 
 
1831
rm -f conftest.$ac_ext
 
1832
EXEEXT=$ac_cv_exeext
 
1833
ac_exeext=$EXEEXT
 
1834
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
1835
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
1836
if test "${ac_cv_objext+set}" = set; then
 
1837
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1838
else
 
1839
  cat >conftest.$ac_ext <<_ACEOF
 
1840
#line $LINENO "configure"
 
1841
/* confdefs.h.  */
 
1842
_ACEOF
 
1843
cat confdefs.h >>conftest.$ac_ext
 
1844
cat >>conftest.$ac_ext <<_ACEOF
 
1845
/* end confdefs.h.  */
 
1846
 
 
1847
int
 
1848
main ()
 
1849
{
 
1850
 
 
1851
  ;
 
1852
  return 0;
 
1853
}
 
1854
_ACEOF
 
1855
rm -f conftest.o conftest.obj
 
1856
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1857
  (eval $ac_compile) 2>&5
 
1858
  ac_status=$?
 
1859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1860
  (exit $ac_status); }; then
 
1861
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
1862
  case $ac_file in
 
1863
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
1864
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
1865
       break;;
 
1866
  esac
 
1867
done
 
1868
else
 
1869
  echo "$as_me: failed program was:" >&5
 
1870
sed 's/^/| /' conftest.$ac_ext >&5
 
1871
 
 
1872
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
1873
See \`config.log' for more details." >&5
 
1874
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
1875
See \`config.log' for more details." >&2;}
 
1876
   { (exit 1); exit 1; }; }
 
1877
fi
 
1878
 
 
1879
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
1880
fi
 
1881
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
1882
echo "${ECHO_T}$ac_cv_objext" >&6
 
1883
OBJEXT=$ac_cv_objext
 
1884
ac_objext=$OBJEXT
 
1885
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
1886
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
1887
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
1888
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1889
else
 
1890
  cat >conftest.$ac_ext <<_ACEOF
 
1891
#line $LINENO "configure"
 
1892
/* confdefs.h.  */
 
1893
_ACEOF
 
1894
cat confdefs.h >>conftest.$ac_ext
 
1895
cat >>conftest.$ac_ext <<_ACEOF
 
1896
/* end confdefs.h.  */
 
1897
 
 
1898
int
 
1899
main ()
 
1900
{
 
1901
#ifndef __GNUC__
 
1902
       choke me
 
1903
#endif
 
1904
 
 
1905
  ;
 
1906
  return 0;
 
1907
}
 
1908
_ACEOF
 
1909
rm -f conftest.$ac_objext
 
1910
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1911
  (eval $ac_compile) 2>&5
 
1912
  ac_status=$?
 
1913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1914
  (exit $ac_status); } &&
 
1915
         { ac_try='test -s conftest.$ac_objext'
 
1916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1917
  (eval $ac_try) 2>&5
 
1918
  ac_status=$?
 
1919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1920
  (exit $ac_status); }; }; then
 
1921
  ac_compiler_gnu=yes
 
1922
else
 
1923
  echo "$as_me: failed program was:" >&5
 
1924
sed 's/^/| /' conftest.$ac_ext >&5
 
1925
 
 
1926
ac_compiler_gnu=no
 
1927
fi
 
1928
rm -f conftest.$ac_objext conftest.$ac_ext
 
1929
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
1930
 
 
1931
fi
 
1932
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
1933
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
1934
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
1935
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
1936
ac_save_CXXFLAGS=$CXXFLAGS
 
1937
CXXFLAGS="-g"
 
1938
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
1939
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
1940
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
1941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1942
else
 
1943
  cat >conftest.$ac_ext <<_ACEOF
 
1944
#line $LINENO "configure"
 
1945
/* confdefs.h.  */
 
1946
_ACEOF
 
1947
cat confdefs.h >>conftest.$ac_ext
 
1948
cat >>conftest.$ac_ext <<_ACEOF
 
1949
/* end confdefs.h.  */
 
1950
 
 
1951
int
 
1952
main ()
 
1953
{
 
1954
 
 
1955
  ;
 
1956
  return 0;
 
1957
}
 
1958
_ACEOF
 
1959
rm -f conftest.$ac_objext
 
1960
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1961
  (eval $ac_compile) 2>&5
 
1962
  ac_status=$?
 
1963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1964
  (exit $ac_status); } &&
 
1965
         { ac_try='test -s conftest.$ac_objext'
 
1966
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1967
  (eval $ac_try) 2>&5
 
1968
  ac_status=$?
 
1969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1970
  (exit $ac_status); }; }; then
 
1971
  ac_cv_prog_cxx_g=yes
 
1972
else
 
1973
  echo "$as_me: failed program was:" >&5
 
1974
sed 's/^/| /' conftest.$ac_ext >&5
 
1975
 
 
1976
ac_cv_prog_cxx_g=no
 
1977
fi
 
1978
rm -f conftest.$ac_objext conftest.$ac_ext
 
1979
fi
 
1980
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
1981
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
1982
if test "$ac_test_CXXFLAGS" = set; then
 
1983
  CXXFLAGS=$ac_save_CXXFLAGS
 
1984
elif test $ac_cv_prog_cxx_g = yes; then
 
1985
  if test "$GXX" = yes; then
 
1986
    CXXFLAGS="-g -O2"
 
1987
  else
 
1988
    CXXFLAGS="-g"
 
1989
  fi
 
1990
else
 
1991
  if test "$GXX" = yes; then
 
1992
    CXXFLAGS="-O2"
 
1993
  else
 
1994
    CXXFLAGS=
 
1995
  fi
 
1996
fi
 
1997
for ac_declaration in \
 
1998
   ''\
 
1999
   '#include <stdlib.h>' \
 
2000
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2001
   'extern "C" void std::exit (int); using std::exit;' \
 
2002
   'extern "C" void exit (int) throw ();' \
 
2003
   'extern "C" void exit (int);' \
 
2004
   'void exit (int);'
 
2005
do
 
2006
  cat >conftest.$ac_ext <<_ACEOF
 
2007
#line $LINENO "configure"
 
2008
/* confdefs.h.  */
 
2009
_ACEOF
 
2010
cat confdefs.h >>conftest.$ac_ext
 
2011
cat >>conftest.$ac_ext <<_ACEOF
 
2012
/* end confdefs.h.  */
 
2013
#include <stdlib.h>
 
2014
$ac_declaration
 
2015
int
 
2016
main ()
 
2017
{
 
2018
exit (42);
 
2019
  ;
 
2020
  return 0;
 
2021
}
 
2022
_ACEOF
 
2023
rm -f conftest.$ac_objext
 
2024
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2025
  (eval $ac_compile) 2>&5
 
2026
  ac_status=$?
 
2027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2028
  (exit $ac_status); } &&
 
2029
         { ac_try='test -s conftest.$ac_objext'
 
2030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2031
  (eval $ac_try) 2>&5
 
2032
  ac_status=$?
 
2033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2034
  (exit $ac_status); }; }; then
 
2035
  :
 
2036
else
 
2037
  echo "$as_me: failed program was:" >&5
 
2038
sed 's/^/| /' conftest.$ac_ext >&5
 
2039
 
 
2040
continue
 
2041
fi
 
2042
rm -f conftest.$ac_objext conftest.$ac_ext
 
2043
  cat >conftest.$ac_ext <<_ACEOF
 
2044
#line $LINENO "configure"
 
2045
/* confdefs.h.  */
 
2046
_ACEOF
 
2047
cat confdefs.h >>conftest.$ac_ext
 
2048
cat >>conftest.$ac_ext <<_ACEOF
 
2049
/* end confdefs.h.  */
 
2050
$ac_declaration
 
2051
int
 
2052
main ()
 
2053
{
 
2054
exit (42);
 
2055
  ;
 
2056
  return 0;
 
2057
}
 
2058
_ACEOF
 
2059
rm -f conftest.$ac_objext
 
2060
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2061
  (eval $ac_compile) 2>&5
 
2062
  ac_status=$?
 
2063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2064
  (exit $ac_status); } &&
 
2065
         { ac_try='test -s conftest.$ac_objext'
 
2066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2067
  (eval $ac_try) 2>&5
 
2068
  ac_status=$?
 
2069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2070
  (exit $ac_status); }; }; then
 
2071
  break
 
2072
else
 
2073
  echo "$as_me: failed program was:" >&5
 
2074
sed 's/^/| /' conftest.$ac_ext >&5
 
2075
 
 
2076
fi
 
2077
rm -f conftest.$ac_objext conftest.$ac_ext
 
2078
done
 
2079
rm -f conftest*
 
2080
if test -n "$ac_declaration"; then
 
2081
  echo '#ifdef __cplusplus' >>confdefs.h
 
2082
  echo $ac_declaration      >>confdefs.h
 
2083
  echo '#endif'             >>confdefs.h
 
2084
fi
 
2085
 
 
2086
ac_ext=c
 
2087
ac_cpp='$CPP $CPPFLAGS'
 
2088
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2089
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2090
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2091
 
 
2092
 
 
2093
 
 
2094
# Check whether --enable-shared or --disable-shared was given.
 
2095
if test "${enable_shared+set}" = set; then
 
2096
  enableval="$enable_shared"
 
2097
  p=${PACKAGE-default}
 
2098
case $enableval in
 
2099
yes) enable_shared=yes ;;
 
2100
no) enable_shared=no ;;
 
2101
*)
 
2102
  enable_shared=no
 
2103
  # Look at the argument we got.  We use all the common list separators.
 
2104
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
2105
  for pkg in $enableval; do
 
2106
    if test "X$pkg" = "X$p"; then
 
2107
      enable_shared=yes
 
2108
    fi
 
2109
  done
 
2110
  IFS="$ac_save_ifs"
 
2111
  ;;
 
2112
esac
 
2113
else
 
2114
  enable_shared=no
 
2115
fi;
 
2116
# Check whether --enable-static or --disable-static was given.
 
2117
if test "${enable_static+set}" = set; then
 
2118
  enableval="$enable_static"
 
2119
  p=${PACKAGE-default}
 
2120
case $enableval in
 
2121
yes) enable_static=yes ;;
 
2122
no) enable_static=no ;;
 
2123
*)
 
2124
  enable_static=no
 
2125
  # Look at the argument we got.  We use all the common list separators.
 
2126
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
2127
  for pkg in $enableval; do
 
2128
    if test "X$pkg" = "X$p"; then
 
2129
      enable_static=yes
 
2130
    fi
 
2131
  done
 
2132
  IFS="$ac_save_ifs"
 
2133
  ;;
 
2134
esac
 
2135
else
 
2136
  enable_static=yes
 
2137
fi;
 
2138
# Check whether --enable-fast-install or --disable-fast-install was given.
 
2139
if test "${enable_fast_install+set}" = set; then
 
2140
  enableval="$enable_fast_install"
 
2141
  p=${PACKAGE-default}
 
2142
case $enableval in
 
2143
yes) enable_fast_install=yes ;;
 
2144
no) enable_fast_install=no ;;
 
2145
*)
 
2146
  enable_fast_install=no
 
2147
  # Look at the argument we got.  We use all the common list separators.
 
2148
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
2149
  for pkg in $enableval; do
 
2150
    if test "X$pkg" = "X$p"; then
 
2151
      enable_fast_install=yes
 
2152
    fi
 
2153
  done
 
2154
  IFS="$ac_save_ifs"
 
2155
  ;;
 
2156
esac
 
2157
else
 
2158
  enable_fast_install=yes
 
2159
fi;
 
2160
ac_ext=c
 
2161
ac_cpp='$CPP $CPPFLAGS'
 
2162
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2163
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2164
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2165
if test -n "$ac_tool_prefix"; then
 
2166
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2167
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2168
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2169
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2170
if test "${ac_cv_prog_CC+set}" = set; then
 
2171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2172
else
 
2173
  if test -n "$CC"; then
 
2174
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2175
else
 
2176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2177
for as_dir in $PATH
 
2178
do
 
2179
  IFS=$as_save_IFS
 
2180
  test -z "$as_dir" && as_dir=.
 
2181
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2182
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2183
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2184
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2185
    break 2
 
2186
  fi
 
2187
done
 
2188
done
 
2189
 
 
2190
fi
 
2191
fi
 
2192
CC=$ac_cv_prog_CC
 
2193
if test -n "$CC"; then
 
2194
  echo "$as_me:$LINENO: result: $CC" >&5
 
2195
echo "${ECHO_T}$CC" >&6
 
2196
else
 
2197
  echo "$as_me:$LINENO: result: no" >&5
 
2198
echo "${ECHO_T}no" >&6
 
2199
fi
 
2200
 
 
2201
fi
 
2202
if test -z "$ac_cv_prog_CC"; then
 
2203
  ac_ct_CC=$CC
 
2204
  # Extract the first word of "gcc", so it can be a program name with args.
 
2205
set dummy gcc; ac_word=$2
 
2206
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2208
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2210
else
 
2211
  if test -n "$ac_ct_CC"; then
 
2212
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2213
else
 
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2215
for as_dir in $PATH
 
2216
do
 
2217
  IFS=$as_save_IFS
 
2218
  test -z "$as_dir" && as_dir=.
 
2219
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2220
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2221
    ac_cv_prog_ac_ct_CC="gcc"
 
2222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2223
    break 2
 
2224
  fi
 
2225
done
 
2226
done
 
2227
 
 
2228
fi
 
2229
fi
 
2230
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2231
if test -n "$ac_ct_CC"; then
 
2232
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2233
echo "${ECHO_T}$ac_ct_CC" >&6
 
2234
else
 
2235
  echo "$as_me:$LINENO: result: no" >&5
 
2236
echo "${ECHO_T}no" >&6
 
2237
fi
 
2238
 
 
2239
  CC=$ac_ct_CC
 
2240
else
 
2241
  CC="$ac_cv_prog_CC"
 
2242
fi
 
2243
 
 
2244
if test -z "$CC"; then
 
2245
  if test -n "$ac_tool_prefix"; then
 
2246
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2247
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2248
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2249
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2250
if test "${ac_cv_prog_CC+set}" = set; then
 
2251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2252
else
 
2253
  if test -n "$CC"; then
 
2254
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2255
else
 
2256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2257
for as_dir in $PATH
 
2258
do
 
2259
  IFS=$as_save_IFS
 
2260
  test -z "$as_dir" && as_dir=.
 
2261
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2262
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2263
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2264
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2265
    break 2
 
2266
  fi
 
2267
done
 
2268
done
 
2269
 
 
2270
fi
 
2271
fi
 
2272
CC=$ac_cv_prog_CC
 
2273
if test -n "$CC"; then
 
2274
  echo "$as_me:$LINENO: result: $CC" >&5
 
2275
echo "${ECHO_T}$CC" >&6
 
2276
else
 
2277
  echo "$as_me:$LINENO: result: no" >&5
 
2278
echo "${ECHO_T}no" >&6
 
2279
fi
 
2280
 
 
2281
fi
 
2282
if test -z "$ac_cv_prog_CC"; then
 
2283
  ac_ct_CC=$CC
 
2284
  # Extract the first word of "cc", so it can be a program name with args.
 
2285
set dummy cc; ac_word=$2
 
2286
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2288
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2290
else
 
2291
  if test -n "$ac_ct_CC"; then
 
2292
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2293
else
 
2294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2295
for as_dir in $PATH
 
2296
do
 
2297
  IFS=$as_save_IFS
 
2298
  test -z "$as_dir" && as_dir=.
 
2299
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2300
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2301
    ac_cv_prog_ac_ct_CC="cc"
 
2302
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2303
    break 2
 
2304
  fi
 
2305
done
 
2306
done
 
2307
 
 
2308
fi
 
2309
fi
 
2310
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2311
if test -n "$ac_ct_CC"; then
 
2312
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2313
echo "${ECHO_T}$ac_ct_CC" >&6
 
2314
else
 
2315
  echo "$as_me:$LINENO: result: no" >&5
 
2316
echo "${ECHO_T}no" >&6
 
2317
fi
 
2318
 
 
2319
  CC=$ac_ct_CC
 
2320
else
 
2321
  CC="$ac_cv_prog_CC"
 
2322
fi
 
2323
 
 
2324
fi
 
2325
if test -z "$CC"; then
 
2326
  # Extract the first word of "cc", so it can be a program name with args.
 
2327
set dummy cc; ac_word=$2
 
2328
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2329
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2330
if test "${ac_cv_prog_CC+set}" = set; then
 
2331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2332
else
 
2333
  if test -n "$CC"; then
 
2334
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2335
else
 
2336
  ac_prog_rejected=no
 
2337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2338
for as_dir in $PATH
 
2339
do
 
2340
  IFS=$as_save_IFS
 
2341
  test -z "$as_dir" && as_dir=.
 
2342
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2343
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2344
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2345
       ac_prog_rejected=yes
 
2346
       continue
 
2347
     fi
 
2348
    ac_cv_prog_CC="cc"
 
2349
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2350
    break 2
 
2351
  fi
 
2352
done
 
2353
done
 
2354
 
 
2355
if test $ac_prog_rejected = yes; then
 
2356
  # We found a bogon in the path, so make sure we never use it.
 
2357
  set dummy $ac_cv_prog_CC
 
2358
  shift
 
2359
  if test $# != 0; then
 
2360
    # We chose a different compiler from the bogus one.
 
2361
    # However, it has the same basename, so the bogon will be chosen
 
2362
    # first if we set CC to just the basename; use the full file name.
 
2363
    shift
 
2364
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2365
  fi
 
2366
fi
 
2367
fi
 
2368
fi
 
2369
CC=$ac_cv_prog_CC
 
2370
if test -n "$CC"; then
 
2371
  echo "$as_me:$LINENO: result: $CC" >&5
 
2372
echo "${ECHO_T}$CC" >&6
 
2373
else
 
2374
  echo "$as_me:$LINENO: result: no" >&5
 
2375
echo "${ECHO_T}no" >&6
 
2376
fi
 
2377
 
 
2378
fi
 
2379
if test -z "$CC"; then
 
2380
  if test -n "$ac_tool_prefix"; then
 
2381
  for ac_prog in cl
 
2382
  do
 
2383
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2384
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2385
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2386
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2387
if test "${ac_cv_prog_CC+set}" = set; then
 
2388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2389
else
 
2390
  if test -n "$CC"; then
 
2391
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2392
else
 
2393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2394
for as_dir in $PATH
 
2395
do
 
2396
  IFS=$as_save_IFS
 
2397
  test -z "$as_dir" && as_dir=.
 
2398
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2399
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2400
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2401
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2402
    break 2
 
2403
  fi
 
2404
done
 
2405
done
 
2406
 
 
2407
fi
 
2408
fi
 
2409
CC=$ac_cv_prog_CC
 
2410
if test -n "$CC"; then
 
2411
  echo "$as_me:$LINENO: result: $CC" >&5
 
2412
echo "${ECHO_T}$CC" >&6
 
2413
else
 
2414
  echo "$as_me:$LINENO: result: no" >&5
 
2415
echo "${ECHO_T}no" >&6
 
2416
fi
 
2417
 
 
2418
    test -n "$CC" && break
 
2419
  done
 
2420
fi
 
2421
if test -z "$CC"; then
 
2422
  ac_ct_CC=$CC
 
2423
  for ac_prog in cl
 
2424
do
 
2425
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2426
set dummy $ac_prog; ac_word=$2
 
2427
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2428
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2429
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2431
else
 
2432
  if test -n "$ac_ct_CC"; then
 
2433
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2434
else
 
2435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2436
for as_dir in $PATH
 
2437
do
 
2438
  IFS=$as_save_IFS
 
2439
  test -z "$as_dir" && as_dir=.
 
2440
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2441
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2442
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2443
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2444
    break 2
 
2445
  fi
 
2446
done
 
2447
done
 
2448
 
 
2449
fi
 
2450
fi
 
2451
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2452
if test -n "$ac_ct_CC"; then
 
2453
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2454
echo "${ECHO_T}$ac_ct_CC" >&6
 
2455
else
 
2456
  echo "$as_me:$LINENO: result: no" >&5
 
2457
echo "${ECHO_T}no" >&6
 
2458
fi
 
2459
 
 
2460
  test -n "$ac_ct_CC" && break
 
2461
done
 
2462
 
 
2463
  CC=$ac_ct_CC
 
2464
fi
 
2465
 
 
2466
fi
 
2467
 
 
2468
 
 
2469
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2470
See \`config.log' for more details." >&5
 
2471
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2472
See \`config.log' for more details." >&2;}
 
2473
   { (exit 1); exit 1; }; }
 
2474
 
 
2475
# Provide some information about the compiler.
 
2476
echo "$as_me:$LINENO:" \
 
2477
     "checking for C compiler version" >&5
 
2478
ac_compiler=`set X $ac_compile; echo $2`
 
2479
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2480
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2481
  ac_status=$?
 
2482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2483
  (exit $ac_status); }
 
2484
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2485
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2486
  ac_status=$?
 
2487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2488
  (exit $ac_status); }
 
2489
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2490
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2491
  ac_status=$?
 
2492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2493
  (exit $ac_status); }
 
2494
 
 
2495
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2496
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2497
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2498
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2499
else
 
2500
  cat >conftest.$ac_ext <<_ACEOF
 
2501
#line $LINENO "configure"
 
2502
/* confdefs.h.  */
 
2503
_ACEOF
 
2504
cat confdefs.h >>conftest.$ac_ext
 
2505
cat >>conftest.$ac_ext <<_ACEOF
 
2506
/* end confdefs.h.  */
 
2507
 
 
2508
int
 
2509
main ()
 
2510
{
 
2511
#ifndef __GNUC__
 
2512
       choke me
 
2513
#endif
 
2514
 
 
2515
  ;
 
2516
  return 0;
 
2517
}
 
2518
_ACEOF
 
2519
rm -f conftest.$ac_objext
 
2520
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2521
  (eval $ac_compile) 2>&5
 
2522
  ac_status=$?
 
2523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2524
  (exit $ac_status); } &&
 
2525
         { ac_try='test -s conftest.$ac_objext'
 
2526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2527
  (eval $ac_try) 2>&5
 
2528
  ac_status=$?
 
2529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2530
  (exit $ac_status); }; }; then
 
2531
  ac_compiler_gnu=yes
 
2532
else
 
2533
  echo "$as_me: failed program was:" >&5
 
2534
sed 's/^/| /' conftest.$ac_ext >&5
 
2535
 
 
2536
ac_compiler_gnu=no
 
2537
fi
 
2538
rm -f conftest.$ac_objext conftest.$ac_ext
 
2539
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2540
 
 
2541
fi
 
2542
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2543
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2544
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2545
ac_test_CFLAGS=${CFLAGS+set}
 
2546
ac_save_CFLAGS=$CFLAGS
 
2547
CFLAGS="-g"
 
2548
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2549
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2550
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2552
else
 
2553
  cat >conftest.$ac_ext <<_ACEOF
 
2554
#line $LINENO "configure"
 
2555
/* confdefs.h.  */
 
2556
_ACEOF
 
2557
cat confdefs.h >>conftest.$ac_ext
 
2558
cat >>conftest.$ac_ext <<_ACEOF
 
2559
/* end confdefs.h.  */
 
2560
 
 
2561
int
 
2562
main ()
 
2563
{
 
2564
 
 
2565
  ;
 
2566
  return 0;
 
2567
}
 
2568
_ACEOF
 
2569
rm -f conftest.$ac_objext
 
2570
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2571
  (eval $ac_compile) 2>&5
 
2572
  ac_status=$?
 
2573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2574
  (exit $ac_status); } &&
 
2575
         { ac_try='test -s conftest.$ac_objext'
 
2576
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2577
  (eval $ac_try) 2>&5
 
2578
  ac_status=$?
 
2579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2580
  (exit $ac_status); }; }; then
 
2581
  ac_cv_prog_cc_g=yes
 
2582
else
 
2583
  echo "$as_me: failed program was:" >&5
 
2584
sed 's/^/| /' conftest.$ac_ext >&5
 
2585
 
 
2586
ac_cv_prog_cc_g=no
 
2587
fi
 
2588
rm -f conftest.$ac_objext conftest.$ac_ext
 
2589
fi
 
2590
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2591
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2592
if test "$ac_test_CFLAGS" = set; then
 
2593
  CFLAGS=$ac_save_CFLAGS
 
2594
elif test $ac_cv_prog_cc_g = yes; then
 
2595
  if test "$GCC" = yes; then
 
2596
    CFLAGS="-g -O2"
 
2597
  else
 
2598
    CFLAGS="-g"
 
2599
  fi
 
2600
else
 
2601
  if test "$GCC" = yes; then
 
2602
    CFLAGS="-O2"
 
2603
  else
 
2604
    CFLAGS=
 
2605
  fi
 
2606
fi
 
2607
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2608
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2609
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2611
else
 
2612
  ac_cv_prog_cc_stdc=no
 
2613
ac_save_CC=$CC
 
2614
cat >conftest.$ac_ext <<_ACEOF
 
2615
#line $LINENO "configure"
 
2616
/* confdefs.h.  */
 
2617
_ACEOF
 
2618
cat confdefs.h >>conftest.$ac_ext
 
2619
cat >>conftest.$ac_ext <<_ACEOF
 
2620
/* end confdefs.h.  */
 
2621
#include <stdarg.h>
 
2622
#include <stdio.h>
 
2623
#include <sys/types.h>
 
2624
#include <sys/stat.h>
 
2625
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2626
struct buf { int x; };
 
2627
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2628
static char *e (p, i)
 
2629
     char **p;
 
2630
     int i;
 
2631
{
 
2632
  return p[i];
 
2633
}
 
2634
static char *f (char * (*g) (char **, int), char **p, ...)
 
2635
{
 
2636
  char *s;
 
2637
  va_list v;
 
2638
  va_start (v,p);
 
2639
  s = g (p, va_arg (v,int));
 
2640
  va_end (v);
 
2641
  return s;
 
2642
}
 
2643
int test (int i, double x);
 
2644
struct s1 {int (*f) (int a);};
 
2645
struct s2 {int (*f) (double a);};
 
2646
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2647
int argc;
 
2648
char **argv;
 
2649
int
 
2650
main ()
 
2651
{
 
2652
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2653
  ;
 
2654
  return 0;
 
2655
}
 
2656
_ACEOF
 
2657
# Don't try gcc -ansi; that turns off useful extensions and
 
2658
# breaks some systems' header files.
 
2659
# AIX                   -qlanglvl=ansi
 
2660
# Ultrix and OSF/1      -std1
 
2661
# HP-UX 10.20 and later -Ae
 
2662
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2663
# SVR4                  -Xc -D__EXTENSIONS__
 
2664
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2665
do
 
2666
  CC="$ac_save_CC $ac_arg"
 
2667
  rm -f conftest.$ac_objext
 
2668
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2669
  (eval $ac_compile) 2>&5
 
2670
  ac_status=$?
 
2671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2672
  (exit $ac_status); } &&
 
2673
         { ac_try='test -s conftest.$ac_objext'
 
2674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2675
  (eval $ac_try) 2>&5
 
2676
  ac_status=$?
 
2677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2678
  (exit $ac_status); }; }; then
 
2679
  ac_cv_prog_cc_stdc=$ac_arg
 
2680
break
 
2681
else
 
2682
  echo "$as_me: failed program was:" >&5
 
2683
sed 's/^/| /' conftest.$ac_ext >&5
 
2684
 
 
2685
fi
 
2686
rm -f conftest.$ac_objext
 
2687
done
 
2688
rm -f conftest.$ac_ext conftest.$ac_objext
 
2689
CC=$ac_save_CC
 
2690
 
 
2691
fi
 
2692
 
 
2693
case "x$ac_cv_prog_cc_stdc" in
 
2694
  x|xno)
 
2695
    echo "$as_me:$LINENO: result: none needed" >&5
 
2696
echo "${ECHO_T}none needed" >&6 ;;
 
2697
  *)
 
2698
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2699
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2700
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2701
esac
 
2702
 
 
2703
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2704
# in C++ we need to declare it.  In case someone uses the same compiler
 
2705
# for both compiling C and C++ we need to have the C++ compiler decide
 
2706
# the declaration of exit, since it's the most demanding environment.
 
2707
cat >conftest.$ac_ext <<_ACEOF
 
2708
#ifndef __cplusplus
 
2709
  choke me
 
2710
#endif
 
2711
_ACEOF
 
2712
rm -f conftest.$ac_objext
 
2713
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2714
  (eval $ac_compile) 2>&5
 
2715
  ac_status=$?
 
2716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2717
  (exit $ac_status); } &&
 
2718
         { ac_try='test -s conftest.$ac_objext'
 
2719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2720
  (eval $ac_try) 2>&5
 
2721
  ac_status=$?
 
2722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2723
  (exit $ac_status); }; }; then
 
2724
  for ac_declaration in \
 
2725
   ''\
 
2726
   '#include <stdlib.h>' \
 
2727
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2728
   'extern "C" void std::exit (int); using std::exit;' \
 
2729
   'extern "C" void exit (int) throw ();' \
 
2730
   'extern "C" void exit (int);' \
 
2731
   'void exit (int);'
 
2732
do
 
2733
  cat >conftest.$ac_ext <<_ACEOF
 
2734
#line $LINENO "configure"
 
2735
/* confdefs.h.  */
 
2736
_ACEOF
 
2737
cat confdefs.h >>conftest.$ac_ext
 
2738
cat >>conftest.$ac_ext <<_ACEOF
 
2739
/* end confdefs.h.  */
 
2740
#include <stdlib.h>
 
2741
$ac_declaration
 
2742
int
 
2743
main ()
 
2744
{
 
2745
exit (42);
 
2746
  ;
 
2747
  return 0;
 
2748
}
 
2749
_ACEOF
 
2750
rm -f conftest.$ac_objext
 
2751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2752
  (eval $ac_compile) 2>&5
 
2753
  ac_status=$?
 
2754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2755
  (exit $ac_status); } &&
 
2756
         { ac_try='test -s conftest.$ac_objext'
 
2757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2758
  (eval $ac_try) 2>&5
 
2759
  ac_status=$?
 
2760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2761
  (exit $ac_status); }; }; then
 
2762
  :
 
2763
else
 
2764
  echo "$as_me: failed program was:" >&5
 
2765
sed 's/^/| /' conftest.$ac_ext >&5
 
2766
 
 
2767
continue
 
2768
fi
 
2769
rm -f conftest.$ac_objext conftest.$ac_ext
 
2770
  cat >conftest.$ac_ext <<_ACEOF
 
2771
#line $LINENO "configure"
 
2772
/* confdefs.h.  */
 
2773
_ACEOF
 
2774
cat confdefs.h >>conftest.$ac_ext
 
2775
cat >>conftest.$ac_ext <<_ACEOF
 
2776
/* end confdefs.h.  */
 
2777
$ac_declaration
 
2778
int
 
2779
main ()
 
2780
{
 
2781
exit (42);
 
2782
  ;
 
2783
  return 0;
 
2784
}
 
2785
_ACEOF
 
2786
rm -f conftest.$ac_objext
 
2787
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2788
  (eval $ac_compile) 2>&5
 
2789
  ac_status=$?
 
2790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2791
  (exit $ac_status); } &&
 
2792
         { ac_try='test -s conftest.$ac_objext'
 
2793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2794
  (eval $ac_try) 2>&5
 
2795
  ac_status=$?
 
2796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2797
  (exit $ac_status); }; }; then
 
2798
  break
 
2799
else
 
2800
  echo "$as_me: failed program was:" >&5
 
2801
sed 's/^/| /' conftest.$ac_ext >&5
 
2802
 
 
2803
fi
 
2804
rm -f conftest.$ac_objext conftest.$ac_ext
 
2805
done
 
2806
rm -f conftest*
 
2807
if test -n "$ac_declaration"; then
 
2808
  echo '#ifdef __cplusplus' >>confdefs.h
 
2809
  echo $ac_declaration      >>confdefs.h
 
2810
  echo '#endif'             >>confdefs.h
 
2811
fi
 
2812
 
 
2813
else
 
2814
  echo "$as_me: failed program was:" >&5
 
2815
sed 's/^/| /' conftest.$ac_ext >&5
 
2816
 
 
2817
fi
 
2818
rm -f conftest.$ac_objext conftest.$ac_ext
 
2819
ac_ext=c
 
2820
ac_cpp='$CPP $CPPFLAGS'
 
2821
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2822
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2823
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2824
 
 
2825
# Find the correct PATH separator.  Usually this is `:', but
 
2826
# DJGPP uses `;' like DOS.
 
2827
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
2828
  UNAME=${UNAME-`uname 2>/dev/null`}
 
2829
  case X$UNAME in
 
2830
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
2831
    *)     lt_cv_sys_path_separator=':' ;;
 
2832
  esac
 
2833
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
2834
fi
 
2835
 
 
2836
 
 
2837
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
2838
if test "${with_gnu_ld+set}" = set; then
 
2839
  withval="$with_gnu_ld"
 
2840
  test "$withval" = no || with_gnu_ld=yes
 
2841
else
 
2842
  with_gnu_ld=no
 
2843
fi;
 
2844
ac_prog=ld
 
2845
if test "$GCC" = yes; then
 
2846
  # Check if gcc -print-prog-name=ld gives a path.
 
2847
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
2848
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
2849
  case $host in
 
2850
  *-*-mingw*)
 
2851
    # gcc leaves a trailing carriage return which upsets mingw
 
2852
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
2853
  *)
 
2854
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
2855
  esac
 
2856
  case $ac_prog in
 
2857
    # Accept absolute paths.
 
2858
    [\\/]* | [A-Za-z]:[\\/]*)
 
2859
      re_direlt='/[^/][^/]*/\.\./'
 
2860
      # Canonicalize the path of ld
 
2861
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
2862
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
2863
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
2864
      done
 
2865
      test -z "$LD" && LD="$ac_prog"
 
2866
      ;;
 
2867
  "")
 
2868
    # If it fails, then pretend we aren't using GCC.
 
2869
    ac_prog=ld
 
2870
    ;;
 
2871
  *)
 
2872
    # If it is relative, then search for the first ld in PATH.
 
2873
    with_gnu_ld=unknown
 
2874
    ;;
 
2875
  esac
 
2876
elif test "$with_gnu_ld" = yes; then
 
2877
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
2878
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
2879
else
 
2880
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
2881
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
2882
fi
 
2883
if test "${lt_cv_path_LD+set}" = set; then
 
2884
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2885
else
 
2886
  if test -z "$LD"; then
 
2887
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2888
  for ac_dir in $PATH; do
 
2889
    test -z "$ac_dir" && ac_dir=.
 
2890
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
2891
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
2892
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
2893
      # but apparently some GNU ld's only accept -v.
 
2894
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
2895
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
2896
        test "$with_gnu_ld" != no && break
 
2897
      else
 
2898
        test "$with_gnu_ld" != yes && break
 
2899
      fi
 
2900
    fi
 
2901
  done
 
2902
  IFS="$ac_save_ifs"
 
2903
else
 
2904
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
2905
fi
 
2906
fi
 
2907
 
 
2908
LD="$lt_cv_path_LD"
 
2909
if test -n "$LD"; then
 
2910
  echo "$as_me:$LINENO: result: $LD" >&5
 
2911
echo "${ECHO_T}$LD" >&6
 
2912
else
 
2913
  echo "$as_me:$LINENO: result: no" >&5
 
2914
echo "${ECHO_T}no" >&6
 
2915
fi
 
2916
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
2917
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
2918
   { (exit 1); exit 1; }; }
 
2919
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
2920
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
2921
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
2922
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2923
else
 
2924
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2925
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
2926
  lt_cv_prog_gnu_ld=yes
 
2927
else
 
2928
  lt_cv_prog_gnu_ld=no
 
2929
fi
 
2930
fi
 
2931
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
2932
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
2933
with_gnu_ld=$lt_cv_prog_gnu_ld
 
2934
 
 
2935
 
 
2936
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
2937
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
2938
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
2939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2940
else
 
2941
  lt_cv_ld_reload_flag='-r'
 
2942
fi
 
2943
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
2944
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
2945
reload_flag=$lt_cv_ld_reload_flag
 
2946
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
2947
 
 
2948
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
2949
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
2950
if test "${lt_cv_path_NM+set}" = set; then
 
2951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2952
else
 
2953
  if test -n "$NM"; then
 
2954
  # Let the user override the test.
 
2955
  lt_cv_path_NM="$NM"
 
2956
else
 
2957
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2958
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
2959
    test -z "$ac_dir" && ac_dir=.
 
2960
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
 
2961
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
2962
      # Check to see if the nm accepts a BSD-compat flag.
 
2963
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2964
      #   nm: unknown option "B" ignored
 
2965
      # Tru64's nm complains that /dev/null is an invalid object file
 
2966
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
2967
        lt_cv_path_NM="$tmp_nm -B"
 
2968
        break
 
2969
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
2970
        lt_cv_path_NM="$tmp_nm -p"
 
2971
        break
 
2972
      else
 
2973
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2974
        continue # so that we can try to find one that supports BSD flags
 
2975
      fi
 
2976
    fi
 
2977
  done
 
2978
  IFS="$ac_save_ifs"
 
2979
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
2980
fi
 
2981
fi
 
2982
 
 
2983
NM="$lt_cv_path_NM"
 
2984
echo "$as_me:$LINENO: result: $NM" >&5
 
2985
echo "${ECHO_T}$NM" >&6
 
2986
 
 
2987
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
2988
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
2989
if test "${lt_cv_path_SED+set}" = set; then
 
2990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2991
else
 
2992
  # Loop through the user's path and test for sed and gsed.
 
2993
# Then use that list of sed's as ones to test for truncation.
 
2994
as_executable_p="test -f"
 
2995
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2996
for as_dir in $PATH
 
2997
do
 
2998
  IFS=$as_save_IFS
 
2999
  test -z "$as_dir" && as_dir=.
 
3000
  for ac_prog in sed gsed; do
 
3001
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3002
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3003
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
 
3004
      fi
 
3005
    done
 
3006
  done
 
3007
done
 
3008
 
 
3009
  # Create a temporary directory, and hook for its removal unless debugging.
 
3010
$debug ||
 
3011
{
 
3012
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
3013
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
3014
}
 
3015
 
 
3016
# Create a (secure) tmp directory for tmp files.
 
3017
: ${TMPDIR=/tmp}
 
3018
{
 
3019
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
 
3020
  test -n "$tmp" && test -d "$tmp"
 
3021
}  ||
 
3022
{
 
3023
  tmp=$TMPDIR/sed$$-$RANDOM
 
3024
  (umask 077 && mkdir $tmp)
 
3025
} ||
 
3026
{
 
3027
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
3028
   { (exit 1); exit 1; }
 
3029
}
 
3030
  _max=0
 
3031
  _count=0
 
3032
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3033
  # along with /bin/sed that truncates output.
 
3034
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
 
3035
    test ! -f ${_sed} && break
 
3036
    cat /dev/null > "$tmp/sed.in"
 
3037
    _count=0
 
3038
    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
 
3039
    # Check for GNU sed and select it if it is found.
 
3040
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
 
3041
      lt_cv_path_SED=${_sed}
 
3042
      break
 
3043
    fi
 
3044
    while true; do
 
3045
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
 
3046
      mv "$tmp/sed.tmp" "$tmp/sed.in"
 
3047
      cp "$tmp/sed.in" "$tmp/sed.nl"
 
3048
      echo >>"$tmp/sed.nl"
 
3049
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
 
3050
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
 
3051
      # 40000 chars as input seems more than enough
 
3052
      test $_count -gt 10 && break
 
3053
      _count=`expr $_count + 1`
 
3054
      if test $_count -gt $_max; then
 
3055
        _max=$_count
 
3056
        lt_cv_path_SED=$_sed
 
3057
      fi
 
3058
    done
 
3059
  done
 
3060
  rm -rf "$tmp"
 
3061
 
 
3062
fi
 
3063
 
 
3064
if test "X$SED" != "X"; then
 
3065
  lt_cv_path_SED=$SED
 
3066
else
 
3067
  SED=$lt_cv_path_SED
 
3068
fi
 
3069
echo "$as_me:$LINENO: result: $SED" >&5
 
3070
echo "${ECHO_T}$SED" >&6
 
3071
 
 
3072
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3073
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3074
LN_S=$as_ln_s
 
3075
if test "$LN_S" = "ln -s"; then
 
3076
  echo "$as_me:$LINENO: result: yes" >&5
 
3077
echo "${ECHO_T}yes" >&6
 
3078
else
 
3079
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3080
echo "${ECHO_T}no, using $LN_S" >&6
 
3081
fi
 
3082
 
 
3083
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3084
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3085
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3086
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3087
else
 
3088
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3089
lt_cv_file_magic_test_file=
 
3090
lt_cv_deplibs_check_method='unknown'
 
3091
# Need to set the preceding variable on all platforms that support
 
3092
# interlibrary dependencies.
 
3093
# 'none' -- dependencies not supported.
 
3094
# `unknown' -- same as none, but documents that we really don't know.
 
3095
# 'pass_all' -- all dependencies passed with no checks.
 
3096
# 'test_compile' -- check by making test program.
 
3097
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3098
# which responds to the $file_magic_cmd with a given egrep regex.
 
3099
# If you have `file' or equivalent on your system and you're not sure
 
3100
# whether `pass_all' will *always* work, you probably want this one.
 
3101
 
 
3102
case $host_os in
 
3103
aix4* | aix5*)
 
3104
  lt_cv_deplibs_check_method=pass_all
 
3105
  ;;
 
3106
 
 
3107
beos*)
 
3108
  lt_cv_deplibs_check_method=pass_all
 
3109
  ;;
 
3110
 
 
3111
bsdi4*)
 
3112
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3113
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3114
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3115
  ;;
 
3116
 
 
3117
cygwin* | mingw* | pw32*)
 
3118
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3119
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3120
  ;;
 
3121
 
 
3122
darwin* | rhapsody*)
 
3123
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
3124
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3125
  case "$host_os" in
 
3126
  rhapsody* | darwin1.[012])
 
3127
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 
3128
    ;;
 
3129
  *) # Darwin 1.3 on
 
3130
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
3131
    ;;
 
3132
  esac
 
3133
  ;;
 
3134
 
 
3135
freebsd*)
 
3136
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3137
    case $host_cpu in
 
3138
    i*86 )
 
3139
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3140
      # Let's accept both of them until this is cleared up.
 
3141
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3142
      lt_cv_file_magic_cmd=/usr/bin/file
 
3143
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3144
      ;;
 
3145
    esac
 
3146
  else
 
3147
    lt_cv_deplibs_check_method=pass_all
 
3148
  fi
 
3149
  ;;
 
3150
 
 
3151
gnu*)
 
3152
  lt_cv_deplibs_check_method=pass_all
 
3153
  ;;
 
3154
 
 
3155
hpux10.20*|hpux11*)
 
3156
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3157
  lt_cv_file_magic_cmd=/usr/bin/file
 
3158
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3159
  ;;
 
3160
 
 
3161
irix5* | irix6* | nonstopux*)
 
3162
  case $host_os in
 
3163
  irix5* | nonstopux*)
 
3164
    # this will be overridden with pass_all, but let us keep it just in case
 
3165
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
3166
    ;;
 
3167
  *)
 
3168
    case $LD in
 
3169
    *-32|*"-32 ") libmagic=32-bit;;
 
3170
    *-n32|*"-n32 ") libmagic=N32;;
 
3171
    *-64|*"-64 ") libmagic=64-bit;;
 
3172
    *) libmagic=never-match;;
 
3173
    esac
 
3174
    # this will be overridden with pass_all, but let us keep it just in case
 
3175
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
3176
    ;;
 
3177
  esac
 
3178
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
3179
  lt_cv_deplibs_check_method=pass_all
 
3180
  ;;
 
3181
 
 
3182
# This must be Linux ELF.
 
3183
linux-gnu*)
 
3184
  case $host_cpu in
 
3185
  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
 
3186
    lt_cv_deplibs_check_method=pass_all ;;
 
3187
  *)
 
3188
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
3189
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
3190
  esac
 
3191
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
3192
  ;;
 
3193
 
 
3194
netbsd*)
 
3195
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3196
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
3197
  else
 
3198
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
3199
  fi
 
3200
  ;;
 
3201
 
 
3202
newos6*)
 
3203
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3204
  lt_cv_file_magic_cmd=/usr/bin/file
 
3205
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3206
  ;;
 
3207
 
 
3208
openbsd*)
 
3209
  lt_cv_file_magic_cmd=/usr/bin/file
 
3210
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3211
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3212
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3213
  else
 
3214
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3215
  fi
 
3216
  ;;
 
3217
 
 
3218
osf3* | osf4* | osf5*)
 
3219
  # this will be overridden with pass_all, but let us keep it just in case
 
3220
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
3221
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3222
  lt_cv_deplibs_check_method=pass_all
 
3223
  ;;
 
3224
 
 
3225
sco3.2v5*)
 
3226
  lt_cv_deplibs_check_method=pass_all
 
3227
  ;;
 
3228
 
 
3229
solaris*)
 
3230
  lt_cv_deplibs_check_method=pass_all
 
3231
  lt_cv_file_magic_test_file=/lib/libc.so
 
3232
  ;;
 
3233
 
 
3234
sysv5uw[78]* | sysv4*uw2*)
 
3235
  lt_cv_deplibs_check_method=pass_all
 
3236
  ;;
 
3237
 
 
3238
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3239
  case $host_vendor in
 
3240
  motorola)
 
3241
    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]'
 
3242
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3243
    ;;
 
3244
  ncr)
 
3245
    lt_cv_deplibs_check_method=pass_all
 
3246
    ;;
 
3247
  sequent)
 
3248
    lt_cv_file_magic_cmd='/bin/file'
 
3249
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3250
    ;;
 
3251
  sni)
 
3252
    lt_cv_file_magic_cmd='/bin/file'
 
3253
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3254
    lt_cv_file_magic_test_file=/lib/libc.so
 
3255
    ;;
 
3256
  siemens)
 
3257
    lt_cv_deplibs_check_method=pass_all
 
3258
    ;;
 
3259
  esac
 
3260
  ;;
 
3261
esac
 
3262
 
 
3263
fi
 
3264
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3265
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3266
file_magic_cmd=$lt_cv_file_magic_cmd
 
3267
deplibs_check_method=$lt_cv_deplibs_check_method
 
3268
 
 
3269
 
 
3270
 
 
3271
 
 
3272
 
 
3273
 
 
3274
 
 
3275
 
 
3276
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
3277
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
 
3278
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
 
3279
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
3280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3281
else
 
3282
 
 
3283
# These are sane defaults that work on at least a few old systems.
 
3284
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
3285
 
 
3286
# Character class describing NM global symbol codes.
 
3287
symcode='[BCDEGRST]'
 
3288
 
 
3289
# Regexp to match symbols that can be accessed directly from C.
 
3290
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
3291
 
 
3292
# Transform the above into a raw symbol and a C symbol.
 
3293
symxfrm='\1 \2\3 \3'
 
3294
 
 
3295
# Transform an extracted symbol line into a proper C declaration
 
3296
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
3297
 
 
3298
# Transform an extracted symbol line into symbol name and symbol address
 
3299
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'"
 
3300
 
 
3301
# Define system-specific variables.
 
3302
case $host_os in
 
3303
aix*)
 
3304
  symcode='[BCDT]'
 
3305
  ;;
 
3306
cygwin* | mingw* | pw32*)
 
3307
  symcode='[ABCDGISTW]'
 
3308
  ;;
 
3309
hpux*) # Its linker distinguishes data from code symbols
 
3310
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
3311
  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'"
 
3312
  ;;
 
3313
irix* | nonstopux*)
 
3314
  symcode='[BCDEGRST]'
 
3315
  ;;
 
3316
osf*)
 
3317
  symcode='[BCDEGQRST]'
 
3318
  ;;
 
3319
solaris* | sysv5*)
 
3320
  symcode='[BDT]'
 
3321
  ;;
 
3322
sysv4)
 
3323
  symcode='[DFNSTU]'
 
3324
  ;;
 
3325
esac
 
3326
 
 
3327
# Handle CRLF in mingw tool chain
 
3328
opt_cr=
 
3329
case $host_os in
 
3330
mingw*)
 
3331
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
3332
  ;;
 
3333
esac
 
3334
 
 
3335
# If we're using GNU nm, then use its standard symbol codes.
 
3336
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
 
3337
  symcode='[ABCDGISTW]'
 
3338
fi
 
3339
 
 
3340
# Try without a prefix undercore, then with it.
 
3341
for ac_symprfx in "" "_"; do
 
3342
 
 
3343
  # Write the raw and C identifiers.
 
3344
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
3345
 
 
3346
  # Check to see that the pipe works correctly.
 
3347
  pipe_works=no
 
3348
  rm -f conftest*
 
3349
  cat > conftest.$ac_ext <<EOF
 
3350
#ifdef __cplusplus
 
3351
extern "C" {
 
3352
#endif
 
3353
char nm_test_var;
 
3354
void nm_test_func(){}
 
3355
#ifdef __cplusplus
 
3356
}
 
3357
#endif
 
3358
int main(){nm_test_var='a';nm_test_func();return(0);}
 
3359
EOF
 
3360
 
 
3361
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3362
  (eval $ac_compile) 2>&5
 
3363
  ac_status=$?
 
3364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3365
  (exit $ac_status); }; then
 
3366
    # Now try to grab the symbols.
 
3367
    nlist=conftest.nm
 
3368
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
3369
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
3370
  ac_status=$?
 
3371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3372
  (exit $ac_status); } && test -s "$nlist"; then
 
3373
      # Try sorting and uniquifying the output.
 
3374
      if sort "$nlist" | uniq > "$nlist"T; then
 
3375
        mv -f "$nlist"T "$nlist"
 
3376
      else
 
3377
        rm -f "$nlist"T
 
3378
      fi
 
3379
 
 
3380
      # Make sure that we snagged all the symbols we need.
 
3381
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
 
3382
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
3383
          cat <<EOF > conftest.$ac_ext
 
3384
#ifdef __cplusplus
 
3385
extern "C" {
 
3386
#endif
 
3387
 
 
3388
EOF
 
3389
          # Now generate the symbol file.
 
3390
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
3391
 
 
3392
          cat <<EOF >> conftest.$ac_ext
 
3393
#if defined (__STDC__) && __STDC__
 
3394
# define lt_ptr void *
 
3395
#else
 
3396
# define lt_ptr char *
 
3397
# define const
 
3398
#endif
 
3399
 
 
3400
/* The mapping between symbol names and symbols. */
 
3401
const struct {
 
3402
  const char *name;
 
3403
  lt_ptr address;
 
3404
}
 
3405
lt_preloaded_symbols[] =
 
3406
{
 
3407
EOF
 
3408
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
3409
          cat <<\EOF >> conftest.$ac_ext
 
3410
  {0, (lt_ptr) 0}
 
3411
};
 
3412
 
 
3413
#ifdef __cplusplus
 
3414
}
 
3415
#endif
 
3416
EOF
 
3417
          # Now try linking the two files.
 
3418
          mv conftest.$ac_objext conftstm.$ac_objext
 
3419
          save_LIBS="$LIBS"
 
3420
          save_CFLAGS="$CFLAGS"
 
3421
          LIBS="conftstm.$ac_objext"
 
3422
          CFLAGS="$CFLAGS$no_builtin_flag"
 
3423
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3424
  (eval $ac_link) 2>&5
 
3425
  ac_status=$?
 
3426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3427
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
3428
            pipe_works=yes
 
3429
          fi
 
3430
          LIBS="$save_LIBS"
 
3431
          CFLAGS="$save_CFLAGS"
 
3432
        else
 
3433
          echo "cannot find nm_test_func in $nlist" >&5
 
3434
        fi
 
3435
      else
 
3436
        echo "cannot find nm_test_var in $nlist" >&5
 
3437
      fi
 
3438
    else
 
3439
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
3440
    fi
 
3441
  else
 
3442
    echo "$progname: failed program was:" >&5
 
3443
    cat conftest.$ac_ext >&5
 
3444
  fi
 
3445
  rm -f conftest* conftst*
 
3446
 
 
3447
  # Do not use the global_symbol_pipe unless it works.
 
3448
  if test "$pipe_works" = yes; then
 
3449
    break
 
3450
  else
 
3451
    lt_cv_sys_global_symbol_pipe=
 
3452
  fi
 
3453
done
 
3454
 
 
3455
fi
 
3456
 
 
3457
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
 
3458
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
3459
  global_symbol_to_cdecl=
 
3460
  global_symbol_to_c_name_address=
 
3461
else
 
3462
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
 
3463
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
 
3464
fi
 
3465
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
 
3466
then
 
3467
  echo "$as_me:$LINENO: result: failed" >&5
 
3468
echo "${ECHO_T}failed" >&6
 
3469
else
 
3470
  echo "$as_me:$LINENO: result: ok" >&5
 
3471
echo "${ECHO_T}ok" >&6
 
3472
fi
 
3473
 
 
3474
ac_ext=c
 
3475
ac_cpp='$CPP $CPPFLAGS'
 
3476
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3477
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3478
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3479
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3480
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3481
# On Suns, sometimes $CPP names a directory.
 
3482
if test -n "$CPP" && test -d "$CPP"; then
 
3483
  CPP=
 
3484
fi
 
3485
if test -z "$CPP"; then
 
3486
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3487
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3488
else
 
3489
      # Double quotes because CPP needs to be expanded
 
3490
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3491
    do
 
3492
      ac_preproc_ok=false
 
3493
for ac_c_preproc_warn_flag in '' yes
 
3494
do
 
3495
  # Use a header file that comes with gcc, so configuring glibc
 
3496
  # with a fresh cross-compiler works.
 
3497
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3498
  # <limits.h> exists even on freestanding compilers.
 
3499
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3500
  # not just through cpp. "Syntax error" is here to catch this case.
 
3501
  cat >conftest.$ac_ext <<_ACEOF
 
3502
#line $LINENO "configure"
 
3503
/* confdefs.h.  */
 
3504
_ACEOF
 
3505
cat confdefs.h >>conftest.$ac_ext
 
3506
cat >>conftest.$ac_ext <<_ACEOF
 
3507
/* end confdefs.h.  */
 
3508
#ifdef __STDC__
 
3509
# include <limits.h>
 
3510
#else
 
3511
# include <assert.h>
 
3512
#endif
 
3513
                     Syntax error
 
3514
_ACEOF
 
3515
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3516
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3517
  ac_status=$?
 
3518
  grep -v '^ *+' conftest.er1 >conftest.err
 
3519
  rm -f conftest.er1
 
3520
  cat conftest.err >&5
 
3521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3522
  (exit $ac_status); } >/dev/null; then
 
3523
  if test -s conftest.err; then
 
3524
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3525
  else
 
3526
    ac_cpp_err=
 
3527
  fi
 
3528
else
 
3529
  ac_cpp_err=yes
 
3530
fi
 
3531
if test -z "$ac_cpp_err"; then
 
3532
  :
 
3533
else
 
3534
  echo "$as_me: failed program was:" >&5
 
3535
sed 's/^/| /' conftest.$ac_ext >&5
 
3536
 
 
3537
  # Broken: fails on valid input.
 
3538
continue
 
3539
fi
 
3540
rm -f conftest.err conftest.$ac_ext
 
3541
 
 
3542
  # OK, works on sane cases.  Now check whether non-existent headers
 
3543
  # can be detected and how.
 
3544
  cat >conftest.$ac_ext <<_ACEOF
 
3545
#line $LINENO "configure"
 
3546
/* confdefs.h.  */
 
3547
_ACEOF
 
3548
cat confdefs.h >>conftest.$ac_ext
 
3549
cat >>conftest.$ac_ext <<_ACEOF
 
3550
/* end confdefs.h.  */
 
3551
#include <ac_nonexistent.h>
 
3552
_ACEOF
 
3553
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3554
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3555
  ac_status=$?
 
3556
  grep -v '^ *+' conftest.er1 >conftest.err
 
3557
  rm -f conftest.er1
 
3558
  cat conftest.err >&5
 
3559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3560
  (exit $ac_status); } >/dev/null; then
 
3561
  if test -s conftest.err; then
 
3562
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3563
  else
 
3564
    ac_cpp_err=
 
3565
  fi
 
3566
else
 
3567
  ac_cpp_err=yes
 
3568
fi
 
3569
if test -z "$ac_cpp_err"; then
 
3570
  # Broken: success on invalid input.
 
3571
continue
 
3572
else
 
3573
  echo "$as_me: failed program was:" >&5
 
3574
sed 's/^/| /' conftest.$ac_ext >&5
 
3575
 
 
3576
  # Passes both tests.
 
3577
ac_preproc_ok=:
 
3578
break
 
3579
fi
 
3580
rm -f conftest.err conftest.$ac_ext
 
3581
 
 
3582
done
 
3583
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3584
rm -f conftest.err conftest.$ac_ext
 
3585
if $ac_preproc_ok; then
 
3586
  break
 
3587
fi
 
3588
 
 
3589
    done
 
3590
    ac_cv_prog_CPP=$CPP
 
3591
 
 
3592
fi
 
3593
  CPP=$ac_cv_prog_CPP
 
3594
else
 
3595
  ac_cv_prog_CPP=$CPP
 
3596
fi
 
3597
echo "$as_me:$LINENO: result: $CPP" >&5
 
3598
echo "${ECHO_T}$CPP" >&6
 
3599
ac_preproc_ok=false
 
3600
for ac_c_preproc_warn_flag in '' yes
 
3601
do
 
3602
  # Use a header file that comes with gcc, so configuring glibc
 
3603
  # with a fresh cross-compiler works.
 
3604
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3605
  # <limits.h> exists even on freestanding compilers.
 
3606
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3607
  # not just through cpp. "Syntax error" is here to catch this case.
 
3608
  cat >conftest.$ac_ext <<_ACEOF
 
3609
#line $LINENO "configure"
 
3610
/* confdefs.h.  */
 
3611
_ACEOF
 
3612
cat confdefs.h >>conftest.$ac_ext
 
3613
cat >>conftest.$ac_ext <<_ACEOF
 
3614
/* end confdefs.h.  */
 
3615
#ifdef __STDC__
 
3616
# include <limits.h>
 
3617
#else
 
3618
# include <assert.h>
 
3619
#endif
 
3620
                     Syntax error
 
3621
_ACEOF
 
3622
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3623
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3624
  ac_status=$?
 
3625
  grep -v '^ *+' conftest.er1 >conftest.err
 
3626
  rm -f conftest.er1
 
3627
  cat conftest.err >&5
 
3628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3629
  (exit $ac_status); } >/dev/null; then
 
3630
  if test -s conftest.err; then
 
3631
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3632
  else
 
3633
    ac_cpp_err=
 
3634
  fi
 
3635
else
 
3636
  ac_cpp_err=yes
 
3637
fi
 
3638
if test -z "$ac_cpp_err"; then
 
3639
  :
 
3640
else
 
3641
  echo "$as_me: failed program was:" >&5
 
3642
sed 's/^/| /' conftest.$ac_ext >&5
 
3643
 
 
3644
  # Broken: fails on valid input.
 
3645
continue
 
3646
fi
 
3647
rm -f conftest.err conftest.$ac_ext
 
3648
 
 
3649
  # OK, works on sane cases.  Now check whether non-existent headers
 
3650
  # can be detected and how.
 
3651
  cat >conftest.$ac_ext <<_ACEOF
 
3652
#line $LINENO "configure"
 
3653
/* confdefs.h.  */
 
3654
_ACEOF
 
3655
cat confdefs.h >>conftest.$ac_ext
 
3656
cat >>conftest.$ac_ext <<_ACEOF
 
3657
/* end confdefs.h.  */
 
3658
#include <ac_nonexistent.h>
 
3659
_ACEOF
 
3660
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3661
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3662
  ac_status=$?
 
3663
  grep -v '^ *+' conftest.er1 >conftest.err
 
3664
  rm -f conftest.er1
 
3665
  cat conftest.err >&5
 
3666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3667
  (exit $ac_status); } >/dev/null; then
 
3668
  if test -s conftest.err; then
 
3669
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3670
  else
 
3671
    ac_cpp_err=
 
3672
  fi
 
3673
else
 
3674
  ac_cpp_err=yes
 
3675
fi
 
3676
if test -z "$ac_cpp_err"; then
 
3677
  # Broken: success on invalid input.
 
3678
continue
 
3679
else
 
3680
  echo "$as_me: failed program was:" >&5
 
3681
sed 's/^/| /' conftest.$ac_ext >&5
 
3682
 
 
3683
  # Passes both tests.
 
3684
ac_preproc_ok=:
 
3685
break
 
3686
fi
 
3687
rm -f conftest.err conftest.$ac_ext
 
3688
 
 
3689
done
 
3690
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3691
rm -f conftest.err conftest.$ac_ext
 
3692
if $ac_preproc_ok; then
 
3693
  :
 
3694
else
 
3695
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3696
See \`config.log' for more details." >&5
 
3697
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3698
See \`config.log' for more details." >&2;}
 
3699
   { (exit 1); exit 1; }; }
 
3700
fi
 
3701
 
 
3702
ac_ext=c
 
3703
ac_cpp='$CPP $CPPFLAGS'
 
3704
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3705
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3706
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3707
 
 
3708
 
 
3709
echo "$as_me:$LINENO: checking for egrep" >&5
 
3710
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3711
if test "${ac_cv_prog_egrep+set}" = set; then
 
3712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3713
else
 
3714
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3715
    then ac_cv_prog_egrep='grep -E'
 
3716
    else ac_cv_prog_egrep='egrep'
 
3717
    fi
 
3718
fi
 
3719
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3720
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3721
 EGREP=$ac_cv_prog_egrep
 
3722
 
 
3723
 
 
3724
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3725
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3726
if test "${ac_cv_header_stdc+set}" = set; then
 
3727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3728
else
 
3729
  cat >conftest.$ac_ext <<_ACEOF
 
3730
#line $LINENO "configure"
 
3731
/* confdefs.h.  */
 
3732
_ACEOF
 
3733
cat confdefs.h >>conftest.$ac_ext
 
3734
cat >>conftest.$ac_ext <<_ACEOF
 
3735
/* end confdefs.h.  */
 
3736
#include <stdlib.h>
 
3737
#include <stdarg.h>
 
3738
#include <string.h>
 
3739
#include <float.h>
 
3740
 
 
3741
int
 
3742
main ()
 
3743
{
 
3744
 
 
3745
  ;
 
3746
  return 0;
 
3747
}
 
3748
_ACEOF
 
3749
rm -f conftest.$ac_objext
 
3750
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3751
  (eval $ac_compile) 2>&5
 
3752
  ac_status=$?
 
3753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3754
  (exit $ac_status); } &&
 
3755
         { ac_try='test -s conftest.$ac_objext'
 
3756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3757
  (eval $ac_try) 2>&5
 
3758
  ac_status=$?
 
3759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3760
  (exit $ac_status); }; }; then
 
3761
  ac_cv_header_stdc=yes
 
3762
else
 
3763
  echo "$as_me: failed program was:" >&5
 
3764
sed 's/^/| /' conftest.$ac_ext >&5
 
3765
 
 
3766
ac_cv_header_stdc=no
 
3767
fi
 
3768
rm -f conftest.$ac_objext conftest.$ac_ext
 
3769
 
 
3770
if test $ac_cv_header_stdc = yes; then
 
3771
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3772
  cat >conftest.$ac_ext <<_ACEOF
 
3773
#line $LINENO "configure"
 
3774
/* confdefs.h.  */
 
3775
_ACEOF
 
3776
cat confdefs.h >>conftest.$ac_ext
 
3777
cat >>conftest.$ac_ext <<_ACEOF
 
3778
/* end confdefs.h.  */
 
3779
#include <string.h>
 
3780
 
 
3781
_ACEOF
 
3782
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3783
  $EGREP "memchr" >/dev/null 2>&1; then
 
3784
  :
 
3785
else
 
3786
  ac_cv_header_stdc=no
 
3787
fi
 
3788
rm -f conftest*
 
3789
 
 
3790
fi
 
3791
 
 
3792
if test $ac_cv_header_stdc = yes; then
 
3793
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3794
  cat >conftest.$ac_ext <<_ACEOF
 
3795
#line $LINENO "configure"
 
3796
/* confdefs.h.  */
 
3797
_ACEOF
 
3798
cat confdefs.h >>conftest.$ac_ext
 
3799
cat >>conftest.$ac_ext <<_ACEOF
 
3800
/* end confdefs.h.  */
 
3801
#include <stdlib.h>
 
3802
 
 
3803
_ACEOF
 
3804
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3805
  $EGREP "free" >/dev/null 2>&1; then
 
3806
  :
 
3807
else
 
3808
  ac_cv_header_stdc=no
 
3809
fi
 
3810
rm -f conftest*
 
3811
 
 
3812
fi
 
3813
 
 
3814
if test $ac_cv_header_stdc = yes; then
 
3815
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3816
  if test "$cross_compiling" = yes; then
 
3817
  :
 
3818
else
 
3819
  cat >conftest.$ac_ext <<_ACEOF
 
3820
#line $LINENO "configure"
 
3821
/* confdefs.h.  */
 
3822
_ACEOF
 
3823
cat confdefs.h >>conftest.$ac_ext
 
3824
cat >>conftest.$ac_ext <<_ACEOF
 
3825
/* end confdefs.h.  */
 
3826
#include <ctype.h>
 
3827
#if ((' ' & 0x0FF) == 0x020)
 
3828
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3829
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3830
#else
 
3831
# define ISLOWER(c) \
 
3832
                   (('a' <= (c) && (c) <= 'i') \
 
3833
                     || ('j' <= (c) && (c) <= 'r') \
 
3834
                     || ('s' <= (c) && (c) <= 'z'))
 
3835
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3836
#endif
 
3837
 
 
3838
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3839
int
 
3840
main ()
 
3841
{
 
3842
  int i;
 
3843
  for (i = 0; i < 256; i++)
 
3844
    if (XOR (islower (i), ISLOWER (i))
 
3845
        || toupper (i) != TOUPPER (i))
 
3846
      exit(2);
 
3847
  exit (0);
 
3848
}
 
3849
_ACEOF
 
3850
rm -f conftest$ac_exeext
 
3851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3852
  (eval $ac_link) 2>&5
 
3853
  ac_status=$?
 
3854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3855
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3857
  (eval $ac_try) 2>&5
 
3858
  ac_status=$?
 
3859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3860
  (exit $ac_status); }; }; then
 
3861
  :
 
3862
else
 
3863
  echo "$as_me: program exited with status $ac_status" >&5
 
3864
echo "$as_me: failed program was:" >&5
 
3865
sed 's/^/| /' conftest.$ac_ext >&5
 
3866
 
 
3867
( exit $ac_status )
 
3868
ac_cv_header_stdc=no
 
3869
fi
 
3870
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3871
fi
 
3872
fi
 
3873
fi
 
3874
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3875
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3876
if test $ac_cv_header_stdc = yes; then
 
3877
 
 
3878
cat >>confdefs.h <<\_ACEOF
 
3879
#define STDC_HEADERS 1
 
3880
_ACEOF
 
3881
 
 
3882
fi
 
3883
 
 
3884
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3885
 
 
3886
 
 
3887
 
 
3888
 
 
3889
 
 
3890
 
 
3891
 
 
3892
 
 
3893
 
 
3894
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3895
                  inttypes.h stdint.h unistd.h
 
3896
do
 
3897
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3898
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3899
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3900
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3902
else
 
3903
  cat >conftest.$ac_ext <<_ACEOF
 
3904
#line $LINENO "configure"
 
3905
/* confdefs.h.  */
 
3906
_ACEOF
 
3907
cat confdefs.h >>conftest.$ac_ext
 
3908
cat >>conftest.$ac_ext <<_ACEOF
 
3909
/* end confdefs.h.  */
 
3910
$ac_includes_default
 
3911
 
 
3912
#include <$ac_header>
 
3913
_ACEOF
 
3914
rm -f conftest.$ac_objext
 
3915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3916
  (eval $ac_compile) 2>&5
 
3917
  ac_status=$?
 
3918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3919
  (exit $ac_status); } &&
 
3920
         { ac_try='test -s conftest.$ac_objext'
 
3921
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3922
  (eval $ac_try) 2>&5
 
3923
  ac_status=$?
 
3924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3925
  (exit $ac_status); }; }; then
 
3926
  eval "$as_ac_Header=yes"
 
3927
else
 
3928
  echo "$as_me: failed program was:" >&5
 
3929
sed 's/^/| /' conftest.$ac_ext >&5
 
3930
 
 
3931
eval "$as_ac_Header=no"
 
3932
fi
 
3933
rm -f conftest.$ac_objext conftest.$ac_ext
 
3934
fi
 
3935
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3936
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3937
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3938
  cat >>confdefs.h <<_ACEOF
 
3939
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3940
_ACEOF
 
3941
 
 
3942
fi
 
3943
 
 
3944
done
 
3945
 
 
3946
 
 
3947
 
 
3948
for ac_header in dlfcn.h
 
3949
do
 
3950
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3951
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3952
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3953
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3954
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3956
fi
 
3957
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3958
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3959
else
 
3960
  # Is the header compilable?
 
3961
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3962
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3963
cat >conftest.$ac_ext <<_ACEOF
 
3964
#line $LINENO "configure"
 
3965
/* confdefs.h.  */
 
3966
_ACEOF
 
3967
cat confdefs.h >>conftest.$ac_ext
 
3968
cat >>conftest.$ac_ext <<_ACEOF
 
3969
/* end confdefs.h.  */
 
3970
$ac_includes_default
 
3971
#include <$ac_header>
 
3972
_ACEOF
 
3973
rm -f conftest.$ac_objext
 
3974
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3975
  (eval $ac_compile) 2>&5
 
3976
  ac_status=$?
 
3977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3978
  (exit $ac_status); } &&
 
3979
         { ac_try='test -s conftest.$ac_objext'
 
3980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3981
  (eval $ac_try) 2>&5
 
3982
  ac_status=$?
 
3983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3984
  (exit $ac_status); }; }; then
 
3985
  ac_header_compiler=yes
 
3986
else
 
3987
  echo "$as_me: failed program was:" >&5
 
3988
sed 's/^/| /' conftest.$ac_ext >&5
 
3989
 
 
3990
ac_header_compiler=no
 
3991
fi
 
3992
rm -f conftest.$ac_objext conftest.$ac_ext
 
3993
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3994
echo "${ECHO_T}$ac_header_compiler" >&6
 
3995
 
 
3996
# Is the header present?
 
3997
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3998
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3999
cat >conftest.$ac_ext <<_ACEOF
 
4000
#line $LINENO "configure"
 
4001
/* confdefs.h.  */
 
4002
_ACEOF
 
4003
cat confdefs.h >>conftest.$ac_ext
 
4004
cat >>conftest.$ac_ext <<_ACEOF
 
4005
/* end confdefs.h.  */
 
4006
#include <$ac_header>
 
4007
_ACEOF
 
4008
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4009
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4010
  ac_status=$?
 
4011
  grep -v '^ *+' conftest.er1 >conftest.err
 
4012
  rm -f conftest.er1
 
4013
  cat conftest.err >&5
 
4014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4015
  (exit $ac_status); } >/dev/null; then
 
4016
  if test -s conftest.err; then
 
4017
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4018
  else
 
4019
    ac_cpp_err=
 
4020
  fi
 
4021
else
 
4022
  ac_cpp_err=yes
 
4023
fi
 
4024
if test -z "$ac_cpp_err"; then
 
4025
  ac_header_preproc=yes
 
4026
else
 
4027
  echo "$as_me: failed program was:" >&5
 
4028
sed 's/^/| /' conftest.$ac_ext >&5
 
4029
 
 
4030
  ac_header_preproc=no
 
4031
fi
 
4032
rm -f conftest.err conftest.$ac_ext
 
4033
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4034
echo "${ECHO_T}$ac_header_preproc" >&6
 
4035
 
 
4036
# So?  What about this header?
 
4037
case $ac_header_compiler:$ac_header_preproc in
 
4038
  yes:no )
 
4039
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4040
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4041
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4042
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4043
    (
 
4044
      cat <<\_ASBOX
 
4045
## ------------------------------------ ##
 
4046
## Report this to bug-autoconf@gnu.org. ##
 
4047
## ------------------------------------ ##
 
4048
_ASBOX
 
4049
    ) |
 
4050
      sed "s/^/$as_me: WARNING:     /" >&2
 
4051
    ;;
 
4052
  no:yes )
 
4053
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4054
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4055
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4056
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4057
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4058
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4059
    (
 
4060
      cat <<\_ASBOX
 
4061
## ------------------------------------ ##
 
4062
## Report this to bug-autoconf@gnu.org. ##
 
4063
## ------------------------------------ ##
 
4064
_ASBOX
 
4065
    ) |
 
4066
      sed "s/^/$as_me: WARNING:     /" >&2
 
4067
    ;;
 
4068
esac
 
4069
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4070
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4071
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4073
else
 
4074
  eval "$as_ac_Header=$ac_header_preproc"
 
4075
fi
 
4076
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4077
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4078
 
 
4079
fi
 
4080
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4081
  cat >>confdefs.h <<_ACEOF
 
4082
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4083
_ACEOF
 
4084
 
 
4085
fi
 
4086
 
 
4087
done
 
4088
 
 
4089
 
 
4090
 
 
4091
 
 
4092
 
 
4093
 
 
4094
# Only perform the check for file, if the check method requires it
 
4095
case $deplibs_check_method in
 
4096
file_magic*)
 
4097
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
4098
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
4099
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
4100
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
4101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4102
else
 
4103
  case $MAGIC_CMD in
 
4104
  /*)
 
4105
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
4106
  ;;
 
4107
  ?:/*)
 
4108
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
4109
  ;;
 
4110
  *)
 
4111
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
4112
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
4113
  ac_dummy="/usr/bin:$PATH"
 
4114
  for ac_dir in $ac_dummy; do
 
4115
    test -z "$ac_dir" && ac_dir=.
 
4116
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
4117
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
4118
      if test -n "$file_magic_test_file"; then
 
4119
        case $deplibs_check_method in
 
4120
        "file_magic "*)
 
4121
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
4122
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4123
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
4124
            egrep "$file_magic_regex" > /dev/null; then
 
4125
            :
 
4126
          else
 
4127
            cat <<EOF 1>&2
 
4128
 
 
4129
*** Warning: the command libtool uses to detect shared libraries,
 
4130
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
4131
*** The result is that libtool may fail to recognize shared libraries
 
4132
*** as such.  This will affect the creation of libtool libraries that
 
4133
*** depend on shared libraries, but programs linked with such libtool
 
4134
*** libraries will work regardless of this problem.  Nevertheless, you
 
4135
*** may want to report the problem to your system manager and/or to
 
4136
*** bug-libtool@gnu.org
 
4137
 
 
4138
EOF
 
4139
          fi ;;
 
4140
        esac
 
4141
      fi
 
4142
      break
 
4143
    fi
 
4144
  done
 
4145
  IFS="$ac_save_ifs"
 
4146
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
4147
  ;;
 
4148
esac
 
4149
fi
 
4150
 
 
4151
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4152
if test -n "$MAGIC_CMD"; then
 
4153
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
4154
echo "${ECHO_T}$MAGIC_CMD" >&6
 
4155
else
 
4156
  echo "$as_me:$LINENO: result: no" >&5
 
4157
echo "${ECHO_T}no" >&6
 
4158
fi
 
4159
 
 
4160
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
4161
  if test -n "$ac_tool_prefix"; then
 
4162
    echo "$as_me:$LINENO: checking for file" >&5
 
4163
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
4164
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
4165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4166
else
 
4167
  case $MAGIC_CMD in
 
4168
  /*)
 
4169
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
4170
  ;;
 
4171
  ?:/*)
 
4172
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
4173
  ;;
 
4174
  *)
 
4175
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
4176
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
4177
  ac_dummy="/usr/bin:$PATH"
 
4178
  for ac_dir in $ac_dummy; do
 
4179
    test -z "$ac_dir" && ac_dir=.
 
4180
    if test -f $ac_dir/file; then
 
4181
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
4182
      if test -n "$file_magic_test_file"; then
 
4183
        case $deplibs_check_method in
 
4184
        "file_magic "*)
 
4185
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
4186
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4187
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
4188
            egrep "$file_magic_regex" > /dev/null; then
 
4189
            :
 
4190
          else
 
4191
            cat <<EOF 1>&2
 
4192
 
 
4193
*** Warning: the command libtool uses to detect shared libraries,
 
4194
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
4195
*** The result is that libtool may fail to recognize shared libraries
 
4196
*** as such.  This will affect the creation of libtool libraries that
 
4197
*** depend on shared libraries, but programs linked with such libtool
 
4198
*** libraries will work regardless of this problem.  Nevertheless, you
 
4199
*** may want to report the problem to your system manager and/or to
 
4200
*** bug-libtool@gnu.org
 
4201
 
 
4202
EOF
 
4203
          fi ;;
 
4204
        esac
 
4205
      fi
 
4206
      break
 
4207
    fi
 
4208
  done
 
4209
  IFS="$ac_save_ifs"
 
4210
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
4211
  ;;
 
4212
esac
 
4213
fi
 
4214
 
 
4215
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4216
if test -n "$MAGIC_CMD"; then
 
4217
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
4218
echo "${ECHO_T}$MAGIC_CMD" >&6
 
4219
else
 
4220
  echo "$as_me:$LINENO: result: no" >&5
 
4221
echo "${ECHO_T}no" >&6
 
4222
fi
 
4223
 
 
4224
  else
 
4225
    MAGIC_CMD=:
 
4226
  fi
 
4227
fi
 
4228
 
 
4229
  fi
 
4230
  ;;
 
4231
esac
 
4232
 
 
4233
if test -n "$ac_tool_prefix"; then
 
4234
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4235
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4236
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4237
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4238
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
4239
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4240
else
 
4241
  if test -n "$RANLIB"; then
 
4242
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4243
else
 
4244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4245
for as_dir in $PATH
 
4246
do
 
4247
  IFS=$as_save_IFS
 
4248
  test -z "$as_dir" && as_dir=.
 
4249
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4250
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4251
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4252
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4253
    break 2
 
4254
  fi
 
4255
done
 
4256
done
 
4257
 
 
4258
fi
 
4259
fi
 
4260
RANLIB=$ac_cv_prog_RANLIB
 
4261
if test -n "$RANLIB"; then
 
4262
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
4263
echo "${ECHO_T}$RANLIB" >&6
 
4264
else
 
4265
  echo "$as_me:$LINENO: result: no" >&5
 
4266
echo "${ECHO_T}no" >&6
 
4267
fi
 
4268
 
 
4269
fi
 
4270
if test -z "$ac_cv_prog_RANLIB"; then
 
4271
  ac_ct_RANLIB=$RANLIB
 
4272
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4273
set dummy ranlib; ac_word=$2
 
4274
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4275
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4276
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
4277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4278
else
 
4279
  if test -n "$ac_ct_RANLIB"; then
 
4280
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4281
else
 
4282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4283
for as_dir in $PATH
 
4284
do
 
4285
  IFS=$as_save_IFS
 
4286
  test -z "$as_dir" && as_dir=.
 
4287
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4288
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4289
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4290
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4291
    break 2
 
4292
  fi
 
4293
done
 
4294
done
 
4295
 
 
4296
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
4297
fi
 
4298
fi
 
4299
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4300
if test -n "$ac_ct_RANLIB"; then
 
4301
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
4302
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
4303
else
 
4304
  echo "$as_me:$LINENO: result: no" >&5
 
4305
echo "${ECHO_T}no" >&6
 
4306
fi
 
4307
 
 
4308
  RANLIB=$ac_ct_RANLIB
 
4309
else
 
4310
  RANLIB="$ac_cv_prog_RANLIB"
 
4311
fi
 
4312
 
 
4313
if test -n "$ac_tool_prefix"; then
 
4314
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
4315
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
4316
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4317
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4318
if test "${ac_cv_prog_STRIP+set}" = set; then
 
4319
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4320
else
 
4321
  if test -n "$STRIP"; then
 
4322
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
4323
else
 
4324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4325
for as_dir in $PATH
 
4326
do
 
4327
  IFS=$as_save_IFS
 
4328
  test -z "$as_dir" && as_dir=.
 
4329
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4330
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4331
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
4332
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4333
    break 2
 
4334
  fi
 
4335
done
 
4336
done
 
4337
 
 
4338
fi
 
4339
fi
 
4340
STRIP=$ac_cv_prog_STRIP
 
4341
if test -n "$STRIP"; then
 
4342
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
4343
echo "${ECHO_T}$STRIP" >&6
 
4344
else
 
4345
  echo "$as_me:$LINENO: result: no" >&5
 
4346
echo "${ECHO_T}no" >&6
 
4347
fi
 
4348
 
 
4349
fi
 
4350
if test -z "$ac_cv_prog_STRIP"; then
 
4351
  ac_ct_STRIP=$STRIP
 
4352
  # Extract the first word of "strip", so it can be a program name with args.
 
4353
set dummy strip; ac_word=$2
 
4354
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4355
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4356
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
4357
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4358
else
 
4359
  if test -n "$ac_ct_STRIP"; then
 
4360
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
4361
else
 
4362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4363
for as_dir in $PATH
 
4364
do
 
4365
  IFS=$as_save_IFS
 
4366
  test -z "$as_dir" && as_dir=.
 
4367
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4368
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4369
    ac_cv_prog_ac_ct_STRIP="strip"
 
4370
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4371
    break 2
 
4372
  fi
 
4373
done
 
4374
done
 
4375
 
 
4376
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
4377
fi
 
4378
fi
 
4379
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
4380
if test -n "$ac_ct_STRIP"; then
 
4381
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
4382
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
4383
else
 
4384
  echo "$as_me:$LINENO: result: no" >&5
 
4385
echo "${ECHO_T}no" >&6
 
4386
fi
 
4387
 
 
4388
  STRIP=$ac_ct_STRIP
 
4389
else
 
4390
  STRIP="$ac_cv_prog_STRIP"
 
4391
fi
 
4392
 
 
4393
 
 
4394
enable_dlopen=no
 
4395
enable_win32_dll=no
 
4396
 
 
4397
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
4398
if test "${enable_libtool_lock+set}" = set; then
 
4399
  enableval="$enable_libtool_lock"
 
4400
 
 
4401
fi;
 
4402
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4403
 
 
4404
# Some flags need to be propagated to the compiler or linker for good
 
4405
# libtool support.
 
4406
case $host in
 
4407
*-*-irix6*)
 
4408
  # Find out which ABI we are using.
 
4409
  echo '#line 4409 "configure"' > conftest.$ac_ext
 
4410
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4411
  (eval $ac_compile) 2>&5
 
4412
  ac_status=$?
 
4413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4414
  (exit $ac_status); }; then
 
4415
    case `/usr/bin/file conftest.$ac_objext` in
 
4416
    *32-bit*)
 
4417
      LD="${LD-ld} -32"
 
4418
      ;;
 
4419
    *N32*)
 
4420
      LD="${LD-ld} -n32"
 
4421
      ;;
 
4422
    *64-bit*)
 
4423
      LD="${LD-ld} -64"
 
4424
      ;;
 
4425
    esac
 
4426
  fi
 
4427
  rm -rf conftest*
 
4428
  ;;
 
4429
 
 
4430
*-*-sco3.2v5*)
 
4431
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4432
  SAVE_CFLAGS="$CFLAGS"
 
4433
  CFLAGS="$CFLAGS -belf"
 
4434
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4435
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
4436
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4437
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4438
else
 
4439
 
 
4440
 
 
4441
     ac_ext=c
 
4442
ac_cpp='$CPP $CPPFLAGS'
 
4443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4446
 
 
4447
     cat >conftest.$ac_ext <<_ACEOF
 
4448
#line $LINENO "configure"
 
4449
/* confdefs.h.  */
 
4450
_ACEOF
 
4451
cat confdefs.h >>conftest.$ac_ext
 
4452
cat >>conftest.$ac_ext <<_ACEOF
 
4453
/* end confdefs.h.  */
 
4454
 
 
4455
int
 
4456
main ()
 
4457
{
 
4458
 
 
4459
  ;
 
4460
  return 0;
 
4461
}
 
4462
_ACEOF
 
4463
rm -f conftest.$ac_objext conftest$ac_exeext
 
4464
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4465
  (eval $ac_link) 2>&5
 
4466
  ac_status=$?
 
4467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4468
  (exit $ac_status); } &&
 
4469
         { ac_try='test -s conftest$ac_exeext'
 
4470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4471
  (eval $ac_try) 2>&5
 
4472
  ac_status=$?
 
4473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4474
  (exit $ac_status); }; }; then
 
4475
  lt_cv_cc_needs_belf=yes
 
4476
else
 
4477
  echo "$as_me: failed program was:" >&5
 
4478
sed 's/^/| /' conftest.$ac_ext >&5
 
4479
 
 
4480
lt_cv_cc_needs_belf=no
 
4481
fi
 
4482
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4483
     ac_ext=c
 
4484
ac_cpp='$CPP $CPPFLAGS'
 
4485
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4486
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4487
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4488
 
 
4489
fi
 
4490
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4491
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
4492
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4493
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4494
    CFLAGS="$SAVE_CFLAGS"
 
4495
  fi
 
4496
  ;;
 
4497
 
 
4498
 
 
4499
esac
 
4500
 
 
4501
# Sed substitution that helps us do robust quoting.  It backslashifies
 
4502
# metacharacters that are still active within double-quoted strings.
 
4503
Xsed='sed -e s/^X//'
 
4504
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
4505
 
 
4506
# Same as above, but do not quote variable references.
 
4507
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
4508
 
 
4509
# Sed substitution to delay expansion of an escaped shell variable in a
 
4510
# double_quote_subst'ed string.
 
4511
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4512
 
 
4513
# Constants:
 
4514
rm="rm -f"
 
4515
 
 
4516
# Global variables:
 
4517
default_ofile=libtool
 
4518
can_build_shared=yes
 
4519
 
 
4520
# All known linkers require a `.a' archive for static linking (except M$VC,
 
4521
# which needs '.lib').
 
4522
libext=a
 
4523
ltmain="$ac_aux_dir/ltmain.sh"
 
4524
ofile="$default_ofile"
 
4525
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
4526
need_locks="$enable_libtool_lock"
 
4527
 
 
4528
old_CC="$CC"
 
4529
old_CFLAGS="$CFLAGS"
 
4530
 
 
4531
# Set sane defaults for various variables
 
4532
test -z "$AR" && AR=ar
 
4533
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
4534
test -z "$AS" && AS=as
 
4535
test -z "$CC" && CC=cc
 
4536
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
4537
test -z "$LD" && LD=ld
 
4538
test -z "$LN_S" && LN_S="ln -s"
 
4539
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
4540
test -z "$NM" && NM=nm
 
4541
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4542
test -z "$RANLIB" && RANLIB=:
 
4543
test -z "$STRIP" && STRIP=:
 
4544
test -z "$ac_objext" && ac_objext=o
 
4545
 
 
4546
if test x"$host" != x"$build"; then
 
4547
  ac_tool_prefix=${host_alias}-
 
4548
else
 
4549
  ac_tool_prefix=
 
4550
fi
 
4551
 
 
4552
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
 
4553
case $host_os in
 
4554
linux-gnu*) ;;
 
4555
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
 
4556
esac
 
4557
 
 
4558
case $host_os in
 
4559
aix3*)
 
4560
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
4561
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
4562
  # vanish in a puff of smoke.
 
4563
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
4564
    COLLECT_NAMES=
 
4565
    export COLLECT_NAMES
 
4566
  fi
 
4567
  ;;
 
4568
esac
 
4569
 
 
4570
# Determine commands to create old-style static archives.
 
4571
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
4572
old_postinstall_cmds='chmod 644 $oldlib'
 
4573
old_postuninstall_cmds=
 
4574
 
 
4575
if test -n "$RANLIB"; then
 
4576
  case $host_os in
 
4577
  openbsd*)
 
4578
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
4579
    ;;
 
4580
  *)
 
4581
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
4582
    ;;
 
4583
  esac
 
4584
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
4585
fi
 
4586
 
 
4587
# Allow CC to be a program name with arguments.
 
4588
set dummy $CC
 
4589
compiler="$2"
 
4590
 
 
4591
echo "$as_me:$LINENO: checking for objdir" >&5
 
4592
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
4593
rm -f .libs 2>/dev/null
 
4594
mkdir .libs 2>/dev/null
 
4595
if test -d .libs; then
 
4596
  objdir=.libs
 
4597
else
 
4598
  # MS-DOS does not allow filenames that begin with a dot.
 
4599
  objdir=_libs
 
4600
fi
 
4601
rmdir .libs 2>/dev/null
 
4602
echo "$as_me:$LINENO: result: $objdir" >&5
 
4603
echo "${ECHO_T}$objdir" >&6
 
4604
 
 
4605
 
 
4606
 
 
4607
# Check whether --with-pic or --without-pic was given.
 
4608
if test "${with_pic+set}" = set; then
 
4609
  withval="$with_pic"
 
4610
  pic_mode="$withval"
 
4611
else
 
4612
  pic_mode=default
 
4613
fi;
 
4614
test -z "$pic_mode" && pic_mode=default
 
4615
 
 
4616
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
 
4617
# in isolation, and that seeing it set (from the cache) indicates that
 
4618
# the associated values are set (in the cache) correctly too.
 
4619
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
4620
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
4621
if test "${lt_cv_prog_cc_pic+set}" = set; then
 
4622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4623
else
 
4624
   lt_cv_prog_cc_pic=
 
4625
  lt_cv_prog_cc_shlib=
 
4626
  lt_cv_prog_cc_wl=
 
4627
  lt_cv_prog_cc_static=
 
4628
  lt_cv_prog_cc_no_builtin=
 
4629
  lt_cv_prog_cc_can_build_shared=$can_build_shared
 
4630
 
 
4631
  if test "$GCC" = yes; then
 
4632
    lt_cv_prog_cc_wl='-Wl,'
 
4633
    lt_cv_prog_cc_static='-static'
 
4634
 
 
4635
    case $host_os in
 
4636
    aix*)
 
4637
      # Below there is a dirty hack to force normal static linking with -ldl
 
4638
      # The problem is because libdl dynamically linked with both libc and
 
4639
      # libC (AIX C++ library), which obviously doesn't included in libraries
 
4640
      # list by gcc. This cause undefined symbols with -static flags.
 
4641
      # This hack allows C programs to be linked with "-static -ldl", but
 
4642
      # not sure about C++ programs.
 
4643
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
 
4644
      ;;
 
4645
    amigaos*)
 
4646
      # FIXME: we need at least 68020 code to build shared libraries, but
 
4647
      # adding the `-m68020' flag to GCC prevents building anything better,
 
4648
      # like `-m68040'.
 
4649
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
 
4650
      ;;
 
4651
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4652
      # PIC is the default for these OSes.
 
4653
      ;;
 
4654
    darwin* | rhapsody*)
 
4655
      # PIC is the default on this platform
 
4656
      # Common symbols not allowed in MH_DYLIB files
 
4657
      lt_cv_prog_cc_pic='-fno-common'
 
4658
      ;;
 
4659
    cygwin* | mingw* | pw32* | os2*)
 
4660
      # This hack is so that the source file can tell whether it is being
 
4661
      # built for inclusion in a dll (and should export symbols for example).
 
4662
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
4663
      ;;
 
4664
    sysv4*MP*)
 
4665
      if test -d /usr/nec; then
 
4666
         lt_cv_prog_cc_pic=-Kconform_pic
 
4667
      fi
 
4668
      ;;
 
4669
    *)
 
4670
      lt_cv_prog_cc_pic='-fPIC'
 
4671
      ;;
 
4672
    esac
 
4673
  else
 
4674
    # PORTME Check for PIC flags for the system compiler.
 
4675
    case $host_os in
 
4676
    aix3* | aix4* | aix5*)
 
4677
      lt_cv_prog_cc_wl='-Wl,'
 
4678
      # All AIX code is PIC.
 
4679
      if test "$host_cpu" = ia64; then
 
4680
        # AIX 5 now supports IA64 processor
 
4681
        lt_cv_prog_cc_static='-Bstatic'
 
4682
      else
 
4683
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
 
4684
      fi
 
4685
      ;;
 
4686
 
 
4687
    hpux9* | hpux10* | hpux11*)
 
4688
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
 
4689
      lt_cv_prog_cc_wl='-Wl,'
 
4690
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
 
4691
      lt_cv_prog_cc_pic='+Z'
 
4692
      ;;
 
4693
 
 
4694
    irix5* | irix6* | nonstopux*)
 
4695
      lt_cv_prog_cc_wl='-Wl,'
 
4696
      lt_cv_prog_cc_static='-non_shared'
 
4697
      # PIC (with -KPIC) is the default.
 
4698
      ;;
 
4699
 
 
4700
    cygwin* | mingw* | pw32* | os2*)
 
4701
      # This hack is so that the source file can tell whether it is being
 
4702
      # built for inclusion in a dll (and should export symbols for example).
 
4703
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
4704
      ;;
 
4705
 
 
4706
    newsos6)
 
4707
      lt_cv_prog_cc_pic='-KPIC'
 
4708
      lt_cv_prog_cc_static='-Bstatic'
 
4709
      ;;
 
4710
 
 
4711
    osf3* | osf4* | osf5*)
 
4712
      # All OSF/1 code is PIC.
 
4713
      lt_cv_prog_cc_wl='-Wl,'
 
4714
      lt_cv_prog_cc_static='-non_shared'
 
4715
      ;;
 
4716
 
 
4717
    sco3.2v5*)
 
4718
      lt_cv_prog_cc_pic='-Kpic'
 
4719
      lt_cv_prog_cc_static='-dn'
 
4720
      lt_cv_prog_cc_shlib='-belf'
 
4721
      ;;
 
4722
 
 
4723
    solaris*)
 
4724
      lt_cv_prog_cc_pic='-KPIC'
 
4725
      lt_cv_prog_cc_static='-Bstatic'
 
4726
      lt_cv_prog_cc_wl='-Wl,'
 
4727
      ;;
 
4728
 
 
4729
    sunos4*)
 
4730
      lt_cv_prog_cc_pic='-PIC'
 
4731
      lt_cv_prog_cc_static='-Bstatic'
 
4732
      lt_cv_prog_cc_wl='-Qoption ld '
 
4733
      ;;
 
4734
 
 
4735
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4736
      lt_cv_prog_cc_pic='-KPIC'
 
4737
      lt_cv_prog_cc_static='-Bstatic'
 
4738
      lt_cv_prog_cc_wl='-Wl,'
 
4739
      ;;
 
4740
 
 
4741
    uts4*)
 
4742
      lt_cv_prog_cc_pic='-pic'
 
4743
      lt_cv_prog_cc_static='-Bstatic'
 
4744
      ;;
 
4745
 
 
4746
    sysv4*MP*)
 
4747
      if test -d /usr/nec ;then
 
4748
        lt_cv_prog_cc_pic='-Kconform_pic'
 
4749
        lt_cv_prog_cc_static='-Bstatic'
 
4750
      fi
 
4751
      ;;
 
4752
 
 
4753
    *)
 
4754
      lt_cv_prog_cc_can_build_shared=no
 
4755
      ;;
 
4756
    esac
 
4757
  fi
 
4758
 
 
4759
fi
 
4760
 
 
4761
if test -z "$lt_cv_prog_cc_pic"; then
 
4762
  echo "$as_me:$LINENO: result: none" >&5
 
4763
echo "${ECHO_T}none" >&6
 
4764
else
 
4765
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
 
4766
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
 
4767
 
 
4768
  # Check to make sure the pic_flag actually works.
 
4769
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
 
4770
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
 
4771
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
 
4772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4773
else
 
4774
      save_CFLAGS="$CFLAGS"
 
4775
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
 
4776
    cat >conftest.$ac_ext <<_ACEOF
 
4777
#line $LINENO "configure"
 
4778
/* confdefs.h.  */
 
4779
_ACEOF
 
4780
cat confdefs.h >>conftest.$ac_ext
 
4781
cat >>conftest.$ac_ext <<_ACEOF
 
4782
/* end confdefs.h.  */
 
4783
 
 
4784
int
 
4785
main ()
 
4786
{
 
4787
 
 
4788
  ;
 
4789
  return 0;
 
4790
}
 
4791
_ACEOF
 
4792
rm -f conftest.$ac_objext
 
4793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4794
  (eval $ac_compile) 2>&5
 
4795
  ac_status=$?
 
4796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4797
  (exit $ac_status); } &&
 
4798
         { ac_try='test -s conftest.$ac_objext'
 
4799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4800
  (eval $ac_try) 2>&5
 
4801
  ac_status=$?
 
4802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4803
  (exit $ac_status); }; }; then
 
4804
        case $host_os in
 
4805
      hpux9* | hpux10* | hpux11*)
 
4806
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
 
4807
        # they create non-PIC objects.  So, if there were any warnings, we
 
4808
        # assume that PIC is not supported.
 
4809
        if test -s conftest.err; then
 
4810
          lt_cv_prog_cc_pic_works=no
 
4811
        else
 
4812
          lt_cv_prog_cc_pic_works=yes
 
4813
        fi
 
4814
        ;;
 
4815
      *)
 
4816
        lt_cv_prog_cc_pic_works=yes
 
4817
        ;;
 
4818
      esac
 
4819
 
 
4820
else
 
4821
  echo "$as_me: failed program was:" >&5
 
4822
sed 's/^/| /' conftest.$ac_ext >&5
 
4823
 
 
4824
      lt_cv_prog_cc_pic_works=no
 
4825
 
 
4826
fi
 
4827
rm -f conftest.$ac_objext conftest.$ac_ext
 
4828
    CFLAGS="$save_CFLAGS"
 
4829
 
 
4830
fi
 
4831
 
 
4832
 
 
4833
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
 
4834
    lt_cv_prog_cc_pic=
 
4835
    lt_cv_prog_cc_can_build_shared=no
 
4836
  else
 
4837
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
 
4838
  fi
 
4839
 
 
4840
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
 
4841
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
 
4842
fi
 
4843
 
 
4844
# Check for any special shared library compilation flags.
 
4845
if test -n "$lt_cv_prog_cc_shlib"; then
 
4846
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
 
4847
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
 
4848
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
4849
  else
 
4850
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
4851
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
4852
    lt_cv_prog_cc_can_build_shared=no
 
4853
  fi
 
4854
fi
 
4855
 
 
4856
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 
4857
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
 
4858
if test "${lt_cv_prog_cc_static_works+set}" = set; then
 
4859
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4860
else
 
4861
    lt_cv_prog_cc_static_works=no
 
4862
  save_LDFLAGS="$LDFLAGS"
 
4863
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
 
4864
  cat >conftest.$ac_ext <<_ACEOF
 
4865
#line $LINENO "configure"
 
4866
/* confdefs.h.  */
 
4867
_ACEOF
 
4868
cat confdefs.h >>conftest.$ac_ext
 
4869
cat >>conftest.$ac_ext <<_ACEOF
 
4870
/* end confdefs.h.  */
 
4871
 
 
4872
int
 
4873
main ()
 
4874
{
 
4875
 
 
4876
  ;
 
4877
  return 0;
 
4878
}
 
4879
_ACEOF
 
4880
rm -f conftest.$ac_objext conftest$ac_exeext
 
4881
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4882
  (eval $ac_link) 2>&5
 
4883
  ac_status=$?
 
4884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4885
  (exit $ac_status); } &&
 
4886
         { ac_try='test -s conftest$ac_exeext'
 
4887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4888
  (eval $ac_try) 2>&5
 
4889
  ac_status=$?
 
4890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4891
  (exit $ac_status); }; }; then
 
4892
  lt_cv_prog_cc_static_works=yes
 
4893
else
 
4894
  echo "$as_me: failed program was:" >&5
 
4895
sed 's/^/| /' conftest.$ac_ext >&5
 
4896
 
 
4897
fi
 
4898
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4899
  LDFLAGS="$save_LDFLAGS"
 
4900
 
 
4901
fi
 
4902
 
 
4903
 
 
4904
# Belt *and* braces to stop my trousers falling down:
 
4905
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
 
4906
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
 
4907
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
 
4908
 
 
4909
pic_flag="$lt_cv_prog_cc_pic"
 
4910
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
 
4911
wl="$lt_cv_prog_cc_wl"
 
4912
link_static_flag="$lt_cv_prog_cc_static"
 
4913
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
 
4914
can_build_shared="$lt_cv_prog_cc_can_build_shared"
 
4915
 
 
4916
 
 
4917
# Check to see if options -o and -c are simultaneously supported by compiler
 
4918
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
4919
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
4920
if test "${lt_cv_compiler_c_o+set}" = set; then
 
4921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4922
else
 
4923
 
 
4924
$rm -r conftest 2>/dev/null
 
4925
mkdir conftest
 
4926
cd conftest
 
4927
echo "int some_variable = 0;" > conftest.$ac_ext
 
4928
mkdir out
 
4929
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
4930
# that will create temporary files in the current directory regardless of
 
4931
# the output directory.  Thus, making CWD read-only will cause this test
 
4932
# to fail, enabling locking or at least warning the user not to do parallel
 
4933
# builds.
 
4934
chmod -w .
 
4935
save_CFLAGS="$CFLAGS"
 
4936
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 
4937
compiler_c_o=no
 
4938
if { (eval echo configure:4938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 
4939
  # The compiler can only warn and ignore the option if not recognized
 
4940
  # So say no if there are warnings
 
4941
  if test -s out/conftest.err; then
 
4942
    lt_cv_compiler_c_o=no
 
4943
  else
 
4944
    lt_cv_compiler_c_o=yes
 
4945
  fi
 
4946
else
 
4947
  # Append any errors to the config.log.
 
4948
  cat out/conftest.err 1>&5
 
4949
  lt_cv_compiler_c_o=no
 
4950
fi
 
4951
CFLAGS="$save_CFLAGS"
 
4952
chmod u+w .
 
4953
$rm conftest* out/*
 
4954
rmdir out
 
4955
cd ..
 
4956
rmdir conftest
 
4957
$rm -r conftest 2>/dev/null
 
4958
 
 
4959
fi
 
4960
 
 
4961
compiler_c_o=$lt_cv_compiler_c_o
 
4962
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
 
4963
echo "${ECHO_T}$compiler_c_o" >&6
 
4964
 
 
4965
if test x"$compiler_c_o" = x"yes"; then
 
4966
  # Check to see if we can write to a .lo
 
4967
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
 
4968
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
 
4969
  if test "${lt_cv_compiler_o_lo+set}" = set; then
 
4970
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4971
else
 
4972
 
 
4973
  lt_cv_compiler_o_lo=no
 
4974
  save_CFLAGS="$CFLAGS"
 
4975
  CFLAGS="$CFLAGS -c -o conftest.lo"
 
4976
  save_objext="$ac_objext"
 
4977
  ac_objext=lo
 
4978
  cat >conftest.$ac_ext <<_ACEOF
 
4979
#line $LINENO "configure"
 
4980
/* confdefs.h.  */
 
4981
_ACEOF
 
4982
cat confdefs.h >>conftest.$ac_ext
 
4983
cat >>conftest.$ac_ext <<_ACEOF
 
4984
/* end confdefs.h.  */
 
4985
 
 
4986
int
 
4987
main ()
 
4988
{
 
4989
int some_variable = 0;
 
4990
  ;
 
4991
  return 0;
 
4992
}
 
4993
_ACEOF
 
4994
rm -f conftest.$ac_objext
 
4995
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4996
  (eval $ac_compile) 2>&5
 
4997
  ac_status=$?
 
4998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4999
  (exit $ac_status); } &&
 
5000
         { ac_try='test -s conftest.$ac_objext'
 
5001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5002
  (eval $ac_try) 2>&5
 
5003
  ac_status=$?
 
5004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5005
  (exit $ac_status); }; }; then
 
5006
      # The compiler can only warn and ignore the option if not recognized
 
5007
    # So say no if there are warnings
 
5008
    if test -s conftest.err; then
 
5009
      lt_cv_compiler_o_lo=no
 
5010
    else
 
5011
      lt_cv_compiler_o_lo=yes
 
5012
    fi
 
5013
 
 
5014
else
 
5015
  echo "$as_me: failed program was:" >&5
 
5016
sed 's/^/| /' conftest.$ac_ext >&5
 
5017
 
 
5018
fi
 
5019
rm -f conftest.$ac_objext conftest.$ac_ext
 
5020
  ac_objext="$save_objext"
 
5021
  CFLAGS="$save_CFLAGS"
 
5022
 
 
5023
fi
 
5024
 
 
5025
  compiler_o_lo=$lt_cv_compiler_o_lo
 
5026
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
 
5027
echo "${ECHO_T}$compiler_o_lo" >&6
 
5028
else
 
5029
  compiler_o_lo=no
 
5030
fi
 
5031
 
 
5032
# Check to see if we can do hard links to lock some files if needed
 
5033
hard_links="nottested"
 
5034
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
5035
  # do not overwrite the value of need_locks provided by the user
 
5036
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
5037
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
5038
  hard_links=yes
 
5039
  $rm conftest*
 
5040
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
5041
  touch conftest.a
 
5042
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
5043
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
5044
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
5045
echo "${ECHO_T}$hard_links" >&6
 
5046
  if test "$hard_links" = no; then
 
5047
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
5048
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
5049
    need_locks=warn
 
5050
  fi
 
5051
else
 
5052
  need_locks=no
 
5053
fi
 
5054
 
 
5055
if test "$GCC" = yes; then
 
5056
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
 
5057
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5058
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5059
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5060
  save_CFLAGS="$CFLAGS"
 
5061
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
 
5062
  compiler_rtti_exceptions=no
 
5063
  cat >conftest.$ac_ext <<_ACEOF
 
5064
#line $LINENO "configure"
 
5065
/* confdefs.h.  */
 
5066
_ACEOF
 
5067
cat confdefs.h >>conftest.$ac_ext
 
5068
cat >>conftest.$ac_ext <<_ACEOF
 
5069
/* end confdefs.h.  */
 
5070
 
 
5071
int
 
5072
main ()
 
5073
{
 
5074
int some_variable = 0;
 
5075
  ;
 
5076
  return 0;
 
5077
}
 
5078
_ACEOF
 
5079
rm -f conftest.$ac_objext
 
5080
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5081
  (eval $ac_compile) 2>&5
 
5082
  ac_status=$?
 
5083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5084
  (exit $ac_status); } &&
 
5085
         { ac_try='test -s conftest.$ac_objext'
 
5086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5087
  (eval $ac_try) 2>&5
 
5088
  ac_status=$?
 
5089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5090
  (exit $ac_status); }; }; then
 
5091
      # The compiler can only warn and ignore the option if not recognized
 
5092
    # So say no if there are warnings
 
5093
    if test -s conftest.err; then
 
5094
      compiler_rtti_exceptions=no
 
5095
    else
 
5096
      compiler_rtti_exceptions=yes
 
5097
    fi
 
5098
 
 
5099
else
 
5100
  echo "$as_me: failed program was:" >&5
 
5101
sed 's/^/| /' conftest.$ac_ext >&5
 
5102
 
 
5103
fi
 
5104
rm -f conftest.$ac_objext conftest.$ac_ext
 
5105
  CFLAGS="$save_CFLAGS"
 
5106
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
 
5107
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
 
5108
 
 
5109
  if test "$compiler_rtti_exceptions" = "yes"; then
 
5110
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
 
5111
  else
 
5112
    no_builtin_flag=' -fno-builtin'
 
5113
  fi
 
5114
fi
 
5115
 
 
5116
# See if the linker supports building shared libraries.
 
5117
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
 
5118
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
 
5119
 
 
5120
allow_undefined_flag=
 
5121
no_undefined_flag=
 
5122
need_lib_prefix=unknown
 
5123
need_version=unknown
 
5124
# when you set need_version to no, make sure it does not cause -set_version
 
5125
# flags to be left without arguments
 
5126
archive_cmds=
 
5127
archive_expsym_cmds=
 
5128
old_archive_from_new_cmds=
 
5129
old_archive_from_expsyms_cmds=
 
5130
export_dynamic_flag_spec=
 
5131
whole_archive_flag_spec=
 
5132
thread_safe_flag_spec=
 
5133
hardcode_into_libs=no
 
5134
hardcode_libdir_flag_spec=
 
5135
hardcode_libdir_separator=
 
5136
hardcode_direct=no
 
5137
hardcode_minus_L=no
 
5138
hardcode_shlibpath_var=unsupported
 
5139
runpath_var=
 
5140
link_all_deplibs=unknown
 
5141
always_export_symbols=no
 
5142
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5143
# include_expsyms should be a list of space-separated symbols to be *always*
 
5144
# included in the symbol list
 
5145
include_expsyms=
 
5146
# exclude_expsyms can be an egrep regular expression of symbols to exclude
 
5147
# it will be wrapped by ` (' and `)$', so one must not match beginning or
 
5148
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
5149
# as well as any symbol that contains `d'.
 
5150
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
5151
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
5152
# platforms (ab)use it in PIC code, but their linkers get confused if
 
5153
# the symbol is explicitly referenced.  Since portable code cannot
 
5154
# rely on this symbol name, it's probably fine to never include it in
 
5155
# preloaded symbol tables.
 
5156
extract_expsyms_cmds=
 
5157
 
 
5158
case $host_os in
 
5159
cygwin* | mingw* | pw32*)
 
5160
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
5161
  # When not using gcc, we currently assume that we are using
 
5162
  # Microsoft Visual C++.
 
5163
  if test "$GCC" != yes; then
 
5164
    with_gnu_ld=no
 
5165
  fi
 
5166
  ;;
 
5167
openbsd*)
 
5168
  with_gnu_ld=no
 
5169
  ;;
 
5170
esac
 
5171
 
 
5172
ld_shlibs=yes
 
5173
if test "$with_gnu_ld" = yes; then
 
5174
  # If archive_cmds runs LD, not CC, wlarc should be empty
 
5175
  wlarc='${wl}'
 
5176
 
 
5177
  # See if GNU ld supports shared libraries.
 
5178
  case $host_os in
 
5179
  aix3* | aix4* | aix5*)
 
5180
    # On AIX, the GNU linker is very broken
 
5181
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
 
5182
    ld_shlibs=no
 
5183
    cat <<EOF 1>&2
 
5184
 
 
5185
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
5186
*** to be unable to reliably create shared libraries on AIX.
 
5187
*** Therefore, libtool is disabling shared libraries support.  If you
 
5188
*** really care for shared libraries, you may want to modify your PATH
 
5189
*** so that a non-GNU linker is found, and then restart.
 
5190
 
 
5191
EOF
 
5192
    ;;
 
5193
 
 
5194
  amigaos*)
 
5195
    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)'
 
5196
    hardcode_libdir_flag_spec='-L$libdir'
 
5197
    hardcode_minus_L=yes
 
5198
 
 
5199
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
5200
    # that the semantics of dynamic libraries on AmigaOS, at least up
 
5201
    # to version 4, is to share data among multiple programs linked
 
5202
    # with the same dynamic library.  Since this doesn't match the
 
5203
    # behavior of shared libraries on other platforms, we can use
 
5204
    # them.
 
5205
    ld_shlibs=no
 
5206
    ;;
 
5207
 
 
5208
  beos*)
 
5209
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5210
      allow_undefined_flag=unsupported
 
5211
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
5212
      # support --undefined.  This deserves some investigation.  FIXME
 
5213
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5214
    else
 
5215
      ld_shlibs=no
 
5216
    fi
 
5217
    ;;
 
5218
 
 
5219
  cygwin* | mingw* | pw32*)
 
5220
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
5221
    # no search path for DLLs.
 
5222
    hardcode_libdir_flag_spec='-L$libdir'
 
5223
    allow_undefined_flag=unsupported
 
5224
    always_export_symbols=yes
 
5225
 
 
5226
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
 
5227
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
 
5228
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
 
5229
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
 
5230
      else $CC -o impgen impgen.c ; fi)~
 
5231
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
 
5232
 
 
5233
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
 
5234
 
 
5235
    # cygwin and mingw dlls have different entry points and sets of symbols
 
5236
    # to exclude.
 
5237
    # FIXME: what about values for MSVC?
 
5238
    dll_entry=__cygwin_dll_entry@12
 
5239
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
 
5240
    case $host_os in
 
5241
    mingw*)
 
5242
      # mingw values
 
5243
      dll_entry=_DllMainCRTStartup@12
 
5244
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
 
5245
      ;;
 
5246
    esac
 
5247
 
 
5248
    # mingw and cygwin differ, and it's simplest to just exclude the union
 
5249
    # of the two symbol sets.
 
5250
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
 
5251
 
 
5252
    # recent cygwin and mingw systems supply a stub DllMain which the user
 
5253
    # can override, but on older systems we have to supply one (in ltdll.c)
 
5254
    if test "x$lt_cv_need_dllmain" = "xyes"; then
 
5255
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
 
5256
      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~
 
5257
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 
5258
    else
 
5259
      ltdll_obj=
 
5260
      ltdll_cmds=
 
5261
    fi
 
5262
 
 
5263
    # Extract the symbol export list from an `--export-all' def file,
 
5264
    # then regenerate the def file from the symbol export list, so that
 
5265
    # the compiled dll only exports the symbol export list.
 
5266
    # Be careful not to strip the DATA tag left be newer dlltools.
 
5267
    export_symbols_cmds="$ltdll_cmds"'
 
5268
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
 
5269
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
 
5270
 
 
5271
    # If the export-symbols file already is a .def file (1st line
 
5272
    # is EXPORTS), use it as is.
 
5273
    # If DATA tags from a recent dlltool are present, honour them!
 
5274
    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
 
5275
        cp $export_symbols $output_objdir/$soname-def;
 
5276
      else
 
5277
        echo EXPORTS > $output_objdir/$soname-def;
 
5278
        _lt_hint=1;
 
5279
        cat $export_symbols | while read symbol; do
 
5280
         set dummy \$symbol;
 
5281
         case \$# in
 
5282
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
 
5283
           4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
 
5284
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
 
5285
         esac;
 
5286
         _lt_hint=`expr 1 + \$_lt_hint`;
 
5287
        done;
 
5288
      fi~
 
5289
      '"$ltdll_cmds"'
 
5290
      $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~
 
5291
      $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~
 
5292
      $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~
 
5293
      $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~
 
5294
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 
5295
    ;;
 
5296
 
 
5297
  netbsd*)
 
5298
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5299
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5300
      wlarc=
 
5301
    else
 
5302
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5303
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5304
    fi
 
5305
    ;;
 
5306
 
 
5307
  solaris* | sysv5*)
 
5308
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 
5309
      ld_shlibs=no
 
5310
      cat <<EOF 1>&2
 
5311
 
 
5312
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
5313
*** create shared libraries on Solaris systems.  Therefore, libtool
 
5314
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5315
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
5316
*** your PATH or compiler configuration so that the native linker is
 
5317
*** used, and then restart.
 
5318
 
 
5319
EOF
 
5320
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5321
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5322
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5323
    else
 
5324
      ld_shlibs=no
 
5325
    fi
 
5326
    ;;
 
5327
 
 
5328
  sunos4*)
 
5329
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5330
    wlarc=
 
5331
    hardcode_direct=yes
 
5332
    hardcode_shlibpath_var=no
 
5333
    ;;
 
5334
 
 
5335
  *)
 
5336
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5337
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5338
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5339
    else
 
5340
      ld_shlibs=no
 
5341
    fi
 
5342
    ;;
 
5343
  esac
 
5344
 
 
5345
  if test "$ld_shlibs" = yes; then
 
5346
    runpath_var=LD_RUN_PATH
 
5347
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
5348
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
5349
    case $host_os in
 
5350
    cygwin* | mingw* | pw32*)
 
5351
      # dlltool doesn't understand --whole-archive et. al.
 
5352
      whole_archive_flag_spec=
 
5353
      ;;
 
5354
    *)
 
5355
      # ancient GNU ld didn't support --whole-archive et. al.
 
5356
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
 
5357
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5358
      else
 
5359
        whole_archive_flag_spec=
 
5360
      fi
 
5361
      ;;
 
5362
    esac
 
5363
  fi
 
5364
else
 
5365
  # PORTME fill in a description of your system's linker (not GNU ld)
 
5366
  case $host_os in
 
5367
  aix3*)
 
5368
    allow_undefined_flag=unsupported
 
5369
    always_export_symbols=yes
 
5370
    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'
 
5371
    # Note: this linker hardcodes the directories in LIBPATH if there
 
5372
    # are no directories specified by -L.
 
5373
    hardcode_minus_L=yes
 
5374
    if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5375
      # Neither direct hardcoding nor static linking is supported with a
 
5376
      # broken collect2.
 
5377
      hardcode_direct=unsupported
 
5378
    fi
 
5379
    ;;
 
5380
 
 
5381
  aix4* | aix5*)
 
5382
    if test "$host_cpu" = ia64; then
 
5383
      # On IA64, the linker does run time linking by default, so we don't
 
5384
      # have to do anything special.
 
5385
      aix_use_runtimelinking=no
 
5386
      exp_sym_flag='-Bexport'
 
5387
      no_entry_flag=""
 
5388
    else
 
5389
      aix_use_runtimelinking=no
 
5390
 
 
5391
      # Test if we are trying to use run time linking or normal
 
5392
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
5393
      # need to do runtime linking.
 
5394
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
5395
        for ld_flag in $LDFLAGS; do
 
5396
          case $ld_flag in
 
5397
          *-brtl*)
 
5398
            aix_use_runtimelinking=yes
 
5399
            break
 
5400
          ;;
 
5401
          esac
 
5402
        done
 
5403
      esac
 
5404
 
 
5405
      exp_sym_flag='-bexport'
 
5406
      no_entry_flag='-bnoentry'
 
5407
    fi
 
5408
 
 
5409
    # When large executables or shared objects are built, AIX ld can
 
5410
    # have problems creating the table of contents.  If linking a library
 
5411
    # or program results in "error TOC overflow" add -mminimal-toc to
 
5412
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
5413
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
5414
 
 
5415
    hardcode_direct=yes
 
5416
    archive_cmds=''
 
5417
    hardcode_libdir_separator=':'
 
5418
    if test "$GCC" = yes; then
 
5419
      case $host_os in aix4.[012]|aix4.[012].*)
 
5420
        collect2name=`${CC} -print-prog-name=collect2`
 
5421
        if test -f "$collect2name" && \
 
5422
          strings "$collect2name" | grep resolve_lib_name >/dev/null
 
5423
        then
 
5424
          # We have reworked collect2
 
5425
          hardcode_direct=yes
 
5426
        else
 
5427
          # We have old collect2
 
5428
          hardcode_direct=unsupported
 
5429
          # It fails to find uninstalled libraries when the uninstalled
 
5430
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5431
          # to unsupported forces relinking
 
5432
          hardcode_minus_L=yes
 
5433
          hardcode_libdir_flag_spec='-L$libdir'
 
5434
          hardcode_libdir_separator=
 
5435
        fi
 
5436
      esac
 
5437
 
 
5438
      shared_flag='-shared'
 
5439
    else
 
5440
      # not using gcc
 
5441
      if test "$host_cpu" = ia64; then
 
5442
        shared_flag='${wl}-G'
 
5443
      else
 
5444
        if test "$aix_use_runtimelinking" = yes; then
 
5445
          shared_flag='${wl}-G'
 
5446
        else
 
5447
          shared_flag='${wl}-bM:SRE'
 
5448
        fi
 
5449
      fi
 
5450
    fi
 
5451
 
 
5452
    # It seems that -bexpall can do strange things, so it is better to
 
5453
    # generate a list of symbols to export.
 
5454
    always_export_symbols=yes
 
5455
    if test "$aix_use_runtimelinking" = yes; then
 
5456
      # Warning - without using the other runtime loading flags (-brtl),
 
5457
      # -berok will link without error, but may produce a broken library.
 
5458
      allow_undefined_flag='-berok'
 
5459
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
 
5460
      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"
 
5461
    else
 
5462
      if test "$host_cpu" = ia64; then
 
5463
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
5464
        allow_undefined_flag="-z nodefs"
 
5465
        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"
 
5466
      else
 
5467
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
 
5468
        # Warning - without using the other run time loading flags,
 
5469
        # -berok will link without error, but may produce a broken library.
 
5470
        allow_undefined_flag='${wl}-berok'
 
5471
        # This is a bit strange, but is similar to how AIX traditionally builds
 
5472
        # it's shared libraries.
 
5473
        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 $output_objdir/$libname$release.a $output_objdir/$soname'
 
5474
      fi
 
5475
    fi
 
5476
    ;;
 
5477
 
 
5478
  amigaos*)
 
5479
    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)'
 
5480
    hardcode_libdir_flag_spec='-L$libdir'
 
5481
    hardcode_minus_L=yes
 
5482
    # see comment about different semantics on the GNU ld section
 
5483
    ld_shlibs=no
 
5484
    ;;
 
5485
 
 
5486
  cygwin* | mingw* | pw32*)
 
5487
    # When not using gcc, we currently assume that we are using
 
5488
    # Microsoft Visual C++.
 
5489
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
5490
    # no search path for DLLs.
 
5491
    hardcode_libdir_flag_spec=' '
 
5492
    allow_undefined_flag=unsupported
 
5493
    # Tell ltmain to make .lib files, not .a files.
 
5494
    libext=lib
 
5495
    # FIXME: Setting linknames here is a bad hack.
 
5496
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5497
    # The linker will automatically build a .lib file if we build a DLL.
 
5498
    old_archive_from_new_cmds='true'
 
5499
    # FIXME: Should let the user specify the lib program.
 
5500
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5501
    fix_srcfile_path='`cygpath -w "$srcfile"`'
 
5502
    ;;
 
5503
 
 
5504
  darwin* | rhapsody*)
 
5505
    case "$host_os" in
 
5506
    rhapsody* | darwin1.[012])
 
5507
      allow_undefined_flag='-undefined suppress'
 
5508
      ;;
 
5509
    *) # Darwin 1.3 on
 
5510
      allow_undefined_flag='-flat_namespace -undefined suppress'
 
5511
      ;;
 
5512
    esac
 
5513
    # FIXME: Relying on posixy $() will cause problems for
 
5514
    #        cross-compilation, but unfortunately the echo tests do not
 
5515
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
5516
    #        `"' quotes if we put them in here... so don't!
 
5517
    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
 
5518
    # We need to add '_' to the symbols in $export_symbols first
 
5519
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
 
5520
    hardcode_direct=yes
 
5521
    hardcode_shlibpath_var=no
 
5522
    whole_archive_flag_spec='-all_load $convenience'
 
5523
    ;;
 
5524
 
 
5525
  freebsd1*)
 
5526
    ld_shlibs=no
 
5527
    ;;
 
5528
 
 
5529
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
5530
  # support.  Future versions do this automatically, but an explicit c++rt0.o
 
5531
  # does not break anything, and helps significantly (at the cost of a little
 
5532
  # extra space).
 
5533
  freebsd2.2*)
 
5534
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5535
    hardcode_libdir_flag_spec='-R$libdir'
 
5536
    hardcode_direct=yes
 
5537
    hardcode_shlibpath_var=no
 
5538
    ;;
 
5539
 
 
5540
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
5541
  freebsd2*)
 
5542
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5543
    hardcode_direct=yes
 
5544
    hardcode_minus_L=yes
 
5545
    hardcode_shlibpath_var=no
 
5546
    ;;
 
5547
 
 
5548
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
5549
  freebsd*)
 
5550
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5551
    hardcode_libdir_flag_spec='-R$libdir'
 
5552
    hardcode_direct=yes
 
5553
    hardcode_shlibpath_var=no
 
5554
    ;;
 
5555
 
 
5556
  hpux9* | hpux10* | hpux11*)
 
5557
    case $host_os in
 
5558
    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' ;;
 
5559
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
 
5560
    esac
 
5561
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
5562
    hardcode_libdir_separator=:
 
5563
    hardcode_direct=yes
 
5564
    hardcode_minus_L=yes # Not in the search PATH, but as the default
 
5565
                         # location of the library.
 
5566
    export_dynamic_flag_spec='${wl}-E'
 
5567
    ;;
 
5568
 
 
5569
  irix5* | irix6* | nonstopux*)
 
5570
    if test "$GCC" = yes; then
 
5571
      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'
 
5572
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5573
    else
 
5574
      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'
 
5575
      hardcode_libdir_flag_spec='-rpath $libdir'
 
5576
    fi
 
5577
    hardcode_libdir_separator=:
 
5578
    link_all_deplibs=yes
 
5579
    ;;
 
5580
 
 
5581
  netbsd*)
 
5582
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5583
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5584
    else
 
5585
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5586
    fi
 
5587
    hardcode_libdir_flag_spec='-R$libdir'
 
5588
    hardcode_direct=yes
 
5589
    hardcode_shlibpath_var=no
 
5590
    ;;
 
5591
 
 
5592
  newsos6)
 
5593
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5594
    hardcode_direct=yes
 
5595
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5596
    hardcode_libdir_separator=:
 
5597
    hardcode_shlibpath_var=no
 
5598
    ;;
 
5599
 
 
5600
  openbsd*)
 
5601
    hardcode_direct=yes
 
5602
    hardcode_shlibpath_var=no
 
5603
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5604
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5605
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
5606
      export_dynamic_flag_spec='${wl}-E'
 
5607
    else
 
5608
      case "$host_os" in
 
5609
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
5610
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5611
        hardcode_libdir_flag_spec='-R$libdir'
 
5612
        ;;
 
5613
      *)
 
5614
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5615
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
5616
        ;;
 
5617
      esac
 
5618
    fi
 
5619
    ;;
 
5620
 
 
5621
  os2*)
 
5622
    hardcode_libdir_flag_spec='-L$libdir'
 
5623
    hardcode_minus_L=yes
 
5624
    allow_undefined_flag=unsupported
 
5625
    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'
 
5626
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5627
    ;;
 
5628
 
 
5629
  osf3*)
 
5630
    if test "$GCC" = yes; then
 
5631
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
5632
      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'
 
5633
    else
 
5634
      allow_undefined_flag=' -expect_unresolved \*'
 
5635
      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'
 
5636
    fi
 
5637
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5638
    hardcode_libdir_separator=:
 
5639
    ;;
 
5640
 
 
5641
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
 
5642
    if test "$GCC" = yes; then
 
5643
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
5644
      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'
 
5645
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5646
    else
 
5647
      allow_undefined_flag=' -expect_unresolved \*'
 
5648
      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'
 
5649
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
5650
      $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'
 
5651
 
 
5652
      #Both c and cxx compiler support -rpath directly
 
5653
      hardcode_libdir_flag_spec='-rpath $libdir'
 
5654
    fi
 
5655
    hardcode_libdir_separator=:
 
5656
    ;;
 
5657
 
 
5658
  sco3.2v5*)
 
5659
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5660
    hardcode_shlibpath_var=no
 
5661
    runpath_var=LD_RUN_PATH
 
5662
    hardcode_runpath_var=yes
 
5663
    export_dynamic_flag_spec='${wl}-Bexport'
 
5664
    ;;
 
5665
 
 
5666
  solaris*)
 
5667
    # gcc --version < 3.0 without binutils cannot create self contained
 
5668
    # shared libraries reliably, requiring libgcc.a to resolve some of
 
5669
    # the object symbols generated in some cases.  Libraries that use
 
5670
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
 
5671
    # a copy of libgcc.a into every shared library to guarantee resolving
 
5672
    # such symbols causes other problems:  According to Tim Van Holder
 
5673
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
 
5674
    # (to the application) exception stack for one thing.
 
5675
    no_undefined_flag=' -z defs'
 
5676
    if test "$GCC" = yes; then
 
5677
      case `$CC --version 2>/dev/null` in
 
5678
      [12].*)
 
5679
        cat <<EOF 1>&2
 
5680
 
 
5681
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
 
5682
*** create self contained shared libraries on Solaris systems, without
 
5683
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
 
5684
*** -no-undefined support, which will at least allow you to build shared
 
5685
*** libraries.  However, you may find that when you link such libraries
 
5686
*** into an application without using GCC, you have to manually add
 
5687
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
 
5688
*** upgrade to a newer version of GCC.  Another option is to rebuild your
 
5689
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
 
5690
 
 
5691
EOF
 
5692
        no_undefined_flag=
 
5693
        ;;
 
5694
      esac
 
5695
    fi
 
5696
    # $CC -shared without GNU ld will not create a library from C++
 
5697
    # object files and a static libstdc++, better avoid it by now
 
5698
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5699
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5700
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5701
    hardcode_libdir_flag_spec='-R$libdir'
 
5702
    hardcode_shlibpath_var=no
 
5703
    case $host_os in
 
5704
    solaris2.[0-5] | solaris2.[0-5].*) ;;
 
5705
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5706
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
5707
    esac
 
5708
    link_all_deplibs=yes
 
5709
    ;;
 
5710
 
 
5711
  sunos4*)
 
5712
    if test "x$host_vendor" = xsequent; then
 
5713
      # Use $CC to link under sequent, because it throws in some extra .o
 
5714
      # files that make .init and .fini sections work.
 
5715
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5716
    else
 
5717
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
5718
    fi
 
5719
    hardcode_libdir_flag_spec='-L$libdir'
 
5720
    hardcode_direct=yes
 
5721
    hardcode_minus_L=yes
 
5722
    hardcode_shlibpath_var=no
 
5723
    ;;
 
5724
 
 
5725
  sysv4)
 
5726
    case $host_vendor in
 
5727
      sni)
 
5728
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5729
        hardcode_direct=yes # is this really true???
 
5730
        ;;
 
5731
      siemens)
 
5732
        ## LD is ld it makes a PLAMLIB
 
5733
        ## CC just makes a GrossModule.
 
5734
        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5735
        reload_cmds='$CC -r -o $output$reload_objs'
 
5736
        hardcode_direct=no
 
5737
        ;;
 
5738
      motorola)
 
5739
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5740
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
5741
        ;;
 
5742
    esac
 
5743
    runpath_var='LD_RUN_PATH'
 
5744
    hardcode_shlibpath_var=no
 
5745
    ;;
 
5746
 
 
5747
  sysv4.3*)
 
5748
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5749
    hardcode_shlibpath_var=no
 
5750
    export_dynamic_flag_spec='-Bexport'
 
5751
    ;;
 
5752
 
 
5753
  sysv5*)
 
5754
    no_undefined_flag=' -z text'
 
5755
    # $CC -shared without GNU ld will not create a library from C++
 
5756
    # object files and a static libstdc++, better avoid it by now
 
5757
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5758
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5759
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5760
    hardcode_libdir_flag_spec=
 
5761
    hardcode_shlibpath_var=no
 
5762
    runpath_var='LD_RUN_PATH'
 
5763
    ;;
 
5764
 
 
5765
  uts4*)
 
5766
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5767
    hardcode_libdir_flag_spec='-L$libdir'
 
5768
    hardcode_shlibpath_var=no
 
5769
    ;;
 
5770
 
 
5771
  dgux*)
 
5772
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5773
    hardcode_libdir_flag_spec='-L$libdir'
 
5774
    hardcode_shlibpath_var=no
 
5775
    ;;
 
5776
 
 
5777
  sysv4*MP*)
 
5778
    if test -d /usr/nec; then
 
5779
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5780
      hardcode_shlibpath_var=no
 
5781
      runpath_var=LD_RUN_PATH
 
5782
      hardcode_runpath_var=yes
 
5783
      ld_shlibs=yes
 
5784
    fi
 
5785
    ;;
 
5786
 
 
5787
  sysv4.2uw2*)
 
5788
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5789
    hardcode_direct=yes
 
5790
    hardcode_minus_L=no
 
5791
    hardcode_shlibpath_var=no
 
5792
    hardcode_runpath_var=yes
 
5793
    runpath_var=LD_RUN_PATH
 
5794
    ;;
 
5795
 
 
5796
  sysv5uw7* | unixware7*)
 
5797
    no_undefined_flag='${wl}-z ${wl}text'
 
5798
    if test "$GCC" = yes; then
 
5799
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5800
    else
 
5801
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5802
    fi
 
5803
    runpath_var='LD_RUN_PATH'
 
5804
    hardcode_shlibpath_var=no
 
5805
    ;;
 
5806
 
 
5807
  *)
 
5808
    ld_shlibs=no
 
5809
    ;;
 
5810
  esac
 
5811
fi
 
5812
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
5813
echo "${ECHO_T}$ld_shlibs" >&6
 
5814
test "$ld_shlibs" = no && can_build_shared=no
 
5815
 
 
5816
# Check hardcoding attributes.
 
5817
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
5818
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
5819
hardcode_action=
 
5820
if test -n "$hardcode_libdir_flag_spec" || \
 
5821
   test -n "$runpath_var"; then
 
5822
 
 
5823
  # We can hardcode non-existant directories.
 
5824
  if test "$hardcode_direct" != no &&
 
5825
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
5826
     # have to relink, otherwise we might link with an installed library
 
5827
     # when we should be linking with a yet-to-be-installed one
 
5828
     ## test "$hardcode_shlibpath_var" != no &&
 
5829
     test "$hardcode_minus_L" != no; then
 
5830
    # Linking always hardcodes the temporary library directory.
 
5831
    hardcode_action=relink
 
5832
  else
 
5833
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
5834
    hardcode_action=immediate
 
5835
  fi
 
5836
else
 
5837
  # We cannot hardcode anything, or else we can only hardcode existing
 
5838
  # directories.
 
5839
  hardcode_action=unsupported
 
5840
fi
 
5841
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
5842
echo "${ECHO_T}$hardcode_action" >&6
 
5843
 
 
5844
striplib=
 
5845
old_striplib=
 
5846
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
5847
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
5848
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
5849
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
5850
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
5851
  echo "$as_me:$LINENO: result: yes" >&5
 
5852
echo "${ECHO_T}yes" >&6
 
5853
else
 
5854
  echo "$as_me:$LINENO: result: no" >&5
 
5855
echo "${ECHO_T}no" >&6
 
5856
fi
 
5857
 
 
5858
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5859
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5860
 
 
5861
# PORTME Fill in your ld.so characteristics
 
5862
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
5863
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
5864
library_names_spec=
 
5865
libname_spec='lib$name'
 
5866
soname_spec=
 
5867
postinstall_cmds=
 
5868
postuninstall_cmds=
 
5869
finish_cmds=
 
5870
finish_eval=
 
5871
shlibpath_var=
 
5872
shlibpath_overrides_runpath=unknown
 
5873
version_type=none
 
5874
dynamic_linker="$host_os ld.so"
 
5875
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
5876
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
5877
 
 
5878
case $host_os in
 
5879
aix3*)
 
5880
  version_type=linux
 
5881
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
 
5882
  shlibpath_var=LIBPATH
 
5883
 
 
5884
  # AIX has no versioning support, so we append a major version to the name.
 
5885
  soname_spec='${libname}${release}.so$major'
 
5886
  ;;
 
5887
 
 
5888
aix4* | aix5*)
 
5889
  version_type=linux
 
5890
  need_lib_prefix=no
 
5891
  need_version=no
 
5892
  hardcode_into_libs=yes
 
5893
  if test "$host_cpu" = ia64; then
 
5894
    # AIX 5 supports IA64
 
5895
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 
5896
    shlibpath_var=LD_LIBRARY_PATH
 
5897
  else
 
5898
    # With GCC up to 2.95.x, collect2 would create an import file
 
5899
    # for dependence libraries.  The import file would start with
 
5900
    # the line `#! .'.  This would cause the generated library to
 
5901
    # depend on `.', always an invalid library.  This was fixed in
 
5902
    # development snapshots of GCC prior to 3.0.
 
5903
    case $host_os in
 
5904
      aix4 | aix4.[01] | aix4.[01].*)
 
5905
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
5906
             echo ' yes '
 
5907
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
5908
          :
 
5909
        else
 
5910
          can_build_shared=no
 
5911
        fi
 
5912
        ;;
 
5913
    esac
 
5914
    # AIX (on Power*) has no versioning support, so currently we can
 
5915
    # not hardcode correct soname into executable. Probably we can
 
5916
    # add versioning support to collect2, so additional links can
 
5917
    # be useful in future.
 
5918
    if test "$aix_use_runtimelinking" = yes; then
 
5919
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
5920
      # instead of lib<name>.a to let people know that these are not
 
5921
      # typical AIX shared libraries.
 
5922
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
5923
    else
 
5924
      # We preserve .a as extension for shared libraries through AIX4.2
 
5925
      # and later when we are not doing run time linking.
 
5926
      library_names_spec='${libname}${release}.a $libname.a'
 
5927
      soname_spec='${libname}${release}.so$major'
 
5928
    fi
 
5929
    shlibpath_var=LIBPATH
 
5930
  fi
 
5931
  hardcode_into_libs=yes
 
5932
  ;;
 
5933
 
 
5934
amigaos*)
 
5935
  library_names_spec='$libname.ixlibrary $libname.a'
 
5936
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
5937
  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'
 
5938
  ;;
 
5939
 
 
5940
beos*)
 
5941
  library_names_spec='${libname}.so'
 
5942
  dynamic_linker="$host_os ld.so"
 
5943
  shlibpath_var=LIBRARY_PATH
 
5944
  ;;
 
5945
 
 
5946
bsdi4*)
 
5947
  version_type=linux
 
5948
  need_version=no
 
5949
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
5950
  soname_spec='${libname}${release}.so$major'
 
5951
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
5952
  shlibpath_var=LD_LIBRARY_PATH
 
5953
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
5954
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
5955
  export_dynamic_flag_spec=-rdynamic
 
5956
  # the default ld.so.conf also contains /usr/contrib/lib and
 
5957
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
5958
  # libtool to hard-code these into programs
 
5959
  ;;
 
5960
 
 
5961
cygwin* | mingw* | pw32*)
 
5962
  version_type=windows
 
5963
  need_version=no
 
5964
  need_lib_prefix=no
 
5965
  case $GCC,$host_os in
 
5966
  yes,cygwin*)
 
5967
    library_names_spec='$libname.dll.a'
 
5968
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
5969
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 
5970
      dldir=$destdir/`dirname \$dlpath`~
 
5971
      test -d \$dldir || mkdir -p \$dldir~
 
5972
      $install_prog .libs/$dlname \$dldir/$dlname'
 
5973
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
5974
      dlpath=$dir/\$dldll~
 
5975
       $rm \$dlpath'
 
5976
    ;;
 
5977
  yes,mingw*)
 
5978
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
5979
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
 
5980
    ;;
 
5981
  yes,pw32*)
 
5982
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
 
5983
    ;;
 
5984
  *)
 
5985
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
 
5986
    ;;
 
5987
  esac
 
5988
  dynamic_linker='Win32 ld.exe'
 
5989
  # FIXME: first we should search . and the directory the executable is in
 
5990
  shlibpath_var=PATH
 
5991
  ;;
 
5992
 
 
5993
darwin* | rhapsody*)
 
5994
  dynamic_linker="$host_os dyld"
 
5995
  version_type=darwin
 
5996
  need_lib_prefix=no
 
5997
  need_version=no
 
5998
  # FIXME: Relying on posixy $() will cause problems for
 
5999
  #        cross-compilation, but unfortunately the echo tests do not
 
6000
  #        yet detect zsh echo's removal of \ escapes.
 
6001
  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)'
 
6002
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 
6003
  shlibpath_overrides_runpath=yes
 
6004
  shlibpath_var=DYLD_LIBRARY_PATH
 
6005
  ;;
 
6006
 
 
6007
freebsd1*)
 
6008
  dynamic_linker=no
 
6009
  ;;
 
6010
 
 
6011
freebsd*-gnu*)
 
6012
  version_type=linux
 
6013
  need_lib_prefix=no
 
6014
  need_version=no
 
6015
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6016
  soname_spec='${libname}${release}.so$major'
 
6017
  shlibpath_var=LD_LIBRARY_PATH
 
6018
  shlibpath_overrides_runpath=no
 
6019
  hardcode_into_libs=yes
 
6020
  dynamic_linker='GNU/FreeBSD ld.so'
 
6021
  ;;
 
6022
 
 
6023
freebsd*)
 
6024
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
6025
  version_type=freebsd-$objformat
 
6026
  case $version_type in
 
6027
    freebsd-elf*)
 
6028
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
6029
      need_version=no
 
6030
      need_lib_prefix=no
 
6031
      ;;
 
6032
    freebsd-*)
 
6033
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 
6034
      need_version=yes
 
6035
      ;;
 
6036
  esac
 
6037
  shlibpath_var=LD_LIBRARY_PATH
 
6038
  case $host_os in
 
6039
  freebsd2*)
 
6040
    shlibpath_overrides_runpath=yes
 
6041
    ;;
 
6042
  *)
 
6043
    shlibpath_overrides_runpath=no
 
6044
    hardcode_into_libs=yes
 
6045
    ;;
 
6046
  esac
 
6047
  ;;
 
6048
 
 
6049
gnu*)
 
6050
  version_type=linux
 
6051
  need_lib_prefix=no
 
6052
  need_version=no
 
6053
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
 
6054
  soname_spec='${libname}${release}.so$major'
 
6055
  shlibpath_var=LD_LIBRARY_PATH
 
6056
  hardcode_into_libs=yes
 
6057
  ;;
 
6058
 
 
6059
hpux9* | hpux10* | hpux11*)
 
6060
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
6061
  # link against other versions.
 
6062
  dynamic_linker="$host_os dld.sl"
 
6063
  version_type=sunos
 
6064
  need_lib_prefix=no
 
6065
  need_version=no
 
6066
  shlibpath_var=SHLIB_PATH
 
6067
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
6068
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
 
6069
  soname_spec='${libname}${release}.sl$major'
 
6070
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
6071
  postinstall_cmds='chmod 555 $lib'
 
6072
  ;;
 
6073
 
 
6074
irix5* | irix6* | nonstopux*)
 
6075
  case $host_os in
 
6076
    nonstopux*) version_type=nonstopux ;;
 
6077
    *)          version_type=irix ;;
 
6078
  esac
 
6079
  need_lib_prefix=no
 
6080
  need_version=no
 
6081
  soname_spec='${libname}${release}.so$major'
 
6082
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 
6083
  case $host_os in
 
6084
  irix5* | nonstopux*)
 
6085
    libsuff= shlibsuff=
 
6086
    ;;
 
6087
  *)
 
6088
    case $LD in # libtool.m4 will add one of these switches to LD
 
6089
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
 
6090
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
 
6091
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
6092
    *) libsuff= shlibsuff= libmagic=never-match;;
 
6093
    esac
 
6094
    ;;
 
6095
  esac
 
6096
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
6097
  shlibpath_overrides_runpath=no
 
6098
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
6099
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
6100
  ;;
 
6101
 
 
6102
# No shared lib support for Linux oldld, aout, or coff.
 
6103
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
 
6104
  dynamic_linker=no
 
6105
  ;;
 
6106
 
 
6107
# This must be Linux ELF.
 
6108
linux-gnu*)
 
6109
  version_type=linux
 
6110
  need_lib_prefix=no
 
6111
  need_version=no
 
6112
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6113
  soname_spec='${libname}${release}.so$major'
 
6114
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
6115
  shlibpath_var=LD_LIBRARY_PATH
 
6116
  shlibpath_overrides_runpath=no
 
6117
  # This implies no fast_install, which is unacceptable.
 
6118
  # Some rework will be needed to allow for fast_install
 
6119
  # before this can be enabled.
 
6120
  hardcode_into_libs=yes
 
6121
 
 
6122
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
6123
  # powerpc, because MkLinux only supported shared libraries with the
 
6124
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
6125
  # most powerpc-linux boxes support dynamic linking these days and
 
6126
  # people can always --disable-shared, the test was removed, and we
 
6127
  # assume the GNU/Linux dynamic linker is in use.
 
6128
  dynamic_linker='GNU/Linux ld.so'
 
6129
  ;;
 
6130
 
 
6131
netbsd*)
 
6132
  version_type=sunos
 
6133
  need_lib_prefix=no
 
6134
  need_version=no
 
6135
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6136
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6137
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
6138
    dynamic_linker='NetBSD (a.out) ld.so'
 
6139
  else
 
6140
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
 
6141
    soname_spec='${libname}${release}.so$major'
 
6142
    dynamic_linker='NetBSD ld.elf_so'
 
6143
  fi
 
6144
  shlibpath_var=LD_LIBRARY_PATH
 
6145
  shlibpath_overrides_runpath=yes
 
6146
  hardcode_into_libs=yes
 
6147
  ;;
 
6148
 
 
6149
newsos6)
 
6150
  version_type=linux
 
6151
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6152
  shlibpath_var=LD_LIBRARY_PATH
 
6153
  shlibpath_overrides_runpath=yes
 
6154
  ;;
 
6155
 
 
6156
openbsd*)
 
6157
  version_type=sunos
 
6158
  need_lib_prefix=no
 
6159
  need_version=no
 
6160
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6161
    case "$host_os" in
 
6162
    openbsd2.[89] | openbsd2.[89].*)
 
6163
      shlibpath_overrides_runpath=no
 
6164
      ;;
 
6165
    *)
 
6166
      shlibpath_overrides_runpath=yes
 
6167
      ;;
 
6168
    esac
 
6169
  else
 
6170
    shlibpath_overrides_runpath=yes
 
6171
  fi
 
6172
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6173
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
6174
  shlibpath_var=LD_LIBRARY_PATH
 
6175
  ;;
 
6176
 
 
6177
os2*)
 
6178
  libname_spec='$name'
 
6179
  need_lib_prefix=no
 
6180
  library_names_spec='$libname.dll $libname.a'
 
6181
  dynamic_linker='OS/2 ld.exe'
 
6182
  shlibpath_var=LIBPATH
 
6183
  ;;
 
6184
 
 
6185
osf3* | osf4* | osf5*)
 
6186
  version_type=osf
 
6187
  need_version=no
 
6188
  need_lib_prefix=no
 
6189
  soname_spec='${libname}${release}.so$major'
 
6190
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6191
  shlibpath_var=LD_LIBRARY_PATH
 
6192
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
6193
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
6194
  hardcode_into_libs=yes
 
6195
  ;;
 
6196
 
 
6197
sco3.2v5*)
 
6198
  version_type=osf
 
6199
  soname_spec='${libname}${release}.so$major'
 
6200
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6201
  shlibpath_var=LD_LIBRARY_PATH
 
6202
  ;;
 
6203
 
 
6204
solaris*)
 
6205
  version_type=linux
 
6206
  need_lib_prefix=no
 
6207
  need_version=no
 
6208
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6209
  soname_spec='${libname}${release}.so$major'
 
6210
  shlibpath_var=LD_LIBRARY_PATH
 
6211
  shlibpath_overrides_runpath=yes
 
6212
  hardcode_into_libs=yes
 
6213
  # ldd complains unless libraries are executable
 
6214
  postinstall_cmds='chmod +x $lib'
 
6215
  ;;
 
6216
 
 
6217
sunos4*)
 
6218
  version_type=sunos
 
6219
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6220
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
6221
  shlibpath_var=LD_LIBRARY_PATH
 
6222
  shlibpath_overrides_runpath=yes
 
6223
  if test "$with_gnu_ld" = yes; then
 
6224
    need_lib_prefix=no
 
6225
  fi
 
6226
  need_version=yes
 
6227
  ;;
 
6228
 
 
6229
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6230
  version_type=linux
 
6231
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6232
  soname_spec='${libname}${release}.so$major'
 
6233
  shlibpath_var=LD_LIBRARY_PATH
 
6234
  case $host_vendor in
 
6235
    sni)
 
6236
      shlibpath_overrides_runpath=no
 
6237
      need_lib_prefix=no
 
6238
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
6239
      runpath_var=LD_RUN_PATH
 
6240
      ;;
 
6241
    siemens)
 
6242
      need_lib_prefix=no
 
6243
      ;;
 
6244
    motorola)
 
6245
      need_lib_prefix=no
 
6246
      need_version=no
 
6247
      shlibpath_overrides_runpath=no
 
6248
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
6249
      ;;
 
6250
  esac
 
6251
  ;;
 
6252
 
 
6253
uts4*)
 
6254
  version_type=linux
 
6255
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6256
  soname_spec='${libname}${release}.so$major'
 
6257
  shlibpath_var=LD_LIBRARY_PATH
 
6258
  ;;
 
6259
 
 
6260
dgux*)
 
6261
  version_type=linux
 
6262
  need_lib_prefix=no
 
6263
  need_version=no
 
6264
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6265
  soname_spec='${libname}${release}.so$major'
 
6266
  shlibpath_var=LD_LIBRARY_PATH
 
6267
  ;;
 
6268
 
 
6269
sysv4*MP*)
 
6270
  if test -d /usr/nec ;then
 
6271
    version_type=linux
 
6272
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
 
6273
    soname_spec='$libname.so.$major'
 
6274
    shlibpath_var=LD_LIBRARY_PATH
 
6275
  fi
 
6276
  ;;
 
6277
 
 
6278
*)
 
6279
  dynamic_linker=no
 
6280
  ;;
 
6281
esac
 
6282
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
6283
echo "${ECHO_T}$dynamic_linker" >&6
 
6284
test "$dynamic_linker" = no && can_build_shared=no
 
6285
 
 
6286
# Report the final consequences.
 
6287
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
6288
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
6289
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
6290
echo "${ECHO_T}$can_build_shared" >&6
 
6291
 
 
6292
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
6293
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
6294
test "$can_build_shared" = "no" && enable_shared=no
 
6295
 
 
6296
# On AIX, shared libraries and static libraries use the same namespace, and
 
6297
# are all built from PIC.
 
6298
case "$host_os" in
 
6299
aix3*)
 
6300
  test "$enable_shared" = yes && enable_static=no
 
6301
  if test -n "$RANLIB"; then
 
6302
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6303
    postinstall_cmds='$RANLIB $lib'
 
6304
  fi
 
6305
  ;;
 
6306
 
 
6307
aix4*)
 
6308
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6309
    test "$enable_shared" = yes && enable_static=no
 
6310
  fi
 
6311
  ;;
 
6312
esac
 
6313
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
6314
echo "${ECHO_T}$enable_shared" >&6
 
6315
 
 
6316
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
6317
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
6318
# Make sure either enable_shared or enable_static is yes.
 
6319
test "$enable_shared" = yes || enable_static=yes
 
6320
echo "$as_me:$LINENO: result: $enable_static" >&5
 
6321
echo "${ECHO_T}$enable_static" >&6
 
6322
 
 
6323
if test "$hardcode_action" = relink; then
 
6324
  # Fast installation is not supported
 
6325
  enable_fast_install=no
 
6326
elif test "$shlibpath_overrides_runpath" = yes ||
 
6327
     test "$enable_shared" = no; then
 
6328
  # Fast installation is not necessary
 
6329
  enable_fast_install=needless
 
6330
fi
 
6331
 
 
6332
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
6333
if test "$GCC" = yes; then
 
6334
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
6335
fi
 
6336
 
 
6337
if test "x$enable_dlopen" != xyes; then
 
6338
  enable_dlopen=unknown
 
6339
  enable_dlopen_self=unknown
 
6340
  enable_dlopen_self_static=unknown
 
6341
else
 
6342
  lt_cv_dlopen=no
 
6343
  lt_cv_dlopen_libs=
 
6344
 
 
6345
  case $host_os in
 
6346
  beos*)
 
6347
    lt_cv_dlopen="load_add_on"
 
6348
    lt_cv_dlopen_libs=
 
6349
    lt_cv_dlopen_self=yes
 
6350
    ;;
 
6351
 
 
6352
  cygwin* | mingw* | pw32*)
 
6353
    lt_cv_dlopen="LoadLibrary"
 
6354
    lt_cv_dlopen_libs=
 
6355
   ;;
 
6356
 
 
6357
  *)
 
6358
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
6359
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
6360
if test "${ac_cv_func_shl_load+set}" = set; then
 
6361
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6362
else
 
6363
  cat >conftest.$ac_ext <<_ACEOF
 
6364
#line $LINENO "configure"
 
6365
/* confdefs.h.  */
 
6366
_ACEOF
 
6367
cat confdefs.h >>conftest.$ac_ext
 
6368
cat >>conftest.$ac_ext <<_ACEOF
 
6369
/* end confdefs.h.  */
 
6370
/* System header to define __stub macros and hopefully few prototypes,
 
6371
    which can conflict with char shl_load (); below.
 
6372
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6373
    <limits.h> exists even on freestanding compilers.  */
 
6374
#ifdef __STDC__
 
6375
# include <limits.h>
 
6376
#else
 
6377
# include <assert.h>
 
6378
#endif
 
6379
/* Override any gcc2 internal prototype to avoid an error.  */
 
6380
#ifdef __cplusplus
 
6381
extern "C"
 
6382
{
 
6383
#endif
 
6384
/* We use char because int might match the return type of a gcc2
 
6385
   builtin and then its argument prototype would still apply.  */
 
6386
char shl_load ();
 
6387
/* The GNU C library defines this for functions which it implements
 
6388
    to always fail with ENOSYS.  Some functions are actually named
 
6389
    something starting with __ and the normal name is an alias.  */
 
6390
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
6391
choke me
 
6392
#else
 
6393
char (*f) () = shl_load;
 
6394
#endif
 
6395
#ifdef __cplusplus
 
6396
}
 
6397
#endif
 
6398
 
 
6399
int
 
6400
main ()
 
6401
{
 
6402
return f != shl_load;
 
6403
  ;
 
6404
  return 0;
 
6405
}
 
6406
_ACEOF
 
6407
rm -f conftest.$ac_objext conftest$ac_exeext
 
6408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6409
  (eval $ac_link) 2>&5
 
6410
  ac_status=$?
 
6411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6412
  (exit $ac_status); } &&
 
6413
         { ac_try='test -s conftest$ac_exeext'
 
6414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6415
  (eval $ac_try) 2>&5
 
6416
  ac_status=$?
 
6417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6418
  (exit $ac_status); }; }; then
 
6419
  ac_cv_func_shl_load=yes
 
6420
else
 
6421
  echo "$as_me: failed program was:" >&5
 
6422
sed 's/^/| /' conftest.$ac_ext >&5
 
6423
 
 
6424
ac_cv_func_shl_load=no
 
6425
fi
 
6426
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6427
fi
 
6428
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
6429
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
6430
if test $ac_cv_func_shl_load = yes; then
 
6431
  lt_cv_dlopen="shl_load"
 
6432
else
 
6433
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
6434
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
6435
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
6436
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6437
else
 
6438
  ac_check_lib_save_LIBS=$LIBS
 
6439
LIBS="-ldld  $LIBS"
 
6440
cat >conftest.$ac_ext <<_ACEOF
 
6441
#line $LINENO "configure"
 
6442
/* confdefs.h.  */
 
6443
_ACEOF
 
6444
cat confdefs.h >>conftest.$ac_ext
 
6445
cat >>conftest.$ac_ext <<_ACEOF
 
6446
/* end confdefs.h.  */
 
6447
 
 
6448
/* Override any gcc2 internal prototype to avoid an error.  */
 
6449
#ifdef __cplusplus
 
6450
extern "C"
 
6451
#endif
 
6452
/* We use char because int might match the return type of a gcc2
 
6453
   builtin and then its argument prototype would still apply.  */
 
6454
char shl_load ();
 
6455
int
 
6456
main ()
 
6457
{
 
6458
shl_load ();
 
6459
  ;
 
6460
  return 0;
 
6461
}
 
6462
_ACEOF
 
6463
rm -f conftest.$ac_objext conftest$ac_exeext
 
6464
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6465
  (eval $ac_link) 2>&5
 
6466
  ac_status=$?
 
6467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6468
  (exit $ac_status); } &&
 
6469
         { ac_try='test -s conftest$ac_exeext'
 
6470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6471
  (eval $ac_try) 2>&5
 
6472
  ac_status=$?
 
6473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6474
  (exit $ac_status); }; }; then
 
6475
  ac_cv_lib_dld_shl_load=yes
 
6476
else
 
6477
  echo "$as_me: failed program was:" >&5
 
6478
sed 's/^/| /' conftest.$ac_ext >&5
 
6479
 
 
6480
ac_cv_lib_dld_shl_load=no
 
6481
fi
 
6482
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6483
LIBS=$ac_check_lib_save_LIBS
 
6484
fi
 
6485
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
6486
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
6487
if test $ac_cv_lib_dld_shl_load = yes; then
 
6488
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
6489
else
 
6490
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
6491
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
6492
if test "${ac_cv_func_dlopen+set}" = set; then
 
6493
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6494
else
 
6495
  cat >conftest.$ac_ext <<_ACEOF
 
6496
#line $LINENO "configure"
 
6497
/* confdefs.h.  */
 
6498
_ACEOF
 
6499
cat confdefs.h >>conftest.$ac_ext
 
6500
cat >>conftest.$ac_ext <<_ACEOF
 
6501
/* end confdefs.h.  */
 
6502
/* System header to define __stub macros and hopefully few prototypes,
 
6503
    which can conflict with char dlopen (); below.
 
6504
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6505
    <limits.h> exists even on freestanding compilers.  */
 
6506
#ifdef __STDC__
 
6507
# include <limits.h>
 
6508
#else
 
6509
# include <assert.h>
 
6510
#endif
 
6511
/* Override any gcc2 internal prototype to avoid an error.  */
 
6512
#ifdef __cplusplus
 
6513
extern "C"
 
6514
{
 
6515
#endif
 
6516
/* We use char because int might match the return type of a gcc2
 
6517
   builtin and then its argument prototype would still apply.  */
 
6518
char dlopen ();
 
6519
/* The GNU C library defines this for functions which it implements
 
6520
    to always fail with ENOSYS.  Some functions are actually named
 
6521
    something starting with __ and the normal name is an alias.  */
 
6522
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
6523
choke me
 
6524
#else
 
6525
char (*f) () = dlopen;
 
6526
#endif
 
6527
#ifdef __cplusplus
 
6528
}
 
6529
#endif
 
6530
 
 
6531
int
 
6532
main ()
 
6533
{
 
6534
return f != dlopen;
 
6535
  ;
 
6536
  return 0;
 
6537
}
 
6538
_ACEOF
 
6539
rm -f conftest.$ac_objext conftest$ac_exeext
 
6540
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6541
  (eval $ac_link) 2>&5
 
6542
  ac_status=$?
 
6543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6544
  (exit $ac_status); } &&
 
6545
         { ac_try='test -s conftest$ac_exeext'
 
6546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6547
  (eval $ac_try) 2>&5
 
6548
  ac_status=$?
 
6549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6550
  (exit $ac_status); }; }; then
 
6551
  ac_cv_func_dlopen=yes
 
6552
else
 
6553
  echo "$as_me: failed program was:" >&5
 
6554
sed 's/^/| /' conftest.$ac_ext >&5
 
6555
 
 
6556
ac_cv_func_dlopen=no
 
6557
fi
 
6558
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6559
fi
 
6560
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
6561
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
6562
if test $ac_cv_func_dlopen = yes; then
 
6563
  lt_cv_dlopen="dlopen"
 
6564
else
 
6565
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
6566
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
6567
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
6568
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6569
else
 
6570
  ac_check_lib_save_LIBS=$LIBS
 
6571
LIBS="-ldl  $LIBS"
 
6572
cat >conftest.$ac_ext <<_ACEOF
 
6573
#line $LINENO "configure"
 
6574
/* confdefs.h.  */
 
6575
_ACEOF
 
6576
cat confdefs.h >>conftest.$ac_ext
 
6577
cat >>conftest.$ac_ext <<_ACEOF
 
6578
/* end confdefs.h.  */
 
6579
 
 
6580
/* Override any gcc2 internal prototype to avoid an error.  */
 
6581
#ifdef __cplusplus
 
6582
extern "C"
 
6583
#endif
 
6584
/* We use char because int might match the return type of a gcc2
 
6585
   builtin and then its argument prototype would still apply.  */
 
6586
char dlopen ();
 
6587
int
 
6588
main ()
 
6589
{
 
6590
dlopen ();
 
6591
  ;
 
6592
  return 0;
 
6593
}
 
6594
_ACEOF
 
6595
rm -f conftest.$ac_objext conftest$ac_exeext
 
6596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6597
  (eval $ac_link) 2>&5
 
6598
  ac_status=$?
 
6599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6600
  (exit $ac_status); } &&
 
6601
         { ac_try='test -s conftest$ac_exeext'
 
6602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6603
  (eval $ac_try) 2>&5
 
6604
  ac_status=$?
 
6605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6606
  (exit $ac_status); }; }; then
 
6607
  ac_cv_lib_dl_dlopen=yes
 
6608
else
 
6609
  echo "$as_me: failed program was:" >&5
 
6610
sed 's/^/| /' conftest.$ac_ext >&5
 
6611
 
 
6612
ac_cv_lib_dl_dlopen=no
 
6613
fi
 
6614
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6615
LIBS=$ac_check_lib_save_LIBS
 
6616
fi
 
6617
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
6618
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
6619
if test $ac_cv_lib_dl_dlopen = yes; then
 
6620
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
6621
else
 
6622
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
6623
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
6624
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
6625
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6626
else
 
6627
  ac_check_lib_save_LIBS=$LIBS
 
6628
LIBS="-lsvld  $LIBS"
 
6629
cat >conftest.$ac_ext <<_ACEOF
 
6630
#line $LINENO "configure"
 
6631
/* confdefs.h.  */
 
6632
_ACEOF
 
6633
cat confdefs.h >>conftest.$ac_ext
 
6634
cat >>conftest.$ac_ext <<_ACEOF
 
6635
/* end confdefs.h.  */
 
6636
 
 
6637
/* Override any gcc2 internal prototype to avoid an error.  */
 
6638
#ifdef __cplusplus
 
6639
extern "C"
 
6640
#endif
 
6641
/* We use char because int might match the return type of a gcc2
 
6642
   builtin and then its argument prototype would still apply.  */
 
6643
char dlopen ();
 
6644
int
 
6645
main ()
 
6646
{
 
6647
dlopen ();
 
6648
  ;
 
6649
  return 0;
 
6650
}
 
6651
_ACEOF
 
6652
rm -f conftest.$ac_objext conftest$ac_exeext
 
6653
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6654
  (eval $ac_link) 2>&5
 
6655
  ac_status=$?
 
6656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6657
  (exit $ac_status); } &&
 
6658
         { ac_try='test -s conftest$ac_exeext'
 
6659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6660
  (eval $ac_try) 2>&5
 
6661
  ac_status=$?
 
6662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6663
  (exit $ac_status); }; }; then
 
6664
  ac_cv_lib_svld_dlopen=yes
 
6665
else
 
6666
  echo "$as_me: failed program was:" >&5
 
6667
sed 's/^/| /' conftest.$ac_ext >&5
 
6668
 
 
6669
ac_cv_lib_svld_dlopen=no
 
6670
fi
 
6671
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6672
LIBS=$ac_check_lib_save_LIBS
 
6673
fi
 
6674
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
6675
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
6676
if test $ac_cv_lib_svld_dlopen = yes; then
 
6677
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
6678
else
 
6679
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
6680
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
6681
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
6682
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6683
else
 
6684
  ac_check_lib_save_LIBS=$LIBS
 
6685
LIBS="-ldld  $LIBS"
 
6686
cat >conftest.$ac_ext <<_ACEOF
 
6687
#line $LINENO "configure"
 
6688
/* confdefs.h.  */
 
6689
_ACEOF
 
6690
cat confdefs.h >>conftest.$ac_ext
 
6691
cat >>conftest.$ac_ext <<_ACEOF
 
6692
/* end confdefs.h.  */
 
6693
 
 
6694
/* Override any gcc2 internal prototype to avoid an error.  */
 
6695
#ifdef __cplusplus
 
6696
extern "C"
 
6697
#endif
 
6698
/* We use char because int might match the return type of a gcc2
 
6699
   builtin and then its argument prototype would still apply.  */
 
6700
char dld_link ();
 
6701
int
 
6702
main ()
 
6703
{
 
6704
dld_link ();
 
6705
  ;
 
6706
  return 0;
 
6707
}
 
6708
_ACEOF
 
6709
rm -f conftest.$ac_objext conftest$ac_exeext
 
6710
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6711
  (eval $ac_link) 2>&5
 
6712
  ac_status=$?
 
6713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6714
  (exit $ac_status); } &&
 
6715
         { ac_try='test -s conftest$ac_exeext'
 
6716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6717
  (eval $ac_try) 2>&5
 
6718
  ac_status=$?
 
6719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6720
  (exit $ac_status); }; }; then
 
6721
  ac_cv_lib_dld_dld_link=yes
 
6722
else
 
6723
  echo "$as_me: failed program was:" >&5
 
6724
sed 's/^/| /' conftest.$ac_ext >&5
 
6725
 
 
6726
ac_cv_lib_dld_dld_link=no
 
6727
fi
 
6728
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6729
LIBS=$ac_check_lib_save_LIBS
 
6730
fi
 
6731
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
6732
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
6733
if test $ac_cv_lib_dld_dld_link = yes; then
 
6734
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
6735
fi
 
6736
 
 
6737
 
 
6738
fi
 
6739
 
 
6740
 
 
6741
fi
 
6742
 
 
6743
 
 
6744
fi
 
6745
 
 
6746
 
 
6747
fi
 
6748
 
 
6749
 
 
6750
fi
 
6751
 
 
6752
    ;;
 
6753
  esac
 
6754
 
 
6755
  if test "x$lt_cv_dlopen" != xno; then
 
6756
    enable_dlopen=yes
 
6757
  else
 
6758
    enable_dlopen=no
 
6759
  fi
 
6760
 
 
6761
  case $lt_cv_dlopen in
 
6762
  dlopen)
 
6763
    save_CPPFLAGS="$CPPFLAGS"
 
6764
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
6765
 
 
6766
    save_LDFLAGS="$LDFLAGS"
 
6767
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
6768
 
 
6769
    save_LIBS="$LIBS"
 
6770
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
6771
 
 
6772
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
6773
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
6774
if test "${lt_cv_dlopen_self+set}" = set; then
 
6775
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6776
else
 
6777
          if test "$cross_compiling" = yes; then :
 
6778
  lt_cv_dlopen_self=cross
 
6779
else
 
6780
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
6781
  lt_status=$lt_dlunknown
 
6782
  cat > conftest.$ac_ext <<EOF
 
6783
#line 6783 "configure"
 
6784
#include "confdefs.h"
 
6785
 
 
6786
#if HAVE_DLFCN_H
 
6787
#include <dlfcn.h>
 
6788
#endif
 
6789
 
 
6790
#include <stdio.h>
 
6791
 
 
6792
#ifdef RTLD_GLOBAL
 
6793
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
6794
#else
 
6795
#  ifdef DL_GLOBAL
 
6796
#    define LT_DLGLOBAL         DL_GLOBAL
 
6797
#  else
 
6798
#    define LT_DLGLOBAL         0
 
6799
#  endif
 
6800
#endif
 
6801
 
 
6802
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
6803
   find out it does not work in some platform. */
 
6804
#ifndef LT_DLLAZY_OR_NOW
 
6805
#  ifdef RTLD_LAZY
 
6806
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
6807
#  else
 
6808
#    ifdef DL_LAZY
 
6809
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
6810
#    else
 
6811
#      ifdef RTLD_NOW
 
6812
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
6813
#      else
 
6814
#        ifdef DL_NOW
 
6815
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
6816
#        else
 
6817
#          define LT_DLLAZY_OR_NOW      0
 
6818
#        endif
 
6819
#      endif
 
6820
#    endif
 
6821
#  endif
 
6822
#endif
 
6823
 
 
6824
#ifdef __cplusplus
 
6825
extern "C" void exit (int);
 
6826
#endif
 
6827
 
 
6828
void fnord() { int i=42;}
 
6829
int main ()
 
6830
{
 
6831
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
6832
  int status = $lt_dlunknown;
 
6833
 
 
6834
  if (self)
 
6835
    {
 
6836
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
6837
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
6838
      /* dlclose (self); */
 
6839
    }
 
6840
 
 
6841
    exit (status);
 
6842
}
 
6843
EOF
 
6844
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6845
  (eval $ac_link) 2>&5
 
6846
  ac_status=$?
 
6847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6848
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
6849
    (./conftest; exit; ) 2>/dev/null
 
6850
    lt_status=$?
 
6851
    case x$lt_status in
 
6852
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
6853
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
6854
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
6855
    esac
 
6856
  else :
 
6857
    # compilation failed
 
6858
    lt_cv_dlopen_self=no
 
6859
  fi
 
6860
fi
 
6861
rm -fr conftest*
 
6862
 
 
6863
 
 
6864
fi
 
6865
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
6866
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
6867
 
 
6868
    if test "x$lt_cv_dlopen_self" = xyes; then
 
6869
      LDFLAGS="$LDFLAGS $link_static_flag"
 
6870
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
6871
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
6872
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
6873
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6874
else
 
6875
          if test "$cross_compiling" = yes; then :
 
6876
  lt_cv_dlopen_self_static=cross
 
6877
else
 
6878
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
6879
  lt_status=$lt_dlunknown
 
6880
  cat > conftest.$ac_ext <<EOF
 
6881
#line 6881 "configure"
 
6882
#include "confdefs.h"
 
6883
 
 
6884
#if HAVE_DLFCN_H
 
6885
#include <dlfcn.h>
 
6886
#endif
 
6887
 
 
6888
#include <stdio.h>
 
6889
 
 
6890
#ifdef RTLD_GLOBAL
 
6891
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
6892
#else
 
6893
#  ifdef DL_GLOBAL
 
6894
#    define LT_DLGLOBAL         DL_GLOBAL
 
6895
#  else
 
6896
#    define LT_DLGLOBAL         0
 
6897
#  endif
 
6898
#endif
 
6899
 
 
6900
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
6901
   find out it does not work in some platform. */
 
6902
#ifndef LT_DLLAZY_OR_NOW
 
6903
#  ifdef RTLD_LAZY
 
6904
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
6905
#  else
 
6906
#    ifdef DL_LAZY
 
6907
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
6908
#    else
 
6909
#      ifdef RTLD_NOW
 
6910
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
6911
#      else
 
6912
#        ifdef DL_NOW
 
6913
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
6914
#        else
 
6915
#          define LT_DLLAZY_OR_NOW      0
 
6916
#        endif
 
6917
#      endif
 
6918
#    endif
 
6919
#  endif
 
6920
#endif
 
6921
 
 
6922
#ifdef __cplusplus
 
6923
extern "C" void exit (int);
 
6924
#endif
 
6925
 
 
6926
void fnord() { int i=42;}
 
6927
int main ()
 
6928
{
 
6929
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
6930
  int status = $lt_dlunknown;
 
6931
 
 
6932
  if (self)
 
6933
    {
 
6934
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
6935
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
6936
      /* dlclose (self); */
 
6937
    }
 
6938
 
 
6939
    exit (status);
 
6940
}
 
6941
EOF
 
6942
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6943
  (eval $ac_link) 2>&5
 
6944
  ac_status=$?
 
6945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6946
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
6947
    (./conftest; exit; ) 2>/dev/null
 
6948
    lt_status=$?
 
6949
    case x$lt_status in
 
6950
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
6951
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
6952
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
6953
    esac
 
6954
  else :
 
6955
    # compilation failed
 
6956
    lt_cv_dlopen_self_static=no
 
6957
  fi
 
6958
fi
 
6959
rm -fr conftest*
 
6960
 
 
6961
 
 
6962
fi
 
6963
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
6964
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
6965
    fi
 
6966
 
 
6967
    CPPFLAGS="$save_CPPFLAGS"
 
6968
    LDFLAGS="$save_LDFLAGS"
 
6969
    LIBS="$save_LIBS"
 
6970
    ;;
 
6971
  esac
 
6972
 
 
6973
  case $lt_cv_dlopen_self in
 
6974
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
6975
  *) enable_dlopen_self=unknown ;;
 
6976
  esac
 
6977
 
 
6978
  case $lt_cv_dlopen_self_static in
 
6979
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
6980
  *) enable_dlopen_self_static=unknown ;;
 
6981
  esac
 
6982
fi
 
6983
 
 
6984
 
 
6985
if test "$enable_shared" = yes && test "$GCC" = yes; then
 
6986
  case $archive_cmds in
 
6987
  *'~'*)
 
6988
    # FIXME: we may have to deal with multi-command sequences.
 
6989
    ;;
 
6990
  '$CC '*)
 
6991
    # Test whether the compiler implicitly links with -lc since on some
 
6992
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
6993
    # to ld, don't add -lc before -lgcc.
 
6994
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
6995
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
6996
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
 
6997
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6998
else
 
6999
  $rm conftest*
 
7000
    echo 'static int dummy;' > conftest.$ac_ext
 
7001
 
 
7002
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7003
  (eval $ac_compile) 2>&5
 
7004
  ac_status=$?
 
7005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7006
  (exit $ac_status); }; then
 
7007
      soname=conftest
 
7008
      lib=conftest
 
7009
      libobjs=conftest.$ac_objext
 
7010
      deplibs=
 
7011
      wl=$lt_cv_prog_cc_wl
 
7012
      compiler_flags=-v
 
7013
      linker_flags=-v
 
7014
      verstring=
 
7015
      output_objdir=.
 
7016
      libname=conftest
 
7017
      save_allow_undefined_flag=$allow_undefined_flag
 
7018
      allow_undefined_flag=
 
7019
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7020
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7021
  ac_status=$?
 
7022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7023
  (exit $ac_status); }
 
7024
      then
 
7025
        lt_cv_archive_cmds_need_lc=no
 
7026
      else
 
7027
        lt_cv_archive_cmds_need_lc=yes
 
7028
      fi
 
7029
      allow_undefined_flag=$save_allow_undefined_flag
 
7030
    else
 
7031
      cat conftest.err 1>&5
 
7032
    fi
 
7033
fi
 
7034
 
 
7035
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
 
7036
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
 
7037
    ;;
 
7038
  esac
 
7039
fi
 
7040
need_lc=${lt_cv_archive_cmds_need_lc-yes}
 
7041
 
 
7042
# The second clause should only fire when bootstrapping the
 
7043
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
7044
# with your package, and you will get complaints that there are
 
7045
# no rules to generate ltmain.sh.
 
7046
if test -f "$ltmain"; then
 
7047
  :
 
7048
else
 
7049
  # If there is no Makefile yet, we rely on a make rule to execute
 
7050
  # `config.status --recheck' to rerun these tests and create the
 
7051
  # libtool script then.
 
7052
  test -f Makefile && make "$ltmain"
 
7053
fi
 
7054
 
 
7055
if test -f "$ltmain"; then
 
7056
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
 
7057
  $rm -f "${ofile}T"
 
7058
 
 
7059
  echo creating $ofile
 
7060
 
 
7061
  # Now quote all the things that may contain metacharacters while being
 
7062
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
7063
  # variables and quote the copies for generation of the libtool script.
 
7064
  for var in echo old_CC old_CFLAGS SED \
 
7065
    AR AR_FLAGS CC LD LN_S NM SHELL \
 
7066
    reload_flag reload_cmds wl \
 
7067
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
 
7068
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
 
7069
    library_names_spec soname_spec \
 
7070
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
 
7071
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
 
7072
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
 
7073
    old_striplib striplib file_magic_cmd export_symbols_cmds \
 
7074
    deplibs_check_method allow_undefined_flag no_undefined_flag \
 
7075
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
 
7076
    global_symbol_to_c_name_address \
 
7077
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
7078
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
7079
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
7080
 
 
7081
    case $var in
 
7082
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
7083
    old_postinstall_cmds | old_postuninstall_cmds | \
 
7084
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
 
7085
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
 
7086
    postinstall_cmds | postuninstall_cmds | \
 
7087
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
7088
      # Double-quote double-evaled strings.
 
7089
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
7090
      ;;
 
7091
    *)
 
7092
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
7093
      ;;
 
7094
    esac
 
7095
  done
 
7096
 
 
7097
  cat <<__EOF__ > "${ofile}T"
 
7098
#! $SHELL
 
7099
 
 
7100
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
7101
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
7102
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
7103
#
 
7104
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
7105
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
7106
#
 
7107
# This program is free software; you can redistribute it and/or modify
 
7108
# it under the terms of the GNU General Public License as published by
 
7109
# the Free Software Foundation; either version 2 of the License, or
 
7110
# (at your option) any later version.
 
7111
#
 
7112
# This program is distributed in the hope that it will be useful, but
 
7113
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
7114
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
7115
# General Public License for more details.
 
7116
#
 
7117
# You should have received a copy of the GNU General Public License
 
7118
# along with this program; if not, write to the Free Software
 
7119
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7120
#
 
7121
# As a special exception to the GNU General Public License, if you
 
7122
# distribute this file as part of a program that contains a
 
7123
# configuration script generated by Autoconf, you may include it under
 
7124
# the same distribution terms that you use for the rest of that program.
 
7125
 
 
7126
# A sed that does not truncate output.
 
7127
SED=$lt_SED
 
7128
 
 
7129
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
7130
Xsed="${SED} -e s/^X//"
 
7131
 
 
7132
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
7133
# if CDPATH is set.
 
7134
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
7135
 
 
7136
# ### BEGIN LIBTOOL CONFIG
 
7137
 
 
7138
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
7139
 
 
7140
# Shell to use when invoking shell scripts.
 
7141
SHELL=$lt_SHELL
 
7142
 
 
7143
# Whether or not to build shared libraries.
 
7144
build_libtool_libs=$enable_shared
 
7145
 
 
7146
# Whether or not to build static libraries.
 
7147
build_old_libs=$enable_static
 
7148
 
 
7149
# Whether or not to add -lc for building shared libraries.
 
7150
build_libtool_need_lc=$need_lc
 
7151
 
 
7152
# Whether or not to optimize for fast installation.
 
7153
fast_install=$enable_fast_install
 
7154
 
 
7155
# The host system.
 
7156
host_alias=$host_alias
 
7157
host=$host
 
7158
 
 
7159
# An echo program that does not interpret backslashes.
 
7160
echo=$lt_echo
 
7161
 
 
7162
# The archiver.
 
7163
AR=$lt_AR
 
7164
AR_FLAGS=$lt_AR_FLAGS
 
7165
 
 
7166
# The default C compiler.
 
7167
CC=$lt_CC
 
7168
 
 
7169
# Is the compiler the GNU C compiler?
 
7170
with_gcc=$GCC
 
7171
 
 
7172
# The linker used to build libraries.
 
7173
LD=$lt_LD
 
7174
 
 
7175
# Whether we need hard or soft links.
 
7176
LN_S=$lt_LN_S
 
7177
 
 
7178
# A BSD-compatible nm program.
 
7179
NM=$lt_NM
 
7180
 
 
7181
# A symbol stripping program
 
7182
STRIP=$STRIP
 
7183
 
 
7184
# Used to examine libraries when file_magic_cmd begins "file"
 
7185
MAGIC_CMD=$MAGIC_CMD
 
7186
 
 
7187
# Used on cygwin: DLL creation program.
 
7188
DLLTOOL="$DLLTOOL"
 
7189
 
 
7190
# Used on cygwin: object dumper.
 
7191
OBJDUMP="$OBJDUMP"
 
7192
 
 
7193
# Used on cygwin: assembler.
 
7194
AS="$AS"
 
7195
 
 
7196
# The name of the directory that contains temporary libtool files.
 
7197
objdir=$objdir
 
7198
 
 
7199
# How to create reloadable object files.
 
7200
reload_flag=$lt_reload_flag
 
7201
reload_cmds=$lt_reload_cmds
 
7202
 
 
7203
# How to pass a linker flag through the compiler.
 
7204
wl=$lt_wl
 
7205
 
 
7206
# Object file suffix (normally "o").
 
7207
objext="$ac_objext"
 
7208
 
 
7209
# Old archive suffix (normally "a").
 
7210
libext="$libext"
 
7211
 
 
7212
# Executable file suffix (normally "").
 
7213
exeext="$exeext"
 
7214
 
 
7215
# Additional compiler flags for building library objects.
 
7216
pic_flag=$lt_pic_flag
 
7217
pic_mode=$pic_mode
 
7218
 
 
7219
# Does compiler simultaneously support -c and -o options?
 
7220
compiler_c_o=$lt_compiler_c_o
 
7221
 
 
7222
# Can we write directly to a .lo ?
 
7223
compiler_o_lo=$lt_compiler_o_lo
 
7224
 
 
7225
# Must we lock files when doing compilation ?
 
7226
need_locks=$lt_need_locks
 
7227
 
 
7228
# Do we need the lib prefix for modules?
 
7229
need_lib_prefix=$need_lib_prefix
 
7230
 
 
7231
# Do we need a version for libraries?
 
7232
need_version=$need_version
 
7233
 
 
7234
# Whether dlopen is supported.
 
7235
dlopen_support=$enable_dlopen
 
7236
 
 
7237
# Whether dlopen of programs is supported.
 
7238
dlopen_self=$enable_dlopen_self
 
7239
 
 
7240
# Whether dlopen of statically linked programs is supported.
 
7241
dlopen_self_static=$enable_dlopen_self_static
 
7242
 
 
7243
# Compiler flag to prevent dynamic linking.
 
7244
link_static_flag=$lt_link_static_flag
 
7245
 
 
7246
# Compiler flag to turn off builtin functions.
 
7247
no_builtin_flag=$lt_no_builtin_flag
 
7248
 
 
7249
# Compiler flag to allow reflexive dlopens.
 
7250
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
7251
 
 
7252
# Compiler flag to generate shared objects directly from archives.
 
7253
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
7254
 
 
7255
# Compiler flag to generate thread-safe objects.
 
7256
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
7257
 
 
7258
# Library versioning type.
 
7259
version_type=$version_type
 
7260
 
 
7261
# Format of library name prefix.
 
7262
libname_spec=$lt_libname_spec
 
7263
 
 
7264
# List of archive names.  First name is the real one, the rest are links.
 
7265
# The last name is the one that the linker finds with -lNAME.
 
7266
library_names_spec=$lt_library_names_spec
 
7267
 
 
7268
# The coded name of the library, if different from the real name.
 
7269
soname_spec=$lt_soname_spec
 
7270
 
 
7271
# Commands used to build and install an old-style archive.
 
7272
RANLIB=$lt_RANLIB
 
7273
old_archive_cmds=$lt_old_archive_cmds
 
7274
old_postinstall_cmds=$lt_old_postinstall_cmds
 
7275
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
7276
 
 
7277
# Create an old-style archive from a shared archive.
 
7278
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
7279
 
 
7280
# Create a temporary old-style archive to link instead of a shared archive.
 
7281
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
7282
 
 
7283
# Commands used to build and install a shared archive.
 
7284
archive_cmds=$lt_archive_cmds
 
7285
archive_expsym_cmds=$lt_archive_expsym_cmds
 
7286
postinstall_cmds=$lt_postinstall_cmds
 
7287
postuninstall_cmds=$lt_postuninstall_cmds
 
7288
 
 
7289
# Commands to strip libraries.
 
7290
old_striplib=$lt_old_striplib
 
7291
striplib=$lt_striplib
 
7292
 
 
7293
# Method to check whether dependent libraries are shared objects.
 
7294
deplibs_check_method=$lt_deplibs_check_method
 
7295
 
 
7296
# Command to use when deplibs_check_method == file_magic.
 
7297
file_magic_cmd=$lt_file_magic_cmd
 
7298
 
 
7299
# Flag that allows shared libraries with undefined symbols to be built.
 
7300
allow_undefined_flag=$lt_allow_undefined_flag
 
7301
 
 
7302
# Flag that forces no undefined symbols.
 
7303
no_undefined_flag=$lt_no_undefined_flag
 
7304
 
 
7305
# Commands used to finish a libtool library installation in a directory.
 
7306
finish_cmds=$lt_finish_cmds
 
7307
 
 
7308
# Same as above, but a single script fragment to be evaled but not shown.
 
7309
finish_eval=$lt_finish_eval
 
7310
 
 
7311
# Take the output of nm and produce a listing of raw symbols and C names.
 
7312
global_symbol_pipe=$lt_global_symbol_pipe
 
7313
 
 
7314
# Transform the output of nm in a proper C declaration
 
7315
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
7316
 
 
7317
# Transform the output of nm in a C name address pair
 
7318
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
7319
 
 
7320
# This is the shared library runtime path variable.
 
7321
runpath_var=$runpath_var
 
7322
 
 
7323
# This is the shared library path variable.
 
7324
shlibpath_var=$shlibpath_var
 
7325
 
 
7326
# Is shlibpath searched before the hard-coded library search path?
 
7327
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
7328
 
 
7329
# How to hardcode a shared library path into an executable.
 
7330
hardcode_action=$hardcode_action
 
7331
 
 
7332
# Whether we should hardcode library paths into libraries.
 
7333
hardcode_into_libs=$hardcode_into_libs
 
7334
 
 
7335
# Flag to hardcode \$libdir into a binary during linking.
 
7336
# This must work even if \$libdir does not exist.
 
7337
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
7338
 
 
7339
# Whether we need a single -rpath flag with a separated argument.
 
7340
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
7341
 
 
7342
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
7343
# resulting binary.
 
7344
hardcode_direct=$hardcode_direct
 
7345
 
 
7346
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
7347
# resulting binary.
 
7348
hardcode_minus_L=$hardcode_minus_L
 
7349
 
 
7350
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
7351
# the resulting binary.
 
7352
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
7353
 
 
7354
# Variables whose values should be saved in libtool wrapper scripts and
 
7355
# restored at relink time.
 
7356
variables_saved_for_relink="$variables_saved_for_relink"
 
7357
 
 
7358
# Whether libtool must link a program against all its dependency libraries.
 
7359
link_all_deplibs=$link_all_deplibs
 
7360
 
 
7361
# Compile-time system search path for libraries
 
7362
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
7363
 
 
7364
# Run-time system search path for libraries
 
7365
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
7366
 
 
7367
# Fix the shell variable \$srcfile for the compiler.
 
7368
fix_srcfile_path="$fix_srcfile_path"
 
7369
 
 
7370
# Set to yes if exported symbols are required.
 
7371
always_export_symbols=$always_export_symbols
 
7372
 
 
7373
# The commands to list exported symbols.
 
7374
export_symbols_cmds=$lt_export_symbols_cmds
 
7375
 
 
7376
# The commands to extract the exported symbol list from a shared archive.
 
7377
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
7378
 
 
7379
# Symbols that should not be listed in the preloaded symbols.
 
7380
exclude_expsyms=$lt_exclude_expsyms
 
7381
 
 
7382
# Symbols that must always be exported.
 
7383
include_expsyms=$lt_include_expsyms
 
7384
 
 
7385
# ### END LIBTOOL CONFIG
 
7386
 
 
7387
__EOF__
 
7388
 
 
7389
  case $host_os in
 
7390
  aix3*)
 
7391
    cat <<\EOF >> "${ofile}T"
 
7392
 
 
7393
# AIX sometimes has problems with the GCC collect2 program.  For some
 
7394
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
7395
# vanish in a puff of smoke.
 
7396
if test "X${COLLECT_NAMES+set}" != Xset; then
 
7397
  COLLECT_NAMES=
 
7398
  export COLLECT_NAMES
 
7399
fi
 
7400
EOF
 
7401
    ;;
 
7402
  esac
 
7403
 
 
7404
  case $host_os in
 
7405
  cygwin* | mingw* | pw32* | os2*)
 
7406
    cat <<'EOF' >> "${ofile}T"
 
7407
      # This is a source program that is used to create dlls on Windows
 
7408
      # Don't remove nor modify the starting and closing comments
 
7409
# /* ltdll.c starts here */
 
7410
# #define WIN32_LEAN_AND_MEAN
 
7411
# #include <windows.h>
 
7412
# #undef WIN32_LEAN_AND_MEAN
 
7413
# #include <stdio.h>
 
7414
#
 
7415
# #ifndef __CYGWIN__
 
7416
# #  ifdef __CYGWIN32__
 
7417
# #    define __CYGWIN__ __CYGWIN32__
 
7418
# #  endif
 
7419
# #endif
 
7420
#
 
7421
# #ifdef __cplusplus
 
7422
# extern "C" {
 
7423
# #endif
 
7424
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
7425
# #ifdef __cplusplus
 
7426
# }
 
7427
# #endif
 
7428
#
 
7429
# #ifdef __CYGWIN__
 
7430
# #include <cygwin/cygwin_dll.h>
 
7431
# DECLARE_CYGWIN_DLL( DllMain );
 
7432
# #endif
 
7433
# HINSTANCE __hDllInstance_base;
 
7434
#
 
7435
# BOOL APIENTRY
 
7436
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
7437
# {
 
7438
#   __hDllInstance_base = hInst;
 
7439
#   return TRUE;
 
7440
# }
 
7441
# /* ltdll.c ends here */
 
7442
        # This is a source program that is used to create import libraries
 
7443
        # on Windows for dlls which lack them. Don't remove nor modify the
 
7444
        # starting and closing comments
 
7445
# /* impgen.c starts here */
 
7446
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
 
7447
#
 
7448
#  This file is part of GNU libtool.
 
7449
#
 
7450
#  This program is free software; you can redistribute it and/or modify
 
7451
#  it under the terms of the GNU General Public License as published by
 
7452
#  the Free Software Foundation; either version 2 of the License, or
 
7453
#  (at your option) any later version.
 
7454
#
 
7455
#  This program is distributed in the hope that it will be useful,
 
7456
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7457
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7458
#  GNU General Public License for more details.
 
7459
#
 
7460
#  You should have received a copy of the GNU General Public License
 
7461
#  along with this program; if not, write to the Free Software
 
7462
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7463
#  */
 
7464
#
 
7465
# #include <stdio.h>            /* for printf() */
 
7466
# #include <unistd.h>           /* for open(), lseek(), read() */
 
7467
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
 
7468
# #include <string.h>           /* for strdup() */
 
7469
#
 
7470
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
 
7471
# #ifndef O_BINARY
 
7472
# #define O_BINARY 0
 
7473
# #endif
 
7474
#
 
7475
# static unsigned int
 
7476
# pe_get16 (fd, offset)
 
7477
#      int fd;
 
7478
#      int offset;
 
7479
# {
 
7480
#   unsigned char b[2];
 
7481
#   lseek (fd, offset, SEEK_SET);
 
7482
#   read (fd, b, 2);
 
7483
#   return b[0] + (b[1]<<8);
 
7484
# }
 
7485
#
 
7486
# static unsigned int
 
7487
# pe_get32 (fd, offset)
 
7488
#     int fd;
 
7489
#     int offset;
 
7490
# {
 
7491
#   unsigned char b[4];
 
7492
#   lseek (fd, offset, SEEK_SET);
 
7493
#   read (fd, b, 4);
 
7494
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
7495
# }
 
7496
#
 
7497
# static unsigned int
 
7498
# pe_as32 (ptr)
 
7499
#      void *ptr;
 
7500
# {
 
7501
#   unsigned char *b = ptr;
 
7502
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
7503
# }
 
7504
#
 
7505
# int
 
7506
# main (argc, argv)
 
7507
#     int argc;
 
7508
#     char *argv[];
 
7509
# {
 
7510
#     int dll;
 
7511
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
 
7512
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
 
7513
#     unsigned long name_rvas, nexp;
 
7514
#     unsigned char *expdata, *erva;
 
7515
#     char *filename, *dll_name;
 
7516
#
 
7517
#     filename = argv[1];
 
7518
#
 
7519
#     dll = open(filename, O_RDONLY|O_BINARY);
 
7520
#     if (dll < 1)
 
7521
#       return 1;
 
7522
#
 
7523
#     dll_name = filename;
 
7524
#
 
7525
#     for (i=0; filename[i]; i++)
 
7526
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
 
7527
#           dll_name = filename + i +1;
 
7528
#
 
7529
#     pe_header_offset = pe_get32 (dll, 0x3c);
 
7530
#     opthdr_ofs = pe_header_offset + 4 + 20;
 
7531
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
 
7532
#
 
7533
#     if (num_entries < 1) /* no exports */
 
7534
#       return 1;
 
7535
#
 
7536
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
 
7537
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
 
7538
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
 
7539
#     secptr = (pe_header_offset + 4 + 20 +
 
7540
#             pe_get16 (dll, pe_header_offset + 4 + 16));
 
7541
#
 
7542
#     expptr = 0;
 
7543
#     for (i = 0; i < nsections; i++)
 
7544
#     {
 
7545
#       char sname[8];
 
7546
#       unsigned long secptr1 = secptr + 40 * i;
 
7547
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
 
7548
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
 
7549
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
 
7550
#       lseek(dll, secptr1, SEEK_SET);
 
7551
#       read(dll, sname, 8);
 
7552
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
 
7553
#       {
 
7554
#           expptr = fptr + (export_rva - vaddr);
 
7555
#           if (export_rva + export_size > vaddr + vsize)
 
7556
#               export_size = vsize - (export_rva - vaddr);
 
7557
#           break;
 
7558
#       }
 
7559
#     }
 
7560
#
 
7561
#     expdata = (unsigned char*)malloc(export_size);
 
7562
#     lseek (dll, expptr, SEEK_SET);
 
7563
#     read (dll, expdata, export_size);
 
7564
#     erva = expdata - export_rva;
 
7565
#
 
7566
#     nexp = pe_as32 (expdata+24);
 
7567
#     name_rvas = pe_as32 (expdata+32);
 
7568
#
 
7569
#     printf ("EXPORTS\n");
 
7570
#     for (i = 0; i<nexp; i++)
 
7571
#     {
 
7572
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
 
7573
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
 
7574
#     }
 
7575
#
 
7576
#     return 0;
 
7577
# }
 
7578
# /* impgen.c ends here */
 
7579
 
 
7580
EOF
 
7581
    ;;
 
7582
  esac
 
7583
 
 
7584
  # We use sed instead of cat because bash on DJGPP gets confused if
 
7585
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
7586
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
7587
  # is reportedly fixed, but why not run on old versions too?
 
7588
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
7589
 
 
7590
  mv -f "${ofile}T" "$ofile" || \
 
7591
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
7592
  chmod +x "$ofile"
 
7593
fi
 
7594
 
 
7595
 
 
7596
 
 
7597
 
 
7598
 
 
7599
# This can be used to rebuild libtool when needed
 
7600
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
7601
 
 
7602
# Always use our own libtool.
 
7603
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7604
 
 
7605
# Prevent multiple expansion
 
7606
 
 
7607
 
 
7608
 
 
7609
# Checks for typedefs, structures, and compiler characteristics.
 
7610
 
 
7611
 
 
7612
# Checks for header files.
 
7613
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
7614
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
7615
if test "${ac_cv_header_stdc+set}" = set; then
 
7616
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7617
else
 
7618
  cat >conftest.$ac_ext <<_ACEOF
 
7619
#line $LINENO "configure"
 
7620
/* confdefs.h.  */
 
7621
_ACEOF
 
7622
cat confdefs.h >>conftest.$ac_ext
 
7623
cat >>conftest.$ac_ext <<_ACEOF
 
7624
/* end confdefs.h.  */
 
7625
#include <stdlib.h>
 
7626
#include <stdarg.h>
 
7627
#include <string.h>
 
7628
#include <float.h>
 
7629
 
 
7630
int
 
7631
main ()
 
7632
{
 
7633
 
 
7634
  ;
 
7635
  return 0;
 
7636
}
 
7637
_ACEOF
 
7638
rm -f conftest.$ac_objext
 
7639
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7640
  (eval $ac_compile) 2>&5
 
7641
  ac_status=$?
 
7642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7643
  (exit $ac_status); } &&
 
7644
         { ac_try='test -s conftest.$ac_objext'
 
7645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7646
  (eval $ac_try) 2>&5
 
7647
  ac_status=$?
 
7648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7649
  (exit $ac_status); }; }; then
 
7650
  ac_cv_header_stdc=yes
 
7651
else
 
7652
  echo "$as_me: failed program was:" >&5
 
7653
sed 's/^/| /' conftest.$ac_ext >&5
 
7654
 
 
7655
ac_cv_header_stdc=no
 
7656
fi
 
7657
rm -f conftest.$ac_objext conftest.$ac_ext
 
7658
 
 
7659
if test $ac_cv_header_stdc = yes; then
 
7660
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7661
  cat >conftest.$ac_ext <<_ACEOF
 
7662
#line $LINENO "configure"
 
7663
/* confdefs.h.  */
 
7664
_ACEOF
 
7665
cat confdefs.h >>conftest.$ac_ext
 
7666
cat >>conftest.$ac_ext <<_ACEOF
 
7667
/* end confdefs.h.  */
 
7668
#include <string.h>
 
7669
 
 
7670
_ACEOF
 
7671
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7672
  $EGREP "memchr" >/dev/null 2>&1; then
 
7673
  :
 
7674
else
 
7675
  ac_cv_header_stdc=no
 
7676
fi
 
7677
rm -f conftest*
 
7678
 
 
7679
fi
 
7680
 
 
7681
if test $ac_cv_header_stdc = yes; then
 
7682
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7683
  cat >conftest.$ac_ext <<_ACEOF
 
7684
#line $LINENO "configure"
 
7685
/* confdefs.h.  */
 
7686
_ACEOF
 
7687
cat confdefs.h >>conftest.$ac_ext
 
7688
cat >>conftest.$ac_ext <<_ACEOF
 
7689
/* end confdefs.h.  */
 
7690
#include <stdlib.h>
 
7691
 
 
7692
_ACEOF
 
7693
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7694
  $EGREP "free" >/dev/null 2>&1; then
 
7695
  :
 
7696
else
 
7697
  ac_cv_header_stdc=no
 
7698
fi
 
7699
rm -f conftest*
 
7700
 
 
7701
fi
 
7702
 
 
7703
if test $ac_cv_header_stdc = yes; then
 
7704
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7705
  if test "$cross_compiling" = yes; then
 
7706
  :
 
7707
else
 
7708
  cat >conftest.$ac_ext <<_ACEOF
 
7709
#line $LINENO "configure"
 
7710
/* confdefs.h.  */
 
7711
_ACEOF
 
7712
cat confdefs.h >>conftest.$ac_ext
 
7713
cat >>conftest.$ac_ext <<_ACEOF
 
7714
/* end confdefs.h.  */
 
7715
#include <ctype.h>
 
7716
#if ((' ' & 0x0FF) == 0x020)
 
7717
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7718
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7719
#else
 
7720
# define ISLOWER(c) \
 
7721
                   (('a' <= (c) && (c) <= 'i') \
 
7722
                     || ('j' <= (c) && (c) <= 'r') \
 
7723
                     || ('s' <= (c) && (c) <= 'z'))
 
7724
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7725
#endif
 
7726
 
 
7727
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7728
int
 
7729
main ()
 
7730
{
 
7731
  int i;
 
7732
  for (i = 0; i < 256; i++)
 
7733
    if (XOR (islower (i), ISLOWER (i))
 
7734
        || toupper (i) != TOUPPER (i))
 
7735
      exit(2);
 
7736
  exit (0);
 
7737
}
 
7738
_ACEOF
 
7739
rm -f conftest$ac_exeext
 
7740
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7741
  (eval $ac_link) 2>&5
 
7742
  ac_status=$?
 
7743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7744
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7746
  (eval $ac_try) 2>&5
 
7747
  ac_status=$?
 
7748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7749
  (exit $ac_status); }; }; then
 
7750
  :
 
7751
else
 
7752
  echo "$as_me: program exited with status $ac_status" >&5
 
7753
echo "$as_me: failed program was:" >&5
 
7754
sed 's/^/| /' conftest.$ac_ext >&5
 
7755
 
 
7756
( exit $ac_status )
 
7757
ac_cv_header_stdc=no
 
7758
fi
 
7759
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7760
fi
 
7761
fi
 
7762
fi
 
7763
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
7764
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
7765
if test $ac_cv_header_stdc = yes; then
 
7766
 
 
7767
cat >>confdefs.h <<\_ACEOF
 
7768
#define STDC_HEADERS 1
 
7769
_ACEOF
 
7770
 
 
7771
fi
 
7772
 
 
7773
if test "${ac_cv_header_stdlib_h+set}" = set; then
 
7774
  echo "$as_me:$LINENO: checking for stdlib.h" >&5
 
7775
echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
 
7776
if test "${ac_cv_header_stdlib_h+set}" = set; then
 
7777
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7778
fi
 
7779
echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
 
7780
echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
 
7781
else
 
7782
  # Is the header compilable?
 
7783
echo "$as_me:$LINENO: checking stdlib.h usability" >&5
 
7784
echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
 
7785
cat >conftest.$ac_ext <<_ACEOF
 
7786
#line $LINENO "configure"
 
7787
/* confdefs.h.  */
 
7788
_ACEOF
 
7789
cat confdefs.h >>conftest.$ac_ext
 
7790
cat >>conftest.$ac_ext <<_ACEOF
 
7791
/* end confdefs.h.  */
 
7792
$ac_includes_default
 
7793
#include <stdlib.h>
 
7794
_ACEOF
 
7795
rm -f conftest.$ac_objext
 
7796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7797
  (eval $ac_compile) 2>&5
 
7798
  ac_status=$?
 
7799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7800
  (exit $ac_status); } &&
 
7801
         { ac_try='test -s conftest.$ac_objext'
 
7802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7803
  (eval $ac_try) 2>&5
 
7804
  ac_status=$?
 
7805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7806
  (exit $ac_status); }; }; then
 
7807
  ac_header_compiler=yes
 
7808
else
 
7809
  echo "$as_me: failed program was:" >&5
 
7810
sed 's/^/| /' conftest.$ac_ext >&5
 
7811
 
 
7812
ac_header_compiler=no
 
7813
fi
 
7814
rm -f conftest.$ac_objext conftest.$ac_ext
 
7815
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7816
echo "${ECHO_T}$ac_header_compiler" >&6
 
7817
 
 
7818
# Is the header present?
 
7819
echo "$as_me:$LINENO: checking stdlib.h presence" >&5
 
7820
echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
 
7821
cat >conftest.$ac_ext <<_ACEOF
 
7822
#line $LINENO "configure"
 
7823
/* confdefs.h.  */
 
7824
_ACEOF
 
7825
cat confdefs.h >>conftest.$ac_ext
 
7826
cat >>conftest.$ac_ext <<_ACEOF
 
7827
/* end confdefs.h.  */
 
7828
#include <stdlib.h>
 
7829
_ACEOF
 
7830
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7831
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7832
  ac_status=$?
 
7833
  grep -v '^ *+' conftest.er1 >conftest.err
 
7834
  rm -f conftest.er1
 
7835
  cat conftest.err >&5
 
7836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7837
  (exit $ac_status); } >/dev/null; then
 
7838
  if test -s conftest.err; then
 
7839
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7840
  else
 
7841
    ac_cpp_err=
 
7842
  fi
 
7843
else
 
7844
  ac_cpp_err=yes
 
7845
fi
 
7846
if test -z "$ac_cpp_err"; then
 
7847
  ac_header_preproc=yes
 
7848
else
 
7849
  echo "$as_me: failed program was:" >&5
 
7850
sed 's/^/| /' conftest.$ac_ext >&5
 
7851
 
 
7852
  ac_header_preproc=no
 
7853
fi
 
7854
rm -f conftest.err conftest.$ac_ext
 
7855
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7856
echo "${ECHO_T}$ac_header_preproc" >&6
 
7857
 
 
7858
# So?  What about this header?
 
7859
case $ac_header_compiler:$ac_header_preproc in
 
7860
  yes:no )
 
7861
    { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
7862
echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7863
    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
 
7864
echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
 
7865
    (
 
7866
      cat <<\_ASBOX
 
7867
## ------------------------------------ ##
 
7868
## Report this to bug-autoconf@gnu.org. ##
 
7869
## ------------------------------------ ##
 
7870
_ASBOX
 
7871
    ) |
 
7872
      sed "s/^/$as_me: WARNING:     /" >&2
 
7873
    ;;
 
7874
  no:yes )
 
7875
    { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
 
7876
echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
 
7877
    { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
 
7878
echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
 
7879
    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
 
7880
echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
 
7881
    (
 
7882
      cat <<\_ASBOX
 
7883
## ------------------------------------ ##
 
7884
## Report this to bug-autoconf@gnu.org. ##
 
7885
## ------------------------------------ ##
 
7886
_ASBOX
 
7887
    ) |
 
7888
      sed "s/^/$as_me: WARNING:     /" >&2
 
7889
    ;;
 
7890
esac
 
7891
echo "$as_me:$LINENO: checking for stdlib.h" >&5
 
7892
echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
 
7893
if test "${ac_cv_header_stdlib_h+set}" = set; then
 
7894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7895
else
 
7896
  ac_cv_header_stdlib_h=$ac_header_preproc
 
7897
fi
 
7898
echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
 
7899
echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
 
7900
 
 
7901
fi
 
7902
 
 
7903
 
 
7904
 
 
7905
# Checks for libraries.
 
7906
 
 
7907
echo "$as_me:$LINENO: checking for X" >&5
 
7908
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
7909
 
 
7910
 
 
7911
# Check whether --with-x or --without-x was given.
 
7912
if test "${with_x+set}" = set; then
 
7913
  withval="$with_x"
 
7914
 
 
7915
fi;
 
7916
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 
7917
if test "x$with_x" = xno; then
 
7918
  # The user explicitly disabled X.
 
7919
  have_x=disabled
 
7920
else
 
7921
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
7922
    # Both variables are already set.
 
7923
    have_x=yes
 
7924
  else
 
7925
    if test "${ac_cv_have_x+set}" = set; then
 
7926
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7927
else
 
7928
  # One or both of the vars are not set, and there is no cached value.
 
7929
ac_x_includes=no ac_x_libraries=no
 
7930
rm -fr conftest.dir
 
7931
if mkdir conftest.dir; then
 
7932
  cd conftest.dir
 
7933
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
7934
  cat >Imakefile <<'_ACEOF'
 
7935
acfindx:
 
7936
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
7937
_ACEOF
 
7938
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
7939
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
7940
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
7941
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
7942
    for ac_extension in a so sl; do
 
7943
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
7944
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
7945
        ac_im_usrlibdir=$ac_im_libdir; break
 
7946
      fi
 
7947
    done
 
7948
    # Screen out bogus values from the imake configuration.  They are
 
7949
    # bogus both because they are the default anyway, and because
 
7950
    # using them would break gcc on systems where it needs fixed includes.
 
7951
    case $ac_im_incroot in
 
7952
        /usr/include) ;;
 
7953
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
7954
    esac
 
7955
    case $ac_im_usrlibdir in
 
7956
        /usr/lib | /lib) ;;
 
7957
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
7958
    esac
 
7959
  fi
 
7960
  cd ..
 
7961
  rm -fr conftest.dir
 
7962
fi
 
7963
 
 
7964
# Standard set of common directories for X headers.
 
7965
# Check X11 before X11Rn because it is often a symlink to the current release.
 
7966
ac_x_header_dirs='
 
7967
/usr/X11/include
 
7968
/usr/X11R6/include
 
7969
/usr/X11R5/include
 
7970
/usr/X11R4/include
 
7971
 
 
7972
/usr/include/X11
 
7973
/usr/include/X11R6
 
7974
/usr/include/X11R5
 
7975
/usr/include/X11R4
 
7976
 
 
7977
/usr/local/X11/include
 
7978
/usr/local/X11R6/include
 
7979
/usr/local/X11R5/include
 
7980
/usr/local/X11R4/include
 
7981
 
 
7982
/usr/local/include/X11
 
7983
/usr/local/include/X11R6
 
7984
/usr/local/include/X11R5
 
7985
/usr/local/include/X11R4
 
7986
 
 
7987
/usr/X386/include
 
7988
/usr/x386/include
 
7989
/usr/XFree86/include/X11
 
7990
 
 
7991
/usr/include
 
7992
/usr/local/include
 
7993
/usr/unsupported/include
 
7994
/usr/athena/include
 
7995
/usr/local/x11r5/include
 
7996
/usr/lpp/Xamples/include
 
7997
 
 
7998
/usr/openwin/include
 
7999
/usr/openwin/share/include'
 
8000
 
 
8001
if test "$ac_x_includes" = no; then
 
8002
  # Guess where to find include files, by looking for Intrinsic.h.
 
8003
  # First, try using that file with no special directory specified.
 
8004
  cat >conftest.$ac_ext <<_ACEOF
 
8005
#line $LINENO "configure"
 
8006
/* confdefs.h.  */
 
8007
_ACEOF
 
8008
cat confdefs.h >>conftest.$ac_ext
 
8009
cat >>conftest.$ac_ext <<_ACEOF
 
8010
/* end confdefs.h.  */
 
8011
#include <X11/Intrinsic.h>
 
8012
_ACEOF
 
8013
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8014
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8015
  ac_status=$?
 
8016
  grep -v '^ *+' conftest.er1 >conftest.err
 
8017
  rm -f conftest.er1
 
8018
  cat conftest.err >&5
 
8019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8020
  (exit $ac_status); } >/dev/null; then
 
8021
  if test -s conftest.err; then
 
8022
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8023
  else
 
8024
    ac_cpp_err=
 
8025
  fi
 
8026
else
 
8027
  ac_cpp_err=yes
 
8028
fi
 
8029
if test -z "$ac_cpp_err"; then
 
8030
  # We can compile using X headers with no special include directory.
 
8031
ac_x_includes=
 
8032
else
 
8033
  echo "$as_me: failed program was:" >&5
 
8034
sed 's/^/| /' conftest.$ac_ext >&5
 
8035
 
 
8036
  for ac_dir in $ac_x_header_dirs; do
 
8037
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
8038
    ac_x_includes=$ac_dir
 
8039
    break
 
8040
  fi
 
8041
done
 
8042
fi
 
8043
rm -f conftest.err conftest.$ac_ext
 
8044
fi # $ac_x_includes = no
 
8045
 
 
8046
if test "$ac_x_libraries" = no; then
 
8047
  # Check for the libraries.
 
8048
  # See if we find them without any special options.
 
8049
  # Don't add to $LIBS permanently.
 
8050
  ac_save_LIBS=$LIBS
 
8051
  LIBS="-lXt $LIBS"
 
8052
  cat >conftest.$ac_ext <<_ACEOF
 
8053
#line $LINENO "configure"
 
8054
/* confdefs.h.  */
 
8055
_ACEOF
 
8056
cat confdefs.h >>conftest.$ac_ext
 
8057
cat >>conftest.$ac_ext <<_ACEOF
 
8058
/* end confdefs.h.  */
 
8059
#include <X11/Intrinsic.h>
 
8060
int
 
8061
main ()
 
8062
{
 
8063
XtMalloc (0)
 
8064
  ;
 
8065
  return 0;
 
8066
}
 
8067
_ACEOF
 
8068
rm -f conftest.$ac_objext conftest$ac_exeext
 
8069
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8070
  (eval $ac_link) 2>&5
 
8071
  ac_status=$?
 
8072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8073
  (exit $ac_status); } &&
 
8074
         { ac_try='test -s conftest$ac_exeext'
 
8075
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8076
  (eval $ac_try) 2>&5
 
8077
  ac_status=$?
 
8078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8079
  (exit $ac_status); }; }; then
 
8080
  LIBS=$ac_save_LIBS
 
8081
# We can link X programs with no special library path.
 
8082
ac_x_libraries=
 
8083
else
 
8084
  echo "$as_me: failed program was:" >&5
 
8085
sed 's/^/| /' conftest.$ac_ext >&5
 
8086
 
 
8087
LIBS=$ac_save_LIBS
 
8088
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
8089
do
 
8090
  # Don't even attempt the hair of trying to link an X program!
 
8091
  for ac_extension in a so sl; do
 
8092
    if test -r $ac_dir/libXt.$ac_extension; then
 
8093
      ac_x_libraries=$ac_dir
 
8094
      break 2
 
8095
    fi
 
8096
  done
 
8097
done
 
8098
fi
 
8099
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8100
fi # $ac_x_libraries = no
 
8101
 
 
8102
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
 
8103
  # Didn't find X anywhere.  Cache the known absence of X.
 
8104
  ac_cv_have_x="have_x=no"
 
8105
else
 
8106
  # Record where we found X for the cache.
 
8107
  ac_cv_have_x="have_x=yes \
 
8108
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
 
8109
fi
 
8110
fi
 
8111
 
 
8112
  fi
 
8113
  eval "$ac_cv_have_x"
 
8114
fi # $with_x != no
 
8115
 
 
8116
if test "$have_x" != yes; then
 
8117
  echo "$as_me:$LINENO: result: $have_x" >&5
 
8118
echo "${ECHO_T}$have_x" >&6
 
8119
  no_x=yes
 
8120
else
 
8121
  # If each of the values was on the command line, it overrides each guess.
 
8122
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 
8123
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 
8124
  # Update the cache value to reflect the command line values.
 
8125
  ac_cv_have_x="have_x=yes \
 
8126
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
 
8127
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
8128
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
 
8129
fi
 
8130
 
 
8131
 
 
8132
 
 
8133
# Check whether --with-freetype-prefix or --without-freetype-prefix was given.
 
8134
if test "${with_freetype_prefix+set}" = set; then
 
8135
  withval="$with_freetype_prefix"
 
8136
  ft_config_prefix="$withval"
 
8137
else
 
8138
  ft_config_prefix=""
 
8139
fi;
 
8140
 
 
8141
# Check whether --with-freetype-exec-prefix or --without-freetype-exec-prefix was given.
 
8142
if test "${with_freetype_exec_prefix+set}" = set; then
 
8143
  withval="$with_freetype_exec_prefix"
 
8144
  ft_config_exec_prefix="$withval"
 
8145
else
 
8146
  ft_config_exec_prefix=""
 
8147
fi;
 
8148
# Check whether --enable-freetypetest or --disable-freetypetest was given.
 
8149
if test "${enable_freetypetest+set}" = set; then
 
8150
  enableval="$enable_freetypetest"
 
8151
 
 
8152
else
 
8153
  enable_fttest=yes
 
8154
fi;
 
8155
 
 
8156
if test x$ft_config_exec_prefix != x ; then
 
8157
  ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix"
 
8158
  if test x${FT2_CONFIG+set} != xset ; then
 
8159
    FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config
 
8160
  fi
 
8161
fi
 
8162
if test x$ft_config_prefix != x ; then
 
8163
  ft_config_args="$ft_config_args --prefix=$ft_config_prefix"
 
8164
  if test x${FT2_CONFIG+set} != xset ; then
 
8165
    FT2_CONFIG=$ft_config_prefix/bin/freetype-config
 
8166
  fi
 
8167
fi
 
8168
# Extract the first word of "freetype-config", so it can be a program name with args.
 
8169
set dummy freetype-config; ac_word=$2
 
8170
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8171
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8172
if test "${ac_cv_path_FT2_CONFIG+set}" = set; then
 
8173
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8174
else
 
8175
  case $FT2_CONFIG in
 
8176
  [\\/]* | ?:[\\/]*)
 
8177
  ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a path.
 
8178
  ;;
 
8179
  *)
 
8180
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8181
for as_dir in $PATH
 
8182
do
 
8183
  IFS=$as_save_IFS
 
8184
  test -z "$as_dir" && as_dir=.
 
8185
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8186
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8187
    ac_cv_path_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
8188
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8189
    break 2
 
8190
  fi
 
8191
done
 
8192
done
 
8193
 
 
8194
  test -z "$ac_cv_path_FT2_CONFIG" && ac_cv_path_FT2_CONFIG="no"
 
8195
  ;;
 
8196
esac
 
8197
fi
 
8198
FT2_CONFIG=$ac_cv_path_FT2_CONFIG
 
8199
 
 
8200
if test -n "$FT2_CONFIG"; then
 
8201
  echo "$as_me:$LINENO: result: $FT2_CONFIG" >&5
 
8202
echo "${ECHO_T}$FT2_CONFIG" >&6
 
8203
else
 
8204
  echo "$as_me:$LINENO: result: no" >&5
 
8205
echo "${ECHO_T}no" >&6
 
8206
fi
 
8207
 
 
8208
 
 
8209
min_ft_version=9.0.3
 
8210
echo "$as_me:$LINENO: checking for FreeType - version >= $min_ft_version" >&5
 
8211
echo $ECHO_N "checking for FreeType - version >= $min_ft_version... $ECHO_C" >&6
 
8212
no_ft=""
 
8213
if test "$FT2_CONFIG" = "no" ; then
 
8214
  no_ft=yes
 
8215
else
 
8216
  FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags`
 
8217
  FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs`
 
8218
  ft_config_version=`$FT2_CONFIG $ft_config_args --version`
 
8219
  ft_config_major_version=`echo $ft_config_version | cut -d . -f 1`
 
8220
  ft_config_minor_version=`echo $ft_config_version | cut -d . -f 2`
 
8221
  ft_config_micro_version=`echo $ft_config_version | cut -d . -f 3`
 
8222
  ft_min_major_version=`echo $min_ft_version | cut -d . -f 1`
 
8223
  ft_min_minor_version=`echo $min_ft_version | cut -d . -f 2`
 
8224
  ft_min_micro_version=`echo $min_ft_version | cut -d . -f 3`
 
8225
  if test "x$enable_fttest" = "xyes" ; then
 
8226
    ft_config_version=`expr $ft_config_major_version \* 10000 + $ft_config_minor_version \* 100 + $ft_config_micro_version`
 
8227
    ft_min_version=`expr $ft_min_major_version \* 10000 + $ft_min_minor_version \* 100 + $ft_min_micro_version`
 
8228
    if test $ft_config_version -lt $ft_min_version ; then
 
8229
      { { echo "$as_me:$LINENO: error: FreeType2 is required to compile this library" >&5
 
8230
echo "$as_me: error: FreeType2 is required to compile this library" >&2;}
 
8231
   { (exit 1); exit 1; }; }
 
8232
    else
 
8233
      ac_save_CFLAGS="$CFLAGS"
 
8234
      ac_save_LIBS="$LIBS"
 
8235
      CFLAGS="$CFLAGS $FT2_CFLAGS"
 
8236
      LIBS="$FT2_LIBS $LIBS"
 
8237
      if test "$cross_compiling" = yes; then
 
8238
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
8239
else
 
8240
  cat >conftest.$ac_ext <<_ACEOF
 
8241
#line $LINENO "configure"
 
8242
/* confdefs.h.  */
 
8243
_ACEOF
 
8244
cat confdefs.h >>conftest.$ac_ext
 
8245
cat >>conftest.$ac_ext <<_ACEOF
 
8246
/* end confdefs.h.  */
 
8247
 
 
8248
#include <ft2build.h>
 
8249
#include FT_FREETYPE_H
 
8250
#include <stdio.h>
 
8251
#include <stdlib.h>
 
8252
 
 
8253
int
 
8254
main ()
 
8255
{
 
8256
    FT_Library library;
 
8257
    FT_Error error;
 
8258
 
 
8259
    error = FT_Init_FreeType( &library );
 
8260
 
 
8261
    if ( error )
 
8262
    {
 
8263
        return 1;
 
8264
    } else {
 
8265
        FT_Done_FreeType( library );
 
8266
        return 0;
 
8267
    }
 
8268
}
 
8269
 
 
8270
_ACEOF
 
8271
rm -f conftest$ac_exeext
 
8272
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8273
  (eval $ac_link) 2>&5
 
8274
  ac_status=$?
 
8275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8276
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8277
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8278
  (eval $ac_try) 2>&5
 
8279
  ac_status=$?
 
8280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8281
  (exit $ac_status); }; }; then
 
8282
  :
 
8283
else
 
8284
  echo "$as_me: program exited with status $ac_status" >&5
 
8285
echo "$as_me: failed program was:" >&5
 
8286
sed 's/^/| /' conftest.$ac_ext >&5
 
8287
 
 
8288
( exit $ac_status )
 
8289
no_ft=yes
 
8290
fi
 
8291
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8292
fi
 
8293
      CFLAGS="$ac_save_CFLAGS"
 
8294
      LIBS="$ac_save_LIBS"
 
8295
    fi             # test $ft_config_version -lt $ft_min_version
 
8296
  fi               # test "x$enable_fttest" = "xyes"
 
8297
fi                 # test "$FT2_CONFIG" = "no"
 
8298
if test "x$no_ft" = x ; then
 
8299
   echo "$as_me:$LINENO: result: yes" >&5
 
8300
echo "${ECHO_T}yes" >&6
 
8301
   :
 
8302
else
 
8303
   echo "$as_me:$LINENO: result: no" >&5
 
8304
echo "${ECHO_T}no" >&6
 
8305
   if test "$FT2_CONFIG" = "no" ; then
 
8306
     echo "*** The freetype-config script installed by FT2 could not be found"
 
8307
     echo "*** If FT2 was installed in PREFIX, make sure PREFIX/bin is in"
 
8308
     echo "*** your path, or set the FT2_CONFIG environment variable to the"
 
8309
     echo "*** full path to freetype-config."
 
8310
   else
 
8311
     echo "*** The FreeType test program failed to run.  If your system uses"
 
8312
     echo "*** shared libraries and they are installed outside the normal"
 
8313
     echo "*** system library path, make sure the variable LD_LIBRARY_PATH"
 
8314
     echo "*** (or whatever is appropiate for your system) is correctly set."
 
8315
   fi
 
8316
   FT2_CFLAGS=""
 
8317
   FT2_LIBS=""
 
8318
   { { echo "$as_me:$LINENO: error: FreeType2 is required to compile this library" >&5
 
8319
echo "$as_me: error: FreeType2 is required to compile this library" >&2;}
 
8320
   { (exit 1); exit 1; }; }
 
8321
fi
 
8322
 
 
8323
 
 
8324
 
 
8325
 
 
8326
if test "$no_x" = yes; then
 
8327
  # Not all programs may use this symbol, but it does not hurt to define it.
 
8328
 
 
8329
cat >>confdefs.h <<\_ACEOF
 
8330
#define X_DISPLAY_MISSING 1
 
8331
_ACEOF
 
8332
 
 
8333
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 
8334
else
 
8335
  if test -n "$x_includes"; then
 
8336
    X_CFLAGS="$X_CFLAGS -I$x_includes"
 
8337
  fi
 
8338
 
 
8339
  # It would also be nice to do this for all -L options, not just this one.
 
8340
  if test -n "$x_libraries"; then
 
8341
    X_LIBS="$X_LIBS -L$x_libraries"
 
8342
    # For Solaris; some versions of Sun CC require a space after -R and
 
8343
    # others require no space.  Words are not sufficient . . . .
 
8344
    case `(uname -sr) 2>/dev/null` in
 
8345
    "SunOS 5"*)
 
8346
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
8347
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
 
8348
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
8349
      cat >conftest.$ac_ext <<_ACEOF
 
8350
#line $LINENO "configure"
 
8351
/* confdefs.h.  */
 
8352
_ACEOF
 
8353
cat confdefs.h >>conftest.$ac_ext
 
8354
cat >>conftest.$ac_ext <<_ACEOF
 
8355
/* end confdefs.h.  */
 
8356
 
 
8357
int
 
8358
main ()
 
8359
{
 
8360
 
 
8361
  ;
 
8362
  return 0;
 
8363
}
 
8364
_ACEOF
 
8365
rm -f conftest.$ac_objext conftest$ac_exeext
 
8366
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8367
  (eval $ac_link) 2>&5
 
8368
  ac_status=$?
 
8369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8370
  (exit $ac_status); } &&
 
8371
         { ac_try='test -s conftest$ac_exeext'
 
8372
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8373
  (eval $ac_try) 2>&5
 
8374
  ac_status=$?
 
8375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8376
  (exit $ac_status); }; }; then
 
8377
  ac_R_nospace=yes
 
8378
else
 
8379
  echo "$as_me: failed program was:" >&5
 
8380
sed 's/^/| /' conftest.$ac_ext >&5
 
8381
 
 
8382
ac_R_nospace=no
 
8383
fi
 
8384
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8385
      if test $ac_R_nospace = yes; then
 
8386
        echo "$as_me:$LINENO: result: no" >&5
 
8387
echo "${ECHO_T}no" >&6
 
8388
        X_LIBS="$X_LIBS -R$x_libraries"
 
8389
      else
 
8390
        LIBS="$ac_xsave_LIBS -R $x_libraries"
 
8391
        cat >conftest.$ac_ext <<_ACEOF
 
8392
#line $LINENO "configure"
 
8393
/* confdefs.h.  */
 
8394
_ACEOF
 
8395
cat confdefs.h >>conftest.$ac_ext
 
8396
cat >>conftest.$ac_ext <<_ACEOF
 
8397
/* end confdefs.h.  */
 
8398
 
 
8399
int
 
8400
main ()
 
8401
{
 
8402
 
 
8403
  ;
 
8404
  return 0;
 
8405
}
 
8406
_ACEOF
 
8407
rm -f conftest.$ac_objext conftest$ac_exeext
 
8408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8409
  (eval $ac_link) 2>&5
 
8410
  ac_status=$?
 
8411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8412
  (exit $ac_status); } &&
 
8413
         { ac_try='test -s conftest$ac_exeext'
 
8414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8415
  (eval $ac_try) 2>&5
 
8416
  ac_status=$?
 
8417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8418
  (exit $ac_status); }; }; then
 
8419
  ac_R_space=yes
 
8420
else
 
8421
  echo "$as_me: failed program was:" >&5
 
8422
sed 's/^/| /' conftest.$ac_ext >&5
 
8423
 
 
8424
ac_R_space=no
 
8425
fi
 
8426
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8427
        if test $ac_R_space = yes; then
 
8428
          echo "$as_me:$LINENO: result: yes" >&5
 
8429
echo "${ECHO_T}yes" >&6
 
8430
          X_LIBS="$X_LIBS -R $x_libraries"
 
8431
        else
 
8432
          echo "$as_me:$LINENO: result: neither works" >&5
 
8433
echo "${ECHO_T}neither works" >&6
 
8434
        fi
 
8435
      fi
 
8436
      LIBS=$ac_xsave_LIBS
 
8437
    esac
 
8438
  fi
 
8439
 
 
8440
  # Check for system-dependent libraries X programs must link with.
 
8441
  # Do this before checking for the system-independent R6 libraries
 
8442
  # (-lICE), since we may need -lsocket or whatever for X linking.
 
8443
 
 
8444
  if test "$ISC" = yes; then
 
8445
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 
8446
  else
 
8447
    # Martyn Johnson says this is needed for Ultrix, if the X
 
8448
    # libraries were built with DECnet support.  And Karl Berry says
 
8449
    # the Alpha needs dnet_stub (dnet does not exist).
 
8450
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 
8451
    cat >conftest.$ac_ext <<_ACEOF
 
8452
#line $LINENO "configure"
 
8453
/* confdefs.h.  */
 
8454
_ACEOF
 
8455
cat confdefs.h >>conftest.$ac_ext
 
8456
cat >>conftest.$ac_ext <<_ACEOF
 
8457
/* end confdefs.h.  */
 
8458
 
 
8459
/* Override any gcc2 internal prototype to avoid an error.  */
 
8460
#ifdef __cplusplus
 
8461
extern "C"
 
8462
#endif
 
8463
/* We use char because int might match the return type of a gcc2
 
8464
   builtin and then its argument prototype would still apply.  */
 
8465
char XOpenDisplay ();
 
8466
int
 
8467
main ()
 
8468
{
 
8469
XOpenDisplay ();
 
8470
  ;
 
8471
  return 0;
 
8472
}
 
8473
_ACEOF
 
8474
rm -f conftest.$ac_objext conftest$ac_exeext
 
8475
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8476
  (eval $ac_link) 2>&5
 
8477
  ac_status=$?
 
8478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8479
  (exit $ac_status); } &&
 
8480
         { ac_try='test -s conftest$ac_exeext'
 
8481
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8482
  (eval $ac_try) 2>&5
 
8483
  ac_status=$?
 
8484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8485
  (exit $ac_status); }; }; then
 
8486
  :
 
8487
else
 
8488
  echo "$as_me: failed program was:" >&5
 
8489
sed 's/^/| /' conftest.$ac_ext >&5
 
8490
 
 
8491
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
8492
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
 
8493
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
8494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8495
else
 
8496
  ac_check_lib_save_LIBS=$LIBS
 
8497
LIBS="-ldnet  $LIBS"
 
8498
cat >conftest.$ac_ext <<_ACEOF
 
8499
#line $LINENO "configure"
 
8500
/* confdefs.h.  */
 
8501
_ACEOF
 
8502
cat confdefs.h >>conftest.$ac_ext
 
8503
cat >>conftest.$ac_ext <<_ACEOF
 
8504
/* end confdefs.h.  */
 
8505
 
 
8506
/* Override any gcc2 internal prototype to avoid an error.  */
 
8507
#ifdef __cplusplus
 
8508
extern "C"
 
8509
#endif
 
8510
/* We use char because int might match the return type of a gcc2
 
8511
   builtin and then its argument prototype would still apply.  */
 
8512
char dnet_ntoa ();
 
8513
int
 
8514
main ()
 
8515
{
 
8516
dnet_ntoa ();
 
8517
  ;
 
8518
  return 0;
 
8519
}
 
8520
_ACEOF
 
8521
rm -f conftest.$ac_objext conftest$ac_exeext
 
8522
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8523
  (eval $ac_link) 2>&5
 
8524
  ac_status=$?
 
8525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8526
  (exit $ac_status); } &&
 
8527
         { ac_try='test -s conftest$ac_exeext'
 
8528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8529
  (eval $ac_try) 2>&5
 
8530
  ac_status=$?
 
8531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8532
  (exit $ac_status); }; }; then
 
8533
  ac_cv_lib_dnet_dnet_ntoa=yes
 
8534
else
 
8535
  echo "$as_me: failed program was:" >&5
 
8536
sed 's/^/| /' conftest.$ac_ext >&5
 
8537
 
 
8538
ac_cv_lib_dnet_dnet_ntoa=no
 
8539
fi
 
8540
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8541
LIBS=$ac_check_lib_save_LIBS
 
8542
fi
 
8543
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
8544
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
 
8545
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
8546
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
8547
fi
 
8548
 
 
8549
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
8550
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
8551
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
 
8552
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
8553
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8554
else
 
8555
  ac_check_lib_save_LIBS=$LIBS
 
8556
LIBS="-ldnet_stub  $LIBS"
 
8557
cat >conftest.$ac_ext <<_ACEOF
 
8558
#line $LINENO "configure"
 
8559
/* confdefs.h.  */
 
8560
_ACEOF
 
8561
cat confdefs.h >>conftest.$ac_ext
 
8562
cat >>conftest.$ac_ext <<_ACEOF
 
8563
/* end confdefs.h.  */
 
8564
 
 
8565
/* Override any gcc2 internal prototype to avoid an error.  */
 
8566
#ifdef __cplusplus
 
8567
extern "C"
 
8568
#endif
 
8569
/* We use char because int might match the return type of a gcc2
 
8570
   builtin and then its argument prototype would still apply.  */
 
8571
char dnet_ntoa ();
 
8572
int
 
8573
main ()
 
8574
{
 
8575
dnet_ntoa ();
 
8576
  ;
 
8577
  return 0;
 
8578
}
 
8579
_ACEOF
 
8580
rm -f conftest.$ac_objext conftest$ac_exeext
 
8581
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8582
  (eval $ac_link) 2>&5
 
8583
  ac_status=$?
 
8584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8585
  (exit $ac_status); } &&
 
8586
         { ac_try='test -s conftest$ac_exeext'
 
8587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8588
  (eval $ac_try) 2>&5
 
8589
  ac_status=$?
 
8590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8591
  (exit $ac_status); }; }; then
 
8592
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
8593
else
 
8594
  echo "$as_me: failed program was:" >&5
 
8595
sed 's/^/| /' conftest.$ac_ext >&5
 
8596
 
 
8597
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
8598
fi
 
8599
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8600
LIBS=$ac_check_lib_save_LIBS
 
8601
fi
 
8602
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
8603
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
 
8604
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
8605
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
8606
fi
 
8607
 
 
8608
    fi
 
8609
fi
 
8610
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8611
    LIBS="$ac_xsave_LIBS"
 
8612
 
 
8613
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
 
8614
    # to get the SysV transport functions.
 
8615
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
 
8616
    # needs -lnsl.
 
8617
    # The nsl library prevents programs from opening the X display
 
8618
    # on Irix 5.2, according to T.E. Dickey.
 
8619
    # The functions gethostbyname, getservbyname, and inet_addr are
 
8620
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 
8621
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
8622
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
8623
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
8624
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8625
else
 
8626
  cat >conftest.$ac_ext <<_ACEOF
 
8627
#line $LINENO "configure"
 
8628
/* confdefs.h.  */
 
8629
_ACEOF
 
8630
cat confdefs.h >>conftest.$ac_ext
 
8631
cat >>conftest.$ac_ext <<_ACEOF
 
8632
/* end confdefs.h.  */
 
8633
/* System header to define __stub macros and hopefully few prototypes,
 
8634
    which can conflict with char gethostbyname (); below.
 
8635
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8636
    <limits.h> exists even on freestanding compilers.  */
 
8637
#ifdef __STDC__
 
8638
# include <limits.h>
 
8639
#else
 
8640
# include <assert.h>
 
8641
#endif
 
8642
/* Override any gcc2 internal prototype to avoid an error.  */
 
8643
#ifdef __cplusplus
 
8644
extern "C"
 
8645
{
 
8646
#endif
 
8647
/* We use char because int might match the return type of a gcc2
 
8648
   builtin and then its argument prototype would still apply.  */
 
8649
char gethostbyname ();
 
8650
/* The GNU C library defines this for functions which it implements
 
8651
    to always fail with ENOSYS.  Some functions are actually named
 
8652
    something starting with __ and the normal name is an alias.  */
 
8653
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
8654
choke me
 
8655
#else
 
8656
char (*f) () = gethostbyname;
 
8657
#endif
 
8658
#ifdef __cplusplus
 
8659
}
 
8660
#endif
 
8661
 
 
8662
int
 
8663
main ()
 
8664
{
 
8665
return f != gethostbyname;
 
8666
  ;
 
8667
  return 0;
 
8668
}
 
8669
_ACEOF
 
8670
rm -f conftest.$ac_objext conftest$ac_exeext
 
8671
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8672
  (eval $ac_link) 2>&5
 
8673
  ac_status=$?
 
8674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8675
  (exit $ac_status); } &&
 
8676
         { ac_try='test -s conftest$ac_exeext'
 
8677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8678
  (eval $ac_try) 2>&5
 
8679
  ac_status=$?
 
8680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8681
  (exit $ac_status); }; }; then
 
8682
  ac_cv_func_gethostbyname=yes
 
8683
else
 
8684
  echo "$as_me: failed program was:" >&5
 
8685
sed 's/^/| /' conftest.$ac_ext >&5
 
8686
 
 
8687
ac_cv_func_gethostbyname=no
 
8688
fi
 
8689
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8690
fi
 
8691
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
8692
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
8693
 
 
8694
    if test $ac_cv_func_gethostbyname = no; then
 
8695
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
8696
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
8697
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
8698
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8699
else
 
8700
  ac_check_lib_save_LIBS=$LIBS
 
8701
LIBS="-lnsl  $LIBS"
 
8702
cat >conftest.$ac_ext <<_ACEOF
 
8703
#line $LINENO "configure"
 
8704
/* confdefs.h.  */
 
8705
_ACEOF
 
8706
cat confdefs.h >>conftest.$ac_ext
 
8707
cat >>conftest.$ac_ext <<_ACEOF
 
8708
/* end confdefs.h.  */
 
8709
 
 
8710
/* Override any gcc2 internal prototype to avoid an error.  */
 
8711
#ifdef __cplusplus
 
8712
extern "C"
 
8713
#endif
 
8714
/* We use char because int might match the return type of a gcc2
 
8715
   builtin and then its argument prototype would still apply.  */
 
8716
char gethostbyname ();
 
8717
int
 
8718
main ()
 
8719
{
 
8720
gethostbyname ();
 
8721
  ;
 
8722
  return 0;
 
8723
}
 
8724
_ACEOF
 
8725
rm -f conftest.$ac_objext conftest$ac_exeext
 
8726
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8727
  (eval $ac_link) 2>&5
 
8728
  ac_status=$?
 
8729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8730
  (exit $ac_status); } &&
 
8731
         { ac_try='test -s conftest$ac_exeext'
 
8732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8733
  (eval $ac_try) 2>&5
 
8734
  ac_status=$?
 
8735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8736
  (exit $ac_status); }; }; then
 
8737
  ac_cv_lib_nsl_gethostbyname=yes
 
8738
else
 
8739
  echo "$as_me: failed program was:" >&5
 
8740
sed 's/^/| /' conftest.$ac_ext >&5
 
8741
 
 
8742
ac_cv_lib_nsl_gethostbyname=no
 
8743
fi
 
8744
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8745
LIBS=$ac_check_lib_save_LIBS
 
8746
fi
 
8747
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
8748
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
8749
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
8750
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
8751
fi
 
8752
 
 
8753
      if test $ac_cv_lib_nsl_gethostbyname = no; then
 
8754
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
8755
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
 
8756
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
8757
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8758
else
 
8759
  ac_check_lib_save_LIBS=$LIBS
 
8760
LIBS="-lbsd  $LIBS"
 
8761
cat >conftest.$ac_ext <<_ACEOF
 
8762
#line $LINENO "configure"
 
8763
/* confdefs.h.  */
 
8764
_ACEOF
 
8765
cat confdefs.h >>conftest.$ac_ext
 
8766
cat >>conftest.$ac_ext <<_ACEOF
 
8767
/* end confdefs.h.  */
 
8768
 
 
8769
/* Override any gcc2 internal prototype to avoid an error.  */
 
8770
#ifdef __cplusplus
 
8771
extern "C"
 
8772
#endif
 
8773
/* We use char because int might match the return type of a gcc2
 
8774
   builtin and then its argument prototype would still apply.  */
 
8775
char gethostbyname ();
 
8776
int
 
8777
main ()
 
8778
{
 
8779
gethostbyname ();
 
8780
  ;
 
8781
  return 0;
 
8782
}
 
8783
_ACEOF
 
8784
rm -f conftest.$ac_objext conftest$ac_exeext
 
8785
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8786
  (eval $ac_link) 2>&5
 
8787
  ac_status=$?
 
8788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8789
  (exit $ac_status); } &&
 
8790
         { ac_try='test -s conftest$ac_exeext'
 
8791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8792
  (eval $ac_try) 2>&5
 
8793
  ac_status=$?
 
8794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8795
  (exit $ac_status); }; }; then
 
8796
  ac_cv_lib_bsd_gethostbyname=yes
 
8797
else
 
8798
  echo "$as_me: failed program was:" >&5
 
8799
sed 's/^/| /' conftest.$ac_ext >&5
 
8800
 
 
8801
ac_cv_lib_bsd_gethostbyname=no
 
8802
fi
 
8803
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8804
LIBS=$ac_check_lib_save_LIBS
 
8805
fi
 
8806
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
8807
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
 
8808
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
8809
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 
8810
fi
 
8811
 
 
8812
      fi
 
8813
    fi
 
8814
 
 
8815
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
 
8816
    # socket/setsockopt and other routines are undefined under SCO ODT
 
8817
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
 
8818
    # on later versions), says Simon Leinen: it contains gethostby*
 
8819
    # variants that don't use the name server (or something).  -lsocket
 
8820
    # must be given before -lnsl if both are needed.  We assume that
 
8821
    # if connect needs -lnsl, so does gethostbyname.
 
8822
    echo "$as_me:$LINENO: checking for connect" >&5
 
8823
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
8824
if test "${ac_cv_func_connect+set}" = set; then
 
8825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8826
else
 
8827
  cat >conftest.$ac_ext <<_ACEOF
 
8828
#line $LINENO "configure"
 
8829
/* confdefs.h.  */
 
8830
_ACEOF
 
8831
cat confdefs.h >>conftest.$ac_ext
 
8832
cat >>conftest.$ac_ext <<_ACEOF
 
8833
/* end confdefs.h.  */
 
8834
/* System header to define __stub macros and hopefully few prototypes,
 
8835
    which can conflict with char connect (); below.
 
8836
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8837
    <limits.h> exists even on freestanding compilers.  */
 
8838
#ifdef __STDC__
 
8839
# include <limits.h>
 
8840
#else
 
8841
# include <assert.h>
 
8842
#endif
 
8843
/* Override any gcc2 internal prototype to avoid an error.  */
 
8844
#ifdef __cplusplus
 
8845
extern "C"
 
8846
{
 
8847
#endif
 
8848
/* We use char because int might match the return type of a gcc2
 
8849
   builtin and then its argument prototype would still apply.  */
 
8850
char connect ();
 
8851
/* The GNU C library defines this for functions which it implements
 
8852
    to always fail with ENOSYS.  Some functions are actually named
 
8853
    something starting with __ and the normal name is an alias.  */
 
8854
#if defined (__stub_connect) || defined (__stub___connect)
 
8855
choke me
 
8856
#else
 
8857
char (*f) () = connect;
 
8858
#endif
 
8859
#ifdef __cplusplus
 
8860
}
 
8861
#endif
 
8862
 
 
8863
int
 
8864
main ()
 
8865
{
 
8866
return f != connect;
 
8867
  ;
 
8868
  return 0;
 
8869
}
 
8870
_ACEOF
 
8871
rm -f conftest.$ac_objext conftest$ac_exeext
 
8872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8873
  (eval $ac_link) 2>&5
 
8874
  ac_status=$?
 
8875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8876
  (exit $ac_status); } &&
 
8877
         { ac_try='test -s conftest$ac_exeext'
 
8878
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8879
  (eval $ac_try) 2>&5
 
8880
  ac_status=$?
 
8881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8882
  (exit $ac_status); }; }; then
 
8883
  ac_cv_func_connect=yes
 
8884
else
 
8885
  echo "$as_me: failed program was:" >&5
 
8886
sed 's/^/| /' conftest.$ac_ext >&5
 
8887
 
 
8888
ac_cv_func_connect=no
 
8889
fi
 
8890
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8891
fi
 
8892
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
8893
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
8894
 
 
8895
    if test $ac_cv_func_connect = no; then
 
8896
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
8897
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
8898
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
8899
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8900
else
 
8901
  ac_check_lib_save_LIBS=$LIBS
 
8902
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
8903
cat >conftest.$ac_ext <<_ACEOF
 
8904
#line $LINENO "configure"
 
8905
/* confdefs.h.  */
 
8906
_ACEOF
 
8907
cat confdefs.h >>conftest.$ac_ext
 
8908
cat >>conftest.$ac_ext <<_ACEOF
 
8909
/* end confdefs.h.  */
 
8910
 
 
8911
/* Override any gcc2 internal prototype to avoid an error.  */
 
8912
#ifdef __cplusplus
 
8913
extern "C"
 
8914
#endif
 
8915
/* We use char because int might match the return type of a gcc2
 
8916
   builtin and then its argument prototype would still apply.  */
 
8917
char connect ();
 
8918
int
 
8919
main ()
 
8920
{
 
8921
connect ();
 
8922
  ;
 
8923
  return 0;
 
8924
}
 
8925
_ACEOF
 
8926
rm -f conftest.$ac_objext conftest$ac_exeext
 
8927
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8928
  (eval $ac_link) 2>&5
 
8929
  ac_status=$?
 
8930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8931
  (exit $ac_status); } &&
 
8932
         { ac_try='test -s conftest$ac_exeext'
 
8933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8934
  (eval $ac_try) 2>&5
 
8935
  ac_status=$?
 
8936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8937
  (exit $ac_status); }; }; then
 
8938
  ac_cv_lib_socket_connect=yes
 
8939
else
 
8940
  echo "$as_me: failed program was:" >&5
 
8941
sed 's/^/| /' conftest.$ac_ext >&5
 
8942
 
 
8943
ac_cv_lib_socket_connect=no
 
8944
fi
 
8945
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8946
LIBS=$ac_check_lib_save_LIBS
 
8947
fi
 
8948
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
8949
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
8950
if test $ac_cv_lib_socket_connect = yes; then
 
8951
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
8952
fi
 
8953
 
 
8954
    fi
 
8955
 
 
8956
    # Guillermo Gomez says -lposix is necessary on A/UX.
 
8957
    echo "$as_me:$LINENO: checking for remove" >&5
 
8958
echo $ECHO_N "checking for remove... $ECHO_C" >&6
 
8959
if test "${ac_cv_func_remove+set}" = set; then
 
8960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8961
else
 
8962
  cat >conftest.$ac_ext <<_ACEOF
 
8963
#line $LINENO "configure"
 
8964
/* confdefs.h.  */
 
8965
_ACEOF
 
8966
cat confdefs.h >>conftest.$ac_ext
 
8967
cat >>conftest.$ac_ext <<_ACEOF
 
8968
/* end confdefs.h.  */
 
8969
/* System header to define __stub macros and hopefully few prototypes,
 
8970
    which can conflict with char remove (); below.
 
8971
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8972
    <limits.h> exists even on freestanding compilers.  */
 
8973
#ifdef __STDC__
 
8974
# include <limits.h>
 
8975
#else
 
8976
# include <assert.h>
 
8977
#endif
 
8978
/* Override any gcc2 internal prototype to avoid an error.  */
 
8979
#ifdef __cplusplus
 
8980
extern "C"
 
8981
{
 
8982
#endif
 
8983
/* We use char because int might match the return type of a gcc2
 
8984
   builtin and then its argument prototype would still apply.  */
 
8985
char remove ();
 
8986
/* The GNU C library defines this for functions which it implements
 
8987
    to always fail with ENOSYS.  Some functions are actually named
 
8988
    something starting with __ and the normal name is an alias.  */
 
8989
#if defined (__stub_remove) || defined (__stub___remove)
 
8990
choke me
 
8991
#else
 
8992
char (*f) () = remove;
 
8993
#endif
 
8994
#ifdef __cplusplus
 
8995
}
 
8996
#endif
 
8997
 
 
8998
int
 
8999
main ()
 
9000
{
 
9001
return f != remove;
 
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_func_remove=yes
 
9019
else
 
9020
  echo "$as_me: failed program was:" >&5
 
9021
sed 's/^/| /' conftest.$ac_ext >&5
 
9022
 
 
9023
ac_cv_func_remove=no
 
9024
fi
 
9025
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9026
fi
 
9027
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
9028
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
9029
 
 
9030
    if test $ac_cv_func_remove = no; then
 
9031
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
9032
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
 
9033
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
9034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9035
else
 
9036
  ac_check_lib_save_LIBS=$LIBS
 
9037
LIBS="-lposix  $LIBS"
 
9038
cat >conftest.$ac_ext <<_ACEOF
 
9039
#line $LINENO "configure"
 
9040
/* confdefs.h.  */
 
9041
_ACEOF
 
9042
cat confdefs.h >>conftest.$ac_ext
 
9043
cat >>conftest.$ac_ext <<_ACEOF
 
9044
/* end confdefs.h.  */
 
9045
 
 
9046
/* Override any gcc2 internal prototype to avoid an error.  */
 
9047
#ifdef __cplusplus
 
9048
extern "C"
 
9049
#endif
 
9050
/* We use char because int might match the return type of a gcc2
 
9051
   builtin and then its argument prototype would still apply.  */
 
9052
char remove ();
 
9053
int
 
9054
main ()
 
9055
{
 
9056
remove ();
 
9057
  ;
 
9058
  return 0;
 
9059
}
 
9060
_ACEOF
 
9061
rm -f conftest.$ac_objext conftest$ac_exeext
 
9062
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9063
  (eval $ac_link) 2>&5
 
9064
  ac_status=$?
 
9065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9066
  (exit $ac_status); } &&
 
9067
         { ac_try='test -s conftest$ac_exeext'
 
9068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9069
  (eval $ac_try) 2>&5
 
9070
  ac_status=$?
 
9071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9072
  (exit $ac_status); }; }; then
 
9073
  ac_cv_lib_posix_remove=yes
 
9074
else
 
9075
  echo "$as_me: failed program was:" >&5
 
9076
sed 's/^/| /' conftest.$ac_ext >&5
 
9077
 
 
9078
ac_cv_lib_posix_remove=no
 
9079
fi
 
9080
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9081
LIBS=$ac_check_lib_save_LIBS
 
9082
fi
 
9083
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
9084
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
 
9085
if test $ac_cv_lib_posix_remove = yes; then
 
9086
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
9087
fi
 
9088
 
 
9089
    fi
 
9090
 
 
9091
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
9092
    echo "$as_me:$LINENO: checking for shmat" >&5
 
9093
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
 
9094
if test "${ac_cv_func_shmat+set}" = set; then
 
9095
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9096
else
 
9097
  cat >conftest.$ac_ext <<_ACEOF
 
9098
#line $LINENO "configure"
 
9099
/* confdefs.h.  */
 
9100
_ACEOF
 
9101
cat confdefs.h >>conftest.$ac_ext
 
9102
cat >>conftest.$ac_ext <<_ACEOF
 
9103
/* end confdefs.h.  */
 
9104
/* System header to define __stub macros and hopefully few prototypes,
 
9105
    which can conflict with char shmat (); below.
 
9106
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9107
    <limits.h> exists even on freestanding compilers.  */
 
9108
#ifdef __STDC__
 
9109
# include <limits.h>
 
9110
#else
 
9111
# include <assert.h>
 
9112
#endif
 
9113
/* Override any gcc2 internal prototype to avoid an error.  */
 
9114
#ifdef __cplusplus
 
9115
extern "C"
 
9116
{
 
9117
#endif
 
9118
/* We use char because int might match the return type of a gcc2
 
9119
   builtin and then its argument prototype would still apply.  */
 
9120
char shmat ();
 
9121
/* The GNU C library defines this for functions which it implements
 
9122
    to always fail with ENOSYS.  Some functions are actually named
 
9123
    something starting with __ and the normal name is an alias.  */
 
9124
#if defined (__stub_shmat) || defined (__stub___shmat)
 
9125
choke me
 
9126
#else
 
9127
char (*f) () = shmat;
 
9128
#endif
 
9129
#ifdef __cplusplus
 
9130
}
 
9131
#endif
 
9132
 
 
9133
int
 
9134
main ()
 
9135
{
 
9136
return f != shmat;
 
9137
  ;
 
9138
  return 0;
 
9139
}
 
9140
_ACEOF
 
9141
rm -f conftest.$ac_objext conftest$ac_exeext
 
9142
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9143
  (eval $ac_link) 2>&5
 
9144
  ac_status=$?
 
9145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9146
  (exit $ac_status); } &&
 
9147
         { ac_try='test -s conftest$ac_exeext'
 
9148
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9149
  (eval $ac_try) 2>&5
 
9150
  ac_status=$?
 
9151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9152
  (exit $ac_status); }; }; then
 
9153
  ac_cv_func_shmat=yes
 
9154
else
 
9155
  echo "$as_me: failed program was:" >&5
 
9156
sed 's/^/| /' conftest.$ac_ext >&5
 
9157
 
 
9158
ac_cv_func_shmat=no
 
9159
fi
 
9160
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9161
fi
 
9162
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
9163
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
9164
 
 
9165
    if test $ac_cv_func_shmat = no; then
 
9166
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
9167
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
 
9168
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
9169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9170
else
 
9171
  ac_check_lib_save_LIBS=$LIBS
 
9172
LIBS="-lipc  $LIBS"
 
9173
cat >conftest.$ac_ext <<_ACEOF
 
9174
#line $LINENO "configure"
 
9175
/* confdefs.h.  */
 
9176
_ACEOF
 
9177
cat confdefs.h >>conftest.$ac_ext
 
9178
cat >>conftest.$ac_ext <<_ACEOF
 
9179
/* end confdefs.h.  */
 
9180
 
 
9181
/* Override any gcc2 internal prototype to avoid an error.  */
 
9182
#ifdef __cplusplus
 
9183
extern "C"
 
9184
#endif
 
9185
/* We use char because int might match the return type of a gcc2
 
9186
   builtin and then its argument prototype would still apply.  */
 
9187
char shmat ();
 
9188
int
 
9189
main ()
 
9190
{
 
9191
shmat ();
 
9192
  ;
 
9193
  return 0;
 
9194
}
 
9195
_ACEOF
 
9196
rm -f conftest.$ac_objext conftest$ac_exeext
 
9197
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9198
  (eval $ac_link) 2>&5
 
9199
  ac_status=$?
 
9200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9201
  (exit $ac_status); } &&
 
9202
         { ac_try='test -s conftest$ac_exeext'
 
9203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9204
  (eval $ac_try) 2>&5
 
9205
  ac_status=$?
 
9206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9207
  (exit $ac_status); }; }; then
 
9208
  ac_cv_lib_ipc_shmat=yes
 
9209
else
 
9210
  echo "$as_me: failed program was:" >&5
 
9211
sed 's/^/| /' conftest.$ac_ext >&5
 
9212
 
 
9213
ac_cv_lib_ipc_shmat=no
 
9214
fi
 
9215
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9216
LIBS=$ac_check_lib_save_LIBS
 
9217
fi
 
9218
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
9219
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
 
9220
if test $ac_cv_lib_ipc_shmat = yes; then
 
9221
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
9222
fi
 
9223
 
 
9224
    fi
 
9225
  fi
 
9226
 
 
9227
  # Check for libraries that X11R6 Xt/Xaw programs need.
 
9228
  ac_save_LDFLAGS=$LDFLAGS
 
9229
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
 
9230
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
9231
  # check for ICE first), but we must link in the order -lSM -lICE or
 
9232
  # we get undefined symbols.  So assume we have SM if we have ICE.
 
9233
  # These have to be linked with before -lX11, unlike the other
 
9234
  # libraries we check for below, so use a different variable.
 
9235
  # John Interrante, Karl Berry
 
9236
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
9237
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
 
9238
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
9239
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9240
else
 
9241
  ac_check_lib_save_LIBS=$LIBS
 
9242
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
9243
cat >conftest.$ac_ext <<_ACEOF
 
9244
#line $LINENO "configure"
 
9245
/* confdefs.h.  */
 
9246
_ACEOF
 
9247
cat confdefs.h >>conftest.$ac_ext
 
9248
cat >>conftest.$ac_ext <<_ACEOF
 
9249
/* end confdefs.h.  */
 
9250
 
 
9251
/* Override any gcc2 internal prototype to avoid an error.  */
 
9252
#ifdef __cplusplus
 
9253
extern "C"
 
9254
#endif
 
9255
/* We use char because int might match the return type of a gcc2
 
9256
   builtin and then its argument prototype would still apply.  */
 
9257
char IceConnectionNumber ();
 
9258
int
 
9259
main ()
 
9260
{
 
9261
IceConnectionNumber ();
 
9262
  ;
 
9263
  return 0;
 
9264
}
 
9265
_ACEOF
 
9266
rm -f conftest.$ac_objext conftest$ac_exeext
 
9267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9268
  (eval $ac_link) 2>&5
 
9269
  ac_status=$?
 
9270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9271
  (exit $ac_status); } &&
 
9272
         { ac_try='test -s conftest$ac_exeext'
 
9273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9274
  (eval $ac_try) 2>&5
 
9275
  ac_status=$?
 
9276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9277
  (exit $ac_status); }; }; then
 
9278
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
9279
else
 
9280
  echo "$as_me: failed program was:" >&5
 
9281
sed 's/^/| /' conftest.$ac_ext >&5
 
9282
 
 
9283
ac_cv_lib_ICE_IceConnectionNumber=no
 
9284
fi
 
9285
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9286
LIBS=$ac_check_lib_save_LIBS
 
9287
fi
 
9288
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
9289
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
 
9290
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
9291
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 
9292
fi
 
9293
 
 
9294
  LDFLAGS=$ac_save_LDFLAGS
 
9295
 
 
9296
fi
 
9297
 
 
9298
 
 
9299
 
 
9300
 
 
9301
 
 
9302
 
 
9303
 
 
9304
# Check whether --with---with-gl-inc or --without---with-gl-inc was given.
 
9305
if test "${with___with_gl_inc+set}" = set; then
 
9306
  withval="$with___with_gl_inc"
 
9307
 
 
9308
fi;
 
9309
 
 
9310
# Check whether --with---with-gl-lib or --without---with-gl-lib was given.
 
9311
if test "${with___with_gl_lib+set}" = set; then
 
9312
  withval="$with___with_gl_lib"
 
9313
 
 
9314
fi;
 
9315
 
 
9316
 
 
9317
 
 
9318
ac_ext=c
 
9319
ac_cpp='$CPP $CPPFLAGS'
 
9320
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9321
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9322
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9323
 
 
9324
 
 
9325
GL_SAVE_CPPFLAGS="$CPPFLAGS"
 
9326
GL_SAVE_LIBS="$LIBS"
 
9327
 
 
9328
if test "x$no_x" != xyes ; then
 
9329
    GL_CFLAGS="$X_CFLAGS"
 
9330
    GL_X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu $X_EXTRA_LIBS"
 
9331
fi
 
9332
 
 
9333
if test "x$with_gl_inc" != "xnone" ; then
 
9334
    if test -d "$with_gl_inc" ; then
 
9335
        GL_CFLAGS="-I$with_gl_inc"
 
9336
    else
 
9337
        GL_CFLAGS="$with_gl_inc"
 
9338
    fi
 
9339
else
 
9340
    GL_CFLAGS=
 
9341
fi
 
9342
 
 
9343
CPPFLAGS="$GL_CFLAGS"
 
9344
if test "${ac_cv_header_GL_gl_h+set}" = set; then
 
9345
  echo "$as_me:$LINENO: checking for GL/gl.h" >&5
 
9346
echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
 
9347
if test "${ac_cv_header_GL_gl_h+set}" = set; then
 
9348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9349
fi
 
9350
echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
 
9351
echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
 
9352
else
 
9353
  # Is the header compilable?
 
9354
echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
 
9355
echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
 
9356
cat >conftest.$ac_ext <<_ACEOF
 
9357
#line $LINENO "configure"
 
9358
/* confdefs.h.  */
 
9359
_ACEOF
 
9360
cat confdefs.h >>conftest.$ac_ext
 
9361
cat >>conftest.$ac_ext <<_ACEOF
 
9362
/* end confdefs.h.  */
 
9363
$ac_includes_default
 
9364
#include <GL/gl.h>
 
9365
_ACEOF
 
9366
rm -f conftest.$ac_objext
 
9367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9368
  (eval $ac_compile) 2>&5
 
9369
  ac_status=$?
 
9370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9371
  (exit $ac_status); } &&
 
9372
         { ac_try='test -s conftest.$ac_objext'
 
9373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9374
  (eval $ac_try) 2>&5
 
9375
  ac_status=$?
 
9376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9377
  (exit $ac_status); }; }; then
 
9378
  ac_header_compiler=yes
 
9379
else
 
9380
  echo "$as_me: failed program was:" >&5
 
9381
sed 's/^/| /' conftest.$ac_ext >&5
 
9382
 
 
9383
ac_header_compiler=no
 
9384
fi
 
9385
rm -f conftest.$ac_objext conftest.$ac_ext
 
9386
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9387
echo "${ECHO_T}$ac_header_compiler" >&6
 
9388
 
 
9389
# Is the header present?
 
9390
echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
 
9391
echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
 
9392
cat >conftest.$ac_ext <<_ACEOF
 
9393
#line $LINENO "configure"
 
9394
/* confdefs.h.  */
 
9395
_ACEOF
 
9396
cat confdefs.h >>conftest.$ac_ext
 
9397
cat >>conftest.$ac_ext <<_ACEOF
 
9398
/* end confdefs.h.  */
 
9399
#include <GL/gl.h>
 
9400
_ACEOF
 
9401
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9402
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9403
  ac_status=$?
 
9404
  grep -v '^ *+' conftest.er1 >conftest.err
 
9405
  rm -f conftest.er1
 
9406
  cat conftest.err >&5
 
9407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9408
  (exit $ac_status); } >/dev/null; then
 
9409
  if test -s conftest.err; then
 
9410
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9411
  else
 
9412
    ac_cpp_err=
 
9413
  fi
 
9414
else
 
9415
  ac_cpp_err=yes
 
9416
fi
 
9417
if test -z "$ac_cpp_err"; then
 
9418
  ac_header_preproc=yes
 
9419
else
 
9420
  echo "$as_me: failed program was:" >&5
 
9421
sed 's/^/| /' conftest.$ac_ext >&5
 
9422
 
 
9423
  ac_header_preproc=no
 
9424
fi
 
9425
rm -f conftest.err conftest.$ac_ext
 
9426
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9427
echo "${ECHO_T}$ac_header_preproc" >&6
 
9428
 
 
9429
# So?  What about this header?
 
9430
case $ac_header_compiler:$ac_header_preproc in
 
9431
  yes:no )
 
9432
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
9433
echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9434
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
 
9435
echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
 
9436
    (
 
9437
      cat <<\_ASBOX
 
9438
## ------------------------------------ ##
 
9439
## Report this to bug-autoconf@gnu.org. ##
 
9440
## ------------------------------------ ##
 
9441
_ASBOX
 
9442
    ) |
 
9443
      sed "s/^/$as_me: WARNING:     /" >&2
 
9444
    ;;
 
9445
  no:yes )
 
9446
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
 
9447
echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
 
9448
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
 
9449
echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
 
9450
    { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
 
9451
echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
 
9452
    (
 
9453
      cat <<\_ASBOX
 
9454
## ------------------------------------ ##
 
9455
## Report this to bug-autoconf@gnu.org. ##
 
9456
## ------------------------------------ ##
 
9457
_ASBOX
 
9458
    ) |
 
9459
      sed "s/^/$as_me: WARNING:     /" >&2
 
9460
    ;;
 
9461
esac
 
9462
echo "$as_me:$LINENO: checking for GL/gl.h" >&5
 
9463
echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
 
9464
if test "${ac_cv_header_GL_gl_h+set}" = set; then
 
9465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9466
else
 
9467
  ac_cv_header_GL_gl_h=$ac_header_preproc
 
9468
fi
 
9469
echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
 
9470
echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
 
9471
 
 
9472
fi
 
9473
if test $ac_cv_header_GL_gl_h = yes; then
 
9474
  :
 
9475
else
 
9476
  { { echo "$as_me:$LINENO: error: GL/gl.h is needed" >&5
 
9477
echo "$as_me: error: GL/gl.h is needed" >&2;}
 
9478
   { (exit please specify its location with --with-gl-inc.  If this still fails); exit please specify its location with --with-gl-inc.  If this still fails; }; }
 
9479
fi
 
9480
 
 
9481
 
 
9482
 
 
9483
  HAVE_GL=yes
 
9484
 
 
9485
 
 
9486
CPPFLAGS="$GL_SAVE_CPPFLAGS"
 
9487
LIBS="$GL_SAVE_LIBS"
 
9488
ac_ext=c
 
9489
ac_cpp='$CPP $CPPFLAGS'
 
9490
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9491
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9492
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9493
 
 
9494
GL_X_LIBS=""
 
9495
 
 
9496
 
 
9497
 
 
9498
# Check whether --with---with-glut-inc or --without---with-glut-inc was given.
 
9499
if test "${with___with_glut_inc+set}" = set; then
 
9500
  withval="$with___with_glut_inc"
 
9501
 
 
9502
fi;
 
9503
 
 
9504
# Check whether --with---with-glut-lib or --without---with-glut-lib was given.
 
9505
if test "${with___with_glut_lib+set}" = set; then
 
9506
  withval="$with___with_glut_lib"
 
9507
 
 
9508
fi;
 
9509
 
 
9510
 
 
9511
 
 
9512
ac_ext=c
 
9513
ac_cpp='$CPP $CPPFLAGS'
 
9514
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9515
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9516
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9517
 
 
9518
 
 
9519
GLUT_SAVE_CPPFLAGS="$CPPFLAGS"
 
9520
GLUT_SAVE_LIBS="$LIBS"
 
9521
 
 
9522
if test "x$no_x" != xyes ; then
 
9523
    GLUT_CFLAGS="$X_CFLAGS"
 
9524
    GLUT_X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu $X_EXTRA_LIBS"
 
9525
fi
 
9526
 
 
9527
if test "x$with_glut_inc" != "xnone" ; then
 
9528
    if test -d "$with_glut_inc" ; then
 
9529
        GLUT_CFLAGS="-I$with_glut_inc"
 
9530
    else
 
9531
        GLUT_CFLAGS="$with_glut_inc"
 
9532
    fi
 
9533
else
 
9534
    GLUT_CFLAGS=
 
9535
fi
 
9536
 
 
9537
CPPFLAGS="$GLUT_CFLAGS"
 
9538
if test "${ac_cv_header_GL_glut_h+set}" = set; then
 
9539
  echo "$as_me:$LINENO: checking for GL/glut.h" >&5
 
9540
echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6
 
9541
if test "${ac_cv_header_GL_glut_h+set}" = set; then
 
9542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9543
fi
 
9544
echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
 
9545
echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6
 
9546
else
 
9547
  # Is the header compilable?
 
9548
echo "$as_me:$LINENO: checking GL/glut.h usability" >&5
 
9549
echo $ECHO_N "checking GL/glut.h usability... $ECHO_C" >&6
 
9550
cat >conftest.$ac_ext <<_ACEOF
 
9551
#line $LINENO "configure"
 
9552
/* confdefs.h.  */
 
9553
_ACEOF
 
9554
cat confdefs.h >>conftest.$ac_ext
 
9555
cat >>conftest.$ac_ext <<_ACEOF
 
9556
/* end confdefs.h.  */
 
9557
$ac_includes_default
 
9558
#include <GL/glut.h>
 
9559
_ACEOF
 
9560
rm -f conftest.$ac_objext
 
9561
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9562
  (eval $ac_compile) 2>&5
 
9563
  ac_status=$?
 
9564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9565
  (exit $ac_status); } &&
 
9566
         { ac_try='test -s conftest.$ac_objext'
 
9567
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9568
  (eval $ac_try) 2>&5
 
9569
  ac_status=$?
 
9570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9571
  (exit $ac_status); }; }; then
 
9572
  ac_header_compiler=yes
 
9573
else
 
9574
  echo "$as_me: failed program was:" >&5
 
9575
sed 's/^/| /' conftest.$ac_ext >&5
 
9576
 
 
9577
ac_header_compiler=no
 
9578
fi
 
9579
rm -f conftest.$ac_objext conftest.$ac_ext
 
9580
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9581
echo "${ECHO_T}$ac_header_compiler" >&6
 
9582
 
 
9583
# Is the header present?
 
9584
echo "$as_me:$LINENO: checking GL/glut.h presence" >&5
 
9585
echo $ECHO_N "checking GL/glut.h presence... $ECHO_C" >&6
 
9586
cat >conftest.$ac_ext <<_ACEOF
 
9587
#line $LINENO "configure"
 
9588
/* confdefs.h.  */
 
9589
_ACEOF
 
9590
cat confdefs.h >>conftest.$ac_ext
 
9591
cat >>conftest.$ac_ext <<_ACEOF
 
9592
/* end confdefs.h.  */
 
9593
#include <GL/glut.h>
 
9594
_ACEOF
 
9595
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9596
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9597
  ac_status=$?
 
9598
  grep -v '^ *+' conftest.er1 >conftest.err
 
9599
  rm -f conftest.er1
 
9600
  cat conftest.err >&5
 
9601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9602
  (exit $ac_status); } >/dev/null; then
 
9603
  if test -s conftest.err; then
 
9604
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9605
  else
 
9606
    ac_cpp_err=
 
9607
  fi
 
9608
else
 
9609
  ac_cpp_err=yes
 
9610
fi
 
9611
if test -z "$ac_cpp_err"; then
 
9612
  ac_header_preproc=yes
 
9613
else
 
9614
  echo "$as_me: failed program was:" >&5
 
9615
sed 's/^/| /' conftest.$ac_ext >&5
 
9616
 
 
9617
  ac_header_preproc=no
 
9618
fi
 
9619
rm -f conftest.err conftest.$ac_ext
 
9620
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9621
echo "${ECHO_T}$ac_header_preproc" >&6
 
9622
 
 
9623
# So?  What about this header?
 
9624
case $ac_header_compiler:$ac_header_preproc in
 
9625
  yes:no )
 
9626
    { echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
9627
echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9628
    { echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
 
9629
echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
 
9630
    (
 
9631
      cat <<\_ASBOX
 
9632
## ------------------------------------ ##
 
9633
## Report this to bug-autoconf@gnu.org. ##
 
9634
## ------------------------------------ ##
 
9635
_ASBOX
 
9636
    ) |
 
9637
      sed "s/^/$as_me: WARNING:     /" >&2
 
9638
    ;;
 
9639
  no:yes )
 
9640
    { echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5
 
9641
echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;}
 
9642
    { echo "$as_me:$LINENO: WARNING: GL/glut.h: check for missing prerequisite headers?" >&5
 
9643
echo "$as_me: WARNING: GL/glut.h: check for missing prerequisite headers?" >&2;}
 
9644
    { echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
 
9645
echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
 
9646
    (
 
9647
      cat <<\_ASBOX
 
9648
## ------------------------------------ ##
 
9649
## Report this to bug-autoconf@gnu.org. ##
 
9650
## ------------------------------------ ##
 
9651
_ASBOX
 
9652
    ) |
 
9653
      sed "s/^/$as_me: WARNING:     /" >&2
 
9654
    ;;
 
9655
esac
 
9656
echo "$as_me:$LINENO: checking for GL/glut.h" >&5
 
9657
echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6
 
9658
if test "${ac_cv_header_GL_glut_h+set}" = set; then
 
9659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9660
else
 
9661
  ac_cv_header_GL_glut_h=$ac_header_preproc
 
9662
fi
 
9663
echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
 
9664
echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6
 
9665
 
 
9666
fi
 
9667
if test $ac_cv_header_GL_glut_h = yes; then
 
9668
  HAVE_GLUT=yes
 
9669
else
 
9670
  HAVE_GLUT=no
 
9671
fi
 
9672
 
 
9673
 
 
9674
 
 
9675
if test "x$HAVE_GLUT" = xno ; then
 
9676
    { echo "$as_me:$LINENO: WARNING: GLUT headers not availabe, example program won't be compiled." >&5
 
9677
echo "$as_me: WARNING: GLUT headers not availabe, example program won't be compiled." >&2;}
 
9678
else
 
9679
 
 
9680
# Check for GLUT libraries
 
9681
 
 
9682
    echo "$as_me:$LINENO: checking for GLUT library" >&5
 
9683
echo $ECHO_N "checking for GLUT library... $ECHO_C" >&6
 
9684
    if test "x$with_glut_lib" != "x" ; then
 
9685
        if test -d "$with_glut_lib" ; then
 
9686
            LIBS="-L$with_glut_lib -lglut"
 
9687
        else
 
9688
            LIBS="$with_glut_lib"
 
9689
        fi
 
9690
    else
 
9691
        LIBS="-lglut"
 
9692
    fi
 
9693
    cat >conftest.$ac_ext <<_ACEOF
 
9694
#line $LINENO "configure"
 
9695
/* confdefs.h.  */
 
9696
_ACEOF
 
9697
cat confdefs.h >>conftest.$ac_ext
 
9698
cat >>conftest.$ac_ext <<_ACEOF
 
9699
/* end confdefs.h.  */
 
9700
 
 
9701
/* Override any gcc2 internal prototype to avoid an error.  */
 
9702
#ifdef __cplusplus
 
9703
extern "C"
 
9704
#endif
 
9705
/* We use char because int might match the return type of a gcc2
 
9706
   builtin and then its argument prototype would still apply.  */
 
9707
char glutInit ();
 
9708
int
 
9709
main ()
 
9710
{
 
9711
glutInit ();
 
9712
  ;
 
9713
  return 0;
 
9714
}
 
9715
_ACEOF
 
9716
rm -f conftest.$ac_objext conftest$ac_exeext
 
9717
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9718
  (eval $ac_link) 2>&5
 
9719
  ac_status=$?
 
9720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9721
  (exit $ac_status); } &&
 
9722
         { ac_try='test -s conftest$ac_exeext'
 
9723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9724
  (eval $ac_try) 2>&5
 
9725
  ac_status=$?
 
9726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9727
  (exit $ac_status); }; }; then
 
9728
  HAVE_GLUT=yes
 
9729
else
 
9730
  echo "$as_me: failed program was:" >&5
 
9731
sed 's/^/| /' conftest.$ac_ext >&5
 
9732
 
 
9733
HAVE_GLUT=no
 
9734
fi
 
9735
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9736
 
 
9737
    if test "x$HAVE_GLUT" = xno ; then
 
9738
        # Try again with the GL libs
 
9739
        LIBS="-lglut $GL_LIBS"
 
9740
        cat >conftest.$ac_ext <<_ACEOF
 
9741
#line $LINENO "configure"
 
9742
/* confdefs.h.  */
 
9743
_ACEOF
 
9744
cat confdefs.h >>conftest.$ac_ext
 
9745
cat >>conftest.$ac_ext <<_ACEOF
 
9746
/* end confdefs.h.  */
 
9747
 
 
9748
/* Override any gcc2 internal prototype to avoid an error.  */
 
9749
#ifdef __cplusplus
 
9750
extern "C"
 
9751
#endif
 
9752
/* We use char because int might match the return type of a gcc2
 
9753
   builtin and then its argument prototype would still apply.  */
 
9754
char glutInit ();
 
9755
int
 
9756
main ()
 
9757
{
 
9758
glutInit ();
 
9759
  ;
 
9760
  return 0;
 
9761
}
 
9762
_ACEOF
 
9763
rm -f conftest.$ac_objext conftest$ac_exeext
 
9764
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9765
  (eval $ac_link) 2>&5
 
9766
  ac_status=$?
 
9767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9768
  (exit $ac_status); } &&
 
9769
         { ac_try='test -s conftest$ac_exeext'
 
9770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9771
  (eval $ac_try) 2>&5
 
9772
  ac_status=$?
 
9773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9774
  (exit $ac_status); }; }; then
 
9775
  HAVE_GLUT=yes
 
9776
else
 
9777
  echo "$as_me: failed program was:" >&5
 
9778
sed 's/^/| /' conftest.$ac_ext >&5
 
9779
 
 
9780
HAVE_GLUT=no
 
9781
fi
 
9782
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9783
    fi
 
9784
 
 
9785
    if test "x$HAVE_GLUT" = xno && test "x$GLUT_X_LIBS" != x ; then
 
9786
        # Try again with the GL and X11 libs
 
9787
        LIBS="-lglut $GL_LIBS $GLUT_X_LIBS"
 
9788
        cat >conftest.$ac_ext <<_ACEOF
 
9789
#line $LINENO "configure"
 
9790
/* confdefs.h.  */
 
9791
_ACEOF
 
9792
cat confdefs.h >>conftest.$ac_ext
 
9793
cat >>conftest.$ac_ext <<_ACEOF
 
9794
/* end confdefs.h.  */
 
9795
 
 
9796
/* Override any gcc2 internal prototype to avoid an error.  */
 
9797
#ifdef __cplusplus
 
9798
extern "C"
 
9799
#endif
 
9800
/* We use char because int might match the return type of a gcc2
 
9801
   builtin and then its argument prototype would still apply.  */
 
9802
char glutInit ();
 
9803
int
 
9804
main ()
 
9805
{
 
9806
glutInit ();
 
9807
  ;
 
9808
  return 0;
 
9809
}
 
9810
_ACEOF
 
9811
rm -f conftest.$ac_objext conftest$ac_exeext
 
9812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9813
  (eval $ac_link) 2>&5
 
9814
  ac_status=$?
 
9815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9816
  (exit $ac_status); } &&
 
9817
         { ac_try='test -s conftest$ac_exeext'
 
9818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9819
  (eval $ac_try) 2>&5
 
9820
  ac_status=$?
 
9821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9822
  (exit $ac_status); }; }; then
 
9823
  HAVE_GLUT=yes
 
9824
else
 
9825
  echo "$as_me: failed program was:" >&5
 
9826
sed 's/^/| /' conftest.$ac_ext >&5
 
9827
 
 
9828
HAVE_GLUT=no
 
9829
fi
 
9830
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9831
    fi
 
9832
 
 
9833
    if test "x$HAVE_GLUT" = xyes ; then
 
9834
        echo "$as_me:$LINENO: result: yes" >&5
 
9835
echo "${ECHO_T}yes" >&6
 
9836
        GLUT_LIBS=$LIBS
 
9837
    else
 
9838
        echo "$as_me:$LINENO: result: no" >&5
 
9839
echo "${ECHO_T}no" >&6
 
9840
        { echo "$as_me:$LINENO: WARNING: GLUT libraries not availabe, example program won't be compiled." >&5
 
9841
echo "$as_me: WARNING: GLUT libraries not availabe, example program won't be compiled." >&2;}
 
9842
    fi
 
9843
 
 
9844
# End check for GLUT libraries
 
9845
 
 
9846
fi
 
9847
 
 
9848
 
 
9849
 
 
9850
 
 
9851
ac_ext=c
 
9852
ac_cpp='$CPP $CPPFLAGS'
 
9853
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9854
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9855
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9856
 
 
9857
 
 
9858
CPPFLAGS="$GLUT_SAVE_CPPFLAGS"
 
9859
LIBS="$GLUT_SAVE_LIBS"
 
9860
GLUT_X_CFLAGS=
 
9861
GLUT_X_LIBS=
 
9862
 
 
9863
 
 
9864
# Checks for library functions
 
9865
 
 
9866
 
 
9867
for ac_func in memset
 
9868
do
 
9869
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9870
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9871
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
9872
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
9873
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9874
else
 
9875
  cat >conftest.$ac_ext <<_ACEOF
 
9876
#line $LINENO "configure"
 
9877
/* confdefs.h.  */
 
9878
_ACEOF
 
9879
cat confdefs.h >>conftest.$ac_ext
 
9880
cat >>conftest.$ac_ext <<_ACEOF
 
9881
/* end confdefs.h.  */
 
9882
/* System header to define __stub macros and hopefully few prototypes,
 
9883
    which can conflict with char $ac_func (); below.
 
9884
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9885
    <limits.h> exists even on freestanding compilers.  */
 
9886
#ifdef __STDC__
 
9887
# include <limits.h>
 
9888
#else
 
9889
# include <assert.h>
 
9890
#endif
 
9891
/* Override any gcc2 internal prototype to avoid an error.  */
 
9892
#ifdef __cplusplus
 
9893
extern "C"
 
9894
{
 
9895
#endif
 
9896
/* We use char because int might match the return type of a gcc2
 
9897
   builtin and then its argument prototype would still apply.  */
 
9898
char $ac_func ();
 
9899
/* The GNU C library defines this for functions which it implements
 
9900
    to always fail with ENOSYS.  Some functions are actually named
 
9901
    something starting with __ and the normal name is an alias.  */
 
9902
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
9903
choke me
 
9904
#else
 
9905
char (*f) () = $ac_func;
 
9906
#endif
 
9907
#ifdef __cplusplus
 
9908
}
 
9909
#endif
 
9910
 
 
9911
int
 
9912
main ()
 
9913
{
 
9914
return f != $ac_func;
 
9915
  ;
 
9916
  return 0;
 
9917
}
 
9918
_ACEOF
 
9919
rm -f conftest.$ac_objext conftest$ac_exeext
 
9920
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9921
  (eval $ac_link) 2>&5
 
9922
  ac_status=$?
 
9923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9924
  (exit $ac_status); } &&
 
9925
         { ac_try='test -s conftest$ac_exeext'
 
9926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9927
  (eval $ac_try) 2>&5
 
9928
  ac_status=$?
 
9929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9930
  (exit $ac_status); }; }; then
 
9931
  eval "$as_ac_var=yes"
 
9932
else
 
9933
  echo "$as_me: failed program was:" >&5
 
9934
sed 's/^/| /' conftest.$ac_ext >&5
 
9935
 
 
9936
eval "$as_ac_var=no"
 
9937
fi
 
9938
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9939
fi
 
9940
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
9941
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
9942
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
9943
  cat >>confdefs.h <<_ACEOF
 
9944
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9945
_ACEOF
 
9946
 
 
9947
fi
 
9948
done
 
9949
 
 
9950
 
 
9951
# Utility programs
 
9952
 
 
9953
# Find a good install program.  We prefer a C program (faster),
 
9954
# so one script is as good as another.  But avoid the broken or
 
9955
# incompatible versions:
 
9956
# SysV /etc/install, /usr/sbin/install
 
9957
# SunOS /usr/etc/install
 
9958
# IRIX /sbin/install
 
9959
# AIX /bin/install
 
9960
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
9961
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
9962
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
9963
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
9964
# ./install, which can be erroneously created by make from ./install.sh.
 
9965
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
9966
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
9967
if test -z "$INSTALL"; then
 
9968
if test "${ac_cv_path_install+set}" = set; then
 
9969
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9970
else
 
9971
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9972
for as_dir in $PATH
 
9973
do
 
9974
  IFS=$as_save_IFS
 
9975
  test -z "$as_dir" && as_dir=.
 
9976
  # Account for people who put trailing slashes in PATH elements.
 
9977
case $as_dir/ in
 
9978
  ./ | .// | /cC/* | \
 
9979
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
9980
  /usr/ucb/* ) ;;
 
9981
  *)
 
9982
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
9983
    # Don't use installbsd from OSF since it installs stuff as root
 
9984
    # by default.
 
9985
    for ac_prog in ginstall scoinst install; do
 
9986
      for ac_exec_ext in '' $ac_executable_extensions; do
 
9987
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
9988
          if test $ac_prog = install &&
 
9989
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
9990
            # AIX install.  It has an incompatible calling convention.
 
9991
            :
 
9992
          elif test $ac_prog = install &&
 
9993
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
9994
            # program-specific install script used by HP pwplus--don't use.
 
9995
            :
 
9996
          else
 
9997
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
9998
            break 3
 
9999
          fi
 
10000
        fi
 
10001
      done
 
10002
    done
 
10003
    ;;
 
10004
esac
 
10005
done
 
10006
 
 
10007
 
 
10008
fi
 
10009
  if test "${ac_cv_path_install+set}" = set; then
 
10010
    INSTALL=$ac_cv_path_install
 
10011
  else
 
10012
    # As a last resort, use the slow shell script.  We don't cache a
 
10013
    # path for INSTALL within a source directory, because that will
 
10014
    # break other packages using the cache if that directory is
 
10015
    # removed, or if the path is relative.
 
10016
    INSTALL=$ac_install_sh
 
10017
  fi
 
10018
fi
 
10019
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
10020
echo "${ECHO_T}$INSTALL" >&6
 
10021
 
 
10022
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
10023
# It thinks the first close brace ends the variable substitution.
 
10024
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
10025
 
 
10026
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
10027
 
 
10028
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
10029
 
 
10030
 
 
10031
# Extract the first word of "doxygen", so it can be a program name with args.
 
10032
set dummy doxygen; ac_word=$2
 
10033
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10034
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
10035
if test "${ac_cv_prog_DOXYGEN+set}" = set; then
 
10036
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10037
else
 
10038
  if test -n "$DOXYGEN"; then
 
10039
  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
 
10040
else
 
10041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10042
for as_dir in $PATH
 
10043
do
 
10044
  IFS=$as_save_IFS
 
10045
  test -z "$as_dir" && as_dir=.
 
10046
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10047
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
10048
    ac_cv_prog_DOXYGEN="doxygen"
 
10049
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10050
    break 2
 
10051
  fi
 
10052
done
 
10053
done
 
10054
 
 
10055
fi
 
10056
fi
 
10057
DOXYGEN=$ac_cv_prog_DOXYGEN
 
10058
if test -n "$DOXYGEN"; then
 
10059
  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
 
10060
echo "${ECHO_T}$DOXYGEN" >&6
 
10061
else
 
10062
  echo "$as_me:$LINENO: result: no" >&5
 
10063
echo "${ECHO_T}no" >&6
 
10064
fi
 
10065
 
 
10066
if test -z "$DOXYGEN" ; then
 
10067
    DOXYGEN=:
 
10068
fi
 
10069
 
 
10070
                    ac_config_files="$ac_config_files Make.conf ftgl.pc"
 
10071
 
 
10072
cat >confcache <<\_ACEOF
 
10073
# This file is a shell script that caches the results of configure
 
10074
# tests run on this system so they can be shared between configure
 
10075
# scripts and configure runs, see configure's option --config-cache.
 
10076
# It is not useful on other systems.  If it contains results you don't
 
10077
# want to keep, you may remove or edit it.
 
10078
#
 
10079
# config.status only pays attention to the cache file if you give it
 
10080
# the --recheck option to rerun configure.
 
10081
#
 
10082
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
10083
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
10084
# following values.
 
10085
 
 
10086
_ACEOF
 
10087
 
 
10088
# The following way of writing the cache mishandles newlines in values,
 
10089
# but we know of no workaround that is simple, portable, and efficient.
 
10090
# So, don't put newlines in cache variables' values.
 
10091
# Ultrix sh set writes to stderr and can't be redirected directly,
 
10092
# and sets the high bit in the cache file unless we assign to the vars.
 
10093
{
 
10094
  (set) 2>&1 |
 
10095
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
10096
    *ac_space=\ *)
 
10097
      # `set' does not quote correctly, so add quotes (double-quote
 
10098
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
10099
      sed -n \
 
10100
        "s/'/'\\\\''/g;
 
10101
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
10102
      ;;
 
10103
    *)
 
10104
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
10105
      sed -n \
 
10106
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
10107
      ;;
 
10108
    esac;
 
10109
} |
 
10110
  sed '
 
10111
     t clear
 
10112
     : clear
 
10113
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
10114
     t end
 
10115
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
10116
     : end' >>confcache
 
10117
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
10118
  if test -w $cache_file; then
 
10119
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
10120
    cat confcache >$cache_file
 
10121
  else
 
10122
    echo "not updating unwritable cache $cache_file"
 
10123
  fi
 
10124
fi
 
10125
rm -f confcache
 
10126
 
 
10127
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
10128
# Let make expand exec_prefix.
 
10129
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
10130
 
 
10131
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
10132
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
10133
# trailing colons and then remove the whole line if VPATH becomes empty
 
10134
# (actually we leave an empty line to preserve line numbers).
 
10135
if test "x$srcdir" = x.; then
 
10136
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
10137
s/:*\$(srcdir):*/:/;
 
10138
s/:*\${srcdir}:*/:/;
 
10139
s/:*@srcdir@:*/:/;
 
10140
s/^\([^=]*=[    ]*\):*/\1/;
 
10141
s/:*$//;
 
10142
s/^[^=]*=[      ]*$//;
 
10143
}'
 
10144
fi
 
10145
 
 
10146
# Transform confdefs.h into DEFS.
 
10147
# Protect against shell expansion while executing Makefile rules.
 
10148
# Protect against Makefile macro expansion.
 
10149
#
 
10150
# If the first sed substitution is executed (which looks for macros that
 
10151
# take arguments), then we branch to the quote section.  Otherwise,
 
10152
# look for a macro that doesn't take arguments.
 
10153
cat >confdef2opt.sed <<\_ACEOF
 
10154
t clear
 
10155
: clear
 
10156
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
10157
t quote
 
10158
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
10159
t quote
 
10160
d
 
10161
: quote
 
10162
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
 
10163
s,\[,\\&,g
 
10164
s,\],\\&,g
 
10165
s,\$,$$,g
 
10166
p
 
10167
_ACEOF
 
10168
# We use echo to avoid assuming a particular line-breaking character.
 
10169
# The extra dot is to prevent the shell from consuming trailing
 
10170
# line-breaks from the sub-command output.  A line-break within
 
10171
# single-quotes doesn't work because, if this script is created in a
 
10172
# platform that uses two characters for line-breaks (e.g., DOS), tr
 
10173
# would break.
 
10174
ac_LF_and_DOT=`echo; echo .`
 
10175
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 
10176
rm -f confdef2opt.sed
 
10177
 
 
10178
 
 
10179
ac_libobjs=
 
10180
ac_ltlibobjs=
 
10181
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
10182
  # 1. Remove the extension, and $U if already installed.
 
10183
  ac_i=`echo "$ac_i" |
 
10184
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
10185
  # 2. Add them.
 
10186
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
10187
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
10188
done
 
10189
LIBOBJS=$ac_libobjs
 
10190
 
 
10191
LTLIBOBJS=$ac_ltlibobjs
 
10192
 
 
10193
 
 
10194
 
 
10195
: ${CONFIG_STATUS=./config.status}
 
10196
ac_clean_files_save=$ac_clean_files
 
10197
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
10198
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
10199
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
10200
cat >$CONFIG_STATUS <<_ACEOF
 
10201
#! $SHELL
 
10202
# Generated by $as_me.
 
10203
# Run this file to recreate the current configuration.
 
10204
# Compiler output produced by configure, useful for debugging
 
10205
# configure, is in config.log if it exists.
 
10206
 
 
10207
debug=false
 
10208
ac_cs_recheck=false
 
10209
ac_cs_silent=false
 
10210
SHELL=\${CONFIG_SHELL-$SHELL}
 
10211
_ACEOF
 
10212
 
 
10213
cat >>$CONFIG_STATUS <<\_ACEOF
 
10214
## --------------------- ##
 
10215
## M4sh Initialization.  ##
 
10216
## --------------------- ##
 
10217
 
 
10218
# Be Bourne compatible
 
10219
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
10220
  emulate sh
 
10221
  NULLCMD=:
 
10222
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
10223
  # is contrary to our usage.  Disable this feature.
 
10224
  alias -g '${1+"$@"}'='"$@"'
 
10225
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
10226
  set -o posix
 
10227
fi
 
10228
 
 
10229
# Support unset when possible.
 
10230
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
10231
  as_unset=unset
 
10232
else
 
10233
  as_unset=false
 
10234
fi
 
10235
 
 
10236
 
 
10237
# Work around bugs in pre-3.0 UWIN ksh.
 
10238
$as_unset ENV MAIL MAILPATH
 
10239
PS1='$ '
 
10240
PS2='> '
 
10241
PS4='+ '
 
10242
 
 
10243
# NLS nuisances.
 
10244
for as_var in \
 
10245
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
10246
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
10247
  LC_TELEPHONE LC_TIME
 
10248
do
 
10249
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
10250
    eval $as_var=C; export $as_var
 
10251
  else
 
10252
    $as_unset $as_var
 
10253
  fi
 
10254
done
 
10255
 
 
10256
# Required to use basename.
 
10257
if expr a : '\(a\)' >/dev/null 2>&1; then
 
10258
  as_expr=expr
 
10259
else
 
10260
  as_expr=false
 
10261
fi
 
10262
 
 
10263
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
10264
  as_basename=basename
 
10265
else
 
10266
  as_basename=false
 
10267
fi
 
10268
 
 
10269
 
 
10270
# Name of the executable.
 
10271
as_me=`$as_basename "$0" ||
 
10272
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
10273
         X"$0" : 'X\(//\)$' \| \
 
10274
         X"$0" : 'X\(/\)$' \| \
 
10275
         .     : '\(.\)' 2>/dev/null ||
 
10276
echo X/"$0" |
 
10277
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
10278
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
10279
          /^X\/\(\/\).*/{ s//\1/; q; }
 
10280
          s/.*/./; q'`
 
10281
 
 
10282
 
 
10283
# PATH needs CR, and LINENO needs CR and PATH.
 
10284
# Avoid depending upon Character Ranges.
 
10285
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
10286
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
10287
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
10288
as_cr_digits='0123456789'
 
10289
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
10290
 
 
10291
# The user is always right.
 
10292
if test "${PATH_SEPARATOR+set}" != set; then
 
10293
  echo "#! /bin/sh" >conf$$.sh
 
10294
  echo  "exit 0"   >>conf$$.sh
 
10295
  chmod +x conf$$.sh
 
10296
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
10297
    PATH_SEPARATOR=';'
 
10298
  else
 
10299
    PATH_SEPARATOR=:
 
10300
  fi
 
10301
  rm -f conf$$.sh
 
10302
fi
 
10303
 
 
10304
 
 
10305
  as_lineno_1=$LINENO
 
10306
  as_lineno_2=$LINENO
 
10307
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
10308
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
10309
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
10310
  # Find who we are.  Look in the path if we contain no path at all
 
10311
  # relative or not.
 
10312
  case $0 in
 
10313
    *[\\/]* ) as_myself=$0 ;;
 
10314
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10315
for as_dir in $PATH
 
10316
do
 
10317
  IFS=$as_save_IFS
 
10318
  test -z "$as_dir" && as_dir=.
 
10319
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
10320
done
 
10321
 
 
10322
       ;;
 
10323
  esac
 
10324
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
10325
  # in which case we are not to be found in the path.
 
10326
  if test "x$as_myself" = x; then
 
10327
    as_myself=$0
 
10328
  fi
 
10329
  if test ! -f "$as_myself"; then
 
10330
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
10331
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
10332
   { (exit 1); exit 1; }; }
 
10333
  fi
 
10334
  case $CONFIG_SHELL in
 
10335
  '')
 
10336
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10337
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
10338
do
 
10339
  IFS=$as_save_IFS
 
10340
  test -z "$as_dir" && as_dir=.
 
10341
  for as_base in sh bash ksh sh5; do
 
10342
         case $as_dir in
 
10343
         /*)
 
10344
           if ("$as_dir/$as_base" -c '
 
10345
  as_lineno_1=$LINENO
 
10346
  as_lineno_2=$LINENO
 
10347
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
10348
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
10349
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
10350
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
10351
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
10352
             CONFIG_SHELL=$as_dir/$as_base
 
10353
             export CONFIG_SHELL
 
10354
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
10355
           fi;;
 
10356
         esac
 
10357
       done
 
10358
done
 
10359
;;
 
10360
  esac
 
10361
 
 
10362
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
10363
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
10364
  # line-number line before each line; the second 'sed' does the real
 
10365
  # work.  The second script uses 'N' to pair each line-number line
 
10366
  # with the numbered line, and appends trailing '-' during
 
10367
  # substitution so that $LINENO is not a special case at line end.
 
10368
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
10369
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
10370
  sed '=' <$as_myself |
 
10371
    sed '
 
10372
      N
 
10373
      s,$,-,
 
10374
      : loop
 
10375
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
10376
      t loop
 
10377
      s,-$,,
 
10378
      s,^['$as_cr_digits']*\n,,
 
10379
    ' >$as_me.lineno &&
 
10380
  chmod +x $as_me.lineno ||
 
10381
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
10382
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
10383
   { (exit 1); exit 1; }; }
 
10384
 
 
10385
  # Don't try to exec as it changes $[0], causing all sort of problems
 
10386
  # (the dirname of $[0] is not the place where we might find the
 
10387
  # original and so on.  Autoconf is especially sensible to this).
 
10388
  . ./$as_me.lineno
 
10389
  # Exit status is that of the last command.
 
10390
  exit
 
10391
}
 
10392
 
 
10393
 
 
10394
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
10395
  *c*,-n*) ECHO_N= ECHO_C='
 
10396
' ECHO_T='      ' ;;
 
10397
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
10398
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
10399
esac
 
10400
 
 
10401
if expr a : '\(a\)' >/dev/null 2>&1; then
 
10402
  as_expr=expr
 
10403
else
 
10404
  as_expr=false
 
10405
fi
 
10406
 
 
10407
rm -f conf$$ conf$$.exe conf$$.file
 
10408
echo >conf$$.file
 
10409
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
10410
  # We could just check for DJGPP; but this test a) works b) is more generic
 
10411
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
10412
  if test -f conf$$.exe; then
 
10413
    # Don't use ln at all; we don't have any links
 
10414
    as_ln_s='cp -p'
 
10415
  else
 
10416
    as_ln_s='ln -s'
 
10417
  fi
 
10418
elif ln conf$$.file conf$$ 2>/dev/null; then
 
10419
  as_ln_s=ln
 
10420
else
 
10421
  as_ln_s='cp -p'
 
10422
fi
 
10423
rm -f conf$$ conf$$.exe conf$$.file
 
10424
 
 
10425
if mkdir -p . 2>/dev/null; then
 
10426
  as_mkdir_p=:
 
10427
else
 
10428
  as_mkdir_p=false
 
10429
fi
 
10430
 
 
10431
as_executable_p="test -f"
 
10432
 
 
10433
# Sed expression to map a string onto a valid CPP name.
 
10434
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
10435
 
 
10436
# Sed expression to map a string onto a valid variable name.
 
10437
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
10438
 
 
10439
 
 
10440
# IFS
 
10441
# We need space, tab and new line, in precisely that order.
 
10442
as_nl='
 
10443
'
 
10444
IFS="   $as_nl"
 
10445
 
 
10446
# CDPATH.
 
10447
$as_unset CDPATH
 
10448
 
 
10449
exec 6>&1
 
10450
 
 
10451
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
10452
# report actual input values of CONFIG_FILES etc. instead of their
 
10453
# values after options handling.  Logging --version etc. is OK.
 
10454
exec 5>>config.log
 
10455
{
 
10456
  echo
 
10457
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
10458
## Running $as_me. ##
 
10459
_ASBOX
 
10460
} >&5
 
10461
cat >&5 <<_CSEOF
 
10462
 
 
10463
This file was extended by ftgl $as_me 2.0.5, which was
 
10464
generated by GNU Autoconf 2.57.  Invocation command line was
 
10465
 
 
10466
  CONFIG_FILES    = $CONFIG_FILES
 
10467
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
10468
  CONFIG_LINKS    = $CONFIG_LINKS
 
10469
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
10470
  $ $0 $@
 
10471
 
 
10472
_CSEOF
 
10473
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
10474
echo >&5
 
10475
_ACEOF
 
10476
 
 
10477
# Files that config.status was made for.
 
10478
if test -n "$ac_config_files"; then
 
10479
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
10480
fi
 
10481
 
 
10482
if test -n "$ac_config_headers"; then
 
10483
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
10484
fi
 
10485
 
 
10486
if test -n "$ac_config_links"; then
 
10487
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
10488
fi
 
10489
 
 
10490
if test -n "$ac_config_commands"; then
 
10491
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
10492
fi
 
10493
 
 
10494
cat >>$CONFIG_STATUS <<\_ACEOF
 
10495
 
 
10496
ac_cs_usage="\
 
10497
\`$as_me' instantiates files from templates according to the
 
10498
current configuration.
 
10499
 
 
10500
Usage: $0 [OPTIONS] [FILE]...
 
10501
 
 
10502
  -h, --help       print this help, then exit
 
10503
  -V, --version    print version number, then exit
 
10504
  -q, --quiet      do not print progress messages
 
10505
  -d, --debug      don't remove temporary files
 
10506
      --recheck    update $as_me by reconfiguring in the same conditions
 
10507
  --file=FILE[:TEMPLATE]
 
10508
                   instantiate the configuration file FILE
 
10509
 
 
10510
Configuration files:
 
10511
$config_files
 
10512
 
 
10513
Report bugs to <bug-autoconf@gnu.org>."
 
10514
_ACEOF
 
10515
 
 
10516
cat >>$CONFIG_STATUS <<_ACEOF
 
10517
ac_cs_version="\\
 
10518
ftgl config.status 2.0.5
 
10519
configured by $0, generated by GNU Autoconf 2.57,
 
10520
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
10521
 
 
10522
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
10523
Free Software Foundation, Inc.
 
10524
This config.status script is free software; the Free Software Foundation
 
10525
gives unlimited permission to copy, distribute and modify it."
 
10526
srcdir=$srcdir
 
10527
INSTALL="$INSTALL"
 
10528
_ACEOF
 
10529
 
 
10530
cat >>$CONFIG_STATUS <<\_ACEOF
 
10531
# If no file are specified by the user, then we need to provide default
 
10532
# value.  By we need to know if files were specified by the user.
 
10533
ac_need_defaults=:
 
10534
while test $# != 0
 
10535
do
 
10536
  case $1 in
 
10537
  --*=*)
 
10538
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
10539
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
10540
    ac_shift=:
 
10541
    ;;
 
10542
  -*)
 
10543
    ac_option=$1
 
10544
    ac_optarg=$2
 
10545
    ac_shift=shift
 
10546
    ;;
 
10547
  *) # This is not an option, so the user has probably given explicit
 
10548
     # arguments.
 
10549
     ac_option=$1
 
10550
     ac_need_defaults=false;;
 
10551
  esac
 
10552
 
 
10553
  case $ac_option in
 
10554
  # Handling of the options.
 
10555
_ACEOF
 
10556
cat >>$CONFIG_STATUS <<\_ACEOF
 
10557
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
10558
    ac_cs_recheck=: ;;
 
10559
  --version | --vers* | -V )
 
10560
    echo "$ac_cs_version"; exit 0 ;;
 
10561
  --he | --h)
 
10562
    # Conflict between --help and --header
 
10563
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
10564
Try \`$0 --help' for more information." >&5
 
10565
echo "$as_me: error: ambiguous option: $1
 
10566
Try \`$0 --help' for more information." >&2;}
 
10567
   { (exit 1); exit 1; }; };;
 
10568
  --help | --hel | -h )
 
10569
    echo "$ac_cs_usage"; exit 0 ;;
 
10570
  --debug | --d* | -d )
 
10571
    debug=: ;;
 
10572
  --file | --fil | --fi | --f )
 
10573
    $ac_shift
 
10574
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
10575
    ac_need_defaults=false;;
 
10576
  --header | --heade | --head | --hea )
 
10577
    $ac_shift
 
10578
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
10579
    ac_need_defaults=false;;
 
10580
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
10581
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
10582
    ac_cs_silent=: ;;
 
10583
 
 
10584
  # This is an error.
 
10585
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
10586
Try \`$0 --help' for more information." >&5
 
10587
echo "$as_me: error: unrecognized option: $1
 
10588
Try \`$0 --help' for more information." >&2;}
 
10589
   { (exit 1); exit 1; }; } ;;
 
10590
 
 
10591
  *) ac_config_targets="$ac_config_targets $1" ;;
 
10592
 
 
10593
  esac
 
10594
  shift
 
10595
done
 
10596
 
 
10597
ac_configure_extra_args=
 
10598
 
 
10599
if $ac_cs_silent; then
 
10600
  exec 6>/dev/null
 
10601
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
10602
fi
 
10603
 
 
10604
_ACEOF
 
10605
cat >>$CONFIG_STATUS <<_ACEOF
 
10606
if \$ac_cs_recheck; then
 
10607
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
10608
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
10609
fi
 
10610
 
 
10611
_ACEOF
 
10612
 
 
10613
 
 
10614
 
 
10615
 
 
10616
 
 
10617
cat >>$CONFIG_STATUS <<\_ACEOF
 
10618
for ac_config_target in $ac_config_targets
 
10619
do
 
10620
  case "$ac_config_target" in
 
10621
  # Handling of arguments.
 
10622
  "Make.conf" ) CONFIG_FILES="$CONFIG_FILES Make.conf" ;;
 
10623
  "ftgl.pc" ) CONFIG_FILES="$CONFIG_FILES ftgl.pc" ;;
 
10624
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
10625
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
10626
   { (exit 1); exit 1; }; };;
 
10627
  esac
 
10628
done
 
10629
 
 
10630
# If the user did not use the arguments to specify the items to instantiate,
 
10631
# then the envvar interface is used.  Set only those that are not.
 
10632
# We use the long form for the default assignment because of an extremely
 
10633
# bizarre bug on SunOS 4.1.3.
 
10634
if $ac_need_defaults; then
 
10635
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
10636
fi
 
10637
 
 
10638
# Have a temporary directory for convenience.  Make it in the build tree
 
10639
# simply because there is no reason to put it here, and in addition,
 
10640
# creating and moving files from /tmp can sometimes cause problems.
 
10641
# Create a temporary directory, and hook for its removal unless debugging.
 
10642
$debug ||
 
10643
{
 
10644
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
10645
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
10646
}
 
10647
 
 
10648
# Create a (secure) tmp directory for tmp files.
 
10649
 
 
10650
{
 
10651
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
10652
  test -n "$tmp" && test -d "$tmp"
 
10653
}  ||
 
10654
{
 
10655
  tmp=./confstat$$-$RANDOM
 
10656
  (umask 077 && mkdir $tmp)
 
10657
} ||
 
10658
{
 
10659
   echo "$me: cannot create a temporary directory in ." >&2
 
10660
   { (exit 1); exit 1; }
 
10661
}
 
10662
 
 
10663
_ACEOF
 
10664
 
 
10665
cat >>$CONFIG_STATUS <<_ACEOF
 
10666
 
 
10667
#
 
10668
# CONFIG_FILES section.
 
10669
#
 
10670
 
 
10671
# No need to generate the scripts if there are no CONFIG_FILES.
 
10672
# This happens for instance when ./config.status config.h
 
10673
if test -n "\$CONFIG_FILES"; then
 
10674
  # Protect against being on the right side of a sed subst in config.status.
 
10675
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
10676
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
10677
s,@SHELL@,$SHELL,;t t
 
10678
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
10679
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
10680
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
10681
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
10682
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
10683
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
10684
s,@exec_prefix@,$exec_prefix,;t t
 
10685
s,@prefix@,$prefix,;t t
 
10686
s,@program_transform_name@,$program_transform_name,;t t
 
10687
s,@bindir@,$bindir,;t t
 
10688
s,@sbindir@,$sbindir,;t t
 
10689
s,@libexecdir@,$libexecdir,;t t
 
10690
s,@datadir@,$datadir,;t t
 
10691
s,@sysconfdir@,$sysconfdir,;t t
 
10692
s,@sharedstatedir@,$sharedstatedir,;t t
 
10693
s,@localstatedir@,$localstatedir,;t t
 
10694
s,@libdir@,$libdir,;t t
 
10695
s,@includedir@,$includedir,;t t
 
10696
s,@oldincludedir@,$oldincludedir,;t t
 
10697
s,@infodir@,$infodir,;t t
 
10698
s,@mandir@,$mandir,;t t
 
10699
s,@build_alias@,$build_alias,;t t
 
10700
s,@host_alias@,$host_alias,;t t
 
10701
s,@target_alias@,$target_alias,;t t
 
10702
s,@DEFS@,$DEFS,;t t
 
10703
s,@ECHO_C@,$ECHO_C,;t t
 
10704
s,@ECHO_N@,$ECHO_N,;t t
 
10705
s,@ECHO_T@,$ECHO_T,;t t
 
10706
s,@LIBS@,$LIBS,;t t
 
10707
s,@build@,$build,;t t
 
10708
s,@build_cpu@,$build_cpu,;t t
 
10709
s,@build_vendor@,$build_vendor,;t t
 
10710
s,@build_os@,$build_os,;t t
 
10711
s,@host@,$host,;t t
 
10712
s,@host_cpu@,$host_cpu,;t t
 
10713
s,@host_vendor@,$host_vendor,;t t
 
10714
s,@host_os@,$host_os,;t t
 
10715
s,@CXX@,$CXX,;t t
 
10716
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
10717
s,@LDFLAGS@,$LDFLAGS,;t t
 
10718
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
10719
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
10720
s,@EXEEXT@,$EXEEXT,;t t
 
10721
s,@OBJEXT@,$OBJEXT,;t t
 
10722
s,@CC@,$CC,;t t
 
10723
s,@CFLAGS@,$CFLAGS,;t t
 
10724
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
10725
s,@LN_S@,$LN_S,;t t
 
10726
s,@ECHO@,$ECHO,;t t
 
10727
s,@RANLIB@,$RANLIB,;t t
 
10728
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
10729
s,@STRIP@,$STRIP,;t t
 
10730
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
10731
s,@CPP@,$CPP,;t t
 
10732
s,@EGREP@,$EGREP,;t t
 
10733
s,@LIBTOOL@,$LIBTOOL,;t t
 
10734
s,@FT2_CONFIG@,$FT2_CONFIG,;t t
 
10735
s,@FT2_CFLAGS@,$FT2_CFLAGS,;t t
 
10736
s,@FT2_LIBS@,$FT2_LIBS,;t t
 
10737
s,@X_CFLAGS@,$X_CFLAGS,;t t
 
10738
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
 
10739
s,@X_LIBS@,$X_LIBS,;t t
 
10740
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
 
10741
s,@GL_CFLAGS@,$GL_CFLAGS,;t t
 
10742
s,@GL_LIBS@,$GL_LIBS,;t t
 
10743
s,@HAVE_GLUT@,$HAVE_GLUT,;t t
 
10744
s,@GLUT_CFLAGS@,$GLUT_CFLAGS,;t t
 
10745
s,@GLUT_LIBS@,$GLUT_LIBS,;t t
 
10746
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
10747
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
10748
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
10749
s,@DOXYGEN@,$DOXYGEN,;t t
 
10750
s,@LIBOBJS@,$LIBOBJS,;t t
 
10751
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
10752
CEOF
 
10753
 
 
10754
_ACEOF
 
10755
 
 
10756
  cat >>$CONFIG_STATUS <<\_ACEOF
 
10757
  # Split the substitutions into bite-sized pieces for seds with
 
10758
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
10759
  ac_max_sed_lines=48
 
10760
  ac_sed_frag=1 # Number of current file.
 
10761
  ac_beg=1 # First line for current file.
 
10762
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
10763
  ac_more_lines=:
 
10764
  ac_sed_cmds=
 
10765
  while $ac_more_lines; do
 
10766
    if test $ac_beg -gt 1; then
 
10767
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
10768
    else
 
10769
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
10770
    fi
 
10771
    if test ! -s $tmp/subs.frag; then
 
10772
      ac_more_lines=false
 
10773
    else
 
10774
      # The purpose of the label and of the branching condition is to
 
10775
      # speed up the sed processing (if there are no `@' at all, there
 
10776
      # is no need to browse any of the substitutions).
 
10777
      # These are the two extra sed commands mentioned above.
 
10778
      (echo ':t
 
10779
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
10780
      if test -z "$ac_sed_cmds"; then
 
10781
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
10782
      else
 
10783
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
10784
      fi
 
10785
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
10786
      ac_beg=$ac_end
 
10787
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
10788
    fi
 
10789
  done
 
10790
  if test -z "$ac_sed_cmds"; then
 
10791
    ac_sed_cmds=cat
 
10792
  fi
 
10793
fi # test -n "$CONFIG_FILES"
 
10794
 
 
10795
_ACEOF
 
10796
cat >>$CONFIG_STATUS <<\_ACEOF
 
10797
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
10798
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
10799
  case $ac_file in
 
10800
  - | *:- | *:-:* ) # input from stdin
 
10801
        cat >$tmp/stdin
 
10802
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10803
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10804
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10805
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10806
  * )   ac_file_in=$ac_file.in ;;
 
10807
  esac
 
10808
 
 
10809
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
10810
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
10811
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10812
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
10813
         X"$ac_file" : 'X\(//\)$' \| \
 
10814
         X"$ac_file" : 'X\(/\)' \| \
 
10815
         .     : '\(.\)' 2>/dev/null ||
 
10816
echo X"$ac_file" |
 
10817
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10818
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10819
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10820
          /^X\(\/\).*/{ s//\1/; q; }
 
10821
          s/.*/./; q'`
 
10822
  { if $as_mkdir_p; then
 
10823
    mkdir -p "$ac_dir"
 
10824
  else
 
10825
    as_dir="$ac_dir"
 
10826
    as_dirs=
 
10827
    while test ! -d "$as_dir"; do
 
10828
      as_dirs="$as_dir $as_dirs"
 
10829
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
10830
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10831
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
10832
         X"$as_dir" : 'X\(//\)$' \| \
 
10833
         X"$as_dir" : 'X\(/\)' \| \
 
10834
         .     : '\(.\)' 2>/dev/null ||
 
10835
echo X"$as_dir" |
 
10836
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10837
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10838
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10839
          /^X\(\/\).*/{ s//\1/; q; }
 
10840
          s/.*/./; q'`
 
10841
    done
 
10842
    test ! -n "$as_dirs" || mkdir $as_dirs
 
10843
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
10844
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
10845
   { (exit 1); exit 1; }; }; }
 
10846
 
 
10847
  ac_builddir=.
 
10848
 
 
10849
if test "$ac_dir" != .; then
 
10850
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
10851
  # A "../" for each directory in $ac_dir_suffix.
 
10852
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
10853
else
 
10854
  ac_dir_suffix= ac_top_builddir=
 
10855
fi
 
10856
 
 
10857
case $srcdir in
 
10858
  .)  # No --srcdir option.  We are building in place.
 
10859
    ac_srcdir=.
 
10860
    if test -z "$ac_top_builddir"; then
 
10861
       ac_top_srcdir=.
 
10862
    else
 
10863
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
10864
    fi ;;
 
10865
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
10866
    ac_srcdir=$srcdir$ac_dir_suffix;
 
10867
    ac_top_srcdir=$srcdir ;;
 
10868
  *) # Relative path.
 
10869
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
10870
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
10871
esac
 
10872
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
10873
# absolute.
 
10874
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
10875
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
10876
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
10877
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
10878
 
 
10879
 
 
10880
  case $INSTALL in
 
10881
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
10882
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
10883
  esac
 
10884
 
 
10885
  if test x"$ac_file" != x-; then
 
10886
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
10887
echo "$as_me: creating $ac_file" >&6;}
 
10888
    rm -f "$ac_file"
 
10889
  fi
 
10890
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
10891
  # use $as_me), people would be surprised to read:
 
10892
  #    /* config.h.  Generated by config.status.  */
 
10893
  if test x"$ac_file" = x-; then
 
10894
    configure_input=
 
10895
  else
 
10896
    configure_input="$ac_file.  "
 
10897
  fi
 
10898
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
10899
                                     sed 's,.*/,,'` by configure."
 
10900
 
 
10901
  # First look for the input files in the build tree, otherwise in the
 
10902
  # src tree.
 
10903
  ac_file_inputs=`IFS=:
 
10904
    for f in $ac_file_in; do
 
10905
      case $f in
 
10906
      -) echo $tmp/stdin ;;
 
10907
      [\\/$]*)
 
10908
         # Absolute (can't be DOS-style, as IFS=:)
 
10909
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10910
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10911
   { (exit 1); exit 1; }; }
 
10912
         echo $f;;
 
10913
      *) # Relative
 
10914
         if test -f "$f"; then
 
10915
           # Build tree
 
10916
           echo $f
 
10917
         elif test -f "$srcdir/$f"; then
 
10918
           # Source tree
 
10919
           echo $srcdir/$f
 
10920
         else
 
10921
           # /dev/null tree
 
10922
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10923
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10924
   { (exit 1); exit 1; }; }
 
10925
         fi;;
 
10926
      esac
 
10927
    done` || { (exit 1); exit 1; }
 
10928
_ACEOF
 
10929
cat >>$CONFIG_STATUS <<_ACEOF
 
10930
  sed "$ac_vpsub
 
10931
$extrasub
 
10932
_ACEOF
 
10933
cat >>$CONFIG_STATUS <<\_ACEOF
 
10934
:t
 
10935
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
10936
s,@configure_input@,$configure_input,;t t
 
10937
s,@srcdir@,$ac_srcdir,;t t
 
10938
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
10939
s,@top_srcdir@,$ac_top_srcdir,;t t
 
10940
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
10941
s,@builddir@,$ac_builddir,;t t
 
10942
s,@abs_builddir@,$ac_abs_builddir,;t t
 
10943
s,@top_builddir@,$ac_top_builddir,;t t
 
10944
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
10945
s,@INSTALL@,$ac_INSTALL,;t t
 
10946
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
10947
  rm -f $tmp/stdin
 
10948
  if test x"$ac_file" != x-; then
 
10949
    mv $tmp/out $ac_file
 
10950
  else
 
10951
    cat $tmp/out
 
10952
    rm -f $tmp/out
 
10953
  fi
 
10954
 
 
10955
done
 
10956
_ACEOF
 
10957
 
 
10958
cat >>$CONFIG_STATUS <<\_ACEOF
 
10959
 
 
10960
{ (exit 0); exit 0; }
 
10961
_ACEOF
 
10962
chmod +x $CONFIG_STATUS
 
10963
ac_clean_files=$ac_clean_files_save
 
10964
 
 
10965
 
 
10966
# configure is writing to config.log, and then calls config.status.
 
10967
# config.status does its own redirection, appending to config.log.
 
10968
# Unfortunately, on DOS this fails, as config.log is still kept open
 
10969
# by configure, so config.status won't be able to write to it; its
 
10970
# output is simply discarded.  So we exec the FD to /dev/null,
 
10971
# effectively closing config.log, so it can be properly (re)opened and
 
10972
# appended to by config.status.  When coming back to configure, we
 
10973
# need to make the FD available again.
 
10974
if test "$no_create" != yes; then
 
10975
  ac_cs_success=:
 
10976
  ac_config_status_args=
 
10977
  test "$silent" = yes &&
 
10978
    ac_config_status_args="$ac_config_status_args --quiet"
 
10979
  exec 5>/dev/null
 
10980
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
10981
  exec 5>>config.log
 
10982
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
10983
  # would make configure fail if this is the last instruction.
 
10984
  $ac_cs_success || { (exit 1); exit 1; }
 
10985
fi
 
10986