OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [configure] - Blame information for rev 830

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 735 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for GNU OpenMP Runtime Library 1.0.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
# Foundation, Inc.
8
#
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14
 
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32
 
33
 
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in #(
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
 
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""        $as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
case $0 in #((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in #(
144
  *posix*) :
145
    set -o posix ;; #(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
 
173
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177
    PATH=/empty FPATH=/empty; export PATH FPATH
178
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180
test \$(( 1 + 1 )) = 2 || exit 1"
181
  if (eval "$as_required") 2>/dev/null; then :
182
  as_have_required=yes
183
else
184
  as_have_required=no
185
fi
186
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
 
188
else
189
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190
as_found=false
191
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192
do
193
  IFS=$as_save_IFS
194
  test -z "$as_dir" && as_dir=.
195
  as_found=:
196
  case $as_dir in #(
197
         /*)
198
           for as_base in sh bash ksh sh5; do
199
             # Try only shells that exist, to save several forks.
200
             as_shell=$as_dir/$as_base
201
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203
  CONFIG_SHELL=$as_shell as_have_required=yes
204
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205
  break 2
206
fi
207
fi
208
           done;;
209
       esac
210
  as_found=false
211
done
212
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214
  CONFIG_SHELL=$SHELL as_have_required=yes
215
fi; }
216
IFS=$as_save_IFS
217
 
218
 
219
      if test "x$CONFIG_SHELL" != x; then :
220
  # We cannot yet assume a decent shell, so we have to provide a
221
        # neutralization value for shells without unset; and this also
222
        # works around shells that cannot unset nonexistent variables.
223
        BASH_ENV=/dev/null
224
        ENV=/dev/null
225
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226
        export CONFIG_SHELL
227
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228
fi
229
 
230
    if test x$as_have_required = xno; then :
231
  $as_echo "$0: This script requires a shell more modern than all"
232
  $as_echo "$0: the shells that I found on your system."
233
  if test x${ZSH_VERSION+set} = xset ; then
234
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236
  else
237
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238
$0: including any error possibly output before this
239
$0: message. Then install a modern shell, or manually run
240
$0: the script under such a shell if you do have one."
241
  fi
242
  exit 1
243
fi
244
fi
245
fi
246
SHELL=${CONFIG_SHELL-/bin/sh}
247
export SHELL
248
# Unset more variables known to interfere with behavior of common tools.
249
CLICOLOR_FORCE= GREP_OPTIONS=
250
unset CLICOLOR_FORCE GREP_OPTIONS
251
 
252
## --------------------- ##
253
## M4sh Shell Functions. ##
254
## --------------------- ##
255
# as_fn_unset VAR
256
# ---------------
257
# Portably unset VAR.
258
as_fn_unset ()
259
{
260
  { eval $1=; unset $1;}
261
}
262
as_unset=as_fn_unset
263
 
264
# as_fn_set_status STATUS
265
# -----------------------
266
# Set $? to STATUS, without forking.
267
as_fn_set_status ()
268
{
269
  return $1
270
} # as_fn_set_status
271
 
272
# as_fn_exit STATUS
273
# -----------------
274
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275
as_fn_exit ()
276
{
277
  set +e
278
  as_fn_set_status $1
279
  exit $1
280
} # as_fn_exit
281
 
282
# as_fn_mkdir_p
283
# -------------
284
# Create "$as_dir" as a directory, including parents if necessary.
285
as_fn_mkdir_p ()
286
{
287
 
288
  case $as_dir in #(
289
  -*) as_dir=./$as_dir;;
290
  esac
291
  test -d "$as_dir" || eval $as_mkdir_p || {
292
    as_dirs=
293
    while :; do
294
      case $as_dir in #(
295
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296
      *) as_qdir=$as_dir;;
297
      esac
298
      as_dirs="'$as_qdir' $as_dirs"
299
      as_dir=`$as_dirname -- "$as_dir" ||
300
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301
         X"$as_dir" : 'X\(//\)[^/]' \| \
302
         X"$as_dir" : 'X\(//\)$' \| \
303
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304
$as_echo X"$as_dir" |
305
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306
            s//\1/
307
            q
308
          }
309
          /^X\(\/\/\)[^/].*/{
310
            s//\1/
311
            q
312
          }
313
          /^X\(\/\/\)$/{
314
            s//\1/
315
            q
316
          }
317
          /^X\(\/\).*/{
318
            s//\1/
319
            q
320
          }
321
          s/.*/./; q'`
322
      test -d "$as_dir" && break
323
    done
324
    test -z "$as_dirs" || eval "mkdir $as_dirs"
325
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
 
327
 
328
} # as_fn_mkdir_p
329
# as_fn_append VAR VALUE
330
# ----------------------
331
# Append the text in VALUE to the end of the definition contained in VAR. Take
332
# advantage of any shell optimizations that allow amortized linear growth over
333
# repeated appends, instead of the typical quadratic growth present in naive
334
# implementations.
335
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336
  eval 'as_fn_append ()
337
  {
338
    eval $1+=\$2
339
  }'
340
else
341
  as_fn_append ()
342
  {
343
    eval $1=\$$1\$2
344
  }
345
fi # as_fn_append
346
 
347
# as_fn_arith ARG...
348
# ------------------
349
# Perform arithmetic evaluation on the ARGs, and store the result in the
350
# global $as_val. Take advantage of shells that can avoid forks. The arguments
351
# must be portable across $(()) and expr.
352
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353
  eval 'as_fn_arith ()
354
  {
355
    as_val=$(( $* ))
356
  }'
357
else
358
  as_fn_arith ()
359
  {
360
    as_val=`expr "$@" || test $? -eq 1`
361
  }
362
fi # as_fn_arith
363
 
364
 
365
# as_fn_error ERROR [LINENO LOG_FD]
366
# ---------------------------------
367
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369
# script with status $?, using 1 if that was 0.
370
as_fn_error ()
371
{
372
  as_status=$?; test $as_status -eq 0 && as_status=1
373
  if test "$3"; then
374
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376
  fi
377
  $as_echo "$as_me: error: $1" >&2
378
  as_fn_exit $as_status
379
} # as_fn_error
380
 
381
if expr a : '\(a\)' >/dev/null 2>&1 &&
382
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383
  as_expr=expr
384
else
385
  as_expr=false
386
fi
387
 
388
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389
  as_basename=basename
390
else
391
  as_basename=false
392
fi
393
 
394
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395
  as_dirname=dirname
396
else
397
  as_dirname=false
398
fi
399
 
400
as_me=`$as_basename -- "$0" ||
401
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402
         X"$0" : 'X\(//\)$' \| \
403
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404
$as_echo X/"$0" |
405
    sed '/^.*\/\([^/][^/]*\)\/*$/{
406
            s//\1/
407
            q
408
          }
409
          /^X\/\(\/\/\)$/{
410
            s//\1/
411
            q
412
          }
413
          /^X\/\(\/\).*/{
414
            s//\1/
415
            q
416
          }
417
          s/.*/./; q'`
418
 
419
# Avoid depending upon Character Ranges.
420
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423
as_cr_digits='0123456789'
424
as_cr_alnum=$as_cr_Letters$as_cr_digits
425
 
426
 
427
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432
  sed -n '
433
    p
434
    /[$]LINENO/=
435
  ' <$as_myself |
436
    sed '
437
      s/[$]LINENO.*/&-/
438
      t lineno
439
      b
440
      :lineno
441
      N
442
      :loop
443
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
      t loop
445
      s/-\n.*//
446
    ' >$as_me.lineno &&
447
  chmod +x "$as_me.lineno" ||
448
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
 
450
  # Don't try to exec as it changes $[0], causing all sort of problems
451
  # (the dirname of $[0] is not the place where we might find the
452
  # original and so on.  Autoconf is especially sensitive to this).
453
  . "./$as_me.lineno"
454
  # Exit status is that of the last command.
455
  exit
456
}
457
 
458
ECHO_C= ECHO_N= ECHO_T=
459
case `echo -n x` in #(((((
460
-n*)
461
  case `echo 'xy\c'` in
462
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463
  xy)  ECHO_C='\c';;
464
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465
       ECHO_T=' ';;
466
  esac;;
467
*)
468
  ECHO_N='-n';;
469
esac
470
 
471
rm -f conf$$ conf$$.exe conf$$.file
472
if test -d conf$$.dir; then
473
  rm -f conf$$.dir/conf$$.file
474
else
475
  rm -f conf$$.dir
476
  mkdir conf$$.dir 2>/dev/null
477
fi
478
if (echo >conf$$.file) 2>/dev/null; then
479
  if ln -s conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s='ln -s'
481
    # ... but there are two gotchas:
482
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484
    # In both cases, we have to default to `cp -p'.
485
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486
      as_ln_s='cp -p'
487
  elif ln conf$$.file conf$$ 2>/dev/null; then
488
    as_ln_s=ln
489
  else
490
    as_ln_s='cp -p'
491
  fi
492
else
493
  as_ln_s='cp -p'
494
fi
495
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496
rmdir conf$$.dir 2>/dev/null
497
 
498
if mkdir -p . 2>/dev/null; then
499
  as_mkdir_p='mkdir -p "$as_dir"'
500
else
501
  test -d ./-p && rmdir ./-p
502
  as_mkdir_p=false
503
fi
504
 
505
if test -x / >/dev/null 2>&1; then
506
  as_test_x='test -x'
507
else
508
  if ls -dL / >/dev/null 2>&1; then
509
    as_ls_L_option=L
510
  else
511
    as_ls_L_option=
512
  fi
513
  as_test_x='
514
    eval sh -c '\''
515
      if test -d "$1"; then
516
        test -d "$1/.";
517
      else
518
        case $1 in #(
519
        -*)set "./$1";;
520
        esac;
521
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522
        ???[sx]*):;;*)false;;esac;fi
523
    '\'' sh
524
  '
525
fi
526
as_executable_p=$as_test_x
527
 
528
# Sed expression to map a string onto a valid CPP name.
529
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
 
531
# Sed expression to map a string onto a valid variable name.
532
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
 
534
SHELL=${CONFIG_SHELL-/bin/sh}
535
 
536
 
537
exec 7<&0 &1
538
 
539
# Name of the host.
540
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541
# so uname gets run too.
542
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
 
544
#
545
# Initializations.
546
#
547
ac_default_prefix=/usr/local
548
ac_clean_files=
549
ac_config_libobj_dir=.
550
LIBOBJS=
551
cross_compiling=no
552
subdirs=
553
MFLAGS=
554
MAKEFLAGS=
555
 
556
# Identity of this package.
557
PACKAGE_NAME='GNU OpenMP Runtime Library'
558
PACKAGE_TARNAME='libgomp'
559
PACKAGE_VERSION='1.0'
560
PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
561
PACKAGE_BUGREPORT=''
562
PACKAGE_URL='http://www.gnu.org/software/libgomp/'
563
 
564
# Factoring default headers for most tests.
565
ac_includes_default="\
566
#include 
567
#ifdef HAVE_SYS_TYPES_H
568
# include 
569
#endif
570
#ifdef HAVE_SYS_STAT_H
571
# include 
572
#endif
573
#ifdef STDC_HEADERS
574
# include 
575
# include 
576
#else
577
# ifdef HAVE_STDLIB_H
578
#  include 
579
# endif
580
#endif
581
#ifdef HAVE_STRING_H
582
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583
#  include 
584
# endif
585
# include 
586
#endif
587
#ifdef HAVE_STRINGS_H
588
# include 
589
#endif
590
#ifdef HAVE_INTTYPES_H
591
# include 
592
#endif
593
#ifdef HAVE_STDINT_H
594
# include 
595
#endif
596
#ifdef HAVE_UNISTD_H
597
# include 
598
#endif"
599
 
600
ac_subst_vars='am__EXEEXT_FALSE
601
am__EXEEXT_TRUE
602
LTLIBOBJS
603
LIBOBJS
604
OMP_NEST_LOCK_25_KIND
605
OMP_LOCK_25_KIND
606
OMP_NEST_LOCK_25_ALIGN
607
OMP_NEST_LOCK_25_SIZE
608
OMP_LOCK_25_ALIGN
609
OMP_LOCK_25_SIZE
610
OMP_NEST_LOCK_KIND
611
OMP_LOCK_KIND
612
OMP_NEST_LOCK_ALIGN
613
OMP_NEST_LOCK_SIZE
614
OMP_LOCK_ALIGN
615
OMP_LOCK_SIZE
616
USE_FORTRAN_FALSE
617
USE_FORTRAN_TRUE
618
link_gomp
619
XLDFLAGS
620
XCFLAGS
621
config_path
622
LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
623
LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
624
LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
625
LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
626
LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
627
LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
628
OPT_LDFLAGS
629
SECTION_LDFLAGS
630
libtool_VERSION
631
ac_ct_FC
632
FCFLAGS
633
FC
634
MAINT
635
MAINTAINER_MODE_FALSE
636
MAINTAINER_MODE_TRUE
637
enable_static
638
enable_shared
639
lt_host_flags
640
CPP
641
OTOOL64
642
OTOOL
643
LIPO
644
NMEDIT
645
DSYMUTIL
646
OBJDUMP
647
LN_S
648
NM
649
ac_ct_DUMPBIN
650
DUMPBIN
651
LD
652
FGREP
653
EGREP
654
GREP
655
SED
656
LIBTOOL
657
BUILD_INFO_FALSE
658
BUILD_INFO_TRUE
659
PERL
660
RANLIB
661
AR
662
am__fastdepCC_FALSE
663
am__fastdepCC_TRUE
664
CCDEPMODE
665
AMDEPBACKSLASH
666
AMDEP_FALSE
667
AMDEP_TRUE
668
am__quote
669
am__include
670
DEPDIR
671
OBJEXT
672
EXEEXT
673
ac_ct_CC
674
CPPFLAGS
675
LDFLAGS
676
CFLAGS
677
CC
678
toolexeclibdir
679
toolexecdir
680
multi_basedir
681
am__untar
682
am__tar
683
AMTAR
684
am__leading_dot
685
SET_MAKE
686
AWK
687
mkdir_p
688
MKDIR_P
689
INSTALL_STRIP_PROGRAM
690
STRIP
691
install_sh
692
MAKEINFO
693
AUTOHEADER
694
AUTOMAKE
695
AUTOCONF
696
ACLOCAL
697
VERSION
698
PACKAGE
699
CYGPATH_W
700
am__isrc
701
INSTALL_DATA
702
INSTALL_SCRIPT
703
INSTALL_PROGRAM
704
target_os
705
target_vendor
706
target_cpu
707
target
708
host_os
709
host_vendor
710
host_cpu
711
host
712
build_os
713
build_vendor
714
build_cpu
715
build
716
GENINSRC_FALSE
717
GENINSRC_TRUE
718
target_alias
719
host_alias
720
build_alias
721
LIBS
722
ECHO_T
723
ECHO_N
724
ECHO_C
725
DEFS
726
mandir
727
localedir
728
libdir
729
psdir
730
pdfdir
731
dvidir
732
htmldir
733
infodir
734
docdir
735
oldincludedir
736
includedir
737
localstatedir
738
sharedstatedir
739
sysconfdir
740
datadir
741
datarootdir
742
libexecdir
743
sbindir
744
bindir
745
program_transform_name
746
prefix
747
exec_prefix
748
PACKAGE_URL
749
PACKAGE_BUGREPORT
750
PACKAGE_STRING
751
PACKAGE_VERSION
752
PACKAGE_TARNAME
753
PACKAGE_NAME
754
PATH_SEPARATOR
755
SHELL'
756
ac_subst_files=''
757
ac_user_opts='
758
enable_option_checking
759
enable_version_specific_runtime_libs
760
enable_generated_files_in_srcdir
761
enable_multilib
762
enable_dependency_tracking
763
enable_shared
764
enable_static
765
with_pic
766
enable_fast_install
767
with_gnu_ld
768
enable_libtool_lock
769
enable_maintainer_mode
770
enable_linux_futex
771
enable_tls
772
enable_symvers
773
'
774
      ac_precious_vars='build_alias
775
host_alias
776
target_alias
777
CPP
778
CPPFLAGS
779
FC
780
FCFLAGS
781
LDFLAGS
782
LIBS'
783
 
784
 
785
# Initialize some variables set by options.
786
ac_init_help=
787
ac_init_version=false
788
ac_unrecognized_opts=
789
ac_unrecognized_sep=
790
# The variables have the same names as the options, with
791
# dashes changed to underlines.
792
cache_file=/dev/null
793
exec_prefix=NONE
794
no_create=
795
no_recursion=
796
prefix=NONE
797
program_prefix=NONE
798
program_suffix=NONE
799
program_transform_name=s,x,x,
800
silent=
801
site=
802
srcdir=
803
verbose=
804
x_includes=NONE
805
x_libraries=NONE
806
 
807
# Installation directory options.
808
# These are left unexpanded so users can "make install exec_prefix=/foo"
809
# and all the variables that are supposed to be based on exec_prefix
810
# by default will actually change.
811
# Use braces instead of parens because sh, perl, etc. also accept them.
812
# (The list follows the same order as the GNU Coding Standards.)
813
bindir='${exec_prefix}/bin'
814
sbindir='${exec_prefix}/sbin'
815
libexecdir='${exec_prefix}/libexec'
816
datarootdir='${prefix}/share'
817
datadir='${datarootdir}'
818
sysconfdir='${prefix}/etc'
819
sharedstatedir='${prefix}/com'
820
localstatedir='${prefix}/var'
821
includedir='${prefix}/include'
822
oldincludedir='/usr/include'
823
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824
infodir='${datarootdir}/info'
825
htmldir='${docdir}'
826
dvidir='${docdir}'
827
pdfdir='${docdir}'
828
psdir='${docdir}'
829
libdir='${exec_prefix}/lib'
830
localedir='${datarootdir}/locale'
831
mandir='${datarootdir}/man'
832
 
833
ac_prev=
834
ac_dashdash=
835
for ac_option
836
do
837
  # If the previous option needs an argument, assign it.
838
  if test -n "$ac_prev"; then
839
    eval $ac_prev=\$ac_option
840
    ac_prev=
841
    continue
842
  fi
843
 
844
  case $ac_option in
845
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846
  *)    ac_optarg=yes ;;
847
  esac
848
 
849
  # Accept the important Cygnus configure options, so we can diagnose typos.
850
 
851
  case $ac_dashdash$ac_option in
852
  --)
853
    ac_dashdash=yes ;;
854
 
855
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
856
    ac_prev=bindir ;;
857
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858
    bindir=$ac_optarg ;;
859
 
860
  -build | --build | --buil | --bui | --bu)
861
    ac_prev=build_alias ;;
862
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863
    build_alias=$ac_optarg ;;
864
 
865
  -cache-file | --cache-file | --cache-fil | --cache-fi \
866
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867
    ac_prev=cache_file ;;
868
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870
    cache_file=$ac_optarg ;;
871
 
872
  --config-cache | -C)
873
    cache_file=config.cache ;;
874
 
875
  -datadir | --datadir | --datadi | --datad)
876
    ac_prev=datadir ;;
877
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
878
    datadir=$ac_optarg ;;
879
 
880
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881
  | --dataroo | --dataro | --datar)
882
    ac_prev=datarootdir ;;
883
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885
    datarootdir=$ac_optarg ;;
886
 
887
  -disable-* | --disable-*)
888
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889
    # Reject names that are not valid shell variable names.
890
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891
      as_fn_error "invalid feature name: $ac_useropt"
892
    ac_useropt_orig=$ac_useropt
893
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894
    case $ac_user_opts in
895
      *"
896
"enable_$ac_useropt"
897
"*) ;;
898
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899
         ac_unrecognized_sep=', ';;
900
    esac
901
    eval enable_$ac_useropt=no ;;
902
 
903
  -docdir | --docdir | --docdi | --doc | --do)
904
    ac_prev=docdir ;;
905
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906
    docdir=$ac_optarg ;;
907
 
908
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909
    ac_prev=dvidir ;;
910
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911
    dvidir=$ac_optarg ;;
912
 
913
  -enable-* | --enable-*)
914
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915
    # Reject names that are not valid shell variable names.
916
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917
      as_fn_error "invalid feature name: $ac_useropt"
918
    ac_useropt_orig=$ac_useropt
919
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920
    case $ac_user_opts in
921
      *"
922
"enable_$ac_useropt"
923
"*) ;;
924
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925
         ac_unrecognized_sep=', ';;
926
    esac
927
    eval enable_$ac_useropt=\$ac_optarg ;;
928
 
929
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931
  | --exec | --exe | --ex)
932
    ac_prev=exec_prefix ;;
933
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935
  | --exec=* | --exe=* | --ex=*)
936
    exec_prefix=$ac_optarg ;;
937
 
938
  -gas | --gas | --ga | --g)
939
    # Obsolete; use --with-gas.
940
    with_gas=yes ;;
941
 
942
  -help | --help | --hel | --he | -h)
943
    ac_init_help=long ;;
944
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945
    ac_init_help=recursive ;;
946
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947
    ac_init_help=short ;;
948
 
949
  -host | --host | --hos | --ho)
950
    ac_prev=host_alias ;;
951
  -host=* | --host=* | --hos=* | --ho=*)
952
    host_alias=$ac_optarg ;;
953
 
954
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955
    ac_prev=htmldir ;;
956
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957
  | --ht=*)
958
    htmldir=$ac_optarg ;;
959
 
960
  -includedir | --includedir | --includedi | --included | --include \
961
  | --includ | --inclu | --incl | --inc)
962
    ac_prev=includedir ;;
963
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964
  | --includ=* | --inclu=* | --incl=* | --inc=*)
965
    includedir=$ac_optarg ;;
966
 
967
  -infodir | --infodir | --infodi | --infod | --info | --inf)
968
    ac_prev=infodir ;;
969
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970
    infodir=$ac_optarg ;;
971
 
972
  -libdir | --libdir | --libdi | --libd)
973
    ac_prev=libdir ;;
974
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
975
    libdir=$ac_optarg ;;
976
 
977
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978
  | --libexe | --libex | --libe)
979
    ac_prev=libexecdir ;;
980
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981
  | --libexe=* | --libex=* | --libe=*)
982
    libexecdir=$ac_optarg ;;
983
 
984
  -localedir | --localedir | --localedi | --localed | --locale)
985
    ac_prev=localedir ;;
986
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987
    localedir=$ac_optarg ;;
988
 
989
  -localstatedir | --localstatedir | --localstatedi | --localstated \
990
  | --localstate | --localstat | --localsta | --localst | --locals)
991
    ac_prev=localstatedir ;;
992
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994
    localstatedir=$ac_optarg ;;
995
 
996
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997
    ac_prev=mandir ;;
998
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999
    mandir=$ac_optarg ;;
1000
 
1001
  -nfp | --nfp | --nf)
1002
    # Obsolete; use --without-fp.
1003
    with_fp=no ;;
1004
 
1005
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006
  | --no-cr | --no-c | -n)
1007
    no_create=yes ;;
1008
 
1009
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011
    no_recursion=yes ;;
1012
 
1013
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015
  | --oldin | --oldi | --old | --ol | --o)
1016
    ac_prev=oldincludedir ;;
1017
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020
    oldincludedir=$ac_optarg ;;
1021
 
1022
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023
    ac_prev=prefix ;;
1024
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025
    prefix=$ac_optarg ;;
1026
 
1027
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028
  | --program-pre | --program-pr | --program-p)
1029
    ac_prev=program_prefix ;;
1030
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032
    program_prefix=$ac_optarg ;;
1033
 
1034
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035
  | --program-suf | --program-su | --program-s)
1036
    ac_prev=program_suffix ;;
1037
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039
    program_suffix=$ac_optarg ;;
1040
 
1041
  -program-transform-name | --program-transform-name \
1042
  | --program-transform-nam | --program-transform-na \
1043
  | --program-transform-n | --program-transform- \
1044
  | --program-transform | --program-transfor \
1045
  | --program-transfo | --program-transf \
1046
  | --program-trans | --program-tran \
1047
  | --progr-tra | --program-tr | --program-t)
1048
    ac_prev=program_transform_name ;;
1049
  -program-transform-name=* | --program-transform-name=* \
1050
  | --program-transform-nam=* | --program-transform-na=* \
1051
  | --program-transform-n=* | --program-transform-=* \
1052
  | --program-transform=* | --program-transfor=* \
1053
  | --program-transfo=* | --program-transf=* \
1054
  | --program-trans=* | --program-tran=* \
1055
  | --progr-tra=* | --program-tr=* | --program-t=*)
1056
    program_transform_name=$ac_optarg ;;
1057
 
1058
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059
    ac_prev=pdfdir ;;
1060
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061
    pdfdir=$ac_optarg ;;
1062
 
1063
  -psdir | --psdir | --psdi | --psd | --ps)
1064
    ac_prev=psdir ;;
1065
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066
    psdir=$ac_optarg ;;
1067
 
1068
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069
  | -silent | --silent | --silen | --sile | --sil)
1070
    silent=yes ;;
1071
 
1072
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073
    ac_prev=sbindir ;;
1074
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075
  | --sbi=* | --sb=*)
1076
    sbindir=$ac_optarg ;;
1077
 
1078
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080
  | --sharedst | --shareds | --shared | --share | --shar \
1081
  | --sha | --sh)
1082
    ac_prev=sharedstatedir ;;
1083
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086
  | --sha=* | --sh=*)
1087
    sharedstatedir=$ac_optarg ;;
1088
 
1089
  -site | --site | --sit)
1090
    ac_prev=site ;;
1091
  -site=* | --site=* | --sit=*)
1092
    site=$ac_optarg ;;
1093
 
1094
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095
    ac_prev=srcdir ;;
1096
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097
    srcdir=$ac_optarg ;;
1098
 
1099
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100
  | --syscon | --sysco | --sysc | --sys | --sy)
1101
    ac_prev=sysconfdir ;;
1102
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104
    sysconfdir=$ac_optarg ;;
1105
 
1106
  -target | --target | --targe | --targ | --tar | --ta | --t)
1107
    ac_prev=target_alias ;;
1108
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109
    target_alias=$ac_optarg ;;
1110
 
1111
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112
    verbose=yes ;;
1113
 
1114
  -version | --version | --versio | --versi | --vers | -V)
1115
    ac_init_version=: ;;
1116
 
1117
  -with-* | --with-*)
1118
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119
    # Reject names that are not valid shell variable names.
1120
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121
      as_fn_error "invalid package name: $ac_useropt"
1122
    ac_useropt_orig=$ac_useropt
1123
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124
    case $ac_user_opts in
1125
      *"
1126
"with_$ac_useropt"
1127
"*) ;;
1128
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129
         ac_unrecognized_sep=', ';;
1130
    esac
1131
    eval with_$ac_useropt=\$ac_optarg ;;
1132
 
1133
  -without-* | --without-*)
1134
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135
    # Reject names that are not valid shell variable names.
1136
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137
      as_fn_error "invalid package name: $ac_useropt"
1138
    ac_useropt_orig=$ac_useropt
1139
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140
    case $ac_user_opts in
1141
      *"
1142
"with_$ac_useropt"
1143
"*) ;;
1144
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145
         ac_unrecognized_sep=', ';;
1146
    esac
1147
    eval with_$ac_useropt=no ;;
1148
 
1149
  --x)
1150
    # Obsolete; use --with-x.
1151
    with_x=yes ;;
1152
 
1153
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154
  | --x-incl | --x-inc | --x-in | --x-i)
1155
    ac_prev=x_includes ;;
1156
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158
    x_includes=$ac_optarg ;;
1159
 
1160
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162
    ac_prev=x_libraries ;;
1163
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165
    x_libraries=$ac_optarg ;;
1166
 
1167
  -*) as_fn_error "unrecognized option: \`$ac_option'
1168
Try \`$0 --help' for more information."
1169
    ;;
1170
 
1171
  *=*)
1172
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173
    # Reject names that are not valid shell variable names.
1174
    case $ac_envvar in #(
1175
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1176
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1177
    esac
1178
    eval $ac_envvar=\$ac_optarg
1179
    export $ac_envvar ;;
1180
 
1181
  *)
1182
    # FIXME: should be removed in autoconf 3.0.
1183
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1187
    ;;
1188
 
1189
  esac
1190
done
1191
 
1192
if test -n "$ac_prev"; then
1193
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194
  as_fn_error "missing argument to $ac_option"
1195
fi
1196
 
1197
if test -n "$ac_unrecognized_opts"; then
1198
  case $enable_option_checking in
1199
    no) ;;
1200
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1201
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202
  esac
1203
fi
1204
 
1205
# Check all directory arguments for consistency.
1206
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207
                datadir sysconfdir sharedstatedir localstatedir includedir \
1208
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209
                libdir localedir mandir
1210
do
1211
  eval ac_val=\$$ac_var
1212
  # Remove trailing slashes.
1213
  case $ac_val in
1214
    */ )
1215
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216
      eval $ac_var=\$ac_val;;
1217
  esac
1218
  # Be sure to have absolute directory names.
1219
  case $ac_val in
1220
    [\\/$]* | ?:[\\/]* )  continue;;
1221
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222
  esac
1223
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1224
done
1225
 
1226
# There might be people who depend on the old broken behavior: `$host'
1227
# used to hold the argument of --host etc.
1228
# FIXME: To remove some day.
1229
build=$build_alias
1230
host=$host_alias
1231
target=$target_alias
1232
 
1233
# FIXME: To remove some day.
1234
if test "x$host_alias" != x; then
1235
  if test "x$build_alias" = x; then
1236
    cross_compiling=maybe
1237
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1238
    If a cross compiler is detected then cross compile mode will be used." >&2
1239
  elif test "x$build_alias" != "x$host_alias"; then
1240
    cross_compiling=yes
1241
  fi
1242
fi
1243
 
1244
ac_tool_prefix=
1245
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
 
1247
test "$silent" = yes && exec 6>/dev/null
1248
 
1249
 
1250
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251
ac_ls_di=`ls -di .` &&
1252
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253
  as_fn_error "working directory cannot be determined"
1254
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255
  as_fn_error "pwd does not report name of working directory"
1256
 
1257
 
1258
# Find the source files, if location was not specified.
1259
if test -z "$srcdir"; then
1260
  ac_srcdir_defaulted=yes
1261
  # Try the directory containing this script, then the parent directory.
1262
  ac_confdir=`$as_dirname -- "$as_myself" ||
1263
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264
         X"$as_myself" : 'X\(//\)[^/]' \| \
1265
         X"$as_myself" : 'X\(//\)$' \| \
1266
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267
$as_echo X"$as_myself" |
1268
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269
            s//\1/
1270
            q
1271
          }
1272
          /^X\(\/\/\)[^/].*/{
1273
            s//\1/
1274
            q
1275
          }
1276
          /^X\(\/\/\)$/{
1277
            s//\1/
1278
            q
1279
          }
1280
          /^X\(\/\).*/{
1281
            s//\1/
1282
            q
1283
          }
1284
          s/.*/./; q'`
1285
  srcdir=$ac_confdir
1286
  if test ! -r "$srcdir/$ac_unique_file"; then
1287
    srcdir=..
1288
  fi
1289
else
1290
  ac_srcdir_defaulted=no
1291
fi
1292
if test ! -r "$srcdir/$ac_unique_file"; then
1293
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1295
fi
1296
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297
ac_abs_confdir=`(
1298
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1299
        pwd)`
1300
# When building in place, set srcdir=.
1301
if test "$ac_abs_confdir" = "$ac_pwd"; then
1302
  srcdir=.
1303
fi
1304
# Remove unnecessary trailing slashes from srcdir.
1305
# Double slashes in file names in object file debugging info
1306
# mess up M-x gdb in Emacs.
1307
case $srcdir in
1308
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309
esac
1310
for ac_var in $ac_precious_vars; do
1311
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312
  eval ac_env_${ac_var}_value=\$${ac_var}
1313
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315
done
1316
 
1317
#
1318
# Report the --help message.
1319
#
1320
if test "$ac_init_help" = "long"; then
1321
  # Omit some internal or obsolete options to make the list less imposing.
1322
  # This message is too long to be a string in the A/UX 3.1 sh.
1323
  cat <<_ACEOF
1324
\`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1325
 
1326
Usage: $0 [OPTION]... [VAR=VALUE]...
1327
 
1328
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329
VAR=VALUE.  See below for descriptions of some of the useful variables.
1330
 
1331
Defaults for the options are specified in brackets.
1332
 
1333
Configuration:
1334
  -h, --help              display this help and exit
1335
      --help=short        display options specific to this package
1336
      --help=recursive    display the short help of all the included packages
1337
  -V, --version           display version information and exit
1338
  -q, --quiet, --silent   do not print \`checking...' messages
1339
      --cache-file=FILE   cache test results in FILE [disabled]
1340
  -C, --config-cache      alias for \`--cache-file=config.cache'
1341
  -n, --no-create         do not create output files
1342
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1343
 
1344
Installation directories:
1345
  --prefix=PREFIX         install architecture-independent files in PREFIX
1346
                          [$ac_default_prefix]
1347
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1348
                          [PREFIX]
1349
 
1350
By default, \`make install' will install all the files in
1351
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1352
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353
for instance \`--prefix=\$HOME'.
1354
 
1355
For better control, use the options below.
1356
 
1357
Fine tuning of the installation directories:
1358
  --bindir=DIR            user executables [EPREFIX/bin]
1359
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1360
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1361
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1362
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1363
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1364
  --libdir=DIR            object code libraries [EPREFIX/lib]
1365
  --includedir=DIR        C header files [PREFIX/include]
1366
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1367
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1368
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1369
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1370
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1371
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1372
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgomp]
1373
  --htmldir=DIR           html documentation [DOCDIR]
1374
  --dvidir=DIR            dvi documentation [DOCDIR]
1375
  --pdfdir=DIR            pdf documentation [DOCDIR]
1376
  --psdir=DIR             ps documentation [DOCDIR]
1377
_ACEOF
1378
 
1379
  cat <<\_ACEOF
1380
 
1381
Program names:
1382
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1383
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1384
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1385
 
1386
System types:
1387
  --build=BUILD     configure for building on BUILD [guessed]
1388
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389
  --target=TARGET   configure for building compilers for TARGET [HOST]
1390
_ACEOF
1391
fi
1392
 
1393
if test -n "$ac_init_help"; then
1394
  case $ac_init_help in
1395
     short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1396
   esac
1397
  cat <<\_ACEOF
1398
 
1399
Optional Features:
1400
  --disable-option-checking  ignore unrecognized --enable/--with options
1401
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1402
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1403
  --enable-version-specific-runtime-libs
1404
                          Specify that runtime libraries should be installed
1405
                          in a compiler-specific directory [default=no]
1406
  --enable-generated-files-in-srcdir
1407
                          put copies of generated files in source dir intended
1408
                          for creating source tarballs for users without
1409
                          texinfo bison or flex. [default=no]
1410
  --enable-multilib       build many library versions (default)
1411
  --disable-dependency-tracking  speeds up one-time build
1412
  --enable-dependency-tracking   do not reject slow dependency extractors
1413
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1414
  --enable-static[=PKGS]  build static libraries [default=yes]
1415
  --enable-fast-install[=PKGS]
1416
                          optimize for fast installation [default=yes]
1417
  --disable-libtool-lock  avoid locking (might break parallel builds)
1418
  --enable-maintainer-mode  enable make rules and dependencies not useful
1419
                          (and sometimes confusing) to the casual installer
1420
  --enable-linux-futex    use the Linux futex system call [default=default]
1421
  --enable-tls            Use thread-local storage [default=yes]
1422
  --enable-symvers=STYLE  enables symbol versioning of the shared library
1423
                          [default=yes]
1424
 
1425
Optional Packages:
1426
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1427
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1428
  --with-pic              try to use only PIC/non-PIC objects [default=use
1429
                          both]
1430
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1431
 
1432
Some influential environment variables:
1433
  CC          C compiler command
1434
  CFLAGS      C compiler flags
1435
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1436
              nonstandard directory 
1437
  LIBS        libraries to pass to the linker, e.g. -l
1438
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1439
              you have headers in a nonstandard directory 
1440
  CPP         C preprocessor
1441
  FC          Fortran compiler command
1442
  FCFLAGS     Fortran compiler flags
1443
 
1444
Use these variables to override the choices made by `configure' or to help
1445
it to find libraries and programs with nonstandard names/locations.
1446
 
1447
Report bugs to the package provider.
1448
GNU OpenMP Runtime Library home page: .
1449
General help using GNU software: .
1450
_ACEOF
1451
ac_status=$?
1452
fi
1453
 
1454
if test "$ac_init_help" = "recursive"; then
1455
  # If there are subdirs, report their specific --help.
1456
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457
    test -d "$ac_dir" ||
1458
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459
      continue
1460
    ac_builddir=.
1461
 
1462
case "$ac_dir" in
1463
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464
*)
1465
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466
  # A ".." for each directory in $ac_dir_suffix.
1467
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468
  case $ac_top_builddir_sub in
1469
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471
  esac ;;
1472
esac
1473
ac_abs_top_builddir=$ac_pwd
1474
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475
# for backward compatibility:
1476
ac_top_builddir=$ac_top_build_prefix
1477
 
1478
case $srcdir in
1479
  .)  # We are building in place.
1480
    ac_srcdir=.
1481
    ac_top_srcdir=$ac_top_builddir_sub
1482
    ac_abs_top_srcdir=$ac_pwd ;;
1483
  [\\/]* | ?:[\\/]* )  # Absolute name.
1484
    ac_srcdir=$srcdir$ac_dir_suffix;
1485
    ac_top_srcdir=$srcdir
1486
    ac_abs_top_srcdir=$srcdir ;;
1487
  *) # Relative name.
1488
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1490
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491
esac
1492
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
 
1494
    cd "$ac_dir" || { ac_status=$?; continue; }
1495
    # Check for guested configure.
1496
    if test -f "$ac_srcdir/configure.gnu"; then
1497
      echo &&
1498
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499
    elif test -f "$ac_srcdir/configure"; then
1500
      echo &&
1501
      $SHELL "$ac_srcdir/configure" --help=recursive
1502
    else
1503
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504
    fi || ac_status=$?
1505
    cd "$ac_pwd" || { ac_status=$?; break; }
1506
  done
1507
fi
1508
 
1509
test -n "$ac_init_help" && exit $ac_status
1510
if $ac_init_version; then
1511
  cat <<\_ACEOF
1512
GNU OpenMP Runtime Library configure 1.0
1513
generated by GNU Autoconf 2.64
1514
 
1515
Copyright (C) 2009 Free Software Foundation, Inc.
1516
This configure script is free software; the Free Software Foundation
1517
gives unlimited permission to copy, distribute and modify it.
1518
_ACEOF
1519
  exit
1520
fi
1521
 
1522
## ------------------------ ##
1523
## Autoconf initialization. ##
1524
## ------------------------ ##
1525
 
1526
# ac_fn_c_try_compile LINENO
1527
# --------------------------
1528
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1529
ac_fn_c_try_compile ()
1530
{
1531
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532
  rm -f conftest.$ac_objext
1533
  if { { ac_try="$ac_compile"
1534
case "(($ac_try" in
1535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536
  *) ac_try_echo=$ac_try;;
1537
esac
1538
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539
$as_echo "$ac_try_echo"; } >&5
1540
  (eval "$ac_compile") 2>conftest.err
1541
  ac_status=$?
1542
  if test -s conftest.err; then
1543
    grep -v '^ *+' conftest.err >conftest.er1
1544
    cat conftest.er1 >&5
1545
    mv -f conftest.er1 conftest.err
1546
  fi
1547
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548
  test $ac_status = 0; } && {
1549
         test -z "$ac_c_werror_flag" ||
1550
         test ! -s conftest.err
1551
       } && test -s conftest.$ac_objext; then :
1552
  ac_retval=0
1553
else
1554
  $as_echo "$as_me: failed program was:" >&5
1555
sed 's/^/| /' conftest.$ac_ext >&5
1556
 
1557
        ac_retval=1
1558
fi
1559
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560
  return $ac_retval
1561
 
1562
} # ac_fn_c_try_compile
1563
 
1564
# ac_fn_c_try_link LINENO
1565
# -----------------------
1566
# Try to link conftest.$ac_ext, and return whether this succeeded.
1567
ac_fn_c_try_link ()
1568
{
1569
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570
  rm -f conftest.$ac_objext conftest$ac_exeext
1571
  if { { ac_try="$ac_link"
1572
case "(($ac_try" in
1573
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574
  *) ac_try_echo=$ac_try;;
1575
esac
1576
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577
$as_echo "$ac_try_echo"; } >&5
1578
  (eval "$ac_link") 2>conftest.err
1579
  ac_status=$?
1580
  if test -s conftest.err; then
1581
    grep -v '^ *+' conftest.err >conftest.er1
1582
    cat conftest.er1 >&5
1583
    mv -f conftest.er1 conftest.err
1584
  fi
1585
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586
  test $ac_status = 0; } && {
1587
         test -z "$ac_c_werror_flag" ||
1588
         test ! -s conftest.err
1589
       } && test -s conftest$ac_exeext && {
1590
         test "$cross_compiling" = yes ||
1591
         $as_test_x conftest$ac_exeext
1592
       }; then :
1593
  ac_retval=0
1594
else
1595
  $as_echo "$as_me: failed program was:" >&5
1596
sed 's/^/| /' conftest.$ac_ext >&5
1597
 
1598
        ac_retval=1
1599
fi
1600
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602
  # interfere with the next link command; also delete a directory that is
1603
  # left behind by Apple's compiler.  We do this before executing the actions.
1604
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606
  return $ac_retval
1607
 
1608
} # ac_fn_c_try_link
1609
 
1610
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1611
# -------------------------------------------------------
1612
# Tests whether HEADER exists and can be compiled using the include files in
1613
# INCLUDES, setting the cache variable VAR accordingly.
1614
ac_fn_c_check_header_compile ()
1615
{
1616
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618
$as_echo_n "checking for $2... " >&6; }
1619
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1620
  $as_echo_n "(cached) " >&6
1621
else
1622
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623
/* end confdefs.h.  */
1624
$4
1625
#include <$2>
1626
_ACEOF
1627
if ac_fn_c_try_compile "$LINENO"; then :
1628
  eval "$3=yes"
1629
else
1630
  eval "$3=no"
1631
fi
1632
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633
fi
1634
eval ac_res=\$$3
1635
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636
$as_echo "$ac_res" >&6; }
1637
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638
 
1639
} # ac_fn_c_check_header_compile
1640
 
1641
# ac_fn_c_try_cpp LINENO
1642
# ----------------------
1643
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644
ac_fn_c_try_cpp ()
1645
{
1646
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1648
case "(($ac_try" in
1649
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650
  *) ac_try_echo=$ac_try;;
1651
esac
1652
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653
$as_echo "$ac_try_echo"; } >&5
1654
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655
  ac_status=$?
1656
  if test -s conftest.err; then
1657
    grep -v '^ *+' conftest.err >conftest.er1
1658
    cat conftest.er1 >&5
1659
    mv -f conftest.er1 conftest.err
1660
  fi
1661
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662
  test $ac_status = 0; } >/dev/null && {
1663
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664
         test ! -s conftest.err
1665
       }; then :
1666
  ac_retval=0
1667
else
1668
  $as_echo "$as_me: failed program was:" >&5
1669
sed 's/^/| /' conftest.$ac_ext >&5
1670
 
1671
    ac_retval=1
1672
fi
1673
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674
  return $ac_retval
1675
 
1676
} # ac_fn_c_try_cpp
1677
 
1678
# ac_fn_c_try_run LINENO
1679
# ----------------------
1680
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681
# that executables *can* be run.
1682
ac_fn_c_try_run ()
1683
{
1684
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685
  if { { ac_try="$ac_link"
1686
case "(($ac_try" in
1687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688
  *) ac_try_echo=$ac_try;;
1689
esac
1690
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691
$as_echo "$ac_try_echo"; } >&5
1692
  (eval "$ac_link") 2>&5
1693
  ac_status=$?
1694
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696
  { { case "(($ac_try" in
1697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698
  *) ac_try_echo=$ac_try;;
1699
esac
1700
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701
$as_echo "$ac_try_echo"; } >&5
1702
  (eval "$ac_try") 2>&5
1703
  ac_status=$?
1704
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705
  test $ac_status = 0; }; }; then :
1706
  ac_retval=0
1707
else
1708
  $as_echo "$as_me: program exited with status $ac_status" >&5
1709
       $as_echo "$as_me: failed program was:" >&5
1710
sed 's/^/| /' conftest.$ac_ext >&5
1711
 
1712
       ac_retval=$ac_status
1713
fi
1714
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716
  return $ac_retval
1717
 
1718
} # ac_fn_c_try_run
1719
 
1720
# ac_fn_c_check_func LINENO FUNC VAR
1721
# ----------------------------------
1722
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1723
ac_fn_c_check_func ()
1724
{
1725
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727
$as_echo_n "checking for $2... " >&6; }
1728
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729
  $as_echo_n "(cached) " >&6
1730
else
1731
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732
/* end confdefs.h.  */
1733
/* Define $2 to an innocuous variant, in case  declares $2.
1734
   For example, HP-UX 11i  declares gettimeofday.  */
1735
#define $2 innocuous_$2
1736
 
1737
/* System header to define __stub macros and hopefully few prototypes,
1738
    which can conflict with char $2 (); below.
1739
    Prefer  to  if __STDC__ is defined, since
1740
     exists even on freestanding compilers.  */
1741
 
1742
#ifdef __STDC__
1743
# include 
1744
#else
1745
# include 
1746
#endif
1747
 
1748
#undef $2
1749
 
1750
/* Override any GCC internal prototype to avoid an error.
1751
   Use char because int might match the return type of a GCC
1752
   builtin and then its argument prototype would still apply.  */
1753
#ifdef __cplusplus
1754
extern "C"
1755
#endif
1756
char $2 ();
1757
/* The GNU C library defines this for functions which it implements
1758
    to always fail with ENOSYS.  Some functions are actually named
1759
    something starting with __ and the normal name is an alias.  */
1760
#if defined __stub_$2 || defined __stub___$2
1761
choke me
1762
#endif
1763
 
1764
int
1765
main ()
1766
{
1767
return $2 ();
1768
  ;
1769
  return 0;
1770
}
1771
_ACEOF
1772
if ac_fn_c_try_link "$LINENO"; then :
1773
  eval "$3=yes"
1774
else
1775
  eval "$3=no"
1776
fi
1777
rm -f core conftest.err conftest.$ac_objext \
1778
    conftest$ac_exeext conftest.$ac_ext
1779
fi
1780
eval ac_res=\$$3
1781
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782
$as_echo "$ac_res" >&6; }
1783
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784
 
1785
} # ac_fn_c_check_func
1786
 
1787
# ac_fn_fc_try_compile LINENO
1788
# ---------------------------
1789
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1790
ac_fn_fc_try_compile ()
1791
{
1792
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793
  rm -f conftest.$ac_objext
1794
  if { { ac_try="$ac_compile"
1795
case "(($ac_try" in
1796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797
  *) ac_try_echo=$ac_try;;
1798
esac
1799
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800
$as_echo "$ac_try_echo"; } >&5
1801
  (eval "$ac_compile") 2>conftest.err
1802
  ac_status=$?
1803
  if test -s conftest.err; then
1804
    grep -v '^ *+' conftest.err >conftest.er1
1805
    cat conftest.er1 >&5
1806
    mv -f conftest.er1 conftest.err
1807
  fi
1808
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809
  test $ac_status = 0; } && {
1810
         test -z "$ac_fc_werror_flag" ||
1811
         test ! -s conftest.err
1812
       } && test -s conftest.$ac_objext; then :
1813
  ac_retval=0
1814
else
1815
  $as_echo "$as_me: failed program was:" >&5
1816
sed 's/^/| /' conftest.$ac_ext >&5
1817
 
1818
        ac_retval=1
1819
fi
1820
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821
  return $ac_retval
1822
 
1823
} # ac_fn_fc_try_compile
1824
 
1825
# ac_fn_fc_try_link LINENO
1826
# ------------------------
1827
# Try to link conftest.$ac_ext, and return whether this succeeded.
1828
ac_fn_fc_try_link ()
1829
{
1830
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831
  rm -f conftest.$ac_objext conftest$ac_exeext
1832
  if { { ac_try="$ac_link"
1833
case "(($ac_try" in
1834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835
  *) ac_try_echo=$ac_try;;
1836
esac
1837
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838
$as_echo "$ac_try_echo"; } >&5
1839
  (eval "$ac_link") 2>conftest.err
1840
  ac_status=$?
1841
  if test -s conftest.err; then
1842
    grep -v '^ *+' conftest.err >conftest.er1
1843
    cat conftest.er1 >&5
1844
    mv -f conftest.er1 conftest.err
1845
  fi
1846
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847
  test $ac_status = 0; } && {
1848
         test -z "$ac_fc_werror_flag" ||
1849
         test ! -s conftest.err
1850
       } && test -s conftest$ac_exeext && {
1851
         test "$cross_compiling" = yes ||
1852
         $as_test_x conftest$ac_exeext
1853
       }; then :
1854
  ac_retval=0
1855
else
1856
  $as_echo "$as_me: failed program was:" >&5
1857
sed 's/^/| /' conftest.$ac_ext >&5
1858
 
1859
        ac_retval=1
1860
fi
1861
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863
  # interfere with the next link command; also delete a directory that is
1864
  # left behind by Apple's compiler.  We do this before executing the actions.
1865
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867
  return $ac_retval
1868
 
1869
} # ac_fn_fc_try_link
1870
 
1871
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1872
# -------------------------------------------------------
1873
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1874
# the include files in INCLUDES and setting the cache variable VAR
1875
# accordingly.
1876
ac_fn_c_check_header_mongrel ()
1877
{
1878
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881
$as_echo_n "checking for $2... " >&6; }
1882
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883
  $as_echo_n "(cached) " >&6
1884
fi
1885
eval ac_res=\$$3
1886
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887
$as_echo "$ac_res" >&6; }
1888
else
1889
  # Is the header compilable?
1890
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1891
$as_echo_n "checking $2 usability... " >&6; }
1892
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893
/* end confdefs.h.  */
1894
$4
1895
#include <$2>
1896
_ACEOF
1897
if ac_fn_c_try_compile "$LINENO"; then :
1898
  ac_header_compiler=yes
1899
else
1900
  ac_header_compiler=no
1901
fi
1902
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1904
$as_echo "$ac_header_compiler" >&6; }
1905
 
1906
# Is the header present?
1907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1908
$as_echo_n "checking $2 presence... " >&6; }
1909
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910
/* end confdefs.h.  */
1911
#include <$2>
1912
_ACEOF
1913
if ac_fn_c_try_cpp "$LINENO"; then :
1914
  ac_header_preproc=yes
1915
else
1916
  ac_header_preproc=no
1917
fi
1918
rm -f conftest.err conftest.$ac_ext
1919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1920
$as_echo "$ac_header_preproc" >&6; }
1921
 
1922
# So?  What about this header?
1923
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1924
  yes:no: )
1925
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1926
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1927
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1929
    ;;
1930
  no:yes:* )
1931
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1932
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1933
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1934
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1935
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1936
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1937
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1938
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1939
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1940
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1941
    ;;
1942
esac
1943
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944
$as_echo_n "checking for $2... " >&6; }
1945
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946
  $as_echo_n "(cached) " >&6
1947
else
1948
  eval "$3=\$ac_header_compiler"
1949
fi
1950
eval ac_res=\$$3
1951
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952
$as_echo "$ac_res" >&6; }
1953
fi
1954
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955
 
1956
} # ac_fn_c_check_header_mongrel
1957
 
1958
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1959
# -------------------------------------------
1960
# Tests whether TYPE exists after having included INCLUDES, setting cache
1961
# variable VAR accordingly.
1962
ac_fn_c_check_type ()
1963
{
1964
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966
$as_echo_n "checking for $2... " >&6; }
1967
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968
  $as_echo_n "(cached) " >&6
1969
else
1970
  eval "$3=no"
1971
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972
/* end confdefs.h.  */
1973
$4
1974
int
1975
main ()
1976
{
1977
if (sizeof ($2))
1978
         return 0;
1979
  ;
1980
  return 0;
1981
}
1982
_ACEOF
1983
if ac_fn_c_try_compile "$LINENO"; then :
1984
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985
/* end confdefs.h.  */
1986
$4
1987
int
1988
main ()
1989
{
1990
if (sizeof (($2)))
1991
            return 0;
1992
  ;
1993
  return 0;
1994
}
1995
_ACEOF
1996
if ac_fn_c_try_compile "$LINENO"; then :
1997
 
1998
else
1999
  eval "$3=yes"
2000
fi
2001
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002
fi
2003
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004
fi
2005
eval ac_res=\$$3
2006
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007
$as_echo "$ac_res" >&6; }
2008
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009
 
2010
} # ac_fn_c_check_type
2011
 
2012
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2013
# --------------------------------------------
2014
# Tries to find the compile-time value of EXPR in a program that includes
2015
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2016
# computed
2017
ac_fn_c_compute_int ()
2018
{
2019
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020
  if test "$cross_compiling" = yes; then
2021
    # Depending upon the size, compute the lo and hi bounds.
2022
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023
/* end confdefs.h.  */
2024
$4
2025
int
2026
main ()
2027
{
2028
static int test_array [1 - 2 * !(($2) >= 0)];
2029
test_array [0] = 0
2030
 
2031
  ;
2032
  return 0;
2033
}
2034
_ACEOF
2035
if ac_fn_c_try_compile "$LINENO"; then :
2036
  ac_lo=0 ac_mid=0
2037
  while :; do
2038
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039
/* end confdefs.h.  */
2040
$4
2041
int
2042
main ()
2043
{
2044
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2045
test_array [0] = 0
2046
 
2047
  ;
2048
  return 0;
2049
}
2050
_ACEOF
2051
if ac_fn_c_try_compile "$LINENO"; then :
2052
  ac_hi=$ac_mid; break
2053
else
2054
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2055
                        if test $ac_lo -le $ac_mid; then
2056
                          ac_lo= ac_hi=
2057
                          break
2058
                        fi
2059
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2060
fi
2061
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062
  done
2063
else
2064
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065
/* end confdefs.h.  */
2066
$4
2067
int
2068
main ()
2069
{
2070
static int test_array [1 - 2 * !(($2) < 0)];
2071
test_array [0] = 0
2072
 
2073
  ;
2074
  return 0;
2075
}
2076
_ACEOF
2077
if ac_fn_c_try_compile "$LINENO"; then :
2078
  ac_hi=-1 ac_mid=-1
2079
  while :; do
2080
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081
/* end confdefs.h.  */
2082
$4
2083
int
2084
main ()
2085
{
2086
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2087
test_array [0] = 0
2088
 
2089
  ;
2090
  return 0;
2091
}
2092
_ACEOF
2093
if ac_fn_c_try_compile "$LINENO"; then :
2094
  ac_lo=$ac_mid; break
2095
else
2096
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2097
                        if test $ac_mid -le $ac_hi; then
2098
                          ac_lo= ac_hi=
2099
                          break
2100
                        fi
2101
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2102
fi
2103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104
  done
2105
else
2106
  ac_lo= ac_hi=
2107
fi
2108
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109
fi
2110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111
# Binary search between lo and hi bounds.
2112
while test "x$ac_lo" != "x$ac_hi"; do
2113
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2114
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115
/* end confdefs.h.  */
2116
$4
2117
int
2118
main ()
2119
{
2120
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2121
test_array [0] = 0
2122
 
2123
  ;
2124
  return 0;
2125
}
2126
_ACEOF
2127
if ac_fn_c_try_compile "$LINENO"; then :
2128
  ac_hi=$ac_mid
2129
else
2130
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2131
fi
2132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133
done
2134
case $ac_lo in #((
2135
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2136
'') ac_retval=1 ;;
2137
esac
2138
  else
2139
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140
/* end confdefs.h.  */
2141
$4
2142
static long int longval () { return $2; }
2143
static unsigned long int ulongval () { return $2; }
2144
#include 
2145
#include 
2146
int
2147
main ()
2148
{
2149
 
2150
  FILE *f = fopen ("conftest.val", "w");
2151
  if (! f)
2152
    return 1;
2153
  if (($2) < 0)
2154
    {
2155
      long int i = longval ();
2156
      if (i != ($2))
2157
        return 1;
2158
      fprintf (f, "%ld", i);
2159
    }
2160
  else
2161
    {
2162
      unsigned long int i = ulongval ();
2163
      if (i != ($2))
2164
        return 1;
2165
      fprintf (f, "%lu", i);
2166
    }
2167
  /* Do not output a trailing newline, as this causes \r\n confusion
2168
     on some platforms.  */
2169
  return ferror (f) || fclose (f) != 0;
2170
 
2171
  ;
2172
  return 0;
2173
}
2174
_ACEOF
2175
if ac_fn_c_try_run "$LINENO"; then :
2176
  echo >>conftest.val; read $3 
2177
else
2178
  ac_retval=1
2179
fi
2180
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2181
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2182
rm -f conftest.val
2183
 
2184
  fi
2185
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2186
  return $ac_retval
2187
 
2188
} # ac_fn_c_compute_int
2189
cat >config.log <<_ACEOF
2190
This file contains any messages produced by compilers while
2191
running configure, to aid debugging if configure makes a mistake.
2192
 
2193
It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2194
generated by GNU Autoconf 2.64.  Invocation command line was
2195
 
2196
  $ $0 $@
2197
 
2198
_ACEOF
2199
exec 5>>config.log
2200
{
2201
cat <<_ASUNAME
2202
## --------- ##
2203
## Platform. ##
2204
## --------- ##
2205
 
2206
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2211
 
2212
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2214
 
2215
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2216
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2217
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2219
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2220
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2221
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2222
 
2223
_ASUNAME
2224
 
2225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226
for as_dir in $PATH
2227
do
2228
  IFS=$as_save_IFS
2229
  test -z "$as_dir" && as_dir=.
2230
    $as_echo "PATH: $as_dir"
2231
  done
2232
IFS=$as_save_IFS
2233
 
2234
} >&5
2235
 
2236
cat >&5 <<_ACEOF
2237
 
2238
 
2239
## ----------- ##
2240
## Core tests. ##
2241
## ----------- ##
2242
 
2243
_ACEOF
2244
 
2245
 
2246
# Keep a trace of the command line.
2247
# Strip out --no-create and --no-recursion so they do not pile up.
2248
# Strip out --silent because we don't want to record it for future runs.
2249
# Also quote any args containing shell meta-characters.
2250
# Make two passes to allow for proper duplicate-argument suppression.
2251
ac_configure_args=
2252
ac_configure_args0=
2253
ac_configure_args1=
2254
ac_must_keep_next=false
2255
for ac_pass in 1 2
2256
do
2257
  for ac_arg
2258
  do
2259
    case $ac_arg in
2260
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262
    | -silent | --silent | --silen | --sile | --sil)
2263
      continue ;;
2264
    *\'*)
2265
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2266
    esac
2267
    case $ac_pass in
2268
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269
    2)
2270
      as_fn_append ac_configure_args1 " '$ac_arg'"
2271
      if test $ac_must_keep_next = true; then
2272
        ac_must_keep_next=false # Got value, back to normal.
2273
      else
2274
        case $ac_arg in
2275
          *=* | --config-cache | -C | -disable-* | --disable-* \
2276
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278
          | -with-* | --with-* | -without-* | --without-* | --x)
2279
            case "$ac_configure_args0 " in
2280
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2281
            esac
2282
            ;;
2283
          -* ) ac_must_keep_next=true ;;
2284
        esac
2285
      fi
2286
      as_fn_append ac_configure_args " '$ac_arg'"
2287
      ;;
2288
    esac
2289
  done
2290
done
2291
{ ac_configure_args0=; unset ac_configure_args0;}
2292
{ ac_configure_args1=; unset ac_configure_args1;}
2293
 
2294
# When interrupted or exit'd, cleanup temporary files, and complete
2295
# config.log.  We remove comments because anyway the quotes in there
2296
# would cause problems or look ugly.
2297
# WARNING: Use '\'' to represent an apostrophe within the trap.
2298
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299
trap 'exit_status=$?
2300
  # Save into config.log some information that might help in debugging.
2301
  {
2302
    echo
2303
 
2304
    cat <<\_ASBOX
2305
## ---------------- ##
2306
## Cache variables. ##
2307
## ---------------- ##
2308
_ASBOX
2309
    echo
2310
    # The following way of writing the cache mishandles newlines in values,
2311
(
2312
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2313
    eval ac_val=\$$ac_var
2314
    case $ac_val in #(
2315
    *${as_nl}*)
2316
      case $ac_var in #(
2317
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2318
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319
      esac
2320
      case $ac_var in #(
2321
      _ | IFS | as_nl) ;; #(
2322
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2323
      *) { eval $ac_var=; unset $ac_var;} ;;
2324
      esac ;;
2325
    esac
2326
  done
2327
  (set) 2>&1 |
2328
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2329
    *${as_nl}ac_space=\ *)
2330
      sed -n \
2331
        "s/'\''/'\''\\\\'\'''\''/g;
2332
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333
      ;; #(
2334
    *)
2335
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2336
      ;;
2337
    esac |
2338
    sort
2339
)
2340
    echo
2341
 
2342
    cat <<\_ASBOX
2343
## ----------------- ##
2344
## Output variables. ##
2345
## ----------------- ##
2346
_ASBOX
2347
    echo
2348
    for ac_var in $ac_subst_vars
2349
    do
2350
      eval ac_val=\$$ac_var
2351
      case $ac_val in
2352
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353
      esac
2354
      $as_echo "$ac_var='\''$ac_val'\''"
2355
    done | sort
2356
    echo
2357
 
2358
    if test -n "$ac_subst_files"; then
2359
      cat <<\_ASBOX
2360
## ------------------- ##
2361
## File substitutions. ##
2362
## ------------------- ##
2363
_ASBOX
2364
      echo
2365
      for ac_var in $ac_subst_files
2366
      do
2367
        eval ac_val=\$$ac_var
2368
        case $ac_val in
2369
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370
        esac
2371
        $as_echo "$ac_var='\''$ac_val'\''"
2372
      done | sort
2373
      echo
2374
    fi
2375
 
2376
    if test -s confdefs.h; then
2377
      cat <<\_ASBOX
2378
## ----------- ##
2379
## confdefs.h. ##
2380
## ----------- ##
2381
_ASBOX
2382
      echo
2383
      cat confdefs.h
2384
      echo
2385
    fi
2386
    test "$ac_signal" != 0 &&
2387
      $as_echo "$as_me: caught signal $ac_signal"
2388
    $as_echo "$as_me: exit $exit_status"
2389
  } >&5
2390
  rm -f core *.core core.conftest.* &&
2391
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2392
    exit $exit_status
2393
' 0
2394
for ac_signal in 1 2 13 15; do
2395
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2396
done
2397
ac_signal=0
2398
 
2399
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2400
rm -f -r conftest* confdefs.h
2401
 
2402
$as_echo "/* confdefs.h */" > confdefs.h
2403
 
2404
# Predefined preprocessor variables.
2405
 
2406
cat >>confdefs.h <<_ACEOF
2407
#define PACKAGE_NAME "$PACKAGE_NAME"
2408
_ACEOF
2409
 
2410
cat >>confdefs.h <<_ACEOF
2411
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2412
_ACEOF
2413
 
2414
cat >>confdefs.h <<_ACEOF
2415
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2416
_ACEOF
2417
 
2418
cat >>confdefs.h <<_ACEOF
2419
#define PACKAGE_STRING "$PACKAGE_STRING"
2420
_ACEOF
2421
 
2422
cat >>confdefs.h <<_ACEOF
2423
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2424
_ACEOF
2425
 
2426
cat >>confdefs.h <<_ACEOF
2427
#define PACKAGE_URL "$PACKAGE_URL"
2428
_ACEOF
2429
 
2430
 
2431
# Let the site file select an alternate cache file if it wants to.
2432
# Prefer an explicitly selected file to automatically selected ones.
2433
ac_site_file1=NONE
2434
ac_site_file2=NONE
2435
if test -n "$CONFIG_SITE"; then
2436
  ac_site_file1=$CONFIG_SITE
2437
elif test "x$prefix" != xNONE; then
2438
  ac_site_file1=$prefix/share/config.site
2439
  ac_site_file2=$prefix/etc/config.site
2440
else
2441
  ac_site_file1=$ac_default_prefix/share/config.site
2442
  ac_site_file2=$ac_default_prefix/etc/config.site
2443
fi
2444
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445
do
2446
  test "x$ac_site_file" = xNONE && continue
2447
  if test -r "$ac_site_file"; then
2448
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450
    sed 's/^/| /' "$ac_site_file" >&5
2451
    . "$ac_site_file"
2452
  fi
2453
done
2454
 
2455
if test -r "$cache_file"; then
2456
  # Some versions of bash will fail to source /dev/null (special
2457
  # files actually), so we avoid doing that.
2458
  if test -f "$cache_file"; then
2459
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460
$as_echo "$as_me: loading cache $cache_file" >&6;}
2461
    case $cache_file in
2462
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463
      *)                      . "./$cache_file";;
2464
    esac
2465
  fi
2466
else
2467
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468
$as_echo "$as_me: creating cache $cache_file" >&6;}
2469
  >$cache_file
2470
fi
2471
 
2472
# Check that the precious variables saved in the cache have kept the same
2473
# value.
2474
ac_cache_corrupted=false
2475
for ac_var in $ac_precious_vars; do
2476
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477
  eval ac_new_set=\$ac_env_${ac_var}_set
2478
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479
  eval ac_new_val=\$ac_env_${ac_var}_value
2480
  case $ac_old_set,$ac_new_set in
2481
    set,)
2482
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484
      ac_cache_corrupted=: ;;
2485
    ,set)
2486
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488
      ac_cache_corrupted=: ;;
2489
    ,);;
2490
    *)
2491
      if test "x$ac_old_val" != "x$ac_new_val"; then
2492
        # differences in whitespace do not lead to failure.
2493
        ac_old_val_w=`echo x $ac_old_val`
2494
        ac_new_val_w=`echo x $ac_new_val`
2495
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498
          ac_cache_corrupted=:
2499
        else
2500
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502
          eval $ac_var=\$ac_old_val
2503
        fi
2504
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2505
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2506
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2507
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2508
      fi;;
2509
  esac
2510
  # Pass precious variables to config.status.
2511
  if test "$ac_new_set" = set; then
2512
    case $ac_new_val in
2513
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514
    *) ac_arg=$ac_var=$ac_new_val ;;
2515
    esac
2516
    case " $ac_configure_args " in
2517
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2518
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519
    esac
2520
  fi
2521
done
2522
if $ac_cache_corrupted; then
2523
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2528
fi
2529
## -------------------- ##
2530
## Main body of script. ##
2531
## -------------------- ##
2532
 
2533
ac_ext=c
2534
ac_cpp='$CPP $CPPFLAGS'
2535
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
 
2539
 
2540
 
2541
 
2542
 
2543
ac_config_headers="$ac_config_headers config.h"
2544
 
2545
 
2546
# -------
2547
# Options
2548
# -------
2549
 
2550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2551
$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2552
 # Check whether --enable-version-specific-runtime-libs was given.
2553
if test "${enable_version_specific_runtime_libs+set}" = set; then :
2554
  enableval=$enable_version_specific_runtime_libs;
2555
      case "$enableval" in
2556
       yes|no) ;;
2557
       *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2558
                          esac
2559
 
2560
else
2561
  enable_version_specific_runtime_libs=no
2562
fi
2563
 
2564
 
2565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2566
$as_echo "$enable_version_specific_runtime_libs" >&6; }
2567
 
2568
# We would like our source tree to be readonly. However when releases or
2569
# pre-releases are generated, the flex/bison generated files as well as the
2570
# various formats of manuals need to be included along with the rest of the
2571
# sources.  Therefore we have --enable-generated-files-in-srcdir to do
2572
# just that.
2573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2574
$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2575
 # Check whether --enable-generated-files-in-srcdir was given.
2576
if test "${enable_generated_files_in_srcdir+set}" = set; then :
2577
  enableval=$enable_generated_files_in_srcdir;
2578
      case "$enableval" in
2579
       yes|no) ;;
2580
       *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2581
                          esac
2582
 
2583
else
2584
  enable_generated_files_in_srcdir=no
2585
fi
2586
 
2587
 
2588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2589
$as_echo "$enable_generated_files_in_srcdir" >&6; }
2590
 if test "$enable_generated_files_in_srcdir" = yes; then
2591
  GENINSRC_TRUE=
2592
  GENINSRC_FALSE='#'
2593
else
2594
  GENINSRC_TRUE='#'
2595
  GENINSRC_FALSE=
2596
fi
2597
 
2598
 
2599
 
2600
# -------
2601
# -------
2602
 
2603
# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2604
#
2605
# You will slowly go insane if you do not grok the following fact:  when
2606
# building this library, the top-level /target/ becomes the library's /host/.
2607
#
2608
# configure then causes --target to default to --host, exactly like any
2609
# other package using autoconf.  Therefore, 'target' and 'host' will
2610
# always be the same.  This makes sense both for native and cross compilers
2611
# just think about it for a little while.  :-)
2612
#
2613
# Also, if this library is being configured as part of a cross compiler, the
2614
# top-level configure script will pass the "real" host as $with_cross_host.
2615
#
2616
# Do not delete or change the following two lines.  For why, see
2617
# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2618
ac_aux_dir=
2619
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2620
  for ac_t in install-sh install.sh shtool; do
2621
    if test -f "$ac_dir/$ac_t"; then
2622
      ac_aux_dir=$ac_dir
2623
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2624
      break 2
2625
    fi
2626
  done
2627
done
2628
if test -z "$ac_aux_dir"; then
2629
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2630
fi
2631
 
2632
# These three variables are undocumented and unsupported,
2633
# and are intended to be withdrawn in a future Autoconf release.
2634
# They can cause serious problems if a builder's source tree is in a directory
2635
# whose full name contains unusual characters.
2636
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2637
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2638
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2639
 
2640
 
2641
# Make sure we can run config.sub.
2642
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2643
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2644
 
2645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2646
$as_echo_n "checking build system type... " >&6; }
2647
if test "${ac_cv_build+set}" = set; then :
2648
  $as_echo_n "(cached) " >&6
2649
else
2650
  ac_build_alias=$build_alias
2651
test "x$ac_build_alias" = x &&
2652
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2653
test "x$ac_build_alias" = x &&
2654
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2655
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2656
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2657
 
2658
fi
2659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2660
$as_echo "$ac_cv_build" >&6; }
2661
case $ac_cv_build in
2662
*-*-*) ;;
2663
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2664
esac
2665
build=$ac_cv_build
2666
ac_save_IFS=$IFS; IFS='-'
2667
set x $ac_cv_build
2668
shift
2669
build_cpu=$1
2670
build_vendor=$2
2671
shift; shift
2672
# Remember, the first character of IFS is used to create $*,
2673
# except with old shells:
2674
build_os=$*
2675
IFS=$ac_save_IFS
2676
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2677
 
2678
 
2679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2680
$as_echo_n "checking host system type... " >&6; }
2681
if test "${ac_cv_host+set}" = set; then :
2682
  $as_echo_n "(cached) " >&6
2683
else
2684
  if test "x$host_alias" = x; then
2685
  ac_cv_host=$ac_cv_build
2686
else
2687
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2688
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2689
fi
2690
 
2691
fi
2692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2693
$as_echo "$ac_cv_host" >&6; }
2694
case $ac_cv_host in
2695
*-*-*) ;;
2696
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2697
esac
2698
host=$ac_cv_host
2699
ac_save_IFS=$IFS; IFS='-'
2700
set x $ac_cv_host
2701
shift
2702
host_cpu=$1
2703
host_vendor=$2
2704
shift; shift
2705
# Remember, the first character of IFS is used to create $*,
2706
# except with old shells:
2707
host_os=$*
2708
IFS=$ac_save_IFS
2709
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2710
 
2711
 
2712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2713
$as_echo_n "checking target system type... " >&6; }
2714
if test "${ac_cv_target+set}" = set; then :
2715
  $as_echo_n "(cached) " >&6
2716
else
2717
  if test "x$target_alias" = x; then
2718
  ac_cv_target=$ac_cv_host
2719
else
2720
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2721
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2722
fi
2723
 
2724
fi
2725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2726
$as_echo "$ac_cv_target" >&6; }
2727
case $ac_cv_target in
2728
*-*-*) ;;
2729
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2730
esac
2731
target=$ac_cv_target
2732
ac_save_IFS=$IFS; IFS='-'
2733
set x $ac_cv_target
2734
shift
2735
target_cpu=$1
2736
target_vendor=$2
2737
shift; shift
2738
# Remember, the first character of IFS is used to create $*,
2739
# except with old shells:
2740
target_os=$*
2741
IFS=$ac_save_IFS
2742
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2743
 
2744
 
2745
# The aliases save the names the user supplied, while $host etc.
2746
# will get canonicalized.
2747
test -n "$target_alias" &&
2748
  test "$program_prefix$program_suffix$program_transform_name" = \
2749
    NONENONEs,x,x, &&
2750
  program_prefix=${target_alias}-
2751
 
2752
target_alias=${target_alias-$host_alias}
2753
 
2754
# Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2755
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2756
#  1.9.0:  minimum required version
2757
#  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2758
#              of other PACKAGE_* variables will, however, and there's nothing
2759
#              we can do about that; they come from AC_INIT).
2760
#  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2761
#            file in the top srcdir, etc, etc), so stop complaining.
2762
#  no-dist:  we don't want 'dist' and related rules.
2763
#  -Wall:  turns on all automake warnings...
2764
#  -Wno-portability:  ...except this one, since GNU make is required.
2765
#  -Wno-override: ... and this one, since we do want this in testsuite.
2766
am__api_version='1.11'
2767
 
2768
# Find a good install program.  We prefer a C program (faster),
2769
# so one script is as good as another.  But avoid the broken or
2770
# incompatible versions:
2771
# SysV /etc/install, /usr/sbin/install
2772
# SunOS /usr/etc/install
2773
# IRIX /sbin/install
2774
# AIX /bin/install
2775
# AmigaOS /C/install, which installs bootblocks on floppy discs
2776
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2777
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2778
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2779
# OS/2's system install, which has a completely different semantic
2780
# ./install, which can be erroneously created by make from ./install.sh.
2781
# Reject install programs that cannot install multiple files.
2782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2783
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2784
if test -z "$INSTALL"; then
2785
if test "${ac_cv_path_install+set}" = set; then :
2786
  $as_echo_n "(cached) " >&6
2787
else
2788
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789
for as_dir in $PATH
2790
do
2791
  IFS=$as_save_IFS
2792
  test -z "$as_dir" && as_dir=.
2793
    # Account for people who put trailing slashes in PATH elements.
2794
case $as_dir/ in #((
2795
  ./ | .// | /[cC]/* | \
2796
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2797
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2798
  /usr/ucb/* ) ;;
2799
  *)
2800
    # OSF1 and SCO ODT 3.0 have their own names for install.
2801
    # Don't use installbsd from OSF since it installs stuff as root
2802
    # by default.
2803
    for ac_prog in ginstall scoinst install; do
2804
      for ac_exec_ext in '' $ac_executable_extensions; do
2805
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2806
          if test $ac_prog = install &&
2807
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2808
            # AIX install.  It has an incompatible calling convention.
2809
            :
2810
          elif test $ac_prog = install &&
2811
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812
            # program-specific install script used by HP pwplus--don't use.
2813
            :
2814
          else
2815
            rm -rf conftest.one conftest.two conftest.dir
2816
            echo one > conftest.one
2817
            echo two > conftest.two
2818
            mkdir conftest.dir
2819
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2820
              test -s conftest.one && test -s conftest.two &&
2821
              test -s conftest.dir/conftest.one &&
2822
              test -s conftest.dir/conftest.two
2823
            then
2824
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2825
              break 3
2826
            fi
2827
          fi
2828
        fi
2829
      done
2830
    done
2831
    ;;
2832
esac
2833
 
2834
  done
2835
IFS=$as_save_IFS
2836
 
2837
rm -rf conftest.one conftest.two conftest.dir
2838
 
2839
fi
2840
  if test "${ac_cv_path_install+set}" = set; then
2841
    INSTALL=$ac_cv_path_install
2842
  else
2843
    # As a last resort, use the slow shell script.  Don't cache a
2844
    # value for INSTALL within a source directory, because that will
2845
    # break other packages using the cache if that directory is
2846
    # removed, or if the value is a relative name.
2847
    INSTALL=$ac_install_sh
2848
  fi
2849
fi
2850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2851
$as_echo "$INSTALL" >&6; }
2852
 
2853
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2854
# It thinks the first close brace ends the variable substitution.
2855
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2856
 
2857
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2858
 
2859
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2860
 
2861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2862
$as_echo_n "checking whether build environment is sane... " >&6; }
2863
# Just in case
2864
sleep 1
2865
echo timestamp > conftest.file
2866
# Reject unsafe characters in $srcdir or the absolute working directory
2867
# name.  Accept space and tab only in the latter.
2868
am_lf='
2869
'
2870
case `pwd` in
2871
  *[\\\"\#\$\&\'\`$am_lf]*)
2872
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2873
esac
2874
case $srcdir in
2875
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2876
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2877
esac
2878
 
2879
# Do `set' in a subshell so we don't clobber the current shell's
2880
# arguments.  Must try -L first in case configure is actually a
2881
# symlink; some systems play weird games with the mod time of symlinks
2882
# (eg FreeBSD returns the mod time of the symlink's containing
2883
# directory).
2884
if (
2885
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2886
   if test "$*" = "X"; then
2887
      # -L didn't work.
2888
      set X `ls -t "$srcdir/configure" conftest.file`
2889
   fi
2890
   rm -f conftest.file
2891
   if test "$*" != "X $srcdir/configure conftest.file" \
2892
      && test "$*" != "X conftest.file $srcdir/configure"; then
2893
 
2894
      # If neither matched, then we have a broken ls.  This can happen
2895
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2896
      # broken ls alias from the environment.  This has actually
2897
      # happened.  Such a system could not be considered "sane".
2898
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2899
alias in your environment" "$LINENO" 5
2900
   fi
2901
 
2902
   test "$2" = conftest.file
2903
   )
2904
then
2905
   # Ok.
2906
   :
2907
else
2908
   as_fn_error "newly created file is older than distributed files!
2909
Check your system clock" "$LINENO" 5
2910
fi
2911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2912
$as_echo "yes" >&6; }
2913
test "$program_prefix" != NONE &&
2914
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2915
# Use a double $ so make ignores it.
2916
test "$program_suffix" != NONE &&
2917
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2918
# Double any \ or $.
2919
# By default was `s,x,x', remove it if useless.
2920
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2921
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2922
 
2923
# expand $ac_aux_dir to an absolute path
2924
am_aux_dir=`cd $ac_aux_dir && pwd`
2925
 
2926
if test x"${MISSING+set}" != xset; then
2927
  case $am_aux_dir in
2928
  *\ * | *\     *)
2929
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2930
  *)
2931
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2932
  esac
2933
fi
2934
# Use eval to expand $SHELL
2935
if eval "$MISSING --run true"; then
2936
  am_missing_run="$MISSING --run "
2937
else
2938
  am_missing_run=
2939
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2940
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2941
fi
2942
 
2943
if test x"${install_sh}" != xset; then
2944
  case $am_aux_dir in
2945
  *\ * | *\     *)
2946
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2947
  *)
2948
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2949
  esac
2950
fi
2951
 
2952
# Installed binaries are usually stripped using `strip' when the user
2953
# run `make install-strip'.  However `strip' might not be the right
2954
# tool to use in cross-compilation environments, therefore Automake
2955
# will honor the `STRIP' environment variable to overrule this program.
2956
if test "$cross_compiling" != no; then
2957
  if test -n "$ac_tool_prefix"; then
2958
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2959
set dummy ${ac_tool_prefix}strip; ac_word=$2
2960
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961
$as_echo_n "checking for $ac_word... " >&6; }
2962
if test "${ac_cv_prog_STRIP+set}" = set; then :
2963
  $as_echo_n "(cached) " >&6
2964
else
2965
  if test -n "$STRIP"; then
2966
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2967
else
2968
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969
for as_dir in $PATH
2970
do
2971
  IFS=$as_save_IFS
2972
  test -z "$as_dir" && as_dir=.
2973
    for ac_exec_ext in '' $ac_executable_extensions; do
2974
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2976
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977
    break 2
2978
  fi
2979
done
2980
  done
2981
IFS=$as_save_IFS
2982
 
2983
fi
2984
fi
2985
STRIP=$ac_cv_prog_STRIP
2986
if test -n "$STRIP"; then
2987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2988
$as_echo "$STRIP" >&6; }
2989
else
2990
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991
$as_echo "no" >&6; }
2992
fi
2993
 
2994
 
2995
fi
2996
if test -z "$ac_cv_prog_STRIP"; then
2997
  ac_ct_STRIP=$STRIP
2998
  # Extract the first word of "strip", so it can be a program name with args.
2999
set dummy strip; ac_word=$2
3000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001
$as_echo_n "checking for $ac_word... " >&6; }
3002
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3003
  $as_echo_n "(cached) " >&6
3004
else
3005
  if test -n "$ac_ct_STRIP"; then
3006
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3007
else
3008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009
for as_dir in $PATH
3010
do
3011
  IFS=$as_save_IFS
3012
  test -z "$as_dir" && as_dir=.
3013
    for ac_exec_ext in '' $ac_executable_extensions; do
3014
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015
    ac_cv_prog_ac_ct_STRIP="strip"
3016
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017
    break 2
3018
  fi
3019
done
3020
  done
3021
IFS=$as_save_IFS
3022
 
3023
fi
3024
fi
3025
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3026
if test -n "$ac_ct_STRIP"; then
3027
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3028
$as_echo "$ac_ct_STRIP" >&6; }
3029
else
3030
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031
$as_echo "no" >&6; }
3032
fi
3033
 
3034
  if test "x$ac_ct_STRIP" = x; then
3035
    STRIP=":"
3036
  else
3037
    case $cross_compiling:$ac_tool_warned in
3038
yes:)
3039
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041
ac_tool_warned=yes ;;
3042
esac
3043
    STRIP=$ac_ct_STRIP
3044
  fi
3045
else
3046
  STRIP="$ac_cv_prog_STRIP"
3047
fi
3048
 
3049
fi
3050
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3051
 
3052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3053
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3054
if test -z "$MKDIR_P"; then
3055
  if test "${ac_cv_path_mkdir+set}" = set; then :
3056
  $as_echo_n "(cached) " >&6
3057
else
3058
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3060
do
3061
  IFS=$as_save_IFS
3062
  test -z "$as_dir" && as_dir=.
3063
    for ac_prog in mkdir gmkdir; do
3064
         for ac_exec_ext in '' $ac_executable_extensions; do
3065
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3066
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3067
             'mkdir (GNU coreutils) '* | \
3068
             'mkdir (coreutils) '* | \
3069
             'mkdir (fileutils) '4.1*)
3070
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3071
               break 3;;
3072
           esac
3073
         done
3074
       done
3075
  done
3076
IFS=$as_save_IFS
3077
 
3078
fi
3079
 
3080
  if test "${ac_cv_path_mkdir+set}" = set; then
3081
    MKDIR_P="$ac_cv_path_mkdir -p"
3082
  else
3083
    # As a last resort, use the slow shell script.  Don't cache a
3084
    # value for MKDIR_P within a source directory, because that will
3085
    # break other packages using the cache if that directory is
3086
    # removed, or if the value is a relative name.
3087
    test -d ./--version && rmdir ./--version
3088
    MKDIR_P="$ac_install_sh -d"
3089
  fi
3090
fi
3091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3092
$as_echo "$MKDIR_P" >&6; }
3093
 
3094
mkdir_p="$MKDIR_P"
3095
case $mkdir_p in
3096
  [\\/$]* | ?:[\\/]*) ;;
3097
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3098
esac
3099
 
3100
for ac_prog in gawk mawk nawk awk
3101
do
3102
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3103
set dummy $ac_prog; ac_word=$2
3104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105
$as_echo_n "checking for $ac_word... " >&6; }
3106
if test "${ac_cv_prog_AWK+set}" = set; then :
3107
  $as_echo_n "(cached) " >&6
3108
else
3109
  if test -n "$AWK"; then
3110
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3111
else
3112
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113
for as_dir in $PATH
3114
do
3115
  IFS=$as_save_IFS
3116
  test -z "$as_dir" && as_dir=.
3117
    for ac_exec_ext in '' $ac_executable_extensions; do
3118
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119
    ac_cv_prog_AWK="$ac_prog"
3120
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121
    break 2
3122
  fi
3123
done
3124
  done
3125
IFS=$as_save_IFS
3126
 
3127
fi
3128
fi
3129
AWK=$ac_cv_prog_AWK
3130
if test -n "$AWK"; then
3131
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3132
$as_echo "$AWK" >&6; }
3133
else
3134
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135
$as_echo "no" >&6; }
3136
fi
3137
 
3138
 
3139
  test -n "$AWK" && break
3140
done
3141
 
3142
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3143
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3144
set x ${MAKE-make}
3145
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3146
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3147
  $as_echo_n "(cached) " >&6
3148
else
3149
  cat >conftest.make <<\_ACEOF
3150
SHELL = /bin/sh
3151
all:
3152
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3153
_ACEOF
3154
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3155
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3156
  *@@@%%%=?*=@@@%%%*)
3157
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3158
  *)
3159
    eval ac_cv_prog_make_${ac_make}_set=no;;
3160
esac
3161
rm -f conftest.make
3162
fi
3163
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3164
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165
$as_echo "yes" >&6; }
3166
  SET_MAKE=
3167
else
3168
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169
$as_echo "no" >&6; }
3170
  SET_MAKE="MAKE=${MAKE-make}"
3171
fi
3172
 
3173
rm -rf .tst 2>/dev/null
3174
mkdir .tst 2>/dev/null
3175
if test -d .tst; then
3176
  am__leading_dot=.
3177
else
3178
  am__leading_dot=_
3179
fi
3180
rmdir .tst 2>/dev/null
3181
 
3182
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3183
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3184
  # is not polluted with repeated "-I."
3185
  am__isrc=' -I$(srcdir)'
3186
  # test to see if srcdir already configured
3187
  if test -f $srcdir/config.status; then
3188
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3189
  fi
3190
fi
3191
 
3192
# test whether we have cygpath
3193
if test -z "$CYGPATH_W"; then
3194
  if (cygpath --version) >/dev/null 2>/dev/null; then
3195
    CYGPATH_W='cygpath -w'
3196
  else
3197
    CYGPATH_W=echo
3198
  fi
3199
fi
3200
 
3201
 
3202
# Define the identity of the package.
3203
 PACKAGE='libgomp'
3204
 VERSION='1.0'
3205
 
3206
 
3207
cat >>confdefs.h <<_ACEOF
3208
#define PACKAGE "$PACKAGE"
3209
_ACEOF
3210
 
3211
 
3212
cat >>confdefs.h <<_ACEOF
3213
#define VERSION "$VERSION"
3214
_ACEOF
3215
 
3216
# Some tools Automake needs.
3217
 
3218
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3219
 
3220
 
3221
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3222
 
3223
 
3224
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3225
 
3226
 
3227
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3228
 
3229
 
3230
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3231
 
3232
# We need awk for the "check" target.  The system "awk" is bad on
3233
# some platforms.
3234
# Always define AMTAR for backward compatibility.
3235
 
3236
AMTAR=${AMTAR-"${am_missing_run}tar"}
3237
 
3238
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3239
 
3240
 
3241
 
3242
 
3243
 
3244
# Default to --enable-multilib
3245
# Check whether --enable-multilib was given.
3246
if test "${enable_multilib+set}" = set; then :
3247
  enableval=$enable_multilib; case "$enableval" in
3248
  yes) multilib=yes ;;
3249
  no)  multilib=no ;;
3250
  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3251
 esac
3252
else
3253
  multilib=yes
3254
fi
3255
 
3256
 
3257
# We may get other options which we leave undocumented:
3258
# --with-target-subdir, --with-multisrctop, --with-multisubdir
3259
# See config-ml.in if you want the gory details.
3260
 
3261
if test "$srcdir" = "."; then
3262
  if test "$with_target_subdir" != "."; then
3263
    multi_basedir="$srcdir/$with_multisrctop../.."
3264
  else
3265
    multi_basedir="$srcdir/$with_multisrctop.."
3266
  fi
3267
else
3268
  multi_basedir="$srcdir/.."
3269
fi
3270
 
3271
 
3272
# Even if the default multilib is not a cross compilation,
3273
# it may be that some of the other multilibs are.
3274
if test $cross_compiling = no && test $multilib = yes \
3275
   && test "x${with_multisubdir}" != x ; then
3276
   cross_compiling=maybe
3277
fi
3278
 
3279
ac_config_commands="$ac_config_commands default-1"
3280
 
3281
 
3282
# Calculate toolexeclibdir
3283
# Also toolexecdir, though it's only used in toolexeclibdir
3284
case ${enable_version_specific_runtime_libs} in
3285
  yes)
3286
    # Need the gcc compiler version to know where to install libraries
3287
    # and header files if --enable-version-specific-runtime-libs option
3288
    # is selected.
3289
    toolexecdir='$(libdir)/gcc/$(target_alias)'
3290
    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3291
    ;;
3292
  no)
3293
    if test -n "$with_cross_host" &&
3294
       test x"$with_cross_host" != x"no"; then
3295
      # Install a library built with a cross compiler in tooldir, not libdir.
3296
      toolexecdir='$(exec_prefix)/$(target_alias)'
3297
      toolexeclibdir='$(toolexecdir)/lib'
3298
    else
3299
      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3300
      toolexeclibdir='$(libdir)'
3301
    fi
3302
    multi_os_directory=`$CC -print-multi-os-directory`
3303
    case $multi_os_directory in
3304
      .) ;; # Avoid trailing /.
3305
      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3306
    esac
3307
    ;;
3308
esac
3309
 
3310
 
3311
 
3312
# Check the compiler.
3313
# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3314
# We must force CC to /not/ be precious variables; otherwise
3315
# the wrong, non-multilib-adjusted value will be used in multilibs.
3316
# As a side effect, we have to subst CFLAGS ourselves.
3317
 
3318
 
3319
 
3320
ac_ext=c
3321
ac_cpp='$CPP $CPPFLAGS'
3322
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325
if test -n "$ac_tool_prefix"; then
3326
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3327
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329
$as_echo_n "checking for $ac_word... " >&6; }
3330
if test "${ac_cv_prog_CC+set}" = set; then :
3331
  $as_echo_n "(cached) " >&6
3332
else
3333
  if test -n "$CC"; then
3334
  ac_cv_prog_CC="$CC" # Let the user override the test.
3335
else
3336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337
for as_dir in $PATH
3338
do
3339
  IFS=$as_save_IFS
3340
  test -z "$as_dir" && as_dir=.
3341
    for ac_exec_ext in '' $ac_executable_extensions; do
3342
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3344
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345
    break 2
3346
  fi
3347
done
3348
  done
3349
IFS=$as_save_IFS
3350
 
3351
fi
3352
fi
3353
CC=$ac_cv_prog_CC
3354
if test -n "$CC"; then
3355
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356
$as_echo "$CC" >&6; }
3357
else
3358
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359
$as_echo "no" >&6; }
3360
fi
3361
 
3362
 
3363
fi
3364
if test -z "$ac_cv_prog_CC"; then
3365
  ac_ct_CC=$CC
3366
  # Extract the first word of "gcc", so it can be a program name with args.
3367
set dummy gcc; ac_word=$2
3368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369
$as_echo_n "checking for $ac_word... " >&6; }
3370
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3371
  $as_echo_n "(cached) " >&6
3372
else
3373
  if test -n "$ac_ct_CC"; then
3374
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3375
else
3376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377
for as_dir in $PATH
3378
do
3379
  IFS=$as_save_IFS
3380
  test -z "$as_dir" && as_dir=.
3381
    for ac_exec_ext in '' $ac_executable_extensions; do
3382
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383
    ac_cv_prog_ac_ct_CC="gcc"
3384
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385
    break 2
3386
  fi
3387
done
3388
  done
3389
IFS=$as_save_IFS
3390
 
3391
fi
3392
fi
3393
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3394
if test -n "$ac_ct_CC"; then
3395
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3396
$as_echo "$ac_ct_CC" >&6; }
3397
else
3398
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399
$as_echo "no" >&6; }
3400
fi
3401
 
3402
  if test "x$ac_ct_CC" = x; then
3403
    CC=""
3404
  else
3405
    case $cross_compiling:$ac_tool_warned in
3406
yes:)
3407
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409
ac_tool_warned=yes ;;
3410
esac
3411
    CC=$ac_ct_CC
3412
  fi
3413
else
3414
  CC="$ac_cv_prog_CC"
3415
fi
3416
 
3417
if test -z "$CC"; then
3418
          if test -n "$ac_tool_prefix"; then
3419
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3420
set dummy ${ac_tool_prefix}cc; ac_word=$2
3421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422
$as_echo_n "checking for $ac_word... " >&6; }
3423
if test "${ac_cv_prog_CC+set}" = set; then :
3424
  $as_echo_n "(cached) " >&6
3425
else
3426
  if test -n "$CC"; then
3427
  ac_cv_prog_CC="$CC" # Let the user override the test.
3428
else
3429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430
for as_dir in $PATH
3431
do
3432
  IFS=$as_save_IFS
3433
  test -z "$as_dir" && as_dir=.
3434
    for ac_exec_ext in '' $ac_executable_extensions; do
3435
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3437
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438
    break 2
3439
  fi
3440
done
3441
  done
3442
IFS=$as_save_IFS
3443
 
3444
fi
3445
fi
3446
CC=$ac_cv_prog_CC
3447
if test -n "$CC"; then
3448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449
$as_echo "$CC" >&6; }
3450
else
3451
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452
$as_echo "no" >&6; }
3453
fi
3454
 
3455
 
3456
  fi
3457
fi
3458
if test -z "$CC"; then
3459
  # Extract the first word of "cc", so it can be a program name with args.
3460
set dummy cc; ac_word=$2
3461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462
$as_echo_n "checking for $ac_word... " >&6; }
3463
if test "${ac_cv_prog_CC+set}" = set; then :
3464
  $as_echo_n "(cached) " >&6
3465
else
3466
  if test -n "$CC"; then
3467
  ac_cv_prog_CC="$CC" # Let the user override the test.
3468
else
3469
  ac_prog_rejected=no
3470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471
for as_dir in $PATH
3472
do
3473
  IFS=$as_save_IFS
3474
  test -z "$as_dir" && as_dir=.
3475
    for ac_exec_ext in '' $ac_executable_extensions; do
3476
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3477
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3478
       ac_prog_rejected=yes
3479
       continue
3480
     fi
3481
    ac_cv_prog_CC="cc"
3482
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483
    break 2
3484
  fi
3485
done
3486
  done
3487
IFS=$as_save_IFS
3488
 
3489
if test $ac_prog_rejected = yes; then
3490
  # We found a bogon in the path, so make sure we never use it.
3491
  set dummy $ac_cv_prog_CC
3492
  shift
3493
  if test $# != 0; then
3494
    # We chose a different compiler from the bogus one.
3495
    # However, it has the same basename, so the bogon will be chosen
3496
    # first if we set CC to just the basename; use the full file name.
3497
    shift
3498
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3499
  fi
3500
fi
3501
fi
3502
fi
3503
CC=$ac_cv_prog_CC
3504
if test -n "$CC"; then
3505
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3506
$as_echo "$CC" >&6; }
3507
else
3508
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509
$as_echo "no" >&6; }
3510
fi
3511
 
3512
 
3513
fi
3514
if test -z "$CC"; then
3515
  if test -n "$ac_tool_prefix"; then
3516
  for ac_prog in cl.exe
3517
  do
3518
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3519
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521
$as_echo_n "checking for $ac_word... " >&6; }
3522
if test "${ac_cv_prog_CC+set}" = set; then :
3523
  $as_echo_n "(cached) " >&6
3524
else
3525
  if test -n "$CC"; then
3526
  ac_cv_prog_CC="$CC" # Let the user override the test.
3527
else
3528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529
for as_dir in $PATH
3530
do
3531
  IFS=$as_save_IFS
3532
  test -z "$as_dir" && as_dir=.
3533
    for ac_exec_ext in '' $ac_executable_extensions; do
3534
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3536
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537
    break 2
3538
  fi
3539
done
3540
  done
3541
IFS=$as_save_IFS
3542
 
3543
fi
3544
fi
3545
CC=$ac_cv_prog_CC
3546
if test -n "$CC"; then
3547
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548
$as_echo "$CC" >&6; }
3549
else
3550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551
$as_echo "no" >&6; }
3552
fi
3553
 
3554
 
3555
    test -n "$CC" && break
3556
  done
3557
fi
3558
if test -z "$CC"; then
3559
  ac_ct_CC=$CC
3560
  for ac_prog in cl.exe
3561
do
3562
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3563
set dummy $ac_prog; ac_word=$2
3564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565
$as_echo_n "checking for $ac_word... " >&6; }
3566
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3567
  $as_echo_n "(cached) " >&6
3568
else
3569
  if test -n "$ac_ct_CC"; then
3570
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3571
else
3572
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573
for as_dir in $PATH
3574
do
3575
  IFS=$as_save_IFS
3576
  test -z "$as_dir" && as_dir=.
3577
    for ac_exec_ext in '' $ac_executable_extensions; do
3578
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579
    ac_cv_prog_ac_ct_CC="$ac_prog"
3580
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581
    break 2
3582
  fi
3583
done
3584
  done
3585
IFS=$as_save_IFS
3586
 
3587
fi
3588
fi
3589
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3590
if test -n "$ac_ct_CC"; then
3591
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3592
$as_echo "$ac_ct_CC" >&6; }
3593
else
3594
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595
$as_echo "no" >&6; }
3596
fi
3597
 
3598
 
3599
  test -n "$ac_ct_CC" && break
3600
done
3601
 
3602
  if test "x$ac_ct_CC" = x; then
3603
    CC=""
3604
  else
3605
    case $cross_compiling:$ac_tool_warned in
3606
yes:)
3607
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3608
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3609
ac_tool_warned=yes ;;
3610
esac
3611
    CC=$ac_ct_CC
3612
  fi
3613
fi
3614
 
3615
fi
3616
 
3617
 
3618
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620
as_fn_error "no acceptable C compiler found in \$PATH
3621
See \`config.log' for more details." "$LINENO" 5; }
3622
 
3623
# Provide some information about the compiler.
3624
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3625
set X $ac_compile
3626
ac_compiler=$2
3627
for ac_option in --version -v -V -qversion; do
3628
  { { ac_try="$ac_compiler $ac_option >&5"
3629
case "(($ac_try" in
3630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631
  *) ac_try_echo=$ac_try;;
3632
esac
3633
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634
$as_echo "$ac_try_echo"; } >&5
3635
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3636
  ac_status=$?
3637
  if test -s conftest.err; then
3638
    sed '10a\
3639
... rest of stderr output deleted ...
3640
         10q' conftest.err >conftest.er1
3641
    cat conftest.er1 >&5
3642
    rm -f conftest.er1 conftest.err
3643
  fi
3644
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645
  test $ac_status = 0; }
3646
done
3647
 
3648
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649
/* end confdefs.h.  */
3650
 
3651
int
3652
main ()
3653
{
3654
 
3655
  ;
3656
  return 0;
3657
}
3658
_ACEOF
3659
ac_clean_files_save=$ac_clean_files
3660
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3661
# Try to create an executable without -o first, disregard a.out.
3662
# It will help us diagnose broken compilers, and finding out an intuition
3663
# of exeext.
3664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3665
$as_echo_n "checking for C compiler default output file name... " >&6; }
3666
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3667
 
3668
# The possible output files:
3669
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3670
 
3671
ac_rmfiles=
3672
for ac_file in $ac_files
3673
do
3674
  case $ac_file in
3675
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3676
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3677
  esac
3678
done
3679
rm -f $ac_rmfiles
3680
 
3681
if { { ac_try="$ac_link_default"
3682
case "(($ac_try" in
3683
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684
  *) ac_try_echo=$ac_try;;
3685
esac
3686
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687
$as_echo "$ac_try_echo"; } >&5
3688
  (eval "$ac_link_default") 2>&5
3689
  ac_status=$?
3690
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691
  test $ac_status = 0; }; then :
3692
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3693
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3694
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3695
# so that the user can short-circuit this test for compilers unknown to
3696
# Autoconf.
3697
for ac_file in $ac_files ''
3698
do
3699
  test -f "$ac_file" || continue
3700
  case $ac_file in
3701
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3702
        ;;
3703
    [ab].out )
3704
        # We found the default executable, but exeext='' is most
3705
        # certainly right.
3706
        break;;
3707
    *.* )
3708
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3709
        then :; else
3710
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3711
        fi
3712
        # We set ac_cv_exeext here because the later test for it is not
3713
        # safe: cross compilers may not add the suffix if given an `-o'
3714
        # argument, so we may need to know it at that point already.
3715
        # Even if this section looks crufty: it has the advantage of
3716
        # actually working.
3717
        break;;
3718
    * )
3719
        break;;
3720
  esac
3721
done
3722
test "$ac_cv_exeext" = no && ac_cv_exeext=
3723
 
3724
else
3725
  ac_file=''
3726
fi
3727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3728
$as_echo "$ac_file" >&6; }
3729
if test -z "$ac_file"; then :
3730
  $as_echo "$as_me: failed program was:" >&5
3731
sed 's/^/| /' conftest.$ac_ext >&5
3732
 
3733
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735
{ as_fn_set_status 77
3736
as_fn_error "C compiler cannot create executables
3737
See \`config.log' for more details." "$LINENO" 5; }; }
3738
fi
3739
ac_exeext=$ac_cv_exeext
3740
 
3741
# Check that the compiler produces executables we can run.  If not, either
3742
# the compiler is broken, or we cross compile.
3743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3744
$as_echo_n "checking whether the C compiler works... " >&6; }
3745
# If not cross compiling, check that we can run a simple program.
3746
if test "$cross_compiling" != yes; then
3747
  if { ac_try='./$ac_file'
3748
  { { case "(($ac_try" in
3749
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750
  *) ac_try_echo=$ac_try;;
3751
esac
3752
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753
$as_echo "$ac_try_echo"; } >&5
3754
  (eval "$ac_try") 2>&5
3755
  ac_status=$?
3756
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757
  test $ac_status = 0; }; }; then
3758
    cross_compiling=no
3759
  else
3760
    if test "$cross_compiling" = maybe; then
3761
        cross_compiling=yes
3762
    else
3763
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765
as_fn_error "cannot run C compiled programs.
3766
If you meant to cross compile, use \`--host'.
3767
See \`config.log' for more details." "$LINENO" 5; }
3768
    fi
3769
  fi
3770
fi
3771
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772
$as_echo "yes" >&6; }
3773
 
3774
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3775
ac_clean_files=$ac_clean_files_save
3776
# Check that the compiler produces executables we can run.  If not, either
3777
# the compiler is broken, or we cross compile.
3778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3779
$as_echo_n "checking whether we are cross compiling... " >&6; }
3780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3781
$as_echo "$cross_compiling" >&6; }
3782
 
3783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3784
$as_echo_n "checking for suffix of executables... " >&6; }
3785
if { { ac_try="$ac_link"
3786
case "(($ac_try" in
3787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788
  *) ac_try_echo=$ac_try;;
3789
esac
3790
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791
$as_echo "$ac_try_echo"; } >&5
3792
  (eval "$ac_link") 2>&5
3793
  ac_status=$?
3794
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795
  test $ac_status = 0; }; then :
3796
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3797
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3798
# work properly (i.e., refer to `conftest.exe'), while it won't with
3799
# `rm'.
3800
for ac_file in conftest.exe conftest conftest.*; do
3801
  test -f "$ac_file" || continue
3802
  case $ac_file in
3803
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3804
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805
          break;;
3806
    * ) break;;
3807
  esac
3808
done
3809
else
3810
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812
as_fn_error "cannot compute suffix of executables: cannot compile and link
3813
See \`config.log' for more details." "$LINENO" 5; }
3814
fi
3815
rm -f conftest$ac_cv_exeext
3816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3817
$as_echo "$ac_cv_exeext" >&6; }
3818
 
3819
rm -f conftest.$ac_ext
3820
EXEEXT=$ac_cv_exeext
3821
ac_exeext=$EXEEXT
3822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3823
$as_echo_n "checking for suffix of object files... " >&6; }
3824
if test "${ac_cv_objext+set}" = set; then :
3825
  $as_echo_n "(cached) " >&6
3826
else
3827
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828
/* end confdefs.h.  */
3829
 
3830
int
3831
main ()
3832
{
3833
 
3834
  ;
3835
  return 0;
3836
}
3837
_ACEOF
3838
rm -f conftest.o conftest.obj
3839
if { { ac_try="$ac_compile"
3840
case "(($ac_try" in
3841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842
  *) ac_try_echo=$ac_try;;
3843
esac
3844
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845
$as_echo "$ac_try_echo"; } >&5
3846
  (eval "$ac_compile") 2>&5
3847
  ac_status=$?
3848
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849
  test $ac_status = 0; }; then :
3850
  for ac_file in conftest.o conftest.obj conftest.*; do
3851
  test -f "$ac_file" || continue;
3852
  case $ac_file in
3853
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3854
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3855
       break;;
3856
  esac
3857
done
3858
else
3859
  $as_echo "$as_me: failed program was:" >&5
3860
sed 's/^/| /' conftest.$ac_ext >&5
3861
 
3862
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864
as_fn_error "cannot compute suffix of object files: cannot compile
3865
See \`config.log' for more details." "$LINENO" 5; }
3866
fi
3867
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3868
fi
3869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3870
$as_echo "$ac_cv_objext" >&6; }
3871
OBJEXT=$ac_cv_objext
3872
ac_objext=$OBJEXT
3873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3874
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3875
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3876
  $as_echo_n "(cached) " >&6
3877
else
3878
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879
/* end confdefs.h.  */
3880
 
3881
int
3882
main ()
3883
{
3884
#ifndef __GNUC__
3885
       choke me
3886
#endif
3887
 
3888
  ;
3889
  return 0;
3890
}
3891
_ACEOF
3892
if ac_fn_c_try_compile "$LINENO"; then :
3893
  ac_compiler_gnu=yes
3894
else
3895
  ac_compiler_gnu=no
3896
fi
3897
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3899
 
3900
fi
3901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3902
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3903
if test $ac_compiler_gnu = yes; then
3904
  GCC=yes
3905
else
3906
  GCC=
3907
fi
3908
ac_test_CFLAGS=${CFLAGS+set}
3909
ac_save_CFLAGS=$CFLAGS
3910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3911
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3912
if test "${ac_cv_prog_cc_g+set}" = set; then :
3913
  $as_echo_n "(cached) " >&6
3914
else
3915
  ac_save_c_werror_flag=$ac_c_werror_flag
3916
   ac_c_werror_flag=yes
3917
   ac_cv_prog_cc_g=no
3918
   CFLAGS="-g"
3919
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920
/* end confdefs.h.  */
3921
 
3922
int
3923
main ()
3924
{
3925
 
3926
  ;
3927
  return 0;
3928
}
3929
_ACEOF
3930
if ac_fn_c_try_compile "$LINENO"; then :
3931
  ac_cv_prog_cc_g=yes
3932
else
3933
  CFLAGS=""
3934
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935
/* end confdefs.h.  */
3936
 
3937
int
3938
main ()
3939
{
3940
 
3941
  ;
3942
  return 0;
3943
}
3944
_ACEOF
3945
if ac_fn_c_try_compile "$LINENO"; then :
3946
 
3947
else
3948
  ac_c_werror_flag=$ac_save_c_werror_flag
3949
         CFLAGS="-g"
3950
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951
/* end confdefs.h.  */
3952
 
3953
int
3954
main ()
3955
{
3956
 
3957
  ;
3958
  return 0;
3959
}
3960
_ACEOF
3961
if ac_fn_c_try_compile "$LINENO"; then :
3962
  ac_cv_prog_cc_g=yes
3963
fi
3964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965
fi
3966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967
fi
3968
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969
   ac_c_werror_flag=$ac_save_c_werror_flag
3970
fi
3971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3972
$as_echo "$ac_cv_prog_cc_g" >&6; }
3973
if test "$ac_test_CFLAGS" = set; then
3974
  CFLAGS=$ac_save_CFLAGS
3975
elif test $ac_cv_prog_cc_g = yes; then
3976
  if test "$GCC" = yes; then
3977
    CFLAGS="-g -O2"
3978
  else
3979
    CFLAGS="-g"
3980
  fi
3981
else
3982
  if test "$GCC" = yes; then
3983
    CFLAGS="-O2"
3984
  else
3985
    CFLAGS=
3986
  fi
3987
fi
3988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3989
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3990
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3991
  $as_echo_n "(cached) " >&6
3992
else
3993
  ac_cv_prog_cc_c89=no
3994
ac_save_CC=$CC
3995
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996
/* end confdefs.h.  */
3997
#include 
3998
#include 
3999
#include 
4000
#include 
4001
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4002
struct buf { int x; };
4003
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4004
static char *e (p, i)
4005
     char **p;
4006
     int i;
4007
{
4008
  return p[i];
4009
}
4010
static char *f (char * (*g) (char **, int), char **p, ...)
4011
{
4012
  char *s;
4013
  va_list v;
4014
  va_start (v,p);
4015
  s = g (p, va_arg (v,int));
4016
  va_end (v);
4017
  return s;
4018
}
4019
 
4020
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4021
   function prototypes and stuff, but not '\xHH' hex character constants.
4022
   These don't provoke an error unfortunately, instead are silently treated
4023
   as 'x'.  The following induces an error, until -std is added to get
4024
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4025
   array size at least.  It's necessary to write '\x00'==0 to get something
4026
   that's true only with -std.  */
4027
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4028
 
4029
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4030
   inside strings and character constants.  */
4031
#define FOO(x) 'x'
4032
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4033
 
4034
int test (int i, double x);
4035
struct s1 {int (*f) (int a);};
4036
struct s2 {int (*f) (double a);};
4037
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4038
int argc;
4039
char **argv;
4040
int
4041
main ()
4042
{
4043
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4044
  ;
4045
  return 0;
4046
}
4047
_ACEOF
4048
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4049
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4050
do
4051
  CC="$ac_save_CC $ac_arg"
4052
  if ac_fn_c_try_compile "$LINENO"; then :
4053
  ac_cv_prog_cc_c89=$ac_arg
4054
fi
4055
rm -f core conftest.err conftest.$ac_objext
4056
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4057
done
4058
rm -f conftest.$ac_ext
4059
CC=$ac_save_CC
4060
 
4061
fi
4062
# AC_CACHE_VAL
4063
case "x$ac_cv_prog_cc_c89" in
4064
  x)
4065
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4066
$as_echo "none needed" >&6; } ;;
4067
  xno)
4068
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4069
$as_echo "unsupported" >&6; } ;;
4070
  *)
4071
    CC="$CC $ac_cv_prog_cc_c89"
4072
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4073
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4074
esac
4075
if test "x$ac_cv_prog_cc_c89" != xno; then :
4076
 
4077
fi
4078
 
4079
ac_ext=c
4080
ac_cpp='$CPP $CPPFLAGS'
4081
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084
DEPDIR="${am__leading_dot}deps"
4085
 
4086
ac_config_commands="$ac_config_commands depfiles"
4087
 
4088
 
4089
am_make=${MAKE-make}
4090
cat > confinc << 'END'
4091
am__doit:
4092
        @echo this is the am__doit target
4093
.PHONY: am__doit
4094
END
4095
# If we don't find an include directive, just comment out the code.
4096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4097
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4098
am__include="#"
4099
am__quote=
4100
_am_result=none
4101
# First try GNU make style include.
4102
echo "include confinc" > confmf
4103
# Ignore all kinds of additional output from `make'.
4104
case `$am_make -s -f confmf 2> /dev/null` in #(
4105
*the\ am__doit\ target*)
4106
  am__include=include
4107
  am__quote=
4108
  _am_result=GNU
4109
  ;;
4110
esac
4111
# Now try BSD make style include.
4112
if test "$am__include" = "#"; then
4113
   echo '.include "confinc"' > confmf
4114
   case `$am_make -s -f confmf 2> /dev/null` in #(
4115
   *the\ am__doit\ target*)
4116
     am__include=.include
4117
     am__quote="\""
4118
     _am_result=BSD
4119
     ;;
4120
   esac
4121
fi
4122
 
4123
 
4124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4125
$as_echo "$_am_result" >&6; }
4126
rm -f confinc confmf
4127
 
4128
# Check whether --enable-dependency-tracking was given.
4129
if test "${enable_dependency_tracking+set}" = set; then :
4130
  enableval=$enable_dependency_tracking;
4131
fi
4132
 
4133
if test "x$enable_dependency_tracking" != xno; then
4134
  am_depcomp="$ac_aux_dir/depcomp"
4135
  AMDEPBACKSLASH='\'
4136
fi
4137
 if test "x$enable_dependency_tracking" != xno; then
4138
  AMDEP_TRUE=
4139
  AMDEP_FALSE='#'
4140
else
4141
  AMDEP_TRUE='#'
4142
  AMDEP_FALSE=
4143
fi
4144
 
4145
 
4146
 
4147
depcc="$CC"   am_compiler_list=
4148
 
4149
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4150
$as_echo_n "checking dependency style of $depcc... " >&6; }
4151
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4152
  $as_echo_n "(cached) " >&6
4153
else
4154
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4155
  # We make a subdir and do the tests there.  Otherwise we can end up
4156
  # making bogus files that we don't know about and never remove.  For
4157
  # instance it was reported that on HP-UX the gcc test will end up
4158
  # making a dummy file named `D' -- because `-MD' means `put the output
4159
  # in D'.
4160
  mkdir conftest.dir
4161
  # Copy depcomp to subdir because otherwise we won't find it if we're
4162
  # using a relative directory.
4163
  cp "$am_depcomp" conftest.dir
4164
  cd conftest.dir
4165
  # We will build objects and dependencies in a subdirectory because
4166
  # it helps to detect inapplicable dependency modes.  For instance
4167
  # both Tru64's cc and ICC support -MD to output dependencies as a
4168
  # side effect of compilation, but ICC will put the dependencies in
4169
  # the current directory while Tru64 will put them in the object
4170
  # directory.
4171
  mkdir sub
4172
 
4173
  am_cv_CC_dependencies_compiler_type=none
4174
  if test "$am_compiler_list" = ""; then
4175
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4176
  fi
4177
  am__universal=false
4178
  case " $depcc " in #(
4179
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4180
     esac
4181
 
4182
  for depmode in $am_compiler_list; do
4183
    # Setup a source with many dependencies, because some compilers
4184
    # like to wrap large dependency lists on column 80 (with \), and
4185
    # we should not choose a depcomp mode which is confused by this.
4186
    #
4187
    # We need to recreate these files for each test, as the compiler may
4188
    # overwrite some of them when testing with obscure command lines.
4189
    # This happens at least with the AIX C compiler.
4190
    : > sub/conftest.c
4191
    for i in 1 2 3 4 5 6; do
4192
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4193
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4194
      # Solaris 8's {/usr,}/bin/sh.
4195
      touch sub/conftst$i.h
4196
    done
4197
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4198
 
4199
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4200
    # mode.  It turns out that the SunPro C++ compiler does not properly
4201
    # handle `-M -o', and we need to detect this.  Also, some Intel
4202
    # versions had trouble with output in subdirs
4203
    am__obj=sub/conftest.${OBJEXT-o}
4204
    am__minus_obj="-o $am__obj"
4205
    case $depmode in
4206
    gcc)
4207
      # This depmode causes a compiler race in universal mode.
4208
      test "$am__universal" = false || continue
4209
      ;;
4210
    nosideeffect)
4211
      # after this tag, mechanisms are not by side-effect, so they'll
4212
      # only be used when explicitly requested
4213
      if test "x$enable_dependency_tracking" = xyes; then
4214
        continue
4215
      else
4216
        break
4217
      fi
4218
      ;;
4219
    msvisualcpp | msvcmsys)
4220
      # This compiler won't grok `-c -o', but also, the minuso test has
4221
      # not run yet.  These depmodes are late enough in the game, and
4222
      # so weak that their functioning should not be impacted.
4223
      am__obj=conftest.${OBJEXT-o}
4224
      am__minus_obj=
4225
      ;;
4226
    none) break ;;
4227
    esac
4228
    if depmode=$depmode \
4229
       source=sub/conftest.c object=$am__obj \
4230
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4231
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4232
         >/dev/null 2>conftest.err &&
4233
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4234
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4235
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4236
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4237
      # icc doesn't choke on unknown options, it will just issue warnings
4238
      # or remarks (even with -Werror).  So we grep stderr for any message
4239
      # that says an option was ignored or not supported.
4240
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4241
      #   icc: Command line warning: ignoring option '-M'; no argument required
4242
      # The diagnosis changed in icc 8.0:
4243
      #   icc: Command line remark: option '-MP' not supported
4244
      if (grep 'ignoring option' conftest.err ||
4245
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4246
        am_cv_CC_dependencies_compiler_type=$depmode
4247
        break
4248
      fi
4249
    fi
4250
  done
4251
 
4252
  cd ..
4253
  rm -rf conftest.dir
4254
else
4255
  am_cv_CC_dependencies_compiler_type=none
4256
fi
4257
 
4258
fi
4259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4260
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4261
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4262
 
4263
 if
4264
  test "x$enable_dependency_tracking" != xno \
4265
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4266
  am__fastdepCC_TRUE=
4267
  am__fastdepCC_FALSE='#'
4268
else
4269
  am__fastdepCC_TRUE='#'
4270
  am__fastdepCC_FALSE=
4271
fi
4272
 
4273
 
4274
 
4275
 
4276
 
4277
 
4278
# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4279
# in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4280
# in both places for now and restore CFLAGS at the end of config.
4281
save_CFLAGS="$CFLAGS"
4282
 
4283
# Add -Wall -Werror if we are using GCC.
4284
if test "x$GCC" = "xyes"; then
4285
  XCFLAGS="$XCFLAGS -Wall -Werror"
4286
fi
4287
 
4288
# Find other programs we need.
4289
if test -n "$ac_tool_prefix"; then
4290
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4291
set dummy ${ac_tool_prefix}ar; ac_word=$2
4292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293
$as_echo_n "checking for $ac_word... " >&6; }
4294
if test "${ac_cv_prog_AR+set}" = set; then :
4295
  $as_echo_n "(cached) " >&6
4296
else
4297
  if test -n "$AR"; then
4298
  ac_cv_prog_AR="$AR" # Let the user override the test.
4299
else
4300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301
for as_dir in $PATH
4302
do
4303
  IFS=$as_save_IFS
4304
  test -z "$as_dir" && as_dir=.
4305
    for ac_exec_ext in '' $ac_executable_extensions; do
4306
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4307
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4308
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309
    break 2
4310
  fi
4311
done
4312
  done
4313
IFS=$as_save_IFS
4314
 
4315
fi
4316
fi
4317
AR=$ac_cv_prog_AR
4318
if test -n "$AR"; then
4319
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4320
$as_echo "$AR" >&6; }
4321
else
4322
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323
$as_echo "no" >&6; }
4324
fi
4325
 
4326
 
4327
fi
4328
if test -z "$ac_cv_prog_AR"; then
4329
  ac_ct_AR=$AR
4330
  # Extract the first word of "ar", so it can be a program name with args.
4331
set dummy ar; ac_word=$2
4332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333
$as_echo_n "checking for $ac_word... " >&6; }
4334
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4335
  $as_echo_n "(cached) " >&6
4336
else
4337
  if test -n "$ac_ct_AR"; then
4338
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4339
else
4340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341
for as_dir in $PATH
4342
do
4343
  IFS=$as_save_IFS
4344
  test -z "$as_dir" && as_dir=.
4345
    for ac_exec_ext in '' $ac_executable_extensions; do
4346
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347
    ac_cv_prog_ac_ct_AR="ar"
4348
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349
    break 2
4350
  fi
4351
done
4352
  done
4353
IFS=$as_save_IFS
4354
 
4355
fi
4356
fi
4357
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358
if test -n "$ac_ct_AR"; then
4359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4360
$as_echo "$ac_ct_AR" >&6; }
4361
else
4362
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363
$as_echo "no" >&6; }
4364
fi
4365
 
4366
  if test "x$ac_ct_AR" = x; then
4367
    AR=""
4368
  else
4369
    case $cross_compiling:$ac_tool_warned in
4370
yes:)
4371
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4372
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4373
ac_tool_warned=yes ;;
4374
esac
4375
    AR=$ac_ct_AR
4376
  fi
4377
else
4378
  AR="$ac_cv_prog_AR"
4379
fi
4380
 
4381
if test -n "$ac_tool_prefix"; then
4382
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4383
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385
$as_echo_n "checking for $ac_word... " >&6; }
4386
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4387
  $as_echo_n "(cached) " >&6
4388
else
4389
  if test -n "$RANLIB"; then
4390
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4391
else
4392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393
for as_dir in $PATH
4394
do
4395
  IFS=$as_save_IFS
4396
  test -z "$as_dir" && as_dir=.
4397
    for ac_exec_ext in '' $ac_executable_extensions; do
4398
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4400
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401
    break 2
4402
  fi
4403
done
4404
  done
4405
IFS=$as_save_IFS
4406
 
4407
fi
4408
fi
4409
RANLIB=$ac_cv_prog_RANLIB
4410
if test -n "$RANLIB"; then
4411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4412
$as_echo "$RANLIB" >&6; }
4413
else
4414
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415
$as_echo "no" >&6; }
4416
fi
4417
 
4418
 
4419
fi
4420
if test -z "$ac_cv_prog_RANLIB"; then
4421
  ac_ct_RANLIB=$RANLIB
4422
  # Extract the first word of "ranlib", so it can be a program name with args.
4423
set dummy ranlib; ac_word=$2
4424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425
$as_echo_n "checking for $ac_word... " >&6; }
4426
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4427
  $as_echo_n "(cached) " >&6
4428
else
4429
  if test -n "$ac_ct_RANLIB"; then
4430
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4431
else
4432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433
for as_dir in $PATH
4434
do
4435
  IFS=$as_save_IFS
4436
  test -z "$as_dir" && as_dir=.
4437
    for ac_exec_ext in '' $ac_executable_extensions; do
4438
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4440
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441
    break 2
4442
  fi
4443
done
4444
  done
4445
IFS=$as_save_IFS
4446
 
4447
fi
4448
fi
4449
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4450
if test -n "$ac_ct_RANLIB"; then
4451
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4452
$as_echo "$ac_ct_RANLIB" >&6; }
4453
else
4454
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455
$as_echo "no" >&6; }
4456
fi
4457
 
4458
  if test "x$ac_ct_RANLIB" = x; then
4459
    RANLIB="ranlib-not-found-in-path-error"
4460
  else
4461
    case $cross_compiling:$ac_tool_warned in
4462
yes:)
4463
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465
ac_tool_warned=yes ;;
4466
esac
4467
    RANLIB=$ac_ct_RANLIB
4468
  fi
4469
else
4470
  RANLIB="$ac_cv_prog_RANLIB"
4471
fi
4472
 
4473
# Extract the first word of "perl", so it can be a program name with args.
4474
set dummy perl; ac_word=$2
4475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476
$as_echo_n "checking for $ac_word... " >&6; }
4477
if test "${ac_cv_path_PERL+set}" = set; then :
4478
  $as_echo_n "(cached) " >&6
4479
else
4480
  case $PERL in
4481
  [\\/]* | ?:[\\/]*)
4482
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4483
  ;;
4484
  *)
4485
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486
for as_dir in $PATH
4487
do
4488
  IFS=$as_save_IFS
4489
  test -z "$as_dir" && as_dir=.
4490
    for ac_exec_ext in '' $ac_executable_extensions; do
4491
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4493
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494
    break 2
4495
  fi
4496
done
4497
  done
4498
IFS=$as_save_IFS
4499
 
4500
  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4501
  ;;
4502
esac
4503
fi
4504
PERL=$ac_cv_path_PERL
4505
if test -n "$PERL"; then
4506
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4507
$as_echo "$PERL" >&6; }
4508
else
4509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510
$as_echo "no" >&6; }
4511
fi
4512
 
4513
 
4514
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4515
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4516
set x ${MAKE-make}
4517
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4518
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4519
  $as_echo_n "(cached) " >&6
4520
else
4521
  cat >conftest.make <<\_ACEOF
4522
SHELL = /bin/sh
4523
all:
4524
        @echo '@@@%%%=$(MAKE)=@@@%%%'
4525
_ACEOF
4526
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4527
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4528
  *@@@%%%=?*=@@@%%%*)
4529
    eval ac_cv_prog_make_${ac_make}_set=yes;;
4530
  *)
4531
    eval ac_cv_prog_make_${ac_make}_set=no;;
4532
esac
4533
rm -f conftest.make
4534
fi
4535
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4536
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537
$as_echo "yes" >&6; }
4538
  SET_MAKE=
4539
else
4540
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541
$as_echo "no" >&6; }
4542
  SET_MAKE="MAKE=${MAKE-make}"
4543
fi
4544
 
4545
 
4546
 
4547
# See if makeinfo has been installed and is modern enough
4548
# that we can use it.
4549
 
4550
  # Extract the first word of "makeinfo", so it can be a program name with args.
4551
set dummy makeinfo; ac_word=$2
4552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553
$as_echo_n "checking for $ac_word... " >&6; }
4554
if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4555
  $as_echo_n "(cached) " >&6
4556
else
4557
  if test -n "$MAKEINFO"; then
4558
  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4559
else
4560
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561
for as_dir in $PATH
4562
do
4563
  IFS=$as_save_IFS
4564
  test -z "$as_dir" && as_dir=.
4565
    for ac_exec_ext in '' $ac_executable_extensions; do
4566
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567
    ac_cv_prog_MAKEINFO="makeinfo"
4568
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569
    break 2
4570
  fi
4571
done
4572
  done
4573
IFS=$as_save_IFS
4574
 
4575
fi
4576
fi
4577
MAKEINFO=$ac_cv_prog_MAKEINFO
4578
if test -n "$MAKEINFO"; then
4579
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4580
$as_echo "$MAKEINFO" >&6; }
4581
else
4582
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583
$as_echo "no" >&6; }
4584
fi
4585
 
4586
 
4587
  if test -n "$MAKEINFO"; then
4588
    # Found it, now check the version.
4589
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4590
$as_echo_n "checking for modern makeinfo... " >&6; }
4591
if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4592
  $as_echo_n "(cached) " >&6
4593
else
4594
  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4595
                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4596
 
4597
                    case $ac_prog_version in
4598
                      '')  gcc_cv_prog_makeinfo_modern=no;;
4599
                      4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
4600
                      *)   gcc_cv_prog_makeinfo_modern=no;;
4601
                    esac
4602
 
4603
fi
4604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4605
$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4606
  else
4607
    gcc_cv_prog_makeinfo_modern=no
4608
  fi
4609
  if test $gcc_cv_prog_makeinfo_modern = no; then
4610
    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4611
  fi
4612
 
4613
 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4614
  BUILD_INFO_TRUE=
4615
  BUILD_INFO_FALSE='#'
4616
else
4617
  BUILD_INFO_TRUE='#'
4618
  BUILD_INFO_FALSE=
4619
fi
4620
 
4621
 
4622
 
4623
# Configure libtool
4624
case `pwd` in
4625
  *\ * | *\     *)
4626
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4627
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4628
esac
4629
 
4630
 
4631
 
4632
macro_version='2.2.7a'
4633
macro_revision='1.3134'
4634
 
4635
 
4636
 
4637
 
4638
 
4639
 
4640
 
4641
 
4642
 
4643
 
4644
 
4645
 
4646
 
4647
ltmain="$ac_aux_dir/ltmain.sh"
4648
 
4649
# Backslashify metacharacters that are still active within
4650
# double-quoted strings.
4651
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4652
 
4653
# Same as above, but do not quote variable references.
4654
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4655
 
4656
# Sed substitution to delay expansion of an escaped shell variable in a
4657
# double_quote_subst'ed string.
4658
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4659
 
4660
# Sed substitution to delay expansion of an escaped single quote.
4661
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4662
 
4663
# Sed substitution to avoid accidental globbing in evaled expressions
4664
no_glob_subst='s/\*/\\\*/g'
4665
 
4666
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4667
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4668
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4669
 
4670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4671
$as_echo_n "checking how to print strings... " >&6; }
4672
# Test print first, because it will be a builtin if present.
4673
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4674
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4675
  ECHO='print -r --'
4676
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4677
  ECHO='printf %s\n'
4678
else
4679
  # Use this function as a fallback that always works.
4680
  func_fallback_echo ()
4681
  {
4682
    eval 'cat <<_LTECHO_EOF
4683
$1
4684
_LTECHO_EOF'
4685
  }
4686
  ECHO='func_fallback_echo'
4687
fi
4688
 
4689
# func_echo_all arg...
4690
# Invoke $ECHO with all args, space-separated.
4691
func_echo_all ()
4692
{
4693
    $ECHO ""
4694
}
4695
 
4696
case "$ECHO" in
4697
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4698
$as_echo "printf" >&6; } ;;
4699
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4700
$as_echo "print -r" >&6; } ;;
4701
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4702
$as_echo "cat" >&6; } ;;
4703
esac
4704
 
4705
 
4706
 
4707
 
4708
 
4709
 
4710
 
4711
 
4712
 
4713
 
4714
 
4715
 
4716
 
4717
 
4718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4719
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4720
if test "${ac_cv_path_SED+set}" = set; then :
4721
  $as_echo_n "(cached) " >&6
4722
else
4723
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4724
     for ac_i in 1 2 3 4 5 6 7; do
4725
       ac_script="$ac_script$as_nl$ac_script"
4726
     done
4727
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4728
     { ac_script=; unset ac_script;}
4729
     if test -z "$SED"; then
4730
  ac_path_SED_found=false
4731
  # Loop through the user's path and test for each of PROGNAME-LIST
4732
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733
for as_dir in $PATH
4734
do
4735
  IFS=$as_save_IFS
4736
  test -z "$as_dir" && as_dir=.
4737
    for ac_prog in sed gsed; do
4738
    for ac_exec_ext in '' $ac_executable_extensions; do
4739
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4740
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4741
# Check for GNU ac_path_SED and select it if it is found.
4742
  # Check for GNU $ac_path_SED
4743
case `"$ac_path_SED" --version 2>&1` in
4744
*GNU*)
4745
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4746
*)
4747
  ac_count=0
4748
  $as_echo_n 0123456789 >"conftest.in"
4749
  while :
4750
  do
4751
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4752
    mv "conftest.tmp" "conftest.in"
4753
    cp "conftest.in" "conftest.nl"
4754
    $as_echo '' >> "conftest.nl"
4755
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4756
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4757
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4758
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4759
      # Best one so far, save it but keep looking for a better one
4760
      ac_cv_path_SED="$ac_path_SED"
4761
      ac_path_SED_max=$ac_count
4762
    fi
4763
    # 10*(2^10) chars as input seems more than enough
4764
    test $ac_count -gt 10 && break
4765
  done
4766
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4767
esac
4768
 
4769
      $ac_path_SED_found && break 3
4770
    done
4771
  done
4772
  done
4773
IFS=$as_save_IFS
4774
  if test -z "$ac_cv_path_SED"; then
4775
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4776
  fi
4777
else
4778
  ac_cv_path_SED=$SED
4779
fi
4780
 
4781
fi
4782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4783
$as_echo "$ac_cv_path_SED" >&6; }
4784
 SED="$ac_cv_path_SED"
4785
  rm -f conftest.sed
4786
 
4787
test -z "$SED" && SED=sed
4788
Xsed="$SED -e 1s/^X//"
4789
 
4790
 
4791
 
4792
 
4793
 
4794
 
4795
 
4796
 
4797
 
4798
 
4799
 
4800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4801
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4802
if test "${ac_cv_path_GREP+set}" = set; then :
4803
  $as_echo_n "(cached) " >&6
4804
else
4805
  if test -z "$GREP"; then
4806
  ac_path_GREP_found=false
4807
  # Loop through the user's path and test for each of PROGNAME-LIST
4808
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4810
do
4811
  IFS=$as_save_IFS
4812
  test -z "$as_dir" && as_dir=.
4813
    for ac_prog in grep ggrep; do
4814
    for ac_exec_ext in '' $ac_executable_extensions; do
4815
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4816
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4817
# Check for GNU ac_path_GREP and select it if it is found.
4818
  # Check for GNU $ac_path_GREP
4819
case `"$ac_path_GREP" --version 2>&1` in
4820
*GNU*)
4821
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4822
*)
4823
  ac_count=0
4824
  $as_echo_n 0123456789 >"conftest.in"
4825
  while :
4826
  do
4827
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4828
    mv "conftest.tmp" "conftest.in"
4829
    cp "conftest.in" "conftest.nl"
4830
    $as_echo 'GREP' >> "conftest.nl"
4831
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4832
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4833
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4834
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4835
      # Best one so far, save it but keep looking for a better one
4836
      ac_cv_path_GREP="$ac_path_GREP"
4837
      ac_path_GREP_max=$ac_count
4838
    fi
4839
    # 10*(2^10) chars as input seems more than enough
4840
    test $ac_count -gt 10 && break
4841
  done
4842
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4843
esac
4844
 
4845
      $ac_path_GREP_found && break 3
4846
    done
4847
  done
4848
  done
4849
IFS=$as_save_IFS
4850
  if test -z "$ac_cv_path_GREP"; then
4851
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4852
  fi
4853
else
4854
  ac_cv_path_GREP=$GREP
4855
fi
4856
 
4857
fi
4858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4859
$as_echo "$ac_cv_path_GREP" >&6; }
4860
 GREP="$ac_cv_path_GREP"
4861
 
4862
 
4863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4864
$as_echo_n "checking for egrep... " >&6; }
4865
if test "${ac_cv_path_EGREP+set}" = set; then :
4866
  $as_echo_n "(cached) " >&6
4867
else
4868
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4869
   then ac_cv_path_EGREP="$GREP -E"
4870
   else
4871
     if test -z "$EGREP"; then
4872
  ac_path_EGREP_found=false
4873
  # Loop through the user's path and test for each of PROGNAME-LIST
4874
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4876
do
4877
  IFS=$as_save_IFS
4878
  test -z "$as_dir" && as_dir=.
4879
    for ac_prog in egrep; do
4880
    for ac_exec_ext in '' $ac_executable_extensions; do
4881
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4882
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4883
# Check for GNU ac_path_EGREP and select it if it is found.
4884
  # Check for GNU $ac_path_EGREP
4885
case `"$ac_path_EGREP" --version 2>&1` in
4886
*GNU*)
4887
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4888
*)
4889
  ac_count=0
4890
  $as_echo_n 0123456789 >"conftest.in"
4891
  while :
4892
  do
4893
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4894
    mv "conftest.tmp" "conftest.in"
4895
    cp "conftest.in" "conftest.nl"
4896
    $as_echo 'EGREP' >> "conftest.nl"
4897
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4900
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4901
      # Best one so far, save it but keep looking for a better one
4902
      ac_cv_path_EGREP="$ac_path_EGREP"
4903
      ac_path_EGREP_max=$ac_count
4904
    fi
4905
    # 10*(2^10) chars as input seems more than enough
4906
    test $ac_count -gt 10 && break
4907
  done
4908
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909
esac
4910
 
4911
      $ac_path_EGREP_found && break 3
4912
    done
4913
  done
4914
  done
4915
IFS=$as_save_IFS
4916
  if test -z "$ac_cv_path_EGREP"; then
4917
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4918
  fi
4919
else
4920
  ac_cv_path_EGREP=$EGREP
4921
fi
4922
 
4923
   fi
4924
fi
4925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4926
$as_echo "$ac_cv_path_EGREP" >&6; }
4927
 EGREP="$ac_cv_path_EGREP"
4928
 
4929
 
4930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4931
$as_echo_n "checking for fgrep... " >&6; }
4932
if test "${ac_cv_path_FGREP+set}" = set; then :
4933
  $as_echo_n "(cached) " >&6
4934
else
4935
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4936
   then ac_cv_path_FGREP="$GREP -F"
4937
   else
4938
     if test -z "$FGREP"; then
4939
  ac_path_FGREP_found=false
4940
  # Loop through the user's path and test for each of PROGNAME-LIST
4941
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4943
do
4944
  IFS=$as_save_IFS
4945
  test -z "$as_dir" && as_dir=.
4946
    for ac_prog in fgrep; do
4947
    for ac_exec_ext in '' $ac_executable_extensions; do
4948
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4949
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4950
# Check for GNU ac_path_FGREP and select it if it is found.
4951
  # Check for GNU $ac_path_FGREP
4952
case `"$ac_path_FGREP" --version 2>&1` in
4953
*GNU*)
4954
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4955
*)
4956
  ac_count=0
4957
  $as_echo_n 0123456789 >"conftest.in"
4958
  while :
4959
  do
4960
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4961
    mv "conftest.tmp" "conftest.in"
4962
    cp "conftest.in" "conftest.nl"
4963
    $as_echo 'FGREP' >> "conftest.nl"
4964
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4965
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4966
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4967
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4968
      # Best one so far, save it but keep looking for a better one
4969
      ac_cv_path_FGREP="$ac_path_FGREP"
4970
      ac_path_FGREP_max=$ac_count
4971
    fi
4972
    # 10*(2^10) chars as input seems more than enough
4973
    test $ac_count -gt 10 && break
4974
  done
4975
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4976
esac
4977
 
4978
      $ac_path_FGREP_found && break 3
4979
    done
4980
  done
4981
  done
4982
IFS=$as_save_IFS
4983
  if test -z "$ac_cv_path_FGREP"; then
4984
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4985
  fi
4986
else
4987
  ac_cv_path_FGREP=$FGREP
4988
fi
4989
 
4990
   fi
4991
fi
4992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4993
$as_echo "$ac_cv_path_FGREP" >&6; }
4994
 FGREP="$ac_cv_path_FGREP"
4995
 
4996
 
4997
test -z "$GREP" && GREP=grep
4998
 
4999
 
5000
 
5001
 
5002
 
5003
 
5004
 
5005
 
5006
 
5007
 
5008
 
5009
 
5010
 
5011
 
5012
 
5013
 
5014
 
5015
 
5016
 
5017
# Check whether --with-gnu-ld was given.
5018
if test "${with_gnu_ld+set}" = set; then :
5019
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5020
else
5021
  with_gnu_ld=no
5022
fi
5023
 
5024
ac_prog=ld
5025
if test "$GCC" = yes; then
5026
  # Check if gcc -print-prog-name=ld gives a path.
5027
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5028
$as_echo_n "checking for ld used by $CC... " >&6; }
5029
  case $host in
5030
  *-*-mingw*)
5031
    # gcc leaves a trailing carriage return which upsets mingw
5032
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5033
  *)
5034
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5035
  esac
5036
  case $ac_prog in
5037
    # Accept absolute paths.
5038
    [\\/]* | ?:[\\/]*)
5039
      re_direlt='/[^/][^/]*/\.\./'
5040
      # Canonicalize the pathname of ld
5041
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5042
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5043
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5044
      done
5045
      test -z "$LD" && LD="$ac_prog"
5046
      ;;
5047
  "")
5048
    # If it fails, then pretend we aren't using GCC.
5049
    ac_prog=ld
5050
    ;;
5051
  *)
5052
    # If it is relative, then search for the first ld in PATH.
5053
    with_gnu_ld=unknown
5054
    ;;
5055
  esac
5056
elif test "$with_gnu_ld" = yes; then
5057
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5058
$as_echo_n "checking for GNU ld... " >&6; }
5059
else
5060
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5061
$as_echo_n "checking for non-GNU ld... " >&6; }
5062
fi
5063
if test "${lt_cv_path_LD+set}" = set; then :
5064
  $as_echo_n "(cached) " >&6
5065
else
5066
  if test -z "$LD"; then
5067
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5068
  for ac_dir in $PATH; do
5069
    IFS="$lt_save_ifs"
5070
    test -z "$ac_dir" && ac_dir=.
5071
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5072
      lt_cv_path_LD="$ac_dir/$ac_prog"
5073
      # Check to see if the program is GNU ld.  I'd rather use --version,
5074
      # but apparently some variants of GNU ld only accept -v.
5075
      # Break only if it was the GNU/non-GNU ld that we prefer.
5076
      case `"$lt_cv_path_LD" -v 2>&1 
5077
      *GNU* | *'with BFD'*)
5078
        test "$with_gnu_ld" != no && break
5079
        ;;
5080
      *)
5081
        test "$with_gnu_ld" != yes && break
5082
        ;;
5083
      esac
5084
    fi
5085
  done
5086
  IFS="$lt_save_ifs"
5087
else
5088
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5089
fi
5090
fi
5091
 
5092
LD="$lt_cv_path_LD"
5093
if test -n "$LD"; then
5094
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5095
$as_echo "$LD" >&6; }
5096
else
5097
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098
$as_echo "no" >&6; }
5099
fi
5100
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5102
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5103
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5104
  $as_echo_n "(cached) " >&6
5105
else
5106
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5107
case `$LD -v 2>&1 
5108
*GNU* | *'with BFD'*)
5109
  lt_cv_prog_gnu_ld=yes
5110
  ;;
5111
*)
5112
  lt_cv_prog_gnu_ld=no
5113
  ;;
5114
esac
5115
fi
5116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5117
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5118
with_gnu_ld=$lt_cv_prog_gnu_ld
5119
 
5120
 
5121
 
5122
 
5123
 
5124
 
5125
 
5126
 
5127
 
5128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5129
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5130
if test "${lt_cv_path_NM+set}" = set; then :
5131
  $as_echo_n "(cached) " >&6
5132
else
5133
  if test -n "$NM"; then
5134
  # Let the user override the test.
5135
  lt_cv_path_NM="$NM"
5136
else
5137
  lt_nm_to_check="${ac_tool_prefix}nm"
5138
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5139
    lt_nm_to_check="$lt_nm_to_check nm"
5140
  fi
5141
  for lt_tmp_nm in $lt_nm_to_check; do
5142
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5143
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5144
      IFS="$lt_save_ifs"
5145
      test -z "$ac_dir" && ac_dir=.
5146
      tmp_nm="$ac_dir/$lt_tmp_nm"
5147
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5148
        # Check to see if the nm accepts a BSD-compat flag.
5149
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5150
        #   nm: unknown option "B" ignored
5151
        # Tru64's nm complains that /dev/null is an invalid object file
5152
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5153
        */dev/null* | *'Invalid file or object type'*)
5154
          lt_cv_path_NM="$tmp_nm -B"
5155
          break
5156
          ;;
5157
        *)
5158
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5159
          */dev/null*)
5160
            lt_cv_path_NM="$tmp_nm -p"
5161
            break
5162
            ;;
5163
          *)
5164
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5165
            continue # so that we can try to find one that supports BSD flags
5166
            ;;
5167
          esac
5168
          ;;
5169
        esac
5170
      fi
5171
    done
5172
    IFS="$lt_save_ifs"
5173
  done
5174
  : ${lt_cv_path_NM=no}
5175
fi
5176
fi
5177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5178
$as_echo "$lt_cv_path_NM" >&6; }
5179
if test "$lt_cv_path_NM" != "no"; then
5180
  NM="$lt_cv_path_NM"
5181
else
5182
  # Didn't find any BSD compatible name lister, look for dumpbin.
5183
  if test -n "$DUMPBIN"; then :
5184
    # Let the user override the test.
5185
  else
5186
    if test -n "$ac_tool_prefix"; then
5187
  for ac_prog in dumpbin "link -dump"
5188
  do
5189
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5190
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192
$as_echo_n "checking for $ac_word... " >&6; }
5193
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5194
  $as_echo_n "(cached) " >&6
5195
else
5196
  if test -n "$DUMPBIN"; then
5197
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5198
else
5199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200
for as_dir in $PATH
5201
do
5202
  IFS=$as_save_IFS
5203
  test -z "$as_dir" && as_dir=.
5204
    for ac_exec_ext in '' $ac_executable_extensions; do
5205
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5207
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208
    break 2
5209
  fi
5210
done
5211
  done
5212
IFS=$as_save_IFS
5213
 
5214
fi
5215
fi
5216
DUMPBIN=$ac_cv_prog_DUMPBIN
5217
if test -n "$DUMPBIN"; then
5218
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5219
$as_echo "$DUMPBIN" >&6; }
5220
else
5221
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222
$as_echo "no" >&6; }
5223
fi
5224
 
5225
 
5226
    test -n "$DUMPBIN" && break
5227
  done
5228
fi
5229
if test -z "$DUMPBIN"; then
5230
  ac_ct_DUMPBIN=$DUMPBIN
5231
  for ac_prog in dumpbin "link -dump"
5232
do
5233
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5234
set dummy $ac_prog; ac_word=$2
5235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236
$as_echo_n "checking for $ac_word... " >&6; }
5237
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5238
  $as_echo_n "(cached) " >&6
5239
else
5240
  if test -n "$ac_ct_DUMPBIN"; then
5241
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5242
else
5243
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244
for as_dir in $PATH
5245
do
5246
  IFS=$as_save_IFS
5247
  test -z "$as_dir" && as_dir=.
5248
    for ac_exec_ext in '' $ac_executable_extensions; do
5249
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5251
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252
    break 2
5253
  fi
5254
done
5255
  done
5256
IFS=$as_save_IFS
5257
 
5258
fi
5259
fi
5260
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5261
if test -n "$ac_ct_DUMPBIN"; then
5262
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5263
$as_echo "$ac_ct_DUMPBIN" >&6; }
5264
else
5265
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266
$as_echo "no" >&6; }
5267
fi
5268
 
5269
 
5270
  test -n "$ac_ct_DUMPBIN" && break
5271
done
5272
 
5273
  if test "x$ac_ct_DUMPBIN" = x; then
5274
    DUMPBIN=":"
5275
  else
5276
    case $cross_compiling:$ac_tool_warned in
5277
yes:)
5278
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5279
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5280
ac_tool_warned=yes ;;
5281
esac
5282
    DUMPBIN=$ac_ct_DUMPBIN
5283
  fi
5284
fi
5285
 
5286
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5287
    *COFF*)
5288
      DUMPBIN="$DUMPBIN -symbols"
5289
      ;;
5290
    *)
5291
      DUMPBIN=:
5292
      ;;
5293
    esac
5294
  fi
5295
 
5296
  if test "$DUMPBIN" != ":"; then
5297
    NM="$DUMPBIN"
5298
  fi
5299
fi
5300
test -z "$NM" && NM=nm
5301
 
5302
 
5303
 
5304
 
5305
 
5306
 
5307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5308
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5309
if test "${lt_cv_nm_interface+set}" = set; then :
5310
  $as_echo_n "(cached) " >&6
5311
else
5312
  lt_cv_nm_interface="BSD nm"
5313
  echo "int some_variable = 0;" > conftest.$ac_ext
5314
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5315
  (eval "$ac_compile" 2>conftest.err)
5316
  cat conftest.err >&5
5317
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5318
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5319
  cat conftest.err >&5
5320
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5321
  cat conftest.out >&5
5322
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5323
    lt_cv_nm_interface="MS dumpbin"
5324
  fi
5325
  rm -f conftest*
5326
fi
5327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5328
$as_echo "$lt_cv_nm_interface" >&6; }
5329
 
5330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5331
$as_echo_n "checking whether ln -s works... " >&6; }
5332
LN_S=$as_ln_s
5333
if test "$LN_S" = "ln -s"; then
5334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335
$as_echo "yes" >&6; }
5336
else
5337
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5338
$as_echo "no, using $LN_S" >&6; }
5339
fi
5340
 
5341
# find the maximum length of command line arguments
5342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5343
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5344
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5345
  $as_echo_n "(cached) " >&6
5346
else
5347
    i=0
5348
  teststring="ABCD"
5349
 
5350
  case $build_os in
5351
  msdosdjgpp*)
5352
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5353
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5354
    # during glob expansion).  Even if it were fixed, the result of this
5355
    # check would be larger than it should be.
5356
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5357
    ;;
5358
 
5359
  gnu*)
5360
    # Under GNU Hurd, this test is not required because there is
5361
    # no limit to the length of command line arguments.
5362
    # Libtool will interpret -1 as no limit whatsoever
5363
    lt_cv_sys_max_cmd_len=-1;
5364
    ;;
5365
 
5366
  cygwin* | mingw* | cegcc*)
5367
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5368
    # about 5 minutes as the teststring grows exponentially.
5369
    # Worse, since 9x/ME are not pre-emptively multitasking,
5370
    # you end up with a "frozen" computer, even though with patience
5371
    # the test eventually succeeds (with a max line length of 256k).
5372
    # Instead, let's just punt: use the minimum linelength reported by
5373
    # all of the supported platforms: 8192 (on NT/2K/XP).
5374
    lt_cv_sys_max_cmd_len=8192;
5375
    ;;
5376
 
5377
  mint*)
5378
    # On MiNT this can take a long time and run out of memory.
5379
    lt_cv_sys_max_cmd_len=8192;
5380
    ;;
5381
 
5382
  amigaos*)
5383
    # On AmigaOS with pdksh, this test takes hours, literally.
5384
    # So we just punt and use a minimum line length of 8192.
5385
    lt_cv_sys_max_cmd_len=8192;
5386
    ;;
5387
 
5388
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5389
    # This has been around since 386BSD, at least.  Likely further.
5390
    if test -x /sbin/sysctl; then
5391
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5392
    elif test -x /usr/sbin/sysctl; then
5393
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5394
    else
5395
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5396
    fi
5397
    # And add a safety zone
5398
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5399
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5400
    ;;
5401
 
5402
  interix*)
5403
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5404
    lt_cv_sys_max_cmd_len=196608
5405
    ;;
5406
 
5407
  osf*)
5408
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5409
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5410
    # nice to cause kernel panics so lets avoid the loop below.
5411
    # First set a reasonable default.
5412
    lt_cv_sys_max_cmd_len=16384
5413
    #
5414
    if test -x /sbin/sysconfig; then
5415
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5416
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5417
      esac
5418
    fi
5419
    ;;
5420
  sco3.2v5*)
5421
    lt_cv_sys_max_cmd_len=102400
5422
    ;;
5423
  sysv5* | sco5v6* | sysv4.2uw2*)
5424
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5425
    if test -n "$kargmax"; then
5426
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5427
    else
5428
      lt_cv_sys_max_cmd_len=32768
5429
    fi
5430
    ;;
5431
  *)
5432
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5433
    if test -n "$lt_cv_sys_max_cmd_len"; then
5434
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5435
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5436
    else
5437
      # Make teststring a little bigger before we do anything with it.
5438
      # a 1K string should be a reasonable start.
5439
      for i in 1 2 3 4 5 6 7 8 ; do
5440
        teststring=$teststring$teststring
5441
      done
5442
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5443
      # If test is not a shell built-in, we'll probably end up computing a
5444
      # maximum length that is only half of the actual maximum length, but
5445
      # we can't tell.
5446
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5447
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5448
              test $i != 17 # 1/2 MB should be enough
5449
      do
5450
        i=`expr $i + 1`
5451
        teststring=$teststring$teststring
5452
      done
5453
      # Only check the string length outside the loop.
5454
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5455
      teststring=
5456
      # Add a significant safety factor because C++ compilers can tack on
5457
      # massive amounts of additional arguments before passing them to the
5458
      # linker.  It appears as though 1/2 is a usable value.
5459
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5460
    fi
5461
    ;;
5462
  esac
5463
 
5464
fi
5465
 
5466
if test -n $lt_cv_sys_max_cmd_len ; then
5467
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5468
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5469
else
5470
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5471
$as_echo "none" >&6; }
5472
fi
5473
max_cmd_len=$lt_cv_sys_max_cmd_len
5474
 
5475
 
5476
 
5477
 
5478
 
5479
 
5480
: ${CP="cp -f"}
5481
: ${MV="mv -f"}
5482
: ${RM="rm -f"}
5483
 
5484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5485
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5486
# Try some XSI features
5487
xsi_shell=no
5488
( _lt_dummy="a/b/c"
5489
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5490
      = c,a/b,, \
5491
    && eval 'test $(( 1 + 1 )) -eq 2 \
5492
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5493
  && xsi_shell=yes
5494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5495
$as_echo "$xsi_shell" >&6; }
5496
 
5497
 
5498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5499
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5500
lt_shell_append=no
5501
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5502
    >/dev/null 2>&1 \
5503
  && lt_shell_append=yes
5504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5505
$as_echo "$lt_shell_append" >&6; }
5506
 
5507
 
5508
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5509
  lt_unset=unset
5510
else
5511
  lt_unset=false
5512
fi
5513
 
5514
 
5515
 
5516
 
5517
 
5518
# test EBCDIC or ASCII
5519
case `echo X|tr X '\101'` in
5520
 A) # ASCII based system
5521
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5522
  lt_SP2NL='tr \040 \012'
5523
  lt_NL2SP='tr \015\012 \040\040'
5524
  ;;
5525
 *) # EBCDIC based system
5526
  lt_SP2NL='tr \100 \n'
5527
  lt_NL2SP='tr \r\n \100\100'
5528
  ;;
5529
esac
5530
 
5531
 
5532
 
5533
 
5534
 
5535
 
5536
 
5537
 
5538
 
5539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5540
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5541
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5542
  $as_echo_n "(cached) " >&6
5543
else
5544
  lt_cv_ld_reload_flag='-r'
5545
fi
5546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5547
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5548
reload_flag=$lt_cv_ld_reload_flag
5549
case $reload_flag in
5550
"" | " "*) ;;
5551
*) reload_flag=" $reload_flag" ;;
5552
esac
5553
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554
case $host_os in
5555
  darwin*)
5556
    if test "$GCC" = yes; then
5557
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5558
    else
5559
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5560
    fi
5561
    ;;
5562
esac
5563
 
5564
 
5565
 
5566
 
5567
 
5568
 
5569
 
5570
 
5571
 
5572
if test -n "$ac_tool_prefix"; then
5573
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5574
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576
$as_echo_n "checking for $ac_word... " >&6; }
5577
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5578
  $as_echo_n "(cached) " >&6
5579
else
5580
  if test -n "$OBJDUMP"; then
5581
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5582
else
5583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584
for as_dir in $PATH
5585
do
5586
  IFS=$as_save_IFS
5587
  test -z "$as_dir" && as_dir=.
5588
    for ac_exec_ext in '' $ac_executable_extensions; do
5589
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5591
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592
    break 2
5593
  fi
5594
done
5595
  done
5596
IFS=$as_save_IFS
5597
 
5598
fi
5599
fi
5600
OBJDUMP=$ac_cv_prog_OBJDUMP
5601
if test -n "$OBJDUMP"; then
5602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5603
$as_echo "$OBJDUMP" >&6; }
5604
else
5605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606
$as_echo "no" >&6; }
5607
fi
5608
 
5609
 
5610
fi
5611
if test -z "$ac_cv_prog_OBJDUMP"; then
5612
  ac_ct_OBJDUMP=$OBJDUMP
5613
  # Extract the first word of "objdump", so it can be a program name with args.
5614
set dummy objdump; ac_word=$2
5615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616
$as_echo_n "checking for $ac_word... " >&6; }
5617
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5618
  $as_echo_n "(cached) " >&6
5619
else
5620
  if test -n "$ac_ct_OBJDUMP"; then
5621
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5622
else
5623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624
for as_dir in $PATH
5625
do
5626
  IFS=$as_save_IFS
5627
  test -z "$as_dir" && as_dir=.
5628
    for ac_exec_ext in '' $ac_executable_extensions; do
5629
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5631
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632
    break 2
5633
  fi
5634
done
5635
  done
5636
IFS=$as_save_IFS
5637
 
5638
fi
5639
fi
5640
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5641
if test -n "$ac_ct_OBJDUMP"; then
5642
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5643
$as_echo "$ac_ct_OBJDUMP" >&6; }
5644
else
5645
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646
$as_echo "no" >&6; }
5647
fi
5648
 
5649
  if test "x$ac_ct_OBJDUMP" = x; then
5650
    OBJDUMP="false"
5651
  else
5652
    case $cross_compiling:$ac_tool_warned in
5653
yes:)
5654
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5655
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5656
ac_tool_warned=yes ;;
5657
esac
5658
    OBJDUMP=$ac_ct_OBJDUMP
5659
  fi
5660
else
5661
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5662
fi
5663
 
5664
test -z "$OBJDUMP" && OBJDUMP=objdump
5665
 
5666
 
5667
 
5668
 
5669
 
5670
 
5671
 
5672
 
5673
 
5674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5675
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5676
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5677
  $as_echo_n "(cached) " >&6
5678
else
5679
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5680
lt_cv_file_magic_test_file=
5681
lt_cv_deplibs_check_method='unknown'
5682
# Need to set the preceding variable on all platforms that support
5683
# interlibrary dependencies.
5684
# 'none' -- dependencies not supported.
5685
# `unknown' -- same as none, but documents that we really don't know.
5686
# 'pass_all' -- all dependencies passed with no checks.
5687
# 'test_compile' -- check by making test program.
5688
# 'file_magic [[regex]]' -- check by looking for files in library path
5689
# which responds to the $file_magic_cmd with a given extended regex.
5690
# If you have `file' or equivalent on your system and you're not sure
5691
# whether `pass_all' will *always* work, you probably want this one.
5692
 
5693
case $host_os in
5694
aix[4-9]*)
5695
  lt_cv_deplibs_check_method=pass_all
5696
  ;;
5697
 
5698
beos*)
5699
  lt_cv_deplibs_check_method=pass_all
5700
  ;;
5701
 
5702
bsdi[45]*)
5703
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5704
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5705
  lt_cv_file_magic_test_file=/shlib/libc.so
5706
  ;;
5707
 
5708
cygwin*)
5709
  # func_win32_libid is a shell function defined in ltmain.sh
5710
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5711
  lt_cv_file_magic_cmd='func_win32_libid'
5712
  ;;
5713
 
5714
mingw* | pw32*)
5715
  # Base MSYS/MinGW do not provide the 'file' command needed by
5716
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5717
  # unless we find 'file', for example because we are cross-compiling.
5718
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5719
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5720
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5721
    lt_cv_file_magic_cmd='func_win32_libid'
5722
  else
5723
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5724
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5725
  fi
5726
  ;;
5727
 
5728
cegcc*)
5729
  # use the weaker test based on 'objdump'. See mingw*.
5730
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5731
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5732
  ;;
5733
 
5734
darwin* | rhapsody*)
5735
  lt_cv_deplibs_check_method=pass_all
5736
  ;;
5737
 
5738
freebsd* | dragonfly*)
5739
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5740
    case $host_cpu in
5741
    i*86 )
5742
      # Not sure whether the presence of OpenBSD here was a mistake.
5743
      # Let's accept both of them until this is cleared up.
5744
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5745
      lt_cv_file_magic_cmd=/usr/bin/file
5746
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5747
      ;;
5748
    esac
5749
  else
5750
    lt_cv_deplibs_check_method=pass_all
5751
  fi
5752
  ;;
5753
 
5754
gnu*)
5755
  lt_cv_deplibs_check_method=pass_all
5756
  ;;
5757
 
5758
haiku*)
5759
  lt_cv_deplibs_check_method=pass_all
5760
  ;;
5761
 
5762
hpux10.20* | hpux11*)
5763
  lt_cv_file_magic_cmd=/usr/bin/file
5764
  case $host_cpu in
5765
  ia64*)
5766
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5767
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5768
    ;;
5769
  hppa*64*)
5770
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5771
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5772
    ;;
5773
  *)
5774
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5775
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5776
    ;;
5777
  esac
5778
  ;;
5779
 
5780
interix[3-9]*)
5781
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5782
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5783
  ;;
5784
 
5785
irix5* | irix6* | nonstopux*)
5786
  case $LD in
5787
  *-32|*"-32 ") libmagic=32-bit;;
5788
  *-n32|*"-n32 ") libmagic=N32;;
5789
  *-64|*"-64 ") libmagic=64-bit;;
5790
  *) libmagic=never-match;;
5791
  esac
5792
  lt_cv_deplibs_check_method=pass_all
5793
  ;;
5794
 
5795
# This must be Linux ELF.
5796
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5797
  lt_cv_deplibs_check_method=pass_all
5798
  ;;
5799
 
5800
netbsd*)
5801
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5802
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5803
  else
5804
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5805
  fi
5806
  ;;
5807
 
5808
newos6*)
5809
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5810
  lt_cv_file_magic_cmd=/usr/bin/file
5811
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5812
  ;;
5813
 
5814
*nto* | *qnx*)
5815
  lt_cv_deplibs_check_method=pass_all
5816
  ;;
5817
 
5818
openbsd*)
5819
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5820
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5821
  else
5822
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5823
  fi
5824
  ;;
5825
 
5826
osf3* | osf4* | osf5*)
5827
  lt_cv_deplibs_check_method=pass_all
5828
  ;;
5829
 
5830
rdos*)
5831
  lt_cv_deplibs_check_method=pass_all
5832
  ;;
5833
 
5834
solaris*)
5835
  lt_cv_deplibs_check_method=pass_all
5836
  ;;
5837
 
5838
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5839
  lt_cv_deplibs_check_method=pass_all
5840
  ;;
5841
 
5842
sysv4 | sysv4.3*)
5843
  case $host_vendor in
5844
  motorola)
5845
    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]'
5846
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5847
    ;;
5848
  ncr)
5849
    lt_cv_deplibs_check_method=pass_all
5850
    ;;
5851
  sequent)
5852
    lt_cv_file_magic_cmd='/bin/file'
5853
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5854
    ;;
5855
  sni)
5856
    lt_cv_file_magic_cmd='/bin/file'
5857
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5858
    lt_cv_file_magic_test_file=/lib/libc.so
5859
    ;;
5860
  siemens)
5861
    lt_cv_deplibs_check_method=pass_all
5862
    ;;
5863
  pc)
5864
    lt_cv_deplibs_check_method=pass_all
5865
    ;;
5866
  esac
5867
  ;;
5868
 
5869
tpf*)
5870
  lt_cv_deplibs_check_method=pass_all
5871
  ;;
5872
esac
5873
 
5874
fi
5875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5876
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5877
file_magic_cmd=$lt_cv_file_magic_cmd
5878
deplibs_check_method=$lt_cv_deplibs_check_method
5879
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5880
 
5881
 
5882
 
5883
 
5884
 
5885
 
5886
 
5887
 
5888
 
5889
 
5890
 
5891
 
5892
if test -n "$ac_tool_prefix"; then
5893
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5894
set dummy ${ac_tool_prefix}ar; ac_word=$2
5895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896
$as_echo_n "checking for $ac_word... " >&6; }
5897
if test "${ac_cv_prog_AR+set}" = set; then :
5898
  $as_echo_n "(cached) " >&6
5899
else
5900
  if test -n "$AR"; then
5901
  ac_cv_prog_AR="$AR" # Let the user override the test.
5902
else
5903
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904
for as_dir in $PATH
5905
do
5906
  IFS=$as_save_IFS
5907
  test -z "$as_dir" && as_dir=.
5908
    for ac_exec_ext in '' $ac_executable_extensions; do
5909
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5911
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912
    break 2
5913
  fi
5914
done
5915
  done
5916
IFS=$as_save_IFS
5917
 
5918
fi
5919
fi
5920
AR=$ac_cv_prog_AR
5921
if test -n "$AR"; then
5922
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5923
$as_echo "$AR" >&6; }
5924
else
5925
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926
$as_echo "no" >&6; }
5927
fi
5928
 
5929
 
5930
fi
5931
if test -z "$ac_cv_prog_AR"; then
5932
  ac_ct_AR=$AR
5933
  # Extract the first word of "ar", so it can be a program name with args.
5934
set dummy ar; ac_word=$2
5935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936
$as_echo_n "checking for $ac_word... " >&6; }
5937
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5938
  $as_echo_n "(cached) " >&6
5939
else
5940
  if test -n "$ac_ct_AR"; then
5941
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5942
else
5943
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944
for as_dir in $PATH
5945
do
5946
  IFS=$as_save_IFS
5947
  test -z "$as_dir" && as_dir=.
5948
    for ac_exec_ext in '' $ac_executable_extensions; do
5949
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950
    ac_cv_prog_ac_ct_AR="ar"
5951
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952
    break 2
5953
  fi
5954
done
5955
  done
5956
IFS=$as_save_IFS
5957
 
5958
fi
5959
fi
5960
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5961
if test -n "$ac_ct_AR"; then
5962
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5963
$as_echo "$ac_ct_AR" >&6; }
5964
else
5965
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966
$as_echo "no" >&6; }
5967
fi
5968
 
5969
  if test "x$ac_ct_AR" = x; then
5970
    AR="false"
5971
  else
5972
    case $cross_compiling:$ac_tool_warned in
5973
yes:)
5974
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5975
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5976
ac_tool_warned=yes ;;
5977
esac
5978
    AR=$ac_ct_AR
5979
  fi
5980
else
5981
  AR="$ac_cv_prog_AR"
5982
fi
5983
 
5984
test -z "$AR" && AR=ar
5985
test -z "$AR_FLAGS" && AR_FLAGS=cru
5986
 
5987
 
5988
 
5989
 
5990
 
5991
 
5992
 
5993
 
5994
 
5995
 
5996
 
5997
if test -n "$ac_tool_prefix"; then
5998
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999
set dummy ${ac_tool_prefix}strip; ac_word=$2
6000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001
$as_echo_n "checking for $ac_word... " >&6; }
6002
if test "${ac_cv_prog_STRIP+set}" = set; then :
6003
  $as_echo_n "(cached) " >&6
6004
else
6005
  if test -n "$STRIP"; then
6006
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6007
else
6008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009
for as_dir in $PATH
6010
do
6011
  IFS=$as_save_IFS
6012
  test -z "$as_dir" && as_dir=.
6013
    for ac_exec_ext in '' $ac_executable_extensions; do
6014
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017
    break 2
6018
  fi
6019
done
6020
  done
6021
IFS=$as_save_IFS
6022
 
6023
fi
6024
fi
6025
STRIP=$ac_cv_prog_STRIP
6026
if test -n "$STRIP"; then
6027
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6028
$as_echo "$STRIP" >&6; }
6029
else
6030
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031
$as_echo "no" >&6; }
6032
fi
6033
 
6034
 
6035
fi
6036
if test -z "$ac_cv_prog_STRIP"; then
6037
  ac_ct_STRIP=$STRIP
6038
  # Extract the first word of "strip", so it can be a program name with args.
6039
set dummy strip; ac_word=$2
6040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041
$as_echo_n "checking for $ac_word... " >&6; }
6042
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6043
  $as_echo_n "(cached) " >&6
6044
else
6045
  if test -n "$ac_ct_STRIP"; then
6046
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6047
else
6048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049
for as_dir in $PATH
6050
do
6051
  IFS=$as_save_IFS
6052
  test -z "$as_dir" && as_dir=.
6053
    for ac_exec_ext in '' $ac_executable_extensions; do
6054
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055
    ac_cv_prog_ac_ct_STRIP="strip"
6056
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057
    break 2
6058
  fi
6059
done
6060
  done
6061
IFS=$as_save_IFS
6062
 
6063
fi
6064
fi
6065
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6066
if test -n "$ac_ct_STRIP"; then
6067
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6068
$as_echo "$ac_ct_STRIP" >&6; }
6069
else
6070
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071
$as_echo "no" >&6; }
6072
fi
6073
 
6074
  if test "x$ac_ct_STRIP" = x; then
6075
    STRIP=":"
6076
  else
6077
    case $cross_compiling:$ac_tool_warned in
6078
yes:)
6079
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081
ac_tool_warned=yes ;;
6082
esac
6083
    STRIP=$ac_ct_STRIP
6084
  fi
6085
else
6086
  STRIP="$ac_cv_prog_STRIP"
6087
fi
6088
 
6089
test -z "$STRIP" && STRIP=:
6090
 
6091
 
6092
 
6093
 
6094
 
6095
 
6096
if test -n "$ac_tool_prefix"; then
6097
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6098
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100
$as_echo_n "checking for $ac_word... " >&6; }
6101
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6102
  $as_echo_n "(cached) " >&6
6103
else
6104
  if test -n "$RANLIB"; then
6105
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6106
else
6107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108
for as_dir in $PATH
6109
do
6110
  IFS=$as_save_IFS
6111
  test -z "$as_dir" && as_dir=.
6112
    for ac_exec_ext in '' $ac_executable_extensions; do
6113
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6115
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116
    break 2
6117
  fi
6118
done
6119
  done
6120
IFS=$as_save_IFS
6121
 
6122
fi
6123
fi
6124
RANLIB=$ac_cv_prog_RANLIB
6125
if test -n "$RANLIB"; then
6126
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6127
$as_echo "$RANLIB" >&6; }
6128
else
6129
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130
$as_echo "no" >&6; }
6131
fi
6132
 
6133
 
6134
fi
6135
if test -z "$ac_cv_prog_RANLIB"; then
6136
  ac_ct_RANLIB=$RANLIB
6137
  # Extract the first word of "ranlib", so it can be a program name with args.
6138
set dummy ranlib; ac_word=$2
6139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140
$as_echo_n "checking for $ac_word... " >&6; }
6141
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6142
  $as_echo_n "(cached) " >&6
6143
else
6144
  if test -n "$ac_ct_RANLIB"; then
6145
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6146
else
6147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148
for as_dir in $PATH
6149
do
6150
  IFS=$as_save_IFS
6151
  test -z "$as_dir" && as_dir=.
6152
    for ac_exec_ext in '' $ac_executable_extensions; do
6153
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6155
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156
    break 2
6157
  fi
6158
done
6159
  done
6160
IFS=$as_save_IFS
6161
 
6162
fi
6163
fi
6164
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6165
if test -n "$ac_ct_RANLIB"; then
6166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6167
$as_echo "$ac_ct_RANLIB" >&6; }
6168
else
6169
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170
$as_echo "no" >&6; }
6171
fi
6172
 
6173
  if test "x$ac_ct_RANLIB" = x; then
6174
    RANLIB=":"
6175
  else
6176
    case $cross_compiling:$ac_tool_warned in
6177
yes:)
6178
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180
ac_tool_warned=yes ;;
6181
esac
6182
    RANLIB=$ac_ct_RANLIB
6183
  fi
6184
else
6185
  RANLIB="$ac_cv_prog_RANLIB"
6186
fi
6187
 
6188
test -z "$RANLIB" && RANLIB=:
6189
 
6190
 
6191
 
6192
 
6193
 
6194
 
6195
# Determine commands to create old-style static archives.
6196
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6197
old_postinstall_cmds='chmod 644 $oldlib'
6198
old_postuninstall_cmds=
6199
 
6200
if test -n "$RANLIB"; then
6201
  case $host_os in
6202
  openbsd*)
6203
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6204
    ;;
6205
  *)
6206
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6207
    ;;
6208
  esac
6209
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6210
fi
6211
 
6212
case $host_os in
6213
  darwin*)
6214
    lock_old_archive_extraction=yes ;;
6215
  *)
6216
    lock_old_archive_extraction=no ;;
6217
esac
6218
 
6219
 
6220
 
6221
 
6222
 
6223
 
6224
 
6225
 
6226
 
6227
 
6228
 
6229
 
6230
 
6231
 
6232
 
6233
 
6234
 
6235
 
6236
 
6237
 
6238
 
6239
 
6240
 
6241
 
6242
 
6243
 
6244
 
6245
 
6246
 
6247
 
6248
 
6249
 
6250
 
6251
 
6252
 
6253
 
6254
 
6255
 
6256
 
6257
# If no C compiler was specified, use CC.
6258
LTCC=${LTCC-"$CC"}
6259
 
6260
# If no C compiler flags were specified, use CFLAGS.
6261
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6262
 
6263
# Allow CC to be a program name with arguments.
6264
compiler=$CC
6265
 
6266
 
6267
# Check for command to grab the raw symbol name followed by C symbol from nm.
6268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6269
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6270
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6271
  $as_echo_n "(cached) " >&6
6272
else
6273
 
6274
# These are sane defaults that work on at least a few old systems.
6275
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6276
 
6277
# Character class describing NM global symbol codes.
6278
symcode='[BCDEGRST]'
6279
 
6280
# Regexp to match symbols that can be accessed directly from C.
6281
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6282
 
6283
# Define system-specific variables.
6284
case $host_os in
6285
aix*)
6286
  symcode='[BCDT]'
6287
  ;;
6288
cygwin* | mingw* | pw32* | cegcc*)
6289
  symcode='[ABCDGISTW]'
6290
  ;;
6291
hpux*)
6292
  if test "$host_cpu" = ia64; then
6293
    symcode='[ABCDEGRST]'
6294
  fi
6295
  ;;
6296
irix* | nonstopux*)
6297
  symcode='[BCDEGRST]'
6298
  ;;
6299
osf*)
6300
  symcode='[BCDEGQRST]'
6301
  ;;
6302
solaris*)
6303
  symcode='[BDRT]'
6304
  ;;
6305
sco3.2v5*)
6306
  symcode='[DT]'
6307
  ;;
6308
sysv4.2uw2*)
6309
  symcode='[DT]'
6310
  ;;
6311
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6312
  symcode='[ABDT]'
6313
  ;;
6314
sysv4)
6315
  symcode='[DFNSTU]'
6316
  ;;
6317
esac
6318
 
6319
# If we're using GNU nm, then use its standard symbol codes.
6320
case `$NM -V 2>&1` in
6321
*GNU* | *'with BFD'*)
6322
  symcode='[ABCDGIRSTW]' ;;
6323
esac
6324
 
6325
# Transform an extracted symbol line into a proper C declaration.
6326
# Some systems (esp. on ia64) link data and code symbols differently,
6327
# so use this general approach.
6328
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6329
 
6330
# Transform an extracted symbol line into symbol name and symbol address
6331
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6332
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6333
 
6334
# Handle CRLF in mingw tool chain
6335
opt_cr=
6336
case $build_os in
6337
mingw*)
6338
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6339
  ;;
6340
esac
6341
 
6342
# Try without a prefix underscore, then with it.
6343
for ac_symprfx in "" "_"; do
6344
 
6345
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6346
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6347
 
6348
  # Write the raw and C identifiers.
6349
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6350
    # Fake it for dumpbin and say T for any non-static function
6351
    # and D for any global variable.
6352
    # Also find C++ and __fastcall symbols from MSVC++,
6353
    # which start with @ or ?.
6354
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6355
"     {last_section=section; section=\$ 3};"\
6356
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6357
"     \$ 0!~/External *\|/{next};"\
6358
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6359
"     {if(hide[section]) next};"\
6360
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6361
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6362
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6363
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6364
"     ' prfx=^$ac_symprfx"
6365
  else
6366
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6367
  fi
6368
 
6369
  # Check to see that the pipe works correctly.
6370
  pipe_works=no
6371
 
6372
  rm -f conftest*
6373
  cat > conftest.$ac_ext <<_LT_EOF
6374
#ifdef __cplusplus
6375
extern "C" {
6376
#endif
6377
char nm_test_var;
6378
void nm_test_func(void);
6379
void nm_test_func(void){}
6380
#ifdef __cplusplus
6381
}
6382
#endif
6383
int main(){nm_test_var='a';nm_test_func();return(0);}
6384
_LT_EOF
6385
 
6386
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6387
  (eval $ac_compile) 2>&5
6388
  ac_status=$?
6389
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6390
  test $ac_status = 0; }; then
6391
    # Now try to grab the symbols.
6392
    nlist=conftest.nm
6393
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6394
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6395
  ac_status=$?
6396
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6397
  test $ac_status = 0; } && test -s "$nlist"; then
6398
      # Try sorting and uniquifying the output.
6399
      if sort "$nlist" | uniq > "$nlist"T; then
6400
        mv -f "$nlist"T "$nlist"
6401
      else
6402
        rm -f "$nlist"T
6403
      fi
6404
 
6405
      # Make sure that we snagged all the symbols we need.
6406
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6407
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6408
          cat <<_LT_EOF > conftest.$ac_ext
6409
#ifdef __cplusplus
6410
extern "C" {
6411
#endif
6412
 
6413
_LT_EOF
6414
          # Now generate the symbol file.
6415
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6416
 
6417
          cat <<_LT_EOF >> conftest.$ac_ext
6418
 
6419
/* The mapping between symbol names and symbols.  */
6420
const struct {
6421
  const char *name;
6422
  void       *address;
6423
}
6424
lt__PROGRAM__LTX_preloaded_symbols[] =
6425
{
6426
  { "@PROGRAM@", (void *) 0 },
6427
_LT_EOF
6428
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6429
          cat <<\_LT_EOF >> conftest.$ac_ext
6430
  {0, (void *) 0}
6431
};
6432
 
6433
/* This works around a problem in FreeBSD linker */
6434
#ifdef FREEBSD_WORKAROUND
6435
static const void *lt_preloaded_setup() {
6436
  return lt__PROGRAM__LTX_preloaded_symbols;
6437
}
6438
#endif
6439
 
6440
#ifdef __cplusplus
6441
}
6442
#endif
6443
_LT_EOF
6444
          # Now try linking the two files.
6445
          mv conftest.$ac_objext conftstm.$ac_objext
6446
          lt_save_LIBS="$LIBS"
6447
          lt_save_CFLAGS="$CFLAGS"
6448
          LIBS="conftstm.$ac_objext"
6449
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6450
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6451
  (eval $ac_link) 2>&5
6452
  ac_status=$?
6453
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6455
            pipe_works=yes
6456
          fi
6457
          LIBS="$lt_save_LIBS"
6458
          CFLAGS="$lt_save_CFLAGS"
6459
        else
6460
          echo "cannot find nm_test_func in $nlist" >&5
6461
        fi
6462
      else
6463
        echo "cannot find nm_test_var in $nlist" >&5
6464
      fi
6465
    else
6466
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6467
    fi
6468
  else
6469
    echo "$progname: failed program was:" >&5
6470
    cat conftest.$ac_ext >&5
6471
  fi
6472
  rm -rf conftest* conftst*
6473
 
6474
  # Do not use the global_symbol_pipe unless it works.
6475
  if test "$pipe_works" = yes; then
6476
    break
6477
  else
6478
    lt_cv_sys_global_symbol_pipe=
6479
  fi
6480
done
6481
 
6482
fi
6483
 
6484
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6485
  lt_cv_sys_global_symbol_to_cdecl=
6486
fi
6487
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6488
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6489
$as_echo "failed" >&6; }
6490
else
6491
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6492
$as_echo "ok" >&6; }
6493
fi
6494
 
6495
 
6496
 
6497
 
6498
 
6499
 
6500
 
6501
 
6502
 
6503
 
6504
 
6505
 
6506
 
6507
 
6508
 
6509
 
6510
 
6511
 
6512
 
6513
 
6514
 
6515
 
6516
 
6517
# Check whether --enable-libtool-lock was given.
6518
if test "${enable_libtool_lock+set}" = set; then :
6519
  enableval=$enable_libtool_lock;
6520
fi
6521
 
6522
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6523
 
6524
# Some flags need to be propagated to the compiler or linker for good
6525
# libtool support.
6526
case $host in
6527
ia64-*-hpux*)
6528
  # Find out which ABI we are using.
6529
  echo 'int i;' > conftest.$ac_ext
6530
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6531
  (eval $ac_compile) 2>&5
6532
  ac_status=$?
6533
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534
  test $ac_status = 0; }; then
6535
    case `/usr/bin/file conftest.$ac_objext` in
6536
      *ELF-32*)
6537
        HPUX_IA64_MODE="32"
6538
        ;;
6539
      *ELF-64*)
6540
        HPUX_IA64_MODE="64"
6541
        ;;
6542
    esac
6543
  fi
6544
  rm -rf conftest*
6545
  ;;
6546
*-*-irix6*)
6547
  # Find out which ABI we are using.
6548
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6549
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6550
  (eval $ac_compile) 2>&5
6551
  ac_status=$?
6552
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553
  test $ac_status = 0; }; then
6554
    if test "$lt_cv_prog_gnu_ld" = yes; then
6555
      case `/usr/bin/file conftest.$ac_objext` in
6556
        *32-bit*)
6557
          LD="${LD-ld} -melf32bsmip"
6558
          ;;
6559
        *N32*)
6560
          LD="${LD-ld} -melf32bmipn32"
6561
          ;;
6562
        *64-bit*)
6563
          LD="${LD-ld} -melf64bmip"
6564
        ;;
6565
      esac
6566
    else
6567
      case `/usr/bin/file conftest.$ac_objext` in
6568
        *32-bit*)
6569
          LD="${LD-ld} -32"
6570
          ;;
6571
        *N32*)
6572
          LD="${LD-ld} -n32"
6573
          ;;
6574
        *64-bit*)
6575
          LD="${LD-ld} -64"
6576
          ;;
6577
      esac
6578
    fi
6579
  fi
6580
  rm -rf conftest*
6581
  ;;
6582
 
6583
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6584
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6585
  # Find out which ABI we are using.
6586
  echo 'int i;' > conftest.$ac_ext
6587
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6588
  (eval $ac_compile) 2>&5
6589
  ac_status=$?
6590
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591
  test $ac_status = 0; }; then
6592
    case `/usr/bin/file conftest.o` in
6593
      *32-bit*)
6594
        case $host in
6595
          x86_64-*kfreebsd*-gnu)
6596
            LD="${LD-ld} -m elf_i386_fbsd"
6597
            ;;
6598
          x86_64-*linux*)
6599
            LD="${LD-ld} -m elf_i386"
6600
            ;;
6601
          ppc64-*linux*|powerpc64-*linux*)
6602
            LD="${LD-ld} -m elf32ppclinux"
6603
            ;;
6604
          s390x-*linux*)
6605
            LD="${LD-ld} -m elf_s390"
6606
            ;;
6607
          sparc64-*linux*)
6608
            LD="${LD-ld} -m elf32_sparc"
6609
            ;;
6610
        esac
6611
        ;;
6612
      *64-bit*)
6613
        case $host in
6614
          x86_64-*kfreebsd*-gnu)
6615
            LD="${LD-ld} -m elf_x86_64_fbsd"
6616
            ;;
6617
          x86_64-*linux*)
6618
            LD="${LD-ld} -m elf_x86_64"
6619
            ;;
6620
          ppc*-*linux*|powerpc*-*linux*)
6621
            LD="${LD-ld} -m elf64ppc"
6622
            ;;
6623
          s390*-*linux*|s390*-*tpf*)
6624
            LD="${LD-ld} -m elf64_s390"
6625
            ;;
6626
          sparc*-*linux*)
6627
            LD="${LD-ld} -m elf64_sparc"
6628
            ;;
6629
        esac
6630
        ;;
6631
    esac
6632
  fi
6633
  rm -rf conftest*
6634
  ;;
6635
 
6636
*-*-sco3.2v5*)
6637
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6638
  SAVE_CFLAGS="$CFLAGS"
6639
  CFLAGS="$CFLAGS -belf"
6640
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6641
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6642
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6643
  $as_echo_n "(cached) " >&6
6644
else
6645
  ac_ext=c
6646
ac_cpp='$CPP $CPPFLAGS'
6647
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6650
 
6651
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652
/* end confdefs.h.  */
6653
 
6654
int
6655
main ()
6656
{
6657
 
6658
  ;
6659
  return 0;
6660
}
6661
_ACEOF
6662
if ac_fn_c_try_link "$LINENO"; then :
6663
  lt_cv_cc_needs_belf=yes
6664
else
6665
  lt_cv_cc_needs_belf=no
6666
fi
6667
rm -f core conftest.err conftest.$ac_objext \
6668
    conftest$ac_exeext conftest.$ac_ext
6669
     ac_ext=c
6670
ac_cpp='$CPP $CPPFLAGS'
6671
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6672
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6673
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6674
 
6675
fi
6676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6677
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6678
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6679
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6680
    CFLAGS="$SAVE_CFLAGS"
6681
  fi
6682
  ;;
6683
sparc*-*solaris*)
6684
  # Find out which ABI we are using.
6685
  echo 'int i;' > conftest.$ac_ext
6686
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6687
  (eval $ac_compile) 2>&5
6688
  ac_status=$?
6689
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6690
  test $ac_status = 0; }; then
6691
    case `/usr/bin/file conftest.o` in
6692
    *64-bit*)
6693
      case $lt_cv_prog_gnu_ld in
6694
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6695
      *)
6696
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6697
          LD="${LD-ld} -64"
6698
        fi
6699
        ;;
6700
      esac
6701
      ;;
6702
    esac
6703
  fi
6704
  rm -rf conftest*
6705
  ;;
6706
esac
6707
 
6708
need_locks="$enable_libtool_lock"
6709
 
6710
 
6711
  case $host_os in
6712
    rhapsody* | darwin*)
6713
    if test -n "$ac_tool_prefix"; then
6714
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6715
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717
$as_echo_n "checking for $ac_word... " >&6; }
6718
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6719
  $as_echo_n "(cached) " >&6
6720
else
6721
  if test -n "$DSYMUTIL"; then
6722
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6723
else
6724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725
for as_dir in $PATH
6726
do
6727
  IFS=$as_save_IFS
6728
  test -z "$as_dir" && as_dir=.
6729
    for ac_exec_ext in '' $ac_executable_extensions; do
6730
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6732
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733
    break 2
6734
  fi
6735
done
6736
  done
6737
IFS=$as_save_IFS
6738
 
6739
fi
6740
fi
6741
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6742
if test -n "$DSYMUTIL"; then
6743
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6744
$as_echo "$DSYMUTIL" >&6; }
6745
else
6746
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747
$as_echo "no" >&6; }
6748
fi
6749
 
6750
 
6751
fi
6752
if test -z "$ac_cv_prog_DSYMUTIL"; then
6753
  ac_ct_DSYMUTIL=$DSYMUTIL
6754
  # Extract the first word of "dsymutil", so it can be a program name with args.
6755
set dummy dsymutil; ac_word=$2
6756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757
$as_echo_n "checking for $ac_word... " >&6; }
6758
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6759
  $as_echo_n "(cached) " >&6
6760
else
6761
  if test -n "$ac_ct_DSYMUTIL"; then
6762
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6763
else
6764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765
for as_dir in $PATH
6766
do
6767
  IFS=$as_save_IFS
6768
  test -z "$as_dir" && as_dir=.
6769
    for ac_exec_ext in '' $ac_executable_extensions; do
6770
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6772
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773
    break 2
6774
  fi
6775
done
6776
  done
6777
IFS=$as_save_IFS
6778
 
6779
fi
6780
fi
6781
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6782
if test -n "$ac_ct_DSYMUTIL"; then
6783
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6784
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6785
else
6786
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787
$as_echo "no" >&6; }
6788
fi
6789
 
6790
  if test "x$ac_ct_DSYMUTIL" = x; then
6791
    DSYMUTIL=":"
6792
  else
6793
    case $cross_compiling:$ac_tool_warned in
6794
yes:)
6795
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797
ac_tool_warned=yes ;;
6798
esac
6799
    DSYMUTIL=$ac_ct_DSYMUTIL
6800
  fi
6801
else
6802
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6803
fi
6804
 
6805
    if test -n "$ac_tool_prefix"; then
6806
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6807
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809
$as_echo_n "checking for $ac_word... " >&6; }
6810
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6811
  $as_echo_n "(cached) " >&6
6812
else
6813
  if test -n "$NMEDIT"; then
6814
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6815
else
6816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817
for as_dir in $PATH
6818
do
6819
  IFS=$as_save_IFS
6820
  test -z "$as_dir" && as_dir=.
6821
    for ac_exec_ext in '' $ac_executable_extensions; do
6822
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6824
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825
    break 2
6826
  fi
6827
done
6828
  done
6829
IFS=$as_save_IFS
6830
 
6831
fi
6832
fi
6833
NMEDIT=$ac_cv_prog_NMEDIT
6834
if test -n "$NMEDIT"; then
6835
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6836
$as_echo "$NMEDIT" >&6; }
6837
else
6838
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839
$as_echo "no" >&6; }
6840
fi
6841
 
6842
 
6843
fi
6844
if test -z "$ac_cv_prog_NMEDIT"; then
6845
  ac_ct_NMEDIT=$NMEDIT
6846
  # Extract the first word of "nmedit", so it can be a program name with args.
6847
set dummy nmedit; ac_word=$2
6848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849
$as_echo_n "checking for $ac_word... " >&6; }
6850
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6851
  $as_echo_n "(cached) " >&6
6852
else
6853
  if test -n "$ac_ct_NMEDIT"; then
6854
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6855
else
6856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857
for as_dir in $PATH
6858
do
6859
  IFS=$as_save_IFS
6860
  test -z "$as_dir" && as_dir=.
6861
    for ac_exec_ext in '' $ac_executable_extensions; do
6862
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6864
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865
    break 2
6866
  fi
6867
done
6868
  done
6869
IFS=$as_save_IFS
6870
 
6871
fi
6872
fi
6873
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6874
if test -n "$ac_ct_NMEDIT"; then
6875
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6876
$as_echo "$ac_ct_NMEDIT" >&6; }
6877
else
6878
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879
$as_echo "no" >&6; }
6880
fi
6881
 
6882
  if test "x$ac_ct_NMEDIT" = x; then
6883
    NMEDIT=":"
6884
  else
6885
    case $cross_compiling:$ac_tool_warned in
6886
yes:)
6887
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889
ac_tool_warned=yes ;;
6890
esac
6891
    NMEDIT=$ac_ct_NMEDIT
6892
  fi
6893
else
6894
  NMEDIT="$ac_cv_prog_NMEDIT"
6895
fi
6896
 
6897
    if test -n "$ac_tool_prefix"; then
6898
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6899
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901
$as_echo_n "checking for $ac_word... " >&6; }
6902
if test "${ac_cv_prog_LIPO+set}" = set; then :
6903
  $as_echo_n "(cached) " >&6
6904
else
6905
  if test -n "$LIPO"; then
6906
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6907
else
6908
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909
for as_dir in $PATH
6910
do
6911
  IFS=$as_save_IFS
6912
  test -z "$as_dir" && as_dir=.
6913
    for ac_exec_ext in '' $ac_executable_extensions; do
6914
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6916
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917
    break 2
6918
  fi
6919
done
6920
  done
6921
IFS=$as_save_IFS
6922
 
6923
fi
6924
fi
6925
LIPO=$ac_cv_prog_LIPO
6926
if test -n "$LIPO"; then
6927
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6928
$as_echo "$LIPO" >&6; }
6929
else
6930
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931
$as_echo "no" >&6; }
6932
fi
6933
 
6934
 
6935
fi
6936
if test -z "$ac_cv_prog_LIPO"; then
6937
  ac_ct_LIPO=$LIPO
6938
  # Extract the first word of "lipo", so it can be a program name with args.
6939
set dummy lipo; ac_word=$2
6940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941
$as_echo_n "checking for $ac_word... " >&6; }
6942
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6943
  $as_echo_n "(cached) " >&6
6944
else
6945
  if test -n "$ac_ct_LIPO"; then
6946
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6947
else
6948
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949
for as_dir in $PATH
6950
do
6951
  IFS=$as_save_IFS
6952
  test -z "$as_dir" && as_dir=.
6953
    for ac_exec_ext in '' $ac_executable_extensions; do
6954
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955
    ac_cv_prog_ac_ct_LIPO="lipo"
6956
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957
    break 2
6958
  fi
6959
done
6960
  done
6961
IFS=$as_save_IFS
6962
 
6963
fi
6964
fi
6965
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6966
if test -n "$ac_ct_LIPO"; then
6967
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6968
$as_echo "$ac_ct_LIPO" >&6; }
6969
else
6970
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971
$as_echo "no" >&6; }
6972
fi
6973
 
6974
  if test "x$ac_ct_LIPO" = x; then
6975
    LIPO=":"
6976
  else
6977
    case $cross_compiling:$ac_tool_warned in
6978
yes:)
6979
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981
ac_tool_warned=yes ;;
6982
esac
6983
    LIPO=$ac_ct_LIPO
6984
  fi
6985
else
6986
  LIPO="$ac_cv_prog_LIPO"
6987
fi
6988
 
6989
    if test -n "$ac_tool_prefix"; then
6990
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6991
set dummy ${ac_tool_prefix}otool; ac_word=$2
6992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993
$as_echo_n "checking for $ac_word... " >&6; }
6994
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6995
  $as_echo_n "(cached) " >&6
6996
else
6997
  if test -n "$OTOOL"; then
6998
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6999
else
7000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001
for as_dir in $PATH
7002
do
7003
  IFS=$as_save_IFS
7004
  test -z "$as_dir" && as_dir=.
7005
    for ac_exec_ext in '' $ac_executable_extensions; do
7006
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7008
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009
    break 2
7010
  fi
7011
done
7012
  done
7013
IFS=$as_save_IFS
7014
 
7015
fi
7016
fi
7017
OTOOL=$ac_cv_prog_OTOOL
7018
if test -n "$OTOOL"; then
7019
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7020
$as_echo "$OTOOL" >&6; }
7021
else
7022
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023
$as_echo "no" >&6; }
7024
fi
7025
 
7026
 
7027
fi
7028
if test -z "$ac_cv_prog_OTOOL"; then
7029
  ac_ct_OTOOL=$OTOOL
7030
  # Extract the first word of "otool", so it can be a program name with args.
7031
set dummy otool; ac_word=$2
7032
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033
$as_echo_n "checking for $ac_word... " >&6; }
7034
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7035
  $as_echo_n "(cached) " >&6
7036
else
7037
  if test -n "$ac_ct_OTOOL"; then
7038
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7039
else
7040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041
for as_dir in $PATH
7042
do
7043
  IFS=$as_save_IFS
7044
  test -z "$as_dir" && as_dir=.
7045
    for ac_exec_ext in '' $ac_executable_extensions; do
7046
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047
    ac_cv_prog_ac_ct_OTOOL="otool"
7048
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049
    break 2
7050
  fi
7051
done
7052
  done
7053
IFS=$as_save_IFS
7054
 
7055
fi
7056
fi
7057
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7058
if test -n "$ac_ct_OTOOL"; then
7059
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7060
$as_echo "$ac_ct_OTOOL" >&6; }
7061
else
7062
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063
$as_echo "no" >&6; }
7064
fi
7065
 
7066
  if test "x$ac_ct_OTOOL" = x; then
7067
    OTOOL=":"
7068
  else
7069
    case $cross_compiling:$ac_tool_warned in
7070
yes:)
7071
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073
ac_tool_warned=yes ;;
7074
esac
7075
    OTOOL=$ac_ct_OTOOL
7076
  fi
7077
else
7078
  OTOOL="$ac_cv_prog_OTOOL"
7079
fi
7080
 
7081
    if test -n "$ac_tool_prefix"; then
7082
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7083
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085
$as_echo_n "checking for $ac_word... " >&6; }
7086
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7087
  $as_echo_n "(cached) " >&6
7088
else
7089
  if test -n "$OTOOL64"; then
7090
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7091
else
7092
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093
for as_dir in $PATH
7094
do
7095
  IFS=$as_save_IFS
7096
  test -z "$as_dir" && as_dir=.
7097
    for ac_exec_ext in '' $ac_executable_extensions; do
7098
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7100
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101
    break 2
7102
  fi
7103
done
7104
  done
7105
IFS=$as_save_IFS
7106
 
7107
fi
7108
fi
7109
OTOOL64=$ac_cv_prog_OTOOL64
7110
if test -n "$OTOOL64"; then
7111
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7112
$as_echo "$OTOOL64" >&6; }
7113
else
7114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115
$as_echo "no" >&6; }
7116
fi
7117
 
7118
 
7119
fi
7120
if test -z "$ac_cv_prog_OTOOL64"; then
7121
  ac_ct_OTOOL64=$OTOOL64
7122
  # Extract the first word of "otool64", so it can be a program name with args.
7123
set dummy otool64; ac_word=$2
7124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125
$as_echo_n "checking for $ac_word... " >&6; }
7126
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7127
  $as_echo_n "(cached) " >&6
7128
else
7129
  if test -n "$ac_ct_OTOOL64"; then
7130
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7131
else
7132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133
for as_dir in $PATH
7134
do
7135
  IFS=$as_save_IFS
7136
  test -z "$as_dir" && as_dir=.
7137
    for ac_exec_ext in '' $ac_executable_extensions; do
7138
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7140
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141
    break 2
7142
  fi
7143
done
7144
  done
7145
IFS=$as_save_IFS
7146
 
7147
fi
7148
fi
7149
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7150
if test -n "$ac_ct_OTOOL64"; then
7151
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7152
$as_echo "$ac_ct_OTOOL64" >&6; }
7153
else
7154
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155
$as_echo "no" >&6; }
7156
fi
7157
 
7158
  if test "x$ac_ct_OTOOL64" = x; then
7159
    OTOOL64=":"
7160
  else
7161
    case $cross_compiling:$ac_tool_warned in
7162
yes:)
7163
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165
ac_tool_warned=yes ;;
7166
esac
7167
    OTOOL64=$ac_ct_OTOOL64
7168
  fi
7169
else
7170
  OTOOL64="$ac_cv_prog_OTOOL64"
7171
fi
7172
 
7173
 
7174
 
7175
 
7176
 
7177
 
7178
 
7179
 
7180
 
7181
 
7182
 
7183
 
7184
 
7185
 
7186
 
7187
 
7188
 
7189
 
7190
 
7191
 
7192
 
7193
 
7194
 
7195
 
7196
 
7197
 
7198
 
7199
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7200
$as_echo_n "checking for -single_module linker flag... " >&6; }
7201
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7202
  $as_echo_n "(cached) " >&6
7203
else
7204
  lt_cv_apple_cc_single_mod=no
7205
      if test -z "${LT_MULTI_MODULE}"; then
7206
        # By default we will add the -single_module flag. You can override
7207
        # by either setting the environment variable LT_MULTI_MODULE
7208
        # non-empty at configure time, or by adding -multi_module to the
7209
        # link flags.
7210
        rm -rf libconftest.dylib*
7211
        echo "int foo(void){return 1;}" > conftest.c
7212
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7213
-dynamiclib -Wl,-single_module conftest.c" >&5
7214
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7215
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7216
        _lt_result=$?
7217
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7218
          lt_cv_apple_cc_single_mod=yes
7219
        else
7220
          cat conftest.err >&5
7221
        fi
7222
        rm -rf libconftest.dylib*
7223
        rm -f conftest.*
7224
      fi
7225
fi
7226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7227
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7228
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7229
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7230
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7231
  $as_echo_n "(cached) " >&6
7232
else
7233
  lt_cv_ld_exported_symbols_list=no
7234
      save_LDFLAGS=$LDFLAGS
7235
      echo "_main" > conftest.sym
7236
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7237
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238
/* end confdefs.h.  */
7239
 
7240
int
7241
main ()
7242
{
7243
 
7244
  ;
7245
  return 0;
7246
}
7247
_ACEOF
7248
if ac_fn_c_try_link "$LINENO"; then :
7249
  lt_cv_ld_exported_symbols_list=yes
7250
else
7251
  lt_cv_ld_exported_symbols_list=no
7252
fi
7253
rm -f core conftest.err conftest.$ac_objext \
7254
    conftest$ac_exeext conftest.$ac_ext
7255
        LDFLAGS="$save_LDFLAGS"
7256
 
7257
fi
7258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7259
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7260
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7261
$as_echo_n "checking for -force_load linker flag... " >&6; }
7262
if test "${lt_cv_ld_force_load+set}" = set; then :
7263
  $as_echo_n "(cached) " >&6
7264
else
7265
  lt_cv_ld_force_load=no
7266
      cat > conftest.c << _LT_EOF
7267
int forced_loaded() { return 2;}
7268
_LT_EOF
7269
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7270
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7271
      echo "$AR cru libconftest.a conftest.o" >&5
7272
      $AR cru libconftest.a conftest.o 2>&5
7273
      cat > conftest.c << _LT_EOF
7274
int main() { return 0;}
7275
_LT_EOF
7276
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7277
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7278
      _lt_result=$?
7279
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7280
        lt_cv_ld_force_load=yes
7281
      else
7282
        cat conftest.err >&5
7283
      fi
7284
        rm -f conftest.err libconftest.a conftest conftest.c
7285
        rm -rf conftest.dSYM
7286
 
7287
fi
7288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7289
$as_echo "$lt_cv_ld_force_load" >&6; }
7290
    case $host_os in
7291
    rhapsody* | darwin1.[012])
7292
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7293
    darwin1.*)
7294
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7295
    darwin*) # darwin 5.x on
7296
      # if running on 10.5 or later, the deployment target defaults
7297
      # to the OS version, if on x86, and 10.4, the deployment
7298
      # target defaults to 10.4. Don't you love it?
7299
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7300
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7301
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7302
        10.[012]*)
7303
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7304
        10.*)
7305
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7306
      esac
7307
    ;;
7308
  esac
7309
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7310
      _lt_dar_single_mod='$single_module'
7311
    fi
7312
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7313
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7314
    else
7315
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7316
    fi
7317
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7318
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7319
    else
7320
      _lt_dsymutil=
7321
    fi
7322
    ;;
7323
  esac
7324
 
7325
ac_ext=c
7326
ac_cpp='$CPP $CPPFLAGS'
7327
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7331
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7332
# On Suns, sometimes $CPP names a directory.
7333
if test -n "$CPP" && test -d "$CPP"; then
7334
  CPP=
7335
fi
7336
if test -z "$CPP"; then
7337
  if test "${ac_cv_prog_CPP+set}" = set; then :
7338
  $as_echo_n "(cached) " >&6
7339
else
7340
      # Double quotes because CPP needs to be expanded
7341
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7342
    do
7343
      ac_preproc_ok=false
7344
for ac_c_preproc_warn_flag in '' yes
7345
do
7346
  # Use a header file that comes with gcc, so configuring glibc
7347
  # with a fresh cross-compiler works.
7348
  # Prefer  to  if __STDC__ is defined, since
7349
  #  exists even on freestanding compilers.
7350
  # On the NeXT, cc -E runs the code through the compiler's parser,
7351
  # not just through cpp. "Syntax error" is here to catch this case.
7352
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353
/* end confdefs.h.  */
7354
#ifdef __STDC__
7355
# include 
7356
#else
7357
# include 
7358
#endif
7359
                     Syntax error
7360
_ACEOF
7361
if ac_fn_c_try_cpp "$LINENO"; then :
7362
 
7363
else
7364
  # Broken: fails on valid input.
7365
continue
7366
fi
7367
rm -f conftest.err conftest.$ac_ext
7368
 
7369
  # OK, works on sane cases.  Now check whether nonexistent headers
7370
  # can be detected and how.
7371
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372
/* end confdefs.h.  */
7373
#include 
7374
_ACEOF
7375
if ac_fn_c_try_cpp "$LINENO"; then :
7376
  # Broken: success on invalid input.
7377
continue
7378
else
7379
  # Passes both tests.
7380
ac_preproc_ok=:
7381
break
7382
fi
7383
rm -f conftest.err conftest.$ac_ext
7384
 
7385
done
7386
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7387
rm -f conftest.err conftest.$ac_ext
7388
if $ac_preproc_ok; then :
7389
  break
7390
fi
7391
 
7392
    done
7393
    ac_cv_prog_CPP=$CPP
7394
 
7395
fi
7396
  CPP=$ac_cv_prog_CPP
7397
else
7398
  ac_cv_prog_CPP=$CPP
7399
fi
7400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7401
$as_echo "$CPP" >&6; }
7402
ac_preproc_ok=false
7403
for ac_c_preproc_warn_flag in '' yes
7404
do
7405
  # Use a header file that comes with gcc, so configuring glibc
7406
  # with a fresh cross-compiler works.
7407
  # Prefer  to  if __STDC__ is defined, since
7408
  #  exists even on freestanding compilers.
7409
  # On the NeXT, cc -E runs the code through the compiler's parser,
7410
  # not just through cpp. "Syntax error" is here to catch this case.
7411
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412
/* end confdefs.h.  */
7413
#ifdef __STDC__
7414
# include 
7415
#else
7416
# include 
7417
#endif
7418
                     Syntax error
7419
_ACEOF
7420
if ac_fn_c_try_cpp "$LINENO"; then :
7421
 
7422
else
7423
  # Broken: fails on valid input.
7424
continue
7425
fi
7426
rm -f conftest.err conftest.$ac_ext
7427
 
7428
  # OK, works on sane cases.  Now check whether nonexistent headers
7429
  # can be detected and how.
7430
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431
/* end confdefs.h.  */
7432
#include 
7433
_ACEOF
7434
if ac_fn_c_try_cpp "$LINENO"; then :
7435
  # Broken: success on invalid input.
7436
continue
7437
else
7438
  # Passes both tests.
7439
ac_preproc_ok=:
7440
break
7441
fi
7442
rm -f conftest.err conftest.$ac_ext
7443
 
7444
done
7445
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7446
rm -f conftest.err conftest.$ac_ext
7447
if $ac_preproc_ok; then :
7448
 
7449
else
7450
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7451
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7452
as_fn_error "C preprocessor \"$CPP\" fails sanity check
7453
See \`config.log' for more details." "$LINENO" 5; }
7454
fi
7455
 
7456
ac_ext=c
7457
ac_cpp='$CPP $CPPFLAGS'
7458
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
 
7462
 
7463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7464
$as_echo_n "checking for ANSI C header files... " >&6; }
7465
if test "${ac_cv_header_stdc+set}" = set; then :
7466
  $as_echo_n "(cached) " >&6
7467
else
7468
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469
/* end confdefs.h.  */
7470
#include 
7471
#include 
7472
#include 
7473
#include 
7474
 
7475
int
7476
main ()
7477
{
7478
 
7479
  ;
7480
  return 0;
7481
}
7482
_ACEOF
7483
if ac_fn_c_try_compile "$LINENO"; then :
7484
  ac_cv_header_stdc=yes
7485
else
7486
  ac_cv_header_stdc=no
7487
fi
7488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489
 
7490
if test $ac_cv_header_stdc = yes; then
7491
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7492
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493
/* end confdefs.h.  */
7494
#include 
7495
 
7496
_ACEOF
7497
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7498
  $EGREP "memchr" >/dev/null 2>&1; then :
7499
 
7500
else
7501
  ac_cv_header_stdc=no
7502
fi
7503
rm -f conftest*
7504
 
7505
fi
7506
 
7507
if test $ac_cv_header_stdc = yes; then
7508
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7509
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510
/* end confdefs.h.  */
7511
#include 
7512
 
7513
_ACEOF
7514
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7515
  $EGREP "free" >/dev/null 2>&1; then :
7516
 
7517
else
7518
  ac_cv_header_stdc=no
7519
fi
7520
rm -f conftest*
7521
 
7522
fi
7523
 
7524
if test $ac_cv_header_stdc = yes; then
7525
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7526
  if test "$cross_compiling" = yes; then :
7527
  :
7528
else
7529
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530
/* end confdefs.h.  */
7531
#include 
7532
#include 
7533
#if ((' ' & 0x0FF) == 0x020)
7534
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7535
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7536
#else
7537
# define ISLOWER(c) \
7538
                   (('a' <= (c) && (c) <= 'i') \
7539
                     || ('j' <= (c) && (c) <= 'r') \
7540
                     || ('s' <= (c) && (c) <= 'z'))
7541
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7542
#endif
7543
 
7544
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7545
int
7546
main ()
7547
{
7548
  int i;
7549
  for (i = 0; i < 256; i++)
7550
    if (XOR (islower (i), ISLOWER (i))
7551
        || toupper (i) != TOUPPER (i))
7552
      return 2;
7553
  return 0;
7554
}
7555
_ACEOF
7556
if ac_fn_c_try_run "$LINENO"; then :
7557
 
7558
else
7559
  ac_cv_header_stdc=no
7560
fi
7561
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7562
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7563
fi
7564
 
7565
fi
7566
fi
7567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7568
$as_echo "$ac_cv_header_stdc" >&6; }
7569
if test $ac_cv_header_stdc = yes; then
7570
 
7571
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7572
 
7573
fi
7574
 
7575
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7576
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7577
                  inttypes.h stdint.h unistd.h
7578
do :
7579
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7580
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7581
"
7582
eval as_val=\$$as_ac_Header
7583
   if test "x$as_val" = x""yes; then :
7584
  cat >>confdefs.h <<_ACEOF
7585
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7586
_ACEOF
7587
 
7588
fi
7589
 
7590
done
7591
 
7592
 
7593
for ac_header in dlfcn.h
7594
do :
7595
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7596
"
7597
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7598
  cat >>confdefs.h <<_ACEOF
7599
#define HAVE_DLFCN_H 1
7600
_ACEOF
7601
 
7602
fi
7603
 
7604
done
7605
 
7606
 
7607
 
7608
 
7609
 
7610
# Set options
7611
 
7612
 
7613
 
7614
        enable_dlopen=no
7615
 
7616
 
7617
  enable_win32_dll=no
7618
 
7619
 
7620
            # Check whether --enable-shared was given.
7621
if test "${enable_shared+set}" = set; then :
7622
  enableval=$enable_shared; p=${PACKAGE-default}
7623
    case $enableval in
7624
    yes) enable_shared=yes ;;
7625
    no) enable_shared=no ;;
7626
    *)
7627
      enable_shared=no
7628
      # Look at the argument we got.  We use all the common list separators.
7629
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7630
      for pkg in $enableval; do
7631
        IFS="$lt_save_ifs"
7632
        if test "X$pkg" = "X$p"; then
7633
          enable_shared=yes
7634
        fi
7635
      done
7636
      IFS="$lt_save_ifs"
7637
      ;;
7638
    esac
7639
else
7640
  enable_shared=yes
7641
fi
7642
 
7643
 
7644
 
7645
 
7646
 
7647
 
7648
 
7649
 
7650
 
7651
  # Check whether --enable-static was given.
7652
if test "${enable_static+set}" = set; then :
7653
  enableval=$enable_static; p=${PACKAGE-default}
7654
    case $enableval in
7655
    yes) enable_static=yes ;;
7656
    no) enable_static=no ;;
7657
    *)
7658
     enable_static=no
7659
      # Look at the argument we got.  We use all the common list separators.
7660
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7661
      for pkg in $enableval; do
7662
        IFS="$lt_save_ifs"
7663
        if test "X$pkg" = "X$p"; then
7664
          enable_static=yes
7665
        fi
7666
      done
7667
      IFS="$lt_save_ifs"
7668
      ;;
7669
    esac
7670
else
7671
  enable_static=yes
7672
fi
7673
 
7674
 
7675
 
7676
 
7677
 
7678
 
7679
 
7680
 
7681
 
7682
 
7683
# Check whether --with-pic was given.
7684
if test "${with_pic+set}" = set; then :
7685
  withval=$with_pic; pic_mode="$withval"
7686
else
7687
  pic_mode=default
7688
fi
7689
 
7690
 
7691
test -z "$pic_mode" && pic_mode=default
7692
 
7693
 
7694
 
7695
 
7696
 
7697
 
7698
 
7699
  # Check whether --enable-fast-install was given.
7700
if test "${enable_fast_install+set}" = set; then :
7701
  enableval=$enable_fast_install; p=${PACKAGE-default}
7702
    case $enableval in
7703
    yes) enable_fast_install=yes ;;
7704
    no) enable_fast_install=no ;;
7705
    *)
7706
      enable_fast_install=no
7707
      # Look at the argument we got.  We use all the common list separators.
7708
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7709
      for pkg in $enableval; do
7710
        IFS="$lt_save_ifs"
7711
        if test "X$pkg" = "X$p"; then
7712
          enable_fast_install=yes
7713
        fi
7714
      done
7715
      IFS="$lt_save_ifs"
7716
      ;;
7717
    esac
7718
else
7719
  enable_fast_install=yes
7720
fi
7721
 
7722
 
7723
 
7724
 
7725
 
7726
 
7727
 
7728
 
7729
 
7730
 
7731
 
7732
# This can be used to rebuild libtool when needed
7733
LIBTOOL_DEPS="$ltmain"
7734
 
7735
# Always use our own libtool.
7736
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7737
 
7738
 
7739
 
7740
 
7741
 
7742
 
7743
 
7744
 
7745
 
7746
 
7747
 
7748
 
7749
 
7750
 
7751
 
7752
 
7753
 
7754
 
7755
 
7756
 
7757
 
7758
 
7759
 
7760
 
7761
 
7762
 
7763
test -z "$LN_S" && LN_S="ln -s"
7764
 
7765
 
7766
 
7767
 
7768
 
7769
 
7770
 
7771
 
7772
 
7773
 
7774
 
7775
 
7776
 
7777
 
7778
if test -n "${ZSH_VERSION+set}" ; then
7779
   setopt NO_GLOB_SUBST
7780
fi
7781
 
7782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7783
$as_echo_n "checking for objdir... " >&6; }
7784
if test "${lt_cv_objdir+set}" = set; then :
7785
  $as_echo_n "(cached) " >&6
7786
else
7787
  rm -f .libs 2>/dev/null
7788
mkdir .libs 2>/dev/null
7789
if test -d .libs; then
7790
  lt_cv_objdir=.libs
7791
else
7792
  # MS-DOS does not allow filenames that begin with a dot.
7793
  lt_cv_objdir=_libs
7794
fi
7795
rmdir .libs 2>/dev/null
7796
fi
7797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7798
$as_echo "$lt_cv_objdir" >&6; }
7799
objdir=$lt_cv_objdir
7800
 
7801
 
7802
 
7803
 
7804
 
7805
cat >>confdefs.h <<_ACEOF
7806
#define LT_OBJDIR "$lt_cv_objdir/"
7807
_ACEOF
7808
 
7809
 
7810
 
7811
 
7812
case $host_os in
7813
aix3*)
7814
  # AIX sometimes has problems with the GCC collect2 program.  For some
7815
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7816
  # vanish in a puff of smoke.
7817
  if test "X${COLLECT_NAMES+set}" != Xset; then
7818
    COLLECT_NAMES=
7819
    export COLLECT_NAMES
7820
  fi
7821
  ;;
7822
esac
7823
 
7824
# Global variables:
7825
ofile=libtool
7826
can_build_shared=yes
7827
 
7828
# All known linkers require a `.a' archive for static linking (except MSVC,
7829
# which needs '.lib').
7830
libext=a
7831
 
7832
with_gnu_ld="$lt_cv_prog_gnu_ld"
7833
 
7834
old_CC="$CC"
7835
old_CFLAGS="$CFLAGS"
7836
 
7837
# Set sane defaults for various variables
7838
test -z "$CC" && CC=cc
7839
test -z "$LTCC" && LTCC=$CC
7840
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7841
test -z "$LD" && LD=ld
7842
test -z "$ac_objext" && ac_objext=o
7843
 
7844
for cc_temp in $compiler""; do
7845
  case $cc_temp in
7846
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7847
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7848
    \-*) ;;
7849
    *) break;;
7850
  esac
7851
done
7852
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7853
 
7854
 
7855
# Only perform the check for file, if the check method requires it
7856
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7857
case $deplibs_check_method in
7858
file_magic*)
7859
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7860
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7861
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7862
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7863
  $as_echo_n "(cached) " >&6
7864
else
7865
  case $MAGIC_CMD in
7866
[\\/*] |  ?:[\\/]*)
7867
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7868
  ;;
7869
*)
7870
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7871
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7872
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7873
  for ac_dir in $ac_dummy; do
7874
    IFS="$lt_save_ifs"
7875
    test -z "$ac_dir" && ac_dir=.
7876
    if test -f $ac_dir/${ac_tool_prefix}file; then
7877
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7878
      if test -n "$file_magic_test_file"; then
7879
        case $deplibs_check_method in
7880
        "file_magic "*)
7881
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7882
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7883
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7884
            $EGREP "$file_magic_regex" > /dev/null; then
7885
            :
7886
          else
7887
            cat <<_LT_EOF 1>&2
7888
 
7889
*** Warning: the command libtool uses to detect shared libraries,
7890
*** $file_magic_cmd, produces output that libtool cannot recognize.
7891
*** The result is that libtool may fail to recognize shared libraries
7892
*** as such.  This will affect the creation of libtool libraries that
7893
*** depend on shared libraries, but programs linked with such libtool
7894
*** libraries will work regardless of this problem.  Nevertheless, you
7895
*** may want to report the problem to your system manager and/or to
7896
*** bug-libtool@gnu.org
7897
 
7898
_LT_EOF
7899
          fi ;;
7900
        esac
7901
      fi
7902
      break
7903
    fi
7904
  done
7905
  IFS="$lt_save_ifs"
7906
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7907
  ;;
7908
esac
7909
fi
7910
 
7911
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7912
if test -n "$MAGIC_CMD"; then
7913
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7914
$as_echo "$MAGIC_CMD" >&6; }
7915
else
7916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917
$as_echo "no" >&6; }
7918
fi
7919
 
7920
 
7921
 
7922
 
7923
 
7924
if test -z "$lt_cv_path_MAGIC_CMD"; then
7925
  if test -n "$ac_tool_prefix"; then
7926
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7927
$as_echo_n "checking for file... " >&6; }
7928
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7929
  $as_echo_n "(cached) " >&6
7930
else
7931
  case $MAGIC_CMD in
7932
[\\/*] |  ?:[\\/]*)
7933
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7934
  ;;
7935
*)
7936
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7937
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7938
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7939
  for ac_dir in $ac_dummy; do
7940
    IFS="$lt_save_ifs"
7941
    test -z "$ac_dir" && ac_dir=.
7942
    if test -f $ac_dir/file; then
7943
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7944
      if test -n "$file_magic_test_file"; then
7945
        case $deplibs_check_method in
7946
        "file_magic "*)
7947
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7948
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7950
            $EGREP "$file_magic_regex" > /dev/null; then
7951
            :
7952
          else
7953
            cat <<_LT_EOF 1>&2
7954
 
7955
*** Warning: the command libtool uses to detect shared libraries,
7956
*** $file_magic_cmd, produces output that libtool cannot recognize.
7957
*** The result is that libtool may fail to recognize shared libraries
7958
*** as such.  This will affect the creation of libtool libraries that
7959
*** depend on shared libraries, but programs linked with such libtool
7960
*** libraries will work regardless of this problem.  Nevertheless, you
7961
*** may want to report the problem to your system manager and/or to
7962
*** bug-libtool@gnu.org
7963
 
7964
_LT_EOF
7965
          fi ;;
7966
        esac
7967
      fi
7968
      break
7969
    fi
7970
  done
7971
  IFS="$lt_save_ifs"
7972
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7973
  ;;
7974
esac
7975
fi
7976
 
7977
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7978
if test -n "$MAGIC_CMD"; then
7979
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7980
$as_echo "$MAGIC_CMD" >&6; }
7981
else
7982
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983
$as_echo "no" >&6; }
7984
fi
7985
 
7986
 
7987
  else
7988
    MAGIC_CMD=:
7989
  fi
7990
fi
7991
 
7992
  fi
7993
  ;;
7994
esac
7995
 
7996
# Use C for the default configuration in the libtool script
7997
 
7998
lt_save_CC="$CC"
7999
ac_ext=c
8000
ac_cpp='$CPP $CPPFLAGS'
8001
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004
 
8005
 
8006
# Source file extension for C test sources.
8007
ac_ext=c
8008
 
8009
# Object file extension for compiled C test sources.
8010
objext=o
8011
objext=$objext
8012
 
8013
# Code to be used in simple compile tests
8014
lt_simple_compile_test_code="int some_variable = 0;"
8015
 
8016
# Code to be used in simple link tests
8017
lt_simple_link_test_code='int main(){return(0);}'
8018
 
8019
 
8020
 
8021
 
8022
 
8023
 
8024
 
8025
# If no C compiler was specified, use CC.
8026
LTCC=${LTCC-"$CC"}
8027
 
8028
# If no C compiler flags were specified, use CFLAGS.
8029
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8030
 
8031
# Allow CC to be a program name with arguments.
8032
compiler=$CC
8033
 
8034
# Save the default compiler, since it gets overwritten when the other
8035
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8036
compiler_DEFAULT=$CC
8037
 
8038
# save warnings/boilerplate of simple test code
8039
ac_outfile=conftest.$ac_objext
8040
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8041
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8042
_lt_compiler_boilerplate=`cat conftest.err`
8043
$RM conftest*
8044
 
8045
ac_outfile=conftest.$ac_objext
8046
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8047
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8048
_lt_linker_boilerplate=`cat conftest.err`
8049
$RM -r conftest*
8050
 
8051
 
8052
## CAVEAT EMPTOR:
8053
## There is no encapsulation within the following macros, do not change
8054
## the running order or otherwise move them around unless you know exactly
8055
## what you are doing...
8056
if test -n "$compiler"; then
8057
 
8058
lt_prog_compiler_no_builtin_flag=
8059
 
8060
if test "$GCC" = yes; then
8061
  case $cc_basename in
8062
  nvcc*)
8063
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8064
  *)
8065
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8066
  esac
8067
 
8068
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8069
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8070
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8071
  $as_echo_n "(cached) " >&6
8072
else
8073
  lt_cv_prog_compiler_rtti_exceptions=no
8074
   ac_outfile=conftest.$ac_objext
8075
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8076
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8077
   # Insert the option either (1) after the last *FLAGS variable, or
8078
   # (2) before a word containing "conftest.", or (3) at the end.
8079
   # Note that $ac_compile itself does not contain backslashes and begins
8080
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8081
   # The option is referenced via a variable to avoid confusing sed.
8082
   lt_compile=`echo "$ac_compile" | $SED \
8083
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8084
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8085
   -e 's:$: $lt_compiler_flag:'`
8086
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8087
   (eval "$lt_compile" 2>conftest.err)
8088
   ac_status=$?
8089
   cat conftest.err >&5
8090
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091
   if (exit $ac_status) && test -s "$ac_outfile"; then
8092
     # The compiler can only warn and ignore the option if not recognized
8093
     # So say no if there are warnings other than the usual output.
8094
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8095
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8096
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8097
       lt_cv_prog_compiler_rtti_exceptions=yes
8098
     fi
8099
   fi
8100
   $RM conftest*
8101
 
8102
fi
8103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8104
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8105
 
8106
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8107
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8108
else
8109
    :
8110
fi
8111
 
8112
fi
8113
 
8114
 
8115
 
8116
 
8117
 
8118
 
8119
  lt_prog_compiler_wl=
8120
lt_prog_compiler_pic=
8121
lt_prog_compiler_static=
8122
 
8123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8124
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8125
 
8126
  if test "$GCC" = yes; then
8127
    lt_prog_compiler_wl='-Wl,'
8128
    lt_prog_compiler_static='-static'
8129
 
8130
    case $host_os in
8131
      aix*)
8132
      # All AIX code is PIC.
8133
      if test "$host_cpu" = ia64; then
8134
        # AIX 5 now supports IA64 processor
8135
        lt_prog_compiler_static='-Bstatic'
8136
      fi
8137
      ;;
8138
 
8139
    amigaos*)
8140
      case $host_cpu in
8141
      powerpc)
8142
            # see comment about AmigaOS4 .so support
8143
            lt_prog_compiler_pic='-fPIC'
8144
        ;;
8145
      m68k)
8146
            # FIXME: we need at least 68020 code to build shared libraries, but
8147
            # adding the `-m68020' flag to GCC prevents building anything better,
8148
            # like `-m68040'.
8149
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8150
        ;;
8151
      esac
8152
      ;;
8153
 
8154
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8155
      # PIC is the default for these OSes.
8156
      ;;
8157
 
8158
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8159
      # This hack is so that the source file can tell whether it is being
8160
      # built for inclusion in a dll (and should export symbols for example).
8161
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8162
      # (--disable-auto-import) libraries
8163
      lt_prog_compiler_pic='-DDLL_EXPORT'
8164
      ;;
8165
 
8166
    darwin* | rhapsody*)
8167
      # PIC is the default on this platform
8168
      # Common symbols not allowed in MH_DYLIB files
8169
      lt_prog_compiler_pic='-fno-common'
8170
      ;;
8171
 
8172
    haiku*)
8173
      # PIC is the default for Haiku.
8174
      # The "-static" flag exists, but is broken.
8175
      lt_prog_compiler_static=
8176
      ;;
8177
 
8178
    hpux*)
8179
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8180
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8181
      # sets the default TLS model and affects inlining.
8182
      case $host_cpu in
8183
      hppa*64*)
8184
        # +Z the default
8185
        ;;
8186
      *)
8187
        lt_prog_compiler_pic='-fPIC'
8188
        ;;
8189
      esac
8190
      ;;
8191
 
8192
    interix[3-9]*)
8193
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8194
      # Instead, we relocate shared libraries at runtime.
8195
      ;;
8196
 
8197
    msdosdjgpp*)
8198
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8199
      # on systems that don't support them.
8200
      lt_prog_compiler_can_build_shared=no
8201
      enable_shared=no
8202
      ;;
8203
 
8204
    *nto* | *qnx*)
8205
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8206
      # it will coredump.
8207
      lt_prog_compiler_pic='-fPIC -shared'
8208
      ;;
8209
 
8210
    sysv4*MP*)
8211
      if test -d /usr/nec; then
8212
        lt_prog_compiler_pic=-Kconform_pic
8213
      fi
8214
      ;;
8215
 
8216
    *)
8217
      lt_prog_compiler_pic='-fPIC'
8218
      ;;
8219
    esac
8220
 
8221
    case $cc_basename in
8222
    nvcc*) # Cuda Compiler Driver 2.2
8223
      lt_prog_compiler_wl='-Xlinker '
8224
      lt_prog_compiler_pic='-Xcompiler -fPIC'
8225
      ;;
8226
    esac
8227
  else
8228
    # PORTME Check for flag to pass linker flags through the system compiler.
8229
    case $host_os in
8230
    aix*)
8231
      lt_prog_compiler_wl='-Wl,'
8232
      if test "$host_cpu" = ia64; then
8233
        # AIX 5 now supports IA64 processor
8234
        lt_prog_compiler_static='-Bstatic'
8235
      else
8236
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8237
      fi
8238
      ;;
8239
 
8240
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8241
      # This hack is so that the source file can tell whether it is being
8242
      # built for inclusion in a dll (and should export symbols for example).
8243
      lt_prog_compiler_pic='-DDLL_EXPORT'
8244
      ;;
8245
 
8246
    hpux9* | hpux10* | hpux11*)
8247
      lt_prog_compiler_wl='-Wl,'
8248
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8249
      # not for PA HP-UX.
8250
      case $host_cpu in
8251
      hppa*64*|ia64*)
8252
        # +Z the default
8253
        ;;
8254
      *)
8255
        lt_prog_compiler_pic='+Z'
8256
        ;;
8257
      esac
8258
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8259
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8260
      ;;
8261
 
8262
    irix5* | irix6* | nonstopux*)
8263
      lt_prog_compiler_wl='-Wl,'
8264
      # PIC (with -KPIC) is the default.
8265
      lt_prog_compiler_static='-non_shared'
8266
      ;;
8267
 
8268
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8269
      case $cc_basename in
8270
      # old Intel for x86_64 which still supported -KPIC.
8271
      ecc*)
8272
        lt_prog_compiler_wl='-Wl,'
8273
        lt_prog_compiler_pic='-KPIC'
8274
        lt_prog_compiler_static='-static'
8275
        ;;
8276
      # icc used to be incompatible with GCC.
8277
      # ICC 10 doesn't accept -KPIC any more.
8278
      icc* | ifort*)
8279
        lt_prog_compiler_wl='-Wl,'
8280
        lt_prog_compiler_pic='-fPIC'
8281
        lt_prog_compiler_static='-static'
8282
        ;;
8283
      # Lahey Fortran 8.1.
8284
      lf95*)
8285
        lt_prog_compiler_wl='-Wl,'
8286
        lt_prog_compiler_pic='--shared'
8287
        lt_prog_compiler_static='--static'
8288
        ;;
8289
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8290
        # Portland Group compilers (*not* the Pentium gcc compiler,
8291
        # which looks to be a dead project)
8292
        lt_prog_compiler_wl='-Wl,'
8293
        lt_prog_compiler_pic='-fpic'
8294
        lt_prog_compiler_static='-Bstatic'
8295
        ;;
8296
      ccc*)
8297
        lt_prog_compiler_wl='-Wl,'
8298
        # All Alpha code is PIC.
8299
        lt_prog_compiler_static='-non_shared'
8300
        ;;
8301
      xl* | bgxl* | bgf* | mpixl*)
8302
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8303
        lt_prog_compiler_wl='-Wl,'
8304
        lt_prog_compiler_pic='-qpic'
8305
        lt_prog_compiler_static='-qstaticlink'
8306
        ;;
8307
      *)
8308
        case `$CC -V 2>&1 | sed 5q` in
8309
        *Sun\ F* | *Sun*Fortran*)
8310
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8311
          lt_prog_compiler_pic='-KPIC'
8312
          lt_prog_compiler_static='-Bstatic'
8313
          lt_prog_compiler_wl=''
8314
          ;;
8315
        *Sun\ C*)
8316
          # Sun C 5.9
8317
          lt_prog_compiler_pic='-KPIC'
8318
          lt_prog_compiler_static='-Bstatic'
8319
          lt_prog_compiler_wl='-Wl,'
8320
          ;;
8321
        esac
8322
        ;;
8323
      esac
8324
      ;;
8325
 
8326
    newsos6)
8327
      lt_prog_compiler_pic='-KPIC'
8328
      lt_prog_compiler_static='-Bstatic'
8329
      ;;
8330
 
8331
    *nto* | *qnx*)
8332
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8333
      # it will coredump.
8334
      lt_prog_compiler_pic='-fPIC -shared'
8335
      ;;
8336
 
8337
    osf3* | osf4* | osf5*)
8338
      lt_prog_compiler_wl='-Wl,'
8339
      # All OSF/1 code is PIC.
8340
      lt_prog_compiler_static='-non_shared'
8341
      ;;
8342
 
8343
    rdos*)
8344
      lt_prog_compiler_static='-non_shared'
8345
      ;;
8346
 
8347
    solaris*)
8348
      lt_prog_compiler_pic='-KPIC'
8349
      lt_prog_compiler_static='-Bstatic'
8350
      case $cc_basename in
8351
      f77* | f90* | f95*)
8352
        lt_prog_compiler_wl='-Qoption ld ';;
8353
      *)
8354
        lt_prog_compiler_wl='-Wl,';;
8355
      esac
8356
      ;;
8357
 
8358
    sunos4*)
8359
      lt_prog_compiler_wl='-Qoption ld '
8360
      lt_prog_compiler_pic='-PIC'
8361
      lt_prog_compiler_static='-Bstatic'
8362
      ;;
8363
 
8364
    sysv4 | sysv4.2uw2* | sysv4.3*)
8365
      lt_prog_compiler_wl='-Wl,'
8366
      lt_prog_compiler_pic='-KPIC'
8367
      lt_prog_compiler_static='-Bstatic'
8368
      ;;
8369
 
8370
    sysv4*MP*)
8371
      if test -d /usr/nec ;then
8372
        lt_prog_compiler_pic='-Kconform_pic'
8373
        lt_prog_compiler_static='-Bstatic'
8374
      fi
8375
      ;;
8376
 
8377
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8378
      lt_prog_compiler_wl='-Wl,'
8379
      lt_prog_compiler_pic='-KPIC'
8380
      lt_prog_compiler_static='-Bstatic'
8381
      ;;
8382
 
8383
    unicos*)
8384
      lt_prog_compiler_wl='-Wl,'
8385
      lt_prog_compiler_can_build_shared=no
8386
      ;;
8387
 
8388
    uts4*)
8389
      lt_prog_compiler_pic='-pic'
8390
      lt_prog_compiler_static='-Bstatic'
8391
      ;;
8392
 
8393
    *)
8394
      lt_prog_compiler_can_build_shared=no
8395
      ;;
8396
    esac
8397
  fi
8398
 
8399
case $host_os in
8400
  # For platforms which do not support PIC, -DPIC is meaningless:
8401
  *djgpp*)
8402
    lt_prog_compiler_pic=
8403
    ;;
8404
  *)
8405
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8406
    ;;
8407
esac
8408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8409
$as_echo "$lt_prog_compiler_pic" >&6; }
8410
 
8411
 
8412
 
8413
 
8414
 
8415
 
8416
#
8417
# Check to make sure the PIC flag actually works.
8418
#
8419
if test -n "$lt_prog_compiler_pic"; then
8420
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8421
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8422
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8423
  $as_echo_n "(cached) " >&6
8424
else
8425
  lt_cv_prog_compiler_pic_works=no
8426
   ac_outfile=conftest.$ac_objext
8427
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8428
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8429
   # Insert the option either (1) after the last *FLAGS variable, or
8430
   # (2) before a word containing "conftest.", or (3) at the end.
8431
   # Note that $ac_compile itself does not contain backslashes and begins
8432
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8433
   # The option is referenced via a variable to avoid confusing sed.
8434
   lt_compile=`echo "$ac_compile" | $SED \
8435
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8436
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8437
   -e 's:$: $lt_compiler_flag:'`
8438
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8439
   (eval "$lt_compile" 2>conftest.err)
8440
   ac_status=$?
8441
   cat conftest.err >&5
8442
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443
   if (exit $ac_status) && test -s "$ac_outfile"; then
8444
     # The compiler can only warn and ignore the option if not recognized
8445
     # So say no if there are warnings other than the usual output.
8446
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8447
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8448
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8449
       lt_cv_prog_compiler_pic_works=yes
8450
     fi
8451
   fi
8452
   $RM conftest*
8453
 
8454
fi
8455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8456
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8457
 
8458
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8459
    case $lt_prog_compiler_pic in
8460
     "" | " "*) ;;
8461
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8462
     esac
8463
else
8464
    lt_prog_compiler_pic=
8465
     lt_prog_compiler_can_build_shared=no
8466
fi
8467
 
8468
fi
8469
 
8470
 
8471
 
8472
 
8473
 
8474
 
8475
#
8476
# Check to make sure the static flag actually works.
8477
#
8478
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8480
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8481
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8482
  $as_echo_n "(cached) " >&6
8483
else
8484
  lt_cv_prog_compiler_static_works=no
8485
   save_LDFLAGS="$LDFLAGS"
8486
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8487
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8488
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8489
     # The linker can only warn and ignore the option if not recognized
8490
     # So say no if there are warnings
8491
     if test -s conftest.err; then
8492
       # Append any errors to the config.log.
8493
       cat conftest.err 1>&5
8494
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8495
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496
       if diff conftest.exp conftest.er2 >/dev/null; then
8497
         lt_cv_prog_compiler_static_works=yes
8498
       fi
8499
     else
8500
       lt_cv_prog_compiler_static_works=yes
8501
     fi
8502
   fi
8503
   $RM -r conftest*
8504
   LDFLAGS="$save_LDFLAGS"
8505
 
8506
fi
8507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8508
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8509
 
8510
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8511
    :
8512
else
8513
    lt_prog_compiler_static=
8514
fi
8515
 
8516
 
8517
 
8518
 
8519
 
8520
 
8521
 
8522
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8523
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8524
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8525
  $as_echo_n "(cached) " >&6
8526
else
8527
  lt_cv_prog_compiler_c_o=no
8528
   $RM -r conftest 2>/dev/null
8529
   mkdir conftest
8530
   cd conftest
8531
   mkdir out
8532
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8533
 
8534
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8535
   # Insert the option either (1) after the last *FLAGS variable, or
8536
   # (2) before a word containing "conftest.", or (3) at the end.
8537
   # Note that $ac_compile itself does not contain backslashes and begins
8538
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8539
   lt_compile=`echo "$ac_compile" | $SED \
8540
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8541
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8542
   -e 's:$: $lt_compiler_flag:'`
8543
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8544
   (eval "$lt_compile" 2>out/conftest.err)
8545
   ac_status=$?
8546
   cat out/conftest.err >&5
8547
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8549
   then
8550
     # The compiler can only warn and ignore the option if not recognized
8551
     # So say no if there are warnings
8552
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8553
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8554
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8555
       lt_cv_prog_compiler_c_o=yes
8556
     fi
8557
   fi
8558
   chmod u+w . 2>&5
8559
   $RM conftest*
8560
   # SGI C++ compiler will create directory out/ii_files/ for
8561
   # template instantiation
8562
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8563
   $RM out/* && rmdir out
8564
   cd ..
8565
   $RM -r conftest
8566
   $RM conftest*
8567
 
8568
fi
8569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8570
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8571
 
8572
 
8573
 
8574
 
8575
 
8576
 
8577
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8578
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8579
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8580
  $as_echo_n "(cached) " >&6
8581
else
8582
  lt_cv_prog_compiler_c_o=no
8583
   $RM -r conftest 2>/dev/null
8584
   mkdir conftest
8585
   cd conftest
8586
   mkdir out
8587
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8588
 
8589
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8590
   # Insert the option either (1) after the last *FLAGS variable, or
8591
   # (2) before a word containing "conftest.", or (3) at the end.
8592
   # Note that $ac_compile itself does not contain backslashes and begins
8593
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8594
   lt_compile=`echo "$ac_compile" | $SED \
8595
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8596
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8597
   -e 's:$: $lt_compiler_flag:'`
8598
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8599
   (eval "$lt_compile" 2>out/conftest.err)
8600
   ac_status=$?
8601
   cat out/conftest.err >&5
8602
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8604
   then
8605
     # The compiler can only warn and ignore the option if not recognized
8606
     # So say no if there are warnings
8607
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8608
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8609
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8610
       lt_cv_prog_compiler_c_o=yes
8611
     fi
8612
   fi
8613
   chmod u+w . 2>&5
8614
   $RM conftest*
8615
   # SGI C++ compiler will create directory out/ii_files/ for
8616
   # template instantiation
8617
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8618
   $RM out/* && rmdir out
8619
   cd ..
8620
   $RM -r conftest
8621
   $RM conftest*
8622
 
8623
fi
8624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8625
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8626
 
8627
 
8628
 
8629
 
8630
hard_links="nottested"
8631
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8632
  # do not overwrite the value of need_locks provided by the user
8633
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8634
$as_echo_n "checking if we can lock with hard links... " >&6; }
8635
  hard_links=yes
8636
  $RM conftest*
8637
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8638
  touch conftest.a
8639
  ln conftest.a conftest.b 2>&5 || hard_links=no
8640
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8641
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8642
$as_echo "$hard_links" >&6; }
8643
  if test "$hard_links" = no; then
8644
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8645
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8646
    need_locks=warn
8647
  fi
8648
else
8649
  need_locks=no
8650
fi
8651
 
8652
 
8653
 
8654
 
8655
 
8656
 
8657
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8658
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8659
 
8660
  runpath_var=
8661
  allow_undefined_flag=
8662
  always_export_symbols=no
8663
  archive_cmds=
8664
  archive_expsym_cmds=
8665
  compiler_needs_object=no
8666
  enable_shared_with_static_runtimes=no
8667
  export_dynamic_flag_spec=
8668
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8669
  hardcode_automatic=no
8670
  hardcode_direct=no
8671
  hardcode_direct_absolute=no
8672
  hardcode_libdir_flag_spec=
8673
  hardcode_libdir_flag_spec_ld=
8674
  hardcode_libdir_separator=
8675
  hardcode_minus_L=no
8676
  hardcode_shlibpath_var=unsupported
8677
  inherit_rpath=no
8678
  link_all_deplibs=unknown
8679
  module_cmds=
8680
  module_expsym_cmds=
8681
  old_archive_from_new_cmds=
8682
  old_archive_from_expsyms_cmds=
8683
  thread_safe_flag_spec=
8684
  whole_archive_flag_spec=
8685
  # include_expsyms should be a list of space-separated symbols to be *always*
8686
  # included in the symbol list
8687
  include_expsyms=
8688
  # exclude_expsyms can be an extended regexp of symbols to exclude
8689
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8690
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8691
  # as well as any symbol that contains `d'.
8692
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8693
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8694
  # platforms (ab)use it in PIC code, but their linkers get confused if
8695
  # the symbol is explicitly referenced.  Since portable code cannot
8696
  # rely on this symbol name, it's probably fine to never include it in
8697
  # preloaded symbol tables.
8698
  # Exclude shared library initialization/finalization symbols.
8699
  extract_expsyms_cmds=
8700
 
8701
  case $host_os in
8702
  cygwin* | mingw* | pw32* | cegcc*)
8703
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8704
    # When not using gcc, we currently assume that we are using
8705
    # Microsoft Visual C++.
8706
    if test "$GCC" != yes; then
8707
      with_gnu_ld=no
8708
    fi
8709
    ;;
8710
  interix*)
8711
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8712
    with_gnu_ld=yes
8713
    ;;
8714
  openbsd*)
8715
    with_gnu_ld=no
8716
    ;;
8717
  esac
8718
 
8719
  ld_shlibs=yes
8720
 
8721
  # On some targets, GNU ld is compatible enough with the native linker
8722
  # that we're better off using the native interface for both.
8723
  lt_use_gnu_ld_interface=no
8724
  if test "$with_gnu_ld" = yes; then
8725
    case $host_os in
8726
      aix*)
8727
        # The AIX port of GNU ld has always aspired to compatibility
8728
        # with the native linker.  However, as the warning in the GNU ld
8729
        # block says, versions before 2.19.5* couldn't really create working
8730
        # shared libraries, regardless of the interface used.
8731
        case `$LD -v 2>&1` in
8732
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8733
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8734
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8735
          *)
8736
            lt_use_gnu_ld_interface=yes
8737
            ;;
8738
        esac
8739
        ;;
8740
      *)
8741
        lt_use_gnu_ld_interface=yes
8742
        ;;
8743
    esac
8744
  fi
8745
 
8746
  if test "$lt_use_gnu_ld_interface" = yes; then
8747
    # If archive_cmds runs LD, not CC, wlarc should be empty
8748
    wlarc='${wl}'
8749
 
8750
    # Set some defaults for GNU ld with shared library support. These
8751
    # are reset later if shared libraries are not supported. Putting them
8752
    # here allows them to be overridden if necessary.
8753
    runpath_var=LD_RUN_PATH
8754
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8755
    export_dynamic_flag_spec='${wl}--export-dynamic'
8756
    # ancient GNU ld didn't support --whole-archive et. al.
8757
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8758
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8759
    else
8760
      whole_archive_flag_spec=
8761
    fi
8762
    supports_anon_versioning=no
8763
    case `$LD -v 2>&1` in
8764
      *GNU\ gold*) supports_anon_versioning=yes ;;
8765
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8766
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8767
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8768
      *\ 2.11.*) ;; # other 2.11 versions
8769
      *) supports_anon_versioning=yes ;;
8770
    esac
8771
 
8772
    # See if GNU ld supports shared libraries.
8773
    case $host_os in
8774
    aix[3-9]*)
8775
      # On AIX/PPC, the GNU linker is very broken
8776
      if test "$host_cpu" != ia64; then
8777
        ld_shlibs=no
8778
        cat <<_LT_EOF 1>&2
8779
 
8780
*** Warning: the GNU linker, at least up to release 2.19, is reported
8781
*** to be unable to reliably create shared libraries on AIX.
8782
*** Therefore, libtool is disabling shared libraries support.  If you
8783
*** really care for shared libraries, you may want to install binutils
8784
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8785
*** You will then need to restart the configuration process.
8786
 
8787
_LT_EOF
8788
      fi
8789
      ;;
8790
 
8791
    amigaos*)
8792
      case $host_cpu in
8793
      powerpc)
8794
            # see comment about AmigaOS4 .so support
8795
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8796
            archive_expsym_cmds=''
8797
        ;;
8798
      m68k)
8799
            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)'
8800
            hardcode_libdir_flag_spec='-L$libdir'
8801
            hardcode_minus_L=yes
8802
        ;;
8803
      esac
8804
      ;;
8805
 
8806
    beos*)
8807
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8808
        allow_undefined_flag=unsupported
8809
        # Joseph Beckenbach  says some releases of gcc
8810
        # support --undefined.  This deserves some investigation.  FIXME
8811
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812
      else
8813
        ld_shlibs=no
8814
      fi
8815
      ;;
8816
 
8817
    cygwin* | mingw* | pw32* | cegcc*)
8818
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8819
      # as there is no search path for DLLs.
8820
      hardcode_libdir_flag_spec='-L$libdir'
8821
      export_dynamic_flag_spec='${wl}--export-all-symbols'
8822
      allow_undefined_flag=unsupported
8823
      always_export_symbols=no
8824
      enable_shared_with_static_runtimes=yes
8825
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8826
 
8827
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8828
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8829
        # If the export-symbols file already is a .def file (1st line
8830
        # is EXPORTS), use it as is; otherwise, prepend...
8831
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8832
          cp $export_symbols $output_objdir/$soname.def;
8833
        else
8834
          echo EXPORTS > $output_objdir/$soname.def;
8835
          cat $export_symbols >> $output_objdir/$soname.def;
8836
        fi~
8837
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8838
      else
8839
        ld_shlibs=no
8840
      fi
8841
      ;;
8842
 
8843
    haiku*)
8844
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845
      link_all_deplibs=yes
8846
      ;;
8847
 
8848
    interix[3-9]*)
8849
      hardcode_direct=no
8850
      hardcode_shlibpath_var=no
8851
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8852
      export_dynamic_flag_spec='${wl}-E'
8853
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8854
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8855
      # default) and relocated if they conflict, which is a slow very memory
8856
      # consuming and fragmenting process.  To avoid this, we pick a random,
8857
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8858
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8859
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8860
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8861
      ;;
8862
 
8863
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8864
      tmp_diet=no
8865
      if test "$host_os" = linux-dietlibc; then
8866
        case $cc_basename in
8867
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8868
        esac
8869
      fi
8870
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8871
         && test "$tmp_diet" = no
8872
      then
8873
        tmp_addflag=
8874
        tmp_sharedflag='-shared'
8875
        case $cc_basename,$host_cpu in
8876
        pgcc*)                          # Portland Group C compiler
8877
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8878
          tmp_addflag=' $pic_flag'
8879
          ;;
8880
        pgf77* | pgf90* | pgf95* | pgfortran*)
8881
                                        # Portland Group f77 and f90 compilers
8882
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8883
          tmp_addflag=' $pic_flag -Mnomain' ;;
8884
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8885
          tmp_addflag=' -i_dynamic' ;;
8886
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8887
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8888
        ifc* | ifort*)                  # Intel Fortran compiler
8889
          tmp_addflag=' -nofor_main' ;;
8890
        lf95*)                          # Lahey Fortran 8.1
8891
          whole_archive_flag_spec=
8892
          tmp_sharedflag='--shared' ;;
8893
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8894
          tmp_sharedflag='-qmkshrobj'
8895
          tmp_addflag= ;;
8896
        nvcc*)  # Cuda Compiler Driver 2.2
8897
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8898
          compiler_needs_object=yes
8899
          ;;
8900
        esac
8901
        case `$CC -V 2>&1 | sed 5q` in
8902
        *Sun\ C*)                       # Sun C 5.9
8903
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8904
          compiler_needs_object=yes
8905
          tmp_sharedflag='-G' ;;
8906
        *Sun\ F*)                       # Sun Fortran 8.3
8907
          tmp_sharedflag='-G' ;;
8908
        esac
8909
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8910
 
8911
        if test "x$supports_anon_versioning" = xyes; then
8912
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8913
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8914
            echo "local: *; };" >> $output_objdir/$libname.ver~
8915
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8916
        fi
8917
 
8918
        case $cc_basename in
8919
        xlf* | bgf* | bgxlf* | mpixlf*)
8920
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8921
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8922
          hardcode_libdir_flag_spec=
8923
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8924
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8925
          if test "x$supports_anon_versioning" = xyes; then
8926
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8927
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8928
              echo "local: *; };" >> $output_objdir/$libname.ver~
8929
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8930
          fi
8931
          ;;
8932
        esac
8933
      else
8934
        ld_shlibs=no
8935
      fi
8936
      ;;
8937
 
8938
    netbsd*)
8939
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8940
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8941
        wlarc=
8942
      else
8943
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8945
      fi
8946
      ;;
8947
 
8948
    solaris*)
8949
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8950
        ld_shlibs=no
8951
        cat <<_LT_EOF 1>&2
8952
 
8953
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8954
*** create shared libraries on Solaris systems.  Therefore, libtool
8955
*** is disabling shared libraries support.  We urge you to upgrade GNU
8956
*** binutils to release 2.9.1 or newer.  Another option is to modify
8957
*** your PATH or compiler configuration so that the native linker is
8958
*** used, and then restart.
8959
 
8960
_LT_EOF
8961
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8964
      else
8965
        ld_shlibs=no
8966
      fi
8967
      ;;
8968
 
8969
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8970
      case `$LD -v 2>&1` in
8971
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8972
        ld_shlibs=no
8973
        cat <<_LT_EOF 1>&2
8974
 
8975
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8976
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8977
*** is disabling shared libraries support.  We urge you to upgrade GNU
8978
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8979
*** your PATH or compiler configuration so that the native linker is
8980
*** used, and then restart.
8981
 
8982
_LT_EOF
8983
        ;;
8984
        *)
8985
          # For security reasons, it is highly recommended that you always
8986
          # use absolute paths for naming shared libraries, and exclude the
8987
          # DT_RUNPATH tag from executables and libraries.  But doing so
8988
          # requires that you compile everything twice, which is a pain.
8989
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8990
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8991
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8992
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8993
          else
8994
            ld_shlibs=no
8995
          fi
8996
        ;;
8997
      esac
8998
      ;;
8999
 
9000
    sunos4*)
9001
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9002
      wlarc=
9003
      hardcode_direct=yes
9004
      hardcode_shlibpath_var=no
9005
      ;;
9006
 
9007
    *)
9008
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9009
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9010
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9011
      else
9012
        ld_shlibs=no
9013
      fi
9014
      ;;
9015
    esac
9016
 
9017
    if test "$ld_shlibs" = no; then
9018
      runpath_var=
9019
      hardcode_libdir_flag_spec=
9020
      export_dynamic_flag_spec=
9021
      whole_archive_flag_spec=
9022
    fi
9023
  else
9024
    # PORTME fill in a description of your system's linker (not GNU ld)
9025
    case $host_os in
9026
    aix3*)
9027
      allow_undefined_flag=unsupported
9028
      always_export_symbols=yes
9029
      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'
9030
      # Note: this linker hardcodes the directories in LIBPATH if there
9031
      # are no directories specified by -L.
9032
      hardcode_minus_L=yes
9033
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9034
        # Neither direct hardcoding nor static linking is supported with a
9035
        # broken collect2.
9036
        hardcode_direct=unsupported
9037
      fi
9038
      ;;
9039
 
9040
    aix[4-9]*)
9041
      if test "$host_cpu" = ia64; then
9042
        # On IA64, the linker does run time linking by default, so we don't
9043
        # have to do anything special.
9044
        aix_use_runtimelinking=no
9045
        exp_sym_flag='-Bexport'
9046
        no_entry_flag=""
9047
      else
9048
        # If we're using GNU nm, then we don't want the "-C" option.
9049
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9050
        # Also, AIX nm treats weak defined symbols like other global
9051
        # defined symbols, whereas GNU nm marks them as "W".
9052
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9053
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9054
        else
9055
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9056
        fi
9057
        aix_use_runtimelinking=no
9058
 
9059
        # Test if we are trying to use run time linking or normal
9060
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9061
        # need to do runtime linking.
9062
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9063
          for ld_flag in $LDFLAGS; do
9064
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9065
            aix_use_runtimelinking=yes
9066
            break
9067
          fi
9068
          done
9069
          ;;
9070
        esac
9071
 
9072
        exp_sym_flag='-bexport'
9073
        no_entry_flag='-bnoentry'
9074
      fi
9075
 
9076
      # When large executables or shared objects are built, AIX ld can
9077
      # have problems creating the table of contents.  If linking a library
9078
      # or program results in "error TOC overflow" add -mminimal-toc to
9079
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9080
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9081
 
9082
      archive_cmds=''
9083
      hardcode_direct=yes
9084
      hardcode_direct_absolute=yes
9085
      hardcode_libdir_separator=':'
9086
      link_all_deplibs=yes
9087
      file_list_spec='${wl}-f,'
9088
 
9089
      if test "$GCC" = yes; then
9090
        case $host_os in aix4.[012]|aix4.[012].*)
9091
        # We only want to do this on AIX 4.2 and lower, the check
9092
        # below for broken collect2 doesn't work under 4.3+
9093
          collect2name=`${CC} -print-prog-name=collect2`
9094
          if test -f "$collect2name" &&
9095
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9096
          then
9097
          # We have reworked collect2
9098
          :
9099
          else
9100
          # We have old collect2
9101
          hardcode_direct=unsupported
9102
          # It fails to find uninstalled libraries when the uninstalled
9103
          # path is not listed in the libpath.  Setting hardcode_minus_L
9104
          # to unsupported forces relinking
9105
          hardcode_minus_L=yes
9106
          hardcode_libdir_flag_spec='-L$libdir'
9107
          hardcode_libdir_separator=
9108
          fi
9109
          ;;
9110
        esac
9111
        shared_flag='-shared'
9112
        if test "$aix_use_runtimelinking" = yes; then
9113
          shared_flag="$shared_flag "'${wl}-G'
9114
        fi
9115
      else
9116
        # not using gcc
9117
        if test "$host_cpu" = ia64; then
9118
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9119
        # chokes on -Wl,-G. The following line is correct:
9120
          shared_flag='-G'
9121
        else
9122
          if test "$aix_use_runtimelinking" = yes; then
9123
            shared_flag='${wl}-G'
9124
          else
9125
            shared_flag='${wl}-bM:SRE'
9126
          fi
9127
        fi
9128
      fi
9129
 
9130
      export_dynamic_flag_spec='${wl}-bexpall'
9131
      # It seems that -bexpall does not export symbols beginning with
9132
      # underscore (_), so it is better to generate a list of symbols to export.
9133
      always_export_symbols=yes
9134
      if test "$aix_use_runtimelinking" = yes; then
9135
        # Warning - without using the other runtime loading flags (-brtl),
9136
        # -berok will link without error, but may produce a broken library.
9137
        allow_undefined_flag='-berok'
9138
        # Determine the default libpath from the value encoded in an
9139
        # empty executable.
9140
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141
/* end confdefs.h.  */
9142
 
9143
int
9144
main ()
9145
{
9146
 
9147
  ;
9148
  return 0;
9149
}
9150
_ACEOF
9151
if ac_fn_c_try_link "$LINENO"; then :
9152
 
9153
lt_aix_libpath_sed='
9154
    /Import File Strings/,/^$/ {
9155
        /^0/ {
9156
            s/^0  *\(.*\)$/\1/
9157
            p
9158
        }
9159
    }'
9160
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9161
# Check for a 64-bit object if we didn't find anything.
9162
if test -z "$aix_libpath"; then
9163
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9164
fi
9165
fi
9166
rm -f core conftest.err conftest.$ac_objext \
9167
    conftest$ac_exeext conftest.$ac_ext
9168
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9169
 
9170
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9171
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9172
      else
9173
        if test "$host_cpu" = ia64; then
9174
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9175
          allow_undefined_flag="-z nodefs"
9176
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9177
        else
9178
         # Determine the default libpath from the value encoded in an
9179
         # empty executable.
9180
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181
/* end confdefs.h.  */
9182
 
9183
int
9184
main ()
9185
{
9186
 
9187
  ;
9188
  return 0;
9189
}
9190
_ACEOF
9191
if ac_fn_c_try_link "$LINENO"; then :
9192
 
9193
lt_aix_libpath_sed='
9194
    /Import File Strings/,/^$/ {
9195
        /^0/ {
9196
            s/^0  *\(.*\)$/\1/
9197
            p
9198
        }
9199
    }'
9200
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9201
# Check for a 64-bit object if we didn't find anything.
9202
if test -z "$aix_libpath"; then
9203
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9204
fi
9205
fi
9206
rm -f core conftest.err conftest.$ac_objext \
9207
    conftest$ac_exeext conftest.$ac_ext
9208
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9209
 
9210
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9211
          # Warning - without using the other run time loading flags,
9212
          # -berok will link without error, but may produce a broken library.
9213
          no_undefined_flag=' ${wl}-bernotok'
9214
          allow_undefined_flag=' ${wl}-berok'
9215
          if test "$with_gnu_ld" = yes; then
9216
            # We only use this code for GNU lds that support --whole-archive.
9217
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9218
          else
9219
            # Exported symbols can be pulled into shared objects from archives
9220
            whole_archive_flag_spec='$convenience'
9221
          fi
9222
          archive_cmds_need_lc=yes
9223
          # This is similar to how AIX traditionally builds its shared libraries.
9224
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9225
        fi
9226
      fi
9227
      ;;
9228
 
9229
    amigaos*)
9230
      case $host_cpu in
9231
      powerpc)
9232
            # see comment about AmigaOS4 .so support
9233
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234
            archive_expsym_cmds=''
9235
        ;;
9236
      m68k)
9237
            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)'
9238
            hardcode_libdir_flag_spec='-L$libdir'
9239
            hardcode_minus_L=yes
9240
        ;;
9241
      esac
9242
      ;;
9243
 
9244
    bsdi[45]*)
9245
      export_dynamic_flag_spec=-rdynamic
9246
      ;;
9247
 
9248
    cygwin* | mingw* | pw32* | cegcc*)
9249
      # When not using gcc, we currently assume that we are using
9250
      # Microsoft Visual C++.
9251
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9252
      # no search path for DLLs.
9253
      hardcode_libdir_flag_spec=' '
9254
      allow_undefined_flag=unsupported
9255
      # Tell ltmain to make .lib files, not .a files.
9256
      libext=lib
9257
      # Tell ltmain to make .dll files, not .so files.
9258
      shrext_cmds=".dll"
9259
      # FIXME: Setting linknames here is a bad hack.
9260
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9261
      # The linker will automatically build a .lib file if we build a DLL.
9262
      old_archive_from_new_cmds='true'
9263
      # FIXME: Should let the user specify the lib program.
9264
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9265
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9266
      enable_shared_with_static_runtimes=yes
9267
      ;;
9268
 
9269
    darwin* | rhapsody*)
9270
 
9271
 
9272
  archive_cmds_need_lc=no
9273
  hardcode_direct=no
9274
  hardcode_automatic=yes
9275
  hardcode_shlibpath_var=unsupported
9276
  if test "$lt_cv_ld_force_load" = "yes"; then
9277
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9278
  else
9279
    whole_archive_flag_spec=''
9280
  fi
9281
  link_all_deplibs=yes
9282
  allow_undefined_flag="$_lt_dar_allow_undefined"
9283
  case $cc_basename in
9284
     ifort*) _lt_dar_can_shared=yes ;;
9285
     *) _lt_dar_can_shared=$GCC ;;
9286
  esac
9287
  if test "$_lt_dar_can_shared" = "yes"; then
9288
    output_verbose_link_cmd=func_echo_all
9289
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9290
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9291
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9292
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9293
 
9294
  else
9295
  ld_shlibs=no
9296
  fi
9297
 
9298
      ;;
9299
 
9300
    dgux*)
9301
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9302
      hardcode_libdir_flag_spec='-L$libdir'
9303
      hardcode_shlibpath_var=no
9304
      ;;
9305
 
9306
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9307
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9308
    # does not break anything, and helps significantly (at the cost of a little
9309
    # extra space).
9310
    freebsd2.2*)
9311
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9312
      hardcode_libdir_flag_spec='-R$libdir'
9313
      hardcode_direct=yes
9314
      hardcode_shlibpath_var=no
9315
      ;;
9316
 
9317
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9318
    freebsd2.*)
9319
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9320
      hardcode_direct=yes
9321
      hardcode_minus_L=yes
9322
      hardcode_shlibpath_var=no
9323
      ;;
9324
 
9325
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9326
    freebsd* | dragonfly*)
9327
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9328
      hardcode_libdir_flag_spec='-R$libdir'
9329
      hardcode_direct=yes
9330
      hardcode_shlibpath_var=no
9331
      ;;
9332
 
9333
    hpux9*)
9334
      if test "$GCC" = yes; then
9335
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9336
      else
9337
        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'
9338
      fi
9339
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9340
      hardcode_libdir_separator=:
9341
      hardcode_direct=yes
9342
 
9343
      # hardcode_minus_L: Not really in the search PATH,
9344
      # but as the default location of the library.
9345
      hardcode_minus_L=yes
9346
      export_dynamic_flag_spec='${wl}-E'
9347
      ;;
9348
 
9349
    hpux10*)
9350
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9351
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9352
      else
9353
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9354
      fi
9355
      if test "$with_gnu_ld" = no; then
9356
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9357
        hardcode_libdir_flag_spec_ld='+b $libdir'
9358
        hardcode_libdir_separator=:
9359
        hardcode_direct=yes
9360
        hardcode_direct_absolute=yes
9361
        export_dynamic_flag_spec='${wl}-E'
9362
        # hardcode_minus_L: Not really in the search PATH,
9363
        # but as the default location of the library.
9364
        hardcode_minus_L=yes
9365
      fi
9366
      ;;
9367
 
9368
    hpux11*)
9369
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9370
        case $host_cpu in
9371
        hppa*64*)
9372
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9373
          ;;
9374
        ia64*)
9375
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9376
          ;;
9377
        *)
9378
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9379
          ;;
9380
        esac
9381
      else
9382
        case $host_cpu in
9383
        hppa*64*)
9384
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9385
          ;;
9386
        ia64*)
9387
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9388
          ;;
9389
        *)
9390
 
9391
          # Older versions of the 11.00 compiler do not understand -b yet
9392
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9393
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9394
$as_echo_n "checking if $CC understands -b... " >&6; }
9395
if test "${lt_cv_prog_compiler__b+set}" = set; then :
9396
  $as_echo_n "(cached) " >&6
9397
else
9398
  lt_cv_prog_compiler__b=no
9399
   save_LDFLAGS="$LDFLAGS"
9400
   LDFLAGS="$LDFLAGS -b"
9401
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9402
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9403
     # The linker can only warn and ignore the option if not recognized
9404
     # So say no if there are warnings
9405
     if test -s conftest.err; then
9406
       # Append any errors to the config.log.
9407
       cat conftest.err 1>&5
9408
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9409
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9410
       if diff conftest.exp conftest.er2 >/dev/null; then
9411
         lt_cv_prog_compiler__b=yes
9412
       fi
9413
     else
9414
       lt_cv_prog_compiler__b=yes
9415
     fi
9416
   fi
9417
   $RM -r conftest*
9418
   LDFLAGS="$save_LDFLAGS"
9419
 
9420
fi
9421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9422
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9423
 
9424
if test x"$lt_cv_prog_compiler__b" = xyes; then
9425
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426
else
9427
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9428
fi
9429
 
9430
          ;;
9431
        esac
9432
      fi
9433
      if test "$with_gnu_ld" = no; then
9434
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9435
        hardcode_libdir_separator=:
9436
 
9437
        case $host_cpu in
9438
        hppa*64*|ia64*)
9439
          hardcode_direct=no
9440
          hardcode_shlibpath_var=no
9441
          ;;
9442
        *)
9443
          hardcode_direct=yes
9444
          hardcode_direct_absolute=yes
9445
          export_dynamic_flag_spec='${wl}-E'
9446
 
9447
          # hardcode_minus_L: Not really in the search PATH,
9448
          # but as the default location of the library.
9449
          hardcode_minus_L=yes
9450
          ;;
9451
        esac
9452
      fi
9453
      ;;
9454
 
9455
    irix5* | irix6* | nonstopux*)
9456
      if test "$GCC" = yes; then
9457
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9458
        # Try to use the -exported_symbol ld option, if it does not
9459
        # work, assume that -exports_file does not work either and
9460
        # implicitly export all symbols.
9461
        save_LDFLAGS="$LDFLAGS"
9462
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9463
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464
/* end confdefs.h.  */
9465
int foo(void) {}
9466
_ACEOF
9467
if ac_fn_c_try_link "$LINENO"; then :
9468
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9469
 
9470
fi
9471
rm -f core conftest.err conftest.$ac_objext \
9472
    conftest$ac_exeext conftest.$ac_ext
9473
        LDFLAGS="$save_LDFLAGS"
9474
      else
9475
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9476
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9477
      fi
9478
      archive_cmds_need_lc='no'
9479
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9480
      hardcode_libdir_separator=:
9481
      inherit_rpath=yes
9482
      link_all_deplibs=yes
9483
      ;;
9484
 
9485
    netbsd*)
9486
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9487
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9488
      else
9489
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9490
      fi
9491
      hardcode_libdir_flag_spec='-R$libdir'
9492
      hardcode_direct=yes
9493
      hardcode_shlibpath_var=no
9494
      ;;
9495
 
9496
    newsos6)
9497
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9498
      hardcode_direct=yes
9499
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9500
      hardcode_libdir_separator=:
9501
      hardcode_shlibpath_var=no
9502
      ;;
9503
 
9504
    *nto* | *qnx*)
9505
      ;;
9506
 
9507
    openbsd*)
9508
      if test -f /usr/libexec/ld.so; then
9509
        hardcode_direct=yes
9510
        hardcode_shlibpath_var=no
9511
        hardcode_direct_absolute=yes
9512
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9513
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9514
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9515
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9516
          export_dynamic_flag_spec='${wl}-E'
9517
        else
9518
          case $host_os in
9519
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9520
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9521
             hardcode_libdir_flag_spec='-R$libdir'
9522
             ;;
9523
           *)
9524
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9525
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9526
             ;;
9527
          esac
9528
        fi
9529
      else
9530
        ld_shlibs=no
9531
      fi
9532
      ;;
9533
 
9534
    os2*)
9535
      hardcode_libdir_flag_spec='-L$libdir'
9536
      hardcode_minus_L=yes
9537
      allow_undefined_flag=unsupported
9538
      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'
9539
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9540
      ;;
9541
 
9542
    osf3*)
9543
      if test "$GCC" = yes; then
9544
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9545
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9546
      else
9547
        allow_undefined_flag=' -expect_unresolved \*'
9548
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9549
      fi
9550
      archive_cmds_need_lc='no'
9551
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552
      hardcode_libdir_separator=:
9553
      ;;
9554
 
9555
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9556
      if test "$GCC" = yes; then
9557
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9558
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9559
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560
      else
9561
        allow_undefined_flag=' -expect_unresolved \*'
9562
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9563
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9564
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9565
 
9566
        # Both c and cxx compiler support -rpath directly
9567
        hardcode_libdir_flag_spec='-rpath $libdir'
9568
      fi
9569
      archive_cmds_need_lc='no'
9570
      hardcode_libdir_separator=:
9571
      ;;
9572
 
9573
    solaris*)
9574
      no_undefined_flag=' -z defs'
9575
      if test "$GCC" = yes; then
9576
        wlarc='${wl}'
9577
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9578
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9579
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9580
      else
9581
        case `$CC -V 2>&1` in
9582
        *"Compilers 5.0"*)
9583
          wlarc=''
9584
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9586
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9587
          ;;
9588
        *)
9589
          wlarc='${wl}'
9590
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9591
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9592
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9593
          ;;
9594
        esac
9595
      fi
9596
      hardcode_libdir_flag_spec='-R$libdir'
9597
      hardcode_shlibpath_var=no
9598
      case $host_os in
9599
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9600
      *)
9601
        # The compiler driver will combine and reorder linker options,
9602
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9603
        # but is careful enough not to reorder.
9604
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9605
        if test "$GCC" = yes; then
9606
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9607
        else
9608
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9609
        fi
9610
        ;;
9611
      esac
9612
      link_all_deplibs=yes
9613
      ;;
9614
 
9615
    sunos4*)
9616
      if test "x$host_vendor" = xsequent; then
9617
        # Use $CC to link under sequent, because it throws in some extra .o
9618
        # files that make .init and .fini sections work.
9619
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9620
      else
9621
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9622
      fi
9623
      hardcode_libdir_flag_spec='-L$libdir'
9624
      hardcode_direct=yes
9625
      hardcode_minus_L=yes
9626
      hardcode_shlibpath_var=no
9627
      ;;
9628
 
9629
    sysv4)
9630
      case $host_vendor in
9631
        sni)
9632
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633
          hardcode_direct=yes # is this really true???
9634
        ;;
9635
        siemens)
9636
          ## LD is ld it makes a PLAMLIB
9637
          ## CC just makes a GrossModule.
9638
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9639
          reload_cmds='$CC -r -o $output$reload_objs'
9640
          hardcode_direct=no
9641
        ;;
9642
        motorola)
9643
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9645
        ;;
9646
      esac
9647
      runpath_var='LD_RUN_PATH'
9648
      hardcode_shlibpath_var=no
9649
      ;;
9650
 
9651
    sysv4.3*)
9652
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653
      hardcode_shlibpath_var=no
9654
      export_dynamic_flag_spec='-Bexport'
9655
      ;;
9656
 
9657
    sysv4*MP*)
9658
      if test -d /usr/nec; then
9659
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9660
        hardcode_shlibpath_var=no
9661
        runpath_var=LD_RUN_PATH
9662
        hardcode_runpath_var=yes
9663
        ld_shlibs=yes
9664
      fi
9665
      ;;
9666
 
9667
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9668
      no_undefined_flag='${wl}-z,text'
9669
      archive_cmds_need_lc=no
9670
      hardcode_shlibpath_var=no
9671
      runpath_var='LD_RUN_PATH'
9672
 
9673
      if test "$GCC" = yes; then
9674
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676
      else
9677
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9678
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9679
      fi
9680
      ;;
9681
 
9682
    sysv5* | sco3.2v5* | sco5v6*)
9683
      # Note: We can NOT use -z defs as we might desire, because we do not
9684
      # link with -lc, and that would cause any symbols used from libc to
9685
      # always be unresolved, which means just about no library would
9686
      # ever link correctly.  If we're not using GNU ld we use -z text
9687
      # though, which does catch some bad symbols but isn't as heavy-handed
9688
      # as -z defs.
9689
      no_undefined_flag='${wl}-z,text'
9690
      allow_undefined_flag='${wl}-z,nodefs'
9691
      archive_cmds_need_lc=no
9692
      hardcode_shlibpath_var=no
9693
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9694
      hardcode_libdir_separator=':'
9695
      link_all_deplibs=yes
9696
      export_dynamic_flag_spec='${wl}-Bexport'
9697
      runpath_var='LD_RUN_PATH'
9698
 
9699
      if test "$GCC" = yes; then
9700
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702
      else
9703
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9705
      fi
9706
      ;;
9707
 
9708
    uts4*)
9709
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710
      hardcode_libdir_flag_spec='-L$libdir'
9711
      hardcode_shlibpath_var=no
9712
      ;;
9713
 
9714
    *)
9715
      ld_shlibs=no
9716
      ;;
9717
    esac
9718
 
9719
    if test x$host_vendor = xsni; then
9720
      case $host in
9721
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9722
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9723
        ;;
9724
      esac
9725
    fi
9726
  fi
9727
 
9728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9729
$as_echo "$ld_shlibs" >&6; }
9730
test "$ld_shlibs" = no && can_build_shared=no
9731
 
9732
with_gnu_ld=$with_gnu_ld
9733
 
9734
 
9735
 
9736
 
9737
 
9738
 
9739
 
9740
 
9741
 
9742
 
9743
 
9744
 
9745
 
9746
 
9747
 
9748
#
9749
# Do we need to explicitly link libc?
9750
#
9751
case "x$archive_cmds_need_lc" in
9752
x|xyes)
9753
  # Assume -lc should be added
9754
  archive_cmds_need_lc=yes
9755
 
9756
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9757
    case $archive_cmds in
9758
    *'~'*)
9759
      # FIXME: we may have to deal with multi-command sequences.
9760
      ;;
9761
    '$CC '*)
9762
      # Test whether the compiler implicitly links with -lc since on some
9763
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9764
      # to ld, don't add -lc before -lgcc.
9765
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9766
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9767
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9768
  $as_echo_n "(cached) " >&6
9769
else
9770
  $RM conftest*
9771
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9772
 
9773
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9774
  (eval $ac_compile) 2>&5
9775
  ac_status=$?
9776
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9777
  test $ac_status = 0; } 2>conftest.err; then
9778
          soname=conftest
9779
          lib=conftest
9780
          libobjs=conftest.$ac_objext
9781
          deplibs=
9782
          wl=$lt_prog_compiler_wl
9783
          pic_flag=$lt_prog_compiler_pic
9784
          compiler_flags=-v
9785
          linker_flags=-v
9786
          verstring=
9787
          output_objdir=.
9788
          libname=conftest
9789
          lt_save_allow_undefined_flag=$allow_undefined_flag
9790
          allow_undefined_flag=
9791
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9792
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9793
  ac_status=$?
9794
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9795
  test $ac_status = 0; }
9796
          then
9797
            lt_cv_archive_cmds_need_lc=no
9798
          else
9799
            lt_cv_archive_cmds_need_lc=yes
9800
          fi
9801
          allow_undefined_flag=$lt_save_allow_undefined_flag
9802
        else
9803
          cat conftest.err 1>&5
9804
        fi
9805
        $RM conftest*
9806
 
9807
fi
9808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9809
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9810
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9811
      ;;
9812
    esac
9813
  fi
9814
  ;;
9815
esac
9816
 
9817
 
9818
 
9819
 
9820
 
9821
 
9822
 
9823
 
9824
 
9825
 
9826
 
9827
 
9828
 
9829
 
9830
 
9831
 
9832
 
9833
 
9834
 
9835
 
9836
 
9837
 
9838
 
9839
 
9840
 
9841
 
9842
 
9843
 
9844
 
9845
 
9846
 
9847
 
9848
 
9849
 
9850
 
9851
 
9852
 
9853
 
9854
 
9855
 
9856
 
9857
 
9858
 
9859
 
9860
 
9861
 
9862
 
9863
 
9864
 
9865
 
9866
 
9867
 
9868
 
9869
 
9870
 
9871
 
9872
 
9873
 
9874
 
9875
 
9876
 
9877
 
9878
 
9879
 
9880
 
9881
 
9882
 
9883
 
9884
 
9885
 
9886
 
9887
 
9888
 
9889
 
9890
 
9891
 
9892
 
9893
 
9894
 
9895
 
9896
 
9897
 
9898
 
9899
 
9900
 
9901
 
9902
 
9903
 
9904
 
9905
 
9906
 
9907
 
9908
 
9909
 
9910
 
9911
 
9912
 
9913
 
9914
 
9915
 
9916
 
9917
 
9918
 
9919
 
9920
 
9921
 
9922
 
9923
 
9924
 
9925
 
9926
 
9927
 
9928
 
9929
 
9930
 
9931
 
9932
 
9933
 
9934
 
9935
 
9936
 
9937
 
9938
 
9939
 
9940
 
9941
 
9942
 
9943
 
9944
 
9945
 
9946
 
9947
 
9948
 
9949
 
9950
 
9951
 
9952
 
9953
 
9954
 
9955
 
9956
 
9957
 
9958
 
9959
 
9960
 
9961
 
9962
 
9963
 
9964
 
9965
 
9966
 
9967
 
9968
 
9969
 
9970
 
9971
 
9972
 
9973
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9974
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9975
 
9976
if test "$GCC" = yes; then
9977
  case $host_os in
9978
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9979
    *) lt_awk_arg="/^libraries:/" ;;
9980
  esac
9981
  case $host_os in
9982
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9983
    *) lt_sed_strip_eq="s,=/,/,g" ;;
9984
  esac
9985
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9986
  case $lt_search_path_spec in
9987
  *\;*)
9988
    # if the path contains ";" then we assume it to be the separator
9989
    # otherwise default to the standard path separator (i.e. ":") - it is
9990
    # assumed that no part of a normal pathname contains ";" but that should
9991
    # okay in the real world where ";" in dirpaths is itself problematic.
9992
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9993
    ;;
9994
  *)
9995
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9996
    ;;
9997
  esac
9998
  # Ok, now we have the path, separated by spaces, we can step through it
9999
  # and add multilib dir if necessary.
10000
  lt_tmp_lt_search_path_spec=
10001
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10002
  for lt_sys_path in $lt_search_path_spec; do
10003
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10004
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10005
    else
10006
      test -d "$lt_sys_path" && \
10007
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10008
    fi
10009
  done
10010
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10011
BEGIN {RS=" "; FS="/|\n";} {
10012
  lt_foo="";
10013
  lt_count=0;
10014
  for (lt_i = NF; lt_i > 0; lt_i--) {
10015
    if ($lt_i != "" && $lt_i != ".") {
10016
      if ($lt_i == "..") {
10017
        lt_count++;
10018
      } else {
10019
        if (lt_count == 0) {
10020
          lt_foo="/" $lt_i lt_foo;
10021
        } else {
10022
          lt_count--;
10023
        }
10024
      }
10025
    }
10026
  }
10027
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10028
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10029
}'`
10030
  # AWK program above erroneously prepends '/' to C:/dos/paths
10031
  # for these hosts.
10032
  case $host_os in
10033
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10034
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10035
  esac
10036
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10037
else
10038
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10039
fi
10040
library_names_spec=
10041
libname_spec='lib$name'
10042
soname_spec=
10043
shrext_cmds=".so"
10044
postinstall_cmds=
10045
postuninstall_cmds=
10046
finish_cmds=
10047
finish_eval=
10048
shlibpath_var=
10049
shlibpath_overrides_runpath=unknown
10050
version_type=none
10051
dynamic_linker="$host_os ld.so"
10052
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10053
need_lib_prefix=unknown
10054
hardcode_into_libs=no
10055
 
10056
# when you set need_version to no, make sure it does not cause -set_version
10057
# flags to be left without arguments
10058
need_version=unknown
10059
 
10060
case $host_os in
10061
aix3*)
10062
  version_type=linux
10063
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10064
  shlibpath_var=LIBPATH
10065
 
10066
  # AIX 3 has no versioning support, so we append a major version to the name.
10067
  soname_spec='${libname}${release}${shared_ext}$major'
10068
  ;;
10069
 
10070
aix[4-9]*)
10071
  version_type=linux
10072
  need_lib_prefix=no
10073
  need_version=no
10074
  hardcode_into_libs=yes
10075
  if test "$host_cpu" = ia64; then
10076
    # AIX 5 supports IA64
10077
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10078
    shlibpath_var=LD_LIBRARY_PATH
10079
  else
10080
    # With GCC up to 2.95.x, collect2 would create an import file
10081
    # for dependence libraries.  The import file would start with
10082
    # the line `#! .'.  This would cause the generated library to
10083
    # depend on `.', always an invalid library.  This was fixed in
10084
    # development snapshots of GCC prior to 3.0.
10085
    case $host_os in
10086
      aix4 | aix4.[01] | aix4.[01].*)
10087
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10088
           echo ' yes '
10089
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10090
        :
10091
      else
10092
        can_build_shared=no
10093
      fi
10094
      ;;
10095
    esac
10096
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10097
    # soname into executable. Probably we can add versioning support to
10098
    # collect2, so additional links can be useful in future.
10099
    if test "$aix_use_runtimelinking" = yes; then
10100
      # If using run time linking (on AIX 4.2 or later) use lib.so
10101
      # instead of lib.a to let people know that these are not
10102
      # typical AIX shared libraries.
10103
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104
    else
10105
      # We preserve .a as extension for shared libraries through AIX4.2
10106
      # and later when we are not doing run time linking.
10107
      library_names_spec='${libname}${release}.a $libname.a'
10108
      soname_spec='${libname}${release}${shared_ext}$major'
10109
    fi
10110
    shlibpath_var=LIBPATH
10111
  fi
10112
  ;;
10113
 
10114
amigaos*)
10115
  case $host_cpu in
10116
  powerpc)
10117
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10118
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10119
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120
    ;;
10121
  m68k)
10122
    library_names_spec='$libname.ixlibrary $libname.a'
10123
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10124
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10125
    ;;
10126
  esac
10127
  ;;
10128
 
10129
beos*)
10130
  library_names_spec='${libname}${shared_ext}'
10131
  dynamic_linker="$host_os ld.so"
10132
  shlibpath_var=LIBRARY_PATH
10133
  ;;
10134
 
10135
bsdi[45]*)
10136
  version_type=linux
10137
  need_version=no
10138
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139
  soname_spec='${libname}${release}${shared_ext}$major'
10140
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10141
  shlibpath_var=LD_LIBRARY_PATH
10142
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10143
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10144
  # the default ld.so.conf also contains /usr/contrib/lib and
10145
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10146
  # libtool to hard-code these into programs
10147
  ;;
10148
 
10149
cygwin* | mingw* | pw32* | cegcc*)
10150
  version_type=windows
10151
  shrext_cmds=".dll"
10152
  need_version=no
10153
  need_lib_prefix=no
10154
 
10155
  case $GCC,$host_os in
10156
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10157
    library_names_spec='$libname.dll.a'
10158
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10159
    postinstall_cmds='base_file=`basename \${file}`~
10160
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10161
      dldir=$destdir/`dirname \$dlpath`~
10162
      test -d \$dldir || mkdir -p \$dldir~
10163
      $install_prog $dir/$dlname \$dldir/$dlname~
10164
      chmod a+x \$dldir/$dlname~
10165
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10166
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10167
      fi'
10168
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10169
      dlpath=$dir/\$dldll~
10170
       $RM \$dlpath'
10171
    shlibpath_overrides_runpath=yes
10172
 
10173
    case $host_os in
10174
    cygwin*)
10175
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10176
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10177
 
10178
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10179
      ;;
10180
    mingw* | cegcc*)
10181
      # MinGW DLLs use traditional 'lib' prefix
10182
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10183
      ;;
10184
    pw32*)
10185
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10186
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10187
      ;;
10188
    esac
10189
    ;;
10190
 
10191
  *)
10192
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10193
    ;;
10194
  esac
10195
  dynamic_linker='Win32 ld.exe'
10196
  # FIXME: first we should search . and the directory the executable is in
10197
  shlibpath_var=PATH
10198
  ;;
10199
 
10200
darwin* | rhapsody*)
10201
  dynamic_linker="$host_os dyld"
10202
  version_type=darwin
10203
  need_lib_prefix=no
10204
  need_version=no
10205
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10206
  soname_spec='${libname}${release}${major}$shared_ext'
10207
  shlibpath_overrides_runpath=yes
10208
  shlibpath_var=DYLD_LIBRARY_PATH
10209
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10210
 
10211
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10212
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10213
  ;;
10214
 
10215
dgux*)
10216
  version_type=linux
10217
  need_lib_prefix=no
10218
  need_version=no
10219
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10220
  soname_spec='${libname}${release}${shared_ext}$major'
10221
  shlibpath_var=LD_LIBRARY_PATH
10222
  ;;
10223
 
10224
freebsd* | dragonfly*)
10225
  # DragonFly does not have aout.  When/if they implement a new
10226
  # versioning mechanism, adjust this.
10227
  if test -x /usr/bin/objformat; then
10228
    objformat=`/usr/bin/objformat`
10229
  else
10230
    case $host_os in
10231
    freebsd[23].*) objformat=aout ;;
10232
    *) objformat=elf ;;
10233
    esac
10234
  fi
10235
  version_type=freebsd-$objformat
10236
  case $version_type in
10237
    freebsd-elf*)
10238
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10239
      need_version=no
10240
      need_lib_prefix=no
10241
      ;;
10242
    freebsd-*)
10243
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10244
      need_version=yes
10245
      ;;
10246
  esac
10247
  shlibpath_var=LD_LIBRARY_PATH
10248
  case $host_os in
10249
  freebsd2.*)
10250
    shlibpath_overrides_runpath=yes
10251
    ;;
10252
  freebsd3.[01]* | freebsdelf3.[01]*)
10253
    shlibpath_overrides_runpath=yes
10254
    hardcode_into_libs=yes
10255
    ;;
10256
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10257
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10258
    shlibpath_overrides_runpath=no
10259
    hardcode_into_libs=yes
10260
    ;;
10261
  *) # from 4.6 on, and DragonFly
10262
    shlibpath_overrides_runpath=yes
10263
    hardcode_into_libs=yes
10264
    ;;
10265
  esac
10266
  ;;
10267
 
10268
gnu*)
10269
  version_type=linux
10270
  need_lib_prefix=no
10271
  need_version=no
10272
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10273
  soname_spec='${libname}${release}${shared_ext}$major'
10274
  shlibpath_var=LD_LIBRARY_PATH
10275
  hardcode_into_libs=yes
10276
  ;;
10277
 
10278
haiku*)
10279
  version_type=linux
10280
  need_lib_prefix=no
10281
  need_version=no
10282
  dynamic_linker="$host_os runtime_loader"
10283
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10284
  soname_spec='${libname}${release}${shared_ext}$major'
10285
  shlibpath_var=LIBRARY_PATH
10286
  shlibpath_overrides_runpath=yes
10287
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10288
  hardcode_into_libs=yes
10289
  ;;
10290
 
10291
hpux9* | hpux10* | hpux11*)
10292
  # Give a soname corresponding to the major version so that dld.sl refuses to
10293
  # link against other versions.
10294
  version_type=sunos
10295
  need_lib_prefix=no
10296
  need_version=no
10297
  case $host_cpu in
10298
  ia64*)
10299
    shrext_cmds='.so'
10300
    hardcode_into_libs=yes
10301
    dynamic_linker="$host_os dld.so"
10302
    shlibpath_var=LD_LIBRARY_PATH
10303
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10304
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305
    soname_spec='${libname}${release}${shared_ext}$major'
10306
    if test "X$HPUX_IA64_MODE" = X32; then
10307
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10308
    else
10309
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10310
    fi
10311
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10312
    ;;
10313
  hppa*64*)
10314
    shrext_cmds='.sl'
10315
    hardcode_into_libs=yes
10316
    dynamic_linker="$host_os dld.sl"
10317
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10318
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10319
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320
    soname_spec='${libname}${release}${shared_ext}$major'
10321
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10322
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10323
    ;;
10324
  *)
10325
    shrext_cmds='.sl'
10326
    dynamic_linker="$host_os dld.sl"
10327
    shlibpath_var=SHLIB_PATH
10328
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10329
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330
    soname_spec='${libname}${release}${shared_ext}$major'
10331
    ;;
10332
  esac
10333
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10334
  postinstall_cmds='chmod 555 $lib'
10335
  # or fails outright, so override atomically:
10336
  install_override_mode=555
10337
  ;;
10338
 
10339
interix[3-9]*)
10340
  version_type=linux
10341
  need_lib_prefix=no
10342
  need_version=no
10343
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10344
  soname_spec='${libname}${release}${shared_ext}$major'
10345
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10346
  shlibpath_var=LD_LIBRARY_PATH
10347
  shlibpath_overrides_runpath=no
10348
  hardcode_into_libs=yes
10349
  ;;
10350
 
10351
irix5* | irix6* | nonstopux*)
10352
  case $host_os in
10353
    nonstopux*) version_type=nonstopux ;;
10354
    *)
10355
        if test "$lt_cv_prog_gnu_ld" = yes; then
10356
                version_type=linux
10357
        else
10358
                version_type=irix
10359
        fi ;;
10360
  esac
10361
  need_lib_prefix=no
10362
  need_version=no
10363
  soname_spec='${libname}${release}${shared_ext}$major'
10364
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10365
  case $host_os in
10366
  irix5* | nonstopux*)
10367
    libsuff= shlibsuff=
10368
    ;;
10369
  *)
10370
    case $LD in # libtool.m4 will add one of these switches to LD
10371
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10372
      libsuff= shlibsuff= libmagic=32-bit;;
10373
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10374
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10375
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10376
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10377
    *) libsuff= shlibsuff= libmagic=never-match;;
10378
    esac
10379
    ;;
10380
  esac
10381
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10382
  shlibpath_overrides_runpath=no
10383
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10384
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10385
  hardcode_into_libs=yes
10386
  ;;
10387
 
10388
# No shared lib support for Linux oldld, aout, or coff.
10389
linux*oldld* | linux*aout* | linux*coff*)
10390
  dynamic_linker=no
10391
  ;;
10392
 
10393
# This must be Linux ELF.
10394
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10395
  version_type=linux
10396
  need_lib_prefix=no
10397
  need_version=no
10398
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399
  soname_spec='${libname}${release}${shared_ext}$major'
10400
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10401
  shlibpath_var=LD_LIBRARY_PATH
10402
  shlibpath_overrides_runpath=no
10403
 
10404
  # Some binutils ld are patched to set DT_RUNPATH
10405
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10406
  $as_echo_n "(cached) " >&6
10407
else
10408
  lt_cv_shlibpath_overrides_runpath=no
10409
    save_LDFLAGS=$LDFLAGS
10410
    save_libdir=$libdir
10411
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10412
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10413
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414
/* end confdefs.h.  */
10415
 
10416
int
10417
main ()
10418
{
10419
 
10420
  ;
10421
  return 0;
10422
}
10423
_ACEOF
10424
if ac_fn_c_try_link "$LINENO"; then :
10425
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10426
  lt_cv_shlibpath_overrides_runpath=yes
10427
fi
10428
fi
10429
rm -f core conftest.err conftest.$ac_objext \
10430
    conftest$ac_exeext conftest.$ac_ext
10431
    LDFLAGS=$save_LDFLAGS
10432
    libdir=$save_libdir
10433
 
10434
fi
10435
 
10436
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10437
 
10438
  # This implies no fast_install, which is unacceptable.
10439
  # Some rework will be needed to allow for fast_install
10440
  # before this can be enabled.
10441
  hardcode_into_libs=yes
10442
 
10443
  # Append ld.so.conf contents to the search path
10444
  if test -f /etc/ld.so.conf; then
10445
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10446
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10447
  fi
10448
 
10449
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10450
  # powerpc, because MkLinux only supported shared libraries with the
10451
  # GNU dynamic linker.  Since this was broken with cross compilers,
10452
  # most powerpc-linux boxes support dynamic linking these days and
10453
  # people can always --disable-shared, the test was removed, and we
10454
  # assume the GNU/Linux dynamic linker is in use.
10455
  dynamic_linker='GNU/Linux ld.so'
10456
  ;;
10457
 
10458
netbsd*)
10459
  version_type=sunos
10460
  need_lib_prefix=no
10461
  need_version=no
10462
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10463
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10464
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10465
    dynamic_linker='NetBSD (a.out) ld.so'
10466
  else
10467
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10468
    soname_spec='${libname}${release}${shared_ext}$major'
10469
    dynamic_linker='NetBSD ld.elf_so'
10470
  fi
10471
  shlibpath_var=LD_LIBRARY_PATH
10472
  shlibpath_overrides_runpath=yes
10473
  hardcode_into_libs=yes
10474
  ;;
10475
 
10476
newsos6)
10477
  version_type=linux
10478
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479
  shlibpath_var=LD_LIBRARY_PATH
10480
  shlibpath_overrides_runpath=yes
10481
  ;;
10482
 
10483
*nto* | *qnx*)
10484
  version_type=qnx
10485
  need_lib_prefix=no
10486
  need_version=no
10487
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488
  soname_spec='${libname}${release}${shared_ext}$major'
10489
  shlibpath_var=LD_LIBRARY_PATH
10490
  shlibpath_overrides_runpath=no
10491
  hardcode_into_libs=yes
10492
  dynamic_linker='ldqnx.so'
10493
  ;;
10494
 
10495
openbsd*)
10496
  version_type=sunos
10497
  sys_lib_dlsearch_path_spec="/usr/lib"
10498
  need_lib_prefix=no
10499
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10500
  case $host_os in
10501
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10502
    *)                          need_version=no  ;;
10503
  esac
10504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10505
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10506
  shlibpath_var=LD_LIBRARY_PATH
10507
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10508
    case $host_os in
10509
      openbsd2.[89] | openbsd2.[89].*)
10510
        shlibpath_overrides_runpath=no
10511
        ;;
10512
      *)
10513
        shlibpath_overrides_runpath=yes
10514
        ;;
10515
      esac
10516
  else
10517
    shlibpath_overrides_runpath=yes
10518
  fi
10519
  ;;
10520
 
10521
os2*)
10522
  libname_spec='$name'
10523
  shrext_cmds=".dll"
10524
  need_lib_prefix=no
10525
  library_names_spec='$libname${shared_ext} $libname.a'
10526
  dynamic_linker='OS/2 ld.exe'
10527
  shlibpath_var=LIBPATH
10528
  ;;
10529
 
10530
osf3* | osf4* | osf5*)
10531
  version_type=osf
10532
  need_lib_prefix=no
10533
  need_version=no
10534
  soname_spec='${libname}${release}${shared_ext}$major'
10535
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536
  shlibpath_var=LD_LIBRARY_PATH
10537
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10538
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10539
  ;;
10540
 
10541
rdos*)
10542
  dynamic_linker=no
10543
  ;;
10544
 
10545
solaris*)
10546
  version_type=linux
10547
  need_lib_prefix=no
10548
  need_version=no
10549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550
  soname_spec='${libname}${release}${shared_ext}$major'
10551
  shlibpath_var=LD_LIBRARY_PATH
10552
  shlibpath_overrides_runpath=yes
10553
  hardcode_into_libs=yes
10554
  # ldd complains unless libraries are executable
10555
  postinstall_cmds='chmod +x $lib'
10556
  ;;
10557
 
10558
sunos4*)
10559
  version_type=sunos
10560
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10561
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10562
  shlibpath_var=LD_LIBRARY_PATH
10563
  shlibpath_overrides_runpath=yes
10564
  if test "$with_gnu_ld" = yes; then
10565
    need_lib_prefix=no
10566
  fi
10567
  need_version=yes
10568
  ;;
10569
 
10570
sysv4 | sysv4.3*)
10571
  version_type=linux
10572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573
  soname_spec='${libname}${release}${shared_ext}$major'
10574
  shlibpath_var=LD_LIBRARY_PATH
10575
  case $host_vendor in
10576
    sni)
10577
      shlibpath_overrides_runpath=no
10578
      need_lib_prefix=no
10579
      runpath_var=LD_RUN_PATH
10580
      ;;
10581
    siemens)
10582
      need_lib_prefix=no
10583
      ;;
10584
    motorola)
10585
      need_lib_prefix=no
10586
      need_version=no
10587
      shlibpath_overrides_runpath=no
10588
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10589
      ;;
10590
  esac
10591
  ;;
10592
 
10593
sysv4*MP*)
10594
  if test -d /usr/nec ;then
10595
    version_type=linux
10596
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10597
    soname_spec='$libname${shared_ext}.$major'
10598
    shlibpath_var=LD_LIBRARY_PATH
10599
  fi
10600
  ;;
10601
 
10602
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10603
  version_type=freebsd-elf
10604
  need_lib_prefix=no
10605
  need_version=no
10606
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10607
  soname_spec='${libname}${release}${shared_ext}$major'
10608
  shlibpath_var=LD_LIBRARY_PATH
10609
  shlibpath_overrides_runpath=yes
10610
  hardcode_into_libs=yes
10611
  if test "$with_gnu_ld" = yes; then
10612
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10613
  else
10614
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10615
    case $host_os in
10616
      sco3.2v5*)
10617
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10618
        ;;
10619
    esac
10620
  fi
10621
  sys_lib_dlsearch_path_spec='/usr/lib'
10622
  ;;
10623
 
10624
tpf*)
10625
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10626
  version_type=linux
10627
  need_lib_prefix=no
10628
  need_version=no
10629
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630
  shlibpath_var=LD_LIBRARY_PATH
10631
  shlibpath_overrides_runpath=no
10632
  hardcode_into_libs=yes
10633
  ;;
10634
 
10635
uts4*)
10636
  version_type=linux
10637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638
  soname_spec='${libname}${release}${shared_ext}$major'
10639
  shlibpath_var=LD_LIBRARY_PATH
10640
  ;;
10641
 
10642
*)
10643
  dynamic_linker=no
10644
  ;;
10645
esac
10646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10647
$as_echo "$dynamic_linker" >&6; }
10648
test "$dynamic_linker" = no && can_build_shared=no
10649
 
10650
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10651
if test "$GCC" = yes; then
10652
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10653
fi
10654
 
10655
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10656
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10657
fi
10658
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10659
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10660
fi
10661
 
10662
 
10663
 
10664
 
10665
 
10666
 
10667
 
10668
 
10669
 
10670
 
10671
 
10672
 
10673
 
10674
 
10675
 
10676
 
10677
 
10678
 
10679
 
10680
 
10681
 
10682
 
10683
 
10684
 
10685
 
10686
 
10687
 
10688
 
10689
 
10690
 
10691
 
10692
 
10693
 
10694
 
10695
 
10696
 
10697
 
10698
 
10699
 
10700
 
10701
 
10702
 
10703
 
10704
 
10705
 
10706
 
10707
 
10708
 
10709
 
10710
 
10711
 
10712
 
10713
 
10714
 
10715
 
10716
 
10717
 
10718
 
10719
 
10720
 
10721
 
10722
 
10723
 
10724
 
10725
 
10726
 
10727
 
10728
 
10729
 
10730
 
10731
 
10732
 
10733
 
10734
 
10735
 
10736
 
10737
 
10738
 
10739
 
10740
 
10741
 
10742
 
10743
 
10744
 
10745
 
10746
 
10747
 
10748
 
10749
 
10750
 
10751
 
10752
 
10753
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10754
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10755
hardcode_action=
10756
if test -n "$hardcode_libdir_flag_spec" ||
10757
   test -n "$runpath_var" ||
10758
   test "X$hardcode_automatic" = "Xyes" ; then
10759
 
10760
  # We can hardcode non-existent directories.
10761
  if test "$hardcode_direct" != no &&
10762
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10763
     # have to relink, otherwise we might link with an installed library
10764
     # when we should be linking with a yet-to-be-installed one
10765
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10766
     test "$hardcode_minus_L" != no; then
10767
    # Linking always hardcodes the temporary library directory.
10768
    hardcode_action=relink
10769
  else
10770
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10771
    hardcode_action=immediate
10772
  fi
10773
else
10774
  # We cannot hardcode anything, or else we can only hardcode existing
10775
  # directories.
10776
  hardcode_action=unsupported
10777
fi
10778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10779
$as_echo "$hardcode_action" >&6; }
10780
 
10781
if test "$hardcode_action" = relink ||
10782
   test "$inherit_rpath" = yes; then
10783
  # Fast installation is not supported
10784
  enable_fast_install=no
10785
elif test "$shlibpath_overrides_runpath" = yes ||
10786
     test "$enable_shared" = no; then
10787
  # Fast installation is not necessary
10788
  enable_fast_install=needless
10789
fi
10790
 
10791
 
10792
 
10793
 
10794
 
10795
 
10796
  if test "x$enable_dlopen" != xyes; then
10797
  enable_dlopen=unknown
10798
  enable_dlopen_self=unknown
10799
  enable_dlopen_self_static=unknown
10800
else
10801
  lt_cv_dlopen=no
10802
  lt_cv_dlopen_libs=
10803
 
10804
  case $host_os in
10805
  beos*)
10806
    lt_cv_dlopen="load_add_on"
10807
    lt_cv_dlopen_libs=
10808
    lt_cv_dlopen_self=yes
10809
    ;;
10810
 
10811
  mingw* | pw32* | cegcc*)
10812
    lt_cv_dlopen="LoadLibrary"
10813
    lt_cv_dlopen_libs=
10814
    ;;
10815
 
10816
  cygwin*)
10817
    lt_cv_dlopen="dlopen"
10818
    lt_cv_dlopen_libs=
10819
    ;;
10820
 
10821
  darwin*)
10822
  # if libdl is installed we need to link against it
10823
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10824
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10825
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10826
  $as_echo_n "(cached) " >&6
10827
else
10828
  ac_check_lib_save_LIBS=$LIBS
10829
LIBS="-ldl  $LIBS"
10830
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831
/* end confdefs.h.  */
10832
 
10833
/* Override any GCC internal prototype to avoid an error.
10834
   Use char because int might match the return type of a GCC
10835
   builtin and then its argument prototype would still apply.  */
10836
#ifdef __cplusplus
10837
extern "C"
10838
#endif
10839
char dlopen ();
10840
int
10841
main ()
10842
{
10843
return dlopen ();
10844
  ;
10845
  return 0;
10846
}
10847
_ACEOF
10848
if ac_fn_c_try_link "$LINENO"; then :
10849
  ac_cv_lib_dl_dlopen=yes
10850
else
10851
  ac_cv_lib_dl_dlopen=no
10852
fi
10853
rm -f core conftest.err conftest.$ac_objext \
10854
    conftest$ac_exeext conftest.$ac_ext
10855
LIBS=$ac_check_lib_save_LIBS
10856
fi
10857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10858
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10859
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10860
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10861
else
10862
 
10863
    lt_cv_dlopen="dyld"
10864
    lt_cv_dlopen_libs=
10865
    lt_cv_dlopen_self=yes
10866
 
10867
fi
10868
 
10869
    ;;
10870
 
10871
  *)
10872
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10873
if test "x$ac_cv_func_shl_load" = x""yes; then :
10874
  lt_cv_dlopen="shl_load"
10875
else
10876
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10877
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10878
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10879
  $as_echo_n "(cached) " >&6
10880
else
10881
  ac_check_lib_save_LIBS=$LIBS
10882
LIBS="-ldld  $LIBS"
10883
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884
/* end confdefs.h.  */
10885
 
10886
/* Override any GCC internal prototype to avoid an error.
10887
   Use char because int might match the return type of a GCC
10888
   builtin and then its argument prototype would still apply.  */
10889
#ifdef __cplusplus
10890
extern "C"
10891
#endif
10892
char shl_load ();
10893
int
10894
main ()
10895
{
10896
return shl_load ();
10897
  ;
10898
  return 0;
10899
}
10900
_ACEOF
10901
if ac_fn_c_try_link "$LINENO"; then :
10902
  ac_cv_lib_dld_shl_load=yes
10903
else
10904
  ac_cv_lib_dld_shl_load=no
10905
fi
10906
rm -f core conftest.err conftest.$ac_objext \
10907
    conftest$ac_exeext conftest.$ac_ext
10908
LIBS=$ac_check_lib_save_LIBS
10909
fi
10910
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10911
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10912
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10913
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10914
else
10915
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10916
if test "x$ac_cv_func_dlopen" = x""yes; then :
10917
  lt_cv_dlopen="dlopen"
10918
else
10919
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10920
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10921
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10922
  $as_echo_n "(cached) " >&6
10923
else
10924
  ac_check_lib_save_LIBS=$LIBS
10925
LIBS="-ldl  $LIBS"
10926
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927
/* end confdefs.h.  */
10928
 
10929
/* Override any GCC internal prototype to avoid an error.
10930
   Use char because int might match the return type of a GCC
10931
   builtin and then its argument prototype would still apply.  */
10932
#ifdef __cplusplus
10933
extern "C"
10934
#endif
10935
char dlopen ();
10936
int
10937
main ()
10938
{
10939
return dlopen ();
10940
  ;
10941
  return 0;
10942
}
10943
_ACEOF
10944
if ac_fn_c_try_link "$LINENO"; then :
10945
  ac_cv_lib_dl_dlopen=yes
10946
else
10947
  ac_cv_lib_dl_dlopen=no
10948
fi
10949
rm -f core conftest.err conftest.$ac_objext \
10950
    conftest$ac_exeext conftest.$ac_ext
10951
LIBS=$ac_check_lib_save_LIBS
10952
fi
10953
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10954
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10955
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10956
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10957
else
10958
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10959
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10960
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10961
  $as_echo_n "(cached) " >&6
10962
else
10963
  ac_check_lib_save_LIBS=$LIBS
10964
LIBS="-lsvld  $LIBS"
10965
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966
/* end confdefs.h.  */
10967
 
10968
/* Override any GCC internal prototype to avoid an error.
10969
   Use char because int might match the return type of a GCC
10970
   builtin and then its argument prototype would still apply.  */
10971
#ifdef __cplusplus
10972
extern "C"
10973
#endif
10974
char dlopen ();
10975
int
10976
main ()
10977
{
10978
return dlopen ();
10979
  ;
10980
  return 0;
10981
}
10982
_ACEOF
10983
if ac_fn_c_try_link "$LINENO"; then :
10984
  ac_cv_lib_svld_dlopen=yes
10985
else
10986
  ac_cv_lib_svld_dlopen=no
10987
fi
10988
rm -f core conftest.err conftest.$ac_objext \
10989
    conftest$ac_exeext conftest.$ac_ext
10990
LIBS=$ac_check_lib_save_LIBS
10991
fi
10992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10993
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10994
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10995
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10996
else
10997
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10998
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10999
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11000
  $as_echo_n "(cached) " >&6
11001
else
11002
  ac_check_lib_save_LIBS=$LIBS
11003
LIBS="-ldld  $LIBS"
11004
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005
/* end confdefs.h.  */
11006
 
11007
/* Override any GCC internal prototype to avoid an error.
11008
   Use char because int might match the return type of a GCC
11009
   builtin and then its argument prototype would still apply.  */
11010
#ifdef __cplusplus
11011
extern "C"
11012
#endif
11013
char dld_link ();
11014
int
11015
main ()
11016
{
11017
return dld_link ();
11018
  ;
11019
  return 0;
11020
}
11021
_ACEOF
11022
if ac_fn_c_try_link "$LINENO"; then :
11023
  ac_cv_lib_dld_dld_link=yes
11024
else
11025
  ac_cv_lib_dld_dld_link=no
11026
fi
11027
rm -f core conftest.err conftest.$ac_objext \
11028
    conftest$ac_exeext conftest.$ac_ext
11029
LIBS=$ac_check_lib_save_LIBS
11030
fi
11031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11032
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11033
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11034
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11035
fi
11036
 
11037
 
11038
fi
11039
 
11040
 
11041
fi
11042
 
11043
 
11044
fi
11045
 
11046
 
11047
fi
11048
 
11049
 
11050
fi
11051
 
11052
    ;;
11053
  esac
11054
 
11055
  if test "x$lt_cv_dlopen" != xno; then
11056
    enable_dlopen=yes
11057
  else
11058
    enable_dlopen=no
11059
  fi
11060
 
11061
  case $lt_cv_dlopen in
11062
  dlopen)
11063
    save_CPPFLAGS="$CPPFLAGS"
11064
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11065
 
11066
    save_LDFLAGS="$LDFLAGS"
11067
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11068
 
11069
    save_LIBS="$LIBS"
11070
    LIBS="$lt_cv_dlopen_libs $LIBS"
11071
 
11072
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11073
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11074
if test "${lt_cv_dlopen_self+set}" = set; then :
11075
  $as_echo_n "(cached) " >&6
11076
else
11077
          if test "$cross_compiling" = yes; then :
11078
  lt_cv_dlopen_self=cross
11079
else
11080
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11081
  lt_status=$lt_dlunknown
11082
  cat > conftest.$ac_ext <<_LT_EOF
11083
#line 11083 "configure"
11084
#include "confdefs.h"
11085
 
11086
#if HAVE_DLFCN_H
11087
#include 
11088
#endif
11089
 
11090
#include 
11091
 
11092
#ifdef RTLD_GLOBAL
11093
#  define LT_DLGLOBAL           RTLD_GLOBAL
11094
#else
11095
#  ifdef DL_GLOBAL
11096
#    define LT_DLGLOBAL         DL_GLOBAL
11097
#  else
11098
#    define LT_DLGLOBAL         0
11099
#  endif
11100
#endif
11101
 
11102
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11103
   find out it does not work in some platform. */
11104
#ifndef LT_DLLAZY_OR_NOW
11105
#  ifdef RTLD_LAZY
11106
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11107
#  else
11108
#    ifdef DL_LAZY
11109
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11110
#    else
11111
#      ifdef RTLD_NOW
11112
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11113
#      else
11114
#        ifdef DL_NOW
11115
#          define LT_DLLAZY_OR_NOW      DL_NOW
11116
#        else
11117
#          define LT_DLLAZY_OR_NOW      0
11118
#        endif
11119
#      endif
11120
#    endif
11121
#  endif
11122
#endif
11123
 
11124
/* When -fvisbility=hidden is used, assume the code has been annotated
11125
   correspondingly for the symbols needed.  */
11126
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11127
void fnord () __attribute__((visibility("default")));
11128
#endif
11129
 
11130
void fnord () { int i=42; }
11131
int main ()
11132
{
11133
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11134
  int status = $lt_dlunknown;
11135
 
11136
  if (self)
11137
    {
11138
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11139
      else
11140
        {
11141
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11142
          else puts (dlerror ());
11143
        }
11144
      /* dlclose (self); */
11145
    }
11146
  else
11147
    puts (dlerror ());
11148
 
11149
  return status;
11150
}
11151
_LT_EOF
11152
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11153
  (eval $ac_link) 2>&5
11154
  ac_status=$?
11155
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11156
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11157
    (./conftest; exit; ) >&5 2>/dev/null
11158
    lt_status=$?
11159
    case x$lt_status in
11160
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11161
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11162
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11163
    esac
11164
  else :
11165
    # compilation failed
11166
    lt_cv_dlopen_self=no
11167
  fi
11168
fi
11169
rm -fr conftest*
11170
 
11171
 
11172
fi
11173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11174
$as_echo "$lt_cv_dlopen_self" >&6; }
11175
 
11176
    if test "x$lt_cv_dlopen_self" = xyes; then
11177
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11178
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11179
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11180
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11181
  $as_echo_n "(cached) " >&6
11182
else
11183
          if test "$cross_compiling" = yes; then :
11184
  lt_cv_dlopen_self_static=cross
11185
else
11186
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11187
  lt_status=$lt_dlunknown
11188
  cat > conftest.$ac_ext <<_LT_EOF
11189
#line 11189 "configure"
11190
#include "confdefs.h"
11191
 
11192
#if HAVE_DLFCN_H
11193
#include 
11194
#endif
11195
 
11196
#include 
11197
 
11198
#ifdef RTLD_GLOBAL
11199
#  define LT_DLGLOBAL           RTLD_GLOBAL
11200
#else
11201
#  ifdef DL_GLOBAL
11202
#    define LT_DLGLOBAL         DL_GLOBAL
11203
#  else
11204
#    define LT_DLGLOBAL         0
11205
#  endif
11206
#endif
11207
 
11208
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11209
   find out it does not work in some platform. */
11210
#ifndef LT_DLLAZY_OR_NOW
11211
#  ifdef RTLD_LAZY
11212
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11213
#  else
11214
#    ifdef DL_LAZY
11215
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11216
#    else
11217
#      ifdef RTLD_NOW
11218
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11219
#      else
11220
#        ifdef DL_NOW
11221
#          define LT_DLLAZY_OR_NOW      DL_NOW
11222
#        else
11223
#          define LT_DLLAZY_OR_NOW      0
11224
#        endif
11225
#      endif
11226
#    endif
11227
#  endif
11228
#endif
11229
 
11230
/* When -fvisbility=hidden is used, assume the code has been annotated
11231
   correspondingly for the symbols needed.  */
11232
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11233
void fnord () __attribute__((visibility("default")));
11234
#endif
11235
 
11236
void fnord () { int i=42; }
11237
int main ()
11238
{
11239
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11240
  int status = $lt_dlunknown;
11241
 
11242
  if (self)
11243
    {
11244
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11245
      else
11246
        {
11247
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11248
          else puts (dlerror ());
11249
        }
11250
      /* dlclose (self); */
11251
    }
11252
  else
11253
    puts (dlerror ());
11254
 
11255
  return status;
11256
}
11257
_LT_EOF
11258
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11259
  (eval $ac_link) 2>&5
11260
  ac_status=$?
11261
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11262
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11263
    (./conftest; exit; ) >&5 2>/dev/null
11264
    lt_status=$?
11265
    case x$lt_status in
11266
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11267
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11268
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11269
    esac
11270
  else :
11271
    # compilation failed
11272
    lt_cv_dlopen_self_static=no
11273
  fi
11274
fi
11275
rm -fr conftest*
11276
 
11277
 
11278
fi
11279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11280
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11281
    fi
11282
 
11283
    CPPFLAGS="$save_CPPFLAGS"
11284
    LDFLAGS="$save_LDFLAGS"
11285
    LIBS="$save_LIBS"
11286
    ;;
11287
  esac
11288
 
11289
  case $lt_cv_dlopen_self in
11290
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11291
  *) enable_dlopen_self=unknown ;;
11292
  esac
11293
 
11294
  case $lt_cv_dlopen_self_static in
11295
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11296
  *) enable_dlopen_self_static=unknown ;;
11297
  esac
11298
fi
11299
 
11300
 
11301
 
11302
 
11303
 
11304
 
11305
 
11306
 
11307
 
11308
 
11309
 
11310
 
11311
 
11312
 
11313
 
11314
 
11315
 
11316
striplib=
11317
old_striplib=
11318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11319
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11320
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11321
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11322
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324
$as_echo "yes" >&6; }
11325
else
11326
# FIXME - insert some real tests, host_os isn't really good enough
11327
  case $host_os in
11328
  darwin*)
11329
    if test -n "$STRIP" ; then
11330
      striplib="$STRIP -x"
11331
      old_striplib="$STRIP -S"
11332
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11333
$as_echo "yes" >&6; }
11334
    else
11335
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336
$as_echo "no" >&6; }
11337
    fi
11338
    ;;
11339
  *)
11340
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341
$as_echo "no" >&6; }
11342
    ;;
11343
  esac
11344
fi
11345
 
11346
 
11347
 
11348
 
11349
 
11350
 
11351
 
11352
 
11353
 
11354
 
11355
 
11356
 
11357
  # Report which library types will actually be built
11358
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11359
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11360
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11361
$as_echo "$can_build_shared" >&6; }
11362
 
11363
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11364
$as_echo_n "checking whether to build shared libraries... " >&6; }
11365
  test "$can_build_shared" = "no" && enable_shared=no
11366
 
11367
  # On AIX, shared libraries and static libraries use the same namespace, and
11368
  # are all built from PIC.
11369
  case $host_os in
11370
  aix3*)
11371
    test "$enable_shared" = yes && enable_static=no
11372
    if test -n "$RANLIB"; then
11373
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11374
      postinstall_cmds='$RANLIB $lib'
11375
    fi
11376
    ;;
11377
 
11378
  aix[4-9]*)
11379
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11380
      test "$enable_shared" = yes && enable_static=no
11381
    fi
11382
    ;;
11383
  esac
11384
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11385
$as_echo "$enable_shared" >&6; }
11386
 
11387
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11388
$as_echo_n "checking whether to build static libraries... " >&6; }
11389
  # Make sure either enable_shared or enable_static is yes.
11390
  test "$enable_shared" = yes || enable_static=yes
11391
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11392
$as_echo "$enable_static" >&6; }
11393
 
11394
 
11395
 
11396
 
11397
fi
11398
ac_ext=c
11399
ac_cpp='$CPP $CPPFLAGS'
11400
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11401
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11402
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11403
 
11404
CC="$lt_save_CC"
11405
 
11406
 
11407
 
11408
 
11409
 
11410
 
11411
 
11412
 
11413
 
11414
 
11415
 
11416
 
11417
 
11418
        ac_config_commands="$ac_config_commands libtool"
11419
 
11420
 
11421
 
11422
 
11423
# Only expand once:
11424
 
11425
 
11426
 
11427
 
11428
 
11429
case $host in
11430
  *-cygwin* | *-mingw*)
11431
    # 'host' will be top-level target in the case of a target lib,
11432
    # we must compare to with_cross_host to decide if this is a native
11433
    # or cross-compiler and select where to install dlls appropriately.
11434
    if test -n "$with_cross_host" &&
11435
        test x"$with_cross_host" != x"no"; then
11436
      lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11437
    else
11438
      lt_host_flags='-no-undefined -bindir "$(bindir)"';
11439
    fi
11440
    ;;
11441
  *)
11442
    lt_host_flags=
11443
    ;;
11444
esac
11445
 
11446
 
11447
 
11448
 
11449
 
11450
 
11451
 
11452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11453
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11454
    # Check whether --enable-maintainer-mode was given.
11455
if test "${enable_maintainer_mode+set}" = set; then :
11456
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11457
else
11458
  USE_MAINTAINER_MODE=no
11459
fi
11460
 
11461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11462
$as_echo "$USE_MAINTAINER_MODE" >&6; }
11463
   if test $USE_MAINTAINER_MODE = yes; then
11464
  MAINTAINER_MODE_TRUE=
11465
  MAINTAINER_MODE_FALSE='#'
11466
else
11467
  MAINTAINER_MODE_TRUE='#'
11468
  MAINTAINER_MODE_FALSE=
11469
fi
11470
 
11471
  MAINT=$MAINTAINER_MODE_TRUE
11472
 
11473
 
11474
 
11475
# Create a spec file, so that compile/link tests don't fail
11476
test -f libgfortran.spec || touch libgfortran.spec
11477
FCFLAGS="$FCFLAGS -L."
11478
 
11479
# We need gfortran to compile parts of the library
11480
# We can't use AC_PROG_FC because it expects a fully working gfortran.
11481
#AC_PROG_FC(gfortran)
11482
case `echo $GFORTRAN` in
11483
  -* | no* )
11484
    FC=no ;;
11485
  *)
11486
    set dummy $GFORTRAN; ac_word=$2
11487
    if test -x "$ac_word"; then
11488
      FC="$GFORTRAN"
11489
    else
11490
      FC=no
11491
    fi ;;
11492
esac
11493
ac_ext=${ac_fc_srcext-f}
11494
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11495
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11496
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11497
if test -n "$ac_tool_prefix"; then
11498
  for ac_prog in gfortran
11499
  do
11500
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11501
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503
$as_echo_n "checking for $ac_word... " >&6; }
11504
if test "${ac_cv_prog_FC+set}" = set; then :
11505
  $as_echo_n "(cached) " >&6
11506
else
11507
  if test -n "$FC"; then
11508
  ac_cv_prog_FC="$FC" # Let the user override the test.
11509
else
11510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11511
for as_dir in $PATH
11512
do
11513
  IFS=$as_save_IFS
11514
  test -z "$as_dir" && as_dir=.
11515
    for ac_exec_ext in '' $ac_executable_extensions; do
11516
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11517
    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11518
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11519
    break 2
11520
  fi
11521
done
11522
  done
11523
IFS=$as_save_IFS
11524
 
11525
fi
11526
fi
11527
FC=$ac_cv_prog_FC
11528
if test -n "$FC"; then
11529
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11530
$as_echo "$FC" >&6; }
11531
else
11532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533
$as_echo "no" >&6; }
11534
fi
11535
 
11536
 
11537
    test -n "$FC" && break
11538
  done
11539
fi
11540
if test -z "$FC"; then
11541
  ac_ct_FC=$FC
11542
  for ac_prog in gfortran
11543
do
11544
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11545
set dummy $ac_prog; ac_word=$2
11546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547
$as_echo_n "checking for $ac_word... " >&6; }
11548
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11549
  $as_echo_n "(cached) " >&6
11550
else
11551
  if test -n "$ac_ct_FC"; then
11552
  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11553
else
11554
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555
for as_dir in $PATH
11556
do
11557
  IFS=$as_save_IFS
11558
  test -z "$as_dir" && as_dir=.
11559
    for ac_exec_ext in '' $ac_executable_extensions; do
11560
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11561
    ac_cv_prog_ac_ct_FC="$ac_prog"
11562
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11563
    break 2
11564
  fi
11565
done
11566
  done
11567
IFS=$as_save_IFS
11568
 
11569
fi
11570
fi
11571
ac_ct_FC=$ac_cv_prog_ac_ct_FC
11572
if test -n "$ac_ct_FC"; then
11573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11574
$as_echo "$ac_ct_FC" >&6; }
11575
else
11576
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577
$as_echo "no" >&6; }
11578
fi
11579
 
11580
 
11581
  test -n "$ac_ct_FC" && break
11582
done
11583
 
11584
  if test "x$ac_ct_FC" = x; then
11585
    FC=""
11586
  else
11587
    case $cross_compiling:$ac_tool_warned in
11588
yes:)
11589
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11590
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11591
ac_tool_warned=yes ;;
11592
esac
11593
    FC=$ac_ct_FC
11594
  fi
11595
fi
11596
 
11597
 
11598
# Provide some information about the compiler.
11599
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11600
set X $ac_compile
11601
ac_compiler=$2
11602
for ac_option in --version -v -V -qversion; do
11603
  { { ac_try="$ac_compiler $ac_option >&5"
11604
case "(($ac_try" in
11605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606
  *) ac_try_echo=$ac_try;;
11607
esac
11608
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11609
$as_echo "$ac_try_echo"; } >&5
11610
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11611
  ac_status=$?
11612
  if test -s conftest.err; then
11613
    sed '10a\
11614
... rest of stderr output deleted ...
11615
         10q' conftest.err >conftest.er1
11616
    cat conftest.er1 >&5
11617
    rm -f conftest.er1 conftest.err
11618
  fi
11619
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11620
  test $ac_status = 0; }
11621
done
11622
rm -f a.out
11623
 
11624
# If we don't use `.F' as extension, the preprocessor is not run on the
11625
# input file.  (Note that this only needs to work for GNU compilers.)
11626
ac_save_ext=$ac_ext
11627
ac_ext=F
11628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11629
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11630
if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11631
  $as_echo_n "(cached) " >&6
11632
else
11633
  cat > conftest.$ac_ext <<_ACEOF
11634
      program main
11635
#ifndef __GNUC__
11636
       choke me
11637
#endif
11638
 
11639
      end
11640
_ACEOF
11641
if ac_fn_fc_try_compile "$LINENO"; then :
11642
  ac_compiler_gnu=yes
11643
else
11644
  ac_compiler_gnu=no
11645
fi
11646
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11647
ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11648
 
11649
fi
11650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11651
$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11652
ac_ext=$ac_save_ext
11653
ac_test_FCFLAGS=${FCFLAGS+set}
11654
ac_save_FCFLAGS=$FCFLAGS
11655
FCFLAGS=
11656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11657
$as_echo_n "checking whether $FC accepts -g... " >&6; }
11658
if test "${ac_cv_prog_fc_g+set}" = set; then :
11659
  $as_echo_n "(cached) " >&6
11660
else
11661
  FCFLAGS=-g
11662
cat > conftest.$ac_ext <<_ACEOF
11663
      program main
11664
 
11665
      end
11666
_ACEOF
11667
if ac_fn_fc_try_compile "$LINENO"; then :
11668
  ac_cv_prog_fc_g=yes
11669
else
11670
  ac_cv_prog_fc_g=no
11671
fi
11672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673
 
11674
fi
11675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11676
$as_echo "$ac_cv_prog_fc_g" >&6; }
11677
if test "$ac_test_FCFLAGS" = set; then
11678
  FCFLAGS=$ac_save_FCFLAGS
11679
elif test $ac_cv_prog_fc_g = yes; then
11680
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11681
    FCFLAGS="-g -O2"
11682
  else
11683
    FCFLAGS="-g"
11684
  fi
11685
else
11686
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11687
    FCFLAGS="-O2"
11688
  else
11689
    FCFLAGS=
11690
  fi
11691
fi
11692
 
11693
ac_ext=c
11694
ac_cpp='$CPP $CPPFLAGS'
11695
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11696
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11697
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11698
 
11699
      ac_ext=${ac_fc_srcext-f}
11700
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11701
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11702
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11703
 
11704
 
11705
if test -z "$FC" || test "X$FC" = "Xno"; then
11706
  _lt_disable_FC=yes
11707
fi
11708
 
11709
archive_cmds_need_lc_FC=no
11710
allow_undefined_flag_FC=
11711
always_export_symbols_FC=no
11712
archive_expsym_cmds_FC=
11713
export_dynamic_flag_spec_FC=
11714
hardcode_direct_FC=no
11715
hardcode_direct_absolute_FC=no
11716
hardcode_libdir_flag_spec_FC=
11717
hardcode_libdir_flag_spec_ld_FC=
11718
hardcode_libdir_separator_FC=
11719
hardcode_minus_L_FC=no
11720
hardcode_automatic_FC=no
11721
inherit_rpath_FC=no
11722
module_cmds_FC=
11723
module_expsym_cmds_FC=
11724
link_all_deplibs_FC=unknown
11725
old_archive_cmds_FC=$old_archive_cmds
11726
reload_flag_FC=$reload_flag
11727
reload_cmds_FC=$reload_cmds
11728
no_undefined_flag_FC=
11729
whole_archive_flag_spec_FC=
11730
enable_shared_with_static_runtimes_FC=no
11731
 
11732
# Source file extension for fc test sources.
11733
ac_ext=${ac_fc_srcext-f}
11734
 
11735
# Object file extension for compiled fc test sources.
11736
objext=o
11737
objext_FC=$objext
11738
 
11739
# No sense in running all these tests if we already determined that
11740
# the FC compiler isn't working.  Some variables (like enable_shared)
11741
# are currently assumed to apply to all compilers on this platform,
11742
# and will be corrupted by setting them based on a non-working compiler.
11743
if test "$_lt_disable_FC" != yes; then
11744
  # Code to be used in simple compile tests
11745
  lt_simple_compile_test_code="\
11746
      subroutine t
11747
      return
11748
      end
11749
"
11750
 
11751
  # Code to be used in simple link tests
11752
  lt_simple_link_test_code="\
11753
      program t
11754
      end
11755
"
11756
 
11757
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11758
 
11759
 
11760
 
11761
 
11762
 
11763
 
11764
# If no C compiler was specified, use CC.
11765
LTCC=${LTCC-"$CC"}
11766
 
11767
# If no C compiler flags were specified, use CFLAGS.
11768
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11769
 
11770
# Allow CC to be a program name with arguments.
11771
compiler=$CC
11772
 
11773
 
11774
  # save warnings/boilerplate of simple test code
11775
  ac_outfile=conftest.$ac_objext
11776
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11777
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11778
_lt_compiler_boilerplate=`cat conftest.err`
11779
$RM conftest*
11780
 
11781
  ac_outfile=conftest.$ac_objext
11782
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11783
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11784
_lt_linker_boilerplate=`cat conftest.err`
11785
$RM -r conftest*
11786
 
11787
 
11788
  # Allow CC to be a program name with arguments.
11789
  lt_save_CC="$CC"
11790
  lt_save_GCC=$GCC
11791
  CC=${FC-"f95"}
11792
  compiler=$CC
11793
  GCC=$ac_cv_fc_compiler_gnu
11794
 
11795
  compiler_FC=$CC
11796
  for cc_temp in $compiler""; do
11797
  case $cc_temp in
11798
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11799
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11800
    \-*) ;;
11801
    *) break;;
11802
  esac
11803
done
11804
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11805
 
11806
 
11807
  if test -n "$compiler"; then
11808
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11809
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11810
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11811
$as_echo "$can_build_shared" >&6; }
11812
 
11813
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11814
$as_echo_n "checking whether to build shared libraries... " >&6; }
11815
    test "$can_build_shared" = "no" && enable_shared=no
11816
 
11817
    # On AIX, shared libraries and static libraries use the same namespace, and
11818
    # are all built from PIC.
11819
    case $host_os in
11820
      aix3*)
11821
        test "$enable_shared" = yes && enable_static=no
11822
        if test -n "$RANLIB"; then
11823
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
11824
          postinstall_cmds='$RANLIB $lib'
11825
        fi
11826
        ;;
11827
      aix[4-9]*)
11828
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11829
          test "$enable_shared" = yes && enable_static=no
11830
        fi
11831
        ;;
11832
    esac
11833
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11834
$as_echo "$enable_shared" >&6; }
11835
 
11836
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11837
$as_echo_n "checking whether to build static libraries... " >&6; }
11838
    # Make sure either enable_shared or enable_static is yes.
11839
    test "$enable_shared" = yes || enable_static=yes
11840
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11841
$as_echo "$enable_static" >&6; }
11842
 
11843
    GCC_FC="$ac_cv_fc_compiler_gnu"
11844
    LD_FC="$LD"
11845
 
11846
    ## CAVEAT EMPTOR:
11847
    ## There is no encapsulation within the following macros, do not change
11848
    ## the running order or otherwise move them around unless you know exactly
11849
    ## what you are doing...
11850
    # Dependencies to place before and after the object being linked:
11851
predep_objects_FC=
11852
postdep_objects_FC=
11853
predeps_FC=
11854
postdeps_FC=
11855
compiler_lib_search_path_FC=
11856
 
11857
cat > conftest.$ac_ext <<_LT_EOF
11858
      subroutine foo
11859
      implicit none
11860
      integer a
11861
      a=0
11862
      return
11863
      end
11864
_LT_EOF
11865
 
11866
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11867
  (eval $ac_compile) 2>&5
11868
  ac_status=$?
11869
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11870
  test $ac_status = 0; }; then
11871
  # Parse the compiler output and extract the necessary
11872
  # objects, libraries and library flags.
11873
 
11874
  # Sentinel used to keep track of whether or not we are before
11875
  # the conftest object file.
11876
  pre_test_object_deps_done=no
11877
 
11878
  for p in `eval "$output_verbose_link_cmd"`; do
11879
    case $p in
11880
 
11881
    -L* | -R* | -l*)
11882
       # Some compilers place space between "-{L,R}" and the path.
11883
       # Remove the space.
11884
       if test $p = "-L" ||
11885
          test $p = "-R"; then
11886
         prev=$p
11887
         continue
11888
       else
11889
         prev=
11890
       fi
11891
 
11892
       if test "$pre_test_object_deps_done" = no; then
11893
         case $p in
11894
         -L* | -R*)
11895
           # Internal compiler library paths should come after those
11896
           # provided the user.  The postdeps already come after the
11897
           # user supplied libs so there is no need to process them.
11898
           if test -z "$compiler_lib_search_path_FC"; then
11899
             compiler_lib_search_path_FC="${prev}${p}"
11900
           else
11901
             compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11902
           fi
11903
           ;;
11904
         # The "-l" case would never come before the object being
11905
         # linked, so don't bother handling this case.
11906
         esac
11907
       else
11908
         if test -z "$postdeps_FC"; then
11909
           postdeps_FC="${prev}${p}"
11910
         else
11911
           postdeps_FC="${postdeps_FC} ${prev}${p}"
11912
         fi
11913
       fi
11914
       ;;
11915
 
11916
    *.$objext)
11917
       # This assumes that the test object file only shows up
11918
       # once in the compiler output.
11919
       if test "$p" = "conftest.$objext"; then
11920
         pre_test_object_deps_done=yes
11921
         continue
11922
       fi
11923
 
11924
       if test "$pre_test_object_deps_done" = no; then
11925
         if test -z "$predep_objects_FC"; then
11926
           predep_objects_FC="$p"
11927
         else
11928
           predep_objects_FC="$predep_objects_FC $p"
11929
         fi
11930
       else
11931
         if test -z "$postdep_objects_FC"; then
11932
           postdep_objects_FC="$p"
11933
         else
11934
           postdep_objects_FC="$postdep_objects_FC $p"
11935
         fi
11936
       fi
11937
       ;;
11938
 
11939
    *) ;; # Ignore the rest.
11940
 
11941
    esac
11942
  done
11943
 
11944
  # Clean up.
11945
  rm -f a.out a.exe
11946
else
11947
  echo "libtool.m4: error: problem compiling FC test program"
11948
fi
11949
 
11950
$RM -f confest.$objext
11951
 
11952
# PORTME: override above test on systems where it is broken
11953
 
11954
 
11955
case " $postdeps_FC " in
11956
*" -lc "*) archive_cmds_need_lc_FC=no ;;
11957
esac
11958
 compiler_lib_search_dirs_FC=
11959
if test -n "${compiler_lib_search_path_FC}"; then
11960
 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11961
fi
11962
 
11963
 
11964
 
11965
 
11966
 
11967
 
11968
 
11969
 
11970
 
11971
 
11972
 
11973
 
11974
 
11975
 
11976
 
11977
 
11978
 
11979
 
11980
 
11981
 
11982
 
11983
 
11984
 
11985
 
11986
 
11987
 
11988
 
11989
 
11990
 
11991
 
11992
 
11993
    lt_prog_compiler_wl_FC=
11994
lt_prog_compiler_pic_FC=
11995
lt_prog_compiler_static_FC=
11996
 
11997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11998
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11999
 
12000
  if test "$GCC" = yes; then
12001
    lt_prog_compiler_wl_FC='-Wl,'
12002
    lt_prog_compiler_static_FC='-static'
12003
 
12004
    case $host_os in
12005
      aix*)
12006
      # All AIX code is PIC.
12007
      if test "$host_cpu" = ia64; then
12008
        # AIX 5 now supports IA64 processor
12009
        lt_prog_compiler_static_FC='-Bstatic'
12010
      fi
12011
      ;;
12012
 
12013
    amigaos*)
12014
      case $host_cpu in
12015
      powerpc)
12016
            # see comment about AmigaOS4 .so support
12017
            lt_prog_compiler_pic_FC='-fPIC'
12018
        ;;
12019
      m68k)
12020
            # FIXME: we need at least 68020 code to build shared libraries, but
12021
            # adding the `-m68020' flag to GCC prevents building anything better,
12022
            # like `-m68040'.
12023
            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12024
        ;;
12025
      esac
12026
      ;;
12027
 
12028
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12029
      # PIC is the default for these OSes.
12030
      ;;
12031
 
12032
    mingw* | cygwin* | pw32* | os2* | cegcc*)
12033
      # This hack is so that the source file can tell whether it is being
12034
      # built for inclusion in a dll (and should export symbols for example).
12035
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12036
      # (--disable-auto-import) libraries
12037
      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12038
      ;;
12039
 
12040
    darwin* | rhapsody*)
12041
      # PIC is the default on this platform
12042
      # Common symbols not allowed in MH_DYLIB files
12043
      lt_prog_compiler_pic_FC='-fno-common'
12044
      ;;
12045
 
12046
    haiku*)
12047
      # PIC is the default for Haiku.
12048
      # The "-static" flag exists, but is broken.
12049
      lt_prog_compiler_static_FC=
12050
      ;;
12051
 
12052
    hpux*)
12053
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12054
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12055
      # sets the default TLS model and affects inlining.
12056
      case $host_cpu in
12057
      hppa*64*)
12058
        # +Z the default
12059
        ;;
12060
      *)
12061
        lt_prog_compiler_pic_FC='-fPIC'
12062
        ;;
12063
      esac
12064
      ;;
12065
 
12066
    interix[3-9]*)
12067
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12068
      # Instead, we relocate shared libraries at runtime.
12069
      ;;
12070
 
12071
    msdosdjgpp*)
12072
      # Just because we use GCC doesn't mean we suddenly get shared libraries
12073
      # on systems that don't support them.
12074
      lt_prog_compiler_can_build_shared_FC=no
12075
      enable_shared=no
12076
      ;;
12077
 
12078
    *nto* | *qnx*)
12079
      # QNX uses GNU C++, but need to define -shared option too, otherwise
12080
      # it will coredump.
12081
      lt_prog_compiler_pic_FC='-fPIC -shared'
12082
      ;;
12083
 
12084
    sysv4*MP*)
12085
      if test -d /usr/nec; then
12086
        lt_prog_compiler_pic_FC=-Kconform_pic
12087
      fi
12088
      ;;
12089
 
12090
    *)
12091
      lt_prog_compiler_pic_FC='-fPIC'
12092
      ;;
12093
    esac
12094
 
12095
    case $cc_basename in
12096
    nvcc*) # Cuda Compiler Driver 2.2
12097
      lt_prog_compiler_wl_FC='-Xlinker '
12098
      lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12099
      ;;
12100
    esac
12101
  else
12102
    # PORTME Check for flag to pass linker flags through the system compiler.
12103
    case $host_os in
12104
    aix*)
12105
      lt_prog_compiler_wl_FC='-Wl,'
12106
      if test "$host_cpu" = ia64; then
12107
        # AIX 5 now supports IA64 processor
12108
        lt_prog_compiler_static_FC='-Bstatic'
12109
      else
12110
        lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12111
      fi
12112
      ;;
12113
 
12114
    mingw* | cygwin* | pw32* | os2* | cegcc*)
12115
      # This hack is so that the source file can tell whether it is being
12116
      # built for inclusion in a dll (and should export symbols for example).
12117
      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12118
      ;;
12119
 
12120
    hpux9* | hpux10* | hpux11*)
12121
      lt_prog_compiler_wl_FC='-Wl,'
12122
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12123
      # not for PA HP-UX.
12124
      case $host_cpu in
12125
      hppa*64*|ia64*)
12126
        # +Z the default
12127
        ;;
12128
      *)
12129
        lt_prog_compiler_pic_FC='+Z'
12130
        ;;
12131
      esac
12132
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12133
      lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12134
      ;;
12135
 
12136
    irix5* | irix6* | nonstopux*)
12137
      lt_prog_compiler_wl_FC='-Wl,'
12138
      # PIC (with -KPIC) is the default.
12139
      lt_prog_compiler_static_FC='-non_shared'
12140
      ;;
12141
 
12142
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
12143
      case $cc_basename in
12144
      # old Intel for x86_64 which still supported -KPIC.
12145
      ecc*)
12146
        lt_prog_compiler_wl_FC='-Wl,'
12147
        lt_prog_compiler_pic_FC='-KPIC'
12148
        lt_prog_compiler_static_FC='-static'
12149
        ;;
12150
      # icc used to be incompatible with GCC.
12151
      # ICC 10 doesn't accept -KPIC any more.
12152
      icc* | ifort*)
12153
        lt_prog_compiler_wl_FC='-Wl,'
12154
        lt_prog_compiler_pic_FC='-fPIC'
12155
        lt_prog_compiler_static_FC='-static'
12156
        ;;
12157
      # Lahey Fortran 8.1.
12158
      lf95*)
12159
        lt_prog_compiler_wl_FC='-Wl,'
12160
        lt_prog_compiler_pic_FC='--shared'
12161
        lt_prog_compiler_static_FC='--static'
12162
        ;;
12163
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12164
        # Portland Group compilers (*not* the Pentium gcc compiler,
12165
        # which looks to be a dead project)
12166
        lt_prog_compiler_wl_FC='-Wl,'
12167
        lt_prog_compiler_pic_FC='-fpic'
12168
        lt_prog_compiler_static_FC='-Bstatic'
12169
        ;;
12170
      ccc*)
12171
        lt_prog_compiler_wl_FC='-Wl,'
12172
        # All Alpha code is PIC.
12173
        lt_prog_compiler_static_FC='-non_shared'
12174
        ;;
12175
      xl* | bgxl* | bgf* | mpixl*)
12176
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12177
        lt_prog_compiler_wl_FC='-Wl,'
12178
        lt_prog_compiler_pic_FC='-qpic'
12179
        lt_prog_compiler_static_FC='-qstaticlink'
12180
        ;;
12181
      *)
12182
        case `$CC -V 2>&1 | sed 5q` in
12183
        *Sun\ F* | *Sun*Fortran*)
12184
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
12185
          lt_prog_compiler_pic_FC='-KPIC'
12186
          lt_prog_compiler_static_FC='-Bstatic'
12187
          lt_prog_compiler_wl_FC=''
12188
          ;;
12189
        *Sun\ C*)
12190
          # Sun C 5.9
12191
          lt_prog_compiler_pic_FC='-KPIC'
12192
          lt_prog_compiler_static_FC='-Bstatic'
12193
          lt_prog_compiler_wl_FC='-Wl,'
12194
          ;;
12195
        esac
12196
        ;;
12197
      esac
12198
      ;;
12199
 
12200
    newsos6)
12201
      lt_prog_compiler_pic_FC='-KPIC'
12202
      lt_prog_compiler_static_FC='-Bstatic'
12203
      ;;
12204
 
12205
    *nto* | *qnx*)
12206
      # QNX uses GNU C++, but need to define -shared option too, otherwise
12207
      # it will coredump.
12208
      lt_prog_compiler_pic_FC='-fPIC -shared'
12209
      ;;
12210
 
12211
    osf3* | osf4* | osf5*)
12212
      lt_prog_compiler_wl_FC='-Wl,'
12213
      # All OSF/1 code is PIC.
12214
      lt_prog_compiler_static_FC='-non_shared'
12215
      ;;
12216
 
12217
    rdos*)
12218
      lt_prog_compiler_static_FC='-non_shared'
12219
      ;;
12220
 
12221
    solaris*)
12222
      lt_prog_compiler_pic_FC='-KPIC'
12223
      lt_prog_compiler_static_FC='-Bstatic'
12224
      case $cc_basename in
12225
      f77* | f90* | f95*)
12226
        lt_prog_compiler_wl_FC='-Qoption ld ';;
12227
      *)
12228
        lt_prog_compiler_wl_FC='-Wl,';;
12229
      esac
12230
      ;;
12231
 
12232
    sunos4*)
12233
      lt_prog_compiler_wl_FC='-Qoption ld '
12234
      lt_prog_compiler_pic_FC='-PIC'
12235
      lt_prog_compiler_static_FC='-Bstatic'
12236
      ;;
12237
 
12238
    sysv4 | sysv4.2uw2* | sysv4.3*)
12239
      lt_prog_compiler_wl_FC='-Wl,'
12240
      lt_prog_compiler_pic_FC='-KPIC'
12241
      lt_prog_compiler_static_FC='-Bstatic'
12242
      ;;
12243
 
12244
    sysv4*MP*)
12245
      if test -d /usr/nec ;then
12246
        lt_prog_compiler_pic_FC='-Kconform_pic'
12247
        lt_prog_compiler_static_FC='-Bstatic'
12248
      fi
12249
      ;;
12250
 
12251
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12252
      lt_prog_compiler_wl_FC='-Wl,'
12253
      lt_prog_compiler_pic_FC='-KPIC'
12254
      lt_prog_compiler_static_FC='-Bstatic'
12255
      ;;
12256
 
12257
    unicos*)
12258
      lt_prog_compiler_wl_FC='-Wl,'
12259
      lt_prog_compiler_can_build_shared_FC=no
12260
      ;;
12261
 
12262
    uts4*)
12263
      lt_prog_compiler_pic_FC='-pic'
12264
      lt_prog_compiler_static_FC='-Bstatic'
12265
      ;;
12266
 
12267
    *)
12268
      lt_prog_compiler_can_build_shared_FC=no
12269
      ;;
12270
    esac
12271
  fi
12272
 
12273
case $host_os in
12274
  # For platforms which do not support PIC, -DPIC is meaningless:
12275
  *djgpp*)
12276
    lt_prog_compiler_pic_FC=
12277
    ;;
12278
  *)
12279
    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12280
    ;;
12281
esac
12282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12283
$as_echo "$lt_prog_compiler_pic_FC" >&6; }
12284
 
12285
 
12286
 
12287
#
12288
# Check to make sure the PIC flag actually works.
12289
#
12290
if test -n "$lt_prog_compiler_pic_FC"; then
12291
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12292
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12293
if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12294
  $as_echo_n "(cached) " >&6
12295
else
12296
  lt_cv_prog_compiler_pic_works_FC=no
12297
   ac_outfile=conftest.$ac_objext
12298
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12299
   lt_compiler_flag="$lt_prog_compiler_pic_FC"
12300
   # Insert the option either (1) after the last *FLAGS variable, or
12301
   # (2) before a word containing "conftest.", or (3) at the end.
12302
   # Note that $ac_compile itself does not contain backslashes and begins
12303
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12304
   # The option is referenced via a variable to avoid confusing sed.
12305
   lt_compile=`echo "$ac_compile" | $SED \
12306
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12307
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12308
   -e 's:$: $lt_compiler_flag:'`
12309
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12310
   (eval "$lt_compile" 2>conftest.err)
12311
   ac_status=$?
12312
   cat conftest.err >&5
12313
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314
   if (exit $ac_status) && test -s "$ac_outfile"; then
12315
     # The compiler can only warn and ignore the option if not recognized
12316
     # So say no if there are warnings other than the usual output.
12317
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12318
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12319
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12320
       lt_cv_prog_compiler_pic_works_FC=yes
12321
     fi
12322
   fi
12323
   $RM conftest*
12324
 
12325
fi
12326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12327
$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12328
 
12329
if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12330
    case $lt_prog_compiler_pic_FC in
12331
     "" | " "*) ;;
12332
     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12333
     esac
12334
else
12335
    lt_prog_compiler_pic_FC=
12336
     lt_prog_compiler_can_build_shared_FC=no
12337
fi
12338
 
12339
fi
12340
 
12341
 
12342
 
12343
#
12344
# Check to make sure the static flag actually works.
12345
#
12346
wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12348
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12349
if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12350
  $as_echo_n "(cached) " >&6
12351
else
12352
  lt_cv_prog_compiler_static_works_FC=no
12353
   save_LDFLAGS="$LDFLAGS"
12354
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12355
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12356
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12357
     # The linker can only warn and ignore the option if not recognized
12358
     # So say no if there are warnings
12359
     if test -s conftest.err; then
12360
       # Append any errors to the config.log.
12361
       cat conftest.err 1>&5
12362
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12363
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12364
       if diff conftest.exp conftest.er2 >/dev/null; then
12365
         lt_cv_prog_compiler_static_works_FC=yes
12366
       fi
12367
     else
12368
       lt_cv_prog_compiler_static_works_FC=yes
12369
     fi
12370
   fi
12371
   $RM -r conftest*
12372
   LDFLAGS="$save_LDFLAGS"
12373
 
12374
fi
12375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12376
$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12377
 
12378
if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12379
    :
12380
else
12381
    lt_prog_compiler_static_FC=
12382
fi
12383
 
12384
 
12385
 
12386
 
12387
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12388
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12389
if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12390
  $as_echo_n "(cached) " >&6
12391
else
12392
  lt_cv_prog_compiler_c_o_FC=no
12393
   $RM -r conftest 2>/dev/null
12394
   mkdir conftest
12395
   cd conftest
12396
   mkdir out
12397
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12398
 
12399
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12400
   # Insert the option either (1) after the last *FLAGS variable, or
12401
   # (2) before a word containing "conftest.", or (3) at the end.
12402
   # Note that $ac_compile itself does not contain backslashes and begins
12403
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12404
   lt_compile=`echo "$ac_compile" | $SED \
12405
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12406
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12407
   -e 's:$: $lt_compiler_flag:'`
12408
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12409
   (eval "$lt_compile" 2>out/conftest.err)
12410
   ac_status=$?
12411
   cat out/conftest.err >&5
12412
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12414
   then
12415
     # The compiler can only warn and ignore the option if not recognized
12416
     # So say no if there are warnings
12417
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12418
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12419
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12420
       lt_cv_prog_compiler_c_o_FC=yes
12421
     fi
12422
   fi
12423
   chmod u+w . 2>&5
12424
   $RM conftest*
12425
   # SGI C++ compiler will create directory out/ii_files/ for
12426
   # template instantiation
12427
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12428
   $RM out/* && rmdir out
12429
   cd ..
12430
   $RM -r conftest
12431
   $RM conftest*
12432
 
12433
fi
12434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12435
$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12436
 
12437
 
12438
 
12439
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12440
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12441
if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12442
  $as_echo_n "(cached) " >&6
12443
else
12444
  lt_cv_prog_compiler_c_o_FC=no
12445
   $RM -r conftest 2>/dev/null
12446
   mkdir conftest
12447
   cd conftest
12448
   mkdir out
12449
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12450
 
12451
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12452
   # Insert the option either (1) after the last *FLAGS variable, or
12453
   # (2) before a word containing "conftest.", or (3) at the end.
12454
   # Note that $ac_compile itself does not contain backslashes and begins
12455
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12456
   lt_compile=`echo "$ac_compile" | $SED \
12457
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12458
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12459
   -e 's:$: $lt_compiler_flag:'`
12460
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12461
   (eval "$lt_compile" 2>out/conftest.err)
12462
   ac_status=$?
12463
   cat out/conftest.err >&5
12464
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12466
   then
12467
     # The compiler can only warn and ignore the option if not recognized
12468
     # So say no if there are warnings
12469
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12470
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12471
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12472
       lt_cv_prog_compiler_c_o_FC=yes
12473
     fi
12474
   fi
12475
   chmod u+w . 2>&5
12476
   $RM conftest*
12477
   # SGI C++ compiler will create directory out/ii_files/ for
12478
   # template instantiation
12479
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12480
   $RM out/* && rmdir out
12481
   cd ..
12482
   $RM -r conftest
12483
   $RM conftest*
12484
 
12485
fi
12486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12487
$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12488
 
12489
 
12490
 
12491
 
12492
hard_links="nottested"
12493
if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12494
  # do not overwrite the value of need_locks provided by the user
12495
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12496
$as_echo_n "checking if we can lock with hard links... " >&6; }
12497
  hard_links=yes
12498
  $RM conftest*
12499
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12500
  touch conftest.a
12501
  ln conftest.a conftest.b 2>&5 || hard_links=no
12502
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12503
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12504
$as_echo "$hard_links" >&6; }
12505
  if test "$hard_links" = no; then
12506
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12507
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12508
    need_locks=warn
12509
  fi
12510
else
12511
  need_locks=no
12512
fi
12513
 
12514
 
12515
 
12516
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12517
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12518
 
12519
  runpath_var=
12520
  allow_undefined_flag_FC=
12521
  always_export_symbols_FC=no
12522
  archive_cmds_FC=
12523
  archive_expsym_cmds_FC=
12524
  compiler_needs_object_FC=no
12525
  enable_shared_with_static_runtimes_FC=no
12526
  export_dynamic_flag_spec_FC=
12527
  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12528
  hardcode_automatic_FC=no
12529
  hardcode_direct_FC=no
12530
  hardcode_direct_absolute_FC=no
12531
  hardcode_libdir_flag_spec_FC=
12532
  hardcode_libdir_flag_spec_ld_FC=
12533
  hardcode_libdir_separator_FC=
12534
  hardcode_minus_L_FC=no
12535
  hardcode_shlibpath_var_FC=unsupported
12536
  inherit_rpath_FC=no
12537
  link_all_deplibs_FC=unknown
12538
  module_cmds_FC=
12539
  module_expsym_cmds_FC=
12540
  old_archive_from_new_cmds_FC=
12541
  old_archive_from_expsyms_cmds_FC=
12542
  thread_safe_flag_spec_FC=
12543
  whole_archive_flag_spec_FC=
12544
  # include_expsyms should be a list of space-separated symbols to be *always*
12545
  # included in the symbol list
12546
  include_expsyms_FC=
12547
  # exclude_expsyms can be an extended regexp of symbols to exclude
12548
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12549
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12550
  # as well as any symbol that contains `d'.
12551
  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12552
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12553
  # platforms (ab)use it in PIC code, but their linkers get confused if
12554
  # the symbol is explicitly referenced.  Since portable code cannot
12555
  # rely on this symbol name, it's probably fine to never include it in
12556
  # preloaded symbol tables.
12557
  # Exclude shared library initialization/finalization symbols.
12558
  extract_expsyms_cmds=
12559
 
12560
  case $host_os in
12561
  cygwin* | mingw* | pw32* | cegcc*)
12562
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12563
    # When not using gcc, we currently assume that we are using
12564
    # Microsoft Visual C++.
12565
    if test "$GCC" != yes; then
12566
      with_gnu_ld=no
12567
    fi
12568
    ;;
12569
  interix*)
12570
    # we just hope/assume this is gcc and not c89 (= MSVC++)
12571
    with_gnu_ld=yes
12572
    ;;
12573
  openbsd*)
12574
    with_gnu_ld=no
12575
    ;;
12576
  esac
12577
 
12578
  ld_shlibs_FC=yes
12579
 
12580
  # On some targets, GNU ld is compatible enough with the native linker
12581
  # that we're better off using the native interface for both.
12582
  lt_use_gnu_ld_interface=no
12583
  if test "$with_gnu_ld" = yes; then
12584
    case $host_os in
12585
      aix*)
12586
        # The AIX port of GNU ld has always aspired to compatibility
12587
        # with the native linker.  However, as the warning in the GNU ld
12588
        # block says, versions before 2.19.5* couldn't really create working
12589
        # shared libraries, regardless of the interface used.
12590
        case `$LD -v 2>&1` in
12591
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12592
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12593
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12594
          *)
12595
            lt_use_gnu_ld_interface=yes
12596
            ;;
12597
        esac
12598
        ;;
12599
      *)
12600
        lt_use_gnu_ld_interface=yes
12601
        ;;
12602
    esac
12603
  fi
12604
 
12605
  if test "$lt_use_gnu_ld_interface" = yes; then
12606
    # If archive_cmds runs LD, not CC, wlarc should be empty
12607
    wlarc='${wl}'
12608
 
12609
    # Set some defaults for GNU ld with shared library support. These
12610
    # are reset later if shared libraries are not supported. Putting them
12611
    # here allows them to be overridden if necessary.
12612
    runpath_var=LD_RUN_PATH
12613
    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12614
    export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12615
    # ancient GNU ld didn't support --whole-archive et. al.
12616
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12617
      whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12618
    else
12619
      whole_archive_flag_spec_FC=
12620
    fi
12621
    supports_anon_versioning=no
12622
    case `$LD -v 2>&1` in
12623
      *GNU\ gold*) supports_anon_versioning=yes ;;
12624
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12625
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12626
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12627
      *\ 2.11.*) ;; # other 2.11 versions
12628
      *) supports_anon_versioning=yes ;;
12629
    esac
12630
 
12631
    # See if GNU ld supports shared libraries.
12632
    case $host_os in
12633
    aix[3-9]*)
12634
      # On AIX/PPC, the GNU linker is very broken
12635
      if test "$host_cpu" != ia64; then
12636
        ld_shlibs_FC=no
12637
        cat <<_LT_EOF 1>&2
12638
 
12639
*** Warning: the GNU linker, at least up to release 2.19, is reported
12640
*** to be unable to reliably create shared libraries on AIX.
12641
*** Therefore, libtool is disabling shared libraries support.  If you
12642
*** really care for shared libraries, you may want to install binutils
12643
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12644
*** You will then need to restart the configuration process.
12645
 
12646
_LT_EOF
12647
      fi
12648
      ;;
12649
 
12650
    amigaos*)
12651
      case $host_cpu in
12652
      powerpc)
12653
            # see comment about AmigaOS4 .so support
12654
            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12655
            archive_expsym_cmds_FC=''
12656
        ;;
12657
      m68k)
12658
            archive_cmds_FC='$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)'
12659
            hardcode_libdir_flag_spec_FC='-L$libdir'
12660
            hardcode_minus_L_FC=yes
12661
        ;;
12662
      esac
12663
      ;;
12664
 
12665
    beos*)
12666
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12667
        allow_undefined_flag_FC=unsupported
12668
        # Joseph Beckenbach  says some releases of gcc
12669
        # support --undefined.  This deserves some investigation.  FIXME
12670
        archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12671
      else
12672
        ld_shlibs_FC=no
12673
      fi
12674
      ;;
12675
 
12676
    cygwin* | mingw* | pw32* | cegcc*)
12677
      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12678
      # as there is no search path for DLLs.
12679
      hardcode_libdir_flag_spec_FC='-L$libdir'
12680
      export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12681
      allow_undefined_flag_FC=unsupported
12682
      always_export_symbols_FC=no
12683
      enable_shared_with_static_runtimes_FC=yes
12684
      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12685
 
12686
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12687
        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12688
        # If the export-symbols file already is a .def file (1st line
12689
        # is EXPORTS), use it as is; otherwise, prepend...
12690
        archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12691
          cp $export_symbols $output_objdir/$soname.def;
12692
        else
12693
          echo EXPORTS > $output_objdir/$soname.def;
12694
          cat $export_symbols >> $output_objdir/$soname.def;
12695
        fi~
12696
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12697
      else
12698
        ld_shlibs_FC=no
12699
      fi
12700
      ;;
12701
 
12702
    haiku*)
12703
      archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12704
      link_all_deplibs_FC=yes
12705
      ;;
12706
 
12707
    interix[3-9]*)
12708
      hardcode_direct_FC=no
12709
      hardcode_shlibpath_var_FC=no
12710
      hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12711
      export_dynamic_flag_spec_FC='${wl}-E'
12712
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12713
      # Instead, shared libraries are loaded at an image base (0x10000000 by
12714
      # default) and relocated if they conflict, which is a slow very memory
12715
      # consuming and fragmenting process.  To avoid this, we pick a random,
12716
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12717
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12718
      archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12719
      archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12720
      ;;
12721
 
12722
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12723
      tmp_diet=no
12724
      if test "$host_os" = linux-dietlibc; then
12725
        case $cc_basename in
12726
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12727
        esac
12728
      fi
12729
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12730
         && test "$tmp_diet" = no
12731
      then
12732
        tmp_addflag=
12733
        tmp_sharedflag='-shared'
12734
        case $cc_basename,$host_cpu in
12735
        pgcc*)                          # Portland Group C compiler
12736
          whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12737
          tmp_addflag=' $pic_flag'
12738
          ;;
12739
        pgf77* | pgf90* | pgf95* | pgfortran*)
12740
                                        # Portland Group f77 and f90 compilers
12741
          whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12742
          tmp_addflag=' $pic_flag -Mnomain' ;;
12743
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12744
          tmp_addflag=' -i_dynamic' ;;
12745
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12746
          tmp_addflag=' -i_dynamic -nofor_main' ;;
12747
        ifc* | ifort*)                  # Intel Fortran compiler
12748
          tmp_addflag=' -nofor_main' ;;
12749
        lf95*)                          # Lahey Fortran 8.1
12750
          whole_archive_flag_spec_FC=
12751
          tmp_sharedflag='--shared' ;;
12752
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12753
          tmp_sharedflag='-qmkshrobj'
12754
          tmp_addflag= ;;
12755
        nvcc*)  # Cuda Compiler Driver 2.2
12756
          whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12757
          compiler_needs_object_FC=yes
12758
          ;;
12759
        esac
12760
        case `$CC -V 2>&1 | sed 5q` in
12761
        *Sun\ C*)                       # Sun C 5.9
12762
          whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12763
          compiler_needs_object_FC=yes
12764
          tmp_sharedflag='-G' ;;
12765
        *Sun\ F*)                       # Sun Fortran 8.3
12766
          tmp_sharedflag='-G' ;;
12767
        esac
12768
        archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12769
 
12770
        if test "x$supports_anon_versioning" = xyes; then
12771
          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12772
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12773
            echo "local: *; };" >> $output_objdir/$libname.ver~
12774
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12775
        fi
12776
 
12777
        case $cc_basename in
12778
        xlf* | bgf* | bgxlf* | mpixlf*)
12779
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12780
          whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12781
          hardcode_libdir_flag_spec_FC=
12782
          hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12783
          archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12784
          if test "x$supports_anon_versioning" = xyes; then
12785
            archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12786
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12787
              echo "local: *; };" >> $output_objdir/$libname.ver~
12788
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12789
          fi
12790
          ;;
12791
        esac
12792
      else
12793
        ld_shlibs_FC=no
12794
      fi
12795
      ;;
12796
 
12797
    netbsd*)
12798
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12799
        archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12800
        wlarc=
12801
      else
12802
        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12803
        archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12804
      fi
12805
      ;;
12806
 
12807
    solaris*)
12808
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12809
        ld_shlibs_FC=no
12810
        cat <<_LT_EOF 1>&2
12811
 
12812
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12813
*** create shared libraries on Solaris systems.  Therefore, libtool
12814
*** is disabling shared libraries support.  We urge you to upgrade GNU
12815
*** binutils to release 2.9.1 or newer.  Another option is to modify
12816
*** your PATH or compiler configuration so that the native linker is
12817
*** used, and then restart.
12818
 
12819
_LT_EOF
12820
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12821
        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12822
        archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12823
      else
12824
        ld_shlibs_FC=no
12825
      fi
12826
      ;;
12827
 
12828
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12829
      case `$LD -v 2>&1` in
12830
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12831
        ld_shlibs_FC=no
12832
        cat <<_LT_EOF 1>&2
12833
 
12834
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12835
*** reliably create shared libraries on SCO systems.  Therefore, libtool
12836
*** is disabling shared libraries support.  We urge you to upgrade GNU
12837
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12838
*** your PATH or compiler configuration so that the native linker is
12839
*** used, and then restart.
12840
 
12841
_LT_EOF
12842
        ;;
12843
        *)
12844
          # For security reasons, it is highly recommended that you always
12845
          # use absolute paths for naming shared libraries, and exclude the
12846
          # DT_RUNPATH tag from executables and libraries.  But doing so
12847
          # requires that you compile everything twice, which is a pain.
12848
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12849
            hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12850
            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12851
            archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12852
          else
12853
            ld_shlibs_FC=no
12854
          fi
12855
        ;;
12856
      esac
12857
      ;;
12858
 
12859
    sunos4*)
12860
      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12861
      wlarc=
12862
      hardcode_direct_FC=yes
12863
      hardcode_shlibpath_var_FC=no
12864
      ;;
12865
 
12866
    *)
12867
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12868
        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12869
        archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12870
      else
12871
        ld_shlibs_FC=no
12872
      fi
12873
      ;;
12874
    esac
12875
 
12876
    if test "$ld_shlibs_FC" = no; then
12877
      runpath_var=
12878
      hardcode_libdir_flag_spec_FC=
12879
      export_dynamic_flag_spec_FC=
12880
      whole_archive_flag_spec_FC=
12881
    fi
12882
  else
12883
    # PORTME fill in a description of your system's linker (not GNU ld)
12884
    case $host_os in
12885
    aix3*)
12886
      allow_undefined_flag_FC=unsupported
12887
      always_export_symbols_FC=yes
12888
      archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12889
      # Note: this linker hardcodes the directories in LIBPATH if there
12890
      # are no directories specified by -L.
12891
      hardcode_minus_L_FC=yes
12892
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12893
        # Neither direct hardcoding nor static linking is supported with a
12894
        # broken collect2.
12895
        hardcode_direct_FC=unsupported
12896
      fi
12897
      ;;
12898
 
12899
    aix[4-9]*)
12900
      if test "$host_cpu" = ia64; then
12901
        # On IA64, the linker does run time linking by default, so we don't
12902
        # have to do anything special.
12903
        aix_use_runtimelinking=no
12904
        exp_sym_flag='-Bexport'
12905
        no_entry_flag=""
12906
      else
12907
        # If we're using GNU nm, then we don't want the "-C" option.
12908
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
12909
        # Also, AIX nm treats weak defined symbols like other global
12910
        # defined symbols, whereas GNU nm marks them as "W".
12911
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12912
          export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12913
        else
12914
          export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12915
        fi
12916
        aix_use_runtimelinking=no
12917
 
12918
        # Test if we are trying to use run time linking or normal
12919
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12920
        # need to do runtime linking.
12921
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12922
          for ld_flag in $LDFLAGS; do
12923
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12924
            aix_use_runtimelinking=yes
12925
            break
12926
          fi
12927
          done
12928
          ;;
12929
        esac
12930
 
12931
        exp_sym_flag='-bexport'
12932
        no_entry_flag='-bnoentry'
12933
      fi
12934
 
12935
      # When large executables or shared objects are built, AIX ld can
12936
      # have problems creating the table of contents.  If linking a library
12937
      # or program results in "error TOC overflow" add -mminimal-toc to
12938
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12939
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12940
 
12941
      archive_cmds_FC=''
12942
      hardcode_direct_FC=yes
12943
      hardcode_direct_absolute_FC=yes
12944
      hardcode_libdir_separator_FC=':'
12945
      link_all_deplibs_FC=yes
12946
      file_list_spec_FC='${wl}-f,'
12947
 
12948
      if test "$GCC" = yes; then
12949
        case $host_os in aix4.[012]|aix4.[012].*)
12950
        # We only want to do this on AIX 4.2 and lower, the check
12951
        # below for broken collect2 doesn't work under 4.3+
12952
          collect2name=`${CC} -print-prog-name=collect2`
12953
          if test -f "$collect2name" &&
12954
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12955
          then
12956
          # We have reworked collect2
12957
          :
12958
          else
12959
          # We have old collect2
12960
          hardcode_direct_FC=unsupported
12961
          # It fails to find uninstalled libraries when the uninstalled
12962
          # path is not listed in the libpath.  Setting hardcode_minus_L
12963
          # to unsupported forces relinking
12964
          hardcode_minus_L_FC=yes
12965
          hardcode_libdir_flag_spec_FC='-L$libdir'
12966
          hardcode_libdir_separator_FC=
12967
          fi
12968
          ;;
12969
        esac
12970
        shared_flag='-shared'
12971
        if test "$aix_use_runtimelinking" = yes; then
12972
          shared_flag="$shared_flag "'${wl}-G'
12973
        fi
12974
      else
12975
        # not using gcc
12976
        if test "$host_cpu" = ia64; then
12977
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12978
        # chokes on -Wl,-G. The following line is correct:
12979
          shared_flag='-G'
12980
        else
12981
          if test "$aix_use_runtimelinking" = yes; then
12982
            shared_flag='${wl}-G'
12983
          else
12984
            shared_flag='${wl}-bM:SRE'
12985
          fi
12986
        fi
12987
      fi
12988
 
12989
      export_dynamic_flag_spec_FC='${wl}-bexpall'
12990
      # It seems that -bexpall does not export symbols beginning with
12991
      # underscore (_), so it is better to generate a list of symbols to export.
12992
      always_export_symbols_FC=yes
12993
      if test "$aix_use_runtimelinking" = yes; then
12994
        # Warning - without using the other runtime loading flags (-brtl),
12995
        # -berok will link without error, but may produce a broken library.
12996
        allow_undefined_flag_FC='-berok'
12997
        # Determine the default libpath from the value encoded in an
12998
        # empty executable.
12999
        cat > conftest.$ac_ext <<_ACEOF
13000
      program main
13001
 
13002
      end
13003
_ACEOF
13004
if ac_fn_fc_try_link "$LINENO"; then :
13005
 
13006
lt_aix_libpath_sed='
13007
    /Import File Strings/,/^$/ {
13008
        /^0/ {
13009
            s/^0  *\(.*\)$/\1/
13010
            p
13011
        }
13012
    }'
13013
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13014
# Check for a 64-bit object if we didn't find anything.
13015
if test -z "$aix_libpath"; then
13016
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13017
fi
13018
fi
13019
rm -f core conftest.err conftest.$ac_objext \
13020
    conftest$ac_exeext conftest.$ac_ext
13021
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13022
 
13023
        hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13024
        archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13025
      else
13026
        if test "$host_cpu" = ia64; then
13027
          hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13028
          allow_undefined_flag_FC="-z nodefs"
13029
          archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13030
        else
13031
         # Determine the default libpath from the value encoded in an
13032
         # empty executable.
13033
         cat > conftest.$ac_ext <<_ACEOF
13034
      program main
13035
 
13036
      end
13037
_ACEOF
13038
if ac_fn_fc_try_link "$LINENO"; then :
13039
 
13040
lt_aix_libpath_sed='
13041
    /Import File Strings/,/^$/ {
13042
        /^0/ {
13043
            s/^0  *\(.*\)$/\1/
13044
            p
13045
        }
13046
    }'
13047
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13048
# Check for a 64-bit object if we didn't find anything.
13049
if test -z "$aix_libpath"; then
13050
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13051
fi
13052
fi
13053
rm -f core conftest.err conftest.$ac_objext \
13054
    conftest$ac_exeext conftest.$ac_ext
13055
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13056
 
13057
         hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13058
          # Warning - without using the other run time loading flags,
13059
          # -berok will link without error, but may produce a broken library.
13060
          no_undefined_flag_FC=' ${wl}-bernotok'
13061
          allow_undefined_flag_FC=' ${wl}-berok'
13062
          if test "$with_gnu_ld" = yes; then
13063
            # We only use this code for GNU lds that support --whole-archive.
13064
            whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13065
          else
13066
            # Exported symbols can be pulled into shared objects from archives
13067
            whole_archive_flag_spec_FC='$convenience'
13068
          fi
13069
          archive_cmds_need_lc_FC=yes
13070
          # This is similar to how AIX traditionally builds its shared libraries.
13071
          archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13072
        fi
13073
      fi
13074
      ;;
13075
 
13076
    amigaos*)
13077
      case $host_cpu in
13078
      powerpc)
13079
            # see comment about AmigaOS4 .so support
13080
            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13081
            archive_expsym_cmds_FC=''
13082
        ;;
13083
      m68k)
13084
            archive_cmds_FC='$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)'
13085
            hardcode_libdir_flag_spec_FC='-L$libdir'
13086
            hardcode_minus_L_FC=yes
13087
        ;;
13088
      esac
13089
      ;;
13090
 
13091
    bsdi[45]*)
13092
      export_dynamic_flag_spec_FC=-rdynamic
13093
      ;;
13094
 
13095
    cygwin* | mingw* | pw32* | cegcc*)
13096
      # When not using gcc, we currently assume that we are using
13097
      # Microsoft Visual C++.
13098
      # hardcode_libdir_flag_spec is actually meaningless, as there is
13099
      # no search path for DLLs.
13100
      hardcode_libdir_flag_spec_FC=' '
13101
      allow_undefined_flag_FC=unsupported
13102
      # Tell ltmain to make .lib files, not .a files.
13103
      libext=lib
13104
      # Tell ltmain to make .dll files, not .so files.
13105
      shrext_cmds=".dll"
13106
      # FIXME: Setting linknames here is a bad hack.
13107
      archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13108
      # The linker will automatically build a .lib file if we build a DLL.
13109
      old_archive_from_new_cmds_FC='true'
13110
      # FIXME: Should let the user specify the lib program.
13111
      old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13112
      fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13113
      enable_shared_with_static_runtimes_FC=yes
13114
      ;;
13115
 
13116
    darwin* | rhapsody*)
13117
 
13118
 
13119
  archive_cmds_need_lc_FC=no
13120
  hardcode_direct_FC=no
13121
  hardcode_automatic_FC=yes
13122
  hardcode_shlibpath_var_FC=unsupported
13123
  if test "$lt_cv_ld_force_load" = "yes"; then
13124
    whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13125
  else
13126
    whole_archive_flag_spec_FC=''
13127
  fi
13128
  link_all_deplibs_FC=yes
13129
  allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13130
  case $cc_basename in
13131
     ifort*) _lt_dar_can_shared=yes ;;
13132
     *) _lt_dar_can_shared=$GCC ;;
13133
  esac
13134
  if test "$_lt_dar_can_shared" = "yes"; then
13135
    output_verbose_link_cmd=func_echo_all
13136
    archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13137
    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13138
    archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13139
    module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13140
 
13141
  else
13142
  ld_shlibs_FC=no
13143
  fi
13144
 
13145
      ;;
13146
 
13147
    dgux*)
13148
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13149
      hardcode_libdir_flag_spec_FC='-L$libdir'
13150
      hardcode_shlibpath_var_FC=no
13151
      ;;
13152
 
13153
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13154
    # support.  Future versions do this automatically, but an explicit c++rt0.o
13155
    # does not break anything, and helps significantly (at the cost of a little
13156
    # extra space).
13157
    freebsd2.2*)
13158
      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13159
      hardcode_libdir_flag_spec_FC='-R$libdir'
13160
      hardcode_direct_FC=yes
13161
      hardcode_shlibpath_var_FC=no
13162
      ;;
13163
 
13164
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13165
    freebsd2.*)
13166
      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13167
      hardcode_direct_FC=yes
13168
      hardcode_minus_L_FC=yes
13169
      hardcode_shlibpath_var_FC=no
13170
      ;;
13171
 
13172
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13173
    freebsd* | dragonfly*)
13174
      archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13175
      hardcode_libdir_flag_spec_FC='-R$libdir'
13176
      hardcode_direct_FC=yes
13177
      hardcode_shlibpath_var_FC=no
13178
      ;;
13179
 
13180
    hpux9*)
13181
      if test "$GCC" = yes; then
13182
        archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13183
      else
13184
        archive_cmds_FC='$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'
13185
      fi
13186
      hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13187
      hardcode_libdir_separator_FC=:
13188
      hardcode_direct_FC=yes
13189
 
13190
      # hardcode_minus_L: Not really in the search PATH,
13191
      # but as the default location of the library.
13192
      hardcode_minus_L_FC=yes
13193
      export_dynamic_flag_spec_FC='${wl}-E'
13194
      ;;
13195
 
13196
    hpux10*)
13197
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13198
        archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13199
      else
13200
        archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13201
      fi
13202
      if test "$with_gnu_ld" = no; then
13203
        hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13204
        hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13205
        hardcode_libdir_separator_FC=:
13206
        hardcode_direct_FC=yes
13207
        hardcode_direct_absolute_FC=yes
13208
        export_dynamic_flag_spec_FC='${wl}-E'
13209
        # hardcode_minus_L: Not really in the search PATH,
13210
        # but as the default location of the library.
13211
        hardcode_minus_L_FC=yes
13212
      fi
13213
      ;;
13214
 
13215
    hpux11*)
13216
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13217
        case $host_cpu in
13218
        hppa*64*)
13219
          archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13220
          ;;
13221
        ia64*)
13222
          archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13223
          ;;
13224
        *)
13225
          archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13226
          ;;
13227
        esac
13228
      else
13229
        case $host_cpu in
13230
        hppa*64*)
13231
          archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13232
          ;;
13233
        ia64*)
13234
          archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13235
          ;;
13236
        *)
13237
        archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13238
          ;;
13239
        esac
13240
      fi
13241
      if test "$with_gnu_ld" = no; then
13242
        hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13243
        hardcode_libdir_separator_FC=:
13244
 
13245
        case $host_cpu in
13246
        hppa*64*|ia64*)
13247
          hardcode_direct_FC=no
13248
          hardcode_shlibpath_var_FC=no
13249
          ;;
13250
        *)
13251
          hardcode_direct_FC=yes
13252
          hardcode_direct_absolute_FC=yes
13253
          export_dynamic_flag_spec_FC='${wl}-E'
13254
 
13255
          # hardcode_minus_L: Not really in the search PATH,
13256
          # but as the default location of the library.
13257
          hardcode_minus_L_FC=yes
13258
          ;;
13259
        esac
13260
      fi
13261
      ;;
13262
 
13263
    irix5* | irix6* | nonstopux*)
13264
      if test "$GCC" = yes; then
13265
        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13266
        # Try to use the -exported_symbol ld option, if it does not
13267
        # work, assume that -exports_file does not work either and
13268
        # implicitly export all symbols.
13269
        save_LDFLAGS="$LDFLAGS"
13270
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13271
        cat > conftest.$ac_ext <<_ACEOF
13272
int foo(void) {}
13273
_ACEOF
13274
if ac_fn_fc_try_link "$LINENO"; then :
13275
  archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13276
 
13277
fi
13278
rm -f core conftest.err conftest.$ac_objext \
13279
    conftest$ac_exeext conftest.$ac_ext
13280
        LDFLAGS="$save_LDFLAGS"
13281
      else
13282
        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13283
        archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13284
      fi
13285
      archive_cmds_need_lc_FC='no'
13286
      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13287
      hardcode_libdir_separator_FC=:
13288
      inherit_rpath_FC=yes
13289
      link_all_deplibs_FC=yes
13290
      ;;
13291
 
13292
    netbsd*)
13293
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13294
        archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13295
      else
13296
        archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13297
      fi
13298
      hardcode_libdir_flag_spec_FC='-R$libdir'
13299
      hardcode_direct_FC=yes
13300
      hardcode_shlibpath_var_FC=no
13301
      ;;
13302
 
13303
    newsos6)
13304
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13305
      hardcode_direct_FC=yes
13306
      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13307
      hardcode_libdir_separator_FC=:
13308
      hardcode_shlibpath_var_FC=no
13309
      ;;
13310
 
13311
    *nto* | *qnx*)
13312
      ;;
13313
 
13314
    openbsd*)
13315
      if test -f /usr/libexec/ld.so; then
13316
        hardcode_direct_FC=yes
13317
        hardcode_shlibpath_var_FC=no
13318
        hardcode_direct_absolute_FC=yes
13319
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13320
          archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13321
          archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13322
          hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13323
          export_dynamic_flag_spec_FC='${wl}-E'
13324
        else
13325
          case $host_os in
13326
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13327
             archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13328
             hardcode_libdir_flag_spec_FC='-R$libdir'
13329
             ;;
13330
           *)
13331
             archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13332
             hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13333
             ;;
13334
          esac
13335
        fi
13336
      else
13337
        ld_shlibs_FC=no
13338
      fi
13339
      ;;
13340
 
13341
    os2*)
13342
      hardcode_libdir_flag_spec_FC='-L$libdir'
13343
      hardcode_minus_L_FC=yes
13344
      allow_undefined_flag_FC=unsupported
13345
      archive_cmds_FC='$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'
13346
      old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13347
      ;;
13348
 
13349
    osf3*)
13350
      if test "$GCC" = yes; then
13351
        allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13352
        archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13353
      else
13354
        allow_undefined_flag_FC=' -expect_unresolved \*'
13355
        archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13356
      fi
13357
      archive_cmds_need_lc_FC='no'
13358
      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13359
      hardcode_libdir_separator_FC=:
13360
      ;;
13361
 
13362
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
13363
      if test "$GCC" = yes; then
13364
        allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13365
        archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13366
        hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13367
      else
13368
        allow_undefined_flag_FC=' -expect_unresolved \*'
13369
        archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13370
        archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13371
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13372
 
13373
        # Both c and cxx compiler support -rpath directly
13374
        hardcode_libdir_flag_spec_FC='-rpath $libdir'
13375
      fi
13376
      archive_cmds_need_lc_FC='no'
13377
      hardcode_libdir_separator_FC=:
13378
      ;;
13379
 
13380
    solaris*)
13381
      no_undefined_flag_FC=' -z defs'
13382
      if test "$GCC" = yes; then
13383
        wlarc='${wl}'
13384
        archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13385
        archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13386
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13387
      else
13388
        case `$CC -V 2>&1` in
13389
        *"Compilers 5.0"*)
13390
          wlarc=''
13391
          archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13392
          archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13393
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13394
          ;;
13395
        *)
13396
          wlarc='${wl}'
13397
          archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13398
          archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13399
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13400
          ;;
13401
        esac
13402
      fi
13403
      hardcode_libdir_flag_spec_FC='-R$libdir'
13404
      hardcode_shlibpath_var_FC=no
13405
      case $host_os in
13406
      solaris2.[0-5] | solaris2.[0-5].*) ;;
13407
      *)
13408
        # The compiler driver will combine and reorder linker options,
13409
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
13410
        # but is careful enough not to reorder.
13411
        # Supported since Solaris 2.6 (maybe 2.5.1?)
13412
        if test "$GCC" = yes; then
13413
          whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13414
        else
13415
          whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13416
        fi
13417
        ;;
13418
      esac
13419
      link_all_deplibs_FC=yes
13420
      ;;
13421
 
13422
    sunos4*)
13423
      if test "x$host_vendor" = xsequent; then
13424
        # Use $CC to link under sequent, because it throws in some extra .o
13425
        # files that make .init and .fini sections work.
13426
        archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13427
      else
13428
        archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13429
      fi
13430
      hardcode_libdir_flag_spec_FC='-L$libdir'
13431
      hardcode_direct_FC=yes
13432
      hardcode_minus_L_FC=yes
13433
      hardcode_shlibpath_var_FC=no
13434
      ;;
13435
 
13436
    sysv4)
13437
      case $host_vendor in
13438
        sni)
13439
          archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13440
          hardcode_direct_FC=yes # is this really true???
13441
        ;;
13442
        siemens)
13443
          ## LD is ld it makes a PLAMLIB
13444
          ## CC just makes a GrossModule.
13445
          archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13446
          reload_cmds_FC='$CC -r -o $output$reload_objs'
13447
          hardcode_direct_FC=no
13448
        ;;
13449
        motorola)
13450
          archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13451
          hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13452
        ;;
13453
      esac
13454
      runpath_var='LD_RUN_PATH'
13455
      hardcode_shlibpath_var_FC=no
13456
      ;;
13457
 
13458
    sysv4.3*)
13459
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13460
      hardcode_shlibpath_var_FC=no
13461
      export_dynamic_flag_spec_FC='-Bexport'
13462
      ;;
13463
 
13464
    sysv4*MP*)
13465
      if test -d /usr/nec; then
13466
        archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467
        hardcode_shlibpath_var_FC=no
13468
        runpath_var=LD_RUN_PATH
13469
        hardcode_runpath_var=yes
13470
        ld_shlibs_FC=yes
13471
      fi
13472
      ;;
13473
 
13474
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13475
      no_undefined_flag_FC='${wl}-z,text'
13476
      archive_cmds_need_lc_FC=no
13477
      hardcode_shlibpath_var_FC=no
13478
      runpath_var='LD_RUN_PATH'
13479
 
13480
      if test "$GCC" = yes; then
13481
        archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13482
        archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13483
      else
13484
        archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13485
        archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13486
      fi
13487
      ;;
13488
 
13489
    sysv5* | sco3.2v5* | sco5v6*)
13490
      # Note: We can NOT use -z defs as we might desire, because we do not
13491
      # link with -lc, and that would cause any symbols used from libc to
13492
      # always be unresolved, which means just about no library would
13493
      # ever link correctly.  If we're not using GNU ld we use -z text
13494
      # though, which does catch some bad symbols but isn't as heavy-handed
13495
      # as -z defs.
13496
      no_undefined_flag_FC='${wl}-z,text'
13497
      allow_undefined_flag_FC='${wl}-z,nodefs'
13498
      archive_cmds_need_lc_FC=no
13499
      hardcode_shlibpath_var_FC=no
13500
      hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13501
      hardcode_libdir_separator_FC=':'
13502
      link_all_deplibs_FC=yes
13503
      export_dynamic_flag_spec_FC='${wl}-Bexport'
13504
      runpath_var='LD_RUN_PATH'
13505
 
13506
      if test "$GCC" = yes; then
13507
        archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13508
        archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13509
      else
13510
        archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13511
        archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13512
      fi
13513
      ;;
13514
 
13515
    uts4*)
13516
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13517
      hardcode_libdir_flag_spec_FC='-L$libdir'
13518
      hardcode_shlibpath_var_FC=no
13519
      ;;
13520
 
13521
    *)
13522
      ld_shlibs_FC=no
13523
      ;;
13524
    esac
13525
 
13526
    if test x$host_vendor = xsni; then
13527
      case $host in
13528
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13529
        export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13530
        ;;
13531
      esac
13532
    fi
13533
  fi
13534
 
13535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13536
$as_echo "$ld_shlibs_FC" >&6; }
13537
test "$ld_shlibs_FC" = no && can_build_shared=no
13538
 
13539
with_gnu_ld_FC=$with_gnu_ld
13540
 
13541
 
13542
 
13543
 
13544
 
13545
 
13546
#
13547
# Do we need to explicitly link libc?
13548
#
13549
case "x$archive_cmds_need_lc_FC" in
13550
x|xyes)
13551
  # Assume -lc should be added
13552
  archive_cmds_need_lc_FC=yes
13553
 
13554
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13555
    case $archive_cmds_FC in
13556
    *'~'*)
13557
      # FIXME: we may have to deal with multi-command sequences.
13558
      ;;
13559
    '$CC '*)
13560
      # Test whether the compiler implicitly links with -lc since on some
13561
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13562
      # to ld, don't add -lc before -lgcc.
13563
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13564
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13565
if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13566
  $as_echo_n "(cached) " >&6
13567
else
13568
  $RM conftest*
13569
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13570
 
13571
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13572
  (eval $ac_compile) 2>&5
13573
  ac_status=$?
13574
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13575
  test $ac_status = 0; } 2>conftest.err; then
13576
          soname=conftest
13577
          lib=conftest
13578
          libobjs=conftest.$ac_objext
13579
          deplibs=
13580
          wl=$lt_prog_compiler_wl_FC
13581
          pic_flag=$lt_prog_compiler_pic_FC
13582
          compiler_flags=-v
13583
          linker_flags=-v
13584
          verstring=
13585
          output_objdir=.
13586
          libname=conftest
13587
          lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13588
          allow_undefined_flag_FC=
13589
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13590
  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13591
  ac_status=$?
13592
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13593
  test $ac_status = 0; }
13594
          then
13595
            lt_cv_archive_cmds_need_lc_FC=no
13596
          else
13597
            lt_cv_archive_cmds_need_lc_FC=yes
13598
          fi
13599
          allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13600
        else
13601
          cat conftest.err 1>&5
13602
        fi
13603
        $RM conftest*
13604
 
13605
fi
13606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13607
$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13608
      archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13609
      ;;
13610
    esac
13611
  fi
13612
  ;;
13613
esac
13614
 
13615
 
13616
 
13617
 
13618
 
13619
 
13620
 
13621
 
13622
 
13623
 
13624
 
13625
 
13626
 
13627
 
13628
 
13629
 
13630
 
13631
 
13632
 
13633
 
13634
 
13635
 
13636
 
13637
 
13638
 
13639
 
13640
 
13641
 
13642
 
13643
 
13644
 
13645
 
13646
 
13647
 
13648
 
13649
 
13650
 
13651
 
13652
 
13653
 
13654
 
13655
 
13656
 
13657
 
13658
 
13659
 
13660
 
13661
 
13662
 
13663
 
13664
 
13665
 
13666
 
13667
 
13668
 
13669
 
13670
 
13671
 
13672
 
13673
 
13674
 
13675
 
13676
 
13677
 
13678
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13679
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13680
 
13681
library_names_spec=
13682
libname_spec='lib$name'
13683
soname_spec=
13684
shrext_cmds=".so"
13685
postinstall_cmds=
13686
postuninstall_cmds=
13687
finish_cmds=
13688
finish_eval=
13689
shlibpath_var=
13690
shlibpath_overrides_runpath=unknown
13691
version_type=none
13692
dynamic_linker="$host_os ld.so"
13693
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13694
need_lib_prefix=unknown
13695
hardcode_into_libs=no
13696
 
13697
# when you set need_version to no, make sure it does not cause -set_version
13698
# flags to be left without arguments
13699
need_version=unknown
13700
 
13701
case $host_os in
13702
aix3*)
13703
  version_type=linux
13704
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13705
  shlibpath_var=LIBPATH
13706
 
13707
  # AIX 3 has no versioning support, so we append a major version to the name.
13708
  soname_spec='${libname}${release}${shared_ext}$major'
13709
  ;;
13710
 
13711
aix[4-9]*)
13712
  version_type=linux
13713
  need_lib_prefix=no
13714
  need_version=no
13715
  hardcode_into_libs=yes
13716
  if test "$host_cpu" = ia64; then
13717
    # AIX 5 supports IA64
13718
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13719
    shlibpath_var=LD_LIBRARY_PATH
13720
  else
13721
    # With GCC up to 2.95.x, collect2 would create an import file
13722
    # for dependence libraries.  The import file would start with
13723
    # the line `#! .'.  This would cause the generated library to
13724
    # depend on `.', always an invalid library.  This was fixed in
13725
    # development snapshots of GCC prior to 3.0.
13726
    case $host_os in
13727
      aix4 | aix4.[01] | aix4.[01].*)
13728
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13729
           echo ' yes '
13730
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13731
        :
13732
      else
13733
        can_build_shared=no
13734
      fi
13735
      ;;
13736
    esac
13737
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13738
    # soname into executable. Probably we can add versioning support to
13739
    # collect2, so additional links can be useful in future.
13740
    if test "$aix_use_runtimelinking" = yes; then
13741
      # If using run time linking (on AIX 4.2 or later) use lib.so
13742
      # instead of lib.a to let people know that these are not
13743
      # typical AIX shared libraries.
13744
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745
    else
13746
      # We preserve .a as extension for shared libraries through AIX4.2
13747
      # and later when we are not doing run time linking.
13748
      library_names_spec='${libname}${release}.a $libname.a'
13749
      soname_spec='${libname}${release}${shared_ext}$major'
13750
    fi
13751
    shlibpath_var=LIBPATH
13752
  fi
13753
  ;;
13754
 
13755
amigaos*)
13756
  case $host_cpu in
13757
  powerpc)
13758
    # Since July 2007 AmigaOS4 officially supports .so libraries.
13759
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13760
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13761
    ;;
13762
  m68k)
13763
    library_names_spec='$libname.ixlibrary $libname.a'
13764
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13765
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
13766
    ;;
13767
  esac
13768
  ;;
13769
 
13770
beos*)
13771
  library_names_spec='${libname}${shared_ext}'
13772
  dynamic_linker="$host_os ld.so"
13773
  shlibpath_var=LIBRARY_PATH
13774
  ;;
13775
 
13776
bsdi[45]*)
13777
  version_type=linux
13778
  need_version=no
13779
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780
  soname_spec='${libname}${release}${shared_ext}$major'
13781
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13782
  shlibpath_var=LD_LIBRARY_PATH
13783
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13784
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13785
  # the default ld.so.conf also contains /usr/contrib/lib and
13786
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13787
  # libtool to hard-code these into programs
13788
  ;;
13789
 
13790
cygwin* | mingw* | pw32* | cegcc*)
13791
  version_type=windows
13792
  shrext_cmds=".dll"
13793
  need_version=no
13794
  need_lib_prefix=no
13795
 
13796
  case $GCC,$host_os in
13797
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13798
    library_names_spec='$libname.dll.a'
13799
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13800
    postinstall_cmds='base_file=`basename \${file}`~
13801
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13802
      dldir=$destdir/`dirname \$dlpath`~
13803
      test -d \$dldir || mkdir -p \$dldir~
13804
      $install_prog $dir/$dlname \$dldir/$dlname~
13805
      chmod a+x \$dldir/$dlname~
13806
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13807
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13808
      fi'
13809
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13810
      dlpath=$dir/\$dldll~
13811
       $RM \$dlpath'
13812
    shlibpath_overrides_runpath=yes
13813
 
13814
    case $host_os in
13815
    cygwin*)
13816
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13817
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13818
 
13819
      ;;
13820
    mingw* | cegcc*)
13821
      # MinGW DLLs use traditional 'lib' prefix
13822
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13823
      ;;
13824
    pw32*)
13825
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13826
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13827
      ;;
13828
    esac
13829
    ;;
13830
 
13831
  *)
13832
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13833
    ;;
13834
  esac
13835
  dynamic_linker='Win32 ld.exe'
13836
  # FIXME: first we should search . and the directory the executable is in
13837
  shlibpath_var=PATH
13838
  ;;
13839
 
13840
darwin* | rhapsody*)
13841
  dynamic_linker="$host_os dyld"
13842
  version_type=darwin
13843
  need_lib_prefix=no
13844
  need_version=no
13845
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13846
  soname_spec='${libname}${release}${major}$shared_ext'
13847
  shlibpath_overrides_runpath=yes
13848
  shlibpath_var=DYLD_LIBRARY_PATH
13849
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13850
 
13851
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13852
  ;;
13853
 
13854
dgux*)
13855
  version_type=linux
13856
  need_lib_prefix=no
13857
  need_version=no
13858
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13859
  soname_spec='${libname}${release}${shared_ext}$major'
13860
  shlibpath_var=LD_LIBRARY_PATH
13861
  ;;
13862
 
13863
freebsd* | dragonfly*)
13864
  # DragonFly does not have aout.  When/if they implement a new
13865
  # versioning mechanism, adjust this.
13866
  if test -x /usr/bin/objformat; then
13867
    objformat=`/usr/bin/objformat`
13868
  else
13869
    case $host_os in
13870
    freebsd[23].*) objformat=aout ;;
13871
    *) objformat=elf ;;
13872
    esac
13873
  fi
13874
  version_type=freebsd-$objformat
13875
  case $version_type in
13876
    freebsd-elf*)
13877
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13878
      need_version=no
13879
      need_lib_prefix=no
13880
      ;;
13881
    freebsd-*)
13882
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13883
      need_version=yes
13884
      ;;
13885
  esac
13886
  shlibpath_var=LD_LIBRARY_PATH
13887
  case $host_os in
13888
  freebsd2.*)
13889
    shlibpath_overrides_runpath=yes
13890
    ;;
13891
  freebsd3.[01]* | freebsdelf3.[01]*)
13892
    shlibpath_overrides_runpath=yes
13893
    hardcode_into_libs=yes
13894
    ;;
13895
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13896
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13897
    shlibpath_overrides_runpath=no
13898
    hardcode_into_libs=yes
13899
    ;;
13900
  *) # from 4.6 on, and DragonFly
13901
    shlibpath_overrides_runpath=yes
13902
    hardcode_into_libs=yes
13903
    ;;
13904
  esac
13905
  ;;
13906
 
13907
gnu*)
13908
  version_type=linux
13909
  need_lib_prefix=no
13910
  need_version=no
13911
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13912
  soname_spec='${libname}${release}${shared_ext}$major'
13913
  shlibpath_var=LD_LIBRARY_PATH
13914
  hardcode_into_libs=yes
13915
  ;;
13916
 
13917
haiku*)
13918
  version_type=linux
13919
  need_lib_prefix=no
13920
  need_version=no
13921
  dynamic_linker="$host_os runtime_loader"
13922
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13923
  soname_spec='${libname}${release}${shared_ext}$major'
13924
  shlibpath_var=LIBRARY_PATH
13925
  shlibpath_overrides_runpath=yes
13926
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13927
  hardcode_into_libs=yes
13928
  ;;
13929
 
13930
hpux9* | hpux10* | hpux11*)
13931
  # Give a soname corresponding to the major version so that dld.sl refuses to
13932
  # link against other versions.
13933
  version_type=sunos
13934
  need_lib_prefix=no
13935
  need_version=no
13936
  case $host_cpu in
13937
  ia64*)
13938
    shrext_cmds='.so'
13939
    hardcode_into_libs=yes
13940
    dynamic_linker="$host_os dld.so"
13941
    shlibpath_var=LD_LIBRARY_PATH
13942
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13943
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944
    soname_spec='${libname}${release}${shared_ext}$major'
13945
    if test "X$HPUX_IA64_MODE" = X32; then
13946
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13947
    else
13948
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13949
    fi
13950
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13951
    ;;
13952
  hppa*64*)
13953
    shrext_cmds='.sl'
13954
    hardcode_into_libs=yes
13955
    dynamic_linker="$host_os dld.sl"
13956
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13957
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13958
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959
    soname_spec='${libname}${release}${shared_ext}$major'
13960
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13961
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13962
    ;;
13963
  *)
13964
    shrext_cmds='.sl'
13965
    dynamic_linker="$host_os dld.sl"
13966
    shlibpath_var=SHLIB_PATH
13967
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13968
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969
    soname_spec='${libname}${release}${shared_ext}$major'
13970
    ;;
13971
  esac
13972
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13973
  postinstall_cmds='chmod 555 $lib'
13974
  # or fails outright, so override atomically:
13975
  install_override_mode=555
13976
  ;;
13977
 
13978
interix[3-9]*)
13979
  version_type=linux
13980
  need_lib_prefix=no
13981
  need_version=no
13982
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13983
  soname_spec='${libname}${release}${shared_ext}$major'
13984
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13985
  shlibpath_var=LD_LIBRARY_PATH
13986
  shlibpath_overrides_runpath=no
13987
  hardcode_into_libs=yes
13988
  ;;
13989
 
13990
irix5* | irix6* | nonstopux*)
13991
  case $host_os in
13992
    nonstopux*) version_type=nonstopux ;;
13993
    *)
13994
        if test "$lt_cv_prog_gnu_ld" = yes; then
13995
                version_type=linux
13996
        else
13997
                version_type=irix
13998
        fi ;;
13999
  esac
14000
  need_lib_prefix=no
14001
  need_version=no
14002
  soname_spec='${libname}${release}${shared_ext}$major'
14003
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14004
  case $host_os in
14005
  irix5* | nonstopux*)
14006
    libsuff= shlibsuff=
14007
    ;;
14008
  *)
14009
    case $LD in # libtool.m4 will add one of these switches to LD
14010
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14011
      libsuff= shlibsuff= libmagic=32-bit;;
14012
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14013
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14014
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14015
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14016
    *) libsuff= shlibsuff= libmagic=never-match;;
14017
    esac
14018
    ;;
14019
  esac
14020
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14021
  shlibpath_overrides_runpath=no
14022
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14023
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14024
  hardcode_into_libs=yes
14025
  ;;
14026
 
14027
# No shared lib support for Linux oldld, aout, or coff.
14028
linux*oldld* | linux*aout* | linux*coff*)
14029
  dynamic_linker=no
14030
  ;;
14031
 
14032
# This must be Linux ELF.
14033
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14034
  version_type=linux
14035
  need_lib_prefix=no
14036
  need_version=no
14037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038
  soname_spec='${libname}${release}${shared_ext}$major'
14039
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14040
  shlibpath_var=LD_LIBRARY_PATH
14041
  shlibpath_overrides_runpath=no
14042
 
14043
  # Some binutils ld are patched to set DT_RUNPATH
14044
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14045
  $as_echo_n "(cached) " >&6
14046
else
14047
  lt_cv_shlibpath_overrides_runpath=no
14048
    save_LDFLAGS=$LDFLAGS
14049
    save_libdir=$libdir
14050
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14051
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14052
    cat > conftest.$ac_ext <<_ACEOF
14053
      program main
14054
 
14055
      end
14056
_ACEOF
14057
if ac_fn_fc_try_link "$LINENO"; then :
14058
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14059
  lt_cv_shlibpath_overrides_runpath=yes
14060
fi
14061
fi
14062
rm -f core conftest.err conftest.$ac_objext \
14063
    conftest$ac_exeext conftest.$ac_ext
14064
    LDFLAGS=$save_LDFLAGS
14065
    libdir=$save_libdir
14066
 
14067
fi
14068
 
14069
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14070
 
14071
  # This implies no fast_install, which is unacceptable.
14072
  # Some rework will be needed to allow for fast_install
14073
  # before this can be enabled.
14074
  hardcode_into_libs=yes
14075
 
14076
  # Append ld.so.conf contents to the search path
14077
  if test -f /etc/ld.so.conf; then
14078
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14079
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14080
  fi
14081
 
14082
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14083
  # powerpc, because MkLinux only supported shared libraries with the
14084
  # GNU dynamic linker.  Since this was broken with cross compilers,
14085
  # most powerpc-linux boxes support dynamic linking these days and
14086
  # people can always --disable-shared, the test was removed, and we
14087
  # assume the GNU/Linux dynamic linker is in use.
14088
  dynamic_linker='GNU/Linux ld.so'
14089
  ;;
14090
 
14091
netbsd*)
14092
  version_type=sunos
14093
  need_lib_prefix=no
14094
  need_version=no
14095
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14096
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14097
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14098
    dynamic_linker='NetBSD (a.out) ld.so'
14099
  else
14100
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14101
    soname_spec='${libname}${release}${shared_ext}$major'
14102
    dynamic_linker='NetBSD ld.elf_so'
14103
  fi
14104
  shlibpath_var=LD_LIBRARY_PATH
14105
  shlibpath_overrides_runpath=yes
14106
  hardcode_into_libs=yes
14107
  ;;
14108
 
14109
newsos6)
14110
  version_type=linux
14111
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112
  shlibpath_var=LD_LIBRARY_PATH
14113
  shlibpath_overrides_runpath=yes
14114
  ;;
14115
 
14116
*nto* | *qnx*)
14117
  version_type=qnx
14118
  need_lib_prefix=no
14119
  need_version=no
14120
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121
  soname_spec='${libname}${release}${shared_ext}$major'
14122
  shlibpath_var=LD_LIBRARY_PATH
14123
  shlibpath_overrides_runpath=no
14124
  hardcode_into_libs=yes
14125
  dynamic_linker='ldqnx.so'
14126
  ;;
14127
 
14128
openbsd*)
14129
  version_type=sunos
14130
  sys_lib_dlsearch_path_spec="/usr/lib"
14131
  need_lib_prefix=no
14132
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14133
  case $host_os in
14134
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14135
    *)                          need_version=no  ;;
14136
  esac
14137
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14138
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14139
  shlibpath_var=LD_LIBRARY_PATH
14140
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14141
    case $host_os in
14142
      openbsd2.[89] | openbsd2.[89].*)
14143
        shlibpath_overrides_runpath=no
14144
        ;;
14145
      *)
14146
        shlibpath_overrides_runpath=yes
14147
        ;;
14148
      esac
14149
  else
14150
    shlibpath_overrides_runpath=yes
14151
  fi
14152
  ;;
14153
 
14154
os2*)
14155
  libname_spec='$name'
14156
  shrext_cmds=".dll"
14157
  need_lib_prefix=no
14158
  library_names_spec='$libname${shared_ext} $libname.a'
14159
  dynamic_linker='OS/2 ld.exe'
14160
  shlibpath_var=LIBPATH
14161
  ;;
14162
 
14163
osf3* | osf4* | osf5*)
14164
  version_type=osf
14165
  need_lib_prefix=no
14166
  need_version=no
14167
  soname_spec='${libname}${release}${shared_ext}$major'
14168
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169
  shlibpath_var=LD_LIBRARY_PATH
14170
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14171
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14172
  ;;
14173
 
14174
rdos*)
14175
  dynamic_linker=no
14176
  ;;
14177
 
14178
solaris*)
14179
  version_type=linux
14180
  need_lib_prefix=no
14181
  need_version=no
14182
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14183
  soname_spec='${libname}${release}${shared_ext}$major'
14184
  shlibpath_var=LD_LIBRARY_PATH
14185
  shlibpath_overrides_runpath=yes
14186
  hardcode_into_libs=yes
14187
  # ldd complains unless libraries are executable
14188
  postinstall_cmds='chmod +x $lib'
14189
  ;;
14190
 
14191
sunos4*)
14192
  version_type=sunos
14193
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14194
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14195
  shlibpath_var=LD_LIBRARY_PATH
14196
  shlibpath_overrides_runpath=yes
14197
  if test "$with_gnu_ld" = yes; then
14198
    need_lib_prefix=no
14199
  fi
14200
  need_version=yes
14201
  ;;
14202
 
14203
sysv4 | sysv4.3*)
14204
  version_type=linux
14205
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14206
  soname_spec='${libname}${release}${shared_ext}$major'
14207
  shlibpath_var=LD_LIBRARY_PATH
14208
  case $host_vendor in
14209
    sni)
14210
      shlibpath_overrides_runpath=no
14211
      need_lib_prefix=no
14212
      runpath_var=LD_RUN_PATH
14213
      ;;
14214
    siemens)
14215
      need_lib_prefix=no
14216
      ;;
14217
    motorola)
14218
      need_lib_prefix=no
14219
      need_version=no
14220
      shlibpath_overrides_runpath=no
14221
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14222
      ;;
14223
  esac
14224
  ;;
14225
 
14226
sysv4*MP*)
14227
  if test -d /usr/nec ;then
14228
    version_type=linux
14229
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14230
    soname_spec='$libname${shared_ext}.$major'
14231
    shlibpath_var=LD_LIBRARY_PATH
14232
  fi
14233
  ;;
14234
 
14235
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14236
  version_type=freebsd-elf
14237
  need_lib_prefix=no
14238
  need_version=no
14239
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14240
  soname_spec='${libname}${release}${shared_ext}$major'
14241
  shlibpath_var=LD_LIBRARY_PATH
14242
  shlibpath_overrides_runpath=yes
14243
  hardcode_into_libs=yes
14244
  if test "$with_gnu_ld" = yes; then
14245
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14246
  else
14247
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14248
    case $host_os in
14249
      sco3.2v5*)
14250
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14251
        ;;
14252
    esac
14253
  fi
14254
  sys_lib_dlsearch_path_spec='/usr/lib'
14255
  ;;
14256
 
14257
tpf*)
14258
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14259
  version_type=linux
14260
  need_lib_prefix=no
14261
  need_version=no
14262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14263
  shlibpath_var=LD_LIBRARY_PATH
14264
  shlibpath_overrides_runpath=no
14265
  hardcode_into_libs=yes
14266
  ;;
14267
 
14268
uts4*)
14269
  version_type=linux
14270
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271
  soname_spec='${libname}${release}${shared_ext}$major'
14272
  shlibpath_var=LD_LIBRARY_PATH
14273
  ;;
14274
 
14275
*)
14276
  dynamic_linker=no
14277
  ;;
14278
esac
14279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14280
$as_echo "$dynamic_linker" >&6; }
14281
test "$dynamic_linker" = no && can_build_shared=no
14282
 
14283
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14284
if test "$GCC" = yes; then
14285
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14286
fi
14287
 
14288
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14289
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14290
fi
14291
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14292
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14293
fi
14294
 
14295
 
14296
 
14297
 
14298
 
14299
 
14300
 
14301
 
14302
 
14303
 
14304
 
14305
 
14306
 
14307
 
14308
 
14309
 
14310
 
14311
 
14312
 
14313
 
14314
 
14315
 
14316
 
14317
 
14318
 
14319
 
14320
 
14321
 
14322
 
14323
 
14324
 
14325
 
14326
 
14327
 
14328
 
14329
 
14330
 
14331
 
14332
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14333
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14334
hardcode_action_FC=
14335
if test -n "$hardcode_libdir_flag_spec_FC" ||
14336
   test -n "$runpath_var_FC" ||
14337
   test "X$hardcode_automatic_FC" = "Xyes" ; then
14338
 
14339
  # We can hardcode non-existent directories.
14340
  if test "$hardcode_direct_FC" != no &&
14341
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14342
     # have to relink, otherwise we might link with an installed library
14343
     # when we should be linking with a yet-to-be-installed one
14344
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14345
     test "$hardcode_minus_L_FC" != no; then
14346
    # Linking always hardcodes the temporary library directory.
14347
    hardcode_action_FC=relink
14348
  else
14349
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14350
    hardcode_action_FC=immediate
14351
  fi
14352
else
14353
  # We cannot hardcode anything, or else we can only hardcode existing
14354
  # directories.
14355
  hardcode_action_FC=unsupported
14356
fi
14357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14358
$as_echo "$hardcode_action_FC" >&6; }
14359
 
14360
if test "$hardcode_action_FC" = relink ||
14361
   test "$inherit_rpath_FC" = yes; then
14362
  # Fast installation is not supported
14363
  enable_fast_install=no
14364
elif test "$shlibpath_overrides_runpath" = yes ||
14365
     test "$enable_shared" = no; then
14366
  # Fast installation is not necessary
14367
  enable_fast_install=needless
14368
fi
14369
 
14370
 
14371
 
14372
 
14373
 
14374
 
14375
 
14376
  fi # test -n "$compiler"
14377
 
14378
  GCC=$lt_save_GCC
14379
  CC="$lt_save_CC"
14380
fi # test "$_lt_disable_FC" != yes
14381
 
14382
ac_ext=c
14383
ac_cpp='$CPP $CPPFLAGS'
14384
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14385
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14386
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14387
 
14388
 
14389
FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14390
 
14391
# For libtool versioning info, format is CURRENT:REVISION:AGE
14392
libtool_VERSION=1:0:0
14393
 
14394
 
14395
# Check header files.
14396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14397
$as_echo_n "checking for ANSI C header files... " >&6; }
14398
if test "${ac_cv_header_stdc+set}" = set; then :
14399
  $as_echo_n "(cached) " >&6
14400
else
14401
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402
/* end confdefs.h.  */
14403
#include 
14404
#include 
14405
#include 
14406
#include 
14407
 
14408
int
14409
main ()
14410
{
14411
 
14412
  ;
14413
  return 0;
14414
}
14415
_ACEOF
14416
if ac_fn_c_try_compile "$LINENO"; then :
14417
  ac_cv_header_stdc=yes
14418
else
14419
  ac_cv_header_stdc=no
14420
fi
14421
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422
 
14423
if test $ac_cv_header_stdc = yes; then
14424
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14425
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426
/* end confdefs.h.  */
14427
#include 
14428
 
14429
_ACEOF
14430
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14431
  $EGREP "memchr" >/dev/null 2>&1; then :
14432
 
14433
else
14434
  ac_cv_header_stdc=no
14435
fi
14436
rm -f conftest*
14437
 
14438
fi
14439
 
14440
if test $ac_cv_header_stdc = yes; then
14441
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14442
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443
/* end confdefs.h.  */
14444
#include 
14445
 
14446
_ACEOF
14447
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14448
  $EGREP "free" >/dev/null 2>&1; then :
14449
 
14450
else
14451
  ac_cv_header_stdc=no
14452
fi
14453
rm -f conftest*
14454
 
14455
fi
14456
 
14457
if test $ac_cv_header_stdc = yes; then
14458
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14459
  if test "$cross_compiling" = yes; then :
14460
  :
14461
else
14462
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463
/* end confdefs.h.  */
14464
#include 
14465
#include 
14466
#if ((' ' & 0x0FF) == 0x020)
14467
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14468
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14469
#else
14470
# define ISLOWER(c) \
14471
                   (('a' <= (c) && (c) <= 'i') \
14472
                     || ('j' <= (c) && (c) <= 'r') \
14473
                     || ('s' <= (c) && (c) <= 'z'))
14474
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14475
#endif
14476
 
14477
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14478
int
14479
main ()
14480
{
14481
  int i;
14482
  for (i = 0; i < 256; i++)
14483
    if (XOR (islower (i), ISLOWER (i))
14484
        || toupper (i) != TOUPPER (i))
14485
      return 2;
14486
  return 0;
14487
}
14488
_ACEOF
14489
if ac_fn_c_try_run "$LINENO"; then :
14490
 
14491
else
14492
  ac_cv_header_stdc=no
14493
fi
14494
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14495
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14496
fi
14497
 
14498
fi
14499
fi
14500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14501
$as_echo "$ac_cv_header_stdc" >&6; }
14502
if test $ac_cv_header_stdc = yes; then
14503
 
14504
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14505
 
14506
fi
14507
 
14508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14509
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14510
if test "${ac_cv_header_time+set}" = set; then :
14511
  $as_echo_n "(cached) " >&6
14512
else
14513
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514
/* end confdefs.h.  */
14515
#include 
14516
#include 
14517
#include 
14518
 
14519
int
14520
main ()
14521
{
14522
if ((struct tm *) 0)
14523
return 0;
14524
  ;
14525
  return 0;
14526
}
14527
_ACEOF
14528
if ac_fn_c_try_compile "$LINENO"; then :
14529
  ac_cv_header_time=yes
14530
else
14531
  ac_cv_header_time=no
14532
fi
14533
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534
fi
14535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14536
$as_echo "$ac_cv_header_time" >&6; }
14537
if test $ac_cv_header_time = yes; then
14538
 
14539
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14540
 
14541
fi
14542
 
14543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14544
$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14545
if test "${gcc_cv_header_string+set}" = set; then :
14546
  $as_echo_n "(cached) " >&6
14547
else
14548
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549
/* end confdefs.h.  */
14550
#include 
14551
#include 
14552
int
14553
main ()
14554
{
14555
 
14556
  ;
14557
  return 0;
14558
}
14559
_ACEOF
14560
if ac_fn_c_try_compile "$LINENO"; then :
14561
  gcc_cv_header_string=yes
14562
else
14563
  gcc_cv_header_string=no
14564
fi
14565
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566
fi
14567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14568
$as_echo "$gcc_cv_header_string" >&6; }
14569
if test $gcc_cv_header_string = yes; then
14570
 
14571
$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14572
 
14573
fi
14574
 
14575
for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14576
do :
14577
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14578
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14579
eval as_val=\$$as_ac_Header
14580
   if test "x$as_val" = x""yes; then :
14581
  cat >>confdefs.h <<_ACEOF
14582
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14583
_ACEOF
14584
 
14585
fi
14586
 
14587
done
14588
 
14589
 
14590
 
14591
 
14592
inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
14593
 
14594
acx_cv_header_stdint=stddef.h
14595
acx_cv_header_stdint_kind="(already complete)"
14596
for i in stdint.h $inttype_headers; do
14597
  unset ac_cv_type_uintptr_t
14598
  unset ac_cv_type_uintmax_t
14599
  unset ac_cv_type_int_least32_t
14600
  unset ac_cv_type_int_fast32_t
14601
  unset ac_cv_type_uint64_t
14602
  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14603
  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include 
14604
#include <$i>
14605
"
14606
if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14607
  acx_cv_header_stdint=$i
14608
else
14609
  continue
14610
fi
14611
 
14612
  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include 
14613
#include <$i>
14614
"
14615
if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14616
 
14617
else
14618
  acx_cv_header_stdint_kind="(mostly complete)"
14619
fi
14620
 
14621
  ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include 
14622
#include <$i>
14623
"
14624
if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14625
 
14626
else
14627
  acx_cv_header_stdint_kind="(mostly complete)"
14628
fi
14629
 
14630
  ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include 
14631
#include <$i>
14632
"
14633
if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14634
 
14635
else
14636
  acx_cv_header_stdint_kind="(mostly complete)"
14637
fi
14638
 
14639
  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include 
14640
#include <$i>
14641
"
14642
if test "x$ac_cv_type_uint64_t" = x""yes; then :
14643
 
14644
else
14645
  acx_cv_header_stdint_kind="(lacks uint64_t)"
14646
fi
14647
 
14648
  break
14649
done
14650
if test "$acx_cv_header_stdint" = stddef.h; then
14651
  acx_cv_header_stdint_kind="(lacks uintmax_t)"
14652
  for i in stdint.h $inttype_headers; do
14653
    unset ac_cv_type_uintptr_t
14654
    unset ac_cv_type_uint32_t
14655
    unset ac_cv_type_uint64_t
14656
    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14657
    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
14658
#include <$i>
14659
"
14660
if test "x$ac_cv_type_uint32_t" = x""yes; then :
14661
  acx_cv_header_stdint=$i
14662
else
14663
  continue
14664
fi
14665
 
14666
    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include 
14667
#include <$i>
14668
"
14669
if test "x$ac_cv_type_uint64_t" = x""yes; then :
14670
 
14671
fi
14672
 
14673
    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include 
14674
#include <$i>
14675
"
14676
if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14677
 
14678
fi
14679
 
14680
    break
14681
  done
14682
fi
14683
if test "$acx_cv_header_stdint" = stddef.h; then
14684
  acx_cv_header_stdint_kind="(u_intXX_t style)"
14685
  for i in sys/types.h $inttype_headers; do
14686
    unset ac_cv_type_u_int32_t
14687
    unset ac_cv_type_u_int64_t
14688
    $as_echo_n "looking for u_intXX_t types in $i, " >&6
14689
    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include 
14690
#include <$i>
14691
"
14692
if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14693
  acx_cv_header_stdint=$i
14694
else
14695
  continue
14696
fi
14697
 
14698
    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include 
14699
#include <$i>
14700
"
14701
if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14702
 
14703
fi
14704
 
14705
    break
14706
  done
14707
fi
14708
if test "$acx_cv_header_stdint" = stddef.h; then
14709
  acx_cv_header_stdint_kind="(using manual detection)"
14710
fi
14711
 
14712
test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14713
test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14714
test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14715
test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14716
test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14717
 
14718
# ----------------- Summarize what we found so far
14719
 
14720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14721
$as_echo_n "checking what to include in gstdint.h... " >&6; }
14722
 
14723
case `$as_basename -- gstdint.h ||
14724
$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14725
         Xgstdint.h : 'X\(//\)$' \| \
14726
         Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14727
$as_echo X/gstdint.h |
14728
    sed '/^.*\/\([^/][^/]*\)\/*$/{
14729
            s//\1/
14730
            q
14731
          }
14732
          /^X\/\(\/\/\)$/{
14733
            s//\1/
14734
            q
14735
          }
14736
          /^X\/\(\/\).*/{
14737
            s//\1/
14738
            q
14739
          }
14740
          s/.*/./; q'` in
14741
  stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14742
$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14743
  inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14744
$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14745
  *) ;;
14746
esac
14747
 
14748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14749
$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14750
 
14751
# ----------------- done included file, check C basic types --------
14752
 
14753
# Lacking an uintptr_t?  Test size of void *
14754
case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14755
  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14756
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14757
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14758
# This bug is HP SR number 8606223364.
14759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14760
$as_echo_n "checking size of void *... " >&6; }
14761
if test "${ac_cv_sizeof_void_p+set}" = set; then :
14762
  $as_echo_n "(cached) " >&6
14763
else
14764
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14765
 
14766
else
14767
  if test "$ac_cv_type_void_p" = yes; then
14768
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14769
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14770
{ as_fn_set_status 77
14771
as_fn_error "cannot compute sizeof (void *)
14772
See \`config.log' for more details." "$LINENO" 5; }; }
14773
   else
14774
     ac_cv_sizeof_void_p=0
14775
   fi
14776
fi
14777
 
14778
fi
14779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14780
$as_echo "$ac_cv_sizeof_void_p" >&6; }
14781
 
14782
 
14783
 
14784
cat >>confdefs.h <<_ACEOF
14785
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14786
_ACEOF
14787
 
14788
 ;;
14789
esac
14790
 
14791
# Lacking an uint64_t?  Test size of long
14792
case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14793
  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14794
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14795
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14796
# This bug is HP SR number 8606223364.
14797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14798
$as_echo_n "checking size of long... " >&6; }
14799
if test "${ac_cv_sizeof_long+set}" = set; then :
14800
  $as_echo_n "(cached) " >&6
14801
else
14802
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14803
 
14804
else
14805
  if test "$ac_cv_type_long" = yes; then
14806
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14807
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14808
{ as_fn_set_status 77
14809
as_fn_error "cannot compute sizeof (long)
14810
See \`config.log' for more details." "$LINENO" 5; }; }
14811
   else
14812
     ac_cv_sizeof_long=0
14813
   fi
14814
fi
14815
 
14816
fi
14817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14818
$as_echo "$ac_cv_sizeof_long" >&6; }
14819
 
14820
 
14821
 
14822
cat >>confdefs.h <<_ACEOF
14823
#define SIZEOF_LONG $ac_cv_sizeof_long
14824
_ACEOF
14825
 
14826
 ;;
14827
esac
14828
 
14829
if test $acx_cv_header_stdint = stddef.h; then
14830
  # Lacking a good header?  Test size of everything and deduce all types.
14831
  # The cast to long int works around a bug in the HP C Compiler
14832
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14833
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14834
# This bug is HP SR number 8606223364.
14835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14836
$as_echo_n "checking size of int... " >&6; }
14837
if test "${ac_cv_sizeof_int+set}" = set; then :
14838
  $as_echo_n "(cached) " >&6
14839
else
14840
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14841
 
14842
else
14843
  if test "$ac_cv_type_int" = yes; then
14844
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14845
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14846
{ as_fn_set_status 77
14847
as_fn_error "cannot compute sizeof (int)
14848
See \`config.log' for more details." "$LINENO" 5; }; }
14849
   else
14850
     ac_cv_sizeof_int=0
14851
   fi
14852
fi
14853
 
14854
fi
14855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14856
$as_echo "$ac_cv_sizeof_int" >&6; }
14857
 
14858
 
14859
 
14860
cat >>confdefs.h <<_ACEOF
14861
#define SIZEOF_INT $ac_cv_sizeof_int
14862
_ACEOF
14863
 
14864
 
14865
  # The cast to long int works around a bug in the HP C Compiler
14866
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14867
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14868
# This bug is HP SR number 8606223364.
14869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14870
$as_echo_n "checking size of short... " >&6; }
14871
if test "${ac_cv_sizeof_short+set}" = set; then :
14872
  $as_echo_n "(cached) " >&6
14873
else
14874
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14875
 
14876
else
14877
  if test "$ac_cv_type_short" = yes; then
14878
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14879
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14880
{ as_fn_set_status 77
14881
as_fn_error "cannot compute sizeof (short)
14882
See \`config.log' for more details." "$LINENO" 5; }; }
14883
   else
14884
     ac_cv_sizeof_short=0
14885
   fi
14886
fi
14887
 
14888
fi
14889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14890
$as_echo "$ac_cv_sizeof_short" >&6; }
14891
 
14892
 
14893
 
14894
cat >>confdefs.h <<_ACEOF
14895
#define SIZEOF_SHORT $ac_cv_sizeof_short
14896
_ACEOF
14897
 
14898
 
14899
  # The cast to long int works around a bug in the HP C Compiler
14900
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14901
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14902
# This bug is HP SR number 8606223364.
14903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14904
$as_echo_n "checking size of char... " >&6; }
14905
if test "${ac_cv_sizeof_char+set}" = set; then :
14906
  $as_echo_n "(cached) " >&6
14907
else
14908
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
14909
 
14910
else
14911
  if test "$ac_cv_type_char" = yes; then
14912
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14913
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14914
{ as_fn_set_status 77
14915
as_fn_error "cannot compute sizeof (char)
14916
See \`config.log' for more details." "$LINENO" 5; }; }
14917
   else
14918
     ac_cv_sizeof_char=0
14919
   fi
14920
fi
14921
 
14922
fi
14923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14924
$as_echo "$ac_cv_sizeof_char" >&6; }
14925
 
14926
 
14927
 
14928
cat >>confdefs.h <<_ACEOF
14929
#define SIZEOF_CHAR $ac_cv_sizeof_char
14930
_ACEOF
14931
 
14932
 
14933
 
14934
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14935
$as_echo_n "checking for type equivalent to int8_t... " >&6; }
14936
  case "$ac_cv_sizeof_char" in
14937
    1) acx_cv_type_int8_t=char ;;
14938
    *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
14939
  esac
14940
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14941
$as_echo "$acx_cv_type_int8_t" >&6; }
14942
 
14943
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14944
$as_echo_n "checking for type equivalent to int16_t... " >&6; }
14945
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14946
    2:*) acx_cv_type_int16_t=int ;;
14947
    *:2) acx_cv_type_int16_t=short ;;
14948
    *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
14949
  esac
14950
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14951
$as_echo "$acx_cv_type_int16_t" >&6; }
14952
 
14953
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14954
$as_echo_n "checking for type equivalent to int32_t... " >&6; }
14955
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14956
    4:*) acx_cv_type_int32_t=int ;;
14957
    *:4) acx_cv_type_int32_t=long ;;
14958
    *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
14959
  esac
14960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14961
$as_echo "$acx_cv_type_int32_t" >&6; }
14962
fi
14963
 
14964
# These tests are here to make the output prettier
14965
 
14966
if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14967
  case "$ac_cv_sizeof_long" in
14968
    8) acx_cv_type_int64_t=long ;;
14969
  esac
14970
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14971
$as_echo_n "checking for type equivalent to int64_t... " >&6; }
14972
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14973
$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14974
fi
14975
 
14976
# Now we can use the above types
14977
 
14978
if test "$ac_cv_type_uintptr_t" != yes; then
14979
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14980
$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14981
  case $ac_cv_sizeof_void_p in
14982
    2) acx_cv_type_intptr_t=int16_t ;;
14983
    4) acx_cv_type_intptr_t=int32_t ;;
14984
    8) acx_cv_type_intptr_t=int64_t ;;
14985
    *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
14986
  esac
14987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
14988
$as_echo "$acx_cv_type_intptr_t" >&6; }
14989
fi
14990
 
14991
# ----------------- done all checks, emit header -------------
14992
ac_config_commands="$ac_config_commands gstdint.h"
14993
 
14994
 
14995
 
14996
 
14997
# Check to see if -pthread or -lpthread is needed.  Prefer the former.
14998
# In case the pthread.h system header is not found, this test will fail.
14999
XPCFLAGS=""
15000
CFLAGS="$CFLAGS -pthread"
15001
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15002
/* end confdefs.h.  */
15003
#include 
15004
   void *g(void *d) { return NULL; }
15005
int
15006
main ()
15007
{
15008
pthread_t t; pthread_create(&t,NULL,g,NULL);
15009
  ;
15010
  return 0;
15011
}
15012
_ACEOF
15013
if ac_fn_c_try_link "$LINENO"; then :
15014
  XPCFLAGS=" -Wc,-pthread"
15015
else
15016
  CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15017
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018
/* end confdefs.h.  */
15019
#include 
15020
     void *g(void *d) { return NULL; }
15021
int
15022
main ()
15023
{
15024
pthread_t t; pthread_create(&t,NULL,g,NULL);
15025
  ;
15026
  return 0;
15027
}
15028
_ACEOF
15029
if ac_fn_c_try_link "$LINENO"; then :
15030
 
15031
else
15032
  as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15033
fi
15034
rm -f core conftest.err conftest.$ac_objext \
15035
    conftest$ac_exeext conftest.$ac_ext
15036
fi
15037
rm -f core conftest.err conftest.$ac_objext \
15038
    conftest$ac_exeext conftest.$ac_ext
15039
 
15040
# Check for functions needed.
15041
for ac_func in getloadavg clock_gettime strtoull
15042
do :
15043
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15044
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15045
eval as_val=\$$as_ac_var
15046
   if test "x$as_val" = x""yes; then :
15047
  cat >>confdefs.h <<_ACEOF
15048
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15049
_ACEOF
15050
 
15051
fi
15052
done
15053
 
15054
 
15055
# Check for broken semaphore implementation on darwin.
15056
# sem_init returns: sem_init error: Function not implemented.
15057
case "$host" in
15058
  *-darwin*)
15059
 
15060
$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15061
 
15062
    ;;
15063
esac
15064
 
15065
 # Check whether --enable-linux-futex was given.
15066
if test "${enable_linux_futex+set}" = set; then :
15067
  enableval=$enable_linux_futex;
15068
      case "$enableval" in
15069
       yes|no|default) ;;
15070
       *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15071
                          esac
15072
 
15073
else
15074
  enable_linux_futex=default
15075
fi
15076
 
15077
 
15078
case "$target" in
15079
  *-linux*)
15080
    case "$enable_linux_futex" in
15081
      default)
15082
        # If headers don't have gettid/futex syscalls definition, then
15083
        # default to no, otherwise there will be compile time failures.
15084
        # Otherwise, default to yes.  If we don't detect we are
15085
        # compiled/linked against NPTL and not cross-compiling, check
15086
        # if programs are run by default against NPTL and if not, issue
15087
        # a warning.
15088
        enable_linux_futex=no
15089
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090
/* end confdefs.h.  */
15091
#include 
15092
           int lk;
15093
int
15094
main ()
15095
{
15096
syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15097
  ;
15098
  return 0;
15099
}
15100
_ACEOF
15101
if ac_fn_c_try_link "$LINENO"; then :
15102
  save_LIBS="$LIBS"
15103
           LIBS="-lpthread $LIBS"
15104
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105
/* end confdefs.h.  */
15106
#ifndef _GNU_SOURCE
15107
             #define _GNU_SOURCE 1
15108
             #endif
15109
             #include 
15110
             pthread_t th; void *status;
15111
int
15112
main ()
15113
{
15114
pthread_tryjoin_np (th, &status);
15115
  ;
15116
  return 0;
15117
}
15118
_ACEOF
15119
if ac_fn_c_try_link "$LINENO"; then :
15120
  enable_linux_futex=yes
15121
else
15122
  if test x$cross_compiling = xno; then
15123
               if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15124
                  | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15125
                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15126
If so, please configure with --disable-linux-futex" >&5
15127
$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15128
If so, please configure with --disable-linux-futex" >&2;}
15129
               fi
15130
             fi
15131
             enable_linux_futex=yes
15132
fi
15133
rm -f core conftest.err conftest.$ac_objext \
15134
    conftest$ac_exeext conftest.$ac_ext
15135
           LIBS="$save_LIBS"
15136
fi
15137
rm -f core conftest.err conftest.$ac_objext \
15138
    conftest$ac_exeext conftest.$ac_ext
15139
        ;;
15140
      yes)
15141
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142
/* end confdefs.h.  */
15143
#include 
15144
           int lk;
15145
int
15146
main ()
15147
{
15148
syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15149
  ;
15150
  return 0;
15151
}
15152
_ACEOF
15153
if ac_fn_c_try_link "$LINENO"; then :
15154
 
15155
else
15156
  as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15157
fi
15158
rm -f core conftest.err conftest.$ac_objext \
15159
    conftest$ac_exeext conftest.$ac_ext
15160
        ;;
15161
    esac
15162
    ;;
15163
  *)
15164
    enable_linux_futex=no
15165
    ;;
15166
esac
15167
if test x$enable_linux_futex = xyes; then
15168
  :
15169
fi
15170
 
15171
 
15172
# Check for pthread_{,attr_}[sg]etaffinity_np.
15173
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174
/* end confdefs.h.  */
15175
#define _GNU_SOURCE
15176
   #include 
15177
int
15178
main ()
15179
{
15180
cpu_set_t cpuset;
15181
   pthread_attr_t attr;
15182
   pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15183
   if (CPU_ISSET (0, &cpuset))
15184
     CPU_SET (1, &cpuset);
15185
   else
15186
     CPU_ZERO (&cpuset);
15187
   pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15188
   pthread_attr_init (&attr);
15189
   pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15190
   pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15191
  ;
15192
  return 0;
15193
}
15194
_ACEOF
15195
if ac_fn_c_try_link "$LINENO"; then :
15196
 
15197
$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15198
 
15199
fi
15200
rm -f core conftest.err conftest.$ac_objext \
15201
    conftest$ac_exeext conftest.$ac_ext
15202
 
15203
# At least for glibc, clock_gettime is in librt.  But don't pull that
15204
# in if it still doesn't give us the function we want.
15205
if test $ac_cv_func_clock_gettime = no; then
15206
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15207
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15208
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15209
  $as_echo_n "(cached) " >&6
15210
else
15211
  ac_check_lib_save_LIBS=$LIBS
15212
LIBS="-lrt  $LIBS"
15213
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214
/* end confdefs.h.  */
15215
 
15216
/* Override any GCC internal prototype to avoid an error.
15217
   Use char because int might match the return type of a GCC
15218
   builtin and then its argument prototype would still apply.  */
15219
#ifdef __cplusplus
15220
extern "C"
15221
#endif
15222
char clock_gettime ();
15223
int
15224
main ()
15225
{
15226
return clock_gettime ();
15227
  ;
15228
  return 0;
15229
}
15230
_ACEOF
15231
if ac_fn_c_try_link "$LINENO"; then :
15232
  ac_cv_lib_rt_clock_gettime=yes
15233
else
15234
  ac_cv_lib_rt_clock_gettime=no
15235
fi
15236
rm -f core conftest.err conftest.$ac_objext \
15237
    conftest$ac_exeext conftest.$ac_ext
15238
LIBS=$ac_check_lib_save_LIBS
15239
fi
15240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15241
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15242
if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15243
  LIBS="-lrt $LIBS"
15244
 
15245
$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15246
 
15247
fi
15248
 
15249
fi
15250
 
15251
# See if we support thread-local storage.
15252
 
15253
 
15254
   # Check whether --enable-tls was given.
15255
if test "${enable_tls+set}" = set; then :
15256
  enableval=$enable_tls;
15257
      case "$enableval" in
15258
       yes|no) ;;
15259
       *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15260
      esac
15261
 
15262
else
15263
  enable_tls=yes
15264
fi
15265
 
15266
 
15267
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15268
$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15269
if test "${gcc_cv_have_tls+set}" = set; then :
15270
  $as_echo_n "(cached) " >&6
15271
else
15272
 
15273
    if test "$cross_compiling" = yes; then :
15274
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275
/* end confdefs.h.  */
15276
__thread int a; int b; int main() { return a = b; }
15277
_ACEOF
15278
if ac_fn_c_try_link "$LINENO"; then :
15279
  chktls_save_LDFLAGS="$LDFLAGS"
15280
                          case $host in
15281
            *-*-linux*)
15282
              LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15283
              ;;
15284
          esac
15285
          chktls_save_CFLAGS="$CFLAGS"
15286
          CFLAGS="-fPIC $CFLAGS"
15287
                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288
/* end confdefs.h.  */
15289
int f() { return 0; }
15290
_ACEOF
15291
if ac_fn_c_try_link "$LINENO"; then :
15292
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293
/* end confdefs.h.  */
15294
__thread int a; int b; int f() { return a = b; }
15295
_ACEOF
15296
if ac_fn_c_try_link "$LINENO"; then :
15297
  gcc_cv_have_tls=yes
15298
else
15299
  gcc_cv_have_tls=no
15300
fi
15301
rm -f core conftest.err conftest.$ac_objext \
15302
    conftest$ac_exeext conftest.$ac_ext
15303
else
15304
  gcc_cv_have_tls=yes
15305
fi
15306
rm -f core conftest.err conftest.$ac_objext \
15307
    conftest$ac_exeext conftest.$ac_ext
15308
          CFLAGS="$chktls_save_CFLAGS"
15309
          LDFLAGS="$chktls_save_LDFLAGS"
15310
else
15311
  gcc_cv_have_tls=no
15312
fi
15313
rm -f core conftest.err conftest.$ac_objext \
15314
    conftest$ac_exeext conftest.$ac_ext
15315
 
15316
 
15317
else
15318
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319
/* end confdefs.h.  */
15320
__thread int a; int b; int main() { return a = b; }
15321
_ACEOF
15322
if ac_fn_c_try_run "$LINENO"; then :
15323
                      chktls_save_LDFLAGS="$LDFLAGS"
15324
      LDFLAGS="-static $LDFLAGS"
15325
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326
/* end confdefs.h.  */
15327
int main() { return 0; }
15328
_ACEOF
15329
if ac_fn_c_try_link "$LINENO"; then :
15330
  if test "$cross_compiling" = yes; then :
15331
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15332
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15333
as_fn_error "cannot run test program while cross compiling
15334
See \`config.log' for more details." "$LINENO" 5; }
15335
else
15336
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337
/* end confdefs.h.  */
15338
__thread int a; int b; int main() { return a = b; }
15339
_ACEOF
15340
if ac_fn_c_try_run "$LINENO"; then :
15341
  gcc_cv_have_tls=yes
15342
else
15343
  gcc_cv_have_tls=no
15344
fi
15345
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15346
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15347
fi
15348
 
15349
else
15350
  gcc_cv_have_tls=yes
15351
fi
15352
rm -f core conftest.err conftest.$ac_objext \
15353
    conftest$ac_exeext conftest.$ac_ext
15354
      LDFLAGS="$chktls_save_LDFLAGS"
15355
      if test $gcc_cv_have_tls = yes; then
15356
                                                chktls_save_CFLAGS="$CFLAGS"
15357
        thread_CFLAGS=failed
15358
        for flag in '' '-pthread' '-lpthread'; do
15359
          CFLAGS="$flag $chktls_save_CFLAGS"
15360
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361
/* end confdefs.h.  */
15362
#include 
15363
                void *g(void *d) { return NULL; }
15364
int
15365
main ()
15366
{
15367
pthread_t t; pthread_create(&t,NULL,g,NULL);
15368
  ;
15369
  return 0;
15370
}
15371
_ACEOF
15372
if ac_fn_c_try_link "$LINENO"; then :
15373
  thread_CFLAGS="$flag"
15374
fi
15375
rm -f core conftest.err conftest.$ac_objext \
15376
    conftest$ac_exeext conftest.$ac_ext
15377
          if test "X$thread_CFLAGS" != Xfailed; then
15378
            break
15379
          fi
15380
        done
15381
        CFLAGS="$chktls_save_CFLAGS"
15382
        if test "X$thread_CFLAGS" != Xfailed; then
15383
          CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15384
                                                  if test "$cross_compiling" = yes; then :
15385
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15386
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15387
as_fn_error "cannot run test program while cross compiling
15388
See \`config.log' for more details." "$LINENO" 5; }
15389
else
15390
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391
/* end confdefs.h.  */
15392
#include 
15393
                __thread int a;
15394
                static int *volatile a_in_other_thread;
15395
                static void *
15396
                thread_func (void *arg)
15397
                {
15398
                  a_in_other_thread = &a;
15399
                  return (void *)0;
15400
                }
15401
int
15402
main ()
15403
{
15404
pthread_t thread;
15405
                void *thread_retval;
15406
                int *volatile a_in_main_thread;
15407
                a_in_main_thread = &a;
15408
                if (pthread_create (&thread, (pthread_attr_t *)0,
15409
                                    thread_func, (void *)0))
15410
                  return 0;
15411
                if (pthread_join (thread, &thread_retval))
15412
                  return 0;
15413
                return (a_in_other_thread == a_in_main_thread);
15414
  ;
15415
  return 0;
15416
}
15417
_ACEOF
15418
if ac_fn_c_try_run "$LINENO"; then :
15419
  gcc_cv_have_tls=yes
15420
else
15421
  gcc_cv_have_tls=no
15422
fi
15423
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15424
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15425
fi
15426
 
15427
          CFLAGS="$chktls_save_CFLAGS"
15428
        fi
15429
      fi
15430
else
15431
  gcc_cv_have_tls=no
15432
fi
15433
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15434
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15435
fi
15436
 
15437
fi
15438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15439
$as_echo "$gcc_cv_have_tls" >&6; }
15440
  if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15441
 
15442
$as_echo "#define HAVE_TLS 1" >>confdefs.h
15443
 
15444
  fi
15445
 
15446
# See what sort of export controls are availible.
15447
 
15448
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15449
$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15450
if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15451
  $as_echo_n "(cached) " >&6
15452
else
15453
 
15454
  save_CFLAGS="$CFLAGS"
15455
  CFLAGS="$CFLAGS -Werror"
15456
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457
/* end confdefs.h.  */
15458
void __attribute__((visibility("hidden"))) foo(void) { }
15459
int
15460
main ()
15461
{
15462
 
15463
  ;
15464
  return 0;
15465
}
15466
_ACEOF
15467
if ac_fn_c_try_compile "$LINENO"; then :
15468
  libgomp_cv_have_attribute_visibility=yes
15469
else
15470
  libgomp_cv_have_attribute_visibility=no
15471
fi
15472
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15473
  CFLAGS="$save_CFLAGS"
15474
fi
15475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15476
$as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15477
  if test $libgomp_cv_have_attribute_visibility = yes; then
15478
 
15479
$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15480
 
15481
  fi
15482
 
15483
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15484
$as_echo_n "checking whether the target supports dllexport... " >&6; }
15485
if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15486
  $as_echo_n "(cached) " >&6
15487
else
15488
 
15489
  save_CFLAGS="$CFLAGS"
15490
  CFLAGS="$CFLAGS -Werror"
15491
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15492
/* end confdefs.h.  */
15493
void __attribute__((dllexport)) foo(void) { }
15494
int
15495
main ()
15496
{
15497
 
15498
  ;
15499
  return 0;
15500
}
15501
_ACEOF
15502
if ac_fn_c_try_compile "$LINENO"; then :
15503
  libgomp_cv_have_attribute_dllexport=yes
15504
else
15505
  libgomp_cv_have_attribute_dllexport=no
15506
fi
15507
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508
  CFLAGS="$save_CFLAGS"
15509
fi
15510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15511
$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15512
  if test $libgomp_cv_have_attribute_dllexport = yes; then
15513
 
15514
$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15515
 
15516
  fi
15517
 
15518
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15519
$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15520
if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15521
  $as_echo_n "(cached) " >&6
15522
else
15523
 
15524
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525
/* end confdefs.h.  */
15526
 
15527
void foo(void) { }
15528
extern void bar(void) __attribute__((alias("foo")));
15529
int
15530
main ()
15531
{
15532
bar();
15533
  ;
15534
  return 0;
15535
}
15536
_ACEOF
15537
if ac_fn_c_try_link "$LINENO"; then :
15538
  libgomp_cv_have_attribute_alias=yes
15539
else
15540
  libgomp_cv_have_attribute_alias=no
15541
fi
15542
rm -f core conftest.err conftest.$ac_objext \
15543
    conftest$ac_exeext conftest.$ac_ext
15544
fi
15545
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15546
$as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15547
  if test $libgomp_cv_have_attribute_alias = yes; then
15548
 
15549
$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15550
 
15551
  fi
15552
 
15553
 
15554
# Check whether --with-gnu-ld was given.
15555
if test "${with_gnu_ld+set}" = set; then :
15556
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15557
else
15558
  with_gnu_ld=no
15559
fi
15560
 
15561
ac_prog=ld
15562
if test "$GCC" = yes; then
15563
  # Check if gcc -print-prog-name=ld gives a path.
15564
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15565
$as_echo_n "checking for ld used by $CC... " >&6; }
15566
  case $host in
15567
  *-*-mingw*)
15568
    # gcc leaves a trailing carriage return which upsets mingw
15569
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15570
  *)
15571
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15572
  esac
15573
  case $ac_prog in
15574
    # Accept absolute paths.
15575
    [\\/]* | ?:[\\/]*)
15576
      re_direlt='/[^/][^/]*/\.\./'
15577
      # Canonicalize the pathname of ld
15578
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15579
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15580
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15581
      done
15582
      test -z "$LD" && LD="$ac_prog"
15583
      ;;
15584
  "")
15585
    # If it fails, then pretend we aren't using GCC.
15586
    ac_prog=ld
15587
    ;;
15588
  *)
15589
    # If it is relative, then search for the first ld in PATH.
15590
    with_gnu_ld=unknown
15591
    ;;
15592
  esac
15593
elif test "$with_gnu_ld" = yes; then
15594
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15595
$as_echo_n "checking for GNU ld... " >&6; }
15596
else
15597
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15598
$as_echo_n "checking for non-GNU ld... " >&6; }
15599
fi
15600
if test "${lt_cv_path_LD+set}" = set; then :
15601
  $as_echo_n "(cached) " >&6
15602
else
15603
  if test -z "$LD"; then
15604
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15605
  for ac_dir in $PATH; do
15606
    IFS="$lt_save_ifs"
15607
    test -z "$ac_dir" && ac_dir=.
15608
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15609
      lt_cv_path_LD="$ac_dir/$ac_prog"
15610
      # Check to see if the program is GNU ld.  I'd rather use --version,
15611
      # but apparently some variants of GNU ld only accept -v.
15612
      # Break only if it was the GNU/non-GNU ld that we prefer.
15613
      case `"$lt_cv_path_LD" -v 2>&1 
15614
      *GNU* | *'with BFD'*)
15615
        test "$with_gnu_ld" != no && break
15616
        ;;
15617
      *)
15618
        test "$with_gnu_ld" != yes && break
15619
        ;;
15620
      esac
15621
    fi
15622
  done
15623
  IFS="$lt_save_ifs"
15624
else
15625
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15626
fi
15627
fi
15628
 
15629
LD="$lt_cv_path_LD"
15630
if test -n "$LD"; then
15631
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15632
$as_echo "$LD" >&6; }
15633
else
15634
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15635
$as_echo "no" >&6; }
15636
fi
15637
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15639
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15640
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15641
  $as_echo_n "(cached) " >&6
15642
else
15643
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15644
case `$LD -v 2>&1 
15645
*GNU* | *'with BFD'*)
15646
  lt_cv_prog_gnu_ld=yes
15647
  ;;
15648
*)
15649
  lt_cv_prog_gnu_ld=no
15650
  ;;
15651
esac
15652
fi
15653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15654
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15655
with_gnu_ld=$lt_cv_prog_gnu_ld
15656
 
15657
 
15658
 
15659
 
15660
 
15661
 
15662
 
15663
  # If we're not using GNU ld, then there's no point in even trying these
15664
  # tests.  Check for that first.  We should have already tested for gld
15665
  # by now (in libtool), but require it now just to be safe...
15666
  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15667
  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15668
 
15669
 
15670
 
15671
  # The name set by libtool depends on the version of libtool.  Shame on us
15672
  # for depending on an impl detail, but c'est la vie.  Older versions used
15673
  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15674
  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15675
  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
15676
  # set (hence we're using an older libtool), then set it.
15677
  if test x${with_gnu_ld+set} != xset; then
15678
    if test x${ac_cv_prog_gnu_ld+set} != xset; then
15679
      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
15680
      with_gnu_ld=no
15681
    else
15682
      with_gnu_ld=$ac_cv_prog_gnu_ld
15683
    fi
15684
  fi
15685
 
15686
  # Start by getting the version number.  I think the libtool test already
15687
  # does some of this, but throws away the result.
15688
  libgomp_ld_is_gold=no
15689
  if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15690
    libgomp_ld_is_gold=yes
15691
  fi
15692
 
15693
  ldver=`$LD --version 2>/dev/null |
15694
         sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
15695
 
15696
  libgomp_gnu_ld_version=`echo $ldver | \
15697
         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15698
 
15699
  # Set --gc-sections.
15700
  if test "$with_gnu_ld" = "notbroken"; then
15701
    # GNU ld it is!  Joy and bunny rabbits!
15702
 
15703
    # All these tests are for C++; save the language and the compiler flags.
15704
    # Need to do this so that g++ won't try to link in libstdc++
15705
    ac_test_CFLAGS="${CFLAGS+set}"
15706
    ac_save_CFLAGS="$CFLAGS"
15707
    CFLAGS='-x c++  -Wl,--gc-sections'
15708
 
15709
    # Check for -Wl,--gc-sections
15710
    # XXX This test is broken at the moment, as symbols required for linking
15711
    # are now in libsupc++ (not built yet).  In addition, this test has
15712
    # cored on solaris in the past.  In addition, --gc-sections doesn't
15713
    # really work at the moment (keeps on discarding used sections, first
15714
    # .eh_frame and now some of the glibc sections for iconv).
15715
    # Bzzzzt.  Thanks for playing, maybe next time.
15716
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15717
$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15718
    if test "$cross_compiling" = yes; then :
15719
  ac_sectionLDflags=yes
15720
else
15721
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722
/* end confdefs.h.  */
15723
 
15724
     int main(void)
15725
     {
15726
       try { throw 1; }
15727
       catch (...) { };
15728
       return 0;
15729
     }
15730
 
15731
_ACEOF
15732
if ac_fn_c_try_run "$LINENO"; then :
15733
  ac_sectionLDflags=yes
15734
else
15735
  ac_sectionLDflags=no
15736
fi
15737
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15738
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15739
fi
15740
 
15741
    if test "$ac_test_CFLAGS" = set; then
15742
      CFLAGS="$ac_save_CFLAGS"
15743
    else
15744
      # this is the suspicious part
15745
      CFLAGS=''
15746
    fi
15747
    if test "$ac_sectionLDflags" = "yes"; then
15748
      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15749
    fi
15750
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15751
$as_echo "$ac_sectionLDflags" >&6; }
15752
  fi
15753
 
15754
  # Set linker optimization flags.
15755
  if test x"$with_gnu_ld" = x"yes"; then
15756
    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15757
  fi
15758
 
15759
 
15760
 
15761
 
15762
 
15763
 
15764
 # Check whether --enable-symvers was given.
15765
if test "${enable_symvers+set}" = set; then :
15766
  enableval=$enable_symvers;
15767
      case "$enableval" in
15768
       yes|no|gnu*|sun) ;;
15769
       *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15770
                          esac
15771
 
15772
else
15773
  enable_symvers=yes
15774
fi
15775
 
15776
 
15777
 
15778
# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15779
# don't know enough about $LD to do tricks...
15780
 
15781
 
15782
# Turn a 'yes' into a suitable default.
15783
if test x$enable_symvers = xyes ; then
15784
  # FIXME  The following test is too strict, in theory.
15785
  if test $enable_shared = no || test "x$LD" = x; then
15786
    enable_symvers=no
15787
  else
15788
    if test $with_gnu_ld = yes ; then
15789
      enable_symvers=gnu
15790
    else
15791
      case ${target_os} in
15792
        # Sun symbol versioning exists since Solaris 2.5.
15793
        solaris2.[5-9]* | solaris2.1[0-9]*)
15794
          enable_symvers=sun ;;
15795
        *)
15796
          enable_symvers=no ;;
15797
      esac
15798
    fi
15799
  fi
15800
fi
15801
 
15802
# Check if 'sun' was requested on non-Solaris 2 platforms.
15803
if test x$enable_symvers = xsun ; then
15804
  case ${target_os} in
15805
    solaris2*)
15806
      # All fine.
15807
      ;;
15808
    *)
15809
      # Unlikely to work.
15810
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15811
$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15812
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15813
$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15814
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15815
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15816
      enable_symvers=no
15817
      ;;
15818
  esac
15819
fi
15820
 
15821
# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15822
if test $enable_symvers != no; then
15823
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15824
$as_echo_n "checking for shared libgcc... " >&6; }
15825
  ac_save_CFLAGS="$CFLAGS"
15826
  CFLAGS=' -lgcc_s'
15827
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828
/* end confdefs.h.  */
15829
 
15830
int
15831
main ()
15832
{
15833
return 0;
15834
  ;
15835
  return 0;
15836
}
15837
_ACEOF
15838
if ac_fn_c_try_link "$LINENO"; then :
15839
  libgomp_shared_libgcc=yes
15840
else
15841
  libgomp_shared_libgcc=no
15842
fi
15843
rm -f core conftest.err conftest.$ac_objext \
15844
    conftest$ac_exeext conftest.$ac_ext
15845
  CFLAGS="$ac_save_CFLAGS"
15846
  if test $libgomp_shared_libgcc = no; then
15847
    cat > conftest.c <
15848
int main (void) { return 0; }
15849
EOF
15850
    libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15851
                             -shared -shared-libgcc -o conftest.so \
15852
                             conftest.c -v 2>&1 >/dev/null \
15853
                             | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15854
    rm -f conftest.c conftest.so
15855
    if test x${libgomp_libgcc_s_suffix+set} = xset; then
15856
      CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15857
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858
/* end confdefs.h.  */
15859
 
15860
int
15861
main ()
15862
{
15863
return 0;
15864
  ;
15865
  return 0;
15866
}
15867
_ACEOF
15868
if ac_fn_c_try_link "$LINENO"; then :
15869
  libgomp_shared_libgcc=yes
15870
fi
15871
rm -f core conftest.err conftest.$ac_objext \
15872
    conftest$ac_exeext conftest.$ac_ext
15873
      CFLAGS="$ac_save_CFLAGS"
15874
    fi
15875
  fi
15876
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15877
$as_echo "$libgomp_shared_libgcc" >&6; }
15878
fi
15879
 
15880
# For GNU ld, we need at least this version.  The format is described in
15881
# LIBGOMP_CHECK_LINKER_FEATURES above.
15882
libgomp_min_gnu_ld_version=21400
15883
# XXXXXXXXXXX libgomp_gnu_ld_version=21390
15884
 
15885
# Check to see if unspecified "yes" value can win, given results above.
15886
# Change "yes" into either "no" or a style name.
15887
if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
15888
  if test $with_gnu_ld = yes; then
15889
    if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15890
      enable_symvers=gnu
15891
    elif test $libgomp_ld_is_gold = yes ; then
15892
      enable_symvers=gnu
15893
    else
15894
      # The right tools, the right setup, but too old.  Fallbacks?
15895
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15896
$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15897
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15898
$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15899
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15900
$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15901
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15902
$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15903
      if test $libgomp_gnu_ld_version -ge 21200 ; then
15904
        # Globbing fix is present, proper block support is not.
15905
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15906
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15907
        enable_symvers=no
15908
      else
15909
        # 2.11 or older.
15910
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15911
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15912
        enable_symvers=no
15913
      fi
15914
    fi
15915
  elif test $enable_symvers = sun; then
15916
    : All interesting versions of Sun ld support sun style symbol versioning.
15917
  else
15918
    # just fail for now
15919
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15920
$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15921
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15922
$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15923
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15924
$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15925
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15926
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15927
    enable_symvers=no
15928
  fi
15929
fi
15930
 
15931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15932
$as_echo_n "checking whether the target supports .symver directive... " >&6; }
15933
if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15934
  $as_echo_n "(cached) " >&6
15935
else
15936
 
15937
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15938
/* end confdefs.h.  */
15939
void foo (void); __asm (".symver foo, bar@SYMVER");
15940
int
15941
main ()
15942
{
15943
 
15944
  ;
15945
  return 0;
15946
}
15947
_ACEOF
15948
if ac_fn_c_try_compile "$LINENO"; then :
15949
  libgomp_cv_have_as_symver_directive=yes
15950
else
15951
  libgomp_cv_have_as_symver_directive=no
15952
fi
15953
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954
fi
15955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15956
$as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15957
if test $libgomp_cv_have_as_symver_directive = yes; then
15958
 
15959
$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
15960
 
15961
fi
15962
 
15963
 if test $enable_symvers != no; then
15964
  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15965
  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
15966
else
15967
  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15968
  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15969
fi
15970
 
15971
 if test $enable_symvers = gnu; then
15972
  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15973
  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15974
else
15975
  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15976
  LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15977
fi
15978
 
15979
 if test $enable_symvers = sun; then
15980
  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15981
  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15982
else
15983
  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15984
  LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15985
fi
15986
 
15987
{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15988
$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15989
 
15990
if test $enable_symvers != no ; then
15991
   case ${target_os} in
15992
     # The Solaris 2 runtime linker doesn't support the GNU extension of
15993
     # binding the same symbol to different versions
15994
     solaris2*)
15995
       ;;
15996
     # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
15997
     *)
15998
 
15999
$as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16000
 
16001
       ;;
16002
    esac
16003
fi
16004
 
16005
 
16006
if test $enable_symvers = gnu; then
16007
 
16008
$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16009
 
16010
fi
16011
 
16012
# Get target configury.
16013
. ${srcdir}/configure.tgt
16014
CFLAGS="$save_CFLAGS $XCFLAGS"
16015
 
16016
# Check for __sync_val_compare_and_swap, but only after the target has
16017
# had a chance to set XCFLAGS.
16018
 
16019
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16020
$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16021
if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16022
  $as_echo_n "(cached) " >&6
16023
else
16024
 
16025
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026
/* end confdefs.h.  */
16027
 
16028
int
16029
main ()
16030
{
16031
int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16032
  ;
16033
  return 0;
16034
}
16035
_ACEOF
16036
if ac_fn_c_try_link "$LINENO"; then :
16037
  libgomp_cv_have_sync_builtins=yes
16038
else
16039
  libgomp_cv_have_sync_builtins=no
16040
fi
16041
rm -f core conftest.err conftest.$ac_objext \
16042
    conftest$ac_exeext conftest.$ac_ext
16043
fi
16044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16045
$as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16046
  if test $libgomp_cv_have_sync_builtins = yes; then
16047
 
16048
$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16049
 
16050
  fi
16051
 
16052
XCFLAGS="$XCFLAGS$XPCFLAGS"
16053
 
16054
 
16055
 
16056
 
16057
 
16058
# Cleanup and exit.
16059
CFLAGS="$save_CFLAGS"
16060
cat >confcache <<\_ACEOF
16061
# This file is a shell script that caches the results of configure
16062
# tests run on this system so they can be shared between configure
16063
# scripts and configure runs, see configure's option --config-cache.
16064
# It is not useful on other systems.  If it contains results you don't
16065
# want to keep, you may remove or edit it.
16066
#
16067
# config.status only pays attention to the cache file if you give it
16068
# the --recheck option to rerun configure.
16069
#
16070
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16071
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16072
# following values.
16073
 
16074
_ACEOF
16075
 
16076
# The following way of writing the cache mishandles newlines in values,
16077
# but we know of no workaround that is simple, portable, and efficient.
16078
# So, we kill variables containing newlines.
16079
# Ultrix sh set writes to stderr and can't be redirected directly,
16080
# and sets the high bit in the cache file unless we assign to the vars.
16081
(
16082
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16083
    eval ac_val=\$$ac_var
16084
    case $ac_val in #(
16085
    *${as_nl}*)
16086
      case $ac_var in #(
16087
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16088
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16089
      esac
16090
      case $ac_var in #(
16091
      _ | IFS | as_nl) ;; #(
16092
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16093
      *) { eval $ac_var=; unset $ac_var;} ;;
16094
      esac ;;
16095
    esac
16096
  done
16097
 
16098
  (set) 2>&1 |
16099
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16100
    *${as_nl}ac_space=\ *)
16101
      # `set' does not quote correctly, so add quotes: double-quote
16102
      # substitution turns \\\\ into \\, and sed turns \\ into \.
16103
      sed -n \
16104
        "s/'/'\\\\''/g;
16105
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16106
      ;; #(
16107
    *)
16108
      # `set' quotes correctly as required by POSIX, so do not add quotes.
16109
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16110
      ;;
16111
    esac |
16112
    sort
16113
) |
16114
  sed '
16115
     /^ac_cv_env_/b end
16116
     t clear
16117
     :clear
16118
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16119
     t end
16120
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16121
     :end' >>confcache
16122
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16123
  if test -w "$cache_file"; then
16124
    test "x$cache_file" != "x/dev/null" &&
16125
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16126
$as_echo "$as_me: updating cache $cache_file" >&6;}
16127
    cat confcache >$cache_file
16128
  else
16129
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16130
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16131
  fi
16132
fi
16133
rm -f confcache
16134
 
16135
if test ${multilib} = yes; then
16136
  multilib_arg="--enable-multilib"
16137
else
16138
  multilib_arg=
16139
fi
16140
 
16141
# Set up the set of libraries that we need to link against for libgomp.
16142
# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16143
# which will force linkage against -lpthread (or equivalent for the system).
16144
# That's not 100% ideal, but about the best we can do easily.
16145
if test $enable_shared = yes; then
16146
  link_gomp="-lgomp %{static: $LIBS}"
16147
else
16148
  link_gomp="-lgomp $LIBS"
16149
fi
16150
 
16151
 
16152
 if test "$ac_cv_fc_compiler_gnu" = yes; then
16153
  USE_FORTRAN_TRUE=
16154
  USE_FORTRAN_FALSE='#'
16155
else
16156
  USE_FORTRAN_TRUE='#'
16157
  USE_FORTRAN_FALSE=
16158
fi
16159
 
16160
 
16161
# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16162
# and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
16163
# the underscore here and update the PREREQ.  If it doesn't, then we'll
16164
# need to copy this macro to our acinclude.m4.
16165
save_CFLAGS="$CFLAGS"
16166
for i in $config_path; do
16167
  if test -f $srcdir/config/$i/omp-lock.h; then
16168
    CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16169
    break
16170
  fi
16171
done
16172
 
16173
if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE"        ""; then :
16174
 
16175
else
16176
  as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16177
fi
16178
 
16179
 
16180
if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN"        ""; then :
16181
 
16182
fi
16183
 
16184
 
16185
if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE"        ""; then :
16186
 
16187
fi
16188
 
16189
 
16190
if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN"        ""; then :
16191
 
16192
fi
16193
 
16194
 
16195
if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE"        ""; then :
16196
 
16197
else
16198
  as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16199
fi
16200
 
16201
 
16202
if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN"        ""; then :
16203
 
16204
fi
16205
 
16206
 
16207
if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE"        ""; then :
16208
 
16209
fi
16210
 
16211
 
16212
if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN"        ""; then :
16213
 
16214
fi
16215
 
16216
 
16217
 
16218
# If the lock fits in an integer, then arrange for Fortran to use that
16219
# integer.  If it doesn't, then arrange for Fortran to use a pointer.
16220
# Except that we don't have a way at present to multi-lib the installed
16221
# Fortran modules, so we assume 8 bytes for pointers, regardless of the
16222
# actual target.
16223
OMP_LOCK_KIND=$OMP_LOCK_SIZE
16224
OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16225
if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16226
  OMP_LOCK_KIND=8
16227
fi
16228
if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16229
  OMP_NEST_LOCK_KIND=8
16230
fi
16231
OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16232
OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16233
if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16234
  OMP_LOCK_25_KIND=8
16235
fi
16236
if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16237
  OMP_NEST_LOCK_25_KIND=8
16238
fi
16239
 
16240
 
16241
 
16242
 
16243
 
16244
 
16245
 
16246
 
16247
 
16248
 
16249
 
16250
 
16251
 
16252
CFLAGS="$save_CFLAGS"
16253
 
16254
ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16255
 
16256
ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16257
 
16258
cat >confcache <<\_ACEOF
16259
# This file is a shell script that caches the results of configure
16260
# tests run on this system so they can be shared between configure
16261
# scripts and configure runs, see configure's option --config-cache.
16262
# It is not useful on other systems.  If it contains results you don't
16263
# want to keep, you may remove or edit it.
16264
#
16265
# config.status only pays attention to the cache file if you give it
16266
# the --recheck option to rerun configure.
16267
#
16268
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16269
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16270
# following values.
16271
 
16272
_ACEOF
16273
 
16274
# The following way of writing the cache mishandles newlines in values,
16275
# but we know of no workaround that is simple, portable, and efficient.
16276
# So, we kill variables containing newlines.
16277
# Ultrix sh set writes to stderr and can't be redirected directly,
16278
# and sets the high bit in the cache file unless we assign to the vars.
16279
(
16280
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16281
    eval ac_val=\$$ac_var
16282
    case $ac_val in #(
16283
    *${as_nl}*)
16284
      case $ac_var in #(
16285
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16286
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16287
      esac
16288
      case $ac_var in #(
16289
      _ | IFS | as_nl) ;; #(
16290
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16291
      *) { eval $ac_var=; unset $ac_var;} ;;
16292
      esac ;;
16293
    esac
16294
  done
16295
 
16296
  (set) 2>&1 |
16297
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16298
    *${as_nl}ac_space=\ *)
16299
      # `set' does not quote correctly, so add quotes: double-quote
16300
      # substitution turns \\\\ into \\, and sed turns \\ into \.
16301
      sed -n \
16302
        "s/'/'\\\\''/g;
16303
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16304
      ;; #(
16305
    *)
16306
      # `set' quotes correctly as required by POSIX, so do not add quotes.
16307
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16308
      ;;
16309
    esac |
16310
    sort
16311
) |
16312
  sed '
16313
     /^ac_cv_env_/b end
16314
     t clear
16315
     :clear
16316
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16317
     t end
16318
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16319
     :end' >>confcache
16320
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16321
  if test -w "$cache_file"; then
16322
    test "x$cache_file" != "x/dev/null" &&
16323
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16324
$as_echo "$as_me: updating cache $cache_file" >&6;}
16325
    cat confcache >$cache_file
16326
  else
16327
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16328
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16329
  fi
16330
fi
16331
rm -f confcache
16332
 
16333
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16334
# Let make expand exec_prefix.
16335
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16336
 
16337
DEFS=-DHAVE_CONFIG_H
16338
 
16339
ac_libobjs=
16340
ac_ltlibobjs=
16341
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16342
  # 1. Remove the extension, and $U if already installed.
16343
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16344
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16345
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16346
  #    will be set to the directory where LIBOBJS objects are built.
16347
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16348
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16349
done
16350
LIBOBJS=$ac_libobjs
16351
 
16352
LTLIBOBJS=$ac_ltlibobjs
16353
 
16354
 
16355
if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16356
  as_fn_error "conditional \"GENINSRC\" was never defined.
16357
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16358
fi
16359
 if test -n "$EXEEXT"; then
16360
  am__EXEEXT_TRUE=
16361
  am__EXEEXT_FALSE='#'
16362
else
16363
  am__EXEEXT_TRUE='#'
16364
  am__EXEEXT_FALSE=
16365
fi
16366
 
16367
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16368
  as_fn_error "conditional \"AMDEP\" was never defined.
16369
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16370
fi
16371
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16372
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
16373
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16374
fi
16375
if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16376
  as_fn_error "conditional \"BUILD_INFO\" was never defined.
16377
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16378
fi
16379
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16380
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16381
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16382
fi
16383
if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16384
  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16385
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16386
fi
16387
if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16388
  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16389
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16390
fi
16391
if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16392
  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16393
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16394
fi
16395
if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16396
  as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16397
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16398
fi
16399
 
16400
: ${CONFIG_STATUS=./config.status}
16401
ac_write_fail=0
16402
ac_clean_files_save=$ac_clean_files
16403
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16404
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16405
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16406
as_write_fail=0
16407
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16408
#! $SHELL
16409
# Generated by $as_me.
16410
# Run this file to recreate the current configuration.
16411
# Compiler output produced by configure, useful for debugging
16412
# configure, is in config.log if it exists.
16413
 
16414
debug=false
16415
ac_cs_recheck=false
16416
ac_cs_silent=false
16417
 
16418
SHELL=\${CONFIG_SHELL-$SHELL}
16419
export SHELL
16420
_ASEOF
16421
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16422
## -------------------- ##
16423
## M4sh Initialization. ##
16424
## -------------------- ##
16425
 
16426
# Be more Bourne compatible
16427
DUALCASE=1; export DUALCASE # for MKS sh
16428
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16429
  emulate sh
16430
  NULLCMD=:
16431
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16432
  # is contrary to our usage.  Disable this feature.
16433
  alias -g '${1+"$@"}'='"$@"'
16434
  setopt NO_GLOB_SUBST
16435
else
16436
  case `(set -o) 2>/dev/null` in #(
16437
  *posix*) :
16438
    set -o posix ;; #(
16439
  *) :
16440
     ;;
16441
esac
16442
fi
16443
 
16444
 
16445
as_nl='
16446
'
16447
export as_nl
16448
# Printing a long string crashes Solaris 7 /usr/bin/printf.
16449
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16450
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16451
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16452
# Prefer a ksh shell builtin over an external printf program on Solaris,
16453
# but without wasting forks for bash or zsh.
16454
if test -z "$BASH_VERSION$ZSH_VERSION" \
16455
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16456
  as_echo='print -r --'
16457
  as_echo_n='print -rn --'
16458
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16459
  as_echo='printf %s\n'
16460
  as_echo_n='printf %s'
16461
else
16462
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16463
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16464
    as_echo_n='/usr/ucb/echo -n'
16465
  else
16466
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16467
    as_echo_n_body='eval
16468
      arg=$1;
16469
      case $arg in #(
16470
      *"$as_nl"*)
16471
        expr "X$arg" : "X\\(.*\\)$as_nl";
16472
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16473
      esac;
16474
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16475
    '
16476
    export as_echo_n_body
16477
    as_echo_n='sh -c $as_echo_n_body as_echo'
16478
  fi
16479
  export as_echo_body
16480
  as_echo='sh -c $as_echo_body as_echo'
16481
fi
16482
 
16483
# The user is always right.
16484
if test "${PATH_SEPARATOR+set}" != set; then
16485
  PATH_SEPARATOR=:
16486
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16487
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16488
      PATH_SEPARATOR=';'
16489
  }
16490
fi
16491
 
16492
 
16493
# IFS
16494
# We need space, tab and new line, in precisely that order.  Quoting is
16495
# there to prevent editors from complaining about space-tab.
16496
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16497
# splitting by setting IFS to empty value.)
16498
IFS=" ""        $as_nl"
16499
 
16500
# Find who we are.  Look in the path if we contain no directory separator.
16501
case $0 in #((
16502
  *[\\/]* ) as_myself=$0 ;;
16503
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16504
for as_dir in $PATH
16505
do
16506
  IFS=$as_save_IFS
16507
  test -z "$as_dir" && as_dir=.
16508
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16509
  done
16510
IFS=$as_save_IFS
16511
 
16512
     ;;
16513
esac
16514
# We did not find ourselves, most probably we were run as `sh COMMAND'
16515
# in which case we are not to be found in the path.
16516
if test "x$as_myself" = x; then
16517
  as_myself=$0
16518
fi
16519
if test ! -f "$as_myself"; then
16520
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16521
  exit 1
16522
fi
16523
 
16524
# Unset variables that we do not need and which cause bugs (e.g. in
16525
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16526
# suppresses any "Segmentation fault" message there.  '((' could
16527
# trigger a bug in pdksh 5.2.14.
16528
for as_var in BASH_ENV ENV MAIL MAILPATH
16529
do eval test x\${$as_var+set} = xset \
16530
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16531
done
16532
PS1='$ '
16533
PS2='> '
16534
PS4='+ '
16535
 
16536
# NLS nuisances.
16537
LC_ALL=C
16538
export LC_ALL
16539
LANGUAGE=C
16540
export LANGUAGE
16541
 
16542
# CDPATH.
16543
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16544
 
16545
 
16546
# as_fn_error ERROR [LINENO LOG_FD]
16547
# ---------------------------------
16548
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16549
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16550
# script with status $?, using 1 if that was 0.
16551
as_fn_error ()
16552
{
16553
  as_status=$?; test $as_status -eq 0 && as_status=1
16554
  if test "$3"; then
16555
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16556
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16557
  fi
16558
  $as_echo "$as_me: error: $1" >&2
16559
  as_fn_exit $as_status
16560
} # as_fn_error
16561
 
16562
 
16563
# as_fn_set_status STATUS
16564
# -----------------------
16565
# Set $? to STATUS, without forking.
16566
as_fn_set_status ()
16567
{
16568
  return $1
16569
} # as_fn_set_status
16570
 
16571
# as_fn_exit STATUS
16572
# -----------------
16573
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16574
as_fn_exit ()
16575
{
16576
  set +e
16577
  as_fn_set_status $1
16578
  exit $1
16579
} # as_fn_exit
16580
 
16581
# as_fn_unset VAR
16582
# ---------------
16583
# Portably unset VAR.
16584
as_fn_unset ()
16585
{
16586
  { eval $1=; unset $1;}
16587
}
16588
as_unset=as_fn_unset
16589
# as_fn_append VAR VALUE
16590
# ----------------------
16591
# Append the text in VALUE to the end of the definition contained in VAR. Take
16592
# advantage of any shell optimizations that allow amortized linear growth over
16593
# repeated appends, instead of the typical quadratic growth present in naive
16594
# implementations.
16595
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16596
  eval 'as_fn_append ()
16597
  {
16598
    eval $1+=\$2
16599
  }'
16600
else
16601
  as_fn_append ()
16602
  {
16603
    eval $1=\$$1\$2
16604
  }
16605
fi # as_fn_append
16606
 
16607
# as_fn_arith ARG...
16608
# ------------------
16609
# Perform arithmetic evaluation on the ARGs, and store the result in the
16610
# global $as_val. Take advantage of shells that can avoid forks. The arguments
16611
# must be portable across $(()) and expr.
16612
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16613
  eval 'as_fn_arith ()
16614
  {
16615
    as_val=$(( $* ))
16616
  }'
16617
else
16618
  as_fn_arith ()
16619
  {
16620
    as_val=`expr "$@" || test $? -eq 1`
16621
  }
16622
fi # as_fn_arith
16623
 
16624
 
16625
if expr a : '\(a\)' >/dev/null 2>&1 &&
16626
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16627
  as_expr=expr
16628
else
16629
  as_expr=false
16630
fi
16631
 
16632
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16633
  as_basename=basename
16634
else
16635
  as_basename=false
16636
fi
16637
 
16638
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16639
  as_dirname=dirname
16640
else
16641
  as_dirname=false
16642
fi
16643
 
16644
as_me=`$as_basename -- "$0" ||
16645
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16646
         X"$0" : 'X\(//\)$' \| \
16647
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16648
$as_echo X/"$0" |
16649
    sed '/^.*\/\([^/][^/]*\)\/*$/{
16650
            s//\1/
16651
            q
16652
          }
16653
          /^X\/\(\/\/\)$/{
16654
            s//\1/
16655
            q
16656
          }
16657
          /^X\/\(\/\).*/{
16658
            s//\1/
16659
            q
16660
          }
16661
          s/.*/./; q'`
16662
 
16663
# Avoid depending upon Character Ranges.
16664
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16665
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16666
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16667
as_cr_digits='0123456789'
16668
as_cr_alnum=$as_cr_Letters$as_cr_digits
16669
 
16670
ECHO_C= ECHO_N= ECHO_T=
16671
case `echo -n x` in #(((((
16672
-n*)
16673
  case `echo 'xy\c'` in
16674
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16675
  xy)  ECHO_C='\c';;
16676
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16677
       ECHO_T=' ';;
16678
  esac;;
16679
*)
16680
  ECHO_N='-n';;
16681
esac
16682
 
16683
rm -f conf$$ conf$$.exe conf$$.file
16684
if test -d conf$$.dir; then
16685
  rm -f conf$$.dir/conf$$.file
16686
else
16687
  rm -f conf$$.dir
16688
  mkdir conf$$.dir 2>/dev/null
16689
fi
16690
if (echo >conf$$.file) 2>/dev/null; then
16691
  if ln -s conf$$.file conf$$ 2>/dev/null; then
16692
    as_ln_s='ln -s'
16693
    # ... but there are two gotchas:
16694
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16695
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16696
    # In both cases, we have to default to `cp -p'.
16697
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16698
      as_ln_s='cp -p'
16699
  elif ln conf$$.file conf$$ 2>/dev/null; then
16700
    as_ln_s=ln
16701
  else
16702
    as_ln_s='cp -p'
16703
  fi
16704
else
16705
  as_ln_s='cp -p'
16706
fi
16707
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16708
rmdir conf$$.dir 2>/dev/null
16709
 
16710
 
16711
# as_fn_mkdir_p
16712
# -------------
16713
# Create "$as_dir" as a directory, including parents if necessary.
16714
as_fn_mkdir_p ()
16715
{
16716
 
16717
  case $as_dir in #(
16718
  -*) as_dir=./$as_dir;;
16719
  esac
16720
  test -d "$as_dir" || eval $as_mkdir_p || {
16721
    as_dirs=
16722
    while :; do
16723
      case $as_dir in #(
16724
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16725
      *) as_qdir=$as_dir;;
16726
      esac
16727
      as_dirs="'$as_qdir' $as_dirs"
16728
      as_dir=`$as_dirname -- "$as_dir" ||
16729
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16730
         X"$as_dir" : 'X\(//\)[^/]' \| \
16731
         X"$as_dir" : 'X\(//\)$' \| \
16732
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16733
$as_echo X"$as_dir" |
16734
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16735
            s//\1/
16736
            q
16737
          }
16738
          /^X\(\/\/\)[^/].*/{
16739
            s//\1/
16740
            q
16741
          }
16742
          /^X\(\/\/\)$/{
16743
            s//\1/
16744
            q
16745
          }
16746
          /^X\(\/\).*/{
16747
            s//\1/
16748
            q
16749
          }
16750
          s/.*/./; q'`
16751
      test -d "$as_dir" && break
16752
    done
16753
    test -z "$as_dirs" || eval "mkdir $as_dirs"
16754
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16755
 
16756
 
16757
} # as_fn_mkdir_p
16758
if mkdir -p . 2>/dev/null; then
16759
  as_mkdir_p='mkdir -p "$as_dir"'
16760
else
16761
  test -d ./-p && rmdir ./-p
16762
  as_mkdir_p=false
16763
fi
16764
 
16765
if test -x / >/dev/null 2>&1; then
16766
  as_test_x='test -x'
16767
else
16768
  if ls -dL / >/dev/null 2>&1; then
16769
    as_ls_L_option=L
16770
  else
16771
    as_ls_L_option=
16772
  fi
16773
  as_test_x='
16774
    eval sh -c '\''
16775
      if test -d "$1"; then
16776
        test -d "$1/.";
16777
      else
16778
        case $1 in #(
16779
        -*)set "./$1";;
16780
        esac;
16781
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16782
        ???[sx]*):;;*)false;;esac;fi
16783
    '\'' sh
16784
  '
16785
fi
16786
as_executable_p=$as_test_x
16787
 
16788
# Sed expression to map a string onto a valid CPP name.
16789
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16790
 
16791
# Sed expression to map a string onto a valid variable name.
16792
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16793
 
16794
 
16795
exec 6>&1
16796
## ----------------------------------- ##
16797
## Main body of $CONFIG_STATUS script. ##
16798
## ----------------------------------- ##
16799
_ASEOF
16800
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16801
 
16802
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16803
# Save the log message, to keep $0 and so on meaningful, and to
16804
# report actual input values of CONFIG_FILES etc. instead of their
16805
# values after options handling.
16806
ac_log="
16807
This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16808
generated by GNU Autoconf 2.64.  Invocation command line was
16809
 
16810
  CONFIG_FILES    = $CONFIG_FILES
16811
  CONFIG_HEADERS  = $CONFIG_HEADERS
16812
  CONFIG_LINKS    = $CONFIG_LINKS
16813
  CONFIG_COMMANDS = $CONFIG_COMMANDS
16814
  $ $0 $@
16815
 
16816
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16817
"
16818
 
16819
_ACEOF
16820
 
16821
case $ac_config_files in *"
16822
"*) set x $ac_config_files; shift; ac_config_files=$*;;
16823
esac
16824
 
16825
case $ac_config_headers in *"
16826
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16827
esac
16828
 
16829
 
16830
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16831
# Files that config.status was made for.
16832
config_files="$ac_config_files"
16833
config_headers="$ac_config_headers"
16834
config_commands="$ac_config_commands"
16835
 
16836
_ACEOF
16837
 
16838
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16839
ac_cs_usage="\
16840
\`$as_me' instantiates files and other configuration actions
16841
from templates according to the current configuration.  Unless the files
16842
and actions are specified as TAGs, all are instantiated by default.
16843
 
16844
Usage: $0 [OPTION]... [TAG]...
16845
 
16846
  -h, --help       print this help, then exit
16847
  -V, --version    print version number and configuration settings, then exit
16848
  -q, --quiet, --silent
16849
                   do not print progress messages
16850
  -d, --debug      don't remove temporary files
16851
      --recheck    update $as_me by reconfiguring in the same conditions
16852
      --file=FILE[:TEMPLATE]
16853
                   instantiate the configuration file FILE
16854
      --header=FILE[:TEMPLATE]
16855
                   instantiate the configuration header FILE
16856
 
16857
Configuration files:
16858
$config_files
16859
 
16860
Configuration headers:
16861
$config_headers
16862
 
16863
Configuration commands:
16864
$config_commands
16865
 
16866
Report bugs to the package provider.
16867
GNU OpenMP Runtime Library home page: .
16868
General help using GNU software: ."
16869
 
16870
_ACEOF
16871
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16872
ac_cs_version="\\
16873
GNU OpenMP Runtime Library config.status 1.0
16874
configured by $0, generated by GNU Autoconf 2.64,
16875
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16876
 
16877
Copyright (C) 2009 Free Software Foundation, Inc.
16878
This config.status script is free software; the Free Software Foundation
16879
gives unlimited permission to copy, distribute and modify it."
16880
 
16881
ac_pwd='$ac_pwd'
16882
srcdir='$srcdir'
16883
INSTALL='$INSTALL'
16884
MKDIR_P='$MKDIR_P'
16885
AWK='$AWK'
16886
test -n "\$AWK" || AWK=awk
16887
_ACEOF
16888
 
16889
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16890
# The default lists apply if the user does not specify any file.
16891
ac_need_defaults=:
16892
while test $# != 0
16893
do
16894
  case $1 in
16895
  --*=*)
16896
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16897
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16898
    ac_shift=:
16899
    ;;
16900
  *)
16901
    ac_option=$1
16902
    ac_optarg=$2
16903
    ac_shift=shift
16904
    ;;
16905
  esac
16906
 
16907
  case $ac_option in
16908
  # Handling of the options.
16909
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16910
    ac_cs_recheck=: ;;
16911
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16912
    $as_echo "$ac_cs_version"; exit ;;
16913
  --debug | --debu | --deb | --de | --d | -d )
16914
    debug=: ;;
16915
  --file | --fil | --fi | --f )
16916
    $ac_shift
16917
    case $ac_optarg in
16918
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16919
    esac
16920
    as_fn_append CONFIG_FILES " '$ac_optarg'"
16921
    ac_need_defaults=false;;
16922
  --header | --heade | --head | --hea )
16923
    $ac_shift
16924
    case $ac_optarg in
16925
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16926
    esac
16927
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16928
    ac_need_defaults=false;;
16929
  --he | --h)
16930
    # Conflict between --help and --header
16931
    as_fn_error "ambiguous option: \`$1'
16932
Try \`$0 --help' for more information.";;
16933
  --help | --hel | -h )
16934
    $as_echo "$ac_cs_usage"; exit ;;
16935
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16936
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16937
    ac_cs_silent=: ;;
16938
 
16939
  # This is an error.
16940
  -*) as_fn_error "unrecognized option: \`$1'
16941
Try \`$0 --help' for more information." ;;
16942
 
16943
  *) as_fn_append ac_config_targets " $1"
16944
     ac_need_defaults=false ;;
16945
 
16946
  esac
16947
  shift
16948
done
16949
 
16950
ac_configure_extra_args=
16951
 
16952
if $ac_cs_silent; then
16953
  exec 6>/dev/null
16954
  ac_configure_extra_args="$ac_configure_extra_args --silent"
16955
fi
16956
 
16957
_ACEOF
16958
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16959
if \$ac_cs_recheck; then
16960
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16961
  shift
16962
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16963
  CONFIG_SHELL='$SHELL'
16964
  export CONFIG_SHELL
16965
  exec "\$@"
16966
fi
16967
 
16968
_ACEOF
16969
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16970
exec 5>>config.log
16971
{
16972
  echo
16973
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16974
## Running $as_me. ##
16975
_ASBOX
16976
  $as_echo "$ac_log"
16977
} >&5
16978
 
16979
_ACEOF
16980
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16981
#
16982
# INIT-COMMANDS
16983
#
16984
 
16985
srcdir="$srcdir"
16986
host="$host"
16987
target="$target"
16988
with_multisubdir="$with_multisubdir"
16989
with_multisrctop="$with_multisrctop"
16990
with_target_subdir="$with_target_subdir"
16991
ac_configure_args="${multilib_arg} ${ac_configure_args}"
16992
multi_basedir="$multi_basedir"
16993
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16994
CC="$CC"
16995
CXX="$CXX"
16996
GFORTRAN="$GFORTRAN"
16997
GCJ="$GCJ"
16998
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16999
 
17000
 
17001
# The HP-UX ksh and POSIX shell print the target directory to stdout
17002
# if CDPATH is set.
17003
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17004
 
17005
sed_quote_subst='$sed_quote_subst'
17006
double_quote_subst='$double_quote_subst'
17007
delay_variable_subst='$delay_variable_subst'
17008
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17009
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17010
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17011
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17012
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17013
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17014
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17015
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17016
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17017
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17018
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17019
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17020
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17021
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17022
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17023
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17024
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17025
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17026
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17027
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17028
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17029
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17030
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17031
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17032
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17033
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17034
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17035
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17036
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17037
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17038
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17039
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17040
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17041
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17042
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17043
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17044
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17045
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17046
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17047
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17048
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17049
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17050
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17051
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17052
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17053
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17054
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17055
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17056
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17057
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17058
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17059
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17060
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17061
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17062
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17063
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17064
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17065
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17066
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17067
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17068
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17069
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17070
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17071
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17072
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17073
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17074
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17075
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17076
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17077
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17078
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17079
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17080
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17081
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17082
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17083
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17084
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17085
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17086
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17087
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17088
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17089
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17090
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17091
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17092
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17093
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17094
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17095
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17096
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17097
fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17098
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17099
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17100
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17101
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17102
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17103
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17104
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17105
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17106
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17107
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17108
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17109
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17110
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17111
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17112
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17113
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17114
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17115
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17116
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17117
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17118
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17119
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17120
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17121
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17122
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17123
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17124
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17125
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17126
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17127
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17128
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17129
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17130
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17131
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17132
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17133
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17134
LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17135
reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17136
reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17137
old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17138
compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17139
GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17140
lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17141
lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17142
lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17143
lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17144
lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17145
archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17146
enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17147
export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17148
whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17149
compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17150
old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17151
old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17152
archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17153
archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17154
module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17155
module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17156
with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17157
allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17158
no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17159
hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17160
hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17161
hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17162
hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17163
hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17164
hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17165
hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17166
hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17167
inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17168
link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17169
fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17170
always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17171
export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17172
exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17173
include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17174
prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17175
file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17176
hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17177
compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17178
predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17179
postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17180
predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17181
postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17182
compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17183
 
17184
LTCC='$LTCC'
17185
LTCFLAGS='$LTCFLAGS'
17186
compiler='$compiler_DEFAULT'
17187
 
17188
# A function that is used when there is no print builtin or printf.
17189
func_fallback_echo ()
17190
{
17191
  eval 'cat <<_LTECHO_EOF
17192
\$1
17193
_LTECHO_EOF'
17194
}
17195
 
17196
# Quote evaled strings.
17197
for var in SHELL \
17198
ECHO \
17199
SED \
17200
GREP \
17201
EGREP \
17202
FGREP \
17203
LD \
17204
NM \
17205
LN_S \
17206
lt_SP2NL \
17207
lt_NL2SP \
17208
reload_flag \
17209
OBJDUMP \
17210
deplibs_check_method \
17211
file_magic_cmd \
17212
AR \
17213
AR_FLAGS \
17214
STRIP \
17215
RANLIB \
17216
CC \
17217
CFLAGS \
17218
compiler \
17219
lt_cv_sys_global_symbol_pipe \
17220
lt_cv_sys_global_symbol_to_cdecl \
17221
lt_cv_sys_global_symbol_to_c_name_address \
17222
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17223
lt_prog_compiler_no_builtin_flag \
17224
lt_prog_compiler_wl \
17225
lt_prog_compiler_pic \
17226
lt_prog_compiler_static \
17227
lt_cv_prog_compiler_c_o \
17228
need_locks \
17229
DSYMUTIL \
17230
NMEDIT \
17231
LIPO \
17232
OTOOL \
17233
OTOOL64 \
17234
shrext_cmds \
17235
export_dynamic_flag_spec \
17236
whole_archive_flag_spec \
17237
compiler_needs_object \
17238
with_gnu_ld \
17239
allow_undefined_flag \
17240
no_undefined_flag \
17241
hardcode_libdir_flag_spec \
17242
hardcode_libdir_flag_spec_ld \
17243
hardcode_libdir_separator \
17244
fix_srcfile_path \
17245
exclude_expsyms \
17246
include_expsyms \
17247
file_list_spec \
17248
variables_saved_for_relink \
17249
libname_spec \
17250
library_names_spec \
17251
soname_spec \
17252
install_override_mode \
17253
finish_eval \
17254
old_striplib \
17255
striplib \
17256
compiler_lib_search_dirs \
17257
predep_objects \
17258
postdep_objects \
17259
predeps \
17260
postdeps \
17261
compiler_lib_search_path \
17262
LD_FC \
17263
reload_flag_FC \
17264
compiler_FC \
17265
lt_prog_compiler_no_builtin_flag_FC \
17266
lt_prog_compiler_wl_FC \
17267
lt_prog_compiler_pic_FC \
17268
lt_prog_compiler_static_FC \
17269
lt_cv_prog_compiler_c_o_FC \
17270
export_dynamic_flag_spec_FC \
17271
whole_archive_flag_spec_FC \
17272
compiler_needs_object_FC \
17273
with_gnu_ld_FC \
17274
allow_undefined_flag_FC \
17275
no_undefined_flag_FC \
17276
hardcode_libdir_flag_spec_FC \
17277
hardcode_libdir_flag_spec_ld_FC \
17278
hardcode_libdir_separator_FC \
17279
fix_srcfile_path_FC \
17280
exclude_expsyms_FC \
17281
include_expsyms_FC \
17282
file_list_spec_FC \
17283
compiler_lib_search_dirs_FC \
17284
predep_objects_FC \
17285
postdep_objects_FC \
17286
predeps_FC \
17287
postdeps_FC \
17288
compiler_lib_search_path_FC; do
17289
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17290
    *[\\\\\\\`\\"\\\$]*)
17291
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17292
      ;;
17293
    *)
17294
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17295
      ;;
17296
    esac
17297
done
17298
 
17299
# Double-quote double-evaled strings.
17300
for var in reload_cmds \
17301
old_postinstall_cmds \
17302
old_postuninstall_cmds \
17303
old_archive_cmds \
17304
extract_expsyms_cmds \
17305
old_archive_from_new_cmds \
17306
old_archive_from_expsyms_cmds \
17307
archive_cmds \
17308
archive_expsym_cmds \
17309
module_cmds \
17310
module_expsym_cmds \
17311
export_symbols_cmds \
17312
prelink_cmds \
17313
postinstall_cmds \
17314
postuninstall_cmds \
17315
finish_cmds \
17316
sys_lib_search_path_spec \
17317
sys_lib_dlsearch_path_spec \
17318
reload_cmds_FC \
17319
old_archive_cmds_FC \
17320
old_archive_from_new_cmds_FC \
17321
old_archive_from_expsyms_cmds_FC \
17322
archive_cmds_FC \
17323
archive_expsym_cmds_FC \
17324
module_cmds_FC \
17325
module_expsym_cmds_FC \
17326
export_symbols_cmds_FC \
17327
prelink_cmds_FC; do
17328
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17329
    *[\\\\\\\`\\"\\\$]*)
17330
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17331
      ;;
17332
    *)
17333
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17334
      ;;
17335
    esac
17336
done
17337
 
17338
ac_aux_dir='$ac_aux_dir'
17339
xsi_shell='$xsi_shell'
17340
lt_shell_append='$lt_shell_append'
17341
 
17342
# See if we are running on zsh, and set the options which allow our
17343
# commands through without removal of \ escapes INIT.
17344
if test -n "\${ZSH_VERSION+set}" ; then
17345
   setopt NO_GLOB_SUBST
17346
fi
17347
 
17348
 
17349
    PACKAGE='$PACKAGE'
17350
    VERSION='$VERSION'
17351
    TIMESTAMP='$TIMESTAMP'
17352
    RM='$RM'
17353
    ofile='$ofile'
17354
 
17355
 
17356
 
17357
 
17358
 
17359
 
17360
GCC="$GCC"
17361
CC="$CC"
17362
acx_cv_header_stdint="$acx_cv_header_stdint"
17363
acx_cv_type_int8_t="$acx_cv_type_int8_t"
17364
acx_cv_type_int16_t="$acx_cv_type_int16_t"
17365
acx_cv_type_int32_t="$acx_cv_type_int32_t"
17366
acx_cv_type_int64_t="$acx_cv_type_int64_t"
17367
acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17368
ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17369
ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17370
ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17371
ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17372
ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17373
ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17374
ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17375
ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17376
 
17377
 
17378
_ACEOF
17379
 
17380
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17381
 
17382
# Handling of arguments.
17383
for ac_config_target in $ac_config_targets
17384
do
17385
  case $ac_config_target in
17386
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17387
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17388
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17389
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17390
    "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17391
    "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17392
    "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17393
    "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17394
    "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17395
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17396
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17397
    "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17398
 
17399
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17400
  esac
17401
done
17402
 
17403
 
17404
# If the user did not use the arguments to specify the items to instantiate,
17405
# then the envvar interface is used.  Set only those that are not.
17406
# We use the long form for the default assignment because of an extremely
17407
# bizarre bug on SunOS 4.1.3.
17408
if $ac_need_defaults; then
17409
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17410
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17411
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17412
fi
17413
 
17414
# Have a temporary directory for convenience.  Make it in the build tree
17415
# simply because there is no reason against having it here, and in addition,
17416
# creating and moving files from /tmp can sometimes cause problems.
17417
# Hook for its removal unless debugging.
17418
# Note that there is a small window in which the directory will not be cleaned:
17419
# after its creation but before its name has been assigned to `$tmp'.
17420
$debug ||
17421
{
17422
  tmp=
17423
  trap 'exit_status=$?
17424
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17425
' 0
17426
  trap 'as_fn_exit 1' 1 2 13 15
17427
}
17428
# Create a (secure) tmp directory for tmp files.
17429
 
17430
{
17431
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17432
  test -n "$tmp" && test -d "$tmp"
17433
}  ||
17434
{
17435
  tmp=./conf$$-$RANDOM
17436
  (umask 077 && mkdir "$tmp")
17437
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17438
 
17439
# Set up the scripts for CONFIG_FILES section.
17440
# No need to generate them if there are no CONFIG_FILES.
17441
# This happens for instance with `./config.status config.h'.
17442
if test -n "$CONFIG_FILES"; then
17443
 
17444
 
17445
ac_cr=`echo X | tr X '\015'`
17446
# On cygwin, bash can eat \r inside `` if the user requested igncr.
17447
# But we know of no other shell where ac_cr would be empty at this
17448
# point, so we can use a bashism as a fallback.
17449
if test "x$ac_cr" = x; then
17450
  eval ac_cr=\$\'\\r\'
17451
fi
17452
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
17453
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17454
  ac_cs_awk_cr='\r'
17455
else
17456
  ac_cs_awk_cr=$ac_cr
17457
fi
17458
 
17459
echo 'BEGIN {' >"$tmp/subs1.awk" &&
17460
_ACEOF
17461
 
17462
 
17463
{
17464
  echo "cat >conf$$subs.awk <<_ACEOF" &&
17465
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17466
  echo "_ACEOF"
17467
} >conf$$subs.sh ||
17468
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17469
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17470
ac_delim='%!_!# '
17471
for ac_last_try in false false false false false :; do
17472
  . ./conf$$subs.sh ||
17473
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17474
 
17475
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17476
  if test $ac_delim_n = $ac_delim_num; then
17477
    break
17478
  elif $ac_last_try; then
17479
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17480
  else
17481
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17482
  fi
17483
done
17484
rm -f conf$$subs.sh
17485
 
17486
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17487
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17488
_ACEOF
17489
sed -n '
17490
h
17491
s/^/S["/; s/!.*/"]=/
17492
p
17493
g
17494
s/^[^!]*!//
17495
:repl
17496
t repl
17497
s/'"$ac_delim"'$//
17498
t delim
17499
:nl
17500
h
17501
s/\(.\{148\}\).*/\1/
17502
t more1
17503
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17504
p
17505
n
17506
b repl
17507
:more1
17508
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17509
p
17510
g
17511
s/.\{148\}//
17512
t nl
17513
:delim
17514
h
17515
s/\(.\{148\}\).*/\1/
17516
t more2
17517
s/["\\]/\\&/g; s/^/"/; s/$/"/
17518
p
17519
b
17520
:more2
17521
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17522
p
17523
g
17524
s/.\{148\}//
17525
t delim
17526
' 
17527
/^[^""]/{
17528
  N
17529
  s/\n//
17530
}
17531
' >>$CONFIG_STATUS || ac_write_fail=1
17532
rm -f conf$$subs.awk
17533
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17534
_ACAWK
17535
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17536
  for (key in S) S_is_set[key] = 1
17537
  FS = ""
17538
 
17539
}
17540
{
17541
  line = $ 0
17542
  nfields = split(line, field, "@")
17543
  substed = 0
17544
  len = length(field[1])
17545
  for (i = 2; i < nfields; i++) {
17546
    key = field[i]
17547
    keylen = length(key)
17548
    if (S_is_set[key]) {
17549
      value = S[key]
17550
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17551
      len += length(value) + length(field[++i])
17552
      substed = 1
17553
    } else
17554
      len += 1 + keylen
17555
  }
17556
 
17557
  print line
17558
}
17559
 
17560
_ACAWK
17561
_ACEOF
17562
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17563
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17564
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17565
else
17566
  cat
17567
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17568
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
17569
_ACEOF
17570
 
17571
# VPATH may cause trouble with some makes, so we remove $(srcdir),
17572
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17573
# trailing colons and then remove the whole line if VPATH becomes empty
17574
# (actually we leave an empty line to preserve line numbers).
17575
if test "x$srcdir" = x.; then
17576
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
17577
s/:*\$(srcdir):*/:/
17578
s/:*\${srcdir}:*/:/
17579
s/:*@srcdir@:*/:/
17580
s/^\([^=]*=[     ]*\):*/\1/
17581
s/:*$//
17582
s/^[^=]*=[       ]*$//
17583
}'
17584
fi
17585
 
17586
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17587
fi # test -n "$CONFIG_FILES"
17588
 
17589
# Set up the scripts for CONFIG_HEADERS section.
17590
# No need to generate them if there are no CONFIG_HEADERS.
17591
# This happens for instance with `./config.status Makefile'.
17592
if test -n "$CONFIG_HEADERS"; then
17593
cat >"$tmp/defines.awk" <<\_ACAWK ||
17594
BEGIN {
17595
_ACEOF
17596
 
17597
# Transform confdefs.h into an awk script `defines.awk', embedded as
17598
# here-document in config.status, that substitutes the proper values into
17599
# config.h.in to produce config.h.
17600
 
17601
# Create a delimiter string that does not exist in confdefs.h, to ease
17602
# handling of long lines.
17603
ac_delim='%!_!# '
17604
for ac_last_try in false false :; do
17605
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17606
  if test -z "$ac_t"; then
17607
    break
17608
  elif $ac_last_try; then
17609
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17610
  else
17611
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17612
  fi
17613
done
17614
 
17615
# For the awk script, D is an array of macro values keyed by name,
17616
# likewise P contains macro parameters if any.  Preserve backslash
17617
# newline sequences.
17618
 
17619
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17620
sed -n '
17621
s/.\{148\}/&'"$ac_delim"'/g
17622
t rset
17623
:rset
17624
s/^[     ]*#[    ]*define[       ][      ]*/ /
17625
t def
17626
d
17627
:def
17628
s/\\$//
17629
t bsnl
17630
s/["\\]/\\&/g
17631
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17632
D["\1"]=" \3"/p
17633
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17634
d
17635
:bsnl
17636
s/["\\]/\\&/g
17637
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17638
D["\1"]=" \3\\\\\\n"\\/p
17639
t cont
17640
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17641
t cont
17642
d
17643
:cont
17644
n
17645
s/.\{148\}/&'"$ac_delim"'/g
17646
t clear
17647
:clear
17648
s/\\$//
17649
t bsnlc
17650
s/["\\]/\\&/g; s/^/"/; s/$/"/p
17651
d
17652
:bsnlc
17653
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17654
b cont
17655
' 
17656
s/'"$ac_delim"'/"\\\
17657
"/g' >>$CONFIG_STATUS || ac_write_fail=1
17658
 
17659
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17660
  for (key in D) D_is_set[key] = 1
17661
  FS = ""
17662
}
17663
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17664
  line = \$ 0
17665
  split(line, arg, " ")
17666
  if (arg[1] == "#") {
17667
    defundef = arg[2]
17668
    mac1 = arg[3]
17669
  } else {
17670
    defundef = substr(arg[1], 2)
17671
    mac1 = arg[2]
17672
  }
17673
  split(mac1, mac2, "(") #)
17674
  macro = mac2[1]
17675
  prefix = substr(line, 1, index(line, defundef) - 1)
17676
  if (D_is_set[macro]) {
17677
    # Preserve the white space surrounding the "#".
17678
    print prefix "define", macro P[macro] D[macro]
17679
    next
17680
  } else {
17681
    # Replace #undef with comments.  This is necessary, for example,
17682
    # in the case of _POSIX_SOURCE, which is predefined and required
17683
    # on some systems where configure will not decide to define it.
17684
    if (defundef == "undef") {
17685
      print "/*", prefix defundef, macro, "*/"
17686
      next
17687
    }
17688
  }
17689
}
17690
{ print }
17691
_ACAWK
17692
_ACEOF
17693
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17694
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
17695
fi # test -n "$CONFIG_HEADERS"
17696
 
17697
 
17698
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17699
shift
17700
for ac_tag
17701
do
17702
  case $ac_tag in
17703
  :[FHLC]) ac_mode=$ac_tag; continue;;
17704
  esac
17705
  case $ac_mode$ac_tag in
17706
  :[FHL]*:*);;
17707
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17708
  :[FH]-) ac_tag=-:-;;
17709
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17710
  esac
17711
  ac_save_IFS=$IFS
17712
  IFS=:
17713
  set x $ac_tag
17714
  IFS=$ac_save_IFS
17715
  shift
17716
  ac_file=$1
17717
  shift
17718
 
17719
  case $ac_mode in
17720
  :L) ac_source=$1;;
17721
  :[FH])
17722
    ac_file_inputs=
17723
    for ac_f
17724
    do
17725
      case $ac_f in
17726
      -) ac_f="$tmp/stdin";;
17727
      *) # Look for the file first in the build tree, then in the source tree
17728
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
17729
         # because $ac_f cannot contain `:'.
17730
         test -f "$ac_f" ||
17731
           case $ac_f in
17732
           [\\/$]*) false;;
17733
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17734
           esac ||
17735
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17736
      esac
17737
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17738
      as_fn_append ac_file_inputs " '$ac_f'"
17739
    done
17740
 
17741
    # Let's still pretend it is `configure' which instantiates (i.e., don't
17742
    # use $as_me), people would be surprised to read:
17743
    #    /* config.h.  Generated by config.status.  */
17744
    configure_input='Generated from '`
17745
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17746
        `' by configure.'
17747
    if test x"$ac_file" != x-; then
17748
      configure_input="$ac_file.  $configure_input"
17749
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17750
$as_echo "$as_me: creating $ac_file" >&6;}
17751
    fi
17752
    # Neutralize special characters interpreted by sed in replacement strings.
17753
    case $configure_input in #(
17754
    *\&* | *\|* | *\\* )
17755
       ac_sed_conf_input=`$as_echo "$configure_input" |
17756
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17757
    *) ac_sed_conf_input=$configure_input;;
17758
    esac
17759
 
17760
    case $ac_tag in
17761
    *:-:* | *:-) cat >"$tmp/stdin" \
17762
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17763
    esac
17764
    ;;
17765
  esac
17766
 
17767
  ac_dir=`$as_dirname -- "$ac_file" ||
17768
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17769
         X"$ac_file" : 'X\(//\)[^/]' \| \
17770
         X"$ac_file" : 'X\(//\)$' \| \
17771
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17772
$as_echo X"$ac_file" |
17773
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17774
            s//\1/
17775
            q
17776
          }
17777
          /^X\(\/\/\)[^/].*/{
17778
            s//\1/
17779
            q
17780
          }
17781
          /^X\(\/\/\)$/{
17782
            s//\1/
17783
            q
17784
          }
17785
          /^X\(\/\).*/{
17786
            s//\1/
17787
            q
17788
          }
17789
          s/.*/./; q'`
17790
  as_dir="$ac_dir"; as_fn_mkdir_p
17791
  ac_builddir=.
17792
 
17793
case "$ac_dir" in
17794
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17795
*)
17796
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17797
  # A ".." for each directory in $ac_dir_suffix.
17798
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17799
  case $ac_top_builddir_sub in
17800
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17801
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17802
  esac ;;
17803
esac
17804
ac_abs_top_builddir=$ac_pwd
17805
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17806
# for backward compatibility:
17807
ac_top_builddir=$ac_top_build_prefix
17808
 
17809
case $srcdir in
17810
  .)  # We are building in place.
17811
    ac_srcdir=.
17812
    ac_top_srcdir=$ac_top_builddir_sub
17813
    ac_abs_top_srcdir=$ac_pwd ;;
17814
  [\\/]* | ?:[\\/]* )  # Absolute name.
17815
    ac_srcdir=$srcdir$ac_dir_suffix;
17816
    ac_top_srcdir=$srcdir
17817
    ac_abs_top_srcdir=$srcdir ;;
17818
  *) # Relative name.
17819
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17820
    ac_top_srcdir=$ac_top_build_prefix$srcdir
17821
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17822
esac
17823
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17824
 
17825
 
17826
  case $ac_mode in
17827
  :F)
17828
  #
17829
  # CONFIG_FILE
17830
  #
17831
 
17832
  case $INSTALL in
17833
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17834
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17835
  esac
17836
  ac_MKDIR_P=$MKDIR_P
17837
  case $MKDIR_P in
17838
  [\\/$]* | ?:[\\/]* ) ;;
17839
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17840
  esac
17841
_ACEOF
17842
 
17843
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17844
# If the template does not know about datarootdir, expand it.
17845
# FIXME: This hack should be removed a few years after 2.60.
17846
ac_datarootdir_hack=; ac_datarootdir_seen=
17847
ac_sed_dataroot='
17848
/datarootdir/ {
17849
  p
17850
  q
17851
}
17852
/@datadir@/p
17853
/@docdir@/p
17854
/@infodir@/p
17855
/@localedir@/p
17856
/@mandir@/p'
17857
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17858
*datarootdir*) ac_datarootdir_seen=yes;;
17859
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17860
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17861
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17862
_ACEOF
17863
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17864
  ac_datarootdir_hack='
17865
  s&@datadir@&$datadir&g
17866
  s&@docdir@&$docdir&g
17867
  s&@infodir@&$infodir&g
17868
  s&@localedir@&$localedir&g
17869
  s&@mandir@&$mandir&g
17870
  s&\\\${datarootdir}&$datarootdir&g' ;;
17871
esac
17872
_ACEOF
17873
 
17874
# Neutralize VPATH when `$srcdir' = `.'.
17875
# Shell code in configure.ac might set extrasub.
17876
# FIXME: do we really want to maintain this feature?
17877
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17878
ac_sed_extra="$ac_vpsub
17879
$extrasub
17880
_ACEOF
17881
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17882
:t
17883
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17884
s|@configure_input@|$ac_sed_conf_input|;t t
17885
s&@top_builddir@&$ac_top_builddir_sub&;t t
17886
s&@top_build_prefix@&$ac_top_build_prefix&;t t
17887
s&@srcdir@&$ac_srcdir&;t t
17888
s&@abs_srcdir@&$ac_abs_srcdir&;t t
17889
s&@top_srcdir@&$ac_top_srcdir&;t t
17890
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17891
s&@builddir@&$ac_builddir&;t t
17892
s&@abs_builddir@&$ac_abs_builddir&;t t
17893
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17894
s&@INSTALL@&$ac_INSTALL&;t t
17895
s&@MKDIR_P@&$ac_MKDIR_P&;t t
17896
$ac_datarootdir_hack
17897
"
17898
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17899
  || as_fn_error "could not create $ac_file" "$LINENO" 5
17900
 
17901
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17902
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17903
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17904
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17905
which seems to be undefined.  Please make sure it is defined." >&5
17906
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17907
which seems to be undefined.  Please make sure it is defined." >&2;}
17908
 
17909
  rm -f "$tmp/stdin"
17910
  case $ac_file in
17911
  -) cat "$tmp/out" && rm -f "$tmp/out";;
17912
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17913
  esac \
17914
  || as_fn_error "could not create $ac_file" "$LINENO" 5
17915
 ;;
17916
  :H)
17917
  #
17918
  # CONFIG_HEADER
17919
  #
17920
  if test x"$ac_file" != x-; then
17921
    {
17922
      $as_echo "/* $configure_input  */" \
17923
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17924
    } >"$tmp/config.h" \
17925
      || as_fn_error "could not create $ac_file" "$LINENO" 5
17926
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17927
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17928
$as_echo "$as_me: $ac_file is unchanged" >&6;}
17929
    else
17930
      rm -f "$ac_file"
17931
      mv "$tmp/config.h" "$ac_file" \
17932
        || as_fn_error "could not create $ac_file" "$LINENO" 5
17933
    fi
17934
  else
17935
    $as_echo "/* $configure_input  */" \
17936
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17937
      || as_fn_error "could not create -" "$LINENO" 5
17938
  fi
17939
# Compute "$ac_file"'s index in $config_headers.
17940
_am_arg="$ac_file"
17941
_am_stamp_count=1
17942
for _am_header in $config_headers :; do
17943
  case $_am_header in
17944
    $_am_arg | $_am_arg:* )
17945
      break ;;
17946
    * )
17947
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17948
  esac
17949
done
17950
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17951
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17952
         X"$_am_arg" : 'X\(//\)[^/]' \| \
17953
         X"$_am_arg" : 'X\(//\)$' \| \
17954
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17955
$as_echo X"$_am_arg" |
17956
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17957
            s//\1/
17958
            q
17959
          }
17960
          /^X\(\/\/\)[^/].*/{
17961
            s//\1/
17962
            q
17963
          }
17964
          /^X\(\/\/\)$/{
17965
            s//\1/
17966
            q
17967
          }
17968
          /^X\(\/\).*/{
17969
            s//\1/
17970
            q
17971
          }
17972
          s/.*/./; q'`/stamp-h$_am_stamp_count
17973
 ;;
17974
 
17975
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17976
$as_echo "$as_me: executing $ac_file commands" >&6;}
17977
 ;;
17978
  esac
17979
 
17980
 
17981
  case $ac_file$ac_mode in
17982
    "default-1":C)
17983
# Only add multilib support code if we just rebuilt the top-level
17984
# Makefile.
17985
case " $CONFIG_FILES " in
17986
 *" Makefile "*)
17987
   ac_file=Makefile . ${multi_basedir}/config-ml.in
17988
   ;;
17989
esac ;;
17990
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17991
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17992
  # are listed without --file.  Let's play safe and only enable the eval
17993
  # if we detect the quoting.
17994
  case $CONFIG_FILES in
17995
  *\'*) eval set x "$CONFIG_FILES" ;;
17996
  *)   set x $CONFIG_FILES ;;
17997
  esac
17998
  shift
17999
  for mf
18000
  do
18001
    # Strip MF so we end up with the name of the file.
18002
    mf=`echo "$mf" | sed -e 's/:.*$//'`
18003
    # Check whether this is an Automake generated Makefile or not.
18004
    # We used to match only the files named `Makefile.in', but
18005
    # some people rename them; so instead we look at the file content.
18006
    # Grep'ing the first line is not enough: some people post-process
18007
    # each Makefile.in and add a new line on top of each file to say so.
18008
    # Grep'ing the whole file is not good either: AIX grep has a line
18009
    # limit of 2048, but all sed's we know have understand at least 4000.
18010
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18011
      dirpart=`$as_dirname -- "$mf" ||
18012
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18013
         X"$mf" : 'X\(//\)[^/]' \| \
18014
         X"$mf" : 'X\(//\)$' \| \
18015
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18016
$as_echo X"$mf" |
18017
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18018
            s//\1/
18019
            q
18020
          }
18021
          /^X\(\/\/\)[^/].*/{
18022
            s//\1/
18023
            q
18024
          }
18025
          /^X\(\/\/\)$/{
18026
            s//\1/
18027
            q
18028
          }
18029
          /^X\(\/\).*/{
18030
            s//\1/
18031
            q
18032
          }
18033
          s/.*/./; q'`
18034
    else
18035
      continue
18036
    fi
18037
    # Extract the definition of DEPDIR, am__include, and am__quote
18038
    # from the Makefile without running `make'.
18039
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18040
    test -z "$DEPDIR" && continue
18041
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18042
    test -z "am__include" && continue
18043
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18044
    # When using ansi2knr, U may be empty or an underscore; expand it
18045
    U=`sed -n 's/^U = //p' < "$mf"`
18046
    # Find all dependency output files, they are included files with
18047
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18048
    # simplest approach to changing $(DEPDIR) to its actual value in the
18049
    # expansion.
18050
    for file in `sed -n "
18051
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18052
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18053
      # Make sure the directory exists.
18054
      test -f "$dirpart/$file" && continue
18055
      fdir=`$as_dirname -- "$file" ||
18056
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18057
         X"$file" : 'X\(//\)[^/]' \| \
18058
         X"$file" : 'X\(//\)$' \| \
18059
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18060
$as_echo X"$file" |
18061
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18062
            s//\1/
18063
            q
18064
          }
18065
          /^X\(\/\/\)[^/].*/{
18066
            s//\1/
18067
            q
18068
          }
18069
          /^X\(\/\/\)$/{
18070
            s//\1/
18071
            q
18072
          }
18073
          /^X\(\/\).*/{
18074
            s//\1/
18075
            q
18076
          }
18077
          s/.*/./; q'`
18078
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18079
      # echo "creating $dirpart/$file"
18080
      echo '# dummy' > "$dirpart/$file"
18081
    done
18082
  done
18083
}
18084
 ;;
18085
    "libtool":C)
18086
 
18087
    # See if we are running on zsh, and set the options which allow our
18088
    # commands through without removal of \ escapes.
18089
    if test -n "${ZSH_VERSION+set}" ; then
18090
      setopt NO_GLOB_SUBST
18091
    fi
18092
 
18093
    cfgfile="${ofile}T"
18094
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18095
    $RM "$cfgfile"
18096
 
18097
    cat <<_LT_EOF >> "$cfgfile"
18098
#! $SHELL
18099
 
18100
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18101
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18102
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18103
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18104
#
18105
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18106
#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18107
#   Written by Gordon Matzigkeit, 1996
18108
#
18109
#   This file is part of GNU Libtool.
18110
#
18111
# GNU Libtool is free software; you can redistribute it and/or
18112
# modify it under the terms of the GNU General Public License as
18113
# published by the Free Software Foundation; either version 2 of
18114
# the License, or (at your option) any later version.
18115
#
18116
# As a special exception to the GNU General Public License,
18117
# if you distribute this file as part of a program or library that
18118
# is built using GNU Libtool, you may include this file under the
18119
# same distribution terms that you use for the rest of that program.
18120
#
18121
# GNU Libtool is distributed in the hope that it will be useful,
18122
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18123
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18124
# GNU General Public License for more details.
18125
#
18126
# You should have received a copy of the GNU General Public License
18127
# along with GNU Libtool; see the file COPYING.  If not, a copy
18128
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18129
# obtained by writing to the Free Software Foundation, Inc.,
18130
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18131
 
18132
 
18133
# The names of the tagged configurations supported by this script.
18134
available_tags="FC "
18135
 
18136
# ### BEGIN LIBTOOL CONFIG
18137
 
18138
# Which release of libtool.m4 was used?
18139
macro_version=$macro_version
18140
macro_revision=$macro_revision
18141
 
18142
# Whether or not to build shared libraries.
18143
build_libtool_libs=$enable_shared
18144
 
18145
# Whether or not to build static libraries.
18146
build_old_libs=$enable_static
18147
 
18148
# What type of objects to build.
18149
pic_mode=$pic_mode
18150
 
18151
# Whether or not to optimize for fast installation.
18152
fast_install=$enable_fast_install
18153
 
18154
# Shell to use when invoking shell scripts.
18155
SHELL=$lt_SHELL
18156
 
18157
# An echo program that protects backslashes.
18158
ECHO=$lt_ECHO
18159
 
18160
# The host system.
18161
host_alias=$host_alias
18162
host=$host
18163
host_os=$host_os
18164
 
18165
# The build system.
18166
build_alias=$build_alias
18167
build=$build
18168
build_os=$build_os
18169
 
18170
# A sed program that does not truncate output.
18171
SED=$lt_SED
18172
 
18173
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18174
Xsed="\$SED -e 1s/^X//"
18175
 
18176
# A grep program that handles long lines.
18177
GREP=$lt_GREP
18178
 
18179
# An ERE matcher.
18180
EGREP=$lt_EGREP
18181
 
18182
# A literal string matcher.
18183
FGREP=$lt_FGREP
18184
 
18185
# A BSD- or MS-compatible name lister.
18186
NM=$lt_NM
18187
 
18188
# Whether we need soft or hard links.
18189
LN_S=$lt_LN_S
18190
 
18191
# What is the maximum length of a command?
18192
max_cmd_len=$max_cmd_len
18193
 
18194
# Object file suffix (normally "o").
18195
objext=$ac_objext
18196
 
18197
# Executable file suffix (normally "").
18198
exeext=$exeext
18199
 
18200
# whether the shell understands "unset".
18201
lt_unset=$lt_unset
18202
 
18203
# turn spaces into newlines.
18204
SP2NL=$lt_lt_SP2NL
18205
 
18206
# turn newlines into spaces.
18207
NL2SP=$lt_lt_NL2SP
18208
 
18209
# An object symbol dumper.
18210
OBJDUMP=$lt_OBJDUMP
18211
 
18212
# Method to check whether dependent libraries are shared objects.
18213
deplibs_check_method=$lt_deplibs_check_method
18214
 
18215
# Command to use when deplibs_check_method == "file_magic".
18216
file_magic_cmd=$lt_file_magic_cmd
18217
 
18218
# The archiver.
18219
AR=$lt_AR
18220
AR_FLAGS=$lt_AR_FLAGS
18221
 
18222
# A symbol stripping program.
18223
STRIP=$lt_STRIP
18224
 
18225
# Commands used to install an old-style archive.
18226
RANLIB=$lt_RANLIB
18227
old_postinstall_cmds=$lt_old_postinstall_cmds
18228
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18229
 
18230
# Whether to use a lock for old archive extraction.
18231
lock_old_archive_extraction=$lock_old_archive_extraction
18232
 
18233
# A C compiler.
18234
LTCC=$lt_CC
18235
 
18236
# LTCC compiler flags.
18237
LTCFLAGS=$lt_CFLAGS
18238
 
18239
# Take the output of nm and produce a listing of raw symbols and C names.
18240
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18241
 
18242
# Transform the output of nm in a proper C declaration.
18243
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18244
 
18245
# Transform the output of nm in a C name address pair.
18246
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18247
 
18248
# Transform the output of nm in a C name address pair when lib prefix is needed.
18249
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18250
 
18251
# The name of the directory that contains temporary libtool files.
18252
objdir=$objdir
18253
 
18254
# Used to examine libraries when file_magic_cmd begins with "file".
18255
MAGIC_CMD=$MAGIC_CMD
18256
 
18257
# Must we lock files when doing compilation?
18258
need_locks=$lt_need_locks
18259
 
18260
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18261
DSYMUTIL=$lt_DSYMUTIL
18262
 
18263
# Tool to change global to local symbols on Mac OS X.
18264
NMEDIT=$lt_NMEDIT
18265
 
18266
# Tool to manipulate fat objects and archives on Mac OS X.
18267
LIPO=$lt_LIPO
18268
 
18269
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18270
OTOOL=$lt_OTOOL
18271
 
18272
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18273
OTOOL64=$lt_OTOOL64
18274
 
18275
# Old archive suffix (normally "a").
18276
libext=$libext
18277
 
18278
# Shared library suffix (normally ".so").
18279
shrext_cmds=$lt_shrext_cmds
18280
 
18281
# The commands to extract the exported symbol list from a shared archive.
18282
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18283
 
18284
# Variables whose values should be saved in libtool wrapper scripts and
18285
# restored at link time.
18286
variables_saved_for_relink=$lt_variables_saved_for_relink
18287
 
18288
# Do we need the "lib" prefix for modules?
18289
need_lib_prefix=$need_lib_prefix
18290
 
18291
# Do we need a version for libraries?
18292
need_version=$need_version
18293
 
18294
# Library versioning type.
18295
version_type=$version_type
18296
 
18297
# Shared library runtime path variable.
18298
runpath_var=$runpath_var
18299
 
18300
# Shared library path variable.
18301
shlibpath_var=$shlibpath_var
18302
 
18303
# Is shlibpath searched before the hard-coded library search path?
18304
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18305
 
18306
# Format of library name prefix.
18307
libname_spec=$lt_libname_spec
18308
 
18309
# List of archive names.  First name is the real one, the rest are links.
18310
# The last name is the one that the linker finds with -lNAME
18311
library_names_spec=$lt_library_names_spec
18312
 
18313
# The coded name of the library, if different from the real name.
18314
soname_spec=$lt_soname_spec
18315
 
18316
# Permission mode override for installation of shared libraries.
18317
install_override_mode=$lt_install_override_mode
18318
 
18319
# Command to use after installation of a shared archive.
18320
postinstall_cmds=$lt_postinstall_cmds
18321
 
18322
# Command to use after uninstallation of a shared archive.
18323
postuninstall_cmds=$lt_postuninstall_cmds
18324
 
18325
# Commands used to finish a libtool library installation in a directory.
18326
finish_cmds=$lt_finish_cmds
18327
 
18328
# As "finish_cmds", except a single script fragment to be evaled but
18329
# not shown.
18330
finish_eval=$lt_finish_eval
18331
 
18332
# Whether we should hardcode library paths into libraries.
18333
hardcode_into_libs=$hardcode_into_libs
18334
 
18335
# Compile-time system search path for libraries.
18336
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18337
 
18338
# Run-time system search path for libraries.
18339
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18340
 
18341
# Whether dlopen is supported.
18342
dlopen_support=$enable_dlopen
18343
 
18344
# Whether dlopen of programs is supported.
18345
dlopen_self=$enable_dlopen_self
18346
 
18347
# Whether dlopen of statically linked programs is supported.
18348
dlopen_self_static=$enable_dlopen_self_static
18349
 
18350
# Commands to strip libraries.
18351
old_striplib=$lt_old_striplib
18352
striplib=$lt_striplib
18353
 
18354
 
18355
# The linker used to build libraries.
18356
LD=$lt_LD
18357
 
18358
# How to create reloadable object files.
18359
reload_flag=$lt_reload_flag
18360
reload_cmds=$lt_reload_cmds
18361
 
18362
# Commands used to build an old-style archive.
18363
old_archive_cmds=$lt_old_archive_cmds
18364
 
18365
# A language specific compiler.
18366
CC=$lt_compiler
18367
 
18368
# Is the compiler the GNU compiler?
18369
with_gcc=$GCC
18370
 
18371
# Compiler flag to turn off builtin functions.
18372
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18373
 
18374
# How to pass a linker flag through the compiler.
18375
wl=$lt_lt_prog_compiler_wl
18376
 
18377
# Additional compiler flags for building library objects.
18378
pic_flag=$lt_lt_prog_compiler_pic
18379
 
18380
# Compiler flag to prevent dynamic linking.
18381
link_static_flag=$lt_lt_prog_compiler_static
18382
 
18383
# Does compiler simultaneously support -c and -o options?
18384
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18385
 
18386
# Whether or not to add -lc for building shared libraries.
18387
build_libtool_need_lc=$archive_cmds_need_lc
18388
 
18389
# Whether or not to disallow shared libs when runtime libs are static.
18390
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18391
 
18392
# Compiler flag to allow reflexive dlopens.
18393
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18394
 
18395
# Compiler flag to generate shared objects directly from archives.
18396
whole_archive_flag_spec=$lt_whole_archive_flag_spec
18397
 
18398
# Whether the compiler copes with passing no objects directly.
18399
compiler_needs_object=$lt_compiler_needs_object
18400
 
18401
# Create an old-style archive from a shared archive.
18402
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18403
 
18404
# Create a temporary old-style archive to link instead of a shared archive.
18405
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18406
 
18407
# Commands used to build a shared archive.
18408
archive_cmds=$lt_archive_cmds
18409
archive_expsym_cmds=$lt_archive_expsym_cmds
18410
 
18411
# Commands used to build a loadable module if different from building
18412
# a shared archive.
18413
module_cmds=$lt_module_cmds
18414
module_expsym_cmds=$lt_module_expsym_cmds
18415
 
18416
# Whether we are building with GNU ld or not.
18417
with_gnu_ld=$lt_with_gnu_ld
18418
 
18419
# Flag that allows shared libraries with undefined symbols to be built.
18420
allow_undefined_flag=$lt_allow_undefined_flag
18421
 
18422
# Flag that enforces no undefined symbols.
18423
no_undefined_flag=$lt_no_undefined_flag
18424
 
18425
# Flag to hardcode \$libdir into a binary during linking.
18426
# This must work even if \$libdir does not exist
18427
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18428
 
18429
# If ld is used when linking, flag to hardcode \$libdir into a binary
18430
# during linking.  This must work even if \$libdir does not exist.
18431
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18432
 
18433
# Whether we need a single "-rpath" flag with a separated argument.
18434
hardcode_libdir_separator=$lt_hardcode_libdir_separator
18435
 
18436
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18437
# DIR into the resulting binary.
18438
hardcode_direct=$hardcode_direct
18439
 
18440
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18441
# DIR into the resulting binary and the resulting library dependency is
18442
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18443
# library is relocated.
18444
hardcode_direct_absolute=$hardcode_direct_absolute
18445
 
18446
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18447
# into the resulting binary.
18448
hardcode_minus_L=$hardcode_minus_L
18449
 
18450
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18451
# into the resulting binary.
18452
hardcode_shlibpath_var=$hardcode_shlibpath_var
18453
 
18454
# Set to "yes" if building a shared library automatically hardcodes DIR
18455
# into the library and all subsequent libraries and executables linked
18456
# against it.
18457
hardcode_automatic=$hardcode_automatic
18458
 
18459
# Set to yes if linker adds runtime paths of dependent libraries
18460
# to runtime path list.
18461
inherit_rpath=$inherit_rpath
18462
 
18463
# Whether libtool must link a program against all its dependency libraries.
18464
link_all_deplibs=$link_all_deplibs
18465
 
18466
# Fix the shell variable \$srcfile for the compiler.
18467
fix_srcfile_path=$lt_fix_srcfile_path
18468
 
18469
# Set to "yes" if exported symbols are required.
18470
always_export_symbols=$always_export_symbols
18471
 
18472
# The commands to list exported symbols.
18473
export_symbols_cmds=$lt_export_symbols_cmds
18474
 
18475
# Symbols that should not be listed in the preloaded symbols.
18476
exclude_expsyms=$lt_exclude_expsyms
18477
 
18478
# Symbols that must always be exported.
18479
include_expsyms=$lt_include_expsyms
18480
 
18481
# Commands necessary for linking programs (against libraries) with templates.
18482
prelink_cmds=$lt_prelink_cmds
18483
 
18484
# Specify filename containing input files.
18485
file_list_spec=$lt_file_list_spec
18486
 
18487
# How to hardcode a shared library path into an executable.
18488
hardcode_action=$hardcode_action
18489
 
18490
# The directories searched by this compiler when creating a shared library.
18491
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18492
 
18493
# Dependencies to place before and after the objects being linked to
18494
# create a shared library.
18495
predep_objects=$lt_predep_objects
18496
postdep_objects=$lt_postdep_objects
18497
predeps=$lt_predeps
18498
postdeps=$lt_postdeps
18499
 
18500
# The library search path used internally by the compiler when linking
18501
# a shared library.
18502
compiler_lib_search_path=$lt_compiler_lib_search_path
18503
 
18504
# ### END LIBTOOL CONFIG
18505
 
18506
_LT_EOF
18507
 
18508
  case $host_os in
18509
  aix3*)
18510
    cat <<\_LT_EOF >> "$cfgfile"
18511
# AIX sometimes has problems with the GCC collect2 program.  For some
18512
# reason, if we set the COLLECT_NAMES environment variable, the problems
18513
# vanish in a puff of smoke.
18514
if test "X${COLLECT_NAMES+set}" != Xset; then
18515
  COLLECT_NAMES=
18516
  export COLLECT_NAMES
18517
fi
18518
_LT_EOF
18519
    ;;
18520
  esac
18521
 
18522
 
18523
ltmain="$ac_aux_dir/ltmain.sh"
18524
 
18525
 
18526
  # We use sed instead of cat because bash on DJGPP gets confused if
18527
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18528
  # text mode, it properly converts lines to CR/LF.  This bash problem
18529
  # is reportedly fixed, but why not run on old versions too?
18530
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18531
    || (rm -f "$cfgfile"; exit 1)
18532
 
18533
  case $xsi_shell in
18534
  yes)
18535
    cat << \_LT_EOF >> "$cfgfile"
18536
 
18537
# func_dirname file append nondir_replacement
18538
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18539
# otherwise set result to NONDIR_REPLACEMENT.
18540
func_dirname ()
18541
{
18542
  case ${1} in
18543
    */*) func_dirname_result="${1%/*}${2}" ;;
18544
    *  ) func_dirname_result="${3}" ;;
18545
  esac
18546
}
18547
 
18548
# func_basename file
18549
func_basename ()
18550
{
18551
  func_basename_result="${1##*/}"
18552
}
18553
 
18554
# func_dirname_and_basename file append nondir_replacement
18555
# perform func_basename and func_dirname in a single function
18556
# call:
18557
#   dirname:  Compute the dirname of FILE.  If nonempty,
18558
#             add APPEND to the result, otherwise set result
18559
#             to NONDIR_REPLACEMENT.
18560
#             value returned in "$func_dirname_result"
18561
#   basename: Compute filename of FILE.
18562
#             value retuned in "$func_basename_result"
18563
# Implementation must be kept synchronized with func_dirname
18564
# and func_basename. For efficiency, we do not delegate to
18565
# those functions but instead duplicate the functionality here.
18566
func_dirname_and_basename ()
18567
{
18568
  case ${1} in
18569
    */*) func_dirname_result="${1%/*}${2}" ;;
18570
    *  ) func_dirname_result="${3}" ;;
18571
  esac
18572
  func_basename_result="${1##*/}"
18573
}
18574
 
18575
# func_stripname prefix suffix name
18576
# strip PREFIX and SUFFIX off of NAME.
18577
# PREFIX and SUFFIX must not contain globbing or regex special
18578
# characters, hashes, percent signs, but SUFFIX may contain a leading
18579
# dot (in which case that matches only a dot).
18580
func_stripname ()
18581
{
18582
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18583
  # positional parameters, so assign one to ordinary parameter first.
18584
  func_stripname_result=${3}
18585
  func_stripname_result=${func_stripname_result#"${1}"}
18586
  func_stripname_result=${func_stripname_result%"${2}"}
18587
}
18588
 
18589
# func_opt_split
18590
func_opt_split ()
18591
{
18592
  func_opt_split_opt=${1%%=*}
18593
  func_opt_split_arg=${1#*=}
18594
}
18595
 
18596
# func_lo2o object
18597
func_lo2o ()
18598
{
18599
  case ${1} in
18600
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18601
    *)    func_lo2o_result=${1} ;;
18602
  esac
18603
}
18604
 
18605
# func_xform libobj-or-source
18606
func_xform ()
18607
{
18608
  func_xform_result=${1%.*}.lo
18609
}
18610
 
18611
# func_arith arithmetic-term...
18612
func_arith ()
18613
{
18614
  func_arith_result=$(( $* ))
18615
}
18616
 
18617
# func_len string
18618
# STRING may not start with a hyphen.
18619
func_len ()
18620
{
18621
  func_len_result=${#1}
18622
}
18623
 
18624
_LT_EOF
18625
    ;;
18626
  *) # Bourne compatible functions.
18627
    cat << \_LT_EOF >> "$cfgfile"
18628
 
18629
# func_dirname file append nondir_replacement
18630
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18631
# otherwise set result to NONDIR_REPLACEMENT.
18632
func_dirname ()
18633
{
18634
  # Extract subdirectory from the argument.
18635
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18636
  if test "X$func_dirname_result" = "X${1}"; then
18637
    func_dirname_result="${3}"
18638
  else
18639
    func_dirname_result="$func_dirname_result${2}"
18640
  fi
18641
}
18642
 
18643
# func_basename file
18644
func_basename ()
18645
{
18646
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18647
}
18648
 
18649
 
18650
# func_stripname prefix suffix name
18651
# strip PREFIX and SUFFIX off of NAME.
18652
# PREFIX and SUFFIX must not contain globbing or regex special
18653
# characters, hashes, percent signs, but SUFFIX may contain a leading
18654
# dot (in which case that matches only a dot).
18655
# func_strip_suffix prefix name
18656
func_stripname ()
18657
{
18658
  case ${2} in
18659
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18660
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18661
  esac
18662
}
18663
 
18664
# sed scripts:
18665
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18666
my_sed_long_arg='1s/^-[^=]*=//'
18667
 
18668
# func_opt_split
18669
func_opt_split ()
18670
{
18671
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18672
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18673
}
18674
 
18675
# func_lo2o object
18676
func_lo2o ()
18677
{
18678
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18679
}
18680
 
18681
# func_xform libobj-or-source
18682
func_xform ()
18683
{
18684
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18685
}
18686
 
18687
# func_arith arithmetic-term...
18688
func_arith ()
18689
{
18690
  func_arith_result=`expr "$@"`
18691
}
18692
 
18693
# func_len string
18694
# STRING may not start with a hyphen.
18695
func_len ()
18696
{
18697
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18698
}
18699
 
18700
_LT_EOF
18701
esac
18702
 
18703
case $lt_shell_append in
18704
  yes)
18705
    cat << \_LT_EOF >> "$cfgfile"
18706
 
18707
# func_append var value
18708
# Append VALUE to the end of shell variable VAR.
18709
func_append ()
18710
{
18711
  eval "$1+=\$2"
18712
}
18713
_LT_EOF
18714
    ;;
18715
  *)
18716
    cat << \_LT_EOF >> "$cfgfile"
18717
 
18718
# func_append var value
18719
# Append VALUE to the end of shell variable VAR.
18720
func_append ()
18721
{
18722
  eval "$1=\$$1\$2"
18723
}
18724
 
18725
_LT_EOF
18726
    ;;
18727
  esac
18728
 
18729
 
18730
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18731
    || (rm -f "$cfgfile"; exit 1)
18732
 
18733
  mv -f "$cfgfile" "$ofile" ||
18734
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18735
  chmod +x "$ofile"
18736
 
18737
 
18738
    cat <<_LT_EOF >> "$ofile"
18739
 
18740
# ### BEGIN LIBTOOL TAG CONFIG: FC
18741
 
18742
# The linker used to build libraries.
18743
LD=$lt_LD_FC
18744
 
18745
# How to create reloadable object files.
18746
reload_flag=$lt_reload_flag_FC
18747
reload_cmds=$lt_reload_cmds_FC
18748
 
18749
# Commands used to build an old-style archive.
18750
old_archive_cmds=$lt_old_archive_cmds_FC
18751
 
18752
# A language specific compiler.
18753
CC=$lt_compiler_FC
18754
 
18755
# Is the compiler the GNU compiler?
18756
with_gcc=$GCC_FC
18757
 
18758
# Compiler flag to turn off builtin functions.
18759
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18760
 
18761
# How to pass a linker flag through the compiler.
18762
wl=$lt_lt_prog_compiler_wl_FC
18763
 
18764
# Additional compiler flags for building library objects.
18765
pic_flag=$lt_lt_prog_compiler_pic_FC
18766
 
18767
# Compiler flag to prevent dynamic linking.
18768
link_static_flag=$lt_lt_prog_compiler_static_FC
18769
 
18770
# Does compiler simultaneously support -c and -o options?
18771
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18772
 
18773
# Whether or not to add -lc for building shared libraries.
18774
build_libtool_need_lc=$archive_cmds_need_lc_FC
18775
 
18776
# Whether or not to disallow shared libs when runtime libs are static.
18777
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18778
 
18779
# Compiler flag to allow reflexive dlopens.
18780
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18781
 
18782
# Compiler flag to generate shared objects directly from archives.
18783
whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18784
 
18785
# Whether the compiler copes with passing no objects directly.
18786
compiler_needs_object=$lt_compiler_needs_object_FC
18787
 
18788
# Create an old-style archive from a shared archive.
18789
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18790
 
18791
# Create a temporary old-style archive to link instead of a shared archive.
18792
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18793
 
18794
# Commands used to build a shared archive.
18795
archive_cmds=$lt_archive_cmds_FC
18796
archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18797
 
18798
# Commands used to build a loadable module if different from building
18799
# a shared archive.
18800
module_cmds=$lt_module_cmds_FC
18801
module_expsym_cmds=$lt_module_expsym_cmds_FC
18802
 
18803
# Whether we are building with GNU ld or not.
18804
with_gnu_ld=$lt_with_gnu_ld_FC
18805
 
18806
# Flag that allows shared libraries with undefined symbols to be built.
18807
allow_undefined_flag=$lt_allow_undefined_flag_FC
18808
 
18809
# Flag that enforces no undefined symbols.
18810
no_undefined_flag=$lt_no_undefined_flag_FC
18811
 
18812
# Flag to hardcode \$libdir into a binary during linking.
18813
# This must work even if \$libdir does not exist
18814
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18815
 
18816
# If ld is used when linking, flag to hardcode \$libdir into a binary
18817
# during linking.  This must work even if \$libdir does not exist.
18818
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18819
 
18820
# Whether we need a single "-rpath" flag with a separated argument.
18821
hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18822
 
18823
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18824
# DIR into the resulting binary.
18825
hardcode_direct=$hardcode_direct_FC
18826
 
18827
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18828
# DIR into the resulting binary and the resulting library dependency is
18829
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18830
# library is relocated.
18831
hardcode_direct_absolute=$hardcode_direct_absolute_FC
18832
 
18833
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18834
# into the resulting binary.
18835
hardcode_minus_L=$hardcode_minus_L_FC
18836
 
18837
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18838
# into the resulting binary.
18839
hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18840
 
18841
# Set to "yes" if building a shared library automatically hardcodes DIR
18842
# into the library and all subsequent libraries and executables linked
18843
# against it.
18844
hardcode_automatic=$hardcode_automatic_FC
18845
 
18846
# Set to yes if linker adds runtime paths of dependent libraries
18847
# to runtime path list.
18848
inherit_rpath=$inherit_rpath_FC
18849
 
18850
# Whether libtool must link a program against all its dependency libraries.
18851
link_all_deplibs=$link_all_deplibs_FC
18852
 
18853
# Fix the shell variable \$srcfile for the compiler.
18854
fix_srcfile_path=$lt_fix_srcfile_path_FC
18855
 
18856
# Set to "yes" if exported symbols are required.
18857
always_export_symbols=$always_export_symbols_FC
18858
 
18859
# The commands to list exported symbols.
18860
export_symbols_cmds=$lt_export_symbols_cmds_FC
18861
 
18862
# Symbols that should not be listed in the preloaded symbols.
18863
exclude_expsyms=$lt_exclude_expsyms_FC
18864
 
18865
# Symbols that must always be exported.
18866
include_expsyms=$lt_include_expsyms_FC
18867
 
18868
# Commands necessary for linking programs (against libraries) with templates.
18869
prelink_cmds=$lt_prelink_cmds_FC
18870
 
18871
# Specify filename containing input files.
18872
file_list_spec=$lt_file_list_spec_FC
18873
 
18874
# How to hardcode a shared library path into an executable.
18875
hardcode_action=$hardcode_action_FC
18876
 
18877
# The directories searched by this compiler when creating a shared library.
18878
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18879
 
18880
# Dependencies to place before and after the objects being linked to
18881
# create a shared library.
18882
predep_objects=$lt_predep_objects_FC
18883
postdep_objects=$lt_postdep_objects_FC
18884
predeps=$lt_predeps_FC
18885
postdeps=$lt_postdeps_FC
18886
 
18887
# The library search path used internally by the compiler when linking
18888
# a shared library.
18889
compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18890
 
18891
# ### END LIBTOOL TAG CONFIG: FC
18892
_LT_EOF
18893
 
18894
 ;;
18895
    "gstdint.h":C)
18896
if test "$GCC" = yes; then
18897
  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18898
else
18899
  echo "/* generated for $CC */" > tmp-stdint.h
18900
fi
18901
 
18902
sed 's/^ *//' >> tmp-stdint.h <
18903
 
18904
  #ifndef GCC_GENERATED_STDINT_H
18905
  #define GCC_GENERATED_STDINT_H 1
18906
 
18907
  #include 
18908
EOF
18909
 
18910
if test "$acx_cv_header_stdint" != stdint.h; then
18911
  echo "#include " >> tmp-stdint.h
18912
fi
18913
if test "$acx_cv_header_stdint" != stddef.h; then
18914
  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18915
fi
18916
 
18917
sed 's/^ *//' >> tmp-stdint.h <
18918
  /* glibc uses these symbols as guards to prevent redefinitions.  */
18919
  #ifdef __int8_t_defined
18920
  #define _INT8_T
18921
  #define _INT16_T
18922
  #define _INT32_T
18923
  #endif
18924
  #ifdef __uint32_t_defined
18925
  #define _UINT32_T
18926
  #endif
18927
 
18928
EOF
18929
 
18930
# ----------------- done header, emit basic int types -------------
18931
if test "$acx_cv_header_stdint" = stddef.h; then
18932
  sed 's/^ *//' >> tmp-stdint.h <
18933
 
18934
    #ifndef _UINT8_T
18935
    #define _UINT8_T
18936
    #ifndef __uint8_t_defined
18937
    #define __uint8_t_defined
18938
    #ifndef uint8_t
18939
    typedef unsigned $acx_cv_type_int8_t uint8_t;
18940
    #endif
18941
    #endif
18942
    #endif
18943
 
18944
    #ifndef _UINT16_T
18945
    #define _UINT16_T
18946
    #ifndef __uint16_t_defined
18947
    #define __uint16_t_defined
18948
    #ifndef uint16_t
18949
    typedef unsigned $acx_cv_type_int16_t uint16_t;
18950
    #endif
18951
    #endif
18952
    #endif
18953
 
18954
    #ifndef _UINT32_T
18955
    #define _UINT32_T
18956
    #ifndef __uint32_t_defined
18957
    #define __uint32_t_defined
18958
    #ifndef uint32_t
18959
    typedef unsigned $acx_cv_type_int32_t uint32_t;
18960
    #endif
18961
    #endif
18962
    #endif
18963
 
18964
    #ifndef _INT8_T
18965
    #define _INT8_T
18966
    #ifndef __int8_t_defined
18967
    #define __int8_t_defined
18968
    #ifndef int8_t
18969
    typedef $acx_cv_type_int8_t int8_t;
18970
    #endif
18971
    #endif
18972
    #endif
18973
 
18974
    #ifndef _INT16_T
18975
    #define _INT16_T
18976
    #ifndef __int16_t_defined
18977
    #define __int16_t_defined
18978
    #ifndef int16_t
18979
    typedef $acx_cv_type_int16_t int16_t;
18980
    #endif
18981
    #endif
18982
    #endif
18983
 
18984
    #ifndef _INT32_T
18985
    #define _INT32_T
18986
    #ifndef __int32_t_defined
18987
    #define __int32_t_defined
18988
    #ifndef int32_t
18989
    typedef $acx_cv_type_int32_t int32_t;
18990
    #endif
18991
    #endif
18992
    #endif
18993
EOF
18994
elif test "$ac_cv_type_u_int32_t" = yes; then
18995
  sed 's/^ *//' >> tmp-stdint.h <
18996
 
18997
    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18998
    #ifndef _INT8_T
18999
    #define _INT8_T
19000
    #endif
19001
    #ifndef _INT16_T
19002
    #define _INT16_T
19003
    #endif
19004
    #ifndef _INT32_T
19005
    #define _INT32_T
19006
    #endif
19007
 
19008
    #ifndef _UINT8_T
19009
    #define _UINT8_T
19010
    #ifndef __uint8_t_defined
19011
    #define __uint8_t_defined
19012
    #ifndef uint8_t
19013
    typedef u_int8_t uint8_t;
19014
    #endif
19015
    #endif
19016
    #endif
19017
 
19018
    #ifndef _UINT16_T
19019
    #define _UINT16_T
19020
    #ifndef __uint16_t_defined
19021
    #define __uint16_t_defined
19022
    #ifndef uint16_t
19023
    typedef u_int16_t uint16_t;
19024
    #endif
19025
    #endif
19026
    #endif
19027
 
19028
    #ifndef _UINT32_T
19029
    #define _UINT32_T
19030
    #ifndef __uint32_t_defined
19031
    #define __uint32_t_defined
19032
    #ifndef uint32_t
19033
    typedef u_int32_t uint32_t;
19034
    #endif
19035
    #endif
19036
    #endif
19037
EOF
19038
else
19039
  sed 's/^ *//' >> tmp-stdint.h <
19040
 
19041
    /* Some systems have guard macros to prevent redefinitions, define them.  */
19042
    #ifndef _INT8_T
19043
    #define _INT8_T
19044
    #endif
19045
    #ifndef _INT16_T
19046
    #define _INT16_T
19047
    #endif
19048
    #ifndef _INT32_T
19049
    #define _INT32_T
19050
    #endif
19051
    #ifndef _UINT8_T
19052
    #define _UINT8_T
19053
    #endif
19054
    #ifndef _UINT16_T
19055
    #define _UINT16_T
19056
    #endif
19057
    #ifndef _UINT32_T
19058
    #define _UINT32_T
19059
    #endif
19060
EOF
19061
fi
19062
 
19063
# ------------- done basic int types, emit int64_t types ------------
19064
if test "$ac_cv_type_uint64_t" = yes; then
19065
  sed 's/^ *//' >> tmp-stdint.h <
19066
 
19067
    /* system headers have good uint64_t and int64_t */
19068
    #ifndef _INT64_T
19069
    #define _INT64_T
19070
    #endif
19071
    #ifndef _UINT64_T
19072
    #define _UINT64_T
19073
    #endif
19074
EOF
19075
elif test "$ac_cv_type_u_int64_t" = yes; then
19076
  sed 's/^ *//' >> tmp-stdint.h <
19077
 
19078
    /* system headers have an u_int64_t (and int64_t) */
19079
    #ifndef _INT64_T
19080
    #define _INT64_T
19081
    #endif
19082
    #ifndef _UINT64_T
19083
    #define _UINT64_T
19084
    #ifndef __uint64_t_defined
19085
    #define __uint64_t_defined
19086
    #ifndef uint64_t
19087
    typedef u_int64_t uint64_t;
19088
    #endif
19089
    #endif
19090
    #endif
19091
EOF
19092
elif test -n "$acx_cv_type_int64_t"; then
19093
  sed 's/^ *//' >> tmp-stdint.h <
19094
 
19095
    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19096
    #ifndef _INT64_T
19097
    #define _INT64_T
19098
    #ifndef int64_t
19099
    typedef $acx_cv_type_int64_t int64_t;
19100
    #endif
19101
    #endif
19102
    #ifndef _UINT64_T
19103
    #define _UINT64_T
19104
    #ifndef __uint64_t_defined
19105
    #define __uint64_t_defined
19106
    #ifndef uint64_t
19107
    typedef unsigned $acx_cv_type_int64_t uint64_t;
19108
    #endif
19109
    #endif
19110
    #endif
19111
EOF
19112
else
19113
  sed 's/^ *//' >> tmp-stdint.h <
19114
 
19115
    /* some common heuristics for int64_t, using compiler-specific tests */
19116
    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19117
    #ifndef _INT64_T
19118
    #define _INT64_T
19119
    #ifndef __int64_t_defined
19120
    #ifndef int64_t
19121
    typedef long long int64_t;
19122
    #endif
19123
    #endif
19124
    #endif
19125
    #ifndef _UINT64_T
19126
    #define _UINT64_T
19127
    #ifndef uint64_t
19128
    typedef unsigned long long uint64_t;
19129
    #endif
19130
    #endif
19131
 
19132
    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19133
    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19134
       does not implement __extension__.  But that compiler doesn't define
19135
       __GNUC_MINOR__.  */
19136
    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19137
    # define __extension__
19138
    # endif
19139
 
19140
    # ifndef _INT64_T
19141
    # define _INT64_T
19142
    # ifndef int64_t
19143
    __extension__ typedef long long int64_t;
19144
    # endif
19145
    # endif
19146
    # ifndef _UINT64_T
19147
    # define _UINT64_T
19148
    # ifndef uint64_t
19149
    __extension__ typedef unsigned long long uint64_t;
19150
    # endif
19151
    # endif
19152
 
19153
    #elif !defined __STRICT_ANSI__
19154
    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19155
 
19156
    #  ifndef _INT64_T
19157
    #  define _INT64_T
19158
    #  ifndef int64_t
19159
    typedef __int64 int64_t;
19160
    #  endif
19161
    #  endif
19162
    #  ifndef _UINT64_T
19163
    #  define _UINT64_T
19164
    #  ifndef uint64_t
19165
    typedef unsigned __int64 uint64_t;
19166
    #  endif
19167
    #  endif
19168
    # endif /* compiler */
19169
 
19170
    #endif /* ANSI version */
19171
EOF
19172
fi
19173
 
19174
# ------------- done int64_t types, emit intptr types ------------
19175
if test "$ac_cv_type_uintptr_t" != yes; then
19176
  sed 's/^ *//' >> tmp-stdint.h <
19177
 
19178
    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19179
    #ifndef __uintptr_t_defined
19180
    #ifndef uintptr_t
19181
    typedef u$acx_cv_type_intptr_t uintptr_t;
19182
    #endif
19183
    #endif
19184
    #ifndef __intptr_t_defined
19185
    #ifndef intptr_t
19186
    typedef $acx_cv_type_intptr_t  intptr_t;
19187
    #endif
19188
    #endif
19189
EOF
19190
fi
19191
 
19192
# ------------- done intptr types, emit int_least types ------------
19193
if test "$ac_cv_type_int_least32_t" != yes; then
19194
  sed 's/^ *//' >> tmp-stdint.h <
19195
 
19196
    /* Define int_least types */
19197
    typedef int8_t     int_least8_t;
19198
    typedef int16_t    int_least16_t;
19199
    typedef int32_t    int_least32_t;
19200
    #ifdef _INT64_T
19201
    typedef int64_t    int_least64_t;
19202
    #endif
19203
 
19204
    typedef uint8_t    uint_least8_t;
19205
    typedef uint16_t   uint_least16_t;
19206
    typedef uint32_t   uint_least32_t;
19207
    #ifdef _UINT64_T
19208
    typedef uint64_t   uint_least64_t;
19209
    #endif
19210
EOF
19211
fi
19212
 
19213
# ------------- done intptr types, emit int_fast types ------------
19214
if test "$ac_cv_type_int_fast32_t" != yes; then
19215
      sed 's/^ *//' >> tmp-stdint.h <
19216
 
19217
    /* Define int_fast types.  short is often slow */
19218
    typedef int8_t       int_fast8_t;
19219
    typedef int          int_fast16_t;
19220
    typedef int32_t      int_fast32_t;
19221
    #ifdef _INT64_T
19222
    typedef int64_t      int_fast64_t;
19223
    #endif
19224
 
19225
    typedef uint8_t      uint_fast8_t;
19226
    typedef unsigned int uint_fast16_t;
19227
    typedef uint32_t     uint_fast32_t;
19228
    #ifdef _UINT64_T
19229
    typedef uint64_t     uint_fast64_t;
19230
    #endif
19231
EOF
19232
fi
19233
 
19234
if test "$ac_cv_type_uintmax_t" != yes; then
19235
  sed 's/^ *//' >> tmp-stdint.h <
19236
 
19237
    /* Define intmax based on what we found */
19238
    #ifndef intmax_t
19239
    #ifdef _INT64_T
19240
    typedef int64_t       intmax_t;
19241
    #else
19242
    typedef long          intmax_t;
19243
    #endif
19244
    #endif
19245
    #ifndef uintmax_t
19246
    #ifdef _UINT64_T
19247
    typedef uint64_t      uintmax_t;
19248
    #else
19249
    typedef unsigned long uintmax_t;
19250
    #endif
19251
    #endif
19252
EOF
19253
fi
19254
 
19255
sed 's/^ *//' >> tmp-stdint.h <
19256
 
19257
  #endif /* GCC_GENERATED_STDINT_H */
19258
EOF
19259
 
19260
if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19261
  rm -f tmp-stdint.h
19262
else
19263
  mv -f tmp-stdint.h gstdint.h
19264
fi
19265
 
19266
 ;;
19267
 
19268
  esac
19269
done # for ac_tag
19270
 
19271
 
19272
as_fn_exit 0
19273
_ACEOF
19274
ac_clean_files=$ac_clean_files_save
19275
 
19276
test $ac_write_fail = 0 ||
19277
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19278
 
19279
 
19280
# configure is writing to config.log, and then calls config.status.
19281
# config.status does its own redirection, appending to config.log.
19282
# Unfortunately, on DOS this fails, as config.log is still kept open
19283
# by configure, so config.status won't be able to write to it; its
19284
# output is simply discarded.  So we exec the FD to /dev/null,
19285
# effectively closing config.log, so it can be properly (re)opened and
19286
# appended to by config.status.  When coming back to configure, we
19287
# need to make the FD available again.
19288
if test "$no_create" != yes; then
19289
  ac_cs_success=:
19290
  ac_config_status_args=
19291
  test "$silent" = yes &&
19292
    ac_config_status_args="$ac_config_status_args --quiet"
19293
  exec 5>/dev/null
19294
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19295
  exec 5>>config.log
19296
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19297
  # would make configure fail if this is the last instruction.
19298
  $ac_cs_success || as_fn_exit $?
19299
fi
19300
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19301
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19302
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19303
fi
19304
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.