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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [autom4te.cache/] [output.1] - Blame information for rev 42

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

Line No. Rev Author Line
1 19 jeremybenn
@%:@! /bin/sh
2
@%:@ From configure.in Id using automake version AC_ACVERSION.
3
@%:@ Guess values for system-dependent variables and create Makefiles.
4
@%:@ Generated by GNU Autoconf 2.61 for or1ksim 0.3.0.
5
@%:@
6
@%:@ Report bugs to .
7
@%:@
8
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10
@%:@ This configure script is free software; the Free Software Foundation
11
@%:@ gives unlimited permission to copy, distribute and modify it.
12
## --------------------- ##
13
## M4sh Initialization.  ##
14
## --------------------- ##
15
 
16
# Be more Bourne compatible
17
DUALCASE=1; export DUALCASE # for MKS sh
18
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19
  emulate sh
20
  NULLCMD=:
21
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22
  # is contrary to our usage.  Disable this feature.
23
  alias -g '${1+"$@"}'='"$@"'
24
  setopt NO_GLOB_SUBST
25
else
26
  case `(set -o) 2>/dev/null` in
27
  *posix*) set -o posix ;;
28
esac
29
 
30
fi
31
 
32
 
33
 
34
 
35
# PATH needs CR
36
# Avoid depending upon Character Ranges.
37
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40
as_cr_digits='0123456789'
41
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
 
43
# The user is always right.
44
if test "${PATH_SEPARATOR+set}" != set; then
45
  echo "#! /bin/sh" >conf$$.sh
46
  echo  "exit 0"   >>conf$$.sh
47
  chmod +x conf$$.sh
48
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49
    PATH_SEPARATOR=';'
50
  else
51
    PATH_SEPARATOR=:
52
  fi
53
  rm -f conf$$.sh
54
fi
55
 
56
# Support unset when possible.
57
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58
  as_unset=unset
59
else
60
  as_unset=false
61
fi
62
 
63
 
64
# IFS
65
# We need space, tab and new line, in precisely that order.  Quoting is
66
# there to prevent editors from complaining about space-tab.
67
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68
# splitting by setting IFS to empty value.)
69
as_nl='
70
'
71
IFS=" ""        $as_nl"
72
 
73
# Find who we are.  Look in the path if we contain no directory separator.
74
case $0 in
75
  *[\\/]* ) as_myself=$0 ;;
76
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
for as_dir in $PATH
78
do
79
  IFS=$as_save_IFS
80
  test -z "$as_dir" && as_dir=.
81
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82
done
83
IFS=$as_save_IFS
84
 
85
     ;;
86
esac
87
# We did not find ourselves, most probably we were run as `sh COMMAND'
88
# in which case we are not to be found in the path.
89
if test "x$as_myself" = x; then
90
  as_myself=$0
91
fi
92
if test ! -f "$as_myself"; then
93
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
  { (exit 1); exit 1; }
95
fi
96
 
97
# Work around bugs in pre-3.0 UWIN ksh.
98
for as_var in ENV MAIL MAILPATH
99
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100
done
101
PS1='$ '
102
PS2='> '
103
PS4='+ '
104
 
105
# NLS nuisances.
106
for as_var in \
107
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109
  LC_TELEPHONE LC_TIME
110
do
111
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112
    eval $as_var=C; export $as_var
113
  else
114
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
  fi
116
done
117
 
118
# Required to use basename.
119
if expr a : '\(a\)' >/dev/null 2>&1 &&
120
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
121
  as_expr=expr
122
else
123
  as_expr=false
124
fi
125
 
126
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127
  as_basename=basename
128
else
129
  as_basename=false
130
fi
131
 
132
 
133
# Name of the executable.
134
as_me=`$as_basename -- "$0" ||
135
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136
         X"$0" : 'X\(//\)$' \| \
137
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
echo X/"$0" |
139
    sed '/^.*\/\([^/][^/]*\)\/*$/{
140
            s//\1/
141
            q
142
          }
143
          /^X\/\(\/\/\)$/{
144
            s//\1/
145
            q
146
          }
147
          /^X\/\(\/\).*/{
148
            s//\1/
149
            q
150
          }
151
          s/.*/./; q'`
152
 
153
# CDPATH.
154
$as_unset CDPATH
155
 
156
 
157
if test "x$CONFIG_SHELL" = x; then
158
  if (eval ":") 2>/dev/null; then
159
  as_have_required=yes
160
else
161
  as_have_required=no
162
fi
163
 
164
  if test $as_have_required = yes &&     (eval ":
165
(as_func_return () {
166
  (exit \$1)
167
}
168
as_func_success () {
169
  as_func_return 0
170
}
171
as_func_failure () {
172
  as_func_return 1
173
}
174
as_func_ret_success () {
175
  return 0
176
}
177
as_func_ret_failure () {
178
  return 1
179
}
180
 
181
exitcode=0
182
if as_func_success; then
183
  :
184
else
185
  exitcode=1
186
  echo as_func_success failed.
187
fi
188
 
189
if as_func_failure; then
190
  exitcode=1
191
  echo as_func_failure succeeded.
192
fi
193
 
194
if as_func_ret_success; then
195
  :
196
else
197
  exitcode=1
198
  echo as_func_ret_success failed.
199
fi
200
 
201
if as_func_ret_failure; then
202
  exitcode=1
203
  echo as_func_ret_failure succeeded.
204
fi
205
 
206
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
  :
208
else
209
  exitcode=1
210
  echo positional parameters were not saved.
211
fi
212
 
213
test \$exitcode = 0) || { (exit 1); exit 1; }
214
 
215
(
216
  as_lineno_1=\$LINENO
217
  as_lineno_2=\$LINENO
218
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220
") 2> /dev/null; then
221
  :
222
else
223
  as_candidate_shells=
224
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226
do
227
  IFS=$as_save_IFS
228
  test -z "$as_dir" && as_dir=.
229
  case $as_dir in
230
         /*)
231
           for as_base in sh bash ksh sh5; do
232
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233
           done;;
234
       esac
235
done
236
IFS=$as_save_IFS
237
 
238
 
239
      for as_shell in $as_candidate_shells $SHELL; do
240
         # Try only shells that exist, to save several forks.
241
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242
                { ("$as_shell") 2> /dev/null <<\_ASEOF
243
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244
  emulate sh
245
  NULLCMD=:
246
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247
  # is contrary to our usage.  Disable this feature.
248
  alias -g '${1+"$@"}'='"$@"'
249
  setopt NO_GLOB_SUBST
250
else
251
  case `(set -o) 2>/dev/null` in
252
  *posix*) set -o posix ;;
253
esac
254
 
255
fi
256
 
257
 
258
:
259
_ASEOF
260
}; then
261
  CONFIG_SHELL=$as_shell
262
               as_have_required=yes
263
               if { "$as_shell" 2> /dev/null <<\_ASEOF
264
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265
  emulate sh
266
  NULLCMD=:
267
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268
  # is contrary to our usage.  Disable this feature.
269
  alias -g '${1+"$@"}'='"$@"'
270
  setopt NO_GLOB_SUBST
271
else
272
  case `(set -o) 2>/dev/null` in
273
  *posix*) set -o posix ;;
274
esac
275
 
276
fi
277
 
278
 
279
:
280
(as_func_return () {
281
  (exit $1)
282
}
283
as_func_success () {
284
  as_func_return 0
285
}
286
as_func_failure () {
287
  as_func_return 1
288
}
289
as_func_ret_success () {
290
  return 0
291
}
292
as_func_ret_failure () {
293
  return 1
294
}
295
 
296
exitcode=0
297
if as_func_success; then
298
  :
299
else
300
  exitcode=1
301
  echo as_func_success failed.
302
fi
303
 
304
if as_func_failure; then
305
  exitcode=1
306
  echo as_func_failure succeeded.
307
fi
308
 
309
if as_func_ret_success; then
310
  :
311
else
312
  exitcode=1
313
  echo as_func_ret_success failed.
314
fi
315
 
316
if as_func_ret_failure; then
317
  exitcode=1
318
  echo as_func_ret_failure succeeded.
319
fi
320
 
321
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
  :
323
else
324
  exitcode=1
325
  echo positional parameters were not saved.
326
fi
327
 
328
test $exitcode = 0) || { (exit 1); exit 1; }
329
 
330
(
331
  as_lineno_1=$LINENO
332
  as_lineno_2=$LINENO
333
  test "x$as_lineno_1" != "x$as_lineno_2" &&
334
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
 
336
_ASEOF
337
}; then
338
  break
339
fi
340
 
341
fi
342
 
343
      done
344
 
345
      if test "x$CONFIG_SHELL" != x; then
346
  for as_var in BASH_ENV ENV
347
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348
        done
349
        export CONFIG_SHELL
350
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
fi
352
 
353
 
354
    if test $as_have_required = no; then
355
  echo This script requires a shell more modern than all the
356
      echo shells that I found on your system.  Please install a
357
      echo modern shell, or manually run the script under such a
358
      echo shell if you do have one.
359
      { (exit 1); exit 1; }
360
fi
361
 
362
 
363
fi
364
 
365
fi
366
 
367
 
368
 
369
(eval "as_func_return () {
370
  (exit \$1)
371
}
372
as_func_success () {
373
  as_func_return 0
374
}
375
as_func_failure () {
376
  as_func_return 1
377
}
378
as_func_ret_success () {
379
  return 0
380
}
381
as_func_ret_failure () {
382
  return 1
383
}
384
 
385
exitcode=0
386
if as_func_success; then
387
  :
388
else
389
  exitcode=1
390
  echo as_func_success failed.
391
fi
392
 
393
if as_func_failure; then
394
  exitcode=1
395
  echo as_func_failure succeeded.
396
fi
397
 
398
if as_func_ret_success; then
399
  :
400
else
401
  exitcode=1
402
  echo as_func_ret_success failed.
403
fi
404
 
405
if as_func_ret_failure; then
406
  exitcode=1
407
  echo as_func_ret_failure succeeded.
408
fi
409
 
410
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
  :
412
else
413
  exitcode=1
414
  echo positional parameters were not saved.
415
fi
416
 
417
test \$exitcode = 0") || {
418
  echo No shell found that supports shell functions.
419
  echo Please tell autoconf@gnu.org about your system,
420
  echo including any error possibly output before this
421
  echo message
422
}
423
 
424
 
425
 
426
  as_lineno_1=$LINENO
427
  as_lineno_2=$LINENO
428
  test "x$as_lineno_1" != "x$as_lineno_2" &&
429
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
 
431
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432
  # uniformly replaced by the line number.  The first 'sed' inserts a
433
  # line-number line after each line using $LINENO; the second 'sed'
434
  # does the real work.  The second script uses 'N' to pair each
435
  # line-number line with the line containing $LINENO, and appends
436
  # trailing '-' during substitution so that $LINENO is not a special
437
  # case at line end.
438
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
440
  # E. McMahon (1931-1989) for sed's syntax.  :-)
441
  sed -n '
442
    p
443
    /[$]LINENO/=
444
  ' <$as_myself |
445
    sed '
446
      s/[$]LINENO.*/&-/
447
      t lineno
448
      b
449
      :lineno
450
      N
451
      :loop
452
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
      t loop
454
      s/-\n.*//
455
    ' >$as_me.lineno &&
456
  chmod +x "$as_me.lineno" ||
457
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458
   { (exit 1); exit 1; }; }
459
 
460
  # Don't try to exec as it changes $[0], causing all sort of problems
461
  # (the dirname of $[0] is not the place where we might find the
462
  # original and so on.  Autoconf is especially sensitive to this).
463
  . "./$as_me.lineno"
464
  # Exit status is that of the last command.
465
  exit
466
}
467
 
468
 
469
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470
  as_dirname=dirname
471
else
472
  as_dirname=false
473
fi
474
 
475
ECHO_C= ECHO_N= ECHO_T=
476
case `echo -n x` in
477
-n*)
478
  case `echo 'x\c'` in
479
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480
  *)   ECHO_C='\c';;
481
  esac;;
482
*)
483
  ECHO_N='-n';;
484
esac
485
 
486
if expr a : '\(a\)' >/dev/null 2>&1 &&
487
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
488
  as_expr=expr
489
else
490
  as_expr=false
491
fi
492
 
493
rm -f conf$$ conf$$.exe conf$$.file
494
if test -d conf$$.dir; then
495
  rm -f conf$$.dir/conf$$.file
496
else
497
  rm -f conf$$.dir
498
  mkdir conf$$.dir
499
fi
500
echo >conf$$.file
501
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
  as_ln_s='ln -s'
503
  # ... but there are two gotchas:
504
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506
  # In both cases, we have to default to `cp -p'.
507
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
    as_ln_s='cp -p'
509
elif ln conf$$.file conf$$ 2>/dev/null; then
510
  as_ln_s=ln
511
else
512
  as_ln_s='cp -p'
513
fi
514
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515
rmdir conf$$.dir 2>/dev/null
516
 
517
if mkdir -p . 2>/dev/null; then
518
  as_mkdir_p=:
519
else
520
  test -d ./-p && rmdir ./-p
521
  as_mkdir_p=false
522
fi
523
 
524
if test -x / >/dev/null 2>&1; then
525
  as_test_x='test -x'
526
else
527
  if ls -dL / >/dev/null 2>&1; then
528
    as_ls_L_option=L
529
  else
530
    as_ls_L_option=
531
  fi
532
  as_test_x='
533
    eval sh -c '\''
534
      if test -d "$1"; then
535
        test -d "$1/.";
536
      else
537
        case $1 in
538
        -*)set "./$1";;
539
        esac;
540
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541
        ???[sx]*):;;*)false;;esac;fi
542
    '\'' sh
543
  '
544
fi
545
as_executable_p=$as_test_x
546
 
547
# Sed expression to map a string onto a valid CPP name.
548
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
 
550
# Sed expression to map a string onto a valid variable name.
551
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
 
553
 
554
 
555
 
556
# Check that we are running under the correct shell.
557
SHELL=${CONFIG_SHELL-/bin/sh}
558
 
559
case X$ECHO in
560
X*--fallback-echo)
561
  # Remove one level of quotation (which was required for Make).
562
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563
  ;;
564
esac
565
 
566
echo=${ECHO-echo}
567
if test "X$1" = X--no-reexec; then
568
  # Discard the --no-reexec flag, and continue.
569
  shift
570
elif test "X$1" = X--fallback-echo; then
571
  # Avoid inline document here, it may be left over
572
  :
573
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574
  # Yippee, $echo works!
575
  :
576
else
577
  # Restart under the correct shell.
578
  exec $SHELL "$0" --no-reexec ${1+"$@"}
579
fi
580
 
581
if test "X$1" = X--fallback-echo; then
582
  # used as fallback echo
583
  shift
584
  cat <
585
$*
586
EOF
587
  exit 0
588
fi
589
 
590
# The HP-UX ksh and POSIX shell print the target directory to stdout
591
# if CDPATH is set.
592
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
 
594
if test -z "$ECHO"; then
595
if test "X${echo_test_string+set}" != Xset; then
596
# find a string as large as possible, as long as the shell can cope with it
597
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600
       echo_test_string=`eval $cmd` &&
601
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602
    then
603
      break
604
    fi
605
  done
606
fi
607
 
608
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610
   test "X$echo_testing_string" = "X$echo_test_string"; then
611
  :
612
else
613
  # The Solaris, AIX, and Digital Unix default echo programs unquote
614
  # backslashes.  This makes it impossible to quote backslashes using
615
  #   echo "$something" | sed 's/\\/\\\\/g'
616
  #
617
  # So, first we look for a working echo in the user's PATH.
618
 
619
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620
  for dir in $PATH /usr/ucb; do
621
    IFS="$lt_save_ifs"
622
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625
       test "X$echo_testing_string" = "X$echo_test_string"; then
626
      echo="$dir/echo"
627
      break
628
    fi
629
  done
630
  IFS="$lt_save_ifs"
631
 
632
  if test "X$echo" = Xecho; then
633
    # We didn't find a better echo, so look for alternatives.
634
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636
       test "X$echo_testing_string" = "X$echo_test_string"; then
637
      # This shell has a builtin print -r that does the trick.
638
      echo='print -r'
639
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640
         test "X$CONFIG_SHELL" != X/bin/ksh; then
641
      # If we have ksh, try running configure again with it.
642
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643
      export ORIGINAL_CONFIG_SHELL
644
      CONFIG_SHELL=/bin/ksh
645
      export CONFIG_SHELL
646
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647
    else
648
      # Try using printf.
649
      echo='printf %s\n'
650
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652
         test "X$echo_testing_string" = "X$echo_test_string"; then
653
        # Cool, printf works
654
        :
655
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656
           test "X$echo_testing_string" = 'X\t' &&
657
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658
           test "X$echo_testing_string" = "X$echo_test_string"; then
659
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660
        export CONFIG_SHELL
661
        SHELL="$CONFIG_SHELL"
662
        export SHELL
663
        echo="$CONFIG_SHELL $0 --fallback-echo"
664
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665
           test "X$echo_testing_string" = 'X\t' &&
666
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667
           test "X$echo_testing_string" = "X$echo_test_string"; then
668
        echo="$CONFIG_SHELL $0 --fallback-echo"
669
      else
670
        # maybe with a smaller string...
671
        prev=:
672
 
673
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675
          then
676
            break
677
          fi
678
          prev="$cmd"
679
        done
680
 
681
        if test "$prev" != 'sed 50q "$0"'; then
682
          echo_test_string=`eval $prev`
683
          export echo_test_string
684
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685
        else
686
          # Oops.  We lost completely, so just stick with echo.
687
          echo=echo
688
        fi
689
      fi
690
    fi
691
  fi
692
fi
693
fi
694
 
695
# Copy echo and quote the copy suitably for passing to libtool from
696
# the Makefile, instead of quoting the original, which is used later.
697
ECHO=$echo
698
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700
fi
701
 
702
 
703
 
704
 
705
tagnames=${tagnames+${tagnames},}CXX
706
 
707
tagnames=${tagnames+${tagnames},}F77
708
 
709
exec 7<&0 &1
710
 
711
# Name of the host.
712
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713
# so uname gets run too.
714
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
 
716
#
717
# Initializations.
718
#
719
ac_default_prefix=/usr/local
720
ac_clean_files=
721
ac_config_libobj_dir=.
722
LIB@&t@OBJS=
723
cross_compiling=no
724
subdirs=
725
MFLAGS=
726
MAKEFLAGS=
727
SHELL=${CONFIG_SHELL-/bin/sh}
728
 
729
# Identity of this package.
730
PACKAGE_NAME='or1ksim'
731
PACKAGE_TARNAME='or1ksim'
732
PACKAGE_VERSION='0.3.0'
733
PACKAGE_STRING='or1ksim 0.3.0'
734
PACKAGE_BUGREPORT='openrisc@opencores.org'
735
 
736
ac_unique_file="cpu/or32/execute.c"
737
# Factoring default headers for most tests.
738
ac_includes_default="\
739
#include 
740
#ifdef HAVE_SYS_TYPES_H
741
# include 
742
#endif
743
#ifdef HAVE_SYS_STAT_H
744
# include 
745
#endif
746
#ifdef STDC_HEADERS
747
# include 
748
# include 
749
#else
750
# ifdef HAVE_STDLIB_H
751
#  include 
752
# endif
753
#endif
754
#ifdef HAVE_STRING_H
755
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756
#  include 
757
# endif
758
# include 
759
#endif
760
#ifdef HAVE_STRINGS_H
761
# include 
762
#endif
763
#ifdef HAVE_INTTYPES_H
764
# include 
765
#endif
766
#ifdef HAVE_STDINT_H
767
# include 
768
#endif
769
#ifdef HAVE_UNISTD_H
770
# include 
771
#endif"
772
 
773
ac_subst_vars='SHELL
774
PATH_SEPARATOR
775
PACKAGE_NAME
776
PACKAGE_TARNAME
777
PACKAGE_VERSION
778
PACKAGE_STRING
779
PACKAGE_BUGREPORT
780
exec_prefix
781
prefix
782
program_transform_name
783
bindir
784
sbindir
785
libexecdir
786
datarootdir
787
datadir
788
sysconfdir
789
sharedstatedir
790
localstatedir
791
includedir
792
oldincludedir
793
docdir
794
infodir
795
htmldir
796
dvidir
797
pdfdir
798
psdir
799
libdir
800
localedir
801
mandir
802
DEFS
803
ECHO_C
804
ECHO_N
805
ECHO_T
806
LIBS
807
build_alias
808
host_alias
809
target_alias
810
build
811
build_cpu
812
build_vendor
813
build_os
814
host
815
host_cpu
816
host_vendor
817
host_os
818
target
819
target_cpu
820
target_vendor
821
target_os
822
CC
823
CFLAGS
824
LDFLAGS
825
CPPFLAGS
826
ac_ct_CC
827
EXEEXT
828
OBJEXT
829
SED
830
GREP
831
EGREP
832
LN_S
833
ECHO
834
AR
835
RANLIB
836
STRIP
837
CPP
838
CXX
839
CXXFLAGS
840
ac_ct_CXX
841
CXXCPP
842
F77
843
FFLAGS
844
ac_ct_F77
845
LIBTOOL
846
INSTALL_PROGRAM
847
INSTALL_SCRIPT
848
INSTALL_DATA
849
am__isrc
850
CYGPATH_W
851
PACKAGE
852
VERSION
853
ACLOCAL
854
AUTOCONF
855
AUTOMAKE
856
AUTOHEADER
857
MAKEINFO
858
install_sh
859
INSTALL_STRIP_PROGRAM
860
mkdir_p
861
AWK
862
SET_MAKE
863
am__leading_dot
864
AMTAR
865
am__tar
866
am__untar
867
DEPDIR
868
am__include
869
am__quote
870
AMDEP_TRUE
871
AMDEP_FALSE
872
AMDEPBACKSLASH
873
CCDEPMODE
874
am__fastdepCC_TRUE
875
am__fastdepCC_FALSE
876
CXXDEPMODE
877
am__fastdepCXX_TRUE
878
am__fastdepCXX_FALSE
879
CPU_ARCH
880
MAKE_SHELL
881
GENERATE_NEEDED_TRUE
882
GENERATE_NEEDED_FALSE
883
DYNAMIC_EXECUTION_TRUE
884
DYNAMIC_EXECUTION_FALSE
885
BUILD_DIR
886
LOCAL_CFLAGS
887
LOCAL_LDFLAGS
888
LOCAL_DEFS
889
ARFLAGS
890
SUMVERSION
891
TERMCAP_LIB
892
INCLUDES
893
LIB@&t@OBJS
894
LTLIBOBJS'
895
ac_subst_files=''
896
      ac_precious_vars='build_alias
897
host_alias
898
target_alias
899
CC
900
CFLAGS
901
LDFLAGS
902
LIBS
903
CPPFLAGS
904
CPP
905
CXX
906
CXXFLAGS
907
CCC
908
CXXCPP
909
F77
910
FFLAGS'
911
 
912
 
913
# Initialize some variables set by options.
914
ac_init_help=
915
ac_init_version=false
916
# The variables have the same names as the options, with
917
# dashes changed to underlines.
918
cache_file=/dev/null
919
exec_prefix=NONE
920
no_create=
921
no_recursion=
922
prefix=NONE
923
program_prefix=NONE
924
program_suffix=NONE
925
program_transform_name=s,x,x,
926
silent=
927
site=
928
srcdir=
929
verbose=
930
x_includes=NONE
931
x_libraries=NONE
932
 
933
# Installation directory options.
934
# These are left unexpanded so users can "make install exec_prefix=/foo"
935
# and all the variables that are supposed to be based on exec_prefix
936
# by default will actually change.
937
# Use braces instead of parens because sh, perl, etc. also accept them.
938
# (The list follows the same order as the GNU Coding Standards.)
939
bindir='${exec_prefix}/bin'
940
sbindir='${exec_prefix}/sbin'
941
libexecdir='${exec_prefix}/libexec'
942
datarootdir='${prefix}/share'
943
datadir='${datarootdir}'
944
sysconfdir='${prefix}/etc'
945
sharedstatedir='${prefix}/com'
946
localstatedir='${prefix}/var'
947
includedir='${prefix}/include'
948
oldincludedir='/usr/include'
949
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
950
infodir='${datarootdir}/info'
951
htmldir='${docdir}'
952
dvidir='${docdir}'
953
pdfdir='${docdir}'
954
psdir='${docdir}'
955
libdir='${exec_prefix}/lib'
956
localedir='${datarootdir}/locale'
957
mandir='${datarootdir}/man'
958
 
959
ac_prev=
960
ac_dashdash=
961
for ac_option
962
do
963
  # If the previous option needs an argument, assign it.
964
  if test -n "$ac_prev"; then
965
    eval $ac_prev=\$ac_option
966
    ac_prev=
967
    continue
968
  fi
969
 
970
  case $ac_option in
971
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972
  *)    ac_optarg=yes ;;
973
  esac
974
 
975
  # Accept the important Cygnus configure options, so we can diagnose typos.
976
 
977
  case $ac_dashdash$ac_option in
978
  --)
979
    ac_dashdash=yes ;;
980
 
981
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
982
    ac_prev=bindir ;;
983
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984
    bindir=$ac_optarg ;;
985
 
986
  -build | --build | --buil | --bui | --bu)
987
    ac_prev=build_alias ;;
988
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989
    build_alias=$ac_optarg ;;
990
 
991
  -cache-file | --cache-file | --cache-fil | --cache-fi \
992
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993
    ac_prev=cache_file ;;
994
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996
    cache_file=$ac_optarg ;;
997
 
998
  --config-cache | -C)
999
    cache_file=config.cache ;;
1000
 
1001
  -datadir | --datadir | --datadi | --datad)
1002
    ac_prev=datadir ;;
1003
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004
    datadir=$ac_optarg ;;
1005
 
1006
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007
  | --dataroo | --dataro | --datar)
1008
    ac_prev=datarootdir ;;
1009
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011
    datarootdir=$ac_optarg ;;
1012
 
1013
  -disable-* | --disable-*)
1014
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015
    # Reject names that are not valid shell variable names.
1016
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018
   { (exit 1); exit 1; }; }
1019
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020
    eval enable_$ac_feature=no ;;
1021
 
1022
  -docdir | --docdir | --docdi | --doc | --do)
1023
    ac_prev=docdir ;;
1024
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025
    docdir=$ac_optarg ;;
1026
 
1027
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028
    ac_prev=dvidir ;;
1029
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030
    dvidir=$ac_optarg ;;
1031
 
1032
  -enable-* | --enable-*)
1033
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034
    # Reject names that are not valid shell variable names.
1035
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037
   { (exit 1); exit 1; }; }
1038
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039
    eval enable_$ac_feature=\$ac_optarg ;;
1040
 
1041
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043
  | --exec | --exe | --ex)
1044
    ac_prev=exec_prefix ;;
1045
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047
  | --exec=* | --exe=* | --ex=*)
1048
    exec_prefix=$ac_optarg ;;
1049
 
1050
  -gas | --gas | --ga | --g)
1051
    # Obsolete; use --with-gas.
1052
    with_gas=yes ;;
1053
 
1054
  -help | --help | --hel | --he | -h)
1055
    ac_init_help=long ;;
1056
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057
    ac_init_help=recursive ;;
1058
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059
    ac_init_help=short ;;
1060
 
1061
  -host | --host | --hos | --ho)
1062
    ac_prev=host_alias ;;
1063
  -host=* | --host=* | --hos=* | --ho=*)
1064
    host_alias=$ac_optarg ;;
1065
 
1066
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067
    ac_prev=htmldir ;;
1068
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069
  | --ht=*)
1070
    htmldir=$ac_optarg ;;
1071
 
1072
  -includedir | --includedir | --includedi | --included | --include \
1073
  | --includ | --inclu | --incl | --inc)
1074
    ac_prev=includedir ;;
1075
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1077
    includedir=$ac_optarg ;;
1078
 
1079
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1080
    ac_prev=infodir ;;
1081
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082
    infodir=$ac_optarg ;;
1083
 
1084
  -libdir | --libdir | --libdi | --libd)
1085
    ac_prev=libdir ;;
1086
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087
    libdir=$ac_optarg ;;
1088
 
1089
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090
  | --libexe | --libex | --libe)
1091
    ac_prev=libexecdir ;;
1092
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093
  | --libexe=* | --libex=* | --libe=*)
1094
    libexecdir=$ac_optarg ;;
1095
 
1096
  -localedir | --localedir | --localedi | --localed | --locale)
1097
    ac_prev=localedir ;;
1098
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099
    localedir=$ac_optarg ;;
1100
 
1101
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1102
  | --localstate | --localstat | --localsta | --localst | --locals)
1103
    ac_prev=localstatedir ;;
1104
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106
    localstatedir=$ac_optarg ;;
1107
 
1108
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109
    ac_prev=mandir ;;
1110
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111
    mandir=$ac_optarg ;;
1112
 
1113
  -nfp | --nfp | --nf)
1114
    # Obsolete; use --without-fp.
1115
    with_fp=no ;;
1116
 
1117
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118
  | --no-cr | --no-c | -n)
1119
    no_create=yes ;;
1120
 
1121
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123
    no_recursion=yes ;;
1124
 
1125
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127
  | --oldin | --oldi | --old | --ol | --o)
1128
    ac_prev=oldincludedir ;;
1129
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132
    oldincludedir=$ac_optarg ;;
1133
 
1134
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135
    ac_prev=prefix ;;
1136
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137
    prefix=$ac_optarg ;;
1138
 
1139
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140
  | --program-pre | --program-pr | --program-p)
1141
    ac_prev=program_prefix ;;
1142
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144
    program_prefix=$ac_optarg ;;
1145
 
1146
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147
  | --program-suf | --program-su | --program-s)
1148
    ac_prev=program_suffix ;;
1149
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151
    program_suffix=$ac_optarg ;;
1152
 
1153
  -program-transform-name | --program-transform-name \
1154
  | --program-transform-nam | --program-transform-na \
1155
  | --program-transform-n | --program-transform- \
1156
  | --program-transform | --program-transfor \
1157
  | --program-transfo | --program-transf \
1158
  | --program-trans | --program-tran \
1159
  | --progr-tra | --program-tr | --program-t)
1160
    ac_prev=program_transform_name ;;
1161
  -program-transform-name=* | --program-transform-name=* \
1162
  | --program-transform-nam=* | --program-transform-na=* \
1163
  | --program-transform-n=* | --program-transform-=* \
1164
  | --program-transform=* | --program-transfor=* \
1165
  | --program-transfo=* | --program-transf=* \
1166
  | --program-trans=* | --program-tran=* \
1167
  | --progr-tra=* | --program-tr=* | --program-t=*)
1168
    program_transform_name=$ac_optarg ;;
1169
 
1170
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171
    ac_prev=pdfdir ;;
1172
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173
    pdfdir=$ac_optarg ;;
1174
 
1175
  -psdir | --psdir | --psdi | --psd | --ps)
1176
    ac_prev=psdir ;;
1177
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178
    psdir=$ac_optarg ;;
1179
 
1180
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181
  | -silent | --silent | --silen | --sile | --sil)
1182
    silent=yes ;;
1183
 
1184
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185
    ac_prev=sbindir ;;
1186
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187
  | --sbi=* | --sb=*)
1188
    sbindir=$ac_optarg ;;
1189
 
1190
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192
  | --sharedst | --shareds | --shared | --share | --shar \
1193
  | --sha | --sh)
1194
    ac_prev=sharedstatedir ;;
1195
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198
  | --sha=* | --sh=*)
1199
    sharedstatedir=$ac_optarg ;;
1200
 
1201
  -site | --site | --sit)
1202
    ac_prev=site ;;
1203
  -site=* | --site=* | --sit=*)
1204
    site=$ac_optarg ;;
1205
 
1206
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207
    ac_prev=srcdir ;;
1208
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209
    srcdir=$ac_optarg ;;
1210
 
1211
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212
  | --syscon | --sysco | --sysc | --sys | --sy)
1213
    ac_prev=sysconfdir ;;
1214
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216
    sysconfdir=$ac_optarg ;;
1217
 
1218
  -target | --target | --targe | --targ | --tar | --ta | --t)
1219
    ac_prev=target_alias ;;
1220
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221
    target_alias=$ac_optarg ;;
1222
 
1223
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224
    verbose=yes ;;
1225
 
1226
  -version | --version | --versio | --versi | --vers | -V)
1227
    ac_init_version=: ;;
1228
 
1229
  -with-* | --with-*)
1230
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231
    # Reject names that are not valid shell variable names.
1232
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1234
   { (exit 1); exit 1; }; }
1235
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236
    eval with_$ac_package=\$ac_optarg ;;
1237
 
1238
  -without-* | --without-*)
1239
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240
    # Reject names that are not valid shell variable names.
1241
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1243
   { (exit 1); exit 1; }; }
1244
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245
    eval with_$ac_package=no ;;
1246
 
1247
  --x)
1248
    # Obsolete; use --with-x.
1249
    with_x=yes ;;
1250
 
1251
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252
  | --x-incl | --x-inc | --x-in | --x-i)
1253
    ac_prev=x_includes ;;
1254
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256
    x_includes=$ac_optarg ;;
1257
 
1258
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260
    ac_prev=x_libraries ;;
1261
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263
    x_libraries=$ac_optarg ;;
1264
 
1265
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1266
Try \`$0 --help' for more information." >&2
1267
   { (exit 1); exit 1; }; }
1268
    ;;
1269
 
1270
  *=*)
1271
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272
    # Reject names that are not valid shell variable names.
1273
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1274
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275
   { (exit 1); exit 1; }; }
1276
    eval $ac_envvar=\$ac_optarg
1277
    export $ac_envvar ;;
1278
 
1279
  *)
1280
    # FIXME: should be removed in autoconf 3.0.
1281
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285
    ;;
1286
 
1287
  esac
1288
done
1289
 
1290
if test -n "$ac_prev"; then
1291
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292
  { echo "$as_me: error: missing argument to $ac_option" >&2
1293
   { (exit 1); exit 1; }; }
1294
fi
1295
 
1296
# Be sure to have absolute directory names.
1297
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298
                datadir sysconfdir sharedstatedir localstatedir includedir \
1299
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300
                libdir localedir mandir
1301
do
1302
  eval ac_val=\$$ac_var
1303
  case $ac_val in
1304
    [\\/$]* | ?:[\\/]* )  continue;;
1305
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306
  esac
1307
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308
   { (exit 1); exit 1; }; }
1309
done
1310
 
1311
# There might be people who depend on the old broken behavior: `$host'
1312
# used to hold the argument of --host etc.
1313
# FIXME: To remove some day.
1314
build=$build_alias
1315
host=$host_alias
1316
target=$target_alias
1317
 
1318
# FIXME: To remove some day.
1319
if test "x$host_alias" != x; then
1320
  if test "x$build_alias" = x; then
1321
    cross_compiling=maybe
1322
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323
    If a cross compiler is detected then cross compile mode will be used." >&2
1324
  elif test "x$build_alias" != "x$host_alias"; then
1325
    cross_compiling=yes
1326
  fi
1327
fi
1328
 
1329
ac_tool_prefix=
1330
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
 
1332
test "$silent" = yes && exec 6>/dev/null
1333
 
1334
 
1335
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336
ac_ls_di=`ls -di .` &&
1337
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338
  { echo "$as_me: error: Working directory cannot be determined" >&2
1339
   { (exit 1); exit 1; }; }
1340
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1342
   { (exit 1); exit 1; }; }
1343
 
1344
 
1345
# Find the source files, if location was not specified.
1346
if test -z "$srcdir"; then
1347
  ac_srcdir_defaulted=yes
1348
  # Try the directory containing this script, then the parent directory.
1349
  ac_confdir=`$as_dirname -- "$0" ||
1350
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351
         X"$0" : 'X\(//\)[^/]' \| \
1352
         X"$0" : 'X\(//\)$' \| \
1353
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1354
echo X"$0" |
1355
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356
            s//\1/
1357
            q
1358
          }
1359
          /^X\(\/\/\)[^/].*/{
1360
            s//\1/
1361
            q
1362
          }
1363
          /^X\(\/\/\)$/{
1364
            s//\1/
1365
            q
1366
          }
1367
          /^X\(\/\).*/{
1368
            s//\1/
1369
            q
1370
          }
1371
          s/.*/./; q'`
1372
  srcdir=$ac_confdir
1373
  if test ! -r "$srcdir/$ac_unique_file"; then
1374
    srcdir=..
1375
  fi
1376
else
1377
  ac_srcdir_defaulted=no
1378
fi
1379
if test ! -r "$srcdir/$ac_unique_file"; then
1380
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382
   { (exit 1); exit 1; }; }
1383
fi
1384
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385
ac_abs_confdir=`(
1386
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1387
   { (exit 1); exit 1; }; }
1388
        pwd)`
1389
# When building in place, set srcdir=.
1390
if test "$ac_abs_confdir" = "$ac_pwd"; then
1391
  srcdir=.
1392
fi
1393
# Remove unnecessary trailing slashes from srcdir.
1394
# Double slashes in file names in object file debugging info
1395
# mess up M-x gdb in Emacs.
1396
case $srcdir in
1397
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398
esac
1399
for ac_var in $ac_precious_vars; do
1400
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401
  eval ac_env_${ac_var}_value=\$${ac_var}
1402
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404
done
1405
 
1406
#
1407
# Report the --help message.
1408
#
1409
if test "$ac_init_help" = "long"; then
1410
  # Omit some internal or obsolete options to make the list less imposing.
1411
  # This message is too long to be a string in the A/UX 3.1 sh.
1412
  cat <<_ACEOF
1413
\`configure' configures or1ksim 0.3.0 to adapt to many kinds of systems.
1414
 
1415
Usage: $0 [OPTION]... [VAR=VALUE]...
1416
 
1417
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418
VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
 
1420
Defaults for the options are specified in brackets.
1421
 
1422
Configuration:
1423
  -h, --help              display this help and exit
1424
      --help=short        display options specific to this package
1425
      --help=recursive    display the short help of all the included packages
1426
  -V, --version           display version information and exit
1427
  -q, --quiet, --silent   do not print \`checking...' messages
1428
      --cache-file=FILE   cache test results in FILE [disabled]
1429
  -C, --config-cache      alias for \`--cache-file=config.cache'
1430
  -n, --no-create         do not create output files
1431
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
 
1433
Installation directories:
1434
  --prefix=PREFIX         install architecture-independent files in PREFIX
1435
                          [$ac_default_prefix]
1436
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437
                          [PREFIX]
1438
 
1439
By default, \`make install' will install all the files in
1440
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442
for instance \`--prefix=\$HOME'.
1443
 
1444
For better control, use the options below.
1445
 
1446
Fine tuning of the installation directories:
1447
  --bindir=DIR           user executables [EPREFIX/bin]
1448
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1449
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1450
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1451
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1452
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1453
  --libdir=DIR           object code libraries [EPREFIX/lib]
1454
  --includedir=DIR       C header files [PREFIX/include]
1455
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1456
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1457
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1458
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1459
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1460
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1461
  --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/or1ksim@:>@
1462
  --htmldir=DIR          html documentation [DOCDIR]
1463
  --dvidir=DIR           dvi documentation [DOCDIR]
1464
  --pdfdir=DIR           pdf documentation [DOCDIR]
1465
  --psdir=DIR            ps documentation [DOCDIR]
1466
_ACEOF
1467
 
1468
  cat <<\_ACEOF
1469
 
1470
Program names:
1471
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1472
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1473
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1474
 
1475
System types:
1476
  --build=BUILD     configure for building on BUILD [guessed]
1477
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478
  --target=TARGET   configure for building compilers for TARGET [HOST]
1479
_ACEOF
1480
fi
1481
 
1482
if test -n "$ac_init_help"; then
1483
  case $ac_init_help in
1484
     short | recursive ) echo "Configuration of or1ksim 0.3.0:";;
1485
   esac
1486
  cat <<\_ACEOF
1487
 
1488
Optional Features:
1489
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1490
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1491
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1492
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1493
  --enable-fast-install@<:@=PKGS@:>@
1494
                          optimize for fast installation @<:@default=yes@:>@
1495
  --disable-libtool-lock  avoid locking (might break parallel builds)
1496
  --disable-dependency-tracking  speeds up one-time build
1497
  --enable-dependency-tracking   do not reject slow dependency extractors
1498
  --enable-profiling      generate profiling code
1499
  --enable-execution Execution style to use (simple/complex/dynamic)
1500
  --enable-ethphy    compiles sim with ethernet phy support
1501
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1502
  --enable-ov-flag      Whether instructions set overflow flag.
1503
  --enable-arith-flag      Whether arithmethic instructions setflag.
1504
 
1505
Optional Packages:
1506
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1507
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1508
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1509
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1510
                          both@:>@
1511
  --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1512
 
1513
Some influential environment variables:
1514
  CC          C compiler command
1515
  CFLAGS      C compiler flags
1516
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1517
              nonstandard directory 
1518
  LIBS        libraries to pass to the linker, e.g. -l
1519
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1520
              you have headers in a nonstandard directory 
1521
  CPP         C preprocessor
1522
  CXX         C++ compiler command
1523
  CXXFLAGS    C++ compiler flags
1524
  CXXCPP      C++ preprocessor
1525
  F77         Fortran 77 compiler command
1526
  FFLAGS      Fortran 77 compiler flags
1527
 
1528
Use these variables to override the choices made by `configure' or to help
1529
it to find libraries and programs with nonstandard names/locations.
1530
 
1531
Report bugs to .
1532
_ACEOF
1533
ac_status=$?
1534
fi
1535
 
1536
if test "$ac_init_help" = "recursive"; then
1537
  # If there are subdirs, report their specific --help.
1538
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539
    test -d "$ac_dir" || continue
1540
    ac_builddir=.
1541
 
1542
case "$ac_dir" in
1543
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544
*)
1545
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1546
  # A ".." for each directory in $ac_dir_suffix.
1547
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1548
  case $ac_top_builddir_sub in
1549
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551
  esac ;;
1552
esac
1553
ac_abs_top_builddir=$ac_pwd
1554
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555
# for backward compatibility:
1556
ac_top_builddir=$ac_top_build_prefix
1557
 
1558
case $srcdir in
1559
  .)  # We are building in place.
1560
    ac_srcdir=.
1561
    ac_top_srcdir=$ac_top_builddir_sub
1562
    ac_abs_top_srcdir=$ac_pwd ;;
1563
  [\\/]* | ?:[\\/]* )  # Absolute name.
1564
    ac_srcdir=$srcdir$ac_dir_suffix;
1565
    ac_top_srcdir=$srcdir
1566
    ac_abs_top_srcdir=$srcdir ;;
1567
  *) # Relative name.
1568
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1570
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571
esac
1572
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
 
1574
    cd "$ac_dir" || { ac_status=$?; continue; }
1575
    # Check for guested configure.
1576
    if test -f "$ac_srcdir/configure.gnu"; then
1577
      echo &&
1578
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579
    elif test -f "$ac_srcdir/configure"; then
1580
      echo &&
1581
      $SHELL "$ac_srcdir/configure" --help=recursive
1582
    else
1583
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584
    fi || ac_status=$?
1585
    cd "$ac_pwd" || { ac_status=$?; break; }
1586
  done
1587
fi
1588
 
1589
test -n "$ac_init_help" && exit $ac_status
1590
if $ac_init_version; then
1591
  cat <<\_ACEOF
1592
or1ksim configure 0.3.0
1593
generated by GNU Autoconf 2.61
1594
 
1595
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1596
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1597
This configure script is free software; the Free Software Foundation
1598
gives unlimited permission to copy, distribute and modify it.
1599
_ACEOF
1600
  exit
1601
fi
1602
cat >config.log <<_ACEOF
1603
This file contains any messages produced by compilers while
1604
running configure, to aid debugging if configure makes a mistake.
1605
 
1606
It was created by or1ksim $as_me 0.3.0, which was
1607
generated by GNU Autoconf 2.61.  Invocation command line was
1608
 
1609
  $ $0 $@
1610
 
1611
_ACEOF
1612
exec 5>>config.log
1613
{
1614
cat <<_ASUNAME
1615
@%:@@%:@ --------- @%:@@%:@
1616
@%:@@%:@ Platform. @%:@@%:@
1617
@%:@@%:@ --------- @%:@@%:@
1618
 
1619
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1620
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1621
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1622
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1623
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1624
 
1625
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1626
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1627
 
1628
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1629
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1630
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1631
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1632
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1633
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1634
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1635
 
1636
_ASUNAME
1637
 
1638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639
for as_dir in $PATH
1640
do
1641
  IFS=$as_save_IFS
1642
  test -z "$as_dir" && as_dir=.
1643
  echo "PATH: $as_dir"
1644
done
1645
IFS=$as_save_IFS
1646
 
1647
} >&5
1648
 
1649
cat >&5 <<_ACEOF
1650
 
1651
 
1652
@%:@@%:@ ----------- @%:@@%:@
1653
@%:@@%:@ Core tests. @%:@@%:@
1654
@%:@@%:@ ----------- @%:@@%:@
1655
 
1656
_ACEOF
1657
 
1658
 
1659
# Keep a trace of the command line.
1660
# Strip out --no-create and --no-recursion so they do not pile up.
1661
# Strip out --silent because we don't want to record it for future runs.
1662
# Also quote any args containing shell meta-characters.
1663
# Make two passes to allow for proper duplicate-argument suppression.
1664
ac_configure_args=
1665
ac_configure_args0=
1666
ac_configure_args1=
1667
ac_must_keep_next=false
1668
for ac_pass in 1 2
1669
do
1670
  for ac_arg
1671
  do
1672
    case $ac_arg in
1673
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1674
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1675
    | -silent | --silent | --silen | --sile | --sil)
1676
      continue ;;
1677
    *\'*)
1678
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1679
    esac
1680
    case $ac_pass in
1681
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682
    2)
1683
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1684
      if test $ac_must_keep_next = true; then
1685
        ac_must_keep_next=false # Got value, back to normal.
1686
      else
1687
        case $ac_arg in
1688
          *=* | --config-cache | -C | -disable-* | --disable-* \
1689
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1690
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1691
          | -with-* | --with-* | -without-* | --without-* | --x)
1692
            case "$ac_configure_args0 " in
1693
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1694
            esac
1695
            ;;
1696
          -* ) ac_must_keep_next=true ;;
1697
        esac
1698
      fi
1699
      ac_configure_args="$ac_configure_args '$ac_arg'"
1700
      ;;
1701
    esac
1702
  done
1703
done
1704
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1705
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706
 
1707
# When interrupted or exit'd, cleanup temporary files, and complete
1708
# config.log.  We remove comments because anyway the quotes in there
1709
# would cause problems or look ugly.
1710
# WARNING: Use '\'' to represent an apostrophe within the trap.
1711
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1712
trap 'exit_status=$?
1713
  # Save into config.log some information that might help in debugging.
1714
  {
1715
    echo
1716
 
1717
    cat <<\_ASBOX
1718
@%:@@%:@ ---------------- @%:@@%:@
1719
@%:@@%:@ Cache variables. @%:@@%:@
1720
@%:@@%:@ ---------------- @%:@@%:@
1721
_ASBOX
1722
    echo
1723
    # The following way of writing the cache mishandles newlines in values,
1724
(
1725
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1726
    eval ac_val=\$$ac_var
1727
    case $ac_val in #(
1728
    *${as_nl}*)
1729
      case $ac_var in #(
1730
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1731
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1732
      esac
1733
      case $ac_var in #(
1734
      _ | IFS | as_nl) ;; #(
1735
      *) $as_unset $ac_var ;;
1736
      esac ;;
1737
    esac
1738
  done
1739
  (set) 2>&1 |
1740
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741
    *${as_nl}ac_space=\ *)
1742
      sed -n \
1743
        "s/'\''/'\''\\\\'\'''\''/g;
1744
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745
      ;; #(
1746
    *)
1747
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748
      ;;
1749
    esac |
1750
    sort
1751
)
1752
    echo
1753
 
1754
    cat <<\_ASBOX
1755
@%:@@%:@ ----------------- @%:@@%:@
1756
@%:@@%:@ Output variables. @%:@@%:@
1757
@%:@@%:@ ----------------- @%:@@%:@
1758
_ASBOX
1759
    echo
1760
    for ac_var in $ac_subst_vars
1761
    do
1762
      eval ac_val=\$$ac_var
1763
      case $ac_val in
1764
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765
      esac
1766
      echo "$ac_var='\''$ac_val'\''"
1767
    done | sort
1768
    echo
1769
 
1770
    if test -n "$ac_subst_files"; then
1771
      cat <<\_ASBOX
1772
@%:@@%:@ ------------------- @%:@@%:@
1773
@%:@@%:@ File substitutions. @%:@@%:@
1774
@%:@@%:@ ------------------- @%:@@%:@
1775
_ASBOX
1776
      echo
1777
      for ac_var in $ac_subst_files
1778
      do
1779
        eval ac_val=\$$ac_var
1780
        case $ac_val in
1781
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782
        esac
1783
        echo "$ac_var='\''$ac_val'\''"
1784
      done | sort
1785
      echo
1786
    fi
1787
 
1788
    if test -s confdefs.h; then
1789
      cat <<\_ASBOX
1790
@%:@@%:@ ----------- @%:@@%:@
1791
@%:@@%:@ confdefs.h. @%:@@%:@
1792
@%:@@%:@ ----------- @%:@@%:@
1793
_ASBOX
1794
      echo
1795
      cat confdefs.h
1796
      echo
1797
    fi
1798
    test "$ac_signal" != 0 &&
1799
      echo "$as_me: caught signal $ac_signal"
1800
    echo "$as_me: exit $exit_status"
1801
  } >&5
1802
  rm -f core *.core core.conftest.* &&
1803
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804
    exit $exit_status
1805
' 0
1806
for ac_signal in 1 2 13 15; do
1807
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808
done
1809
ac_signal=0
1810
 
1811
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1812
rm -f -r conftest* confdefs.h
1813
 
1814
# Predefined preprocessor variables.
1815
 
1816
cat >>confdefs.h <<_ACEOF
1817
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1818
_ACEOF
1819
 
1820
 
1821
cat >>confdefs.h <<_ACEOF
1822
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823
_ACEOF
1824
 
1825
 
1826
cat >>confdefs.h <<_ACEOF
1827
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1828
_ACEOF
1829
 
1830
 
1831
cat >>confdefs.h <<_ACEOF
1832
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1833
_ACEOF
1834
 
1835
 
1836
cat >>confdefs.h <<_ACEOF
1837
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838
_ACEOF
1839
 
1840
 
1841
# Let the site file select an alternate cache file if it wants to.
1842
# Prefer explicitly selected file to automatically selected ones.
1843
if test -n "$CONFIG_SITE"; then
1844
  set x "$CONFIG_SITE"
1845
elif test "x$prefix" != xNONE; then
1846
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1847
else
1848
  set x "$ac_default_prefix/share/config.site" \
1849
        "$ac_default_prefix/etc/config.site"
1850
fi
1851
shift
1852
for ac_site_file
1853
do
1854
  if test -r "$ac_site_file"; then
1855
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1856
echo "$as_me: loading site script $ac_site_file" >&6;}
1857
    sed 's/^/| /' "$ac_site_file" >&5
1858
    . "$ac_site_file"
1859
  fi
1860
done
1861
 
1862
if test -r "$cache_file"; then
1863
  # Some versions of bash will fail to source /dev/null (special
1864
  # files actually), so we avoid doing that.
1865
  if test -f "$cache_file"; then
1866
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1867
echo "$as_me: loading cache $cache_file" >&6;}
1868
    case $cache_file in
1869
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1870
      *)                      . "./$cache_file";;
1871
    esac
1872
  fi
1873
else
1874
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1875
echo "$as_me: creating cache $cache_file" >&6;}
1876
  >$cache_file
1877
fi
1878
 
1879
# Check that the precious variables saved in the cache have kept the same
1880
# value.
1881
ac_cache_corrupted=false
1882
for ac_var in $ac_precious_vars; do
1883
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1884
  eval ac_new_set=\$ac_env_${ac_var}_set
1885
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1886
  eval ac_new_val=\$ac_env_${ac_var}_value
1887
  case $ac_old_set,$ac_new_set in
1888
    set,)
1889
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1890
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1891
      ac_cache_corrupted=: ;;
1892
    ,set)
1893
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1894
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1895
      ac_cache_corrupted=: ;;
1896
    ,);;
1897
    *)
1898
      if test "x$ac_old_val" != "x$ac_new_val"; then
1899
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1900
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1901
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1902
echo "$as_me:   former value:  $ac_old_val" >&2;}
1903
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1904
echo "$as_me:   current value: $ac_new_val" >&2;}
1905
        ac_cache_corrupted=:
1906
      fi;;
1907
  esac
1908
  # Pass precious variables to config.status.
1909
  if test "$ac_new_set" = set; then
1910
    case $ac_new_val in
1911
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1912
    *) ac_arg=$ac_var=$ac_new_val ;;
1913
    esac
1914
    case " $ac_configure_args " in
1915
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1916
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1917
    esac
1918
  fi
1919
done
1920
if $ac_cache_corrupted; then
1921
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1922
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1923
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1924
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1925
   { (exit 1); exit 1; }; }
1926
fi
1927
 
1928
 
1929
 
1930
 
1931
 
1932
 
1933
 
1934
 
1935
 
1936
 
1937
 
1938
 
1939
 
1940
 
1941
 
1942
 
1943
 
1944
 
1945
 
1946
 
1947
 
1948
 
1949
 
1950
 
1951
 
1952
ac_ext=c
1953
ac_cpp='$CPP $CPPFLAGS'
1954
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957
 
1958
 
1959
 
1960
ac_aux_dir=
1961
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1962
  if test -f "$ac_dir/install-sh"; then
1963
    ac_aux_dir=$ac_dir
1964
    ac_install_sh="$ac_aux_dir/install-sh -c"
1965
    break
1966
  elif test -f "$ac_dir/install.sh"; then
1967
    ac_aux_dir=$ac_dir
1968
    ac_install_sh="$ac_aux_dir/install.sh -c"
1969
    break
1970
  elif test -f "$ac_dir/shtool"; then
1971
    ac_aux_dir=$ac_dir
1972
    ac_install_sh="$ac_aux_dir/shtool install -c"
1973
    break
1974
  fi
1975
done
1976
if test -z "$ac_aux_dir"; then
1977
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1978
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1979
   { (exit 1); exit 1; }; }
1980
fi
1981
 
1982
# These three variables are undocumented and unsupported,
1983
# and are intended to be withdrawn in a future Autoconf release.
1984
# They can cause serious problems if a builder's source tree is in a directory
1985
# whose full name contains unusual characters.
1986
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1987
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1988
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1989
 
1990
 
1991
# Make sure we can run config.sub.
1992
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1993
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1994
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1995
   { (exit 1); exit 1; }; }
1996
 
1997
{ echo "$as_me:$LINENO: checking build system type" >&5
1998
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1999
if test "${ac_cv_build+set}" = set; then
2000
  echo $ECHO_N "(cached) $ECHO_C" >&6
2001
else
2002
  ac_build_alias=$build_alias
2003
test "x$ac_build_alias" = x &&
2004
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2005
test "x$ac_build_alias" = x &&
2006
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2007
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2008
   { (exit 1); exit 1; }; }
2009
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2010
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2011
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2012
   { (exit 1); exit 1; }; }
2013
 
2014
fi
2015
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2016
echo "${ECHO_T}$ac_cv_build" >&6; }
2017
case $ac_cv_build in
2018
*-*-*) ;;
2019
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2020
echo "$as_me: error: invalid value of canonical build" >&2;}
2021
   { (exit 1); exit 1; }; };;
2022
esac
2023
build=$ac_cv_build
2024
ac_save_IFS=$IFS; IFS='-'
2025
set x $ac_cv_build
2026
shift
2027
build_cpu=$1
2028
build_vendor=$2
2029
shift; shift
2030
# Remember, the first character of IFS is used to create $*,
2031
# except with old shells:
2032
build_os=$*
2033
IFS=$ac_save_IFS
2034
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2035
 
2036
 
2037
{ echo "$as_me:$LINENO: checking host system type" >&5
2038
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2039
if test "${ac_cv_host+set}" = set; then
2040
  echo $ECHO_N "(cached) $ECHO_C" >&6
2041
else
2042
  if test "x$host_alias" = x; then
2043
  ac_cv_host=$ac_cv_build
2044
else
2045
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2046
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2047
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2048
   { (exit 1); exit 1; }; }
2049
fi
2050
 
2051
fi
2052
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2053
echo "${ECHO_T}$ac_cv_host" >&6; }
2054
case $ac_cv_host in
2055
*-*-*) ;;
2056
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2057
echo "$as_me: error: invalid value of canonical host" >&2;}
2058
   { (exit 1); exit 1; }; };;
2059
esac
2060
host=$ac_cv_host
2061
ac_save_IFS=$IFS; IFS='-'
2062
set x $ac_cv_host
2063
shift
2064
host_cpu=$1
2065
host_vendor=$2
2066
shift; shift
2067
# Remember, the first character of IFS is used to create $*,
2068
# except with old shells:
2069
host_os=$*
2070
IFS=$ac_save_IFS
2071
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2072
 
2073
 
2074
{ echo "$as_me:$LINENO: checking target system type" >&5
2075
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2076
if test "${ac_cv_target+set}" = set; then
2077
  echo $ECHO_N "(cached) $ECHO_C" >&6
2078
else
2079
  if test "x$target_alias" = x; then
2080
  ac_cv_target=$ac_cv_host
2081
else
2082
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2083
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2084
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2085
   { (exit 1); exit 1; }; }
2086
fi
2087
 
2088
fi
2089
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2090
echo "${ECHO_T}$ac_cv_target" >&6; }
2091
case $ac_cv_target in
2092
*-*-*) ;;
2093
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2094
echo "$as_me: error: invalid value of canonical target" >&2;}
2095
   { (exit 1); exit 1; }; };;
2096
esac
2097
target=$ac_cv_target
2098
ac_save_IFS=$IFS; IFS='-'
2099
set x $ac_cv_target
2100
shift
2101
target_cpu=$1
2102
target_vendor=$2
2103
shift; shift
2104
# Remember, the first character of IFS is used to create $*,
2105
# except with old shells:
2106
target_os=$*
2107
IFS=$ac_save_IFS
2108
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2109
 
2110
 
2111
# The aliases save the names the user supplied, while $host etc.
2112
# will get canonicalized.
2113
test -n "$target_alias" &&
2114
  test "$program_prefix$program_suffix$program_transform_name" = \
2115
    NONENONEs,x,x, &&
2116
  program_prefix=${target_alias}-
2117
# Check whether --enable-shared was given.
2118
if test "${enable_shared+set}" = set; then
2119
  enableval=$enable_shared; p=${PACKAGE-default}
2120
    case $enableval in
2121
    yes) enable_shared=yes ;;
2122
    no) enable_shared=no ;;
2123
    *)
2124
      enable_shared=no
2125
      # Look at the argument we got.  We use all the common list separators.
2126
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2127
      for pkg in $enableval; do
2128
        IFS="$lt_save_ifs"
2129
        if test "X$pkg" = "X$p"; then
2130
          enable_shared=yes
2131
        fi
2132
      done
2133
      IFS="$lt_save_ifs"
2134
      ;;
2135
    esac
2136
else
2137
  enable_shared=yes
2138
fi
2139
 
2140
 
2141
# Check whether --enable-static was given.
2142
if test "${enable_static+set}" = set; then
2143
  enableval=$enable_static; p=${PACKAGE-default}
2144
    case $enableval in
2145
    yes) enable_static=yes ;;
2146
    no) enable_static=no ;;
2147
    *)
2148
     enable_static=no
2149
      # Look at the argument we got.  We use all the common list separators.
2150
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2151
      for pkg in $enableval; do
2152
        IFS="$lt_save_ifs"
2153
        if test "X$pkg" = "X$p"; then
2154
          enable_static=yes
2155
        fi
2156
      done
2157
      IFS="$lt_save_ifs"
2158
      ;;
2159
    esac
2160
else
2161
  enable_static=yes
2162
fi
2163
 
2164
 
2165
# Check whether --enable-fast-install was given.
2166
if test "${enable_fast_install+set}" = set; then
2167
  enableval=$enable_fast_install; p=${PACKAGE-default}
2168
    case $enableval in
2169
    yes) enable_fast_install=yes ;;
2170
    no) enable_fast_install=no ;;
2171
    *)
2172
      enable_fast_install=no
2173
      # Look at the argument we got.  We use all the common list separators.
2174
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2175
      for pkg in $enableval; do
2176
        IFS="$lt_save_ifs"
2177
        if test "X$pkg" = "X$p"; then
2178
          enable_fast_install=yes
2179
        fi
2180
      done
2181
      IFS="$lt_save_ifs"
2182
      ;;
2183
    esac
2184
else
2185
  enable_fast_install=yes
2186
fi
2187
 
2188
 
2189
ac_ext=c
2190
ac_cpp='$CPP $CPPFLAGS'
2191
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194
if test -n "$ac_tool_prefix"; then
2195
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2196
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2197
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2198
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199
if test "${ac_cv_prog_CC+set}" = set; then
2200
  echo $ECHO_N "(cached) $ECHO_C" >&6
2201
else
2202
  if test -n "$CC"; then
2203
  ac_cv_prog_CC="$CC" # Let the user override the test.
2204
else
2205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206
for as_dir in $PATH
2207
do
2208
  IFS=$as_save_IFS
2209
  test -z "$as_dir" && as_dir=.
2210
  for ac_exec_ext in '' $ac_executable_extensions; do
2211
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2213
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214
    break 2
2215
  fi
2216
done
2217
done
2218
IFS=$as_save_IFS
2219
 
2220
fi
2221
fi
2222
CC=$ac_cv_prog_CC
2223
if test -n "$CC"; then
2224
  { echo "$as_me:$LINENO: result: $CC" >&5
2225
echo "${ECHO_T}$CC" >&6; }
2226
else
2227
  { echo "$as_me:$LINENO: result: no" >&5
2228
echo "${ECHO_T}no" >&6; }
2229
fi
2230
 
2231
 
2232
fi
2233
if test -z "$ac_cv_prog_CC"; then
2234
  ac_ct_CC=$CC
2235
  # Extract the first word of "gcc", so it can be a program name with args.
2236
set dummy gcc; ac_word=$2
2237
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2238
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2239
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240
  echo $ECHO_N "(cached) $ECHO_C" >&6
2241
else
2242
  if test -n "$ac_ct_CC"; then
2243
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244
else
2245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246
for as_dir in $PATH
2247
do
2248
  IFS=$as_save_IFS
2249
  test -z "$as_dir" && as_dir=.
2250
  for ac_exec_ext in '' $ac_executable_extensions; do
2251
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252
    ac_cv_prog_ac_ct_CC="gcc"
2253
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254
    break 2
2255
  fi
2256
done
2257
done
2258
IFS=$as_save_IFS
2259
 
2260
fi
2261
fi
2262
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263
if test -n "$ac_ct_CC"; then
2264
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265
echo "${ECHO_T}$ac_ct_CC" >&6; }
2266
else
2267
  { echo "$as_me:$LINENO: result: no" >&5
2268
echo "${ECHO_T}no" >&6; }
2269
fi
2270
 
2271
  if test "x$ac_ct_CC" = x; then
2272
    CC=""
2273
  else
2274
    case $cross_compiling:$ac_tool_warned in
2275
yes:)
2276
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2277
whose name does not start with the host triplet.  If you think this
2278
configuration is useful to you, please write to autoconf@gnu.org." >&5
2279
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2280
whose name does not start with the host triplet.  If you think this
2281
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2282
ac_tool_warned=yes ;;
2283
esac
2284
    CC=$ac_ct_CC
2285
  fi
2286
else
2287
  CC="$ac_cv_prog_CC"
2288
fi
2289
 
2290
if test -z "$CC"; then
2291
          if test -n "$ac_tool_prefix"; then
2292
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2293
set dummy ${ac_tool_prefix}cc; ac_word=$2
2294
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2295
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2296
if test "${ac_cv_prog_CC+set}" = set; then
2297
  echo $ECHO_N "(cached) $ECHO_C" >&6
2298
else
2299
  if test -n "$CC"; then
2300
  ac_cv_prog_CC="$CC" # Let the user override the test.
2301
else
2302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303
for as_dir in $PATH
2304
do
2305
  IFS=$as_save_IFS
2306
  test -z "$as_dir" && as_dir=.
2307
  for ac_exec_ext in '' $ac_executable_extensions; do
2308
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2310
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311
    break 2
2312
  fi
2313
done
2314
done
2315
IFS=$as_save_IFS
2316
 
2317
fi
2318
fi
2319
CC=$ac_cv_prog_CC
2320
if test -n "$CC"; then
2321
  { echo "$as_me:$LINENO: result: $CC" >&5
2322
echo "${ECHO_T}$CC" >&6; }
2323
else
2324
  { echo "$as_me:$LINENO: result: no" >&5
2325
echo "${ECHO_T}no" >&6; }
2326
fi
2327
 
2328
 
2329
  fi
2330
fi
2331
if test -z "$CC"; then
2332
  # Extract the first word of "cc", so it can be a program name with args.
2333
set dummy cc; ac_word=$2
2334
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2335
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336
if test "${ac_cv_prog_CC+set}" = set; then
2337
  echo $ECHO_N "(cached) $ECHO_C" >&6
2338
else
2339
  if test -n "$CC"; then
2340
  ac_cv_prog_CC="$CC" # Let the user override the test.
2341
else
2342
  ac_prog_rejected=no
2343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344
for as_dir in $PATH
2345
do
2346
  IFS=$as_save_IFS
2347
  test -z "$as_dir" && as_dir=.
2348
  for ac_exec_ext in '' $ac_executable_extensions; do
2349
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2351
       ac_prog_rejected=yes
2352
       continue
2353
     fi
2354
    ac_cv_prog_CC="cc"
2355
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356
    break 2
2357
  fi
2358
done
2359
done
2360
IFS=$as_save_IFS
2361
 
2362
if test $ac_prog_rejected = yes; then
2363
  # We found a bogon in the path, so make sure we never use it.
2364
  set dummy $ac_cv_prog_CC
2365
  shift
2366
  if test $@%:@ != 0; then
2367
    # We chose a different compiler from the bogus one.
2368
    # However, it has the same basename, so the bogon will be chosen
2369
    # first if we set CC to just the basename; use the full file name.
2370
    shift
2371
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2372
  fi
2373
fi
2374
fi
2375
fi
2376
CC=$ac_cv_prog_CC
2377
if test -n "$CC"; then
2378
  { echo "$as_me:$LINENO: result: $CC" >&5
2379
echo "${ECHO_T}$CC" >&6; }
2380
else
2381
  { echo "$as_me:$LINENO: result: no" >&5
2382
echo "${ECHO_T}no" >&6; }
2383
fi
2384
 
2385
 
2386
fi
2387
if test -z "$CC"; then
2388
  if test -n "$ac_tool_prefix"; then
2389
  for ac_prog in cl.exe
2390
  do
2391
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2392
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2393
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2394
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395
if test "${ac_cv_prog_CC+set}" = set; then
2396
  echo $ECHO_N "(cached) $ECHO_C" >&6
2397
else
2398
  if test -n "$CC"; then
2399
  ac_cv_prog_CC="$CC" # Let the user override the test.
2400
else
2401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402
for as_dir in $PATH
2403
do
2404
  IFS=$as_save_IFS
2405
  test -z "$as_dir" && as_dir=.
2406
  for ac_exec_ext in '' $ac_executable_extensions; do
2407
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2408
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2409
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410
    break 2
2411
  fi
2412
done
2413
done
2414
IFS=$as_save_IFS
2415
 
2416
fi
2417
fi
2418
CC=$ac_cv_prog_CC
2419
if test -n "$CC"; then
2420
  { echo "$as_me:$LINENO: result: $CC" >&5
2421
echo "${ECHO_T}$CC" >&6; }
2422
else
2423
  { echo "$as_me:$LINENO: result: no" >&5
2424
echo "${ECHO_T}no" >&6; }
2425
fi
2426
 
2427
 
2428
    test -n "$CC" && break
2429
  done
2430
fi
2431
if test -z "$CC"; then
2432
  ac_ct_CC=$CC
2433
  for ac_prog in cl.exe
2434
do
2435
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2436
set dummy $ac_prog; ac_word=$2
2437
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2440
  echo $ECHO_N "(cached) $ECHO_C" >&6
2441
else
2442
  if test -n "$ac_ct_CC"; then
2443
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2444
else
2445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446
for as_dir in $PATH
2447
do
2448
  IFS=$as_save_IFS
2449
  test -z "$as_dir" && as_dir=.
2450
  for ac_exec_ext in '' $ac_executable_extensions; do
2451
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452
    ac_cv_prog_ac_ct_CC="$ac_prog"
2453
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454
    break 2
2455
  fi
2456
done
2457
done
2458
IFS=$as_save_IFS
2459
 
2460
fi
2461
fi
2462
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2463
if test -n "$ac_ct_CC"; then
2464
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2465
echo "${ECHO_T}$ac_ct_CC" >&6; }
2466
else
2467
  { echo "$as_me:$LINENO: result: no" >&5
2468
echo "${ECHO_T}no" >&6; }
2469
fi
2470
 
2471
 
2472
  test -n "$ac_ct_CC" && break
2473
done
2474
 
2475
  if test "x$ac_ct_CC" = x; then
2476
    CC=""
2477
  else
2478
    case $cross_compiling:$ac_tool_warned in
2479
yes:)
2480
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2481
whose name does not start with the host triplet.  If you think this
2482
configuration is useful to you, please write to autoconf@gnu.org." >&5
2483
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2484
whose name does not start with the host triplet.  If you think this
2485
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2486
ac_tool_warned=yes ;;
2487
esac
2488
    CC=$ac_ct_CC
2489
  fi
2490
fi
2491
 
2492
fi
2493
 
2494
 
2495
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2496
See \`config.log' for more details." >&5
2497
echo "$as_me: error: no acceptable C compiler found in \$PATH
2498
See \`config.log' for more details." >&2;}
2499
   { (exit 1); exit 1; }; }
2500
 
2501
# Provide some information about the compiler.
2502
echo "$as_me:$LINENO: checking for C compiler version" >&5
2503
ac_compiler=`set X $ac_compile; echo $2`
2504
{ (ac_try="$ac_compiler --version >&5"
2505
case "(($ac_try" in
2506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507
  *) ac_try_echo=$ac_try;;
2508
esac
2509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510
  (eval "$ac_compiler --version >&5") 2>&5
2511
  ac_status=$?
2512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513
  (exit $ac_status); }
2514
{ (ac_try="$ac_compiler -v >&5"
2515
case "(($ac_try" in
2516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517
  *) ac_try_echo=$ac_try;;
2518
esac
2519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520
  (eval "$ac_compiler -v >&5") 2>&5
2521
  ac_status=$?
2522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523
  (exit $ac_status); }
2524
{ (ac_try="$ac_compiler -V >&5"
2525
case "(($ac_try" in
2526
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527
  *) ac_try_echo=$ac_try;;
2528
esac
2529
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530
  (eval "$ac_compiler -V >&5") 2>&5
2531
  ac_status=$?
2532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533
  (exit $ac_status); }
2534
 
2535
cat >conftest.$ac_ext <<_ACEOF
2536
/* confdefs.h.  */
2537
_ACEOF
2538
cat confdefs.h >>conftest.$ac_ext
2539
cat >>conftest.$ac_ext <<_ACEOF
2540
/* end confdefs.h.  */
2541
 
2542
int
2543
main ()
2544
{
2545
 
2546
  ;
2547
  return 0;
2548
}
2549
_ACEOF
2550
ac_clean_files_save=$ac_clean_files
2551
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2552
# Try to create an executable without -o first, disregard a.out.
2553
# It will help us diagnose broken compilers, and finding out an intuition
2554
# of exeext.
2555
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2556
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2557
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2558
#
2559
# List of possible output files, starting from the most likely.
2560
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2561
# only as a last resort.  b.out is created by i960 compilers.
2562
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2563
#
2564
# The IRIX 6 linker writes into existing files which may not be
2565
# executable, retaining their permissions.  Remove them first so a
2566
# subsequent execution test works.
2567
ac_rmfiles=
2568
for ac_file in $ac_files
2569
do
2570
  case $ac_file in
2571
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2572
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2573
  esac
2574
done
2575
rm -f $ac_rmfiles
2576
 
2577
if { (ac_try="$ac_link_default"
2578
case "(($ac_try" in
2579
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580
  *) ac_try_echo=$ac_try;;
2581
esac
2582
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583
  (eval "$ac_link_default") 2>&5
2584
  ac_status=$?
2585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586
  (exit $ac_status); }; then
2587
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2588
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2589
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2590
# so that the user can short-circuit this test for compilers unknown to
2591
# Autoconf.
2592
for ac_file in $ac_files ''
2593
do
2594
  test -f "$ac_file" || continue
2595
  case $ac_file in
2596
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2597
        ;;
2598
    [ab].out )
2599
        # We found the default executable, but exeext='' is most
2600
        # certainly right.
2601
        break;;
2602
    *.* )
2603
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2604
        then :; else
2605
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2606
        fi
2607
        # We set ac_cv_exeext here because the later test for it is not
2608
        # safe: cross compilers may not add the suffix if given an `-o'
2609
        # argument, so we may need to know it at that point already.
2610
        # Even if this section looks crufty: it has the advantage of
2611
        # actually working.
2612
        break;;
2613
    * )
2614
        break;;
2615
  esac
2616
done
2617
test "$ac_cv_exeext" = no && ac_cv_exeext=
2618
 
2619
else
2620
  ac_file=''
2621
fi
2622
 
2623
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2624
echo "${ECHO_T}$ac_file" >&6; }
2625
if test -z "$ac_file"; then
2626
  echo "$as_me: failed program was:" >&5
2627
sed 's/^/| /' conftest.$ac_ext >&5
2628
 
2629
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2630
See \`config.log' for more details." >&5
2631
echo "$as_me: error: C compiler cannot create executables
2632
See \`config.log' for more details." >&2;}
2633
   { (exit 77); exit 77; }; }
2634
fi
2635
 
2636
ac_exeext=$ac_cv_exeext
2637
 
2638
# Check that the compiler produces executables we can run.  If not, either
2639
# the compiler is broken, or we cross compile.
2640
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2641
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2642
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2643
# If not cross compiling, check that we can run a simple program.
2644
if test "$cross_compiling" != yes; then
2645
  if { ac_try='./$ac_file'
2646
  { (case "(($ac_try" in
2647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648
  *) ac_try_echo=$ac_try;;
2649
esac
2650
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651
  (eval "$ac_try") 2>&5
2652
  ac_status=$?
2653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654
  (exit $ac_status); }; }; then
2655
    cross_compiling=no
2656
  else
2657
    if test "$cross_compiling" = maybe; then
2658
        cross_compiling=yes
2659
    else
2660
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2661
If you meant to cross compile, use \`--host'.
2662
See \`config.log' for more details." >&5
2663
echo "$as_me: error: cannot run C compiled programs.
2664
If you meant to cross compile, use \`--host'.
2665
See \`config.log' for more details." >&2;}
2666
   { (exit 1); exit 1; }; }
2667
    fi
2668
  fi
2669
fi
2670
{ echo "$as_me:$LINENO: result: yes" >&5
2671
echo "${ECHO_T}yes" >&6; }
2672
 
2673
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2674
ac_clean_files=$ac_clean_files_save
2675
# Check that the compiler produces executables we can run.  If not, either
2676
# the compiler is broken, or we cross compile.
2677
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2678
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2679
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2680
echo "${ECHO_T}$cross_compiling" >&6; }
2681
 
2682
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2683
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2684
if { (ac_try="$ac_link"
2685
case "(($ac_try" in
2686
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687
  *) ac_try_echo=$ac_try;;
2688
esac
2689
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690
  (eval "$ac_link") 2>&5
2691
  ac_status=$?
2692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693
  (exit $ac_status); }; then
2694
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2695
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2696
# work properly (i.e., refer to `conftest.exe'), while it won't with
2697
# `rm'.
2698
for ac_file in conftest.exe conftest conftest.*; do
2699
  test -f "$ac_file" || continue
2700
  case $ac_file in
2701
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2702
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2703
          break;;
2704
    * ) break;;
2705
  esac
2706
done
2707
else
2708
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2709
See \`config.log' for more details." >&5
2710
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2711
See \`config.log' for more details." >&2;}
2712
   { (exit 1); exit 1; }; }
2713
fi
2714
 
2715
rm -f conftest$ac_cv_exeext
2716
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2717
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2718
 
2719
rm -f conftest.$ac_ext
2720
EXEEXT=$ac_cv_exeext
2721
ac_exeext=$EXEEXT
2722
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2723
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2724
if test "${ac_cv_objext+set}" = set; then
2725
  echo $ECHO_N "(cached) $ECHO_C" >&6
2726
else
2727
  cat >conftest.$ac_ext <<_ACEOF
2728
/* confdefs.h.  */
2729
_ACEOF
2730
cat confdefs.h >>conftest.$ac_ext
2731
cat >>conftest.$ac_ext <<_ACEOF
2732
/* end confdefs.h.  */
2733
 
2734
int
2735
main ()
2736
{
2737
 
2738
  ;
2739
  return 0;
2740
}
2741
_ACEOF
2742
rm -f conftest.o conftest.obj
2743
if { (ac_try="$ac_compile"
2744
case "(($ac_try" in
2745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746
  *) ac_try_echo=$ac_try;;
2747
esac
2748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749
  (eval "$ac_compile") 2>&5
2750
  ac_status=$?
2751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752
  (exit $ac_status); }; then
2753
  for ac_file in conftest.o conftest.obj conftest.*; do
2754
  test -f "$ac_file" || continue;
2755
  case $ac_file in
2756
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2757
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2758
       break;;
2759
  esac
2760
done
2761
else
2762
  echo "$as_me: failed program was:" >&5
2763
sed 's/^/| /' conftest.$ac_ext >&5
2764
 
2765
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2766
See \`config.log' for more details." >&5
2767
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2768
See \`config.log' for more details." >&2;}
2769
   { (exit 1); exit 1; }; }
2770
fi
2771
 
2772
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2773
fi
2774
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2775
echo "${ECHO_T}$ac_cv_objext" >&6; }
2776
OBJEXT=$ac_cv_objext
2777
ac_objext=$OBJEXT
2778
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2779
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2780
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2781
  echo $ECHO_N "(cached) $ECHO_C" >&6
2782
else
2783
  cat >conftest.$ac_ext <<_ACEOF
2784
/* confdefs.h.  */
2785
_ACEOF
2786
cat confdefs.h >>conftest.$ac_ext
2787
cat >>conftest.$ac_ext <<_ACEOF
2788
/* end confdefs.h.  */
2789
 
2790
int
2791
main ()
2792
{
2793
#ifndef __GNUC__
2794
       choke me
2795
#endif
2796
 
2797
  ;
2798
  return 0;
2799
}
2800
_ACEOF
2801
rm -f conftest.$ac_objext
2802
if { (ac_try="$ac_compile"
2803
case "(($ac_try" in
2804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805
  *) ac_try_echo=$ac_try;;
2806
esac
2807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808
  (eval "$ac_compile") 2>conftest.er1
2809
  ac_status=$?
2810
  grep -v '^ *+' conftest.er1 >conftest.err
2811
  rm -f conftest.er1
2812
  cat conftest.err >&5
2813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814
  (exit $ac_status); } && {
2815
         test -z "$ac_c_werror_flag" ||
2816
         test ! -s conftest.err
2817
       } && test -s conftest.$ac_objext; then
2818
  ac_compiler_gnu=yes
2819
else
2820
  echo "$as_me: failed program was:" >&5
2821
sed 's/^/| /' conftest.$ac_ext >&5
2822
 
2823
        ac_compiler_gnu=no
2824
fi
2825
 
2826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2828
 
2829
fi
2830
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2831
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2832
GCC=`test $ac_compiler_gnu = yes && echo yes`
2833
ac_test_CFLAGS=${CFLAGS+set}
2834
ac_save_CFLAGS=$CFLAGS
2835
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2836
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2837
if test "${ac_cv_prog_cc_g+set}" = set; then
2838
  echo $ECHO_N "(cached) $ECHO_C" >&6
2839
else
2840
  ac_save_c_werror_flag=$ac_c_werror_flag
2841
   ac_c_werror_flag=yes
2842
   ac_cv_prog_cc_g=no
2843
   CFLAGS="-g"
2844
   cat >conftest.$ac_ext <<_ACEOF
2845
/* confdefs.h.  */
2846
_ACEOF
2847
cat confdefs.h >>conftest.$ac_ext
2848
cat >>conftest.$ac_ext <<_ACEOF
2849
/* end confdefs.h.  */
2850
 
2851
int
2852
main ()
2853
{
2854
 
2855
  ;
2856
  return 0;
2857
}
2858
_ACEOF
2859
rm -f conftest.$ac_objext
2860
if { (ac_try="$ac_compile"
2861
case "(($ac_try" in
2862
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863
  *) ac_try_echo=$ac_try;;
2864
esac
2865
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866
  (eval "$ac_compile") 2>conftest.er1
2867
  ac_status=$?
2868
  grep -v '^ *+' conftest.er1 >conftest.err
2869
  rm -f conftest.er1
2870
  cat conftest.err >&5
2871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872
  (exit $ac_status); } && {
2873
         test -z "$ac_c_werror_flag" ||
2874
         test ! -s conftest.err
2875
       } && test -s conftest.$ac_objext; then
2876
  ac_cv_prog_cc_g=yes
2877
else
2878
  echo "$as_me: failed program was:" >&5
2879
sed 's/^/| /' conftest.$ac_ext >&5
2880
 
2881
        CFLAGS=""
2882
      cat >conftest.$ac_ext <<_ACEOF
2883
/* confdefs.h.  */
2884
_ACEOF
2885
cat confdefs.h >>conftest.$ac_ext
2886
cat >>conftest.$ac_ext <<_ACEOF
2887
/* end confdefs.h.  */
2888
 
2889
int
2890
main ()
2891
{
2892
 
2893
  ;
2894
  return 0;
2895
}
2896
_ACEOF
2897
rm -f conftest.$ac_objext
2898
if { (ac_try="$ac_compile"
2899
case "(($ac_try" in
2900
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901
  *) ac_try_echo=$ac_try;;
2902
esac
2903
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904
  (eval "$ac_compile") 2>conftest.er1
2905
  ac_status=$?
2906
  grep -v '^ *+' conftest.er1 >conftest.err
2907
  rm -f conftest.er1
2908
  cat conftest.err >&5
2909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910
  (exit $ac_status); } && {
2911
         test -z "$ac_c_werror_flag" ||
2912
         test ! -s conftest.err
2913
       } && test -s conftest.$ac_objext; then
2914
  :
2915
else
2916
  echo "$as_me: failed program was:" >&5
2917
sed 's/^/| /' conftest.$ac_ext >&5
2918
 
2919
        ac_c_werror_flag=$ac_save_c_werror_flag
2920
         CFLAGS="-g"
2921
         cat >conftest.$ac_ext <<_ACEOF
2922
/* confdefs.h.  */
2923
_ACEOF
2924
cat confdefs.h >>conftest.$ac_ext
2925
cat >>conftest.$ac_ext <<_ACEOF
2926
/* end confdefs.h.  */
2927
 
2928
int
2929
main ()
2930
{
2931
 
2932
  ;
2933
  return 0;
2934
}
2935
_ACEOF
2936
rm -f conftest.$ac_objext
2937
if { (ac_try="$ac_compile"
2938
case "(($ac_try" in
2939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940
  *) ac_try_echo=$ac_try;;
2941
esac
2942
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943
  (eval "$ac_compile") 2>conftest.er1
2944
  ac_status=$?
2945
  grep -v '^ *+' conftest.er1 >conftest.err
2946
  rm -f conftest.er1
2947
  cat conftest.err >&5
2948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949
  (exit $ac_status); } && {
2950
         test -z "$ac_c_werror_flag" ||
2951
         test ! -s conftest.err
2952
       } && test -s conftest.$ac_objext; then
2953
  ac_cv_prog_cc_g=yes
2954
else
2955
  echo "$as_me: failed program was:" >&5
2956
sed 's/^/| /' conftest.$ac_ext >&5
2957
 
2958
 
2959
fi
2960
 
2961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962
fi
2963
 
2964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965
fi
2966
 
2967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968
   ac_c_werror_flag=$ac_save_c_werror_flag
2969
fi
2970
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2971
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2972
if test "$ac_test_CFLAGS" = set; then
2973
  CFLAGS=$ac_save_CFLAGS
2974
elif test $ac_cv_prog_cc_g = yes; then
2975
  if test "$GCC" = yes; then
2976
    CFLAGS="-g -O2"
2977
  else
2978
    CFLAGS="-g"
2979
  fi
2980
else
2981
  if test "$GCC" = yes; then
2982
    CFLAGS="-O2"
2983
  else
2984
    CFLAGS=
2985
  fi
2986
fi
2987
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2988
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2989
if test "${ac_cv_prog_cc_c89+set}" = set; then
2990
  echo $ECHO_N "(cached) $ECHO_C" >&6
2991
else
2992
  ac_cv_prog_cc_c89=no
2993
ac_save_CC=$CC
2994
cat >conftest.$ac_ext <<_ACEOF
2995
/* confdefs.h.  */
2996
_ACEOF
2997
cat confdefs.h >>conftest.$ac_ext
2998
cat >>conftest.$ac_ext <<_ACEOF
2999
/* end confdefs.h.  */
3000
#include 
3001
#include 
3002
#include 
3003
#include 
3004
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3005
struct buf { int x; };
3006
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3007
static char *e (p, i)
3008
     char **p;
3009
     int i;
3010
{
3011
  return p[i];
3012
}
3013
static char *f (char * (*g) (char **, int), char **p, ...)
3014
{
3015
  char *s;
3016
  va_list v;
3017
  va_start (v,p);
3018
  s = g (p, va_arg (v,int));
3019
  va_end (v);
3020
  return s;
3021
}
3022
 
3023
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3024
   function prototypes and stuff, but not '\xHH' hex character constants.
3025
   These don't provoke an error unfortunately, instead are silently treated
3026
   as 'x'.  The following induces an error, until -std is added to get
3027
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3028
   array size at least.  It's necessary to write '\x00'==0 to get something
3029
   that's true only with -std.  */
3030
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3031
 
3032
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3033
   inside strings and character constants.  */
3034
#define FOO(x) 'x'
3035
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3036
 
3037
int test (int i, double x);
3038
struct s1 {int (*f) (int a);};
3039
struct s2 {int (*f) (double a);};
3040
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3041
int argc;
3042
char **argv;
3043
int
3044
main ()
3045
{
3046
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3047
  ;
3048
  return 0;
3049
}
3050
_ACEOF
3051
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3052
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3053
do
3054
  CC="$ac_save_CC $ac_arg"
3055
  rm -f conftest.$ac_objext
3056
if { (ac_try="$ac_compile"
3057
case "(($ac_try" in
3058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059
  *) ac_try_echo=$ac_try;;
3060
esac
3061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062
  (eval "$ac_compile") 2>conftest.er1
3063
  ac_status=$?
3064
  grep -v '^ *+' conftest.er1 >conftest.err
3065
  rm -f conftest.er1
3066
  cat conftest.err >&5
3067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068
  (exit $ac_status); } && {
3069
         test -z "$ac_c_werror_flag" ||
3070
         test ! -s conftest.err
3071
       } && test -s conftest.$ac_objext; then
3072
  ac_cv_prog_cc_c89=$ac_arg
3073
else
3074
  echo "$as_me: failed program was:" >&5
3075
sed 's/^/| /' conftest.$ac_ext >&5
3076
 
3077
 
3078
fi
3079
 
3080
rm -f core conftest.err conftest.$ac_objext
3081
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3082
done
3083
rm -f conftest.$ac_ext
3084
CC=$ac_save_CC
3085
 
3086
fi
3087
# AC_CACHE_VAL
3088
case "x$ac_cv_prog_cc_c89" in
3089
  x)
3090
    { echo "$as_me:$LINENO: result: none needed" >&5
3091
echo "${ECHO_T}none needed" >&6; } ;;
3092
  xno)
3093
    { echo "$as_me:$LINENO: result: unsupported" >&5
3094
echo "${ECHO_T}unsupported" >&6; } ;;
3095
  *)
3096
    CC="$CC $ac_cv_prog_cc_c89"
3097
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3098
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3099
esac
3100
 
3101
 
3102
ac_ext=c
3103
ac_cpp='$CPP $CPPFLAGS'
3104
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107
 
3108
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3109
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3110
if test "${lt_cv_path_SED+set}" = set; then
3111
  echo $ECHO_N "(cached) $ECHO_C" >&6
3112
else
3113
  # Loop through the user's path and test for sed and gsed.
3114
# Then use that list of sed's as ones to test for truncation.
3115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116
for as_dir in $PATH
3117
do
3118
  IFS=$as_save_IFS
3119
  test -z "$as_dir" && as_dir=.
3120
  for lt_ac_prog in sed gsed; do
3121
    for ac_exec_ext in '' $ac_executable_extensions; do
3122
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3123
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3124
      fi
3125
    done
3126
  done
3127
done
3128
IFS=$as_save_IFS
3129
lt_ac_max=0
3130
lt_ac_count=0
3131
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3132
# along with /bin/sed that truncates output.
3133
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3134
  test ! -f $lt_ac_sed && continue
3135
  cat /dev/null > conftest.in
3136
  lt_ac_count=0
3137
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3138
  # Check for GNU sed and select it if it is found.
3139
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3140
    lt_cv_path_SED=$lt_ac_sed
3141
    break
3142
  fi
3143
  while true; do
3144
    cat conftest.in conftest.in >conftest.tmp
3145
    mv conftest.tmp conftest.in
3146
    cp conftest.in conftest.nl
3147
    echo >>conftest.nl
3148
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3149
    cmp -s conftest.out conftest.nl || break
3150
    # 10000 chars as input seems more than enough
3151
    test $lt_ac_count -gt 10 && break
3152
    lt_ac_count=`expr $lt_ac_count + 1`
3153
    if test $lt_ac_count -gt $lt_ac_max; then
3154
      lt_ac_max=$lt_ac_count
3155
      lt_cv_path_SED=$lt_ac_sed
3156
    fi
3157
  done
3158
done
3159
 
3160
fi
3161
 
3162
SED=$lt_cv_path_SED
3163
 
3164
{ echo "$as_me:$LINENO: result: $SED" >&5
3165
echo "${ECHO_T}$SED" >&6; }
3166
 
3167
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3168
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3169
if test "${ac_cv_path_GREP+set}" = set; then
3170
  echo $ECHO_N "(cached) $ECHO_C" >&6
3171
else
3172
  # Extract the first word of "grep ggrep" to use in msg output
3173
if test -z "$GREP"; then
3174
set dummy grep ggrep; ac_prog_name=$2
3175
if test "${ac_cv_path_GREP+set}" = set; then
3176
  echo $ECHO_N "(cached) $ECHO_C" >&6
3177
else
3178
  ac_path_GREP_found=false
3179
# Loop through the user's path and test for each of PROGNAME-LIST
3180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3182
do
3183
  IFS=$as_save_IFS
3184
  test -z "$as_dir" && as_dir=.
3185
  for ac_prog in grep ggrep; do
3186
  for ac_exec_ext in '' $ac_executable_extensions; do
3187
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3188
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3189
    # Check for GNU ac_path_GREP and select it if it is found.
3190
  # Check for GNU $ac_path_GREP
3191
case `"$ac_path_GREP" --version 2>&1` in
3192
*GNU*)
3193
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3194
*)
3195
  ac_count=0
3196
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3197
  while :
3198
  do
3199
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3200
    mv "conftest.tmp" "conftest.in"
3201
    cp "conftest.in" "conftest.nl"
3202
    echo 'GREP' >> "conftest.nl"
3203
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3204
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3205
    ac_count=`expr $ac_count + 1`
3206
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3207
      # Best one so far, save it but keep looking for a better one
3208
      ac_cv_path_GREP="$ac_path_GREP"
3209
      ac_path_GREP_max=$ac_count
3210
    fi
3211
    # 10*(2^10) chars as input seems more than enough
3212
    test $ac_count -gt 10 && break
3213
  done
3214
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3215
esac
3216
 
3217
 
3218
    $ac_path_GREP_found && break 3
3219
  done
3220
done
3221
 
3222
done
3223
IFS=$as_save_IFS
3224
 
3225
 
3226
fi
3227
 
3228
GREP="$ac_cv_path_GREP"
3229
if test -z "$GREP"; then
3230
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3231
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3232
   { (exit 1); exit 1; }; }
3233
fi
3234
 
3235
else
3236
  ac_cv_path_GREP=$GREP
3237
fi
3238
 
3239
 
3240
fi
3241
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3242
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3243
 GREP="$ac_cv_path_GREP"
3244
 
3245
 
3246
{ echo "$as_me:$LINENO: checking for egrep" >&5
3247
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3248
if test "${ac_cv_path_EGREP+set}" = set; then
3249
  echo $ECHO_N "(cached) $ECHO_C" >&6
3250
else
3251
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3252
   then ac_cv_path_EGREP="$GREP -E"
3253
   else
3254
     # Extract the first word of "egrep" to use in msg output
3255
if test -z "$EGREP"; then
3256
set dummy egrep; ac_prog_name=$2
3257
if test "${ac_cv_path_EGREP+set}" = set; then
3258
  echo $ECHO_N "(cached) $ECHO_C" >&6
3259
else
3260
  ac_path_EGREP_found=false
3261
# Loop through the user's path and test for each of PROGNAME-LIST
3262
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3264
do
3265
  IFS=$as_save_IFS
3266
  test -z "$as_dir" && as_dir=.
3267
  for ac_prog in egrep; do
3268
  for ac_exec_ext in '' $ac_executable_extensions; do
3269
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3270
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3271
    # Check for GNU ac_path_EGREP and select it if it is found.
3272
  # Check for GNU $ac_path_EGREP
3273
case `"$ac_path_EGREP" --version 2>&1` in
3274
*GNU*)
3275
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3276
*)
3277
  ac_count=0
3278
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3279
  while :
3280
  do
3281
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3282
    mv "conftest.tmp" "conftest.in"
3283
    cp "conftest.in" "conftest.nl"
3284
    echo 'EGREP' >> "conftest.nl"
3285
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3286
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3287
    ac_count=`expr $ac_count + 1`
3288
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3289
      # Best one so far, save it but keep looking for a better one
3290
      ac_cv_path_EGREP="$ac_path_EGREP"
3291
      ac_path_EGREP_max=$ac_count
3292
    fi
3293
    # 10*(2^10) chars as input seems more than enough
3294
    test $ac_count -gt 10 && break
3295
  done
3296
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3297
esac
3298
 
3299
 
3300
    $ac_path_EGREP_found && break 3
3301
  done
3302
done
3303
 
3304
done
3305
IFS=$as_save_IFS
3306
 
3307
 
3308
fi
3309
 
3310
EGREP="$ac_cv_path_EGREP"
3311
if test -z "$EGREP"; then
3312
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3313
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3314
   { (exit 1); exit 1; }; }
3315
fi
3316
 
3317
else
3318
  ac_cv_path_EGREP=$EGREP
3319
fi
3320
 
3321
 
3322
   fi
3323
fi
3324
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3325
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3326
 EGREP="$ac_cv_path_EGREP"
3327
 
3328
 
3329
 
3330
# Check whether --with-gnu-ld was given.
3331
if test "${with_gnu_ld+set}" = set; then
3332
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3333
else
3334
  with_gnu_ld=no
3335
fi
3336
 
3337
ac_prog=ld
3338
if test "$GCC" = yes; then
3339
  # Check if gcc -print-prog-name=ld gives a path.
3340
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3341
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3342
  case $host in
3343
  *-*-mingw*)
3344
    # gcc leaves a trailing carriage return which upsets mingw
3345
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3346
  *)
3347
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3348
  esac
3349
  case $ac_prog in
3350
    # Accept absolute paths.
3351
    [\\/]* | ?:[\\/]*)
3352
      re_direlt='/[^/][^/]*/\.\./'
3353
      # Canonicalize the pathname of ld
3354
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3355
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3356
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3357
      done
3358
      test -z "$LD" && LD="$ac_prog"
3359
      ;;
3360
  "")
3361
    # If it fails, then pretend we aren't using GCC.
3362
    ac_prog=ld
3363
    ;;
3364
  *)
3365
    # If it is relative, then search for the first ld in PATH.
3366
    with_gnu_ld=unknown
3367
    ;;
3368
  esac
3369
elif test "$with_gnu_ld" = yes; then
3370
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3371
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3372
else
3373
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3374
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3375
fi
3376
if test "${lt_cv_path_LD+set}" = set; then
3377
  echo $ECHO_N "(cached) $ECHO_C" >&6
3378
else
3379
  if test -z "$LD"; then
3380
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3381
  for ac_dir in $PATH; do
3382
    IFS="$lt_save_ifs"
3383
    test -z "$ac_dir" && ac_dir=.
3384
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3385
      lt_cv_path_LD="$ac_dir/$ac_prog"
3386
      # Check to see if the program is GNU ld.  I'd rather use --version,
3387
      # but apparently some variants of GNU ld only accept -v.
3388
      # Break only if it was the GNU/non-GNU ld that we prefer.
3389
      case `"$lt_cv_path_LD" -v 2>&1 
3390
      *GNU* | *'with BFD'*)
3391
        test "$with_gnu_ld" != no && break
3392
        ;;
3393
      *)
3394
        test "$with_gnu_ld" != yes && break
3395
        ;;
3396
      esac
3397
    fi
3398
  done
3399
  IFS="$lt_save_ifs"
3400
else
3401
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3402
fi
3403
fi
3404
 
3405
LD="$lt_cv_path_LD"
3406
if test -n "$LD"; then
3407
  { echo "$as_me:$LINENO: result: $LD" >&5
3408
echo "${ECHO_T}$LD" >&6; }
3409
else
3410
  { echo "$as_me:$LINENO: result: no" >&5
3411
echo "${ECHO_T}no" >&6; }
3412
fi
3413
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3414
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3415
   { (exit 1); exit 1; }; }
3416
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3417
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3418
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3419
  echo $ECHO_N "(cached) $ECHO_C" >&6
3420
else
3421
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3422
case `$LD -v 2>&1 
3423
*GNU* | *'with BFD'*)
3424
  lt_cv_prog_gnu_ld=yes
3425
  ;;
3426
*)
3427
  lt_cv_prog_gnu_ld=no
3428
  ;;
3429
esac
3430
fi
3431
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3432
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3433
with_gnu_ld=$lt_cv_prog_gnu_ld
3434
 
3435
 
3436
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3437
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3438
if test "${lt_cv_ld_reload_flag+set}" = set; then
3439
  echo $ECHO_N "(cached) $ECHO_C" >&6
3440
else
3441
  lt_cv_ld_reload_flag='-r'
3442
fi
3443
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3444
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3445
reload_flag=$lt_cv_ld_reload_flag
3446
case $reload_flag in
3447
"" | " "*) ;;
3448
*) reload_flag=" $reload_flag" ;;
3449
esac
3450
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3451
case $host_os in
3452
  darwin*)
3453
    if test "$GCC" = yes; then
3454
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3455
    else
3456
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3457
    fi
3458
    ;;
3459
esac
3460
 
3461
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3462
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3463
if test "${lt_cv_path_NM+set}" = set; then
3464
  echo $ECHO_N "(cached) $ECHO_C" >&6
3465
else
3466
  if test -n "$NM"; then
3467
  # Let the user override the test.
3468
  lt_cv_path_NM="$NM"
3469
else
3470
  lt_nm_to_check="${ac_tool_prefix}nm"
3471
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3472
    lt_nm_to_check="$lt_nm_to_check nm"
3473
  fi
3474
  for lt_tmp_nm in $lt_nm_to_check; do
3475
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3476
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3477
      IFS="$lt_save_ifs"
3478
      test -z "$ac_dir" && ac_dir=.
3479
      tmp_nm="$ac_dir/$lt_tmp_nm"
3480
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3481
        # Check to see if the nm accepts a BSD-compat flag.
3482
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3483
        #   nm: unknown option "B" ignored
3484
        # Tru64's nm complains that /dev/null is an invalid object file
3485
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3486
        */dev/null* | *'Invalid file or object type'*)
3487
          lt_cv_path_NM="$tmp_nm -B"
3488
          break
3489
          ;;
3490
        *)
3491
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3492
          */dev/null*)
3493
            lt_cv_path_NM="$tmp_nm -p"
3494
            break
3495
            ;;
3496
          *)
3497
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3498
            continue # so that we can try to find one that supports BSD flags
3499
            ;;
3500
          esac
3501
          ;;
3502
        esac
3503
      fi
3504
    done
3505
    IFS="$lt_save_ifs"
3506
  done
3507
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3508
fi
3509
fi
3510
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3511
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3512
NM="$lt_cv_path_NM"
3513
 
3514
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3515
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3516
LN_S=$as_ln_s
3517
if test "$LN_S" = "ln -s"; then
3518
  { echo "$as_me:$LINENO: result: yes" >&5
3519
echo "${ECHO_T}yes" >&6; }
3520
else
3521
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3522
echo "${ECHO_T}no, using $LN_S" >&6; }
3523
fi
3524
 
3525
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3526
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3527
if test "${lt_cv_deplibs_check_method+set}" = set; then
3528
  echo $ECHO_N "(cached) $ECHO_C" >&6
3529
else
3530
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3531
lt_cv_file_magic_test_file=
3532
lt_cv_deplibs_check_method='unknown'
3533
# Need to set the preceding variable on all platforms that support
3534
# interlibrary dependencies.
3535
# 'none' -- dependencies not supported.
3536
# `unknown' -- same as none, but documents that we really don't know.
3537
# 'pass_all' -- all dependencies passed with no checks.
3538
# 'test_compile' -- check by making test program.
3539
# 'file_magic [[regex]]' -- check by looking for files in library path
3540
# which responds to the $file_magic_cmd with a given extended regex.
3541
# If you have `file' or equivalent on your system and you're not sure
3542
# whether `pass_all' will *always* work, you probably want this one.
3543
 
3544
case $host_os in
3545
aix4* | aix5*)
3546
  lt_cv_deplibs_check_method=pass_all
3547
  ;;
3548
 
3549
beos*)
3550
  lt_cv_deplibs_check_method=pass_all
3551
  ;;
3552
 
3553
bsdi[45]*)
3554
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3555
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3556
  lt_cv_file_magic_test_file=/shlib/libc.so
3557
  ;;
3558
 
3559
cygwin*)
3560
  # func_win32_libid is a shell function defined in ltmain.sh
3561
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3562
  lt_cv_file_magic_cmd='func_win32_libid'
3563
  ;;
3564
 
3565
mingw* | pw32*)
3566
  # Base MSYS/MinGW do not provide the 'file' command needed by
3567
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3568
  # unless we find 'file', for example because we are cross-compiling.
3569
  if ( file / ) >/dev/null 2>&1; then
3570
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3571
    lt_cv_file_magic_cmd='func_win32_libid'
3572
  else
3573
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3574
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3575
  fi
3576
  ;;
3577
 
3578
darwin* | rhapsody*)
3579
  lt_cv_deplibs_check_method=pass_all
3580
  ;;
3581
 
3582
freebsd* | dragonfly*)
3583
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3584
    case $host_cpu in
3585
    i*86 )
3586
      # Not sure whether the presence of OpenBSD here was a mistake.
3587
      # Let's accept both of them until this is cleared up.
3588
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3589
      lt_cv_file_magic_cmd=/usr/bin/file
3590
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3591
      ;;
3592
    esac
3593
  else
3594
    lt_cv_deplibs_check_method=pass_all
3595
  fi
3596
  ;;
3597
 
3598
gnu*)
3599
  lt_cv_deplibs_check_method=pass_all
3600
  ;;
3601
 
3602
hpux10.20* | hpux11*)
3603
  lt_cv_file_magic_cmd=/usr/bin/file
3604
  case $host_cpu in
3605
  ia64*)
3606
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3607
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3608
    ;;
3609
  hppa*64*)
3610
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3611
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3612
    ;;
3613
  *)
3614
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3615
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3616
    ;;
3617
  esac
3618
  ;;
3619
 
3620
interix[3-9]*)
3621
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3622
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3623
  ;;
3624
 
3625
irix5* | irix6* | nonstopux*)
3626
  case $LD in
3627
  *-32|*"-32 ") libmagic=32-bit;;
3628
  *-n32|*"-n32 ") libmagic=N32;;
3629
  *-64|*"-64 ") libmagic=64-bit;;
3630
  *) libmagic=never-match;;
3631
  esac
3632
  lt_cv_deplibs_check_method=pass_all
3633
  ;;
3634
 
3635
# This must be Linux ELF.
3636
linux* | k*bsd*-gnu)
3637
  lt_cv_deplibs_check_method=pass_all
3638
  ;;
3639
 
3640
netbsd*)
3641
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3642
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3643
  else
3644
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3645
  fi
3646
  ;;
3647
 
3648
newos6*)
3649
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3650
  lt_cv_file_magic_cmd=/usr/bin/file
3651
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3652
  ;;
3653
 
3654
nto-qnx*)
3655
  lt_cv_deplibs_check_method=unknown
3656
  ;;
3657
 
3658
openbsd*)
3659
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3660
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3661
  else
3662
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3663
  fi
3664
  ;;
3665
 
3666
osf3* | osf4* | osf5*)
3667
  lt_cv_deplibs_check_method=pass_all
3668
  ;;
3669
 
3670
rdos*)
3671
  lt_cv_deplibs_check_method=pass_all
3672
  ;;
3673
 
3674
solaris*)
3675
  lt_cv_deplibs_check_method=pass_all
3676
  ;;
3677
 
3678
sysv4 | sysv4.3*)
3679
  case $host_vendor in
3680
  motorola)
3681
    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]'
3682
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3683
    ;;
3684
  ncr)
3685
    lt_cv_deplibs_check_method=pass_all
3686
    ;;
3687
  sequent)
3688
    lt_cv_file_magic_cmd='/bin/file'
3689
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3690
    ;;
3691
  sni)
3692
    lt_cv_file_magic_cmd='/bin/file'
3693
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3694
    lt_cv_file_magic_test_file=/lib/libc.so
3695
    ;;
3696
  siemens)
3697
    lt_cv_deplibs_check_method=pass_all
3698
    ;;
3699
  pc)
3700
    lt_cv_deplibs_check_method=pass_all
3701
    ;;
3702
  esac
3703
  ;;
3704
 
3705
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3706
  lt_cv_deplibs_check_method=pass_all
3707
  ;;
3708
esac
3709
 
3710
fi
3711
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3712
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3713
file_magic_cmd=$lt_cv_file_magic_cmd
3714
deplibs_check_method=$lt_cv_deplibs_check_method
3715
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3716
 
3717
 
3718
 
3719
 
3720
# If no C compiler was specified, use CC.
3721
LTCC=${LTCC-"$CC"}
3722
 
3723
# If no C compiler flags were specified, use CFLAGS.
3724
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3725
 
3726
# Allow CC to be a program name with arguments.
3727
compiler=$CC
3728
 
3729
 
3730
# Check whether --enable-libtool-lock was given.
3731
if test "${enable_libtool_lock+set}" = set; then
3732
  enableval=$enable_libtool_lock;
3733
fi
3734
 
3735
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3736
 
3737
# Some flags need to be propagated to the compiler or linker for good
3738
# libtool support.
3739
case $host in
3740
ia64-*-hpux*)
3741
  # Find out which ABI we are using.
3742
  echo 'int i;' > conftest.$ac_ext
3743
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744
  (eval $ac_compile) 2>&5
3745
  ac_status=$?
3746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
  (exit $ac_status); }; then
3748
    case `/usr/bin/file conftest.$ac_objext` in
3749
    *ELF-32*)
3750
      HPUX_IA64_MODE="32"
3751
      ;;
3752
    *ELF-64*)
3753
      HPUX_IA64_MODE="64"
3754
      ;;
3755
    esac
3756
  fi
3757
  rm -rf conftest*
3758
  ;;
3759
*-*-irix6*)
3760
  # Find out which ABI we are using.
3761
  echo '#line __oline__ "configure"' > conftest.$ac_ext
3762
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3763
  (eval $ac_compile) 2>&5
3764
  ac_status=$?
3765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766
  (exit $ac_status); }; then
3767
   if test "$lt_cv_prog_gnu_ld" = yes; then
3768
    case `/usr/bin/file conftest.$ac_objext` in
3769
    *32-bit*)
3770
      LD="${LD-ld} -melf32bsmip"
3771
      ;;
3772
    *N32*)
3773
      LD="${LD-ld} -melf32bmipn32"
3774
      ;;
3775
    *64-bit*)
3776
      LD="${LD-ld} -melf64bmip"
3777
      ;;
3778
    esac
3779
   else
3780
    case `/usr/bin/file conftest.$ac_objext` in
3781
    *32-bit*)
3782
      LD="${LD-ld} -32"
3783
      ;;
3784
    *N32*)
3785
      LD="${LD-ld} -n32"
3786
      ;;
3787
    *64-bit*)
3788
      LD="${LD-ld} -64"
3789
      ;;
3790
    esac
3791
   fi
3792
  fi
3793
  rm -rf conftest*
3794
  ;;
3795
 
3796
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3797
s390*-*linux*|sparc*-*linux*)
3798
  # Find out which ABI we are using.
3799
  echo 'int i;' > conftest.$ac_ext
3800
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801
  (eval $ac_compile) 2>&5
3802
  ac_status=$?
3803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804
  (exit $ac_status); }; then
3805
    case `/usr/bin/file conftest.o` in
3806
    *32-bit*)
3807
      case $host in
3808
        x86_64-*kfreebsd*-gnu)
3809
          LD="${LD-ld} -m elf_i386_fbsd"
3810
          ;;
3811
        x86_64-*linux*)
3812
          LD="${LD-ld} -m elf_i386"
3813
          ;;
3814
        ppc64-*linux*|powerpc64-*linux*)
3815
          LD="${LD-ld} -m elf32ppclinux"
3816
          ;;
3817
        s390x-*linux*)
3818
          LD="${LD-ld} -m elf_s390"
3819
          ;;
3820
        sparc64-*linux*)
3821
          LD="${LD-ld} -m elf32_sparc"
3822
          ;;
3823
      esac
3824
      ;;
3825
    *64-bit*)
3826
      libsuff=64
3827
      case $host in
3828
        x86_64-*kfreebsd*-gnu)
3829
          LD="${LD-ld} -m elf_x86_64_fbsd"
3830
          ;;
3831
        x86_64-*linux*)
3832
          LD="${LD-ld} -m elf_x86_64"
3833
          ;;
3834
        ppc*-*linux*|powerpc*-*linux*)
3835
          LD="${LD-ld} -m elf64ppc"
3836
          ;;
3837
        s390*-*linux*)
3838
          LD="${LD-ld} -m elf64_s390"
3839
          ;;
3840
        sparc*-*linux*)
3841
          LD="${LD-ld} -m elf64_sparc"
3842
          ;;
3843
      esac
3844
      ;;
3845
    esac
3846
  fi
3847
  rm -rf conftest*
3848
  ;;
3849
 
3850
*-*-sco3.2v5*)
3851
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3852
  SAVE_CFLAGS="$CFLAGS"
3853
  CFLAGS="$CFLAGS -belf"
3854
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3855
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3856
if test "${lt_cv_cc_needs_belf+set}" = set; then
3857
  echo $ECHO_N "(cached) $ECHO_C" >&6
3858
else
3859
  ac_ext=c
3860
ac_cpp='$CPP $CPPFLAGS'
3861
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864
 
3865
     cat >conftest.$ac_ext <<_ACEOF
3866
/* confdefs.h.  */
3867
_ACEOF
3868
cat confdefs.h >>conftest.$ac_ext
3869
cat >>conftest.$ac_ext <<_ACEOF
3870
/* end confdefs.h.  */
3871
 
3872
int
3873
main ()
3874
{
3875
 
3876
  ;
3877
  return 0;
3878
}
3879
_ACEOF
3880
rm -f conftest.$ac_objext conftest$ac_exeext
3881
if { (ac_try="$ac_link"
3882
case "(($ac_try" in
3883
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884
  *) ac_try_echo=$ac_try;;
3885
esac
3886
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887
  (eval "$ac_link") 2>conftest.er1
3888
  ac_status=$?
3889
  grep -v '^ *+' conftest.er1 >conftest.err
3890
  rm -f conftest.er1
3891
  cat conftest.err >&5
3892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893
  (exit $ac_status); } && {
3894
         test -z "$ac_c_werror_flag" ||
3895
         test ! -s conftest.err
3896
       } && test -s conftest$ac_exeext &&
3897
       $as_test_x conftest$ac_exeext; then
3898
  lt_cv_cc_needs_belf=yes
3899
else
3900
  echo "$as_me: failed program was:" >&5
3901
sed 's/^/| /' conftest.$ac_ext >&5
3902
 
3903
        lt_cv_cc_needs_belf=no
3904
fi
3905
 
3906
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3907
      conftest$ac_exeext conftest.$ac_ext
3908
     ac_ext=c
3909
ac_cpp='$CPP $CPPFLAGS'
3910
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913
 
3914
fi
3915
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3916
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3917
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3918
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3919
    CFLAGS="$SAVE_CFLAGS"
3920
  fi
3921
  ;;
3922
sparc*-*solaris*)
3923
  # Find out which ABI we are using.
3924
  echo 'int i;' > conftest.$ac_ext
3925
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3926
  (eval $ac_compile) 2>&5
3927
  ac_status=$?
3928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929
  (exit $ac_status); }; then
3930
    case `/usr/bin/file conftest.o` in
3931
    *64-bit*)
3932
      case $lt_cv_prog_gnu_ld in
3933
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3934
      *)    LD="${LD-ld} -64" ;;
3935
      esac
3936
      ;;
3937
    esac
3938
  fi
3939
  rm -rf conftest*
3940
  ;;
3941
 
3942
 
3943
esac
3944
 
3945
need_locks="$enable_libtool_lock"
3946
 
3947
 
3948
ac_ext=c
3949
ac_cpp='$CPP $CPPFLAGS'
3950
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3954
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3955
# On Suns, sometimes $CPP names a directory.
3956
if test -n "$CPP" && test -d "$CPP"; then
3957
  CPP=
3958
fi
3959
if test -z "$CPP"; then
3960
  if test "${ac_cv_prog_CPP+set}" = set; then
3961
  echo $ECHO_N "(cached) $ECHO_C" >&6
3962
else
3963
      # Double quotes because CPP needs to be expanded
3964
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3965
    do
3966
      ac_preproc_ok=false
3967
for ac_c_preproc_warn_flag in '' yes
3968
do
3969
  # Use a header file that comes with gcc, so configuring glibc
3970
  # with a fresh cross-compiler works.
3971
  # Prefer  to  if __STDC__ is defined, since
3972
  #  exists even on freestanding compilers.
3973
  # On the NeXT, cc -E runs the code through the compiler's parser,
3974
  # not just through cpp. "Syntax error" is here to catch this case.
3975
  cat >conftest.$ac_ext <<_ACEOF
3976
/* confdefs.h.  */
3977
_ACEOF
3978
cat confdefs.h >>conftest.$ac_ext
3979
cat >>conftest.$ac_ext <<_ACEOF
3980
/* end confdefs.h.  */
3981
@%:@ifdef __STDC__
3982
@%:@ include 
3983
@%:@else
3984
@%:@ include 
3985
@%:@endif
3986
                     Syntax error
3987
_ACEOF
3988
if { (ac_try="$ac_cpp conftest.$ac_ext"
3989
case "(($ac_try" in
3990
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991
  *) ac_try_echo=$ac_try;;
3992
esac
3993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3995
  ac_status=$?
3996
  grep -v '^ *+' conftest.er1 >conftest.err
3997
  rm -f conftest.er1
3998
  cat conftest.err >&5
3999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000
  (exit $ac_status); } >/dev/null && {
4001
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4002
         test ! -s conftest.err
4003
       }; then
4004
  :
4005
else
4006
  echo "$as_me: failed program was:" >&5
4007
sed 's/^/| /' conftest.$ac_ext >&5
4008
 
4009
  # Broken: fails on valid input.
4010
continue
4011
fi
4012
 
4013
rm -f conftest.err conftest.$ac_ext
4014
 
4015
  # OK, works on sane cases.  Now check whether nonexistent headers
4016
  # can be detected and how.
4017
  cat >conftest.$ac_ext <<_ACEOF
4018
/* confdefs.h.  */
4019
_ACEOF
4020
cat confdefs.h >>conftest.$ac_ext
4021
cat >>conftest.$ac_ext <<_ACEOF
4022
/* end confdefs.h.  */
4023
@%:@include 
4024
_ACEOF
4025
if { (ac_try="$ac_cpp conftest.$ac_ext"
4026
case "(($ac_try" in
4027
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028
  *) ac_try_echo=$ac_try;;
4029
esac
4030
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4032
  ac_status=$?
4033
  grep -v '^ *+' conftest.er1 >conftest.err
4034
  rm -f conftest.er1
4035
  cat conftest.err >&5
4036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037
  (exit $ac_status); } >/dev/null && {
4038
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4039
         test ! -s conftest.err
4040
       }; then
4041
  # Broken: success on invalid input.
4042
continue
4043
else
4044
  echo "$as_me: failed program was:" >&5
4045
sed 's/^/| /' conftest.$ac_ext >&5
4046
 
4047
  # Passes both tests.
4048
ac_preproc_ok=:
4049
break
4050
fi
4051
 
4052
rm -f conftest.err conftest.$ac_ext
4053
 
4054
done
4055
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4056
rm -f conftest.err conftest.$ac_ext
4057
if $ac_preproc_ok; then
4058
  break
4059
fi
4060
 
4061
    done
4062
    ac_cv_prog_CPP=$CPP
4063
 
4064
fi
4065
  CPP=$ac_cv_prog_CPP
4066
else
4067
  ac_cv_prog_CPP=$CPP
4068
fi
4069
{ echo "$as_me:$LINENO: result: $CPP" >&5
4070
echo "${ECHO_T}$CPP" >&6; }
4071
ac_preproc_ok=false
4072
for ac_c_preproc_warn_flag in '' yes
4073
do
4074
  # Use a header file that comes with gcc, so configuring glibc
4075
  # with a fresh cross-compiler works.
4076
  # Prefer  to  if __STDC__ is defined, since
4077
  #  exists even on freestanding compilers.
4078
  # On the NeXT, cc -E runs the code through the compiler's parser,
4079
  # not just through cpp. "Syntax error" is here to catch this case.
4080
  cat >conftest.$ac_ext <<_ACEOF
4081
/* confdefs.h.  */
4082
_ACEOF
4083
cat confdefs.h >>conftest.$ac_ext
4084
cat >>conftest.$ac_ext <<_ACEOF
4085
/* end confdefs.h.  */
4086
@%:@ifdef __STDC__
4087
@%:@ include 
4088
@%:@else
4089
@%:@ include 
4090
@%:@endif
4091
                     Syntax error
4092
_ACEOF
4093
if { (ac_try="$ac_cpp conftest.$ac_ext"
4094
case "(($ac_try" in
4095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096
  *) ac_try_echo=$ac_try;;
4097
esac
4098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4100
  ac_status=$?
4101
  grep -v '^ *+' conftest.er1 >conftest.err
4102
  rm -f conftest.er1
4103
  cat conftest.err >&5
4104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105
  (exit $ac_status); } >/dev/null && {
4106
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4107
         test ! -s conftest.err
4108
       }; then
4109
  :
4110
else
4111
  echo "$as_me: failed program was:" >&5
4112
sed 's/^/| /' conftest.$ac_ext >&5
4113
 
4114
  # Broken: fails on valid input.
4115
continue
4116
fi
4117
 
4118
rm -f conftest.err conftest.$ac_ext
4119
 
4120
  # OK, works on sane cases.  Now check whether nonexistent headers
4121
  # can be detected and how.
4122
  cat >conftest.$ac_ext <<_ACEOF
4123
/* confdefs.h.  */
4124
_ACEOF
4125
cat confdefs.h >>conftest.$ac_ext
4126
cat >>conftest.$ac_ext <<_ACEOF
4127
/* end confdefs.h.  */
4128
@%:@include 
4129
_ACEOF
4130
if { (ac_try="$ac_cpp conftest.$ac_ext"
4131
case "(($ac_try" in
4132
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133
  *) ac_try_echo=$ac_try;;
4134
esac
4135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4137
  ac_status=$?
4138
  grep -v '^ *+' conftest.er1 >conftest.err
4139
  rm -f conftest.er1
4140
  cat conftest.err >&5
4141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142
  (exit $ac_status); } >/dev/null && {
4143
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4144
         test ! -s conftest.err
4145
       }; then
4146
  # Broken: success on invalid input.
4147
continue
4148
else
4149
  echo "$as_me: failed program was:" >&5
4150
sed 's/^/| /' conftest.$ac_ext >&5
4151
 
4152
  # Passes both tests.
4153
ac_preproc_ok=:
4154
break
4155
fi
4156
 
4157
rm -f conftest.err conftest.$ac_ext
4158
 
4159
done
4160
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4161
rm -f conftest.err conftest.$ac_ext
4162
if $ac_preproc_ok; then
4163
  :
4164
else
4165
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4166
See \`config.log' for more details." >&5
4167
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4168
See \`config.log' for more details." >&2;}
4169
   { (exit 1); exit 1; }; }
4170
fi
4171
 
4172
ac_ext=c
4173
ac_cpp='$CPP $CPPFLAGS'
4174
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177
 
4178
 
4179
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4180
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4181
if test "${ac_cv_header_stdc+set}" = set; then
4182
  echo $ECHO_N "(cached) $ECHO_C" >&6
4183
else
4184
  cat >conftest.$ac_ext <<_ACEOF
4185
/* confdefs.h.  */
4186
_ACEOF
4187
cat confdefs.h >>conftest.$ac_ext
4188
cat >>conftest.$ac_ext <<_ACEOF
4189
/* end confdefs.h.  */
4190
#include 
4191
#include 
4192
#include 
4193
#include 
4194
 
4195
int
4196
main ()
4197
{
4198
 
4199
  ;
4200
  return 0;
4201
}
4202
_ACEOF
4203
rm -f conftest.$ac_objext
4204
if { (ac_try="$ac_compile"
4205
case "(($ac_try" in
4206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207
  *) ac_try_echo=$ac_try;;
4208
esac
4209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210
  (eval "$ac_compile") 2>conftest.er1
4211
  ac_status=$?
4212
  grep -v '^ *+' conftest.er1 >conftest.err
4213
  rm -f conftest.er1
4214
  cat conftest.err >&5
4215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216
  (exit $ac_status); } && {
4217
         test -z "$ac_c_werror_flag" ||
4218
         test ! -s conftest.err
4219
       } && test -s conftest.$ac_objext; then
4220
  ac_cv_header_stdc=yes
4221
else
4222
  echo "$as_me: failed program was:" >&5
4223
sed 's/^/| /' conftest.$ac_ext >&5
4224
 
4225
        ac_cv_header_stdc=no
4226
fi
4227
 
4228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229
 
4230
if test $ac_cv_header_stdc = yes; then
4231
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4232
  cat >conftest.$ac_ext <<_ACEOF
4233
/* confdefs.h.  */
4234
_ACEOF
4235
cat confdefs.h >>conftest.$ac_ext
4236
cat >>conftest.$ac_ext <<_ACEOF
4237
/* end confdefs.h.  */
4238
#include 
4239
 
4240
_ACEOF
4241
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242
  $EGREP "memchr" >/dev/null 2>&1; then
4243
  :
4244
else
4245
  ac_cv_header_stdc=no
4246
fi
4247
rm -f conftest*
4248
 
4249
fi
4250
 
4251
if test $ac_cv_header_stdc = yes; then
4252
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4253
  cat >conftest.$ac_ext <<_ACEOF
4254
/* confdefs.h.  */
4255
_ACEOF
4256
cat confdefs.h >>conftest.$ac_ext
4257
cat >>conftest.$ac_ext <<_ACEOF
4258
/* end confdefs.h.  */
4259
#include 
4260
 
4261
_ACEOF
4262
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4263
  $EGREP "free" >/dev/null 2>&1; then
4264
  :
4265
else
4266
  ac_cv_header_stdc=no
4267
fi
4268
rm -f conftest*
4269
 
4270
fi
4271
 
4272
if test $ac_cv_header_stdc = yes; then
4273
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4274
  if test "$cross_compiling" = yes; then
4275
  :
4276
else
4277
  cat >conftest.$ac_ext <<_ACEOF
4278
/* confdefs.h.  */
4279
_ACEOF
4280
cat confdefs.h >>conftest.$ac_ext
4281
cat >>conftest.$ac_ext <<_ACEOF
4282
/* end confdefs.h.  */
4283
#include 
4284
#include 
4285
#if ((' ' & 0x0FF) == 0x020)
4286
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4287
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4288
#else
4289
# define ISLOWER(c) \
4290
                   (('a' <= (c) && (c) <= 'i') \
4291
                     || ('j' <= (c) && (c) <= 'r') \
4292
                     || ('s' <= (c) && (c) <= 'z'))
4293
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4294
#endif
4295
 
4296
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4297
int
4298
main ()
4299
{
4300
  int i;
4301
  for (i = 0; i < 256; i++)
4302
    if (XOR (islower (i), ISLOWER (i))
4303
        || toupper (i) != TOUPPER (i))
4304
      return 2;
4305
  return 0;
4306
}
4307
_ACEOF
4308
rm -f conftest$ac_exeext
4309
if { (ac_try="$ac_link"
4310
case "(($ac_try" in
4311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312
  *) ac_try_echo=$ac_try;;
4313
esac
4314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315
  (eval "$ac_link") 2>&5
4316
  ac_status=$?
4317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4319
  { (case "(($ac_try" in
4320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321
  *) ac_try_echo=$ac_try;;
4322
esac
4323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324
  (eval "$ac_try") 2>&5
4325
  ac_status=$?
4326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327
  (exit $ac_status); }; }; then
4328
  :
4329
else
4330
  echo "$as_me: program exited with status $ac_status" >&5
4331
echo "$as_me: failed program was:" >&5
4332
sed 's/^/| /' conftest.$ac_ext >&5
4333
 
4334
( exit $ac_status )
4335
ac_cv_header_stdc=no
4336
fi
4337
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4338
fi
4339
 
4340
 
4341
fi
4342
fi
4343
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4344
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4345
if test $ac_cv_header_stdc = yes; then
4346
 
4347
cat >>confdefs.h <<\_ACEOF
4348
@%:@define STDC_HEADERS 1
4349
_ACEOF
4350
 
4351
fi
4352
 
4353
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4354
 
4355
 
4356
 
4357
 
4358
 
4359
 
4360
 
4361
 
4362
 
4363
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4364
                  inttypes.h stdint.h unistd.h
4365
do
4366
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4367
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4368
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4369
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4370
  echo $ECHO_N "(cached) $ECHO_C" >&6
4371
else
4372
  cat >conftest.$ac_ext <<_ACEOF
4373
/* confdefs.h.  */
4374
_ACEOF
4375
cat confdefs.h >>conftest.$ac_ext
4376
cat >>conftest.$ac_ext <<_ACEOF
4377
/* end confdefs.h.  */
4378
$ac_includes_default
4379
 
4380
@%:@include <$ac_header>
4381
_ACEOF
4382
rm -f conftest.$ac_objext
4383
if { (ac_try="$ac_compile"
4384
case "(($ac_try" in
4385
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386
  *) ac_try_echo=$ac_try;;
4387
esac
4388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389
  (eval "$ac_compile") 2>conftest.er1
4390
  ac_status=$?
4391
  grep -v '^ *+' conftest.er1 >conftest.err
4392
  rm -f conftest.er1
4393
  cat conftest.err >&5
4394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395
  (exit $ac_status); } && {
4396
         test -z "$ac_c_werror_flag" ||
4397
         test ! -s conftest.err
4398
       } && test -s conftest.$ac_objext; then
4399
  eval "$as_ac_Header=yes"
4400
else
4401
  echo "$as_me: failed program was:" >&5
4402
sed 's/^/| /' conftest.$ac_ext >&5
4403
 
4404
        eval "$as_ac_Header=no"
4405
fi
4406
 
4407
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408
fi
4409
ac_res=`eval echo '${'$as_ac_Header'}'`
4410
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4411
echo "${ECHO_T}$ac_res" >&6; }
4412
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4413
  cat >>confdefs.h <<_ACEOF
4414
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4415
_ACEOF
4416
 
4417
fi
4418
 
4419
done
4420
 
4421
 
4422
 
4423
for ac_header in dlfcn.h
4424
do
4425
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4426
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4427
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4428
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4429
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4430
  echo $ECHO_N "(cached) $ECHO_C" >&6
4431
fi
4432
ac_res=`eval echo '${'$as_ac_Header'}'`
4433
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4434
echo "${ECHO_T}$ac_res" >&6; }
4435
else
4436
  # Is the header compilable?
4437
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4438
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4439
cat >conftest.$ac_ext <<_ACEOF
4440
/* confdefs.h.  */
4441
_ACEOF
4442
cat confdefs.h >>conftest.$ac_ext
4443
cat >>conftest.$ac_ext <<_ACEOF
4444
/* end confdefs.h.  */
4445
$ac_includes_default
4446
@%:@include <$ac_header>
4447
_ACEOF
4448
rm -f conftest.$ac_objext
4449
if { (ac_try="$ac_compile"
4450
case "(($ac_try" in
4451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452
  *) ac_try_echo=$ac_try;;
4453
esac
4454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455
  (eval "$ac_compile") 2>conftest.er1
4456
  ac_status=$?
4457
  grep -v '^ *+' conftest.er1 >conftest.err
4458
  rm -f conftest.er1
4459
  cat conftest.err >&5
4460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461
  (exit $ac_status); } && {
4462
         test -z "$ac_c_werror_flag" ||
4463
         test ! -s conftest.err
4464
       } && test -s conftest.$ac_objext; then
4465
  ac_header_compiler=yes
4466
else
4467
  echo "$as_me: failed program was:" >&5
4468
sed 's/^/| /' conftest.$ac_ext >&5
4469
 
4470
        ac_header_compiler=no
4471
fi
4472
 
4473
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4475
echo "${ECHO_T}$ac_header_compiler" >&6; }
4476
 
4477
# Is the header present?
4478
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4479
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4480
cat >conftest.$ac_ext <<_ACEOF
4481
/* confdefs.h.  */
4482
_ACEOF
4483
cat confdefs.h >>conftest.$ac_ext
4484
cat >>conftest.$ac_ext <<_ACEOF
4485
/* end confdefs.h.  */
4486
@%:@include <$ac_header>
4487
_ACEOF
4488
if { (ac_try="$ac_cpp conftest.$ac_ext"
4489
case "(($ac_try" in
4490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491
  *) ac_try_echo=$ac_try;;
4492
esac
4493
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4495
  ac_status=$?
4496
  grep -v '^ *+' conftest.er1 >conftest.err
4497
  rm -f conftest.er1
4498
  cat conftest.err >&5
4499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500
  (exit $ac_status); } >/dev/null && {
4501
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4502
         test ! -s conftest.err
4503
       }; then
4504
  ac_header_preproc=yes
4505
else
4506
  echo "$as_me: failed program was:" >&5
4507
sed 's/^/| /' conftest.$ac_ext >&5
4508
 
4509
  ac_header_preproc=no
4510
fi
4511
 
4512
rm -f conftest.err conftest.$ac_ext
4513
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4514
echo "${ECHO_T}$ac_header_preproc" >&6; }
4515
 
4516
# So?  What about this header?
4517
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4518
  yes:no: )
4519
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4520
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4521
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4522
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4523
    ac_header_preproc=yes
4524
    ;;
4525
  no:yes:* )
4526
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4527
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4528
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4529
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4530
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4531
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4532
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4533
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4534
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4535
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4536
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4537
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4538
    ( cat <<\_ASBOX
4539
@%:@@%:@ ------------------------------------- @%:@@%:@
4540
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
4541
@%:@@%:@ ------------------------------------- @%:@@%:@
4542
_ASBOX
4543
     ) | sed "s/^/$as_me: WARNING:     /" >&2
4544
    ;;
4545
esac
4546
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4547
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4548
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4549
  echo $ECHO_N "(cached) $ECHO_C" >&6
4550
else
4551
  eval "$as_ac_Header=\$ac_header_preproc"
4552
fi
4553
ac_res=`eval echo '${'$as_ac_Header'}'`
4554
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4555
echo "${ECHO_T}$ac_res" >&6; }
4556
 
4557
fi
4558
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4559
  cat >>confdefs.h <<_ACEOF
4560
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4561
_ACEOF
4562
 
4563
fi
4564
 
4565
done
4566
 
4567
ac_ext=cpp
4568
ac_cpp='$CXXCPP $CPPFLAGS'
4569
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4572
if test -z "$CXX"; then
4573
  if test -n "$CCC"; then
4574
    CXX=$CCC
4575
  else
4576
    if test -n "$ac_tool_prefix"; then
4577
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4578
  do
4579
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4580
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4581
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4582
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4583
if test "${ac_cv_prog_CXX+set}" = set; then
4584
  echo $ECHO_N "(cached) $ECHO_C" >&6
4585
else
4586
  if test -n "$CXX"; then
4587
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4588
else
4589
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590
for as_dir in $PATH
4591
do
4592
  IFS=$as_save_IFS
4593
  test -z "$as_dir" && as_dir=.
4594
  for ac_exec_ext in '' $ac_executable_extensions; do
4595
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4597
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598
    break 2
4599
  fi
4600
done
4601
done
4602
IFS=$as_save_IFS
4603
 
4604
fi
4605
fi
4606
CXX=$ac_cv_prog_CXX
4607
if test -n "$CXX"; then
4608
  { echo "$as_me:$LINENO: result: $CXX" >&5
4609
echo "${ECHO_T}$CXX" >&6; }
4610
else
4611
  { echo "$as_me:$LINENO: result: no" >&5
4612
echo "${ECHO_T}no" >&6; }
4613
fi
4614
 
4615
 
4616
    test -n "$CXX" && break
4617
  done
4618
fi
4619
if test -z "$CXX"; then
4620
  ac_ct_CXX=$CXX
4621
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4622
do
4623
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4624
set dummy $ac_prog; ac_word=$2
4625
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4626
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4628
  echo $ECHO_N "(cached) $ECHO_C" >&6
4629
else
4630
  if test -n "$ac_ct_CXX"; then
4631
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4632
else
4633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634
for as_dir in $PATH
4635
do
4636
  IFS=$as_save_IFS
4637
  test -z "$as_dir" && as_dir=.
4638
  for ac_exec_ext in '' $ac_executable_extensions; do
4639
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4641
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642
    break 2
4643
  fi
4644
done
4645
done
4646
IFS=$as_save_IFS
4647
 
4648
fi
4649
fi
4650
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4651
if test -n "$ac_ct_CXX"; then
4652
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4653
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4654
else
4655
  { echo "$as_me:$LINENO: result: no" >&5
4656
echo "${ECHO_T}no" >&6; }
4657
fi
4658
 
4659
 
4660
  test -n "$ac_ct_CXX" && break
4661
done
4662
 
4663
  if test "x$ac_ct_CXX" = x; then
4664
    CXX="g++"
4665
  else
4666
    case $cross_compiling:$ac_tool_warned in
4667
yes:)
4668
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4669
whose name does not start with the host triplet.  If you think this
4670
configuration is useful to you, please write to autoconf@gnu.org." >&5
4671
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4672
whose name does not start with the host triplet.  If you think this
4673
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4674
ac_tool_warned=yes ;;
4675
esac
4676
    CXX=$ac_ct_CXX
4677
  fi
4678
fi
4679
 
4680
  fi
4681
fi
4682
# Provide some information about the compiler.
4683
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4684
ac_compiler=`set X $ac_compile; echo $2`
4685
{ (ac_try="$ac_compiler --version >&5"
4686
case "(($ac_try" in
4687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688
  *) ac_try_echo=$ac_try;;
4689
esac
4690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691
  (eval "$ac_compiler --version >&5") 2>&5
4692
  ac_status=$?
4693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694
  (exit $ac_status); }
4695
{ (ac_try="$ac_compiler -v >&5"
4696
case "(($ac_try" in
4697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698
  *) ac_try_echo=$ac_try;;
4699
esac
4700
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701
  (eval "$ac_compiler -v >&5") 2>&5
4702
  ac_status=$?
4703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704
  (exit $ac_status); }
4705
{ (ac_try="$ac_compiler -V >&5"
4706
case "(($ac_try" in
4707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708
  *) ac_try_echo=$ac_try;;
4709
esac
4710
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711
  (eval "$ac_compiler -V >&5") 2>&5
4712
  ac_status=$?
4713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714
  (exit $ac_status); }
4715
 
4716
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4717
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4718
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4719
  echo $ECHO_N "(cached) $ECHO_C" >&6
4720
else
4721
  cat >conftest.$ac_ext <<_ACEOF
4722
/* confdefs.h.  */
4723
_ACEOF
4724
cat confdefs.h >>conftest.$ac_ext
4725
cat >>conftest.$ac_ext <<_ACEOF
4726
/* end confdefs.h.  */
4727
 
4728
int
4729
main ()
4730
{
4731
#ifndef __GNUC__
4732
       choke me
4733
#endif
4734
 
4735
  ;
4736
  return 0;
4737
}
4738
_ACEOF
4739
rm -f conftest.$ac_objext
4740
if { (ac_try="$ac_compile"
4741
case "(($ac_try" in
4742
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743
  *) ac_try_echo=$ac_try;;
4744
esac
4745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746
  (eval "$ac_compile") 2>conftest.er1
4747
  ac_status=$?
4748
  grep -v '^ *+' conftest.er1 >conftest.err
4749
  rm -f conftest.er1
4750
  cat conftest.err >&5
4751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752
  (exit $ac_status); } && {
4753
         test -z "$ac_cxx_werror_flag" ||
4754
         test ! -s conftest.err
4755
       } && test -s conftest.$ac_objext; then
4756
  ac_compiler_gnu=yes
4757
else
4758
  echo "$as_me: failed program was:" >&5
4759
sed 's/^/| /' conftest.$ac_ext >&5
4760
 
4761
        ac_compiler_gnu=no
4762
fi
4763
 
4764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4766
 
4767
fi
4768
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4769
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4770
GXX=`test $ac_compiler_gnu = yes && echo yes`
4771
ac_test_CXXFLAGS=${CXXFLAGS+set}
4772
ac_save_CXXFLAGS=$CXXFLAGS
4773
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4774
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4775
if test "${ac_cv_prog_cxx_g+set}" = set; then
4776
  echo $ECHO_N "(cached) $ECHO_C" >&6
4777
else
4778
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4779
   ac_cxx_werror_flag=yes
4780
   ac_cv_prog_cxx_g=no
4781
   CXXFLAGS="-g"
4782
   cat >conftest.$ac_ext <<_ACEOF
4783
/* confdefs.h.  */
4784
_ACEOF
4785
cat confdefs.h >>conftest.$ac_ext
4786
cat >>conftest.$ac_ext <<_ACEOF
4787
/* end confdefs.h.  */
4788
 
4789
int
4790
main ()
4791
{
4792
 
4793
  ;
4794
  return 0;
4795
}
4796
_ACEOF
4797
rm -f conftest.$ac_objext
4798
if { (ac_try="$ac_compile"
4799
case "(($ac_try" in
4800
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801
  *) ac_try_echo=$ac_try;;
4802
esac
4803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804
  (eval "$ac_compile") 2>conftest.er1
4805
  ac_status=$?
4806
  grep -v '^ *+' conftest.er1 >conftest.err
4807
  rm -f conftest.er1
4808
  cat conftest.err >&5
4809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810
  (exit $ac_status); } && {
4811
         test -z "$ac_cxx_werror_flag" ||
4812
         test ! -s conftest.err
4813
       } && test -s conftest.$ac_objext; then
4814
  ac_cv_prog_cxx_g=yes
4815
else
4816
  echo "$as_me: failed program was:" >&5
4817
sed 's/^/| /' conftest.$ac_ext >&5
4818
 
4819
        CXXFLAGS=""
4820
      cat >conftest.$ac_ext <<_ACEOF
4821
/* confdefs.h.  */
4822
_ACEOF
4823
cat confdefs.h >>conftest.$ac_ext
4824
cat >>conftest.$ac_ext <<_ACEOF
4825
/* end confdefs.h.  */
4826
 
4827
int
4828
main ()
4829
{
4830
 
4831
  ;
4832
  return 0;
4833
}
4834
_ACEOF
4835
rm -f conftest.$ac_objext
4836
if { (ac_try="$ac_compile"
4837
case "(($ac_try" in
4838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839
  *) ac_try_echo=$ac_try;;
4840
esac
4841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842
  (eval "$ac_compile") 2>conftest.er1
4843
  ac_status=$?
4844
  grep -v '^ *+' conftest.er1 >conftest.err
4845
  rm -f conftest.er1
4846
  cat conftest.err >&5
4847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848
  (exit $ac_status); } && {
4849
         test -z "$ac_cxx_werror_flag" ||
4850
         test ! -s conftest.err
4851
       } && test -s conftest.$ac_objext; then
4852
  :
4853
else
4854
  echo "$as_me: failed program was:" >&5
4855
sed 's/^/| /' conftest.$ac_ext >&5
4856
 
4857
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4858
         CXXFLAGS="-g"
4859
         cat >conftest.$ac_ext <<_ACEOF
4860
/* confdefs.h.  */
4861
_ACEOF
4862
cat confdefs.h >>conftest.$ac_ext
4863
cat >>conftest.$ac_ext <<_ACEOF
4864
/* end confdefs.h.  */
4865
 
4866
int
4867
main ()
4868
{
4869
 
4870
  ;
4871
  return 0;
4872
}
4873
_ACEOF
4874
rm -f conftest.$ac_objext
4875
if { (ac_try="$ac_compile"
4876
case "(($ac_try" in
4877
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878
  *) ac_try_echo=$ac_try;;
4879
esac
4880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4881
  (eval "$ac_compile") 2>conftest.er1
4882
  ac_status=$?
4883
  grep -v '^ *+' conftest.er1 >conftest.err
4884
  rm -f conftest.er1
4885
  cat conftest.err >&5
4886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887
  (exit $ac_status); } && {
4888
         test -z "$ac_cxx_werror_flag" ||
4889
         test ! -s conftest.err
4890
       } && test -s conftest.$ac_objext; then
4891
  ac_cv_prog_cxx_g=yes
4892
else
4893
  echo "$as_me: failed program was:" >&5
4894
sed 's/^/| /' conftest.$ac_ext >&5
4895
 
4896
 
4897
fi
4898
 
4899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900
fi
4901
 
4902
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903
fi
4904
 
4905
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4907
fi
4908
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4909
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4910
if test "$ac_test_CXXFLAGS" = set; then
4911
  CXXFLAGS=$ac_save_CXXFLAGS
4912
elif test $ac_cv_prog_cxx_g = yes; then
4913
  if test "$GXX" = yes; then
4914
    CXXFLAGS="-g -O2"
4915
  else
4916
    CXXFLAGS="-g"
4917
  fi
4918
else
4919
  if test "$GXX" = yes; then
4920
    CXXFLAGS="-O2"
4921
  else
4922
    CXXFLAGS=
4923
  fi
4924
fi
4925
ac_ext=cpp
4926
ac_cpp='$CXXCPP $CPPFLAGS'
4927
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4930
 
4931
 
4932
 
4933
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4934
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4935
    (test "X$CXX" != "Xg++"))) ; then
4936
  ac_ext=cpp
4937
ac_cpp='$CXXCPP $CPPFLAGS'
4938
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4941
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4942
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4943
if test -z "$CXXCPP"; then
4944
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4945
  echo $ECHO_N "(cached) $ECHO_C" >&6
4946
else
4947
      # Double quotes because CXXCPP needs to be expanded
4948
    for CXXCPP in "$CXX -E" "/lib/cpp"
4949
    do
4950
      ac_preproc_ok=false
4951
for ac_cxx_preproc_warn_flag in '' yes
4952
do
4953
  # Use a header file that comes with gcc, so configuring glibc
4954
  # with a fresh cross-compiler works.
4955
  # Prefer  to  if __STDC__ is defined, since
4956
  #  exists even on freestanding compilers.
4957
  # On the NeXT, cc -E runs the code through the compiler's parser,
4958
  # not just through cpp. "Syntax error" is here to catch this case.
4959
  cat >conftest.$ac_ext <<_ACEOF
4960
/* confdefs.h.  */
4961
_ACEOF
4962
cat confdefs.h >>conftest.$ac_ext
4963
cat >>conftest.$ac_ext <<_ACEOF
4964
/* end confdefs.h.  */
4965
@%:@ifdef __STDC__
4966
@%:@ include 
4967
@%:@else
4968
@%:@ include 
4969
@%:@endif
4970
                     Syntax error
4971
_ACEOF
4972
if { (ac_try="$ac_cpp conftest.$ac_ext"
4973
case "(($ac_try" in
4974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975
  *) ac_try_echo=$ac_try;;
4976
esac
4977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4979
  ac_status=$?
4980
  grep -v '^ *+' conftest.er1 >conftest.err
4981
  rm -f conftest.er1
4982
  cat conftest.err >&5
4983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984
  (exit $ac_status); } >/dev/null && {
4985
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4986
         test ! -s conftest.err
4987
       }; then
4988
  :
4989
else
4990
  echo "$as_me: failed program was:" >&5
4991
sed 's/^/| /' conftest.$ac_ext >&5
4992
 
4993
  # Broken: fails on valid input.
4994
continue
4995
fi
4996
 
4997
rm -f conftest.err conftest.$ac_ext
4998
 
4999
  # OK, works on sane cases.  Now check whether nonexistent headers
5000
  # can be detected and how.
5001
  cat >conftest.$ac_ext <<_ACEOF
5002
/* confdefs.h.  */
5003
_ACEOF
5004
cat confdefs.h >>conftest.$ac_ext
5005
cat >>conftest.$ac_ext <<_ACEOF
5006
/* end confdefs.h.  */
5007
@%:@include 
5008
_ACEOF
5009
if { (ac_try="$ac_cpp conftest.$ac_ext"
5010
case "(($ac_try" in
5011
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012
  *) ac_try_echo=$ac_try;;
5013
esac
5014
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5016
  ac_status=$?
5017
  grep -v '^ *+' conftest.er1 >conftest.err
5018
  rm -f conftest.er1
5019
  cat conftest.err >&5
5020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021
  (exit $ac_status); } >/dev/null && {
5022
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5023
         test ! -s conftest.err
5024
       }; then
5025
  # Broken: success on invalid input.
5026
continue
5027
else
5028
  echo "$as_me: failed program was:" >&5
5029
sed 's/^/| /' conftest.$ac_ext >&5
5030
 
5031
  # Passes both tests.
5032
ac_preproc_ok=:
5033
break
5034
fi
5035
 
5036
rm -f conftest.err conftest.$ac_ext
5037
 
5038
done
5039
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5040
rm -f conftest.err conftest.$ac_ext
5041
if $ac_preproc_ok; then
5042
  break
5043
fi
5044
 
5045
    done
5046
    ac_cv_prog_CXXCPP=$CXXCPP
5047
 
5048
fi
5049
  CXXCPP=$ac_cv_prog_CXXCPP
5050
else
5051
  ac_cv_prog_CXXCPP=$CXXCPP
5052
fi
5053
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5054
echo "${ECHO_T}$CXXCPP" >&6; }
5055
ac_preproc_ok=false
5056
for ac_cxx_preproc_warn_flag in '' yes
5057
do
5058
  # Use a header file that comes with gcc, so configuring glibc
5059
  # with a fresh cross-compiler works.
5060
  # Prefer  to  if __STDC__ is defined, since
5061
  #  exists even on freestanding compilers.
5062
  # On the NeXT, cc -E runs the code through the compiler's parser,
5063
  # not just through cpp. "Syntax error" is here to catch this case.
5064
  cat >conftest.$ac_ext <<_ACEOF
5065
/* confdefs.h.  */
5066
_ACEOF
5067
cat confdefs.h >>conftest.$ac_ext
5068
cat >>conftest.$ac_ext <<_ACEOF
5069
/* end confdefs.h.  */
5070
@%:@ifdef __STDC__
5071
@%:@ include 
5072
@%:@else
5073
@%:@ include 
5074
@%:@endif
5075
                     Syntax error
5076
_ACEOF
5077
if { (ac_try="$ac_cpp conftest.$ac_ext"
5078
case "(($ac_try" in
5079
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080
  *) ac_try_echo=$ac_try;;
5081
esac
5082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084
  ac_status=$?
5085
  grep -v '^ *+' conftest.er1 >conftest.err
5086
  rm -f conftest.er1
5087
  cat conftest.err >&5
5088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089
  (exit $ac_status); } >/dev/null && {
5090
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5091
         test ! -s conftest.err
5092
       }; then
5093
  :
5094
else
5095
  echo "$as_me: failed program was:" >&5
5096
sed 's/^/| /' conftest.$ac_ext >&5
5097
 
5098
  # Broken: fails on valid input.
5099
continue
5100
fi
5101
 
5102
rm -f conftest.err conftest.$ac_ext
5103
 
5104
  # OK, works on sane cases.  Now check whether nonexistent headers
5105
  # can be detected and how.
5106
  cat >conftest.$ac_ext <<_ACEOF
5107
/* confdefs.h.  */
5108
_ACEOF
5109
cat confdefs.h >>conftest.$ac_ext
5110
cat >>conftest.$ac_ext <<_ACEOF
5111
/* end confdefs.h.  */
5112
@%:@include 
5113
_ACEOF
5114
if { (ac_try="$ac_cpp conftest.$ac_ext"
5115
case "(($ac_try" in
5116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117
  *) ac_try_echo=$ac_try;;
5118
esac
5119
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5120
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5121
  ac_status=$?
5122
  grep -v '^ *+' conftest.er1 >conftest.err
5123
  rm -f conftest.er1
5124
  cat conftest.err >&5
5125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126
  (exit $ac_status); } >/dev/null && {
5127
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5128
         test ! -s conftest.err
5129
       }; then
5130
  # Broken: success on invalid input.
5131
continue
5132
else
5133
  echo "$as_me: failed program was:" >&5
5134
sed 's/^/| /' conftest.$ac_ext >&5
5135
 
5136
  # Passes both tests.
5137
ac_preproc_ok=:
5138
break
5139
fi
5140
 
5141
rm -f conftest.err conftest.$ac_ext
5142
 
5143
done
5144
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5145
rm -f conftest.err conftest.$ac_ext
5146
if $ac_preproc_ok; then
5147
  :
5148
else
5149
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5150
See \`config.log' for more details." >&5
5151
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5152
See \`config.log' for more details." >&2;}
5153
   { (exit 1); exit 1; }; }
5154
fi
5155
 
5156
ac_ext=cpp
5157
ac_cpp='$CXXCPP $CPPFLAGS'
5158
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5161
 
5162
fi
5163
 
5164
 
5165
ac_ext=f
5166
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5167
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5169
if test -n "$ac_tool_prefix"; then
5170
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5171
  do
5172
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5173
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5174
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5175
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5176
if test "${ac_cv_prog_F77+set}" = set; then
5177
  echo $ECHO_N "(cached) $ECHO_C" >&6
5178
else
5179
  if test -n "$F77"; then
5180
  ac_cv_prog_F77="$F77" # Let the user override the test.
5181
else
5182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183
for as_dir in $PATH
5184
do
5185
  IFS=$as_save_IFS
5186
  test -z "$as_dir" && as_dir=.
5187
  for ac_exec_ext in '' $ac_executable_extensions; do
5188
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5190
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191
    break 2
5192
  fi
5193
done
5194
done
5195
IFS=$as_save_IFS
5196
 
5197
fi
5198
fi
5199
F77=$ac_cv_prog_F77
5200
if test -n "$F77"; then
5201
  { echo "$as_me:$LINENO: result: $F77" >&5
5202
echo "${ECHO_T}$F77" >&6; }
5203
else
5204
  { echo "$as_me:$LINENO: result: no" >&5
5205
echo "${ECHO_T}no" >&6; }
5206
fi
5207
 
5208
 
5209
    test -n "$F77" && break
5210
  done
5211
fi
5212
if test -z "$F77"; then
5213
  ac_ct_F77=$F77
5214
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5215
do
5216
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5217
set dummy $ac_prog; ac_word=$2
5218
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5219
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5220
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5221
  echo $ECHO_N "(cached) $ECHO_C" >&6
5222
else
5223
  if test -n "$ac_ct_F77"; then
5224
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5225
else
5226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227
for as_dir in $PATH
5228
do
5229
  IFS=$as_save_IFS
5230
  test -z "$as_dir" && as_dir=.
5231
  for ac_exec_ext in '' $ac_executable_extensions; do
5232
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233
    ac_cv_prog_ac_ct_F77="$ac_prog"
5234
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235
    break 2
5236
  fi
5237
done
5238
done
5239
IFS=$as_save_IFS
5240
 
5241
fi
5242
fi
5243
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5244
if test -n "$ac_ct_F77"; then
5245
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5246
echo "${ECHO_T}$ac_ct_F77" >&6; }
5247
else
5248
  { echo "$as_me:$LINENO: result: no" >&5
5249
echo "${ECHO_T}no" >&6; }
5250
fi
5251
 
5252
 
5253
  test -n "$ac_ct_F77" && break
5254
done
5255
 
5256
  if test "x$ac_ct_F77" = x; then
5257
    F77=""
5258
  else
5259
    case $cross_compiling:$ac_tool_warned in
5260
yes:)
5261
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5262
whose name does not start with the host triplet.  If you think this
5263
configuration is useful to you, please write to autoconf@gnu.org." >&5
5264
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5265
whose name does not start with the host triplet.  If you think this
5266
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5267
ac_tool_warned=yes ;;
5268
esac
5269
    F77=$ac_ct_F77
5270
  fi
5271
fi
5272
 
5273
 
5274
# Provide some information about the compiler.
5275
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5276
ac_compiler=`set X $ac_compile; echo $2`
5277
{ (ac_try="$ac_compiler --version >&5"
5278
case "(($ac_try" in
5279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280
  *) ac_try_echo=$ac_try;;
5281
esac
5282
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283
  (eval "$ac_compiler --version >&5") 2>&5
5284
  ac_status=$?
5285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286
  (exit $ac_status); }
5287
{ (ac_try="$ac_compiler -v >&5"
5288
case "(($ac_try" in
5289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290
  *) ac_try_echo=$ac_try;;
5291
esac
5292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293
  (eval "$ac_compiler -v >&5") 2>&5
5294
  ac_status=$?
5295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296
  (exit $ac_status); }
5297
{ (ac_try="$ac_compiler -V >&5"
5298
case "(($ac_try" in
5299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300
  *) ac_try_echo=$ac_try;;
5301
esac
5302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303
  (eval "$ac_compiler -V >&5") 2>&5
5304
  ac_status=$?
5305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306
  (exit $ac_status); }
5307
rm -f a.out
5308
 
5309
# If we don't use `.F' as extension, the preprocessor is not run on the
5310
# input file.  (Note that this only needs to work for GNU compilers.)
5311
ac_save_ext=$ac_ext
5312
ac_ext=F
5313
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5314
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5315
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5316
  echo $ECHO_N "(cached) $ECHO_C" >&6
5317
else
5318
  cat >conftest.$ac_ext <<_ACEOF
5319
      program main
5320
#ifndef __GNUC__
5321
       choke me
5322
#endif
5323
 
5324
      end
5325
_ACEOF
5326
rm -f conftest.$ac_objext
5327
if { (ac_try="$ac_compile"
5328
case "(($ac_try" in
5329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330
  *) ac_try_echo=$ac_try;;
5331
esac
5332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333
  (eval "$ac_compile") 2>conftest.er1
5334
  ac_status=$?
5335
  grep -v '^ *+' conftest.er1 >conftest.err
5336
  rm -f conftest.er1
5337
  cat conftest.err >&5
5338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339
  (exit $ac_status); } && {
5340
         test -z "$ac_f77_werror_flag" ||
5341
         test ! -s conftest.err
5342
       } && test -s conftest.$ac_objext; then
5343
  ac_compiler_gnu=yes
5344
else
5345
  echo "$as_me: failed program was:" >&5
5346
sed 's/^/| /' conftest.$ac_ext >&5
5347
 
5348
        ac_compiler_gnu=no
5349
fi
5350
 
5351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5353
 
5354
fi
5355
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5356
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5357
ac_ext=$ac_save_ext
5358
ac_test_FFLAGS=${FFLAGS+set}
5359
ac_save_FFLAGS=$FFLAGS
5360
FFLAGS=
5361
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5362
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5363
if test "${ac_cv_prog_f77_g+set}" = set; then
5364
  echo $ECHO_N "(cached) $ECHO_C" >&6
5365
else
5366
  FFLAGS=-g
5367
cat >conftest.$ac_ext <<_ACEOF
5368
      program main
5369
 
5370
      end
5371
_ACEOF
5372
rm -f conftest.$ac_objext
5373
if { (ac_try="$ac_compile"
5374
case "(($ac_try" in
5375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376
  *) ac_try_echo=$ac_try;;
5377
esac
5378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379
  (eval "$ac_compile") 2>conftest.er1
5380
  ac_status=$?
5381
  grep -v '^ *+' conftest.er1 >conftest.err
5382
  rm -f conftest.er1
5383
  cat conftest.err >&5
5384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385
  (exit $ac_status); } && {
5386
         test -z "$ac_f77_werror_flag" ||
5387
         test ! -s conftest.err
5388
       } && test -s conftest.$ac_objext; then
5389
  ac_cv_prog_f77_g=yes
5390
else
5391
  echo "$as_me: failed program was:" >&5
5392
sed 's/^/| /' conftest.$ac_ext >&5
5393
 
5394
        ac_cv_prog_f77_g=no
5395
fi
5396
 
5397
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398
 
5399
fi
5400
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5401
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5402
if test "$ac_test_FFLAGS" = set; then
5403
  FFLAGS=$ac_save_FFLAGS
5404
elif test $ac_cv_prog_f77_g = yes; then
5405
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5406
    FFLAGS="-g -O2"
5407
  else
5408
    FFLAGS="-g"
5409
  fi
5410
else
5411
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5412
    FFLAGS="-O2"
5413
  else
5414
    FFLAGS=
5415
  fi
5416
fi
5417
 
5418
G77=`test $ac_compiler_gnu = yes && echo yes`
5419
ac_ext=c
5420
ac_cpp='$CPP $CPPFLAGS'
5421
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424
 
5425
 
5426
 
5427
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5428
 
5429
# find the maximum length of command line arguments
5430
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5431
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5432
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5433
  echo $ECHO_N "(cached) $ECHO_C" >&6
5434
else
5435
    i=0
5436
  teststring="ABCD"
5437
 
5438
  case $build_os in
5439
  msdosdjgpp*)
5440
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5441
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5442
    # during glob expansion).  Even if it were fixed, the result of this
5443
    # check would be larger than it should be.
5444
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5445
    ;;
5446
 
5447
  gnu*)
5448
    # Under GNU Hurd, this test is not required because there is
5449
    # no limit to the length of command line arguments.
5450
    # Libtool will interpret -1 as no limit whatsoever
5451
    lt_cv_sys_max_cmd_len=-1;
5452
    ;;
5453
 
5454
  cygwin* | mingw*)
5455
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5456
    # about 5 minutes as the teststring grows exponentially.
5457
    # Worse, since 9x/ME are not pre-emptively multitasking,
5458
    # you end up with a "frozen" computer, even though with patience
5459
    # the test eventually succeeds (with a max line length of 256k).
5460
    # Instead, let's just punt: use the minimum linelength reported by
5461
    # all of the supported platforms: 8192 (on NT/2K/XP).
5462
    lt_cv_sys_max_cmd_len=8192;
5463
    ;;
5464
 
5465
  amigaos*)
5466
    # On AmigaOS with pdksh, this test takes hours, literally.
5467
    # So we just punt and use a minimum line length of 8192.
5468
    lt_cv_sys_max_cmd_len=8192;
5469
    ;;
5470
 
5471
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5472
    # This has been around since 386BSD, at least.  Likely further.
5473
    if test -x /sbin/sysctl; then
5474
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5475
    elif test -x /usr/sbin/sysctl; then
5476
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5477
    else
5478
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5479
    fi
5480
    # And add a safety zone
5481
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5482
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5483
    ;;
5484
 
5485
  interix*)
5486
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5487
    lt_cv_sys_max_cmd_len=196608
5488
    ;;
5489
 
5490
  osf*)
5491
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5492
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5493
    # nice to cause kernel panics so lets avoid the loop below.
5494
    # First set a reasonable default.
5495
    lt_cv_sys_max_cmd_len=16384
5496
    #
5497
    if test -x /sbin/sysconfig; then
5498
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5499
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5500
      esac
5501
    fi
5502
    ;;
5503
  sco3.2v5*)
5504
    lt_cv_sys_max_cmd_len=102400
5505
    ;;
5506
  sysv5* | sco5v6* | sysv4.2uw2*)
5507
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5508
    if test -n "$kargmax"; then
5509
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5510
    else
5511
      lt_cv_sys_max_cmd_len=32768
5512
    fi
5513
    ;;
5514
  *)
5515
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5516
    if test -n "$lt_cv_sys_max_cmd_len"; then
5517
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5518
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5519
    else
5520
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5521
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5522
               = "XX$teststring") >/dev/null 2>&1 &&
5523
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
5524
              lt_cv_sys_max_cmd_len=$new_result &&
5525
              test $i != 17 # 1/2 MB should be enough
5526
      do
5527
        i=`expr $i + 1`
5528
        teststring=$teststring$teststring
5529
      done
5530
      teststring=
5531
      # Add a significant safety factor because C++ compilers can tack on massive
5532
      # amounts of additional arguments before passing them to the linker.
5533
      # It appears as though 1/2 is a usable value.
5534
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5535
    fi
5536
    ;;
5537
  esac
5538
 
5539
fi
5540
 
5541
if test -n $lt_cv_sys_max_cmd_len ; then
5542
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5543
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5544
else
5545
  { echo "$as_me:$LINENO: result: none" >&5
5546
echo "${ECHO_T}none" >&6; }
5547
fi
5548
 
5549
 
5550
 
5551
 
5552
 
5553
# Check for command to grab the raw symbol name followed by C symbol from nm.
5554
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5555
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5556
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5557
  echo $ECHO_N "(cached) $ECHO_C" >&6
5558
else
5559
 
5560
# These are sane defaults that work on at least a few old systems.
5561
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5562
 
5563
# Character class describing NM global symbol codes.
5564
symcode='[BCDEGRST]'
5565
 
5566
# Regexp to match symbols that can be accessed directly from C.
5567
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5568
 
5569
# Transform an extracted symbol line into a proper C declaration
5570
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5571
 
5572
# Transform an extracted symbol line into symbol name and symbol address
5573
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5574
 
5575
# Define system-specific variables.
5576
case $host_os in
5577
aix*)
5578
  symcode='[BCDT]'
5579
  ;;
5580
cygwin* | mingw* | pw32*)
5581
  symcode='[ABCDGISTW]'
5582
  ;;
5583
hpux*) # Its linker distinguishes data from code symbols
5584
  if test "$host_cpu" = ia64; then
5585
    symcode='[ABCDEGRST]'
5586
  fi
5587
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5588
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5589
  ;;
5590
linux* | k*bsd*-gnu)
5591
  if test "$host_cpu" = ia64; then
5592
    symcode='[ABCDGIRSTW]'
5593
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5594
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5595
  fi
5596
  ;;
5597
irix* | nonstopux*)
5598
  symcode='[BCDEGRST]'
5599
  ;;
5600
osf*)
5601
  symcode='[BCDEGQRST]'
5602
  ;;
5603
solaris*)
5604
  symcode='[BDRT]'
5605
  ;;
5606
sco3.2v5*)
5607
  symcode='[DT]'
5608
  ;;
5609
sysv4.2uw2*)
5610
  symcode='[DT]'
5611
  ;;
5612
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5613
  symcode='[ABDT]'
5614
  ;;
5615
sysv4)
5616
  symcode='[DFNSTU]'
5617
  ;;
5618
esac
5619
 
5620
# Handle CRLF in mingw tool chain
5621
opt_cr=
5622
case $build_os in
5623
mingw*)
5624
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5625
  ;;
5626
esac
5627
 
5628
# If we're using GNU nm, then use its standard symbol codes.
5629
case `$NM -V 2>&1` in
5630
*GNU* | *'with BFD'*)
5631
  symcode='[ABCDGIRSTW]' ;;
5632
esac
5633
 
5634
# Try without a prefix undercore, then with it.
5635
for ac_symprfx in "" "_"; do
5636
 
5637
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5638
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5639
 
5640
  # Write the raw and C identifiers.
5641
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5642
 
5643
  # Check to see that the pipe works correctly.
5644
  pipe_works=no
5645
 
5646
  rm -f conftest*
5647
  cat > conftest.$ac_ext <
5648
#ifdef __cplusplus
5649
extern "C" {
5650
#endif
5651
char nm_test_var;
5652
void nm_test_func(){}
5653
#ifdef __cplusplus
5654
}
5655
#endif
5656
int main(){nm_test_var='a';nm_test_func();return(0);}
5657
EOF
5658
 
5659
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660
  (eval $ac_compile) 2>&5
5661
  ac_status=$?
5662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663
  (exit $ac_status); }; then
5664
    # Now try to grab the symbols.
5665
    nlist=conftest.nm
5666
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5667
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5668
  ac_status=$?
5669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670
  (exit $ac_status); } && test -s "$nlist"; then
5671
      # Try sorting and uniquifying the output.
5672
      if sort "$nlist" | uniq > "$nlist"T; then
5673
        mv -f "$nlist"T "$nlist"
5674
      else
5675
        rm -f "$nlist"T
5676
      fi
5677
 
5678
      # Make sure that we snagged all the symbols we need.
5679
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5680
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5681
          cat < conftest.$ac_ext
5682
#ifdef __cplusplus
5683
extern "C" {
5684
#endif
5685
 
5686
EOF
5687
          # Now generate the symbol file.
5688
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5689
 
5690
          cat <> conftest.$ac_ext
5691
#if defined (__STDC__) && __STDC__
5692
# define lt_ptr_t void *
5693
#else
5694
# define lt_ptr_t char *
5695
# define const
5696
#endif
5697
 
5698
/* The mapping between symbol names and symbols. */
5699
const struct {
5700
  const char *name;
5701
  lt_ptr_t address;
5702
}
5703
lt_preloaded_symbols[] =
5704
{
5705
EOF
5706
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5707
          cat <<\EOF >> conftest.$ac_ext
5708
  {0, (lt_ptr_t) 0}
5709
};
5710
 
5711
#ifdef __cplusplus
5712
}
5713
#endif
5714
EOF
5715
          # Now try linking the two files.
5716
          mv conftest.$ac_objext conftstm.$ac_objext
5717
          lt_save_LIBS="$LIBS"
5718
          lt_save_CFLAGS="$CFLAGS"
5719
          LIBS="conftstm.$ac_objext"
5720
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5721
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722
  (eval $ac_link) 2>&5
5723
  ac_status=$?
5724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5726
            pipe_works=yes
5727
          fi
5728
          LIBS="$lt_save_LIBS"
5729
          CFLAGS="$lt_save_CFLAGS"
5730
        else
5731
          echo "cannot find nm_test_func in $nlist" >&5
5732
        fi
5733
      else
5734
        echo "cannot find nm_test_var in $nlist" >&5
5735
      fi
5736
    else
5737
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5738
    fi
5739
  else
5740
    echo "$progname: failed program was:" >&5
5741
    cat conftest.$ac_ext >&5
5742
  fi
5743
  rm -f conftest* conftst*
5744
 
5745
  # Do not use the global_symbol_pipe unless it works.
5746
  if test "$pipe_works" = yes; then
5747
    break
5748
  else
5749
    lt_cv_sys_global_symbol_pipe=
5750
  fi
5751
done
5752
 
5753
fi
5754
 
5755
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5756
  lt_cv_sys_global_symbol_to_cdecl=
5757
fi
5758
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5759
  { echo "$as_me:$LINENO: result: failed" >&5
5760
echo "${ECHO_T}failed" >&6; }
5761
else
5762
  { echo "$as_me:$LINENO: result: ok" >&5
5763
echo "${ECHO_T}ok" >&6; }
5764
fi
5765
 
5766
{ echo "$as_me:$LINENO: checking for objdir" >&5
5767
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5768
if test "${lt_cv_objdir+set}" = set; then
5769
  echo $ECHO_N "(cached) $ECHO_C" >&6
5770
else
5771
  rm -f .libs 2>/dev/null
5772
mkdir .libs 2>/dev/null
5773
if test -d .libs; then
5774
  lt_cv_objdir=.libs
5775
else
5776
  # MS-DOS does not allow filenames that begin with a dot.
5777
  lt_cv_objdir=_libs
5778
fi
5779
rmdir .libs 2>/dev/null
5780
fi
5781
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5782
echo "${ECHO_T}$lt_cv_objdir" >&6; }
5783
objdir=$lt_cv_objdir
5784
 
5785
 
5786
 
5787
 
5788
 
5789
case $host_os in
5790
aix3*)
5791
  # AIX sometimes has problems with the GCC collect2 program.  For some
5792
  # reason, if we set the COLLECT_NAMES environment variable, the problems
5793
  # vanish in a puff of smoke.
5794
  if test "X${COLLECT_NAMES+set}" != Xset; then
5795
    COLLECT_NAMES=
5796
    export COLLECT_NAMES
5797
  fi
5798
  ;;
5799
esac
5800
 
5801
# Sed substitution that helps us do robust quoting.  It backslashifies
5802
# metacharacters that are still active within double-quoted strings.
5803
Xsed='sed -e 1s/^X//'
5804
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5805
 
5806
# Same as above, but do not quote variable references.
5807
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5808
 
5809
# Sed substitution to delay expansion of an escaped shell variable in a
5810
# double_quote_subst'ed string.
5811
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5812
 
5813
# Sed substitution to avoid accidental globbing in evaled expressions
5814
no_glob_subst='s/\*/\\\*/g'
5815
 
5816
# Constants:
5817
rm="rm -f"
5818
 
5819
# Global variables:
5820
default_ofile=libtool
5821
can_build_shared=yes
5822
 
5823
# All known linkers require a `.a' archive for static linking (except MSVC,
5824
# which needs '.lib').
5825
libext=a
5826
ltmain="$ac_aux_dir/ltmain.sh"
5827
ofile="$default_ofile"
5828
with_gnu_ld="$lt_cv_prog_gnu_ld"
5829
 
5830
if test -n "$ac_tool_prefix"; then
5831
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5832
set dummy ${ac_tool_prefix}ar; ac_word=$2
5833
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5834
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5835
if test "${ac_cv_prog_AR+set}" = set; then
5836
  echo $ECHO_N "(cached) $ECHO_C" >&6
5837
else
5838
  if test -n "$AR"; then
5839
  ac_cv_prog_AR="$AR" # Let the user override the test.
5840
else
5841
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842
for as_dir in $PATH
5843
do
5844
  IFS=$as_save_IFS
5845
  test -z "$as_dir" && as_dir=.
5846
  for ac_exec_ext in '' $ac_executable_extensions; do
5847
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5848
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5849
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850
    break 2
5851
  fi
5852
done
5853
done
5854
IFS=$as_save_IFS
5855
 
5856
fi
5857
fi
5858
AR=$ac_cv_prog_AR
5859
if test -n "$AR"; then
5860
  { echo "$as_me:$LINENO: result: $AR" >&5
5861
echo "${ECHO_T}$AR" >&6; }
5862
else
5863
  { echo "$as_me:$LINENO: result: no" >&5
5864
echo "${ECHO_T}no" >&6; }
5865
fi
5866
 
5867
 
5868
fi
5869
if test -z "$ac_cv_prog_AR"; then
5870
  ac_ct_AR=$AR
5871
  # Extract the first word of "ar", so it can be a program name with args.
5872
set dummy ar; ac_word=$2
5873
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5876
  echo $ECHO_N "(cached) $ECHO_C" >&6
5877
else
5878
  if test -n "$ac_ct_AR"; then
5879
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5880
else
5881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882
for as_dir in $PATH
5883
do
5884
  IFS=$as_save_IFS
5885
  test -z "$as_dir" && as_dir=.
5886
  for ac_exec_ext in '' $ac_executable_extensions; do
5887
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888
    ac_cv_prog_ac_ct_AR="ar"
5889
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890
    break 2
5891
  fi
5892
done
5893
done
5894
IFS=$as_save_IFS
5895
 
5896
fi
5897
fi
5898
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5899
if test -n "$ac_ct_AR"; then
5900
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5901
echo "${ECHO_T}$ac_ct_AR" >&6; }
5902
else
5903
  { echo "$as_me:$LINENO: result: no" >&5
5904
echo "${ECHO_T}no" >&6; }
5905
fi
5906
 
5907
  if test "x$ac_ct_AR" = x; then
5908
    AR="false"
5909
  else
5910
    case $cross_compiling:$ac_tool_warned in
5911
yes:)
5912
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5913
whose name does not start with the host triplet.  If you think this
5914
configuration is useful to you, please write to autoconf@gnu.org." >&5
5915
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5916
whose name does not start with the host triplet.  If you think this
5917
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5918
ac_tool_warned=yes ;;
5919
esac
5920
    AR=$ac_ct_AR
5921
  fi
5922
else
5923
  AR="$ac_cv_prog_AR"
5924
fi
5925
 
5926
if test -n "$ac_tool_prefix"; then
5927
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5928
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5929
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5930
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5931
if test "${ac_cv_prog_RANLIB+set}" = set; then
5932
  echo $ECHO_N "(cached) $ECHO_C" >&6
5933
else
5934
  if test -n "$RANLIB"; then
5935
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5936
else
5937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938
for as_dir in $PATH
5939
do
5940
  IFS=$as_save_IFS
5941
  test -z "$as_dir" && as_dir=.
5942
  for ac_exec_ext in '' $ac_executable_extensions; do
5943
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5945
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946
    break 2
5947
  fi
5948
done
5949
done
5950
IFS=$as_save_IFS
5951
 
5952
fi
5953
fi
5954
RANLIB=$ac_cv_prog_RANLIB
5955
if test -n "$RANLIB"; then
5956
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
5957
echo "${ECHO_T}$RANLIB" >&6; }
5958
else
5959
  { echo "$as_me:$LINENO: result: no" >&5
5960
echo "${ECHO_T}no" >&6; }
5961
fi
5962
 
5963
 
5964
fi
5965
if test -z "$ac_cv_prog_RANLIB"; then
5966
  ac_ct_RANLIB=$RANLIB
5967
  # Extract the first word of "ranlib", so it can be a program name with args.
5968
set dummy ranlib; ac_word=$2
5969
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5970
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5971
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5972
  echo $ECHO_N "(cached) $ECHO_C" >&6
5973
else
5974
  if test -n "$ac_ct_RANLIB"; then
5975
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5976
else
5977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978
for as_dir in $PATH
5979
do
5980
  IFS=$as_save_IFS
5981
  test -z "$as_dir" && as_dir=.
5982
  for ac_exec_ext in '' $ac_executable_extensions; do
5983
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5985
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986
    break 2
5987
  fi
5988
done
5989
done
5990
IFS=$as_save_IFS
5991
 
5992
fi
5993
fi
5994
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5995
if test -n "$ac_ct_RANLIB"; then
5996
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5997
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5998
else
5999
  { echo "$as_me:$LINENO: result: no" >&5
6000
echo "${ECHO_T}no" >&6; }
6001
fi
6002
 
6003
  if test "x$ac_ct_RANLIB" = x; then
6004
    RANLIB=":"
6005
  else
6006
    case $cross_compiling:$ac_tool_warned in
6007
yes:)
6008
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6009
whose name does not start with the host triplet.  If you think this
6010
configuration is useful to you, please write to autoconf@gnu.org." >&5
6011
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6012
whose name does not start with the host triplet.  If you think this
6013
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6014
ac_tool_warned=yes ;;
6015
esac
6016
    RANLIB=$ac_ct_RANLIB
6017
  fi
6018
else
6019
  RANLIB="$ac_cv_prog_RANLIB"
6020
fi
6021
 
6022
if test -n "$ac_tool_prefix"; then
6023
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6024
set dummy ${ac_tool_prefix}strip; ac_word=$2
6025
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6026
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027
if test "${ac_cv_prog_STRIP+set}" = set; then
6028
  echo $ECHO_N "(cached) $ECHO_C" >&6
6029
else
6030
  if test -n "$STRIP"; then
6031
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6032
else
6033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034
for as_dir in $PATH
6035
do
6036
  IFS=$as_save_IFS
6037
  test -z "$as_dir" && as_dir=.
6038
  for ac_exec_ext in '' $ac_executable_extensions; do
6039
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6041
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042
    break 2
6043
  fi
6044
done
6045
done
6046
IFS=$as_save_IFS
6047
 
6048
fi
6049
fi
6050
STRIP=$ac_cv_prog_STRIP
6051
if test -n "$STRIP"; then
6052
  { echo "$as_me:$LINENO: result: $STRIP" >&5
6053
echo "${ECHO_T}$STRIP" >&6; }
6054
else
6055
  { echo "$as_me:$LINENO: result: no" >&5
6056
echo "${ECHO_T}no" >&6; }
6057
fi
6058
 
6059
 
6060
fi
6061
if test -z "$ac_cv_prog_STRIP"; then
6062
  ac_ct_STRIP=$STRIP
6063
  # Extract the first word of "strip", so it can be a program name with args.
6064
set dummy strip; ac_word=$2
6065
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6066
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6067
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6068
  echo $ECHO_N "(cached) $ECHO_C" >&6
6069
else
6070
  if test -n "$ac_ct_STRIP"; then
6071
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6072
else
6073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074
for as_dir in $PATH
6075
do
6076
  IFS=$as_save_IFS
6077
  test -z "$as_dir" && as_dir=.
6078
  for ac_exec_ext in '' $ac_executable_extensions; do
6079
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080
    ac_cv_prog_ac_ct_STRIP="strip"
6081
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6082
    break 2
6083
  fi
6084
done
6085
done
6086
IFS=$as_save_IFS
6087
 
6088
fi
6089
fi
6090
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6091
if test -n "$ac_ct_STRIP"; then
6092
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6093
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6094
else
6095
  { echo "$as_me:$LINENO: result: no" >&5
6096
echo "${ECHO_T}no" >&6; }
6097
fi
6098
 
6099
  if test "x$ac_ct_STRIP" = x; then
6100
    STRIP=":"
6101
  else
6102
    case $cross_compiling:$ac_tool_warned in
6103
yes:)
6104
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6105
whose name does not start with the host triplet.  If you think this
6106
configuration is useful to you, please write to autoconf@gnu.org." >&5
6107
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6108
whose name does not start with the host triplet.  If you think this
6109
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6110
ac_tool_warned=yes ;;
6111
esac
6112
    STRIP=$ac_ct_STRIP
6113
  fi
6114
else
6115
  STRIP="$ac_cv_prog_STRIP"
6116
fi
6117
 
6118
 
6119
old_CC="$CC"
6120
old_CFLAGS="$CFLAGS"
6121
 
6122
# Set sane defaults for various variables
6123
test -z "$AR" && AR=ar
6124
test -z "$AR_FLAGS" && AR_FLAGS=cru
6125
test -z "$AS" && AS=as
6126
test -z "$CC" && CC=cc
6127
test -z "$LTCC" && LTCC=$CC
6128
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6129
test -z "$DLLTOOL" && DLLTOOL=dlltool
6130
test -z "$LD" && LD=ld
6131
test -z "$LN_S" && LN_S="ln -s"
6132
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6133
test -z "$NM" && NM=nm
6134
test -z "$SED" && SED=sed
6135
test -z "$OBJDUMP" && OBJDUMP=objdump
6136
test -z "$RANLIB" && RANLIB=:
6137
test -z "$STRIP" && STRIP=:
6138
test -z "$ac_objext" && ac_objext=o
6139
 
6140
# Determine commands to create old-style static archives.
6141
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6142
old_postinstall_cmds='chmod 644 $oldlib'
6143
old_postuninstall_cmds=
6144
 
6145
if test -n "$RANLIB"; then
6146
  case $host_os in
6147
  openbsd*)
6148
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6149
    ;;
6150
  *)
6151
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6152
    ;;
6153
  esac
6154
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6155
fi
6156
 
6157
for cc_temp in $compiler""; do
6158
  case $cc_temp in
6159
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6160
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6161
    \-*) ;;
6162
    *) break;;
6163
  esac
6164
done
6165
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6166
 
6167
 
6168
# Only perform the check for file, if the check method requires it
6169
case $deplibs_check_method in
6170
file_magic*)
6171
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6172
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6173
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6174
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6175
  echo $ECHO_N "(cached) $ECHO_C" >&6
6176
else
6177
  case $MAGIC_CMD in
6178
[\\/*] |  ?:[\\/]*)
6179
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6180
  ;;
6181
*)
6182
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6183
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6184
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6185
  for ac_dir in $ac_dummy; do
6186
    IFS="$lt_save_ifs"
6187
    test -z "$ac_dir" && ac_dir=.
6188
    if test -f $ac_dir/${ac_tool_prefix}file; then
6189
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6190
      if test -n "$file_magic_test_file"; then
6191
        case $deplibs_check_method in
6192
        "file_magic "*)
6193
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6194
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6195
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6196
            $EGREP "$file_magic_regex" > /dev/null; then
6197
            :
6198
          else
6199
            cat <&2
6200
 
6201
*** Warning: the command libtool uses to detect shared libraries,
6202
*** $file_magic_cmd, produces output that libtool cannot recognize.
6203
*** The result is that libtool may fail to recognize shared libraries
6204
*** as such.  This will affect the creation of libtool libraries that
6205
*** depend on shared libraries, but programs linked with such libtool
6206
*** libraries will work regardless of this problem.  Nevertheless, you
6207
*** may want to report the problem to your system manager and/or to
6208
*** bug-libtool@gnu.org
6209
 
6210
EOF
6211
          fi ;;
6212
        esac
6213
      fi
6214
      break
6215
    fi
6216
  done
6217
  IFS="$lt_save_ifs"
6218
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6219
  ;;
6220
esac
6221
fi
6222
 
6223
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6224
if test -n "$MAGIC_CMD"; then
6225
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6226
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6227
else
6228
  { echo "$as_me:$LINENO: result: no" >&5
6229
echo "${ECHO_T}no" >&6; }
6230
fi
6231
 
6232
if test -z "$lt_cv_path_MAGIC_CMD"; then
6233
  if test -n "$ac_tool_prefix"; then
6234
    { echo "$as_me:$LINENO: checking for file" >&5
6235
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6236
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6237
  echo $ECHO_N "(cached) $ECHO_C" >&6
6238
else
6239
  case $MAGIC_CMD in
6240
[\\/*] |  ?:[\\/]*)
6241
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6242
  ;;
6243
*)
6244
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6245
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6246
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6247
  for ac_dir in $ac_dummy; do
6248
    IFS="$lt_save_ifs"
6249
    test -z "$ac_dir" && ac_dir=.
6250
    if test -f $ac_dir/file; then
6251
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6252
      if test -n "$file_magic_test_file"; then
6253
        case $deplibs_check_method in
6254
        "file_magic "*)
6255
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6256
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6257
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6258
            $EGREP "$file_magic_regex" > /dev/null; then
6259
            :
6260
          else
6261
            cat <&2
6262
 
6263
*** Warning: the command libtool uses to detect shared libraries,
6264
*** $file_magic_cmd, produces output that libtool cannot recognize.
6265
*** The result is that libtool may fail to recognize shared libraries
6266
*** as such.  This will affect the creation of libtool libraries that
6267
*** depend on shared libraries, but programs linked with such libtool
6268
*** libraries will work regardless of this problem.  Nevertheless, you
6269
*** may want to report the problem to your system manager and/or to
6270
*** bug-libtool@gnu.org
6271
 
6272
EOF
6273
          fi ;;
6274
        esac
6275
      fi
6276
      break
6277
    fi
6278
  done
6279
  IFS="$lt_save_ifs"
6280
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6281
  ;;
6282
esac
6283
fi
6284
 
6285
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6286
if test -n "$MAGIC_CMD"; then
6287
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6288
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6289
else
6290
  { echo "$as_me:$LINENO: result: no" >&5
6291
echo "${ECHO_T}no" >&6; }
6292
fi
6293
 
6294
  else
6295
    MAGIC_CMD=:
6296
  fi
6297
fi
6298
 
6299
  fi
6300
  ;;
6301
esac
6302
 
6303
enable_dlopen=no
6304
enable_win32_dll=no
6305
 
6306
# Check whether --enable-libtool-lock was given.
6307
if test "${enable_libtool_lock+set}" = set; then
6308
  enableval=$enable_libtool_lock;
6309
fi
6310
 
6311
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6312
 
6313
 
6314
# Check whether --with-pic was given.
6315
if test "${with_pic+set}" = set; then
6316
  withval=$with_pic; pic_mode="$withval"
6317
else
6318
  pic_mode=default
6319
fi
6320
 
6321
test -z "$pic_mode" && pic_mode=default
6322
 
6323
# Use C for the default configuration in the libtool script
6324
tagname=
6325
lt_save_CC="$CC"
6326
ac_ext=c
6327
ac_cpp='$CPP $CPPFLAGS'
6328
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6331
 
6332
 
6333
# Source file extension for C test sources.
6334
ac_ext=c
6335
 
6336
# Object file extension for compiled C test sources.
6337
objext=o
6338
objext=$objext
6339
 
6340
# Code to be used in simple compile tests
6341
lt_simple_compile_test_code="int some_variable = 0;"
6342
 
6343
# Code to be used in simple link tests
6344
lt_simple_link_test_code='int main(){return(0);}'
6345
 
6346
 
6347
# If no C compiler was specified, use CC.
6348
LTCC=${LTCC-"$CC"}
6349
 
6350
# If no C compiler flags were specified, use CFLAGS.
6351
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6352
 
6353
# Allow CC to be a program name with arguments.
6354
compiler=$CC
6355
 
6356
 
6357
# save warnings/boilerplate of simple test code
6358
ac_outfile=conftest.$ac_objext
6359
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6360
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6361
_lt_compiler_boilerplate=`cat conftest.err`
6362
$rm conftest*
6363
 
6364
ac_outfile=conftest.$ac_objext
6365
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6366
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6367
_lt_linker_boilerplate=`cat conftest.err`
6368
$rm conftest*
6369
 
6370
 
6371
 
6372
lt_prog_compiler_no_builtin_flag=
6373
 
6374
if test "$GCC" = yes; then
6375
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6376
 
6377
 
6378
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6379
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6380
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6381
  echo $ECHO_N "(cached) $ECHO_C" >&6
6382
else
6383
  lt_cv_prog_compiler_rtti_exceptions=no
6384
  ac_outfile=conftest.$ac_objext
6385
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6386
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6387
   # Insert the option either (1) after the last *FLAGS variable, or
6388
   # (2) before a word containing "conftest.", or (3) at the end.
6389
   # Note that $ac_compile itself does not contain backslashes and begins
6390
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6391
   # The option is referenced via a variable to avoid confusing sed.
6392
   lt_compile=`echo "$ac_compile" | $SED \
6393
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6394
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6395
   -e 's:$: $lt_compiler_flag:'`
6396
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6397
   (eval "$lt_compile" 2>conftest.err)
6398
   ac_status=$?
6399
   cat conftest.err >&5
6400
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6401
   if (exit $ac_status) && test -s "$ac_outfile"; then
6402
     # The compiler can only warn and ignore the option if not recognized
6403
     # So say no if there are warnings other than the usual output.
6404
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6405
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6406
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6407
       lt_cv_prog_compiler_rtti_exceptions=yes
6408
     fi
6409
   fi
6410
   $rm conftest*
6411
 
6412
fi
6413
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6414
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6415
 
6416
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6417
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6418
else
6419
    :
6420
fi
6421
 
6422
fi
6423
 
6424
lt_prog_compiler_wl=
6425
lt_prog_compiler_pic=
6426
lt_prog_compiler_static=
6427
 
6428
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6429
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6430
 
6431
  if test "$GCC" = yes; then
6432
    lt_prog_compiler_wl='-Wl,'
6433
    lt_prog_compiler_static='-static'
6434
 
6435
    case $host_os in
6436
      aix*)
6437
      # All AIX code is PIC.
6438
      if test "$host_cpu" = ia64; then
6439
        # AIX 5 now supports IA64 processor
6440
        lt_prog_compiler_static='-Bstatic'
6441
      fi
6442
      ;;
6443
 
6444
    amigaos*)
6445
      # FIXME: we need at least 68020 code to build shared libraries, but
6446
      # adding the `-m68020' flag to GCC prevents building anything better,
6447
      # like `-m68040'.
6448
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6449
      ;;
6450
 
6451
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6452
      # PIC is the default for these OSes.
6453
      ;;
6454
 
6455
    mingw* | cygwin* | pw32* | os2*)
6456
      # This hack is so that the source file can tell whether it is being
6457
      # built for inclusion in a dll (and should export symbols for example).
6458
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6459
      # (--disable-auto-import) libraries
6460
      lt_prog_compiler_pic='-DDLL_EXPORT'
6461
      ;;
6462
 
6463
    darwin* | rhapsody*)
6464
      # PIC is the default on this platform
6465
      # Common symbols not allowed in MH_DYLIB files
6466
      lt_prog_compiler_pic='-fno-common'
6467
      ;;
6468
 
6469
    interix[3-9]*)
6470
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6471
      # Instead, we relocate shared libraries at runtime.
6472
      ;;
6473
 
6474
    msdosdjgpp*)
6475
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6476
      # on systems that don't support them.
6477
      lt_prog_compiler_can_build_shared=no
6478
      enable_shared=no
6479
      ;;
6480
 
6481
    sysv4*MP*)
6482
      if test -d /usr/nec; then
6483
        lt_prog_compiler_pic=-Kconform_pic
6484
      fi
6485
      ;;
6486
 
6487
    hpux*)
6488
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6489
      # not for PA HP-UX.
6490
      case $host_cpu in
6491
      hppa*64*|ia64*)
6492
        # +Z the default
6493
        ;;
6494
      *)
6495
        lt_prog_compiler_pic='-fPIC'
6496
        ;;
6497
      esac
6498
      ;;
6499
 
6500
    *)
6501
      lt_prog_compiler_pic='-fPIC'
6502
      ;;
6503
    esac
6504
  else
6505
    # PORTME Check for flag to pass linker flags through the system compiler.
6506
    case $host_os in
6507
    aix*)
6508
      lt_prog_compiler_wl='-Wl,'
6509
      if test "$host_cpu" = ia64; then
6510
        # AIX 5 now supports IA64 processor
6511
        lt_prog_compiler_static='-Bstatic'
6512
      else
6513
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6514
      fi
6515
      ;;
6516
      darwin*)
6517
        # PIC is the default on this platform
6518
        # Common symbols not allowed in MH_DYLIB files
6519
       case $cc_basename in
6520
         xlc*)
6521
         lt_prog_compiler_pic='-qnocommon'
6522
         lt_prog_compiler_wl='-Wl,'
6523
         ;;
6524
       esac
6525
       ;;
6526
 
6527
    mingw* | cygwin* | pw32* | os2*)
6528
      # This hack is so that the source file can tell whether it is being
6529
      # built for inclusion in a dll (and should export symbols for example).
6530
      lt_prog_compiler_pic='-DDLL_EXPORT'
6531
      ;;
6532
 
6533
    hpux9* | hpux10* | hpux11*)
6534
      lt_prog_compiler_wl='-Wl,'
6535
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6536
      # not for PA HP-UX.
6537
      case $host_cpu in
6538
      hppa*64*|ia64*)
6539
        # +Z the default
6540
        ;;
6541
      *)
6542
        lt_prog_compiler_pic='+Z'
6543
        ;;
6544
      esac
6545
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6546
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6547
      ;;
6548
 
6549
    irix5* | irix6* | nonstopux*)
6550
      lt_prog_compiler_wl='-Wl,'
6551
      # PIC (with -KPIC) is the default.
6552
      lt_prog_compiler_static='-non_shared'
6553
      ;;
6554
 
6555
    newsos6)
6556
      lt_prog_compiler_pic='-KPIC'
6557
      lt_prog_compiler_static='-Bstatic'
6558
      ;;
6559
 
6560
    linux* | k*bsd*-gnu)
6561
      case $cc_basename in
6562
      icc* | ecc*)
6563
        lt_prog_compiler_wl='-Wl,'
6564
        lt_prog_compiler_pic='-KPIC'
6565
        lt_prog_compiler_static='-static'
6566
        ;;
6567
      pgcc* | pgf77* | pgf90* | pgf95*)
6568
        # Portland Group compilers (*not* the Pentium gcc compiler,
6569
        # which looks to be a dead project)
6570
        lt_prog_compiler_wl='-Wl,'
6571
        lt_prog_compiler_pic='-fpic'
6572
        lt_prog_compiler_static='-Bstatic'
6573
        ;;
6574
      ccc*)
6575
        lt_prog_compiler_wl='-Wl,'
6576
        # All Alpha code is PIC.
6577
        lt_prog_compiler_static='-non_shared'
6578
        ;;
6579
      *)
6580
        case `$CC -V 2>&1 | sed 5q` in
6581
        *Sun\ C*)
6582
          # Sun C 5.9
6583
          lt_prog_compiler_pic='-KPIC'
6584
          lt_prog_compiler_static='-Bstatic'
6585
          lt_prog_compiler_wl='-Wl,'
6586
          ;;
6587
        *Sun\ F*)
6588
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6589
          lt_prog_compiler_pic='-KPIC'
6590
          lt_prog_compiler_static='-Bstatic'
6591
          lt_prog_compiler_wl=''
6592
          ;;
6593
        esac
6594
        ;;
6595
      esac
6596
      ;;
6597
 
6598
    osf3* | osf4* | osf5*)
6599
      lt_prog_compiler_wl='-Wl,'
6600
      # All OSF/1 code is PIC.
6601
      lt_prog_compiler_static='-non_shared'
6602
      ;;
6603
 
6604
    rdos*)
6605
      lt_prog_compiler_static='-non_shared'
6606
      ;;
6607
 
6608
    solaris*)
6609
      lt_prog_compiler_pic='-KPIC'
6610
      lt_prog_compiler_static='-Bstatic'
6611
      case $cc_basename in
6612
      f77* | f90* | f95*)
6613
        lt_prog_compiler_wl='-Qoption ld ';;
6614
      *)
6615
        lt_prog_compiler_wl='-Wl,';;
6616
      esac
6617
      ;;
6618
 
6619
    sunos4*)
6620
      lt_prog_compiler_wl='-Qoption ld '
6621
      lt_prog_compiler_pic='-PIC'
6622
      lt_prog_compiler_static='-Bstatic'
6623
      ;;
6624
 
6625
    sysv4 | sysv4.2uw2* | sysv4.3*)
6626
      lt_prog_compiler_wl='-Wl,'
6627
      lt_prog_compiler_pic='-KPIC'
6628
      lt_prog_compiler_static='-Bstatic'
6629
      ;;
6630
 
6631
    sysv4*MP*)
6632
      if test -d /usr/nec ;then
6633
        lt_prog_compiler_pic='-Kconform_pic'
6634
        lt_prog_compiler_static='-Bstatic'
6635
      fi
6636
      ;;
6637
 
6638
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6639
      lt_prog_compiler_wl='-Wl,'
6640
      lt_prog_compiler_pic='-KPIC'
6641
      lt_prog_compiler_static='-Bstatic'
6642
      ;;
6643
 
6644
    unicos*)
6645
      lt_prog_compiler_wl='-Wl,'
6646
      lt_prog_compiler_can_build_shared=no
6647
      ;;
6648
 
6649
    uts4*)
6650
      lt_prog_compiler_pic='-pic'
6651
      lt_prog_compiler_static='-Bstatic'
6652
      ;;
6653
 
6654
    *)
6655
      lt_prog_compiler_can_build_shared=no
6656
      ;;
6657
    esac
6658
  fi
6659
 
6660
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6661
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6662
 
6663
#
6664
# Check to make sure the PIC flag actually works.
6665
#
6666
if test -n "$lt_prog_compiler_pic"; then
6667
 
6668
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6669
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6670
if test "${lt_prog_compiler_pic_works+set}" = set; then
6671
  echo $ECHO_N "(cached) $ECHO_C" >&6
6672
else
6673
  lt_prog_compiler_pic_works=no
6674
  ac_outfile=conftest.$ac_objext
6675
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6676
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6677
   # Insert the option either (1) after the last *FLAGS variable, or
6678
   # (2) before a word containing "conftest.", or (3) at the end.
6679
   # Note that $ac_compile itself does not contain backslashes and begins
6680
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6681
   # The option is referenced via a variable to avoid confusing sed.
6682
   lt_compile=`echo "$ac_compile" | $SED \
6683
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6684
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6685
   -e 's:$: $lt_compiler_flag:'`
6686
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6687
   (eval "$lt_compile" 2>conftest.err)
6688
   ac_status=$?
6689
   cat conftest.err >&5
6690
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6691
   if (exit $ac_status) && test -s "$ac_outfile"; then
6692
     # The compiler can only warn and ignore the option if not recognized
6693
     # So say no if there are warnings other than the usual output.
6694
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6695
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6696
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6697
       lt_prog_compiler_pic_works=yes
6698
     fi
6699
   fi
6700
   $rm conftest*
6701
 
6702
fi
6703
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6704
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6705
 
6706
if test x"$lt_prog_compiler_pic_works" = xyes; then
6707
    case $lt_prog_compiler_pic in
6708
     "" | " "*) ;;
6709
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6710
     esac
6711
else
6712
    lt_prog_compiler_pic=
6713
     lt_prog_compiler_can_build_shared=no
6714
fi
6715
 
6716
fi
6717
case $host_os in
6718
  # For platforms which do not support PIC, -DPIC is meaningless:
6719
  *djgpp*)
6720
    lt_prog_compiler_pic=
6721
    ;;
6722
  *)
6723
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6724
    ;;
6725
esac
6726
 
6727
#
6728
# Check to make sure the static flag actually works.
6729
#
6730
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6731
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6732
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6733
if test "${lt_prog_compiler_static_works+set}" = set; then
6734
  echo $ECHO_N "(cached) $ECHO_C" >&6
6735
else
6736
  lt_prog_compiler_static_works=no
6737
   save_LDFLAGS="$LDFLAGS"
6738
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6739
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6740
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6741
     # The linker can only warn and ignore the option if not recognized
6742
     # So say no if there are warnings
6743
     if test -s conftest.err; then
6744
       # Append any errors to the config.log.
6745
       cat conftest.err 1>&5
6746
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6747
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6748
       if diff conftest.exp conftest.er2 >/dev/null; then
6749
         lt_prog_compiler_static_works=yes
6750
       fi
6751
     else
6752
       lt_prog_compiler_static_works=yes
6753
     fi
6754
   fi
6755
   $rm conftest*
6756
   LDFLAGS="$save_LDFLAGS"
6757
 
6758
fi
6759
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6760
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6761
 
6762
if test x"$lt_prog_compiler_static_works" = xyes; then
6763
    :
6764
else
6765
    lt_prog_compiler_static=
6766
fi
6767
 
6768
 
6769
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6770
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6771
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6772
  echo $ECHO_N "(cached) $ECHO_C" >&6
6773
else
6774
  lt_cv_prog_compiler_c_o=no
6775
   $rm -r conftest 2>/dev/null
6776
   mkdir conftest
6777
   cd conftest
6778
   mkdir out
6779
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6780
 
6781
   lt_compiler_flag="-o out/conftest2.$ac_objext"
6782
   # Insert the option either (1) after the last *FLAGS variable, or
6783
   # (2) before a word containing "conftest.", or (3) at the end.
6784
   # Note that $ac_compile itself does not contain backslashes and begins
6785
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6786
   lt_compile=`echo "$ac_compile" | $SED \
6787
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6788
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6789
   -e 's:$: $lt_compiler_flag:'`
6790
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6791
   (eval "$lt_compile" 2>out/conftest.err)
6792
   ac_status=$?
6793
   cat out/conftest.err >&5
6794
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6795
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6796
   then
6797
     # The compiler can only warn and ignore the option if not recognized
6798
     # So say no if there are warnings
6799
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6800
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6801
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6802
       lt_cv_prog_compiler_c_o=yes
6803
     fi
6804
   fi
6805
   chmod u+w . 2>&5
6806
   $rm conftest*
6807
   # SGI C++ compiler will create directory out/ii_files/ for
6808
   # template instantiation
6809
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6810
   $rm out/* && rmdir out
6811
   cd ..
6812
   rmdir conftest
6813
   $rm conftest*
6814
 
6815
fi
6816
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6817
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6818
 
6819
 
6820
hard_links="nottested"
6821
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6822
  # do not overwrite the value of need_locks provided by the user
6823
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6824
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6825
  hard_links=yes
6826
  $rm conftest*
6827
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6828
  touch conftest.a
6829
  ln conftest.a conftest.b 2>&5 || hard_links=no
6830
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6831
  { echo "$as_me:$LINENO: result: $hard_links" >&5
6832
echo "${ECHO_T}$hard_links" >&6; }
6833
  if test "$hard_links" = no; then
6834
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6835
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6836
    need_locks=warn
6837
  fi
6838
else
6839
  need_locks=no
6840
fi
6841
 
6842
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6843
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6844
 
6845
  runpath_var=
6846
  allow_undefined_flag=
6847
  enable_shared_with_static_runtimes=no
6848
  archive_cmds=
6849
  archive_expsym_cmds=
6850
  old_archive_From_new_cmds=
6851
  old_archive_from_expsyms_cmds=
6852
  export_dynamic_flag_spec=
6853
  whole_archive_flag_spec=
6854
  thread_safe_flag_spec=
6855
  hardcode_libdir_flag_spec=
6856
  hardcode_libdir_flag_spec_ld=
6857
  hardcode_libdir_separator=
6858
  hardcode_direct=no
6859
  hardcode_minus_L=no
6860
  hardcode_shlibpath_var=unsupported
6861
  link_all_deplibs=unknown
6862
  hardcode_automatic=no
6863
  module_cmds=
6864
  module_expsym_cmds=
6865
  always_export_symbols=no
6866
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6867
  # include_expsyms should be a list of space-separated symbols to be *always*
6868
  # included in the symbol list
6869
  include_expsyms=
6870
  # exclude_expsyms can be an extended regexp of symbols to exclude
6871
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6872
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6873
  # as well as any symbol that contains `d'.
6874
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6875
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6876
  # platforms (ab)use it in PIC code, but their linkers get confused if
6877
  # the symbol is explicitly referenced.  Since portable code cannot
6878
  # rely on this symbol name, it's probably fine to never include it in
6879
  # preloaded symbol tables.
6880
  extract_expsyms_cmds=
6881
  # Just being paranoid about ensuring that cc_basename is set.
6882
  for cc_temp in $compiler""; do
6883
  case $cc_temp in
6884
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6885
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6886
    \-*) ;;
6887
    *) break;;
6888
  esac
6889
done
6890
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6891
 
6892
  case $host_os in
6893
  cygwin* | mingw* | pw32*)
6894
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6895
    # When not using gcc, we currently assume that we are using
6896
    # Microsoft Visual C++.
6897
    if test "$GCC" != yes; then
6898
      with_gnu_ld=no
6899
    fi
6900
    ;;
6901
  interix*)
6902
    # we just hope/assume this is gcc and not c89 (= MSVC++)
6903
    with_gnu_ld=yes
6904
    ;;
6905
  openbsd*)
6906
    with_gnu_ld=no
6907
    ;;
6908
  esac
6909
 
6910
  ld_shlibs=yes
6911
  if test "$with_gnu_ld" = yes; then
6912
    # If archive_cmds runs LD, not CC, wlarc should be empty
6913
    wlarc='${wl}'
6914
 
6915
    # Set some defaults for GNU ld with shared library support. These
6916
    # are reset later if shared libraries are not supported. Putting them
6917
    # here allows them to be overridden if necessary.
6918
    runpath_var=LD_RUN_PATH
6919
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6920
    export_dynamic_flag_spec='${wl}--export-dynamic'
6921
    # ancient GNU ld didn't support --whole-archive et. al.
6922
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6923
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6924
      else
6925
        whole_archive_flag_spec=
6926
    fi
6927
    supports_anon_versioning=no
6928
    case `$LD -v 2>/dev/null` in
6929
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6930
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6931
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6932
      *\ 2.11.*) ;; # other 2.11 versions
6933
      *) supports_anon_versioning=yes ;;
6934
    esac
6935
 
6936
    # See if GNU ld supports shared libraries.
6937
    case $host_os in
6938
    aix3* | aix4* | aix5*)
6939
      # On AIX/PPC, the GNU linker is very broken
6940
      if test "$host_cpu" != ia64; then
6941
        ld_shlibs=no
6942
        cat <&2
6943
 
6944
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6945
*** to be unable to reliably create shared libraries on AIX.
6946
*** Therefore, libtool is disabling shared libraries support.  If you
6947
*** really care for shared libraries, you may want to modify your PATH
6948
*** so that a non-GNU linker is found, and then restart.
6949
 
6950
EOF
6951
      fi
6952
      ;;
6953
 
6954
    amigaos*)
6955
      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)'
6956
      hardcode_libdir_flag_spec='-L$libdir'
6957
      hardcode_minus_L=yes
6958
 
6959
      # Samuel A. Falvo II  reports
6960
      # that the semantics of dynamic libraries on AmigaOS, at least up
6961
      # to version 4, is to share data among multiple programs linked
6962
      # with the same dynamic library.  Since this doesn't match the
6963
      # behavior of shared libraries on other platforms, we can't use
6964
      # them.
6965
      ld_shlibs=no
6966
      ;;
6967
 
6968
    beos*)
6969
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6970
        allow_undefined_flag=unsupported
6971
        # Joseph Beckenbach  says some releases of gcc
6972
        # support --undefined.  This deserves some investigation.  FIXME
6973
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6974
      else
6975
        ld_shlibs=no
6976
      fi
6977
      ;;
6978
 
6979
    cygwin* | mingw* | pw32*)
6980
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6981
      # as there is no search path for DLLs.
6982
      hardcode_libdir_flag_spec='-L$libdir'
6983
      allow_undefined_flag=unsupported
6984
      always_export_symbols=no
6985
      enable_shared_with_static_runtimes=yes
6986
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6987
 
6988
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6989
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6990
        # If the export-symbols file already is a .def file (1st line
6991
        # is EXPORTS), use it as is; otherwise, prepend...
6992
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6993
          cp $export_symbols $output_objdir/$soname.def;
6994
        else
6995
          echo EXPORTS > $output_objdir/$soname.def;
6996
          cat $export_symbols >> $output_objdir/$soname.def;
6997
        fi~
6998
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6999
      else
7000
        ld_shlibs=no
7001
      fi
7002
      ;;
7003
 
7004
    interix[3-9]*)
7005
      hardcode_direct=no
7006
      hardcode_shlibpath_var=no
7007
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7008
      export_dynamic_flag_spec='${wl}-E'
7009
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7010
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7011
      # default) and relocated if they conflict, which is a slow very memory
7012
      # consuming and fragmenting process.  To avoid this, we pick a random,
7013
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7014
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7015
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7016
      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'
7017
      ;;
7018
 
7019
    gnu* | linux* | k*bsd*-gnu)
7020
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7021
        tmp_addflag=
7022
        case $cc_basename,$host_cpu in
7023
        pgcc*)                          # Portland Group C compiler
7024
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7025
          tmp_addflag=' $pic_flag'
7026
          ;;
7027
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7028
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7029
          tmp_addflag=' $pic_flag -Mnomain' ;;
7030
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7031
          tmp_addflag=' -i_dynamic' ;;
7032
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7033
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7034
        ifc* | ifort*)                  # Intel Fortran compiler
7035
          tmp_addflag=' -nofor_main' ;;
7036
        esac
7037
        case `$CC -V 2>&1 | sed 5q` in
7038
        *Sun\ C*)                       # Sun C 5.9
7039
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7040
          tmp_sharedflag='-G' ;;
7041
        *Sun\ F*)                       # Sun Fortran 8.3
7042
          tmp_sharedflag='-G' ;;
7043
        *)
7044
          tmp_sharedflag='-shared' ;;
7045
        esac
7046
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7047
 
7048
        if test $supports_anon_versioning = yes; then
7049
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7050
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7051
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7052
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7053
        fi
7054
      else
7055
        ld_shlibs=no
7056
      fi
7057
      ;;
7058
 
7059
    netbsd*)
7060
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7061
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7062
        wlarc=
7063
      else
7064
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7065
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7066
      fi
7067
      ;;
7068
 
7069
    solaris*)
7070
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7071
        ld_shlibs=no
7072
        cat <&2
7073
 
7074
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7075
*** create shared libraries on Solaris systems.  Therefore, libtool
7076
*** is disabling shared libraries support.  We urge you to upgrade GNU
7077
*** binutils to release 2.9.1 or newer.  Another option is to modify
7078
*** your PATH or compiler configuration so that the native linker is
7079
*** used, and then restart.
7080
 
7081
EOF
7082
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7083
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7084
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7085
      else
7086
        ld_shlibs=no
7087
      fi
7088
      ;;
7089
 
7090
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7091
      case `$LD -v 2>&1` in
7092
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7093
        ld_shlibs=no
7094
        cat <<_LT_EOF 1>&2
7095
 
7096
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7097
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7098
*** is disabling shared libraries support.  We urge you to upgrade GNU
7099
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7100
*** your PATH or compiler configuration so that the native linker is
7101
*** used, and then restart.
7102
 
7103
_LT_EOF
7104
        ;;
7105
        *)
7106
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7107
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7108
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7109
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7110
          else
7111
            ld_shlibs=no
7112
          fi
7113
        ;;
7114
      esac
7115
      ;;
7116
 
7117
    sunos4*)
7118
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7119
      wlarc=
7120
      hardcode_direct=yes
7121
      hardcode_shlibpath_var=no
7122
      ;;
7123
 
7124
    *)
7125
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7126
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7127
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7128
      else
7129
        ld_shlibs=no
7130
      fi
7131
      ;;
7132
    esac
7133
 
7134
    if test "$ld_shlibs" = no; then
7135
      runpath_var=
7136
      hardcode_libdir_flag_spec=
7137
      export_dynamic_flag_spec=
7138
      whole_archive_flag_spec=
7139
    fi
7140
  else
7141
    # PORTME fill in a description of your system's linker (not GNU ld)
7142
    case $host_os in
7143
    aix3*)
7144
      allow_undefined_flag=unsupported
7145
      always_export_symbols=yes
7146
      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'
7147
      # Note: this linker hardcodes the directories in LIBPATH if there
7148
      # are no directories specified by -L.
7149
      hardcode_minus_L=yes
7150
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7151
        # Neither direct hardcoding nor static linking is supported with a
7152
        # broken collect2.
7153
        hardcode_direct=unsupported
7154
      fi
7155
      ;;
7156
 
7157
    aix4* | aix5*)
7158
      if test "$host_cpu" = ia64; then
7159
        # On IA64, the linker does run time linking by default, so we don't
7160
        # have to do anything special.
7161
        aix_use_runtimelinking=no
7162
        exp_sym_flag='-Bexport'
7163
        no_entry_flag=""
7164
      else
7165
        # If we're using GNU nm, then we don't want the "-C" option.
7166
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7167
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7168
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7169
        else
7170
          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'
7171
        fi
7172
        aix_use_runtimelinking=no
7173
 
7174
        # Test if we are trying to use run time linking or normal
7175
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7176
        # need to do runtime linking.
7177
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7178
          for ld_flag in $LDFLAGS; do
7179
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7180
            aix_use_runtimelinking=yes
7181
            break
7182
          fi
7183
          done
7184
          ;;
7185
        esac
7186
 
7187
        exp_sym_flag='-bexport'
7188
        no_entry_flag='-bnoentry'
7189
      fi
7190
 
7191
      # When large executables or shared objects are built, AIX ld can
7192
      # have problems creating the table of contents.  If linking a library
7193
      # or program results in "error TOC overflow" add -mminimal-toc to
7194
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7195
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7196
 
7197
      archive_cmds=''
7198
      hardcode_direct=yes
7199
      hardcode_libdir_separator=':'
7200
      link_all_deplibs=yes
7201
 
7202
      if test "$GCC" = yes; then
7203
        case $host_os in aix4.[012]|aix4.[012].*)
7204
        # We only want to do this on AIX 4.2 and lower, the check
7205
        # below for broken collect2 doesn't work under 4.3+
7206
          collect2name=`${CC} -print-prog-name=collect2`
7207
          if test -f "$collect2name" && \
7208
           strings "$collect2name" | grep resolve_lib_name >/dev/null
7209
          then
7210
          # We have reworked collect2
7211
          :
7212
          else
7213
          # We have old collect2
7214
          hardcode_direct=unsupported
7215
          # It fails to find uninstalled libraries when the uninstalled
7216
          # path is not listed in the libpath.  Setting hardcode_minus_L
7217
          # to unsupported forces relinking
7218
          hardcode_minus_L=yes
7219
          hardcode_libdir_flag_spec='-L$libdir'
7220
          hardcode_libdir_separator=
7221
          fi
7222
          ;;
7223
        esac
7224
        shared_flag='-shared'
7225
        if test "$aix_use_runtimelinking" = yes; then
7226
          shared_flag="$shared_flag "'${wl}-G'
7227
        fi
7228
      else
7229
        # not using gcc
7230
        if test "$host_cpu" = ia64; then
7231
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7232
        # chokes on -Wl,-G. The following line is correct:
7233
          shared_flag='-G'
7234
        else
7235
          if test "$aix_use_runtimelinking" = yes; then
7236
            shared_flag='${wl}-G'
7237
          else
7238
            shared_flag='${wl}-bM:SRE'
7239
          fi
7240
        fi
7241
      fi
7242
 
7243
      # It seems that -bexpall does not export symbols beginning with
7244
      # underscore (_), so it is better to generate a list of symbols to export.
7245
      always_export_symbols=yes
7246
      if test "$aix_use_runtimelinking" = yes; then
7247
        # Warning - without using the other runtime loading flags (-brtl),
7248
        # -berok will link without error, but may produce a broken library.
7249
        allow_undefined_flag='-berok'
7250
       # Determine the default libpath from the value encoded in an empty executable.
7251
       cat >conftest.$ac_ext <<_ACEOF
7252
/* confdefs.h.  */
7253
_ACEOF
7254
cat confdefs.h >>conftest.$ac_ext
7255
cat >>conftest.$ac_ext <<_ACEOF
7256
/* end confdefs.h.  */
7257
 
7258
int
7259
main ()
7260
{
7261
 
7262
  ;
7263
  return 0;
7264
}
7265
_ACEOF
7266
rm -f conftest.$ac_objext conftest$ac_exeext
7267
if { (ac_try="$ac_link"
7268
case "(($ac_try" in
7269
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270
  *) ac_try_echo=$ac_try;;
7271
esac
7272
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273
  (eval "$ac_link") 2>conftest.er1
7274
  ac_status=$?
7275
  grep -v '^ *+' conftest.er1 >conftest.err
7276
  rm -f conftest.er1
7277
  cat conftest.err >&5
7278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279
  (exit $ac_status); } && {
7280
         test -z "$ac_c_werror_flag" ||
7281
         test ! -s conftest.err
7282
       } && test -s conftest$ac_exeext &&
7283
       $as_test_x conftest$ac_exeext; then
7284
 
7285
lt_aix_libpath_sed='
7286
    /Import File Strings/,/^$/ {
7287
        /^0/ {
7288
            s/^0  *\(.*\)$/\1/
7289
            p
7290
        }
7291
    }'
7292
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7293
# Check for a 64-bit object if we didn't find anything.
7294
if test -z "$aix_libpath"; then
7295
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7296
fi
7297
else
7298
  echo "$as_me: failed program was:" >&5
7299
sed 's/^/| /' conftest.$ac_ext >&5
7300
 
7301
 
7302
fi
7303
 
7304
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7305
      conftest$ac_exeext conftest.$ac_ext
7306
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7307
 
7308
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7309
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7310
       else
7311
        if test "$host_cpu" = ia64; then
7312
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7313
          allow_undefined_flag="-z nodefs"
7314
          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"
7315
        else
7316
         # Determine the default libpath from the value encoded in an empty executable.
7317
         cat >conftest.$ac_ext <<_ACEOF
7318
/* confdefs.h.  */
7319
_ACEOF
7320
cat confdefs.h >>conftest.$ac_ext
7321
cat >>conftest.$ac_ext <<_ACEOF
7322
/* end confdefs.h.  */
7323
 
7324
int
7325
main ()
7326
{
7327
 
7328
  ;
7329
  return 0;
7330
}
7331
_ACEOF
7332
rm -f conftest.$ac_objext conftest$ac_exeext
7333
if { (ac_try="$ac_link"
7334
case "(($ac_try" in
7335
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7336
  *) ac_try_echo=$ac_try;;
7337
esac
7338
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7339
  (eval "$ac_link") 2>conftest.er1
7340
  ac_status=$?
7341
  grep -v '^ *+' conftest.er1 >conftest.err
7342
  rm -f conftest.er1
7343
  cat conftest.err >&5
7344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345
  (exit $ac_status); } && {
7346
         test -z "$ac_c_werror_flag" ||
7347
         test ! -s conftest.err
7348
       } && test -s conftest$ac_exeext &&
7349
       $as_test_x conftest$ac_exeext; then
7350
 
7351
lt_aix_libpath_sed='
7352
    /Import File Strings/,/^$/ {
7353
        /^0/ {
7354
            s/^0  *\(.*\)$/\1/
7355
            p
7356
        }
7357
    }'
7358
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7359
# Check for a 64-bit object if we didn't find anything.
7360
if test -z "$aix_libpath"; then
7361
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7362
fi
7363
else
7364
  echo "$as_me: failed program was:" >&5
7365
sed 's/^/| /' conftest.$ac_ext >&5
7366
 
7367
 
7368
fi
7369
 
7370
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7371
      conftest$ac_exeext conftest.$ac_ext
7372
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7373
 
7374
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7375
          # Warning - without using the other run time loading flags,
7376
          # -berok will link without error, but may produce a broken library.
7377
          no_undefined_flag=' ${wl}-bernotok'
7378
          allow_undefined_flag=' ${wl}-berok'
7379
          # Exported symbols can be pulled into shared objects from archives
7380
          whole_archive_flag_spec='$convenience'
7381
          archive_cmds_need_lc=yes
7382
          # This is similar to how AIX traditionally builds its shared libraries.
7383
          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'
7384
        fi
7385
      fi
7386
      ;;
7387
 
7388
    amigaos*)
7389
      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)'
7390
      hardcode_libdir_flag_spec='-L$libdir'
7391
      hardcode_minus_L=yes
7392
      # see comment about different semantics on the GNU ld section
7393
      ld_shlibs=no
7394
      ;;
7395
 
7396
    bsdi[45]*)
7397
      export_dynamic_flag_spec=-rdynamic
7398
      ;;
7399
 
7400
    cygwin* | mingw* | pw32*)
7401
      # When not using gcc, we currently assume that we are using
7402
      # Microsoft Visual C++.
7403
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7404
      # no search path for DLLs.
7405
      hardcode_libdir_flag_spec=' '
7406
      allow_undefined_flag=unsupported
7407
      # Tell ltmain to make .lib files, not .a files.
7408
      libext=lib
7409
      # Tell ltmain to make .dll files, not .so files.
7410
      shrext_cmds=".dll"
7411
      # FIXME: Setting linknames here is a bad hack.
7412
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7413
      # The linker will automatically build a .lib file if we build a DLL.
7414
      old_archive_From_new_cmds='true'
7415
      # FIXME: Should let the user specify the lib program.
7416
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7417
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7418
      enable_shared_with_static_runtimes=yes
7419
      ;;
7420
 
7421
    darwin* | rhapsody*)
7422
      case $host_os in
7423
        rhapsody* | darwin1.[012])
7424
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7425
         ;;
7426
       *) # Darwin 1.3 on
7427
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7428
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7429
         else
7430
           case ${MACOSX_DEPLOYMENT_TARGET} in
7431
             10.[012])
7432
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7433
               ;;
7434
             10.*)
7435
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7436
               ;;
7437
           esac
7438
         fi
7439
         ;;
7440
      esac
7441
      archive_cmds_need_lc=no
7442
      hardcode_direct=no
7443
      hardcode_automatic=yes
7444
      hardcode_shlibpath_var=unsupported
7445
      whole_archive_flag_spec=''
7446
      link_all_deplibs=yes
7447
    if test "$GCC" = yes ; then
7448
        output_verbose_link_cmd='echo'
7449
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7450
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7451
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7452
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7453
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7454
    else
7455
      case $cc_basename in
7456
        xlc*)
7457
         output_verbose_link_cmd='echo'
7458
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7459
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7460
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7461
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7462
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7463
          ;;
7464
       *)
7465
         ld_shlibs=no
7466
          ;;
7467
      esac
7468
    fi
7469
      ;;
7470
 
7471
    dgux*)
7472
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7473
      hardcode_libdir_flag_spec='-L$libdir'
7474
      hardcode_shlibpath_var=no
7475
      ;;
7476
 
7477
    freebsd1*)
7478
      ld_shlibs=no
7479
      ;;
7480
 
7481
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7482
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7483
    # does not break anything, and helps significantly (at the cost of a little
7484
    # extra space).
7485
    freebsd2.2*)
7486
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7487
      hardcode_libdir_flag_spec='-R$libdir'
7488
      hardcode_direct=yes
7489
      hardcode_shlibpath_var=no
7490
      ;;
7491
 
7492
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7493
    freebsd2*)
7494
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7495
      hardcode_direct=yes
7496
      hardcode_minus_L=yes
7497
      hardcode_shlibpath_var=no
7498
      ;;
7499
 
7500
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7501
    freebsd* | dragonfly*)
7502
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7503
      hardcode_libdir_flag_spec='-R$libdir'
7504
      hardcode_direct=yes
7505
      hardcode_shlibpath_var=no
7506
      ;;
7507
 
7508
    hpux9*)
7509
      if test "$GCC" = yes; then
7510
        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'
7511
      else
7512
        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'
7513
      fi
7514
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7515
      hardcode_libdir_separator=:
7516
      hardcode_direct=yes
7517
 
7518
      # hardcode_minus_L: Not really in the search PATH,
7519
      # but as the default location of the library.
7520
      hardcode_minus_L=yes
7521
      export_dynamic_flag_spec='${wl}-E'
7522
      ;;
7523
 
7524
    hpux10*)
7525
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7526
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7527
      else
7528
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7529
      fi
7530
      if test "$with_gnu_ld" = no; then
7531
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7532
        hardcode_libdir_separator=:
7533
 
7534
        hardcode_direct=yes
7535
        export_dynamic_flag_spec='${wl}-E'
7536
 
7537
        # hardcode_minus_L: Not really in the search PATH,
7538
        # but as the default location of the library.
7539
        hardcode_minus_L=yes
7540
      fi
7541
      ;;
7542
 
7543
    hpux11*)
7544
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7545
        case $host_cpu in
7546
        hppa*64*)
7547
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7548
          ;;
7549
        ia64*)
7550
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7551
          ;;
7552
        *)
7553
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7554
          ;;
7555
        esac
7556
      else
7557
        case $host_cpu in
7558
        hppa*64*)
7559
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7560
          ;;
7561
        ia64*)
7562
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7563
          ;;
7564
        *)
7565
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7566
          ;;
7567
        esac
7568
      fi
7569
      if test "$with_gnu_ld" = no; then
7570
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7571
        hardcode_libdir_separator=:
7572
 
7573
        case $host_cpu in
7574
        hppa*64*|ia64*)
7575
          hardcode_libdir_flag_spec_ld='+b $libdir'
7576
          hardcode_direct=no
7577
          hardcode_shlibpath_var=no
7578
          ;;
7579
        *)
7580
          hardcode_direct=yes
7581
          export_dynamic_flag_spec='${wl}-E'
7582
 
7583
          # hardcode_minus_L: Not really in the search PATH,
7584
          # but as the default location of the library.
7585
          hardcode_minus_L=yes
7586
          ;;
7587
        esac
7588
      fi
7589
      ;;
7590
 
7591
    irix5* | irix6* | nonstopux*)
7592
      if test "$GCC" = yes; then
7593
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7594
      else
7595
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7596
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7597
      fi
7598
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7599
      hardcode_libdir_separator=:
7600
      link_all_deplibs=yes
7601
      ;;
7602
 
7603
    netbsd*)
7604
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7605
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7606
      else
7607
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7608
      fi
7609
      hardcode_libdir_flag_spec='-R$libdir'
7610
      hardcode_direct=yes
7611
      hardcode_shlibpath_var=no
7612
      ;;
7613
 
7614
    newsos6)
7615
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7616
      hardcode_direct=yes
7617
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7618
      hardcode_libdir_separator=:
7619
      hardcode_shlibpath_var=no
7620
      ;;
7621
 
7622
    openbsd*)
7623
      if test -f /usr/libexec/ld.so; then
7624
        hardcode_direct=yes
7625
        hardcode_shlibpath_var=no
7626
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7627
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7628
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7629
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7630
          export_dynamic_flag_spec='${wl}-E'
7631
        else
7632
          case $host_os in
7633
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7634
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7635
             hardcode_libdir_flag_spec='-R$libdir'
7636
             ;;
7637
           *)
7638
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7639
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7640
             ;;
7641
          esac
7642
        fi
7643
      else
7644
        ld_shlibs=no
7645
      fi
7646
      ;;
7647
 
7648
    os2*)
7649
      hardcode_libdir_flag_spec='-L$libdir'
7650
      hardcode_minus_L=yes
7651
      allow_undefined_flag=unsupported
7652
      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'
7653
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7654
      ;;
7655
 
7656
    osf3*)
7657
      if test "$GCC" = yes; then
7658
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7659
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7660
      else
7661
        allow_undefined_flag=' -expect_unresolved \*'
7662
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7663
      fi
7664
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7665
      hardcode_libdir_separator=:
7666
      ;;
7667
 
7668
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7669
      if test "$GCC" = yes; then
7670
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7671
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7672
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7673
      else
7674
        allow_undefined_flag=' -expect_unresolved \*'
7675
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7676
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7677
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7678
 
7679
        # Both c and cxx compiler support -rpath directly
7680
        hardcode_libdir_flag_spec='-rpath $libdir'
7681
      fi
7682
      hardcode_libdir_separator=:
7683
      ;;
7684
 
7685
    solaris*)
7686
      no_undefined_flag=' -z text'
7687
      if test "$GCC" = yes; then
7688
        wlarc='${wl}'
7689
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7690
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7691
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7692
      else
7693
        wlarc=''
7694
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7695
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7696
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7697
      fi
7698
      hardcode_libdir_flag_spec='-R$libdir'
7699
      hardcode_shlibpath_var=no
7700
      case $host_os in
7701
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7702
      *)
7703
        # The compiler driver will combine and reorder linker options,
7704
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
7705
        # but is careful enough not to reorder.
7706
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7707
        if test "$GCC" = yes; then
7708
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7709
        else
7710
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7711
        fi
7712
        ;;
7713
      esac
7714
      link_all_deplibs=yes
7715
      ;;
7716
 
7717
    sunos4*)
7718
      if test "x$host_vendor" = xsequent; then
7719
        # Use $CC to link under sequent, because it throws in some extra .o
7720
        # files that make .init and .fini sections work.
7721
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7722
      else
7723
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7724
      fi
7725
      hardcode_libdir_flag_spec='-L$libdir'
7726
      hardcode_direct=yes
7727
      hardcode_minus_L=yes
7728
      hardcode_shlibpath_var=no
7729
      ;;
7730
 
7731
    sysv4)
7732
      case $host_vendor in
7733
        sni)
7734
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7735
          hardcode_direct=yes # is this really true???
7736
        ;;
7737
        siemens)
7738
          ## LD is ld it makes a PLAMLIB
7739
          ## CC just makes a GrossModule.
7740
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7741
          reload_cmds='$CC -r -o $output$reload_objs'
7742
          hardcode_direct=no
7743
        ;;
7744
        motorola)
7745
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7746
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7747
        ;;
7748
      esac
7749
      runpath_var='LD_RUN_PATH'
7750
      hardcode_shlibpath_var=no
7751
      ;;
7752
 
7753
    sysv4.3*)
7754
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7755
      hardcode_shlibpath_var=no
7756
      export_dynamic_flag_spec='-Bexport'
7757
      ;;
7758
 
7759
    sysv4*MP*)
7760
      if test -d /usr/nec; then
7761
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7762
        hardcode_shlibpath_var=no
7763
        runpath_var=LD_RUN_PATH
7764
        hardcode_runpath_var=yes
7765
        ld_shlibs=yes
7766
      fi
7767
      ;;
7768
 
7769
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7770
      no_undefined_flag='${wl}-z,text'
7771
      archive_cmds_need_lc=no
7772
      hardcode_shlibpath_var=no
7773
      runpath_var='LD_RUN_PATH'
7774
 
7775
      if test "$GCC" = yes; then
7776
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7777
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7778
      else
7779
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7780
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7781
      fi
7782
      ;;
7783
 
7784
    sysv5* | sco3.2v5* | sco5v6*)
7785
      # Note: We can NOT use -z defs as we might desire, because we do not
7786
      # link with -lc, and that would cause any symbols used from libc to
7787
      # always be unresolved, which means just about no library would
7788
      # ever link correctly.  If we're not using GNU ld we use -z text
7789
      # though, which does catch some bad symbols but isn't as heavy-handed
7790
      # as -z defs.
7791
      no_undefined_flag='${wl}-z,text'
7792
      allow_undefined_flag='${wl}-z,nodefs'
7793
      archive_cmds_need_lc=no
7794
      hardcode_shlibpath_var=no
7795
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7796
      hardcode_libdir_separator=':'
7797
      link_all_deplibs=yes
7798
      export_dynamic_flag_spec='${wl}-Bexport'
7799
      runpath_var='LD_RUN_PATH'
7800
 
7801
      if test "$GCC" = yes; then
7802
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7803
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7804
      else
7805
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7806
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7807
      fi
7808
      ;;
7809
 
7810
    uts4*)
7811
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7812
      hardcode_libdir_flag_spec='-L$libdir'
7813
      hardcode_shlibpath_var=no
7814
      ;;
7815
 
7816
    *)
7817
      ld_shlibs=no
7818
      ;;
7819
    esac
7820
  fi
7821
 
7822
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7823
echo "${ECHO_T}$ld_shlibs" >&6; }
7824
test "$ld_shlibs" = no && can_build_shared=no
7825
 
7826
#
7827
# Do we need to explicitly link libc?
7828
#
7829
case "x$archive_cmds_need_lc" in
7830
x|xyes)
7831
  # Assume -lc should be added
7832
  archive_cmds_need_lc=yes
7833
 
7834
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7835
    case $archive_cmds in
7836
    *'~'*)
7837
      # FIXME: we may have to deal with multi-command sequences.
7838
      ;;
7839
    '$CC '*)
7840
      # Test whether the compiler implicitly links with -lc since on some
7841
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7842
      # to ld, don't add -lc before -lgcc.
7843
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7844
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7845
      $rm conftest*
7846
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7847
 
7848
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7849
  (eval $ac_compile) 2>&5
7850
  ac_status=$?
7851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852
  (exit $ac_status); } 2>conftest.err; then
7853
        soname=conftest
7854
        lib=conftest
7855
        libobjs=conftest.$ac_objext
7856
        deplibs=
7857
        wl=$lt_prog_compiler_wl
7858
        pic_flag=$lt_prog_compiler_pic
7859
        compiler_flags=-v
7860
        linker_flags=-v
7861
        verstring=
7862
        output_objdir=.
7863
        libname=conftest
7864
        lt_save_allow_undefined_flag=$allow_undefined_flag
7865
        allow_undefined_flag=
7866
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7867
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7868
  ac_status=$?
7869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870
  (exit $ac_status); }
7871
        then
7872
          archive_cmds_need_lc=no
7873
        else
7874
          archive_cmds_need_lc=yes
7875
        fi
7876
        allow_undefined_flag=$lt_save_allow_undefined_flag
7877
      else
7878
        cat conftest.err 1>&5
7879
      fi
7880
      $rm conftest*
7881
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7882
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7883
      ;;
7884
    esac
7885
  fi
7886
  ;;
7887
esac
7888
 
7889
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7890
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7891
library_names_spec=
7892
libname_spec='lib$name'
7893
soname_spec=
7894
shrext_cmds=".so"
7895
postinstall_cmds=
7896
postuninstall_cmds=
7897
finish_cmds=
7898
finish_eval=
7899
shlibpath_var=
7900
shlibpath_overrides_runpath=unknown
7901
version_type=none
7902
dynamic_linker="$host_os ld.so"
7903
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7904
 
7905
if test "$GCC" = yes; then
7906
  case $host_os in
7907
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7908
    *) lt_awk_arg="/^libraries:/" ;;
7909
  esac
7910
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7911
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7912
    # if the path contains ";" then we assume it to be the separator
7913
    # otherwise default to the standard path separator (i.e. ":") - it is
7914
    # assumed that no part of a normal pathname contains ";" but that should
7915
    # okay in the real world where ";" in dirpaths is itself problematic.
7916
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7917
  else
7918
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7919
  fi
7920
  # Ok, now we have the path, separated by spaces, we can step through it
7921
  # and add multilib dir if necessary.
7922
  lt_tmp_lt_search_path_spec=
7923
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7924
  for lt_sys_path in $lt_search_path_spec; do
7925
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7926
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7927
    else
7928
      test -d "$lt_sys_path" && \
7929
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7930
    fi
7931
  done
7932
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
7933
BEGIN {RS=" "; FS="/|\n";} {
7934
  lt_foo="";
7935
  lt_count=0;
7936
  for (lt_i = NF; lt_i > 0; lt_i--) {
7937
    if ($lt_i != "" && $lt_i != ".") {
7938
      if ($lt_i == "..") {
7939
        lt_count++;
7940
      } else {
7941
        if (lt_count == 0) {
7942
          lt_foo="/" $lt_i lt_foo;
7943
        } else {
7944
          lt_count--;
7945
        }
7946
      }
7947
    }
7948
  }
7949
  if (lt_foo != "") { lt_freq[lt_foo]++; }
7950
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
7951
}'`
7952
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
7953
else
7954
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7955
fi
7956
need_lib_prefix=unknown
7957
hardcode_into_libs=no
7958
 
7959
# when you set need_version to no, make sure it does not cause -set_version
7960
# flags to be left without arguments
7961
need_version=unknown
7962
 
7963
case $host_os in
7964
aix3*)
7965
  version_type=linux
7966
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7967
  shlibpath_var=LIBPATH
7968
 
7969
  # AIX 3 has no versioning support, so we append a major version to the name.
7970
  soname_spec='${libname}${release}${shared_ext}$major'
7971
  ;;
7972
 
7973
aix4* | aix5*)
7974
  version_type=linux
7975
  need_lib_prefix=no
7976
  need_version=no
7977
  hardcode_into_libs=yes
7978
  if test "$host_cpu" = ia64; then
7979
    # AIX 5 supports IA64
7980
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7981
    shlibpath_var=LD_LIBRARY_PATH
7982
  else
7983
    # With GCC up to 2.95.x, collect2 would create an import file
7984
    # for dependence libraries.  The import file would start with
7985
    # the line `#! .'.  This would cause the generated library to
7986
    # depend on `.', always an invalid library.  This was fixed in
7987
    # development snapshots of GCC prior to 3.0.
7988
    case $host_os in
7989
      aix4 | aix4.[01] | aix4.[01].*)
7990
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7991
           echo ' yes '
7992
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7993
        :
7994
      else
7995
        can_build_shared=no
7996
      fi
7997
      ;;
7998
    esac
7999
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8000
    # soname into executable. Probably we can add versioning support to
8001
    # collect2, so additional links can be useful in future.
8002
    if test "$aix_use_runtimelinking" = yes; then
8003
      # If using run time linking (on AIX 4.2 or later) use lib.so
8004
      # instead of lib.a to let people know that these are not
8005
      # typical AIX shared libraries.
8006
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8007
    else
8008
      # We preserve .a as extension for shared libraries through AIX4.2
8009
      # and later when we are not doing run time linking.
8010
      library_names_spec='${libname}${release}.a $libname.a'
8011
      soname_spec='${libname}${release}${shared_ext}$major'
8012
    fi
8013
    shlibpath_var=LIBPATH
8014
  fi
8015
  ;;
8016
 
8017
amigaos*)
8018
  library_names_spec='$libname.ixlibrary $libname.a'
8019
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8020
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8021
  ;;
8022
 
8023
beos*)
8024
  library_names_spec='${libname}${shared_ext}'
8025
  dynamic_linker="$host_os ld.so"
8026
  shlibpath_var=LIBRARY_PATH
8027
  ;;
8028
 
8029
bsdi[45]*)
8030
  version_type=linux
8031
  need_version=no
8032
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033
  soname_spec='${libname}${release}${shared_ext}$major'
8034
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8035
  shlibpath_var=LD_LIBRARY_PATH
8036
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8037
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8038
  # the default ld.so.conf also contains /usr/contrib/lib and
8039
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8040
  # libtool to hard-code these into programs
8041
  ;;
8042
 
8043
cygwin* | mingw* | pw32*)
8044
  version_type=windows
8045
  shrext_cmds=".dll"
8046
  need_version=no
8047
  need_lib_prefix=no
8048
 
8049
  case $GCC,$host_os in
8050
  yes,cygwin* | yes,mingw* | yes,pw32*)
8051
    library_names_spec='$libname.dll.a'
8052
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8053
    postinstall_cmds='base_file=`basename \${file}`~
8054
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8055
      dldir=$destdir/`dirname \$dlpath`~
8056
      test -d \$dldir || mkdir -p \$dldir~
8057
      $install_prog $dir/$dlname \$dldir/$dlname~
8058
      chmod a+x \$dldir/$dlname'
8059
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8060
      dlpath=$dir/\$dldll~
8061
       $rm \$dlpath'
8062
    shlibpath_overrides_runpath=yes
8063
 
8064
    case $host_os in
8065
    cygwin*)
8066
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8067
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8068
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8069
      ;;
8070
    mingw*)
8071
      # MinGW DLLs use traditional 'lib' prefix
8072
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8073
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8074
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8075
        # It is most probably a Windows format PATH printed by
8076
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8077
        # path with ; separators, and with drive letters. We can handle the
8078
        # drive letters (cygwin fileutils understands them), so leave them,
8079
        # especially as we might pass files found there to a mingw objdump,
8080
        # which wouldn't understand a cygwinified path. Ahh.
8081
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8082
      else
8083
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8084
      fi
8085
      ;;
8086
    pw32*)
8087
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8088
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8089
      ;;
8090
    esac
8091
    ;;
8092
 
8093
  *)
8094
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8095
    ;;
8096
  esac
8097
  dynamic_linker='Win32 ld.exe'
8098
  # FIXME: first we should search . and the directory the executable is in
8099
  shlibpath_var=PATH
8100
  ;;
8101
 
8102
darwin* | rhapsody*)
8103
  dynamic_linker="$host_os dyld"
8104
  version_type=darwin
8105
  need_lib_prefix=no
8106
  need_version=no
8107
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8108
  soname_spec='${libname}${release}${major}$shared_ext'
8109
  shlibpath_overrides_runpath=yes
8110
  shlibpath_var=DYLD_LIBRARY_PATH
8111
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8112
 
8113
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8114
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8115
  ;;
8116
 
8117
dgux*)
8118
  version_type=linux
8119
  need_lib_prefix=no
8120
  need_version=no
8121
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8122
  soname_spec='${libname}${release}${shared_ext}$major'
8123
  shlibpath_var=LD_LIBRARY_PATH
8124
  ;;
8125
 
8126
freebsd1*)
8127
  dynamic_linker=no
8128
  ;;
8129
 
8130
freebsd* | dragonfly*)
8131
  # DragonFly does not have aout.  When/if they implement a new
8132
  # versioning mechanism, adjust this.
8133
  if test -x /usr/bin/objformat; then
8134
    objformat=`/usr/bin/objformat`
8135
  else
8136
    case $host_os in
8137
    freebsd[123]*) objformat=aout ;;
8138
    *) objformat=elf ;;
8139
    esac
8140
  fi
8141
  version_type=freebsd-$objformat
8142
  case $version_type in
8143
    freebsd-elf*)
8144
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8145
      need_version=no
8146
      need_lib_prefix=no
8147
      ;;
8148
    freebsd-*)
8149
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8150
      need_version=yes
8151
      ;;
8152
  esac
8153
  shlibpath_var=LD_LIBRARY_PATH
8154
  case $host_os in
8155
  freebsd2*)
8156
    shlibpath_overrides_runpath=yes
8157
    ;;
8158
  freebsd3.[01]* | freebsdelf3.[01]*)
8159
    shlibpath_overrides_runpath=yes
8160
    hardcode_into_libs=yes
8161
    ;;
8162
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8163
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8164
    shlibpath_overrides_runpath=no
8165
    hardcode_into_libs=yes
8166
    ;;
8167
  *) # from 4.6 on, and DragonFly
8168
    shlibpath_overrides_runpath=yes
8169
    hardcode_into_libs=yes
8170
    ;;
8171
  esac
8172
  ;;
8173
 
8174
gnu*)
8175
  version_type=linux
8176
  need_lib_prefix=no
8177
  need_version=no
8178
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8179
  soname_spec='${libname}${release}${shared_ext}$major'
8180
  shlibpath_var=LD_LIBRARY_PATH
8181
  hardcode_into_libs=yes
8182
  ;;
8183
 
8184
hpux9* | hpux10* | hpux11*)
8185
  # Give a soname corresponding to the major version so that dld.sl refuses to
8186
  # link against other versions.
8187
  version_type=sunos
8188
  need_lib_prefix=no
8189
  need_version=no
8190
  case $host_cpu in
8191
  ia64*)
8192
    shrext_cmds='.so'
8193
    hardcode_into_libs=yes
8194
    dynamic_linker="$host_os dld.so"
8195
    shlibpath_var=LD_LIBRARY_PATH
8196
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8197
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8198
    soname_spec='${libname}${release}${shared_ext}$major'
8199
    if test "X$HPUX_IA64_MODE" = X32; then
8200
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8201
    else
8202
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8203
    fi
8204
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8205
    ;;
8206
   hppa*64*)
8207
     shrext_cmds='.sl'
8208
     hardcode_into_libs=yes
8209
     dynamic_linker="$host_os dld.sl"
8210
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8211
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8212
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8213
     soname_spec='${libname}${release}${shared_ext}$major'
8214
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8215
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8216
     ;;
8217
   *)
8218
    shrext_cmds='.sl'
8219
    dynamic_linker="$host_os dld.sl"
8220
    shlibpath_var=SHLIB_PATH
8221
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8222
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8223
    soname_spec='${libname}${release}${shared_ext}$major'
8224
    ;;
8225
  esac
8226
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8227
  postinstall_cmds='chmod 555 $lib'
8228
  ;;
8229
 
8230
interix[3-9]*)
8231
  version_type=linux
8232
  need_lib_prefix=no
8233
  need_version=no
8234
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8235
  soname_spec='${libname}${release}${shared_ext}$major'
8236
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8237
  shlibpath_var=LD_LIBRARY_PATH
8238
  shlibpath_overrides_runpath=no
8239
  hardcode_into_libs=yes
8240
  ;;
8241
 
8242
irix5* | irix6* | nonstopux*)
8243
  case $host_os in
8244
    nonstopux*) version_type=nonstopux ;;
8245
    *)
8246
        if test "$lt_cv_prog_gnu_ld" = yes; then
8247
                version_type=linux
8248
        else
8249
                version_type=irix
8250
        fi ;;
8251
  esac
8252
  need_lib_prefix=no
8253
  need_version=no
8254
  soname_spec='${libname}${release}${shared_ext}$major'
8255
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8256
  case $host_os in
8257
  irix5* | nonstopux*)
8258
    libsuff= shlibsuff=
8259
    ;;
8260
  *)
8261
    case $LD in # libtool.m4 will add one of these switches to LD
8262
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8263
      libsuff= shlibsuff= libmagic=32-bit;;
8264
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8265
      libsuff=32 shlibsuff=N32 libmagic=N32;;
8266
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8267
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8268
    *) libsuff= shlibsuff= libmagic=never-match;;
8269
    esac
8270
    ;;
8271
  esac
8272
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8273
  shlibpath_overrides_runpath=no
8274
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8275
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8276
  hardcode_into_libs=yes
8277
  ;;
8278
 
8279
# No shared lib support for Linux oldld, aout, or coff.
8280
linux*oldld* | linux*aout* | linux*coff*)
8281
  dynamic_linker=no
8282
  ;;
8283
 
8284
# This must be Linux ELF.
8285
linux* | k*bsd*-gnu)
8286
  version_type=linux
8287
  need_lib_prefix=no
8288
  need_version=no
8289
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290
  soname_spec='${libname}${release}${shared_ext}$major'
8291
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8292
  shlibpath_var=LD_LIBRARY_PATH
8293
  shlibpath_overrides_runpath=no
8294
  # This implies no fast_install, which is unacceptable.
8295
  # Some rework will be needed to allow for fast_install
8296
  # before this can be enabled.
8297
  hardcode_into_libs=yes
8298
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8299
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8300
 
8301
  # Append ld.so.conf contents to the search path
8302
  if test -f /etc/ld.so.conf; then
8303
    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;/^$/d' | tr '\n' ' '`
8304
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
8305
  fi
8306
 
8307
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8308
  # powerpc, because MkLinux only supported shared libraries with the
8309
  # GNU dynamic linker.  Since this was broken with cross compilers,
8310
  # most powerpc-linux boxes support dynamic linking these days and
8311
  # people can always --disable-shared, the test was removed, and we
8312
  # assume the GNU/Linux dynamic linker is in use.
8313
  dynamic_linker='GNU/Linux ld.so'
8314
  ;;
8315
 
8316
netbsd*)
8317
  version_type=sunos
8318
  need_lib_prefix=no
8319
  need_version=no
8320
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8321
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8322
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8323
    dynamic_linker='NetBSD (a.out) ld.so'
8324
  else
8325
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8326
    soname_spec='${libname}${release}${shared_ext}$major'
8327
    dynamic_linker='NetBSD ld.elf_so'
8328
  fi
8329
  shlibpath_var=LD_LIBRARY_PATH
8330
  shlibpath_overrides_runpath=yes
8331
  hardcode_into_libs=yes
8332
  ;;
8333
 
8334
newsos6)
8335
  version_type=linux
8336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8337
  shlibpath_var=LD_LIBRARY_PATH
8338
  shlibpath_overrides_runpath=yes
8339
  ;;
8340
 
8341
nto-qnx*)
8342
  version_type=linux
8343
  need_lib_prefix=no
8344
  need_version=no
8345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8346
  soname_spec='${libname}${release}${shared_ext}$major'
8347
  shlibpath_var=LD_LIBRARY_PATH
8348
  shlibpath_overrides_runpath=yes
8349
  ;;
8350
 
8351
openbsd*)
8352
  version_type=sunos
8353
  sys_lib_dlsearch_path_spec="/usr/lib"
8354
  need_lib_prefix=no
8355
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8356
  case $host_os in
8357
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8358
    *)                         need_version=no  ;;
8359
  esac
8360
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8361
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8362
  shlibpath_var=LD_LIBRARY_PATH
8363
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8364
    case $host_os in
8365
      openbsd2.[89] | openbsd2.[89].*)
8366
        shlibpath_overrides_runpath=no
8367
        ;;
8368
      *)
8369
        shlibpath_overrides_runpath=yes
8370
        ;;
8371
      esac
8372
  else
8373
    shlibpath_overrides_runpath=yes
8374
  fi
8375
  ;;
8376
 
8377
os2*)
8378
  libname_spec='$name'
8379
  shrext_cmds=".dll"
8380
  need_lib_prefix=no
8381
  library_names_spec='$libname${shared_ext} $libname.a'
8382
  dynamic_linker='OS/2 ld.exe'
8383
  shlibpath_var=LIBPATH
8384
  ;;
8385
 
8386
osf3* | osf4* | osf5*)
8387
  version_type=osf
8388
  need_lib_prefix=no
8389
  need_version=no
8390
  soname_spec='${libname}${release}${shared_ext}$major'
8391
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392
  shlibpath_var=LD_LIBRARY_PATH
8393
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8394
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8395
  ;;
8396
 
8397
rdos*)
8398
  dynamic_linker=no
8399
  ;;
8400
 
8401
solaris*)
8402
  version_type=linux
8403
  need_lib_prefix=no
8404
  need_version=no
8405
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8406
  soname_spec='${libname}${release}${shared_ext}$major'
8407
  shlibpath_var=LD_LIBRARY_PATH
8408
  shlibpath_overrides_runpath=yes
8409
  hardcode_into_libs=yes
8410
  # ldd complains unless libraries are executable
8411
  postinstall_cmds='chmod +x $lib'
8412
  ;;
8413
 
8414
sunos4*)
8415
  version_type=sunos
8416
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8417
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8418
  shlibpath_var=LD_LIBRARY_PATH
8419
  shlibpath_overrides_runpath=yes
8420
  if test "$with_gnu_ld" = yes; then
8421
    need_lib_prefix=no
8422
  fi
8423
  need_version=yes
8424
  ;;
8425
 
8426
sysv4 | sysv4.3*)
8427
  version_type=linux
8428
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8429
  soname_spec='${libname}${release}${shared_ext}$major'
8430
  shlibpath_var=LD_LIBRARY_PATH
8431
  case $host_vendor in
8432
    sni)
8433
      shlibpath_overrides_runpath=no
8434
      need_lib_prefix=no
8435
      export_dynamic_flag_spec='${wl}-Blargedynsym'
8436
      runpath_var=LD_RUN_PATH
8437
      ;;
8438
    siemens)
8439
      need_lib_prefix=no
8440
      ;;
8441
    motorola)
8442
      need_lib_prefix=no
8443
      need_version=no
8444
      shlibpath_overrides_runpath=no
8445
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8446
      ;;
8447
  esac
8448
  ;;
8449
 
8450
sysv4*MP*)
8451
  if test -d /usr/nec ;then
8452
    version_type=linux
8453
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8454
    soname_spec='$libname${shared_ext}.$major'
8455
    shlibpath_var=LD_LIBRARY_PATH
8456
  fi
8457
  ;;
8458
 
8459
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8460
  version_type=freebsd-elf
8461
  need_lib_prefix=no
8462
  need_version=no
8463
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8464
  soname_spec='${libname}${release}${shared_ext}$major'
8465
  shlibpath_var=LD_LIBRARY_PATH
8466
  hardcode_into_libs=yes
8467
  if test "$with_gnu_ld" = yes; then
8468
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8469
    shlibpath_overrides_runpath=no
8470
  else
8471
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8472
    shlibpath_overrides_runpath=yes
8473
    case $host_os in
8474
      sco3.2v5*)
8475
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8476
        ;;
8477
    esac
8478
  fi
8479
  sys_lib_dlsearch_path_spec='/usr/lib'
8480
  ;;
8481
 
8482
uts4*)
8483
  version_type=linux
8484
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8485
  soname_spec='${libname}${release}${shared_ext}$major'
8486
  shlibpath_var=LD_LIBRARY_PATH
8487
  ;;
8488
 
8489
*)
8490
  dynamic_linker=no
8491
  ;;
8492
esac
8493
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8494
echo "${ECHO_T}$dynamic_linker" >&6; }
8495
test "$dynamic_linker" = no && can_build_shared=no
8496
 
8497
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8498
if test "$GCC" = yes; then
8499
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8500
fi
8501
 
8502
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8503
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8504
hardcode_action=
8505
if test -n "$hardcode_libdir_flag_spec" || \
8506
   test -n "$runpath_var" || \
8507
   test "X$hardcode_automatic" = "Xyes" ; then
8508
 
8509
  # We can hardcode non-existant directories.
8510
  if test "$hardcode_direct" != no &&
8511
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8512
     # have to relink, otherwise we might link with an installed library
8513
     # when we should be linking with a yet-to-be-installed one
8514
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8515
     test "$hardcode_minus_L" != no; then
8516
    # Linking always hardcodes the temporary library directory.
8517
    hardcode_action=relink
8518
  else
8519
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8520
    hardcode_action=immediate
8521
  fi
8522
else
8523
  # We cannot hardcode anything, or else we can only hardcode existing
8524
  # directories.
8525
  hardcode_action=unsupported
8526
fi
8527
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8528
echo "${ECHO_T}$hardcode_action" >&6; }
8529
 
8530
if test "$hardcode_action" = relink; then
8531
  # Fast installation is not supported
8532
  enable_fast_install=no
8533
elif test "$shlibpath_overrides_runpath" = yes ||
8534
     test "$enable_shared" = no; then
8535
  # Fast installation is not necessary
8536
  enable_fast_install=needless
8537
fi
8538
 
8539
striplib=
8540
old_striplib=
8541
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8542
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8543
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8544
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8545
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8546
  { echo "$as_me:$LINENO: result: yes" >&5
8547
echo "${ECHO_T}yes" >&6; }
8548
else
8549
# FIXME - insert some real tests, host_os isn't really good enough
8550
  case $host_os in
8551
   darwin*)
8552
       if test -n "$STRIP" ; then
8553
         striplib="$STRIP -x"
8554
         old_striplib="$STRIP -S"
8555
         { echo "$as_me:$LINENO: result: yes" >&5
8556
echo "${ECHO_T}yes" >&6; }
8557
       else
8558
  { echo "$as_me:$LINENO: result: no" >&5
8559
echo "${ECHO_T}no" >&6; }
8560
fi
8561
       ;;
8562
   *)
8563
  { echo "$as_me:$LINENO: result: no" >&5
8564
echo "${ECHO_T}no" >&6; }
8565
    ;;
8566
  esac
8567
fi
8568
 
8569
if test "x$enable_dlopen" != xyes; then
8570
  enable_dlopen=unknown
8571
  enable_dlopen_self=unknown
8572
  enable_dlopen_self_static=unknown
8573
else
8574
  lt_cv_dlopen=no
8575
  lt_cv_dlopen_libs=
8576
 
8577
  case $host_os in
8578
  beos*)
8579
    lt_cv_dlopen="load_add_on"
8580
    lt_cv_dlopen_libs=
8581
    lt_cv_dlopen_self=yes
8582
    ;;
8583
 
8584
  mingw* | pw32*)
8585
    lt_cv_dlopen="LoadLibrary"
8586
    lt_cv_dlopen_libs=
8587
   ;;
8588
 
8589
  cygwin*)
8590
    lt_cv_dlopen="dlopen"
8591
    lt_cv_dlopen_libs=
8592
   ;;
8593
 
8594
  darwin*)
8595
  # if libdl is installed we need to link against it
8596
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8597
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8598
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8599
  echo $ECHO_N "(cached) $ECHO_C" >&6
8600
else
8601
  ac_check_lib_save_LIBS=$LIBS
8602
LIBS="-ldl  $LIBS"
8603
cat >conftest.$ac_ext <<_ACEOF
8604
/* confdefs.h.  */
8605
_ACEOF
8606
cat confdefs.h >>conftest.$ac_ext
8607
cat >>conftest.$ac_ext <<_ACEOF
8608
/* end confdefs.h.  */
8609
 
8610
/* Override any GCC internal prototype to avoid an error.
8611
   Use char because int might match the return type of a GCC
8612
   builtin and then its argument prototype would still apply.  */
8613
#ifdef __cplusplus
8614
extern "C"
8615
#endif
8616
char dlopen ();
8617
int
8618
main ()
8619
{
8620
return dlopen ();
8621
  ;
8622
  return 0;
8623
}
8624
_ACEOF
8625
rm -f conftest.$ac_objext conftest$ac_exeext
8626
if { (ac_try="$ac_link"
8627
case "(($ac_try" in
8628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629
  *) ac_try_echo=$ac_try;;
8630
esac
8631
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632
  (eval "$ac_link") 2>conftest.er1
8633
  ac_status=$?
8634
  grep -v '^ *+' conftest.er1 >conftest.err
8635
  rm -f conftest.er1
8636
  cat conftest.err >&5
8637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638
  (exit $ac_status); } && {
8639
         test -z "$ac_c_werror_flag" ||
8640
         test ! -s conftest.err
8641
       } && test -s conftest$ac_exeext &&
8642
       $as_test_x conftest$ac_exeext; then
8643
  ac_cv_lib_dl_dlopen=yes
8644
else
8645
  echo "$as_me: failed program was:" >&5
8646
sed 's/^/| /' conftest.$ac_ext >&5
8647
 
8648
        ac_cv_lib_dl_dlopen=no
8649
fi
8650
 
8651
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8652
      conftest$ac_exeext conftest.$ac_ext
8653
LIBS=$ac_check_lib_save_LIBS
8654
fi
8655
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8656
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8657
if test $ac_cv_lib_dl_dlopen = yes; then
8658
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8659
else
8660
 
8661
    lt_cv_dlopen="dyld"
8662
    lt_cv_dlopen_libs=
8663
    lt_cv_dlopen_self=yes
8664
 
8665
fi
8666
 
8667
   ;;
8668
 
8669
  *)
8670
    { echo "$as_me:$LINENO: checking for shl_load" >&5
8671
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8672
if test "${ac_cv_func_shl_load+set}" = set; then
8673
  echo $ECHO_N "(cached) $ECHO_C" >&6
8674
else
8675
  cat >conftest.$ac_ext <<_ACEOF
8676
/* confdefs.h.  */
8677
_ACEOF
8678
cat confdefs.h >>conftest.$ac_ext
8679
cat >>conftest.$ac_ext <<_ACEOF
8680
/* end confdefs.h.  */
8681
/* Define shl_load to an innocuous variant, in case  declares shl_load.
8682
   For example, HP-UX 11i  declares gettimeofday.  */
8683
#define shl_load innocuous_shl_load
8684
 
8685
/* System header to define __stub macros and hopefully few prototypes,
8686
    which can conflict with char shl_load (); below.
8687
    Prefer  to  if __STDC__ is defined, since
8688
     exists even on freestanding compilers.  */
8689
 
8690
#ifdef __STDC__
8691
# include 
8692
#else
8693
# include 
8694
#endif
8695
 
8696
#undef shl_load
8697
 
8698
/* Override any GCC internal prototype to avoid an error.
8699
   Use char because int might match the return type of a GCC
8700
   builtin and then its argument prototype would still apply.  */
8701
#ifdef __cplusplus
8702
extern "C"
8703
#endif
8704
char shl_load ();
8705
/* The GNU C library defines this for functions which it implements
8706
    to always fail with ENOSYS.  Some functions are actually named
8707
    something starting with __ and the normal name is an alias.  */
8708
#if defined __stub_shl_load || defined __stub___shl_load
8709
choke me
8710
#endif
8711
 
8712
int
8713
main ()
8714
{
8715
return shl_load ();
8716
  ;
8717
  return 0;
8718
}
8719
_ACEOF
8720
rm -f conftest.$ac_objext conftest$ac_exeext
8721
if { (ac_try="$ac_link"
8722
case "(($ac_try" in
8723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724
  *) ac_try_echo=$ac_try;;
8725
esac
8726
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727
  (eval "$ac_link") 2>conftest.er1
8728
  ac_status=$?
8729
  grep -v '^ *+' conftest.er1 >conftest.err
8730
  rm -f conftest.er1
8731
  cat conftest.err >&5
8732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733
  (exit $ac_status); } && {
8734
         test -z "$ac_c_werror_flag" ||
8735
         test ! -s conftest.err
8736
       } && test -s conftest$ac_exeext &&
8737
       $as_test_x conftest$ac_exeext; then
8738
  ac_cv_func_shl_load=yes
8739
else
8740
  echo "$as_me: failed program was:" >&5
8741
sed 's/^/| /' conftest.$ac_ext >&5
8742
 
8743
        ac_cv_func_shl_load=no
8744
fi
8745
 
8746
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8747
      conftest$ac_exeext conftest.$ac_ext
8748
fi
8749
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8750
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8751
if test $ac_cv_func_shl_load = yes; then
8752
  lt_cv_dlopen="shl_load"
8753
else
8754
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8755
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8756
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8757
  echo $ECHO_N "(cached) $ECHO_C" >&6
8758
else
8759
  ac_check_lib_save_LIBS=$LIBS
8760
LIBS="-ldld  $LIBS"
8761
cat >conftest.$ac_ext <<_ACEOF
8762
/* confdefs.h.  */
8763
_ACEOF
8764
cat confdefs.h >>conftest.$ac_ext
8765
cat >>conftest.$ac_ext <<_ACEOF
8766
/* end confdefs.h.  */
8767
 
8768
/* Override any GCC internal prototype to avoid an error.
8769
   Use char because int might match the return type of a GCC
8770
   builtin and then its argument prototype would still apply.  */
8771
#ifdef __cplusplus
8772
extern "C"
8773
#endif
8774
char shl_load ();
8775
int
8776
main ()
8777
{
8778
return shl_load ();
8779
  ;
8780
  return 0;
8781
}
8782
_ACEOF
8783
rm -f conftest.$ac_objext conftest$ac_exeext
8784
if { (ac_try="$ac_link"
8785
case "(($ac_try" in
8786
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787
  *) ac_try_echo=$ac_try;;
8788
esac
8789
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790
  (eval "$ac_link") 2>conftest.er1
8791
  ac_status=$?
8792
  grep -v '^ *+' conftest.er1 >conftest.err
8793
  rm -f conftest.er1
8794
  cat conftest.err >&5
8795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796
  (exit $ac_status); } && {
8797
         test -z "$ac_c_werror_flag" ||
8798
         test ! -s conftest.err
8799
       } && test -s conftest$ac_exeext &&
8800
       $as_test_x conftest$ac_exeext; then
8801
  ac_cv_lib_dld_shl_load=yes
8802
else
8803
  echo "$as_me: failed program was:" >&5
8804
sed 's/^/| /' conftest.$ac_ext >&5
8805
 
8806
        ac_cv_lib_dld_shl_load=no
8807
fi
8808
 
8809
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8810
      conftest$ac_exeext conftest.$ac_ext
8811
LIBS=$ac_check_lib_save_LIBS
8812
fi
8813
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8814
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8815
if test $ac_cv_lib_dld_shl_load = yes; then
8816
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8817
else
8818
  { echo "$as_me:$LINENO: checking for dlopen" >&5
8819
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8820
if test "${ac_cv_func_dlopen+set}" = set; then
8821
  echo $ECHO_N "(cached) $ECHO_C" >&6
8822
else
8823
  cat >conftest.$ac_ext <<_ACEOF
8824
/* confdefs.h.  */
8825
_ACEOF
8826
cat confdefs.h >>conftest.$ac_ext
8827
cat >>conftest.$ac_ext <<_ACEOF
8828
/* end confdefs.h.  */
8829
/* Define dlopen to an innocuous variant, in case  declares dlopen.
8830
   For example, HP-UX 11i  declares gettimeofday.  */
8831
#define dlopen innocuous_dlopen
8832
 
8833
/* System header to define __stub macros and hopefully few prototypes,
8834
    which can conflict with char dlopen (); below.
8835
    Prefer  to  if __STDC__ is defined, since
8836
     exists even on freestanding compilers.  */
8837
 
8838
#ifdef __STDC__
8839
# include 
8840
#else
8841
# include 
8842
#endif
8843
 
8844
#undef dlopen
8845
 
8846
/* Override any GCC internal prototype to avoid an error.
8847
   Use char because int might match the return type of a GCC
8848
   builtin and then its argument prototype would still apply.  */
8849
#ifdef __cplusplus
8850
extern "C"
8851
#endif
8852
char dlopen ();
8853
/* The GNU C library defines this for functions which it implements
8854
    to always fail with ENOSYS.  Some functions are actually named
8855
    something starting with __ and the normal name is an alias.  */
8856
#if defined __stub_dlopen || defined __stub___dlopen
8857
choke me
8858
#endif
8859
 
8860
int
8861
main ()
8862
{
8863
return dlopen ();
8864
  ;
8865
  return 0;
8866
}
8867
_ACEOF
8868
rm -f conftest.$ac_objext conftest$ac_exeext
8869
if { (ac_try="$ac_link"
8870
case "(($ac_try" in
8871
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872
  *) ac_try_echo=$ac_try;;
8873
esac
8874
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875
  (eval "$ac_link") 2>conftest.er1
8876
  ac_status=$?
8877
  grep -v '^ *+' conftest.er1 >conftest.err
8878
  rm -f conftest.er1
8879
  cat conftest.err >&5
8880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881
  (exit $ac_status); } && {
8882
         test -z "$ac_c_werror_flag" ||
8883
         test ! -s conftest.err
8884
       } && test -s conftest$ac_exeext &&
8885
       $as_test_x conftest$ac_exeext; then
8886
  ac_cv_func_dlopen=yes
8887
else
8888
  echo "$as_me: failed program was:" >&5
8889
sed 's/^/| /' conftest.$ac_ext >&5
8890
 
8891
        ac_cv_func_dlopen=no
8892
fi
8893
 
8894
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8895
      conftest$ac_exeext conftest.$ac_ext
8896
fi
8897
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8898
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8899
if test $ac_cv_func_dlopen = yes; then
8900
  lt_cv_dlopen="dlopen"
8901
else
8902
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8903
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8904
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8905
  echo $ECHO_N "(cached) $ECHO_C" >&6
8906
else
8907
  ac_check_lib_save_LIBS=$LIBS
8908
LIBS="-ldl  $LIBS"
8909
cat >conftest.$ac_ext <<_ACEOF
8910
/* confdefs.h.  */
8911
_ACEOF
8912
cat confdefs.h >>conftest.$ac_ext
8913
cat >>conftest.$ac_ext <<_ACEOF
8914
/* end confdefs.h.  */
8915
 
8916
/* Override any GCC internal prototype to avoid an error.
8917
   Use char because int might match the return type of a GCC
8918
   builtin and then its argument prototype would still apply.  */
8919
#ifdef __cplusplus
8920
extern "C"
8921
#endif
8922
char dlopen ();
8923
int
8924
main ()
8925
{
8926
return dlopen ();
8927
  ;
8928
  return 0;
8929
}
8930
_ACEOF
8931
rm -f conftest.$ac_objext conftest$ac_exeext
8932
if { (ac_try="$ac_link"
8933
case "(($ac_try" in
8934
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935
  *) ac_try_echo=$ac_try;;
8936
esac
8937
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938
  (eval "$ac_link") 2>conftest.er1
8939
  ac_status=$?
8940
  grep -v '^ *+' conftest.er1 >conftest.err
8941
  rm -f conftest.er1
8942
  cat conftest.err >&5
8943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944
  (exit $ac_status); } && {
8945
         test -z "$ac_c_werror_flag" ||
8946
         test ! -s conftest.err
8947
       } && test -s conftest$ac_exeext &&
8948
       $as_test_x conftest$ac_exeext; then
8949
  ac_cv_lib_dl_dlopen=yes
8950
else
8951
  echo "$as_me: failed program was:" >&5
8952
sed 's/^/| /' conftest.$ac_ext >&5
8953
 
8954
        ac_cv_lib_dl_dlopen=no
8955
fi
8956
 
8957
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8958
      conftest$ac_exeext conftest.$ac_ext
8959
LIBS=$ac_check_lib_save_LIBS
8960
fi
8961
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8962
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8963
if test $ac_cv_lib_dl_dlopen = yes; then
8964
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8965
else
8966
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8967
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8968
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8969
  echo $ECHO_N "(cached) $ECHO_C" >&6
8970
else
8971
  ac_check_lib_save_LIBS=$LIBS
8972
LIBS="-lsvld  $LIBS"
8973
cat >conftest.$ac_ext <<_ACEOF
8974
/* confdefs.h.  */
8975
_ACEOF
8976
cat confdefs.h >>conftest.$ac_ext
8977
cat >>conftest.$ac_ext <<_ACEOF
8978
/* end confdefs.h.  */
8979
 
8980
/* Override any GCC internal prototype to avoid an error.
8981
   Use char because int might match the return type of a GCC
8982
   builtin and then its argument prototype would still apply.  */
8983
#ifdef __cplusplus
8984
extern "C"
8985
#endif
8986
char dlopen ();
8987
int
8988
main ()
8989
{
8990
return dlopen ();
8991
  ;
8992
  return 0;
8993
}
8994
_ACEOF
8995
rm -f conftest.$ac_objext conftest$ac_exeext
8996
if { (ac_try="$ac_link"
8997
case "(($ac_try" in
8998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999
  *) ac_try_echo=$ac_try;;
9000
esac
9001
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002
  (eval "$ac_link") 2>conftest.er1
9003
  ac_status=$?
9004
  grep -v '^ *+' conftest.er1 >conftest.err
9005
  rm -f conftest.er1
9006
  cat conftest.err >&5
9007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008
  (exit $ac_status); } && {
9009
         test -z "$ac_c_werror_flag" ||
9010
         test ! -s conftest.err
9011
       } && test -s conftest$ac_exeext &&
9012
       $as_test_x conftest$ac_exeext; then
9013
  ac_cv_lib_svld_dlopen=yes
9014
else
9015
  echo "$as_me: failed program was:" >&5
9016
sed 's/^/| /' conftest.$ac_ext >&5
9017
 
9018
        ac_cv_lib_svld_dlopen=no
9019
fi
9020
 
9021
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9022
      conftest$ac_exeext conftest.$ac_ext
9023
LIBS=$ac_check_lib_save_LIBS
9024
fi
9025
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9026
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9027
if test $ac_cv_lib_svld_dlopen = yes; then
9028
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9029
else
9030
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9031
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9032
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9033
  echo $ECHO_N "(cached) $ECHO_C" >&6
9034
else
9035
  ac_check_lib_save_LIBS=$LIBS
9036
LIBS="-ldld  $LIBS"
9037
cat >conftest.$ac_ext <<_ACEOF
9038
/* confdefs.h.  */
9039
_ACEOF
9040
cat confdefs.h >>conftest.$ac_ext
9041
cat >>conftest.$ac_ext <<_ACEOF
9042
/* end confdefs.h.  */
9043
 
9044
/* Override any GCC internal prototype to avoid an error.
9045
   Use char because int might match the return type of a GCC
9046
   builtin and then its argument prototype would still apply.  */
9047
#ifdef __cplusplus
9048
extern "C"
9049
#endif
9050
char dld_link ();
9051
int
9052
main ()
9053
{
9054
return dld_link ();
9055
  ;
9056
  return 0;
9057
}
9058
_ACEOF
9059
rm -f conftest.$ac_objext conftest$ac_exeext
9060
if { (ac_try="$ac_link"
9061
case "(($ac_try" in
9062
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063
  *) ac_try_echo=$ac_try;;
9064
esac
9065
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066
  (eval "$ac_link") 2>conftest.er1
9067
  ac_status=$?
9068
  grep -v '^ *+' conftest.er1 >conftest.err
9069
  rm -f conftest.er1
9070
  cat conftest.err >&5
9071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072
  (exit $ac_status); } && {
9073
         test -z "$ac_c_werror_flag" ||
9074
         test ! -s conftest.err
9075
       } && test -s conftest$ac_exeext &&
9076
       $as_test_x conftest$ac_exeext; then
9077
  ac_cv_lib_dld_dld_link=yes
9078
else
9079
  echo "$as_me: failed program was:" >&5
9080
sed 's/^/| /' conftest.$ac_ext >&5
9081
 
9082
        ac_cv_lib_dld_dld_link=no
9083
fi
9084
 
9085
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9086
      conftest$ac_exeext conftest.$ac_ext
9087
LIBS=$ac_check_lib_save_LIBS
9088
fi
9089
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9090
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9091
if test $ac_cv_lib_dld_dld_link = yes; then
9092
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9093
fi
9094
 
9095
 
9096
fi
9097
 
9098
 
9099
fi
9100
 
9101
 
9102
fi
9103
 
9104
 
9105
fi
9106
 
9107
 
9108
fi
9109
 
9110
    ;;
9111
  esac
9112
 
9113
  if test "x$lt_cv_dlopen" != xno; then
9114
    enable_dlopen=yes
9115
  else
9116
    enable_dlopen=no
9117
  fi
9118
 
9119
  case $lt_cv_dlopen in
9120
  dlopen)
9121
    save_CPPFLAGS="$CPPFLAGS"
9122
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9123
 
9124
    save_LDFLAGS="$LDFLAGS"
9125
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9126
 
9127
    save_LIBS="$LIBS"
9128
    LIBS="$lt_cv_dlopen_libs $LIBS"
9129
 
9130
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9131
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9132
if test "${lt_cv_dlopen_self+set}" = set; then
9133
  echo $ECHO_N "(cached) $ECHO_C" >&6
9134
else
9135
          if test "$cross_compiling" = yes; then :
9136
  lt_cv_dlopen_self=cross
9137
else
9138
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9139
  lt_status=$lt_dlunknown
9140
  cat > conftest.$ac_ext <
9141
#line __oline__ "configure"
9142
#include "confdefs.h"
9143
 
9144
#if HAVE_DLFCN_H
9145
#include 
9146
#endif
9147
 
9148
#include 
9149
 
9150
#ifdef RTLD_GLOBAL
9151
#  define LT_DLGLOBAL           RTLD_GLOBAL
9152
#else
9153
#  ifdef DL_GLOBAL
9154
#    define LT_DLGLOBAL         DL_GLOBAL
9155
#  else
9156
#    define LT_DLGLOBAL         0
9157
#  endif
9158
#endif
9159
 
9160
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9161
   find out it does not work in some platform. */
9162
#ifndef LT_DLLAZY_OR_NOW
9163
#  ifdef RTLD_LAZY
9164
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9165
#  else
9166
#    ifdef DL_LAZY
9167
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9168
#    else
9169
#      ifdef RTLD_NOW
9170
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9171
#      else
9172
#        ifdef DL_NOW
9173
#          define LT_DLLAZY_OR_NOW      DL_NOW
9174
#        else
9175
#          define LT_DLLAZY_OR_NOW      0
9176
#        endif
9177
#      endif
9178
#    endif
9179
#  endif
9180
#endif
9181
 
9182
#ifdef __cplusplus
9183
extern "C" void exit (int);
9184
#endif
9185
 
9186
void fnord() { int i=42;}
9187
int main ()
9188
{
9189
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9190
  int status = $lt_dlunknown;
9191
 
9192
  if (self)
9193
    {
9194
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9195
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9196
      /* dlclose (self); */
9197
    }
9198
  else
9199
    puts (dlerror ());
9200
 
9201
    exit (status);
9202
}
9203
EOF
9204
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9205
  (eval $ac_link) 2>&5
9206
  ac_status=$?
9207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9209
    (./conftest; exit; ) >&5 2>/dev/null
9210
    lt_status=$?
9211
    case x$lt_status in
9212
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9213
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9214
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9215
    esac
9216
  else :
9217
    # compilation failed
9218
    lt_cv_dlopen_self=no
9219
  fi
9220
fi
9221
rm -fr conftest*
9222
 
9223
 
9224
fi
9225
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9226
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9227
 
9228
    if test "x$lt_cv_dlopen_self" = xyes; then
9229
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9230
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9231
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9232
if test "${lt_cv_dlopen_self_static+set}" = set; then
9233
  echo $ECHO_N "(cached) $ECHO_C" >&6
9234
else
9235
          if test "$cross_compiling" = yes; then :
9236
  lt_cv_dlopen_self_static=cross
9237
else
9238
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9239
  lt_status=$lt_dlunknown
9240
  cat > conftest.$ac_ext <
9241
#line __oline__ "configure"
9242
#include "confdefs.h"
9243
 
9244
#if HAVE_DLFCN_H
9245
#include 
9246
#endif
9247
 
9248
#include 
9249
 
9250
#ifdef RTLD_GLOBAL
9251
#  define LT_DLGLOBAL           RTLD_GLOBAL
9252
#else
9253
#  ifdef DL_GLOBAL
9254
#    define LT_DLGLOBAL         DL_GLOBAL
9255
#  else
9256
#    define LT_DLGLOBAL         0
9257
#  endif
9258
#endif
9259
 
9260
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9261
   find out it does not work in some platform. */
9262
#ifndef LT_DLLAZY_OR_NOW
9263
#  ifdef RTLD_LAZY
9264
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9265
#  else
9266
#    ifdef DL_LAZY
9267
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9268
#    else
9269
#      ifdef RTLD_NOW
9270
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9271
#      else
9272
#        ifdef DL_NOW
9273
#          define LT_DLLAZY_OR_NOW      DL_NOW
9274
#        else
9275
#          define LT_DLLAZY_OR_NOW      0
9276
#        endif
9277
#      endif
9278
#    endif
9279
#  endif
9280
#endif
9281
 
9282
#ifdef __cplusplus
9283
extern "C" void exit (int);
9284
#endif
9285
 
9286
void fnord() { int i=42;}
9287
int main ()
9288
{
9289
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9290
  int status = $lt_dlunknown;
9291
 
9292
  if (self)
9293
    {
9294
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9295
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9296
      /* dlclose (self); */
9297
    }
9298
  else
9299
    puts (dlerror ());
9300
 
9301
    exit (status);
9302
}
9303
EOF
9304
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9305
  (eval $ac_link) 2>&5
9306
  ac_status=$?
9307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9309
    (./conftest; exit; ) >&5 2>/dev/null
9310
    lt_status=$?
9311
    case x$lt_status in
9312
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9313
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9314
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9315
    esac
9316
  else :
9317
    # compilation failed
9318
    lt_cv_dlopen_self_static=no
9319
  fi
9320
fi
9321
rm -fr conftest*
9322
 
9323
 
9324
fi
9325
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9326
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9327
    fi
9328
 
9329
    CPPFLAGS="$save_CPPFLAGS"
9330
    LDFLAGS="$save_LDFLAGS"
9331
    LIBS="$save_LIBS"
9332
    ;;
9333
  esac
9334
 
9335
  case $lt_cv_dlopen_self in
9336
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9337
  *) enable_dlopen_self=unknown ;;
9338
  esac
9339
 
9340
  case $lt_cv_dlopen_self_static in
9341
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9342
  *) enable_dlopen_self_static=unknown ;;
9343
  esac
9344
fi
9345
 
9346
 
9347
# Report which library types will actually be built
9348
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9349
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9350
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9351
echo "${ECHO_T}$can_build_shared" >&6; }
9352
 
9353
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9354
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9355
test "$can_build_shared" = "no" && enable_shared=no
9356
 
9357
# On AIX, shared libraries and static libraries use the same namespace, and
9358
# are all built from PIC.
9359
case $host_os in
9360
aix3*)
9361
  test "$enable_shared" = yes && enable_static=no
9362
  if test -n "$RANLIB"; then
9363
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9364
    postinstall_cmds='$RANLIB $lib'
9365
  fi
9366
  ;;
9367
 
9368
aix4* | aix5*)
9369
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9370
    test "$enable_shared" = yes && enable_static=no
9371
  fi
9372
    ;;
9373
esac
9374
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9375
echo "${ECHO_T}$enable_shared" >&6; }
9376
 
9377
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9378
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9379
# Make sure either enable_shared or enable_static is yes.
9380
test "$enable_shared" = yes || enable_static=yes
9381
{ echo "$as_me:$LINENO: result: $enable_static" >&5
9382
echo "${ECHO_T}$enable_static" >&6; }
9383
 
9384
# The else clause should only fire when bootstrapping the
9385
# libtool distribution, otherwise you forgot to ship ltmain.sh
9386
# with your package, and you will get complaints that there are
9387
# no rules to generate ltmain.sh.
9388
if test -f "$ltmain"; then
9389
  # See if we are running on zsh, and set the options which allow our commands through
9390
  # without removal of \ escapes.
9391
  if test -n "${ZSH_VERSION+set}" ; then
9392
    setopt NO_GLOB_SUBST
9393
  fi
9394
  # Now quote all the things that may contain metacharacters while being
9395
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9396
  # variables and quote the copies for generation of the libtool script.
9397
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9398
    SED SHELL STRIP \
9399
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9400
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9401
    deplibs_check_method reload_flag reload_cmds need_locks \
9402
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9403
    lt_cv_sys_global_symbol_to_c_name_address \
9404
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9405
    old_postinstall_cmds old_postuninstall_cmds \
9406
    compiler \
9407
    CC \
9408
    LD \
9409
    lt_prog_compiler_wl \
9410
    lt_prog_compiler_pic \
9411
    lt_prog_compiler_static \
9412
    lt_prog_compiler_no_builtin_flag \
9413
    export_dynamic_flag_spec \
9414
    thread_safe_flag_spec \
9415
    whole_archive_flag_spec \
9416
    enable_shared_with_static_runtimes \
9417
    old_archive_cmds \
9418
    old_archive_from_new_cmds \
9419
    predep_objects \
9420
    postdep_objects \
9421
    predeps \
9422
    postdeps \
9423
    compiler_lib_search_path \
9424
    archive_cmds \
9425
    archive_expsym_cmds \
9426
    postinstall_cmds \
9427
    postuninstall_cmds \
9428
    old_archive_from_expsyms_cmds \
9429
    allow_undefined_flag \
9430
    no_undefined_flag \
9431
    export_symbols_cmds \
9432
    hardcode_libdir_flag_spec \
9433
    hardcode_libdir_flag_spec_ld \
9434
    hardcode_libdir_separator \
9435
    hardcode_automatic \
9436
    module_cmds \
9437
    module_expsym_cmds \
9438
    lt_cv_prog_compiler_c_o \
9439
    fix_srcfile_path \
9440
    exclude_expsyms \
9441
    include_expsyms; do
9442
 
9443
    case $var in
9444
    old_archive_cmds | \
9445
    old_archive_from_new_cmds | \
9446
    archive_cmds | \
9447
    archive_expsym_cmds | \
9448
    module_cmds | \
9449
    module_expsym_cmds | \
9450
    old_archive_from_expsyms_cmds | \
9451
    export_symbols_cmds | \
9452
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9453
    postinstall_cmds | postuninstall_cmds | \
9454
    old_postinstall_cmds | old_postuninstall_cmds | \
9455
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9456
      # Double-quote double-evaled strings.
9457
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9458
      ;;
9459
    *)
9460
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9461
      ;;
9462
    esac
9463
  done
9464
 
9465
  case $lt_echo in
9466
  *'\$0 --fallback-echo"')
9467
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9468
    ;;
9469
  esac
9470
 
9471
cfgfile="${ofile}T"
9472
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9473
  $rm -f "$cfgfile"
9474
  { echo "$as_me:$LINENO: creating $ofile" >&5
9475
echo "$as_me: creating $ofile" >&6;}
9476
 
9477
  cat <<__EOF__ >> "$cfgfile"
9478
#! $SHELL
9479
 
9480
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9481
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9482
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9483
#
9484
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
9485
# Free Software Foundation, Inc.
9486
#
9487
# This file is part of GNU Libtool:
9488
# Originally by Gordon Matzigkeit , 1996
9489
#
9490
# This program is free software; you can redistribute it and/or modify
9491
# it under the terms of the GNU General Public License as published by
9492
# the Free Software Foundation; either version 2 of the License, or
9493
# (at your option) any later version.
9494
#
9495
# This program is distributed in the hope that it will be useful, but
9496
# WITHOUT ANY WARRANTY; without even the implied warranty of
9497
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9498
# General Public License for more details.
9499
#
9500
# You should have received a copy of the GNU General Public License
9501
# along with this program; if not, write to the Free Software
9502
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9503
#
9504
# As a special exception to the GNU General Public License, if you
9505
# distribute this file as part of a program that contains a
9506
# configuration script generated by Autoconf, you may include it under
9507
# the same distribution terms that you use for the rest of that program.
9508
 
9509
# A sed program that does not truncate output.
9510
SED=$lt_SED
9511
 
9512
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9513
Xsed="$SED -e 1s/^X//"
9514
 
9515
# The HP-UX ksh and POSIX shell print the target directory to stdout
9516
# if CDPATH is set.
9517
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9518
 
9519
# The names of the tagged configurations supported by this script.
9520
available_tags=
9521
 
9522
# ### BEGIN LIBTOOL CONFIG
9523
 
9524
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9525
 
9526
# Shell to use when invoking shell scripts.
9527
SHELL=$lt_SHELL
9528
 
9529
# Whether or not to build shared libraries.
9530
build_libtool_libs=$enable_shared
9531
 
9532
# Whether or not to build static libraries.
9533
build_old_libs=$enable_static
9534
 
9535
# Whether or not to add -lc for building shared libraries.
9536
build_libtool_need_lc=$archive_cmds_need_lc
9537
 
9538
# Whether or not to disallow shared libs when runtime libs are static
9539
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9540
 
9541
# Whether or not to optimize for fast installation.
9542
fast_install=$enable_fast_install
9543
 
9544
# The host system.
9545
host_alias=$host_alias
9546
host=$host
9547
host_os=$host_os
9548
 
9549
# The build system.
9550
build_alias=$build_alias
9551
build=$build
9552
build_os=$build_os
9553
 
9554
# An echo program that does not interpret backslashes.
9555
echo=$lt_echo
9556
 
9557
# The archiver.
9558
AR=$lt_AR
9559
AR_FLAGS=$lt_AR_FLAGS
9560
 
9561
# A C compiler.
9562
LTCC=$lt_LTCC
9563
 
9564
# LTCC compiler flags.
9565
LTCFLAGS=$lt_LTCFLAGS
9566
 
9567
# A language-specific compiler.
9568
CC=$lt_compiler
9569
 
9570
# Is the compiler the GNU C compiler?
9571
with_gcc=$GCC
9572
 
9573
# An ERE matcher.
9574
EGREP=$lt_EGREP
9575
 
9576
# The linker used to build libraries.
9577
LD=$lt_LD
9578
 
9579
# Whether we need hard or soft links.
9580
LN_S=$lt_LN_S
9581
 
9582
# A BSD-compatible nm program.
9583
NM=$lt_NM
9584
 
9585
# A symbol stripping program
9586
STRIP=$lt_STRIP
9587
 
9588
# Used to examine libraries when file_magic_cmd begins "file"
9589
MAGIC_CMD=$MAGIC_CMD
9590
 
9591
# Used on cygwin: DLL creation program.
9592
DLLTOOL="$DLLTOOL"
9593
 
9594
# Used on cygwin: object dumper.
9595
OBJDUMP="$OBJDUMP"
9596
 
9597
# Used on cygwin: assembler.
9598
AS="$AS"
9599
 
9600
# The name of the directory that contains temporary libtool files.
9601
objdir=$objdir
9602
 
9603
# How to create reloadable object files.
9604
reload_flag=$lt_reload_flag
9605
reload_cmds=$lt_reload_cmds
9606
 
9607
# How to pass a linker flag through the compiler.
9608
wl=$lt_lt_prog_compiler_wl
9609
 
9610
# Object file suffix (normally "o").
9611
objext="$ac_objext"
9612
 
9613
# Old archive suffix (normally "a").
9614
libext="$libext"
9615
 
9616
# Shared library suffix (normally ".so").
9617
shrext_cmds='$shrext_cmds'
9618
 
9619
# Executable file suffix (normally "").
9620
exeext="$exeext"
9621
 
9622
# Additional compiler flags for building library objects.
9623
pic_flag=$lt_lt_prog_compiler_pic
9624
pic_mode=$pic_mode
9625
 
9626
# What is the maximum length of a command?
9627
max_cmd_len=$lt_cv_sys_max_cmd_len
9628
 
9629
# Does compiler simultaneously support -c and -o options?
9630
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9631
 
9632
# Must we lock files when doing compilation?
9633
need_locks=$lt_need_locks
9634
 
9635
# Do we need the lib prefix for modules?
9636
need_lib_prefix=$need_lib_prefix
9637
 
9638
# Do we need a version for libraries?
9639
need_version=$need_version
9640
 
9641
# Whether dlopen is supported.
9642
dlopen_support=$enable_dlopen
9643
 
9644
# Whether dlopen of programs is supported.
9645
dlopen_self=$enable_dlopen_self
9646
 
9647
# Whether dlopen of statically linked programs is supported.
9648
dlopen_self_static=$enable_dlopen_self_static
9649
 
9650
# Compiler flag to prevent dynamic linking.
9651
link_static_flag=$lt_lt_prog_compiler_static
9652
 
9653
# Compiler flag to turn off builtin functions.
9654
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9655
 
9656
# Compiler flag to allow reflexive dlopens.
9657
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9658
 
9659
# Compiler flag to generate shared objects directly from archives.
9660
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9661
 
9662
# Compiler flag to generate thread-safe objects.
9663
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9664
 
9665
# Library versioning type.
9666
version_type=$version_type
9667
 
9668
# Format of library name prefix.
9669
libname_spec=$lt_libname_spec
9670
 
9671
# List of archive names.  First name is the real one, the rest are links.
9672
# The last name is the one that the linker finds with -lNAME.
9673
library_names_spec=$lt_library_names_spec
9674
 
9675
# The coded name of the library, if different from the real name.
9676
soname_spec=$lt_soname_spec
9677
 
9678
# Commands used to build and install an old-style archive.
9679
RANLIB=$lt_RANLIB
9680
old_archive_cmds=$lt_old_archive_cmds
9681
old_postinstall_cmds=$lt_old_postinstall_cmds
9682
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9683
 
9684
# Create an old-style archive from a shared archive.
9685
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9686
 
9687
# Create a temporary old-style archive to link instead of a shared archive.
9688
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9689
 
9690
# Commands used to build and install a shared archive.
9691
archive_cmds=$lt_archive_cmds
9692
archive_expsym_cmds=$lt_archive_expsym_cmds
9693
postinstall_cmds=$lt_postinstall_cmds
9694
postuninstall_cmds=$lt_postuninstall_cmds
9695
 
9696
# Commands used to build a loadable module (assumed same as above if empty)
9697
module_cmds=$lt_module_cmds
9698
module_expsym_cmds=$lt_module_expsym_cmds
9699
 
9700
# Commands to strip libraries.
9701
old_striplib=$lt_old_striplib
9702
striplib=$lt_striplib
9703
 
9704
# Dependencies to place before the objects being linked to create a
9705
# shared library.
9706
predep_objects=$lt_predep_objects
9707
 
9708
# Dependencies to place after the objects being linked to create a
9709
# shared library.
9710
postdep_objects=$lt_postdep_objects
9711
 
9712
# Dependencies to place before the objects being linked to create a
9713
# shared library.
9714
predeps=$lt_predeps
9715
 
9716
# Dependencies to place after the objects being linked to create a
9717
# shared library.
9718
postdeps=$lt_postdeps
9719
 
9720
# The library search path used internally by the compiler when linking
9721
# a shared library.
9722
compiler_lib_search_path=$lt_compiler_lib_search_path
9723
 
9724
# Method to check whether dependent libraries are shared objects.
9725
deplibs_check_method=$lt_deplibs_check_method
9726
 
9727
# Command to use when deplibs_check_method == file_magic.
9728
file_magic_cmd=$lt_file_magic_cmd
9729
 
9730
# Flag that allows shared libraries with undefined symbols to be built.
9731
allow_undefined_flag=$lt_allow_undefined_flag
9732
 
9733
# Flag that forces no undefined symbols.
9734
no_undefined_flag=$lt_no_undefined_flag
9735
 
9736
# Commands used to finish a libtool library installation in a directory.
9737
finish_cmds=$lt_finish_cmds
9738
 
9739
# Same as above, but a single script fragment to be evaled but not shown.
9740
finish_eval=$lt_finish_eval
9741
 
9742
# Take the output of nm and produce a listing of raw symbols and C names.
9743
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9744
 
9745
# Transform the output of nm in a proper C declaration
9746
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9747
 
9748
# Transform the output of nm in a C name address pair
9749
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9750
 
9751
# This is the shared library runtime path variable.
9752
runpath_var=$runpath_var
9753
 
9754
# This is the shared library path variable.
9755
shlibpath_var=$shlibpath_var
9756
 
9757
# Is shlibpath searched before the hard-coded library search path?
9758
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9759
 
9760
# How to hardcode a shared library path into an executable.
9761
hardcode_action=$hardcode_action
9762
 
9763
# Whether we should hardcode library paths into libraries.
9764
hardcode_into_libs=$hardcode_into_libs
9765
 
9766
# Flag to hardcode \$libdir into a binary during linking.
9767
# This must work even if \$libdir does not exist.
9768
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9769
 
9770
# If ld is used when linking, flag to hardcode \$libdir into
9771
# a binary during linking. This must work even if \$libdir does
9772
# not exist.
9773
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9774
 
9775
# Whether we need a single -rpath flag with a separated argument.
9776
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9777
 
9778
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9779
# resulting binary.
9780
hardcode_direct=$hardcode_direct
9781
 
9782
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9783
# resulting binary.
9784
hardcode_minus_L=$hardcode_minus_L
9785
 
9786
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9787
# the resulting binary.
9788
hardcode_shlibpath_var=$hardcode_shlibpath_var
9789
 
9790
# Set to yes if building a shared library automatically hardcodes DIR into the library
9791
# and all subsequent libraries and executables linked against it.
9792
hardcode_automatic=$hardcode_automatic
9793
 
9794
# Variables whose values should be saved in libtool wrapper scripts and
9795
# restored at relink time.
9796
variables_saved_for_relink="$variables_saved_for_relink"
9797
 
9798
# Whether libtool must link a program against all its dependency libraries.
9799
link_all_deplibs=$link_all_deplibs
9800
 
9801
# Compile-time system search path for libraries
9802
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9803
 
9804
# Run-time system search path for libraries
9805
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9806
 
9807
# Fix the shell variable \$srcfile for the compiler.
9808
fix_srcfile_path=$lt_fix_srcfile_path
9809
 
9810
# Set to yes if exported symbols are required.
9811
always_export_symbols=$always_export_symbols
9812
 
9813
# The commands to list exported symbols.
9814
export_symbols_cmds=$lt_export_symbols_cmds
9815
 
9816
# The commands to extract the exported symbol list from a shared archive.
9817
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9818
 
9819
# Symbols that should not be listed in the preloaded symbols.
9820
exclude_expsyms=$lt_exclude_expsyms
9821
 
9822
# Symbols that must always be exported.
9823
include_expsyms=$lt_include_expsyms
9824
 
9825
# ### END LIBTOOL CONFIG
9826
 
9827
__EOF__
9828
 
9829
 
9830
  case $host_os in
9831
  aix3*)
9832
    cat <<\EOF >> "$cfgfile"
9833
 
9834
# AIX sometimes has problems with the GCC collect2 program.  For some
9835
# reason, if we set the COLLECT_NAMES environment variable, the problems
9836
# vanish in a puff of smoke.
9837
if test "X${COLLECT_NAMES+set}" != Xset; then
9838
  COLLECT_NAMES=
9839
  export COLLECT_NAMES
9840
fi
9841
EOF
9842
    ;;
9843
  esac
9844
 
9845
  # We use sed instead of cat because bash on DJGPP gets confused if
9846
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9847
  # text mode, it properly converts lines to CR/LF.  This bash problem
9848
  # is reportedly fixed, but why not run on old versions too?
9849
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9850
 
9851
  mv -f "$cfgfile" "$ofile" || \
9852
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9853
  chmod +x "$ofile"
9854
 
9855
else
9856
  # If there is no Makefile yet, we rely on a make rule to execute
9857
  # `config.status --recheck' to rerun these tests and create the
9858
  # libtool script then.
9859
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9860
  if test -f "$ltmain_in"; then
9861
    test -f Makefile && make "$ltmain"
9862
  fi
9863
fi
9864
 
9865
 
9866
ac_ext=c
9867
ac_cpp='$CPP $CPPFLAGS'
9868
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9869
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9870
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9871
 
9872
CC="$lt_save_CC"
9873
 
9874
 
9875
# Check whether --with-tags was given.
9876
if test "${with_tags+set}" = set; then
9877
  withval=$with_tags; tagnames="$withval"
9878
fi
9879
 
9880
 
9881
if test -f "$ltmain" && test -n "$tagnames"; then
9882
  if test ! -f "${ofile}"; then
9883
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9884
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9885
  fi
9886
 
9887
  if test -z "$LTCC"; then
9888
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9889
    if test -z "$LTCC"; then
9890
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9891
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9892
    else
9893
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9894
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9895
    fi
9896
  fi
9897
  if test -z "$LTCFLAGS"; then
9898
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9899
  fi
9900
 
9901
  # Extract list of available tagged configurations in $ofile.
9902
  # Note that this assumes the entire list is on one line.
9903
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9904
 
9905
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9906
  for tagname in $tagnames; do
9907
    IFS="$lt_save_ifs"
9908
    # Check whether tagname contains only valid characters
9909
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9910
    "") ;;
9911
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9912
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9913
   { (exit 1); exit 1; }; }
9914
        ;;
9915
    esac
9916
 
9917
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9918
    then
9919
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9920
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9921
   { (exit 1); exit 1; }; }
9922
    fi
9923
 
9924
    # Update the list of available tags.
9925
    if test -n "$tagname"; then
9926
      echo appending configuration tag \"$tagname\" to $ofile
9927
 
9928
      case $tagname in
9929
      CXX)
9930
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9931
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9932
            (test "X$CXX" != "Xg++"))) ; then
9933
          ac_ext=cpp
9934
ac_cpp='$CXXCPP $CPPFLAGS'
9935
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9936
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9937
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9938
 
9939
 
9940
 
9941
 
9942
archive_cmds_need_lc_CXX=no
9943
allow_undefined_flag_CXX=
9944
always_export_symbols_CXX=no
9945
archive_expsym_cmds_CXX=
9946
export_dynamic_flag_spec_CXX=
9947
hardcode_direct_CXX=no
9948
hardcode_libdir_flag_spec_CXX=
9949
hardcode_libdir_flag_spec_ld_CXX=
9950
hardcode_libdir_separator_CXX=
9951
hardcode_minus_L_CXX=no
9952
hardcode_shlibpath_var_CXX=unsupported
9953
hardcode_automatic_CXX=no
9954
module_cmds_CXX=
9955
module_expsym_cmds_CXX=
9956
link_all_deplibs_CXX=unknown
9957
old_archive_cmds_CXX=$old_archive_cmds
9958
no_undefined_flag_CXX=
9959
whole_archive_flag_spec_CXX=
9960
enable_shared_with_static_runtimes_CXX=no
9961
 
9962
# Dependencies to place before and after the object being linked:
9963
predep_objects_CXX=
9964
postdep_objects_CXX=
9965
predeps_CXX=
9966
postdeps_CXX=
9967
compiler_lib_search_path_CXX=
9968
 
9969
# Source file extension for C++ test sources.
9970
ac_ext=cpp
9971
 
9972
# Object file extension for compiled C++ test sources.
9973
objext=o
9974
objext_CXX=$objext
9975
 
9976
# Code to be used in simple compile tests
9977
lt_simple_compile_test_code="int some_variable = 0;"
9978
 
9979
# Code to be used in simple link tests
9980
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9981
 
9982
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9983
 
9984
# If no C compiler was specified, use CC.
9985
LTCC=${LTCC-"$CC"}
9986
 
9987
# If no C compiler flags were specified, use CFLAGS.
9988
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9989
 
9990
# Allow CC to be a program name with arguments.
9991
compiler=$CC
9992
 
9993
 
9994
# save warnings/boilerplate of simple test code
9995
ac_outfile=conftest.$ac_objext
9996
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9997
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9998
_lt_compiler_boilerplate=`cat conftest.err`
9999
$rm conftest*
10000
 
10001
ac_outfile=conftest.$ac_objext
10002
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10003
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10004
_lt_linker_boilerplate=`cat conftest.err`
10005
$rm conftest*
10006
 
10007
 
10008
# Allow CC to be a program name with arguments.
10009
lt_save_CC=$CC
10010
lt_save_LD=$LD
10011
lt_save_GCC=$GCC
10012
GCC=$GXX
10013
lt_save_with_gnu_ld=$with_gnu_ld
10014
lt_save_path_LD=$lt_cv_path_LD
10015
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10016
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10017
else
10018
  $as_unset lt_cv_prog_gnu_ld
10019
fi
10020
if test -n "${lt_cv_path_LDCXX+set}"; then
10021
  lt_cv_path_LD=$lt_cv_path_LDCXX
10022
else
10023
  $as_unset lt_cv_path_LD
10024
fi
10025
test -z "${LDCXX+set}" || LD=$LDCXX
10026
CC=${CXX-"c++"}
10027
compiler=$CC
10028
compiler_CXX=$CC
10029
for cc_temp in $compiler""; do
10030
  case $cc_temp in
10031
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10032
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10033
    \-*) ;;
10034
    *) break;;
10035
  esac
10036
done
10037
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10038
 
10039
 
10040
# We don't want -fno-exception wen compiling C++ code, so set the
10041
# no_builtin_flag separately
10042
if test "$GXX" = yes; then
10043
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10044
else
10045
  lt_prog_compiler_no_builtin_flag_CXX=
10046
fi
10047
 
10048
if test "$GXX" = yes; then
10049
  # Set up default GNU C++ configuration
10050
 
10051
 
10052
# Check whether --with-gnu-ld was given.
10053
if test "${with_gnu_ld+set}" = set; then
10054
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10055
else
10056
  with_gnu_ld=no
10057
fi
10058
 
10059
ac_prog=ld
10060
if test "$GCC" = yes; then
10061
  # Check if gcc -print-prog-name=ld gives a path.
10062
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10063
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10064
  case $host in
10065
  *-*-mingw*)
10066
    # gcc leaves a trailing carriage return which upsets mingw
10067
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10068
  *)
10069
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10070
  esac
10071
  case $ac_prog in
10072
    # Accept absolute paths.
10073
    [\\/]* | ?:[\\/]*)
10074
      re_direlt='/[^/][^/]*/\.\./'
10075
      # Canonicalize the pathname of ld
10076
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10077
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10078
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10079
      done
10080
      test -z "$LD" && LD="$ac_prog"
10081
      ;;
10082
  "")
10083
    # If it fails, then pretend we aren't using GCC.
10084
    ac_prog=ld
10085
    ;;
10086
  *)
10087
    # If it is relative, then search for the first ld in PATH.
10088
    with_gnu_ld=unknown
10089
    ;;
10090
  esac
10091
elif test "$with_gnu_ld" = yes; then
10092
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10093
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10094
else
10095
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10096
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10097
fi
10098
if test "${lt_cv_path_LD+set}" = set; then
10099
  echo $ECHO_N "(cached) $ECHO_C" >&6
10100
else
10101
  if test -z "$LD"; then
10102
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10103
  for ac_dir in $PATH; do
10104
    IFS="$lt_save_ifs"
10105
    test -z "$ac_dir" && ac_dir=.
10106
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10107
      lt_cv_path_LD="$ac_dir/$ac_prog"
10108
      # Check to see if the program is GNU ld.  I'd rather use --version,
10109
      # but apparently some variants of GNU ld only accept -v.
10110
      # Break only if it was the GNU/non-GNU ld that we prefer.
10111
      case `"$lt_cv_path_LD" -v 2>&1 
10112
      *GNU* | *'with BFD'*)
10113
        test "$with_gnu_ld" != no && break
10114
        ;;
10115
      *)
10116
        test "$with_gnu_ld" != yes && break
10117
        ;;
10118
      esac
10119
    fi
10120
  done
10121
  IFS="$lt_save_ifs"
10122
else
10123
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10124
fi
10125
fi
10126
 
10127
LD="$lt_cv_path_LD"
10128
if test -n "$LD"; then
10129
  { echo "$as_me:$LINENO: result: $LD" >&5
10130
echo "${ECHO_T}$LD" >&6; }
10131
else
10132
  { echo "$as_me:$LINENO: result: no" >&5
10133
echo "${ECHO_T}no" >&6; }
10134
fi
10135
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10136
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10137
   { (exit 1); exit 1; }; }
10138
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10139
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10140
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10141
  echo $ECHO_N "(cached) $ECHO_C" >&6
10142
else
10143
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10144
case `$LD -v 2>&1 
10145
*GNU* | *'with BFD'*)
10146
  lt_cv_prog_gnu_ld=yes
10147
  ;;
10148
*)
10149
  lt_cv_prog_gnu_ld=no
10150
  ;;
10151
esac
10152
fi
10153
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10154
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10155
with_gnu_ld=$lt_cv_prog_gnu_ld
10156
 
10157
 
10158
 
10159
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10160
  # archiving commands below assume that GNU ld is being used.
10161
  if test "$with_gnu_ld" = yes; then
10162
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10163
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10164
 
10165
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10166
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10167
 
10168
    # If archive_cmds runs LD, not CC, wlarc should be empty
10169
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10170
    #     investigate it a little bit more. (MM)
10171
    wlarc='${wl}'
10172
 
10173
    # ancient GNU ld didn't support --whole-archive et. al.
10174
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10175
        grep 'no-whole-archive' > /dev/null; then
10176
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10177
    else
10178
      whole_archive_flag_spec_CXX=
10179
    fi
10180
  else
10181
    with_gnu_ld=no
10182
    wlarc=
10183
 
10184
    # A generic and very simple default shared library creation
10185
    # command for GNU C++ for the case where it uses the native
10186
    # linker, instead of GNU ld.  If possible, this setting should
10187
    # overridden to take advantage of the native linker features on
10188
    # the platform it is being used on.
10189
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10190
  fi
10191
 
10192
  # Commands to make compiler produce verbose output that lists
10193
  # what "hidden" libraries, object files and flags are used when
10194
  # linking a shared library.
10195
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10196
 
10197
else
10198
  GXX=no
10199
  with_gnu_ld=no
10200
  wlarc=
10201
fi
10202
 
10203
# PORTME: fill in a description of your system's C++ link characteristics
10204
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10205
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10206
ld_shlibs_CXX=yes
10207
case $host_os in
10208
  aix3*)
10209
    # FIXME: insert proper C++ library support
10210
    ld_shlibs_CXX=no
10211
    ;;
10212
  aix4* | aix5*)
10213
    if test "$host_cpu" = ia64; then
10214
      # On IA64, the linker does run time linking by default, so we don't
10215
      # have to do anything special.
10216
      aix_use_runtimelinking=no
10217
      exp_sym_flag='-Bexport'
10218
      no_entry_flag=""
10219
    else
10220
      aix_use_runtimelinking=no
10221
 
10222
      # Test if we are trying to use run time linking or normal
10223
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10224
      # need to do runtime linking.
10225
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10226
        for ld_flag in $LDFLAGS; do
10227
          case $ld_flag in
10228
          *-brtl*)
10229
            aix_use_runtimelinking=yes
10230
            break
10231
            ;;
10232
          esac
10233
        done
10234
        ;;
10235
      esac
10236
 
10237
      exp_sym_flag='-bexport'
10238
      no_entry_flag='-bnoentry'
10239
    fi
10240
 
10241
    # When large executables or shared objects are built, AIX ld can
10242
    # have problems creating the table of contents.  If linking a library
10243
    # or program results in "error TOC overflow" add -mminimal-toc to
10244
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10245
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10246
 
10247
    archive_cmds_CXX=''
10248
    hardcode_direct_CXX=yes
10249
    hardcode_libdir_separator_CXX=':'
10250
    link_all_deplibs_CXX=yes
10251
 
10252
    if test "$GXX" = yes; then
10253
      case $host_os in aix4.[012]|aix4.[012].*)
10254
      # We only want to do this on AIX 4.2 and lower, the check
10255
      # below for broken collect2 doesn't work under 4.3+
10256
        collect2name=`${CC} -print-prog-name=collect2`
10257
        if test -f "$collect2name" && \
10258
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10259
        then
10260
          # We have reworked collect2
10261
          :
10262
        else
10263
          # We have old collect2
10264
          hardcode_direct_CXX=unsupported
10265
          # It fails to find uninstalled libraries when the uninstalled
10266
          # path is not listed in the libpath.  Setting hardcode_minus_L
10267
          # to unsupported forces relinking
10268
          hardcode_minus_L_CXX=yes
10269
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10270
          hardcode_libdir_separator_CXX=
10271
        fi
10272
        ;;
10273
      esac
10274
      shared_flag='-shared'
10275
      if test "$aix_use_runtimelinking" = yes; then
10276
        shared_flag="$shared_flag "'${wl}-G'
10277
      fi
10278
    else
10279
      # not using gcc
10280
      if test "$host_cpu" = ia64; then
10281
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10282
        # chokes on -Wl,-G. The following line is correct:
10283
        shared_flag='-G'
10284
      else
10285
        if test "$aix_use_runtimelinking" = yes; then
10286
          shared_flag='${wl}-G'
10287
        else
10288
          shared_flag='${wl}-bM:SRE'
10289
        fi
10290
      fi
10291
    fi
10292
 
10293
    # It seems that -bexpall does not export symbols beginning with
10294
    # underscore (_), so it is better to generate a list of symbols to export.
10295
    always_export_symbols_CXX=yes
10296
    if test "$aix_use_runtimelinking" = yes; then
10297
      # Warning - without using the other runtime loading flags (-brtl),
10298
      # -berok will link without error, but may produce a broken library.
10299
      allow_undefined_flag_CXX='-berok'
10300
      # Determine the default libpath from the value encoded in an empty executable.
10301
      cat >conftest.$ac_ext <<_ACEOF
10302
/* confdefs.h.  */
10303
_ACEOF
10304
cat confdefs.h >>conftest.$ac_ext
10305
cat >>conftest.$ac_ext <<_ACEOF
10306
/* end confdefs.h.  */
10307
 
10308
int
10309
main ()
10310
{
10311
 
10312
  ;
10313
  return 0;
10314
}
10315
_ACEOF
10316
rm -f conftest.$ac_objext conftest$ac_exeext
10317
if { (ac_try="$ac_link"
10318
case "(($ac_try" in
10319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320
  *) ac_try_echo=$ac_try;;
10321
esac
10322
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323
  (eval "$ac_link") 2>conftest.er1
10324
  ac_status=$?
10325
  grep -v '^ *+' conftest.er1 >conftest.err
10326
  rm -f conftest.er1
10327
  cat conftest.err >&5
10328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329
  (exit $ac_status); } && {
10330
         test -z "$ac_cxx_werror_flag" ||
10331
         test ! -s conftest.err
10332
       } && test -s conftest$ac_exeext &&
10333
       $as_test_x conftest$ac_exeext; then
10334
 
10335
lt_aix_libpath_sed='
10336
    /Import File Strings/,/^$/ {
10337
        /^0/ {
10338
            s/^0  *\(.*\)$/\1/
10339
            p
10340
        }
10341
    }'
10342
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10343
# Check for a 64-bit object if we didn't find anything.
10344
if test -z "$aix_libpath"; then
10345
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10346
fi
10347
else
10348
  echo "$as_me: failed program was:" >&5
10349
sed 's/^/| /' conftest.$ac_ext >&5
10350
 
10351
 
10352
fi
10353
 
10354
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10355
      conftest$ac_exeext conftest.$ac_ext
10356
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10357
 
10358
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10359
 
10360
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10361
     else
10362
      if test "$host_cpu" = ia64; then
10363
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10364
        allow_undefined_flag_CXX="-z nodefs"
10365
        archive_expsym_cmds_CXX="\$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"
10366
      else
10367
        # Determine the default libpath from the value encoded in an empty executable.
10368
        cat >conftest.$ac_ext <<_ACEOF
10369
/* confdefs.h.  */
10370
_ACEOF
10371
cat confdefs.h >>conftest.$ac_ext
10372
cat >>conftest.$ac_ext <<_ACEOF
10373
/* end confdefs.h.  */
10374
 
10375
int
10376
main ()
10377
{
10378
 
10379
  ;
10380
  return 0;
10381
}
10382
_ACEOF
10383
rm -f conftest.$ac_objext conftest$ac_exeext
10384
if { (ac_try="$ac_link"
10385
case "(($ac_try" in
10386
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387
  *) ac_try_echo=$ac_try;;
10388
esac
10389
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390
  (eval "$ac_link") 2>conftest.er1
10391
  ac_status=$?
10392
  grep -v '^ *+' conftest.er1 >conftest.err
10393
  rm -f conftest.er1
10394
  cat conftest.err >&5
10395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396
  (exit $ac_status); } && {
10397
         test -z "$ac_cxx_werror_flag" ||
10398
         test ! -s conftest.err
10399
       } && test -s conftest$ac_exeext &&
10400
       $as_test_x conftest$ac_exeext; then
10401
 
10402
lt_aix_libpath_sed='
10403
    /Import File Strings/,/^$/ {
10404
        /^0/ {
10405
            s/^0  *\(.*\)$/\1/
10406
            p
10407
        }
10408
    }'
10409
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10410
# Check for a 64-bit object if we didn't find anything.
10411
if test -z "$aix_libpath"; then
10412
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10413
fi
10414
else
10415
  echo "$as_me: failed program was:" >&5
10416
sed 's/^/| /' conftest.$ac_ext >&5
10417
 
10418
 
10419
fi
10420
 
10421
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10422
      conftest$ac_exeext conftest.$ac_ext
10423
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10424
 
10425
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10426
        # Warning - without using the other run time loading flags,
10427
        # -berok will link without error, but may produce a broken library.
10428
        no_undefined_flag_CXX=' ${wl}-bernotok'
10429
        allow_undefined_flag_CXX=' ${wl}-berok'
10430
        # Exported symbols can be pulled into shared objects from archives
10431
        whole_archive_flag_spec_CXX='$convenience'
10432
        archive_cmds_need_lc_CXX=yes
10433
        # This is similar to how AIX traditionally builds its shared libraries.
10434
        archive_expsym_cmds_CXX="\$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'
10435
      fi
10436
    fi
10437
    ;;
10438
 
10439
  beos*)
10440
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10441
      allow_undefined_flag_CXX=unsupported
10442
      # Joseph Beckenbach  says some releases of gcc
10443
      # support --undefined.  This deserves some investigation.  FIXME
10444
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10445
    else
10446
      ld_shlibs_CXX=no
10447
    fi
10448
    ;;
10449
 
10450
  chorus*)
10451
    case $cc_basename in
10452
      *)
10453
        # FIXME: insert proper C++ library support
10454
        ld_shlibs_CXX=no
10455
        ;;
10456
    esac
10457
    ;;
10458
 
10459
  cygwin* | mingw* | pw32*)
10460
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10461
    # as there is no search path for DLLs.
10462
    hardcode_libdir_flag_spec_CXX='-L$libdir'
10463
    allow_undefined_flag_CXX=unsupported
10464
    always_export_symbols_CXX=no
10465
    enable_shared_with_static_runtimes_CXX=yes
10466
 
10467
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10468
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10469
      # If the export-symbols file already is a .def file (1st line
10470
      # is EXPORTS), use it as is; otherwise, prepend...
10471
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10472
        cp $export_symbols $output_objdir/$soname.def;
10473
      else
10474
        echo EXPORTS > $output_objdir/$soname.def;
10475
        cat $export_symbols >> $output_objdir/$soname.def;
10476
      fi~
10477
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10478
    else
10479
      ld_shlibs_CXX=no
10480
    fi
10481
  ;;
10482
      darwin* | rhapsody*)
10483
        case $host_os in
10484
        rhapsody* | darwin1.[012])
10485
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10486
         ;;
10487
       *) # Darwin 1.3 on
10488
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10489
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10490
         else
10491
           case ${MACOSX_DEPLOYMENT_TARGET} in
10492
             10.[012])
10493
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10494
               ;;
10495
             10.*)
10496
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10497
               ;;
10498
           esac
10499
         fi
10500
         ;;
10501
        esac
10502
      archive_cmds_need_lc_CXX=no
10503
      hardcode_direct_CXX=no
10504
      hardcode_automatic_CXX=yes
10505
      hardcode_shlibpath_var_CXX=unsupported
10506
      whole_archive_flag_spec_CXX=''
10507
      link_all_deplibs_CXX=yes
10508
 
10509
    if test "$GXX" = yes ; then
10510
      lt_int_apple_cc_single_mod=no
10511
      output_verbose_link_cmd='echo'
10512
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10513
       lt_int_apple_cc_single_mod=yes
10514
      fi
10515
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10516
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10517
      else
10518
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10519
        fi
10520
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10521
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10522
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10523
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10524
          else
10525
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10526
          fi
10527
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10528
      else
10529
      case $cc_basename in
10530
        xlc*)
10531
         output_verbose_link_cmd='echo'
10532
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10533
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10534
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10535
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10536
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10537
          ;;
10538
       *)
10539
         ld_shlibs_CXX=no
10540
          ;;
10541
      esac
10542
      fi
10543
        ;;
10544
 
10545
  dgux*)
10546
    case $cc_basename in
10547
      ec++*)
10548
        # FIXME: insert proper C++ library support
10549
        ld_shlibs_CXX=no
10550
        ;;
10551
      ghcx*)
10552
        # Green Hills C++ Compiler
10553
        # FIXME: insert proper C++ library support
10554
        ld_shlibs_CXX=no
10555
        ;;
10556
      *)
10557
        # FIXME: insert proper C++ library support
10558
        ld_shlibs_CXX=no
10559
        ;;
10560
    esac
10561
    ;;
10562
  freebsd[12]*)
10563
    # C++ shared libraries reported to be fairly broken before switch to ELF
10564
    ld_shlibs_CXX=no
10565
    ;;
10566
  freebsd-elf*)
10567
    archive_cmds_need_lc_CXX=no
10568
    ;;
10569
  freebsd* | dragonfly*)
10570
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10571
    # conventions
10572
    ld_shlibs_CXX=yes
10573
    ;;
10574
  gnu*)
10575
    ;;
10576
  hpux9*)
10577
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10578
    hardcode_libdir_separator_CXX=:
10579
    export_dynamic_flag_spec_CXX='${wl}-E'
10580
    hardcode_direct_CXX=yes
10581
    hardcode_minus_L_CXX=yes # Not in the search PATH,
10582
                                # but as the default
10583
                                # location of the library.
10584
 
10585
    case $cc_basename in
10586
    CC*)
10587
      # FIXME: insert proper C++ library support
10588
      ld_shlibs_CXX=no
10589
      ;;
10590
    aCC*)
10591
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10592
      # Commands to make compiler produce verbose output that lists
10593
      # what "hidden" libraries, object files and flags are used when
10594
      # linking a shared library.
10595
      #
10596
      # There doesn't appear to be a way to prevent this compiler from
10597
      # explicitly linking system object files so we need to strip them
10598
      # from the output so that they don't get included in the library
10599
      # dependencies.
10600
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10601
      ;;
10602
    *)
10603
      if test "$GXX" = yes; then
10604
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10605
      else
10606
        # FIXME: insert proper C++ library support
10607
        ld_shlibs_CXX=no
10608
      fi
10609
      ;;
10610
    esac
10611
    ;;
10612
  hpux10*|hpux11*)
10613
    if test $with_gnu_ld = no; then
10614
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10615
      hardcode_libdir_separator_CXX=:
10616
 
10617
      case $host_cpu in
10618
      hppa*64*|ia64*) ;;
10619
      *)
10620
        export_dynamic_flag_spec_CXX='${wl}-E'
10621
        ;;
10622
      esac
10623
    fi
10624
    case $host_cpu in
10625
    hppa*64*|ia64*)
10626
      hardcode_direct_CXX=no
10627
      hardcode_shlibpath_var_CXX=no
10628
      ;;
10629
    *)
10630
      hardcode_direct_CXX=yes
10631
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10632
                                              # but as the default
10633
                                              # location of the library.
10634
      ;;
10635
    esac
10636
 
10637
    case $cc_basename in
10638
      CC*)
10639
        # FIXME: insert proper C++ library support
10640
        ld_shlibs_CXX=no
10641
        ;;
10642
      aCC*)
10643
        case $host_cpu in
10644
        hppa*64*)
10645
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10646
          ;;
10647
        ia64*)
10648
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10649
          ;;
10650
        *)
10651
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10652
          ;;
10653
        esac
10654
        # Commands to make compiler produce verbose output that lists
10655
        # what "hidden" libraries, object files and flags are used when
10656
        # linking a shared library.
10657
        #
10658
        # There doesn't appear to be a way to prevent this compiler from
10659
        # explicitly linking system object files so we need to strip them
10660
        # from the output so that they don't get included in the library
10661
        # dependencies.
10662
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10663
        ;;
10664
      *)
10665
        if test "$GXX" = yes; then
10666
          if test $with_gnu_ld = no; then
10667
            case $host_cpu in
10668
            hppa*64*)
10669
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10670
              ;;
10671
            ia64*)
10672
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10673
              ;;
10674
            *)
10675
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10676
              ;;
10677
            esac
10678
          fi
10679
        else
10680
          # FIXME: insert proper C++ library support
10681
          ld_shlibs_CXX=no
10682
        fi
10683
        ;;
10684
    esac
10685
    ;;
10686
  interix[3-9]*)
10687
    hardcode_direct_CXX=no
10688
    hardcode_shlibpath_var_CXX=no
10689
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10690
    export_dynamic_flag_spec_CXX='${wl}-E'
10691
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10692
    # Instead, shared libraries are loaded at an image base (0x10000000 by
10693
    # default) and relocated if they conflict, which is a slow very memory
10694
    # consuming and fragmenting process.  To avoid this, we pick a random,
10695
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10696
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10697
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10698
    archive_expsym_cmds_CXX='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'
10699
    ;;
10700
  irix5* | irix6*)
10701
    case $cc_basename in
10702
      CC*)
10703
        # SGI C++
10704
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10705
 
10706
        # Archives containing C++ object files must be created using
10707
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10708
        # necessary to make sure instantiated templates are included
10709
        # in the archive.
10710
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10711
        ;;
10712
      *)
10713
        if test "$GXX" = yes; then
10714
          if test "$with_gnu_ld" = no; then
10715
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10716
          else
10717
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10718
          fi
10719
        fi
10720
        link_all_deplibs_CXX=yes
10721
        ;;
10722
    esac
10723
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10724
    hardcode_libdir_separator_CXX=:
10725
    ;;
10726
  linux* | k*bsd*-gnu)
10727
    case $cc_basename in
10728
      KCC*)
10729
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10730
 
10731
        # KCC will only create a shared library if the output file
10732
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10733
        # to its proper name (with version) after linking.
10734
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10735
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10736
        # Commands to make compiler produce verbose output that lists
10737
        # what "hidden" libraries, object files and flags are used when
10738
        # linking a shared library.
10739
        #
10740
        # There doesn't appear to be a way to prevent this compiler from
10741
        # explicitly linking system object files so we need to strip them
10742
        # from the output so that they don't get included in the library
10743
        # dependencies.
10744
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10745
 
10746
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10747
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10748
 
10749
        # Archives containing C++ object files must be created using
10750
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10751
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10752
        ;;
10753
      icpc*)
10754
        # Intel C++
10755
        with_gnu_ld=yes
10756
        # version 8.0 and above of icpc choke on multiply defined symbols
10757
        # if we add $predep_objects and $postdep_objects, however 7.1 and
10758
        # earlier do not add the objects themselves.
10759
        case `$CC -V 2>&1` in
10760
        *"Version 7."*)
10761
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10762
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10763
          ;;
10764
        *)  # Version 8.0 or newer
10765
          tmp_idyn=
10766
          case $host_cpu in
10767
            ia64*) tmp_idyn=' -i_dynamic';;
10768
          esac
10769
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10770
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10771
          ;;
10772
        esac
10773
        archive_cmds_need_lc_CXX=no
10774
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10775
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10776
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10777
        ;;
10778
      pgCC*)
10779
        # Portland Group C++ compiler
10780
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10781
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10782
 
10783
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10784
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10785
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10786
        ;;
10787
      cxx*)
10788
        # Compaq C++
10789
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10790
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10791
 
10792
        runpath_var=LD_RUN_PATH
10793
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10794
        hardcode_libdir_separator_CXX=:
10795
 
10796
        # Commands to make compiler produce verbose output that lists
10797
        # what "hidden" libraries, object files and flags are used when
10798
        # linking a shared library.
10799
        #
10800
        # There doesn't appear to be a way to prevent this compiler from
10801
        # explicitly linking system object files so we need to strip them
10802
        # from the output so that they don't get included in the library
10803
        # dependencies.
10804
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10805
        ;;
10806
      *)
10807
        case `$CC -V 2>&1 | sed 5q` in
10808
        *Sun\ C*)
10809
          # Sun C++ 5.9
10810
          no_undefined_flag_CXX=' -zdefs'
10811
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10812
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
10813
          hardcode_libdir_flag_spec_CXX='-R$libdir'
10814
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10815
 
10816
          # Not sure whether something based on
10817
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10818
          # would be better.
10819
          output_verbose_link_cmd='echo'
10820
 
10821
          # Archives containing C++ object files must be created using
10822
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10823
          # necessary to make sure instantiated templates are included
10824
          # in the archive.
10825
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10826
          ;;
10827
        esac
10828
        ;;
10829
    esac
10830
    ;;
10831
  lynxos*)
10832
    # FIXME: insert proper C++ library support
10833
    ld_shlibs_CXX=no
10834
    ;;
10835
  m88k*)
10836
    # FIXME: insert proper C++ library support
10837
    ld_shlibs_CXX=no
10838
    ;;
10839
  mvs*)
10840
    case $cc_basename in
10841
      cxx*)
10842
        # FIXME: insert proper C++ library support
10843
        ld_shlibs_CXX=no
10844
        ;;
10845
      *)
10846
        # FIXME: insert proper C++ library support
10847
        ld_shlibs_CXX=no
10848
        ;;
10849
    esac
10850
    ;;
10851
  netbsd*)
10852
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10853
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10854
      wlarc=
10855
      hardcode_libdir_flag_spec_CXX='-R$libdir'
10856
      hardcode_direct_CXX=yes
10857
      hardcode_shlibpath_var_CXX=no
10858
    fi
10859
    # Workaround some broken pre-1.5 toolchains
10860
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10861
    ;;
10862
  openbsd2*)
10863
    # C++ shared libraries are fairly broken
10864
    ld_shlibs_CXX=no
10865
    ;;
10866
  openbsd*)
10867
    if test -f /usr/libexec/ld.so; then
10868
      hardcode_direct_CXX=yes
10869
      hardcode_shlibpath_var_CXX=no
10870
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10871
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10872
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10873
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10874
        export_dynamic_flag_spec_CXX='${wl}-E'
10875
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10876
      fi
10877
      output_verbose_link_cmd='echo'
10878
    else
10879
      ld_shlibs_CXX=no
10880
    fi
10881
    ;;
10882
  osf3*)
10883
    case $cc_basename in
10884
      KCC*)
10885
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10886
 
10887
        # KCC will only create a shared library if the output file
10888
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10889
        # to its proper name (with version) after linking.
10890
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10891
 
10892
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10893
        hardcode_libdir_separator_CXX=:
10894
 
10895
        # Archives containing C++ object files must be created using
10896
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10897
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10898
 
10899
        ;;
10900
      RCC*)
10901
        # Rational C++ 2.4.1
10902
        # FIXME: insert proper C++ library support
10903
        ld_shlibs_CXX=no
10904
        ;;
10905
      cxx*)
10906
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10907
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10908
 
10909
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10910
        hardcode_libdir_separator_CXX=:
10911
 
10912
        # Commands to make compiler produce verbose output that lists
10913
        # what "hidden" libraries, object files and flags are used when
10914
        # linking a shared library.
10915
        #
10916
        # There doesn't appear to be a way to prevent this compiler from
10917
        # explicitly linking system object files so we need to strip them
10918
        # from the output so that they don't get included in the library
10919
        # dependencies.
10920
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10921
        ;;
10922
      *)
10923
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10924
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10925
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10926
 
10927
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10928
          hardcode_libdir_separator_CXX=:
10929
 
10930
          # Commands to make compiler produce verbose output that lists
10931
          # what "hidden" libraries, object files and flags are used when
10932
          # linking a shared library.
10933
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10934
 
10935
        else
10936
          # FIXME: insert proper C++ library support
10937
          ld_shlibs_CXX=no
10938
        fi
10939
        ;;
10940
    esac
10941
    ;;
10942
  osf4* | osf5*)
10943
    case $cc_basename in
10944
      KCC*)
10945
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10946
 
10947
        # KCC will only create a shared library if the output file
10948
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10949
        # to its proper name (with version) after linking.
10950
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10951
 
10952
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10953
        hardcode_libdir_separator_CXX=:
10954
 
10955
        # Archives containing C++ object files must be created using
10956
        # the KAI C++ compiler.
10957
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10958
        ;;
10959
      RCC*)
10960
        # Rational C++ 2.4.1
10961
        # FIXME: insert proper C++ library support
10962
        ld_shlibs_CXX=no
10963
        ;;
10964
      cxx*)
10965
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10966
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10967
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10968
          echo "-hidden">> $lib.exp~
10969
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10970
          $rm $lib.exp'
10971
 
10972
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10973
        hardcode_libdir_separator_CXX=:
10974
 
10975
        # Commands to make compiler produce verbose output that lists
10976
        # what "hidden" libraries, object files and flags are used when
10977
        # linking a shared library.
10978
        #
10979
        # There doesn't appear to be a way to prevent this compiler from
10980
        # explicitly linking system object files so we need to strip them
10981
        # from the output so that they don't get included in the library
10982
        # dependencies.
10983
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10984
        ;;
10985
      *)
10986
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10987
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10988
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10989
 
10990
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10991
          hardcode_libdir_separator_CXX=:
10992
 
10993
          # Commands to make compiler produce verbose output that lists
10994
          # what "hidden" libraries, object files and flags are used when
10995
          # linking a shared library.
10996
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10997
 
10998
        else
10999
          # FIXME: insert proper C++ library support
11000
          ld_shlibs_CXX=no
11001
        fi
11002
        ;;
11003
    esac
11004
    ;;
11005
  psos*)
11006
    # FIXME: insert proper C++ library support
11007
    ld_shlibs_CXX=no
11008
    ;;
11009
  sunos4*)
11010
    case $cc_basename in
11011
      CC*)
11012
        # Sun C++ 4.x
11013
        # FIXME: insert proper C++ library support
11014
        ld_shlibs_CXX=no
11015
        ;;
11016
      lcc*)
11017
        # Lucid
11018
        # FIXME: insert proper C++ library support
11019
        ld_shlibs_CXX=no
11020
        ;;
11021
      *)
11022
        # FIXME: insert proper C++ library support
11023
        ld_shlibs_CXX=no
11024
        ;;
11025
    esac
11026
    ;;
11027
  solaris*)
11028
    case $cc_basename in
11029
      CC*)
11030
        # Sun C++ 4.2, 5.x and Centerline C++
11031
        archive_cmds_need_lc_CXX=yes
11032
        no_undefined_flag_CXX=' -zdefs'
11033
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11034
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11035
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11036
 
11037
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11038
        hardcode_shlibpath_var_CXX=no
11039
        case $host_os in
11040
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11041
          *)
11042
            # The compiler driver will combine and reorder linker options,
11043
            # but understands `-z linker_flag'.
11044
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11045
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11046
            ;;
11047
        esac
11048
        link_all_deplibs_CXX=yes
11049
 
11050
        output_verbose_link_cmd='echo'
11051
 
11052
        # Archives containing C++ object files must be created using
11053
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11054
        # necessary to make sure instantiated templates are included
11055
        # in the archive.
11056
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11057
        ;;
11058
      gcx*)
11059
        # Green Hills C++ Compiler
11060
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11061
 
11062
        # The C++ compiler must be used to create the archive.
11063
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11064
        ;;
11065
      *)
11066
        # GNU C++ compiler with Solaris linker
11067
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11068
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11069
          if $CC --version | grep -v '^2\.7' > /dev/null; then
11070
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11071
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11072
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11073
 
11074
            # Commands to make compiler produce verbose output that lists
11075
            # what "hidden" libraries, object files and flags are used when
11076
            # linking a shared library.
11077
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11078
          else
11079
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11080
            # platform.
11081
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11082
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11083
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11084
 
11085
            # Commands to make compiler produce verbose output that lists
11086
            # what "hidden" libraries, object files and flags are used when
11087
            # linking a shared library.
11088
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11089
          fi
11090
 
11091
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11092
          case $host_os in
11093
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11094
          *)
11095
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11096
            ;;
11097
          esac
11098
        fi
11099
        ;;
11100
    esac
11101
    ;;
11102
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11103
    no_undefined_flag_CXX='${wl}-z,text'
11104
    archive_cmds_need_lc_CXX=no
11105
    hardcode_shlibpath_var_CXX=no
11106
    runpath_var='LD_RUN_PATH'
11107
 
11108
    case $cc_basename in
11109
      CC*)
11110
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11111
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11112
        ;;
11113
      *)
11114
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11115
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11116
        ;;
11117
    esac
11118
    ;;
11119
  sysv5* | sco3.2v5* | sco5v6*)
11120
    # Note: We can NOT use -z defs as we might desire, because we do not
11121
    # link with -lc, and that would cause any symbols used from libc to
11122
    # always be unresolved, which means just about no library would
11123
    # ever link correctly.  If we're not using GNU ld we use -z text
11124
    # though, which does catch some bad symbols but isn't as heavy-handed
11125
    # as -z defs.
11126
    # For security reasons, it is highly recommended that you always
11127
    # use absolute paths for naming shared libraries, and exclude the
11128
    # DT_RUNPATH tag from executables and libraries.  But doing so
11129
    # requires that you compile everything twice, which is a pain.
11130
    # So that behaviour is only enabled if SCOABSPATH is set to a
11131
    # non-empty value in the environment.  Most likely only useful for
11132
    # creating official distributions of packages.
11133
    # This is a hack until libtool officially supports absolute path
11134
    # names for shared libraries.
11135
    no_undefined_flag_CXX='${wl}-z,text'
11136
    allow_undefined_flag_CXX='${wl}-z,nodefs'
11137
    archive_cmds_need_lc_CXX=no
11138
    hardcode_shlibpath_var_CXX=no
11139
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11140
    hardcode_libdir_separator_CXX=':'
11141
    link_all_deplibs_CXX=yes
11142
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11143
    runpath_var='LD_RUN_PATH'
11144
 
11145
    case $cc_basename in
11146
      CC*)
11147
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11148
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11149
        ;;
11150
      *)
11151
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11152
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11153
        ;;
11154
    esac
11155
    ;;
11156
  tandem*)
11157
    case $cc_basename in
11158
      NCC*)
11159
        # NonStop-UX NCC 3.20
11160
        # FIXME: insert proper C++ library support
11161
        ld_shlibs_CXX=no
11162
        ;;
11163
      *)
11164
        # FIXME: insert proper C++ library support
11165
        ld_shlibs_CXX=no
11166
        ;;
11167
    esac
11168
    ;;
11169
  vxworks*)
11170
    # FIXME: insert proper C++ library support
11171
    ld_shlibs_CXX=no
11172
    ;;
11173
  *)
11174
    # FIXME: insert proper C++ library support
11175
    ld_shlibs_CXX=no
11176
    ;;
11177
esac
11178
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11179
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11180
test "$ld_shlibs_CXX" = no && can_build_shared=no
11181
 
11182
GCC_CXX="$GXX"
11183
LD_CXX="$LD"
11184
 
11185
 
11186
cat > conftest.$ac_ext <
11187
class Foo
11188
{
11189
public:
11190
  Foo (void) { a = 0; }
11191
private:
11192
  int a;
11193
};
11194
EOF
11195
 
11196
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11197
  (eval $ac_compile) 2>&5
11198
  ac_status=$?
11199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200
  (exit $ac_status); }; then
11201
  # Parse the compiler output and extract the necessary
11202
  # objects, libraries and library flags.
11203
 
11204
  # Sentinel used to keep track of whether or not we are before
11205
  # the conftest object file.
11206
  pre_test_object_deps_done=no
11207
 
11208
  # The `*' in the case matches for architectures that use `case' in
11209
  # $output_verbose_cmd can trigger glob expansion during the loop
11210
  # eval without this substitution.
11211
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11212
 
11213
  for p in `eval $output_verbose_link_cmd`; do
11214
    case $p in
11215
 
11216
    -L* | -R* | -l*)
11217
       # Some compilers place space between "-{L,R}" and the path.
11218
       # Remove the space.
11219
       if test $p = "-L" \
11220
          || test $p = "-R"; then
11221
         prev=$p
11222
         continue
11223
       else
11224
         prev=
11225
       fi
11226
 
11227
       if test "$pre_test_object_deps_done" = no; then
11228
         case $p in
11229
         -L* | -R*)
11230
           # Internal compiler library paths should come after those
11231
           # provided the user.  The postdeps already come after the
11232
           # user supplied libs so there is no need to process them.
11233
           if test -z "$compiler_lib_search_path_CXX"; then
11234
             compiler_lib_search_path_CXX="${prev}${p}"
11235
           else
11236
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11237
           fi
11238
           ;;
11239
         # The "-l" case would never come before the object being
11240
         # linked, so don't bother handling this case.
11241
         esac
11242
       else
11243
         if test -z "$postdeps_CXX"; then
11244
           postdeps_CXX="${prev}${p}"
11245
         else
11246
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11247
         fi
11248
       fi
11249
       ;;
11250
 
11251
    *.$objext)
11252
       # This assumes that the test object file only shows up
11253
       # once in the compiler output.
11254
       if test "$p" = "conftest.$objext"; then
11255
         pre_test_object_deps_done=yes
11256
         continue
11257
       fi
11258
 
11259
       if test "$pre_test_object_deps_done" = no; then
11260
         if test -z "$predep_objects_CXX"; then
11261
           predep_objects_CXX="$p"
11262
         else
11263
           predep_objects_CXX="$predep_objects_CXX $p"
11264
         fi
11265
       else
11266
         if test -z "$postdep_objects_CXX"; then
11267
           postdep_objects_CXX="$p"
11268
         else
11269
           postdep_objects_CXX="$postdep_objects_CXX $p"
11270
         fi
11271
       fi
11272
       ;;
11273
 
11274
    *) ;; # Ignore the rest.
11275
 
11276
    esac
11277
  done
11278
 
11279
  # Clean up.
11280
  rm -f a.out a.exe
11281
else
11282
  echo "libtool.m4: error: problem compiling CXX test program"
11283
fi
11284
 
11285
$rm -f confest.$objext
11286
 
11287
# PORTME: override above test on systems where it is broken
11288
case $host_os in
11289
interix[3-9]*)
11290
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11291
  # hack all around it, let's just trust "g++" to DTRT.
11292
  predep_objects_CXX=
11293
  postdep_objects_CXX=
11294
  postdeps_CXX=
11295
  ;;
11296
 
11297
linux*)
11298
  case `$CC -V 2>&1 | sed 5q` in
11299
  *Sun\ C*)
11300
    # Sun C++ 5.9
11301
    #
11302
    # The more standards-conforming stlport4 library is
11303
    # incompatible with the Cstd library. Avoid specifying
11304
    # it if it's in CXXFLAGS. Ignore libCrun as
11305
    # -library=stlport4 depends on it.
11306
    case " $CXX $CXXFLAGS " in
11307
    *" -library=stlport4 "*)
11308
      solaris_use_stlport4=yes
11309
      ;;
11310
    esac
11311
    if test "$solaris_use_stlport4" != yes; then
11312
      postdeps_CXX='-library=Cstd -library=Crun'
11313
    fi
11314
    ;;
11315
  esac
11316
  ;;
11317
 
11318
solaris*)
11319
  case $cc_basename in
11320
  CC*)
11321
    # The more standards-conforming stlport4 library is
11322
    # incompatible with the Cstd library. Avoid specifying
11323
    # it if it's in CXXFLAGS. Ignore libCrun as
11324
    # -library=stlport4 depends on it.
11325
    case " $CXX $CXXFLAGS " in
11326
    *" -library=stlport4 "*)
11327
      solaris_use_stlport4=yes
11328
      ;;
11329
    esac
11330
 
11331
    # Adding this requires a known-good setup of shared libraries for
11332
    # Sun compiler versions before 5.6, else PIC objects from an old
11333
    # archive will be linked into the output, leading to subtle bugs.
11334
    if test "$solaris_use_stlport4" != yes; then
11335
      postdeps_CXX='-library=Cstd -library=Crun'
11336
    fi
11337
    ;;
11338
  esac
11339
  ;;
11340
esac
11341
 
11342
 
11343
case " $postdeps_CXX " in
11344
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11345
esac
11346
 
11347
lt_prog_compiler_wl_CXX=
11348
lt_prog_compiler_pic_CXX=
11349
lt_prog_compiler_static_CXX=
11350
 
11351
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11352
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11353
 
11354
  # C++ specific cases for pic, static, wl, etc.
11355
  if test "$GXX" = yes; then
11356
    lt_prog_compiler_wl_CXX='-Wl,'
11357
    lt_prog_compiler_static_CXX='-static'
11358
 
11359
    case $host_os in
11360
    aix*)
11361
      # All AIX code is PIC.
11362
      if test "$host_cpu" = ia64; then
11363
        # AIX 5 now supports IA64 processor
11364
        lt_prog_compiler_static_CXX='-Bstatic'
11365
      fi
11366
      ;;
11367
    amigaos*)
11368
      # FIXME: we need at least 68020 code to build shared libraries, but
11369
      # adding the `-m68020' flag to GCC prevents building anything better,
11370
      # like `-m68040'.
11371
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11372
      ;;
11373
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11374
      # PIC is the default for these OSes.
11375
      ;;
11376
    mingw* | cygwin* | os2* | pw32*)
11377
      # This hack is so that the source file can tell whether it is being
11378
      # built for inclusion in a dll (and should export symbols for example).
11379
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11380
      # (--disable-auto-import) libraries
11381
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11382
      ;;
11383
    darwin* | rhapsody*)
11384
      # PIC is the default on this platform
11385
      # Common symbols not allowed in MH_DYLIB files
11386
      lt_prog_compiler_pic_CXX='-fno-common'
11387
      ;;
11388
    *djgpp*)
11389
      # DJGPP does not support shared libraries at all
11390
      lt_prog_compiler_pic_CXX=
11391
      ;;
11392
    interix[3-9]*)
11393
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11394
      # Instead, we relocate shared libraries at runtime.
11395
      ;;
11396
    sysv4*MP*)
11397
      if test -d /usr/nec; then
11398
        lt_prog_compiler_pic_CXX=-Kconform_pic
11399
      fi
11400
      ;;
11401
    hpux*)
11402
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11403
      # not for PA HP-UX.
11404
      case $host_cpu in
11405
      hppa*64*|ia64*)
11406
        ;;
11407
      *)
11408
        lt_prog_compiler_pic_CXX='-fPIC'
11409
        ;;
11410
      esac
11411
      ;;
11412
    *)
11413
      lt_prog_compiler_pic_CXX='-fPIC'
11414
      ;;
11415
    esac
11416
  else
11417
    case $host_os in
11418
      aix4* | aix5*)
11419
        # All AIX code is PIC.
11420
        if test "$host_cpu" = ia64; then
11421
          # AIX 5 now supports IA64 processor
11422
          lt_prog_compiler_static_CXX='-Bstatic'
11423
        else
11424
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11425
        fi
11426
        ;;
11427
      chorus*)
11428
        case $cc_basename in
11429
        cxch68*)
11430
          # Green Hills C++ Compiler
11431
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11432
          ;;
11433
        esac
11434
        ;;
11435
       darwin*)
11436
         # PIC is the default on this platform
11437
         # Common symbols not allowed in MH_DYLIB files
11438
         case $cc_basename in
11439
           xlc*)
11440
           lt_prog_compiler_pic_CXX='-qnocommon'
11441
           lt_prog_compiler_wl_CXX='-Wl,'
11442
           ;;
11443
         esac
11444
       ;;
11445
      dgux*)
11446
        case $cc_basename in
11447
          ec++*)
11448
            lt_prog_compiler_pic_CXX='-KPIC'
11449
            ;;
11450
          ghcx*)
11451
            # Green Hills C++ Compiler
11452
            lt_prog_compiler_pic_CXX='-pic'
11453
            ;;
11454
          *)
11455
            ;;
11456
        esac
11457
        ;;
11458
      freebsd* | dragonfly*)
11459
        # FreeBSD uses GNU C++
11460
        ;;
11461
      hpux9* | hpux10* | hpux11*)
11462
        case $cc_basename in
11463
          CC*)
11464
            lt_prog_compiler_wl_CXX='-Wl,'
11465
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11466
            if test "$host_cpu" != ia64; then
11467
              lt_prog_compiler_pic_CXX='+Z'
11468
            fi
11469
            ;;
11470
          aCC*)
11471
            lt_prog_compiler_wl_CXX='-Wl,'
11472
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11473
            case $host_cpu in
11474
            hppa*64*|ia64*)
11475
              # +Z the default
11476
              ;;
11477
            *)
11478
              lt_prog_compiler_pic_CXX='+Z'
11479
              ;;
11480
            esac
11481
            ;;
11482
          *)
11483
            ;;
11484
        esac
11485
        ;;
11486
      interix*)
11487
        # This is c89, which is MS Visual C++ (no shared libs)
11488
        # Anyone wants to do a port?
11489
        ;;
11490
      irix5* | irix6* | nonstopux*)
11491
        case $cc_basename in
11492
          CC*)
11493
            lt_prog_compiler_wl_CXX='-Wl,'
11494
            lt_prog_compiler_static_CXX='-non_shared'
11495
            # CC pic flag -KPIC is the default.
11496
            ;;
11497
          *)
11498
            ;;
11499
        esac
11500
        ;;
11501
      linux* | k*bsd*-gnu)
11502
        case $cc_basename in
11503
          KCC*)
11504
            # KAI C++ Compiler
11505
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11506
            lt_prog_compiler_pic_CXX='-fPIC'
11507
            ;;
11508
          icpc* | ecpc*)
11509
            # Intel C++
11510
            lt_prog_compiler_wl_CXX='-Wl,'
11511
            lt_prog_compiler_pic_CXX='-KPIC'
11512
            lt_prog_compiler_static_CXX='-static'
11513
            ;;
11514
          pgCC*)
11515
            # Portland Group C++ compiler.
11516
            lt_prog_compiler_wl_CXX='-Wl,'
11517
            lt_prog_compiler_pic_CXX='-fpic'
11518
            lt_prog_compiler_static_CXX='-Bstatic'
11519
            ;;
11520
          cxx*)
11521
            # Compaq C++
11522
            # Make sure the PIC flag is empty.  It appears that all Alpha
11523
            # Linux and Compaq Tru64 Unix objects are PIC.
11524
            lt_prog_compiler_pic_CXX=
11525
            lt_prog_compiler_static_CXX='-non_shared'
11526
            ;;
11527
          *)
11528
            case `$CC -V 2>&1 | sed 5q` in
11529
            *Sun\ C*)
11530
              # Sun C++ 5.9
11531
              lt_prog_compiler_pic_CXX='-KPIC'
11532
              lt_prog_compiler_static_CXX='-Bstatic'
11533
              lt_prog_compiler_wl_CXX='-Qoption ld '
11534
              ;;
11535
            esac
11536
            ;;
11537
        esac
11538
        ;;
11539
      lynxos*)
11540
        ;;
11541
      m88k*)
11542
        ;;
11543
      mvs*)
11544
        case $cc_basename in
11545
          cxx*)
11546
            lt_prog_compiler_pic_CXX='-W c,exportall'
11547
            ;;
11548
          *)
11549
            ;;
11550
        esac
11551
        ;;
11552
      netbsd*)
11553
        ;;
11554
      osf3* | osf4* | osf5*)
11555
        case $cc_basename in
11556
          KCC*)
11557
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11558
            ;;
11559
          RCC*)
11560
            # Rational C++ 2.4.1
11561
            lt_prog_compiler_pic_CXX='-pic'
11562
            ;;
11563
          cxx*)
11564
            # Digital/Compaq C++
11565
            lt_prog_compiler_wl_CXX='-Wl,'
11566
            # Make sure the PIC flag is empty.  It appears that all Alpha
11567
            # Linux and Compaq Tru64 Unix objects are PIC.
11568
            lt_prog_compiler_pic_CXX=
11569
            lt_prog_compiler_static_CXX='-non_shared'
11570
            ;;
11571
          *)
11572
            ;;
11573
        esac
11574
        ;;
11575
      psos*)
11576
        ;;
11577
      solaris*)
11578
        case $cc_basename in
11579
          CC*)
11580
            # Sun C++ 4.2, 5.x and Centerline C++
11581
            lt_prog_compiler_pic_CXX='-KPIC'
11582
            lt_prog_compiler_static_CXX='-Bstatic'
11583
            lt_prog_compiler_wl_CXX='-Qoption ld '
11584
            ;;
11585
          gcx*)
11586
            # Green Hills C++ Compiler
11587
            lt_prog_compiler_pic_CXX='-PIC'
11588
            ;;
11589
          *)
11590
            ;;
11591
        esac
11592
        ;;
11593
      sunos4*)
11594
        case $cc_basename in
11595
          CC*)
11596
            # Sun C++ 4.x
11597
            lt_prog_compiler_pic_CXX='-pic'
11598
            lt_prog_compiler_static_CXX='-Bstatic'
11599
            ;;
11600
          lcc*)
11601
            # Lucid
11602
            lt_prog_compiler_pic_CXX='-pic'
11603
            ;;
11604
          *)
11605
            ;;
11606
        esac
11607
        ;;
11608
      tandem*)
11609
        case $cc_basename in
11610
          NCC*)
11611
            # NonStop-UX NCC 3.20
11612
            lt_prog_compiler_pic_CXX='-KPIC'
11613
            ;;
11614
          *)
11615
            ;;
11616
        esac
11617
        ;;
11618
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11619
        case $cc_basename in
11620
          CC*)
11621
            lt_prog_compiler_wl_CXX='-Wl,'
11622
            lt_prog_compiler_pic_CXX='-KPIC'
11623
            lt_prog_compiler_static_CXX='-Bstatic'
11624
            ;;
11625
        esac
11626
        ;;
11627
      vxworks*)
11628
        ;;
11629
      *)
11630
        lt_prog_compiler_can_build_shared_CXX=no
11631
        ;;
11632
    esac
11633
  fi
11634
 
11635
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11636
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11637
 
11638
#
11639
# Check to make sure the PIC flag actually works.
11640
#
11641
if test -n "$lt_prog_compiler_pic_CXX"; then
11642
 
11643
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11644
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11645
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11646
  echo $ECHO_N "(cached) $ECHO_C" >&6
11647
else
11648
  lt_prog_compiler_pic_works_CXX=no
11649
  ac_outfile=conftest.$ac_objext
11650
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11651
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11652
   # Insert the option either (1) after the last *FLAGS variable, or
11653
   # (2) before a word containing "conftest.", or (3) at the end.
11654
   # Note that $ac_compile itself does not contain backslashes and begins
11655
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11656
   # The option is referenced via a variable to avoid confusing sed.
11657
   lt_compile=`echo "$ac_compile" | $SED \
11658
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11659
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11660
   -e 's:$: $lt_compiler_flag:'`
11661
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11662
   (eval "$lt_compile" 2>conftest.err)
11663
   ac_status=$?
11664
   cat conftest.err >&5
11665
   echo "$as_me:__oline__: \$? = $ac_status" >&5
11666
   if (exit $ac_status) && test -s "$ac_outfile"; then
11667
     # The compiler can only warn and ignore the option if not recognized
11668
     # So say no if there are warnings other than the usual output.
11669
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11670
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11671
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11672
       lt_prog_compiler_pic_works_CXX=yes
11673
     fi
11674
   fi
11675
   $rm conftest*
11676
 
11677
fi
11678
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11679
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11680
 
11681
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11682
    case $lt_prog_compiler_pic_CXX in
11683
     "" | " "*) ;;
11684
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11685
     esac
11686
else
11687
    lt_prog_compiler_pic_CXX=
11688
     lt_prog_compiler_can_build_shared_CXX=no
11689
fi
11690
 
11691
fi
11692
case $host_os in
11693
  # For platforms which do not support PIC, -DPIC is meaningless:
11694
  *djgpp*)
11695
    lt_prog_compiler_pic_CXX=
11696
    ;;
11697
  *)
11698
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11699
    ;;
11700
esac
11701
 
11702
#
11703
# Check to make sure the static flag actually works.
11704
#
11705
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11706
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11707
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11708
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11709
  echo $ECHO_N "(cached) $ECHO_C" >&6
11710
else
11711
  lt_prog_compiler_static_works_CXX=no
11712
   save_LDFLAGS="$LDFLAGS"
11713
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11714
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11715
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11716
     # The linker can only warn and ignore the option if not recognized
11717
     # So say no if there are warnings
11718
     if test -s conftest.err; then
11719
       # Append any errors to the config.log.
11720
       cat conftest.err 1>&5
11721
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11722
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11723
       if diff conftest.exp conftest.er2 >/dev/null; then
11724
         lt_prog_compiler_static_works_CXX=yes
11725
       fi
11726
     else
11727
       lt_prog_compiler_static_works_CXX=yes
11728
     fi
11729
   fi
11730
   $rm conftest*
11731
   LDFLAGS="$save_LDFLAGS"
11732
 
11733
fi
11734
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11735
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11736
 
11737
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11738
    :
11739
else
11740
    lt_prog_compiler_static_CXX=
11741
fi
11742
 
11743
 
11744
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11745
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11746
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11747
  echo $ECHO_N "(cached) $ECHO_C" >&6
11748
else
11749
  lt_cv_prog_compiler_c_o_CXX=no
11750
   $rm -r conftest 2>/dev/null
11751
   mkdir conftest
11752
   cd conftest
11753
   mkdir out
11754
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11755
 
11756
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11757
   # Insert the option either (1) after the last *FLAGS variable, or
11758
   # (2) before a word containing "conftest.", or (3) at the end.
11759
   # Note that $ac_compile itself does not contain backslashes and begins
11760
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11761
   lt_compile=`echo "$ac_compile" | $SED \
11762
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11763
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11764
   -e 's:$: $lt_compiler_flag:'`
11765
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11766
   (eval "$lt_compile" 2>out/conftest.err)
11767
   ac_status=$?
11768
   cat out/conftest.err >&5
11769
   echo "$as_me:__oline__: \$? = $ac_status" >&5
11770
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11771
   then
11772
     # The compiler can only warn and ignore the option if not recognized
11773
     # So say no if there are warnings
11774
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11775
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11776
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11777
       lt_cv_prog_compiler_c_o_CXX=yes
11778
     fi
11779
   fi
11780
   chmod u+w . 2>&5
11781
   $rm conftest*
11782
   # SGI C++ compiler will create directory out/ii_files/ for
11783
   # template instantiation
11784
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11785
   $rm out/* && rmdir out
11786
   cd ..
11787
   rmdir conftest
11788
   $rm conftest*
11789
 
11790
fi
11791
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11792
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11793
 
11794
 
11795
hard_links="nottested"
11796
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11797
  # do not overwrite the value of need_locks provided by the user
11798
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11799
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11800
  hard_links=yes
11801
  $rm conftest*
11802
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11803
  touch conftest.a
11804
  ln conftest.a conftest.b 2>&5 || hard_links=no
11805
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11806
  { echo "$as_me:$LINENO: result: $hard_links" >&5
11807
echo "${ECHO_T}$hard_links" >&6; }
11808
  if test "$hard_links" = no; then
11809
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11810
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11811
    need_locks=warn
11812
  fi
11813
else
11814
  need_locks=no
11815
fi
11816
 
11817
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11818
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11819
 
11820
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11821
  case $host_os in
11822
  aix4* | aix5*)
11823
    # If we're using GNU nm, then we don't want the "-C" option.
11824
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11825
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11826
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11827
    else
11828
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11829
    fi
11830
    ;;
11831
  pw32*)
11832
    export_symbols_cmds_CXX="$ltdll_cmds"
11833
  ;;
11834
  cygwin* | mingw*)
11835
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11836
  ;;
11837
  *)
11838
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11839
  ;;
11840
  esac
11841
 
11842
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11843
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11844
test "$ld_shlibs_CXX" = no && can_build_shared=no
11845
 
11846
#
11847
# Do we need to explicitly link libc?
11848
#
11849
case "x$archive_cmds_need_lc_CXX" in
11850
x|xyes)
11851
  # Assume -lc should be added
11852
  archive_cmds_need_lc_CXX=yes
11853
 
11854
  if test "$enable_shared" = yes && test "$GCC" = yes; then
11855
    case $archive_cmds_CXX in
11856
    *'~'*)
11857
      # FIXME: we may have to deal with multi-command sequences.
11858
      ;;
11859
    '$CC '*)
11860
      # Test whether the compiler implicitly links with -lc since on some
11861
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11862
      # to ld, don't add -lc before -lgcc.
11863
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11864
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11865
      $rm conftest*
11866
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11867
 
11868
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11869
  (eval $ac_compile) 2>&5
11870
  ac_status=$?
11871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872
  (exit $ac_status); } 2>conftest.err; then
11873
        soname=conftest
11874
        lib=conftest
11875
        libobjs=conftest.$ac_objext
11876
        deplibs=
11877
        wl=$lt_prog_compiler_wl_CXX
11878
        pic_flag=$lt_prog_compiler_pic_CXX
11879
        compiler_flags=-v
11880
        linker_flags=-v
11881
        verstring=
11882
        output_objdir=.
11883
        libname=conftest
11884
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11885
        allow_undefined_flag_CXX=
11886
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11887
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11888
  ac_status=$?
11889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890
  (exit $ac_status); }
11891
        then
11892
          archive_cmds_need_lc_CXX=no
11893
        else
11894
          archive_cmds_need_lc_CXX=yes
11895
        fi
11896
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11897
      else
11898
        cat conftest.err 1>&5
11899
      fi
11900
      $rm conftest*
11901
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11902
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11903
      ;;
11904
    esac
11905
  fi
11906
  ;;
11907
esac
11908
 
11909
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11910
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11911
library_names_spec=
11912
libname_spec='lib$name'
11913
soname_spec=
11914
shrext_cmds=".so"
11915
postinstall_cmds=
11916
postuninstall_cmds=
11917
finish_cmds=
11918
finish_eval=
11919
shlibpath_var=
11920
shlibpath_overrides_runpath=unknown
11921
version_type=none
11922
dynamic_linker="$host_os ld.so"
11923
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11924
 
11925
need_lib_prefix=unknown
11926
hardcode_into_libs=no
11927
 
11928
# when you set need_version to no, make sure it does not cause -set_version
11929
# flags to be left without arguments
11930
need_version=unknown
11931
 
11932
case $host_os in
11933
aix3*)
11934
  version_type=linux
11935
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11936
  shlibpath_var=LIBPATH
11937
 
11938
  # AIX 3 has no versioning support, so we append a major version to the name.
11939
  soname_spec='${libname}${release}${shared_ext}$major'
11940
  ;;
11941
 
11942
aix4* | aix5*)
11943
  version_type=linux
11944
  need_lib_prefix=no
11945
  need_version=no
11946
  hardcode_into_libs=yes
11947
  if test "$host_cpu" = ia64; then
11948
    # AIX 5 supports IA64
11949
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11950
    shlibpath_var=LD_LIBRARY_PATH
11951
  else
11952
    # With GCC up to 2.95.x, collect2 would create an import file
11953
    # for dependence libraries.  The import file would start with
11954
    # the line `#! .'.  This would cause the generated library to
11955
    # depend on `.', always an invalid library.  This was fixed in
11956
    # development snapshots of GCC prior to 3.0.
11957
    case $host_os in
11958
      aix4 | aix4.[01] | aix4.[01].*)
11959
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11960
           echo ' yes '
11961
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11962
        :
11963
      else
11964
        can_build_shared=no
11965
      fi
11966
      ;;
11967
    esac
11968
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11969
    # soname into executable. Probably we can add versioning support to
11970
    # collect2, so additional links can be useful in future.
11971
    if test "$aix_use_runtimelinking" = yes; then
11972
      # If using run time linking (on AIX 4.2 or later) use lib.so
11973
      # instead of lib.a to let people know that these are not
11974
      # typical AIX shared libraries.
11975
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11976
    else
11977
      # We preserve .a as extension for shared libraries through AIX4.2
11978
      # and later when we are not doing run time linking.
11979
      library_names_spec='${libname}${release}.a $libname.a'
11980
      soname_spec='${libname}${release}${shared_ext}$major'
11981
    fi
11982
    shlibpath_var=LIBPATH
11983
  fi
11984
  ;;
11985
 
11986
amigaos*)
11987
  library_names_spec='$libname.ixlibrary $libname.a'
11988
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11989
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11990
  ;;
11991
 
11992
beos*)
11993
  library_names_spec='${libname}${shared_ext}'
11994
  dynamic_linker="$host_os ld.so"
11995
  shlibpath_var=LIBRARY_PATH
11996
  ;;
11997
 
11998
bsdi[45]*)
11999
  version_type=linux
12000
  need_version=no
12001
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12002
  soname_spec='${libname}${release}${shared_ext}$major'
12003
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12004
  shlibpath_var=LD_LIBRARY_PATH
12005
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12006
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12007
  # the default ld.so.conf also contains /usr/contrib/lib and
12008
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12009
  # libtool to hard-code these into programs
12010
  ;;
12011
 
12012
cygwin* | mingw* | pw32*)
12013
  version_type=windows
12014
  shrext_cmds=".dll"
12015
  need_version=no
12016
  need_lib_prefix=no
12017
 
12018
  case $GCC,$host_os in
12019
  yes,cygwin* | yes,mingw* | yes,pw32*)
12020
    library_names_spec='$libname.dll.a'
12021
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12022
    postinstall_cmds='base_file=`basename \${file}`~
12023
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12024
      dldir=$destdir/`dirname \$dlpath`~
12025
      test -d \$dldir || mkdir -p \$dldir~
12026
      $install_prog $dir/$dlname \$dldir/$dlname~
12027
      chmod a+x \$dldir/$dlname'
12028
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12029
      dlpath=$dir/\$dldll~
12030
       $rm \$dlpath'
12031
    shlibpath_overrides_runpath=yes
12032
 
12033
    case $host_os in
12034
    cygwin*)
12035
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12036
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12037
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12038
      ;;
12039
    mingw*)
12040
      # MinGW DLLs use traditional 'lib' prefix
12041
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12042
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12043
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12044
        # It is most probably a Windows format PATH printed by
12045
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12046
        # path with ; separators, and with drive letters. We can handle the
12047
        # drive letters (cygwin fileutils understands them), so leave them,
12048
        # especially as we might pass files found there to a mingw objdump,
12049
        # which wouldn't understand a cygwinified path. Ahh.
12050
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12051
      else
12052
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12053
      fi
12054
      ;;
12055
    pw32*)
12056
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12057
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12058
      ;;
12059
    esac
12060
    ;;
12061
 
12062
  *)
12063
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12064
    ;;
12065
  esac
12066
  dynamic_linker='Win32 ld.exe'
12067
  # FIXME: first we should search . and the directory the executable is in
12068
  shlibpath_var=PATH
12069
  ;;
12070
 
12071
darwin* | rhapsody*)
12072
  dynamic_linker="$host_os dyld"
12073
  version_type=darwin
12074
  need_lib_prefix=no
12075
  need_version=no
12076
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12077
  soname_spec='${libname}${release}${major}$shared_ext'
12078
  shlibpath_overrides_runpath=yes
12079
  shlibpath_var=DYLD_LIBRARY_PATH
12080
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12081
 
12082
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12083
  ;;
12084
 
12085
dgux*)
12086
  version_type=linux
12087
  need_lib_prefix=no
12088
  need_version=no
12089
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12090
  soname_spec='${libname}${release}${shared_ext}$major'
12091
  shlibpath_var=LD_LIBRARY_PATH
12092
  ;;
12093
 
12094
freebsd1*)
12095
  dynamic_linker=no
12096
  ;;
12097
 
12098
freebsd* | dragonfly*)
12099
  # DragonFly does not have aout.  When/if they implement a new
12100
  # versioning mechanism, adjust this.
12101
  if test -x /usr/bin/objformat; then
12102
    objformat=`/usr/bin/objformat`
12103
  else
12104
    case $host_os in
12105
    freebsd[123]*) objformat=aout ;;
12106
    *) objformat=elf ;;
12107
    esac
12108
  fi
12109
  version_type=freebsd-$objformat
12110
  case $version_type in
12111
    freebsd-elf*)
12112
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12113
      need_version=no
12114
      need_lib_prefix=no
12115
      ;;
12116
    freebsd-*)
12117
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12118
      need_version=yes
12119
      ;;
12120
  esac
12121
  shlibpath_var=LD_LIBRARY_PATH
12122
  case $host_os in
12123
  freebsd2*)
12124
    shlibpath_overrides_runpath=yes
12125
    ;;
12126
  freebsd3.[01]* | freebsdelf3.[01]*)
12127
    shlibpath_overrides_runpath=yes
12128
    hardcode_into_libs=yes
12129
    ;;
12130
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12131
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12132
    shlibpath_overrides_runpath=no
12133
    hardcode_into_libs=yes
12134
    ;;
12135
  *) # from 4.6 on, and DragonFly
12136
    shlibpath_overrides_runpath=yes
12137
    hardcode_into_libs=yes
12138
    ;;
12139
  esac
12140
  ;;
12141
 
12142
gnu*)
12143
  version_type=linux
12144
  need_lib_prefix=no
12145
  need_version=no
12146
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12147
  soname_spec='${libname}${release}${shared_ext}$major'
12148
  shlibpath_var=LD_LIBRARY_PATH
12149
  hardcode_into_libs=yes
12150
  ;;
12151
 
12152
hpux9* | hpux10* | hpux11*)
12153
  # Give a soname corresponding to the major version so that dld.sl refuses to
12154
  # link against other versions.
12155
  version_type=sunos
12156
  need_lib_prefix=no
12157
  need_version=no
12158
  case $host_cpu in
12159
  ia64*)
12160
    shrext_cmds='.so'
12161
    hardcode_into_libs=yes
12162
    dynamic_linker="$host_os dld.so"
12163
    shlibpath_var=LD_LIBRARY_PATH
12164
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12165
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12166
    soname_spec='${libname}${release}${shared_ext}$major'
12167
    if test "X$HPUX_IA64_MODE" = X32; then
12168
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12169
    else
12170
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12171
    fi
12172
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12173
    ;;
12174
   hppa*64*)
12175
     shrext_cmds='.sl'
12176
     hardcode_into_libs=yes
12177
     dynamic_linker="$host_os dld.sl"
12178
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12179
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12180
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12181
     soname_spec='${libname}${release}${shared_ext}$major'
12182
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12183
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12184
     ;;
12185
   *)
12186
    shrext_cmds='.sl'
12187
    dynamic_linker="$host_os dld.sl"
12188
    shlibpath_var=SHLIB_PATH
12189
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12190
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12191
    soname_spec='${libname}${release}${shared_ext}$major'
12192
    ;;
12193
  esac
12194
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12195
  postinstall_cmds='chmod 555 $lib'
12196
  ;;
12197
 
12198
interix[3-9]*)
12199
  version_type=linux
12200
  need_lib_prefix=no
12201
  need_version=no
12202
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12203
  soname_spec='${libname}${release}${shared_ext}$major'
12204
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12205
  shlibpath_var=LD_LIBRARY_PATH
12206
  shlibpath_overrides_runpath=no
12207
  hardcode_into_libs=yes
12208
  ;;
12209
 
12210
irix5* | irix6* | nonstopux*)
12211
  case $host_os in
12212
    nonstopux*) version_type=nonstopux ;;
12213
    *)
12214
        if test "$lt_cv_prog_gnu_ld" = yes; then
12215
                version_type=linux
12216
        else
12217
                version_type=irix
12218
        fi ;;
12219
  esac
12220
  need_lib_prefix=no
12221
  need_version=no
12222
  soname_spec='${libname}${release}${shared_ext}$major'
12223
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12224
  case $host_os in
12225
  irix5* | nonstopux*)
12226
    libsuff= shlibsuff=
12227
    ;;
12228
  *)
12229
    case $LD in # libtool.m4 will add one of these switches to LD
12230
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12231
      libsuff= shlibsuff= libmagic=32-bit;;
12232
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12233
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12234
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12235
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12236
    *) libsuff= shlibsuff= libmagic=never-match;;
12237
    esac
12238
    ;;
12239
  esac
12240
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12241
  shlibpath_overrides_runpath=no
12242
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12243
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12244
  hardcode_into_libs=yes
12245
  ;;
12246
 
12247
# No shared lib support for Linux oldld, aout, or coff.
12248
linux*oldld* | linux*aout* | linux*coff*)
12249
  dynamic_linker=no
12250
  ;;
12251
 
12252
# This must be Linux ELF.
12253
linux* | k*bsd*-gnu)
12254
  version_type=linux
12255
  need_lib_prefix=no
12256
  need_version=no
12257
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12258
  soname_spec='${libname}${release}${shared_ext}$major'
12259
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12260
  shlibpath_var=LD_LIBRARY_PATH
12261
  shlibpath_overrides_runpath=no
12262
  # This implies no fast_install, which is unacceptable.
12263
  # Some rework will be needed to allow for fast_install
12264
  # before this can be enabled.
12265
  hardcode_into_libs=yes
12266
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12267
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12268
 
12269
  # Append ld.so.conf contents to the search path
12270
  if test -f /etc/ld.so.conf; then
12271
    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;/^$/d' | tr '\n' ' '`
12272
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12273
  fi
12274
 
12275
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12276
  # powerpc, because MkLinux only supported shared libraries with the
12277
  # GNU dynamic linker.  Since this was broken with cross compilers,
12278
  # most powerpc-linux boxes support dynamic linking these days and
12279
  # people can always --disable-shared, the test was removed, and we
12280
  # assume the GNU/Linux dynamic linker is in use.
12281
  dynamic_linker='GNU/Linux ld.so'
12282
  ;;
12283
 
12284
netbsd*)
12285
  version_type=sunos
12286
  need_lib_prefix=no
12287
  need_version=no
12288
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12289
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12290
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12291
    dynamic_linker='NetBSD (a.out) ld.so'
12292
  else
12293
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12294
    soname_spec='${libname}${release}${shared_ext}$major'
12295
    dynamic_linker='NetBSD ld.elf_so'
12296
  fi
12297
  shlibpath_var=LD_LIBRARY_PATH
12298
  shlibpath_overrides_runpath=yes
12299
  hardcode_into_libs=yes
12300
  ;;
12301
 
12302
newsos6)
12303
  version_type=linux
12304
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12305
  shlibpath_var=LD_LIBRARY_PATH
12306
  shlibpath_overrides_runpath=yes
12307
  ;;
12308
 
12309
nto-qnx*)
12310
  version_type=linux
12311
  need_lib_prefix=no
12312
  need_version=no
12313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12314
  soname_spec='${libname}${release}${shared_ext}$major'
12315
  shlibpath_var=LD_LIBRARY_PATH
12316
  shlibpath_overrides_runpath=yes
12317
  ;;
12318
 
12319
openbsd*)
12320
  version_type=sunos
12321
  sys_lib_dlsearch_path_spec="/usr/lib"
12322
  need_lib_prefix=no
12323
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12324
  case $host_os in
12325
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12326
    *)                         need_version=no  ;;
12327
  esac
12328
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12329
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12330
  shlibpath_var=LD_LIBRARY_PATH
12331
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12332
    case $host_os in
12333
      openbsd2.[89] | openbsd2.[89].*)
12334
        shlibpath_overrides_runpath=no
12335
        ;;
12336
      *)
12337
        shlibpath_overrides_runpath=yes
12338
        ;;
12339
      esac
12340
  else
12341
    shlibpath_overrides_runpath=yes
12342
  fi
12343
  ;;
12344
 
12345
os2*)
12346
  libname_spec='$name'
12347
  shrext_cmds=".dll"
12348
  need_lib_prefix=no
12349
  library_names_spec='$libname${shared_ext} $libname.a'
12350
  dynamic_linker='OS/2 ld.exe'
12351
  shlibpath_var=LIBPATH
12352
  ;;
12353
 
12354
osf3* | osf4* | osf5*)
12355
  version_type=osf
12356
  need_lib_prefix=no
12357
  need_version=no
12358
  soname_spec='${libname}${release}${shared_ext}$major'
12359
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360
  shlibpath_var=LD_LIBRARY_PATH
12361
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12362
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12363
  ;;
12364
 
12365
rdos*)
12366
  dynamic_linker=no
12367
  ;;
12368
 
12369
solaris*)
12370
  version_type=linux
12371
  need_lib_prefix=no
12372
  need_version=no
12373
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12374
  soname_spec='${libname}${release}${shared_ext}$major'
12375
  shlibpath_var=LD_LIBRARY_PATH
12376
  shlibpath_overrides_runpath=yes
12377
  hardcode_into_libs=yes
12378
  # ldd complains unless libraries are executable
12379
  postinstall_cmds='chmod +x $lib'
12380
  ;;
12381
 
12382
sunos4*)
12383
  version_type=sunos
12384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12385
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12386
  shlibpath_var=LD_LIBRARY_PATH
12387
  shlibpath_overrides_runpath=yes
12388
  if test "$with_gnu_ld" = yes; then
12389
    need_lib_prefix=no
12390
  fi
12391
  need_version=yes
12392
  ;;
12393
 
12394
sysv4 | sysv4.3*)
12395
  version_type=linux
12396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12397
  soname_spec='${libname}${release}${shared_ext}$major'
12398
  shlibpath_var=LD_LIBRARY_PATH
12399
  case $host_vendor in
12400
    sni)
12401
      shlibpath_overrides_runpath=no
12402
      need_lib_prefix=no
12403
      export_dynamic_flag_spec='${wl}-Blargedynsym'
12404
      runpath_var=LD_RUN_PATH
12405
      ;;
12406
    siemens)
12407
      need_lib_prefix=no
12408
      ;;
12409
    motorola)
12410
      need_lib_prefix=no
12411
      need_version=no
12412
      shlibpath_overrides_runpath=no
12413
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12414
      ;;
12415
  esac
12416
  ;;
12417
 
12418
sysv4*MP*)
12419
  if test -d /usr/nec ;then
12420
    version_type=linux
12421
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12422
    soname_spec='$libname${shared_ext}.$major'
12423
    shlibpath_var=LD_LIBRARY_PATH
12424
  fi
12425
  ;;
12426
 
12427
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12428
  version_type=freebsd-elf
12429
  need_lib_prefix=no
12430
  need_version=no
12431
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12432
  soname_spec='${libname}${release}${shared_ext}$major'
12433
  shlibpath_var=LD_LIBRARY_PATH
12434
  hardcode_into_libs=yes
12435
  if test "$with_gnu_ld" = yes; then
12436
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12437
    shlibpath_overrides_runpath=no
12438
  else
12439
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12440
    shlibpath_overrides_runpath=yes
12441
    case $host_os in
12442
      sco3.2v5*)
12443
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12444
        ;;
12445
    esac
12446
  fi
12447
  sys_lib_dlsearch_path_spec='/usr/lib'
12448
  ;;
12449
 
12450
uts4*)
12451
  version_type=linux
12452
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12453
  soname_spec='${libname}${release}${shared_ext}$major'
12454
  shlibpath_var=LD_LIBRARY_PATH
12455
  ;;
12456
 
12457
*)
12458
  dynamic_linker=no
12459
  ;;
12460
esac
12461
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12462
echo "${ECHO_T}$dynamic_linker" >&6; }
12463
test "$dynamic_linker" = no && can_build_shared=no
12464
 
12465
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12466
if test "$GCC" = yes; then
12467
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12468
fi
12469
 
12470
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12471
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12472
hardcode_action_CXX=
12473
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12474
   test -n "$runpath_var_CXX" || \
12475
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12476
 
12477
  # We can hardcode non-existant directories.
12478
  if test "$hardcode_direct_CXX" != no &&
12479
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12480
     # have to relink, otherwise we might link with an installed library
12481
     # when we should be linking with a yet-to-be-installed one
12482
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12483
     test "$hardcode_minus_L_CXX" != no; then
12484
    # Linking always hardcodes the temporary library directory.
12485
    hardcode_action_CXX=relink
12486
  else
12487
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12488
    hardcode_action_CXX=immediate
12489
  fi
12490
else
12491
  # We cannot hardcode anything, or else we can only hardcode existing
12492
  # directories.
12493
  hardcode_action_CXX=unsupported
12494
fi
12495
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12496
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12497
 
12498
if test "$hardcode_action_CXX" = relink; then
12499
  # Fast installation is not supported
12500
  enable_fast_install=no
12501
elif test "$shlibpath_overrides_runpath" = yes ||
12502
     test "$enable_shared" = no; then
12503
  # Fast installation is not necessary
12504
  enable_fast_install=needless
12505
fi
12506
 
12507
 
12508
# The else clause should only fire when bootstrapping the
12509
# libtool distribution, otherwise you forgot to ship ltmain.sh
12510
# with your package, and you will get complaints that there are
12511
# no rules to generate ltmain.sh.
12512
if test -f "$ltmain"; then
12513
  # See if we are running on zsh, and set the options which allow our commands through
12514
  # without removal of \ escapes.
12515
  if test -n "${ZSH_VERSION+set}" ; then
12516
    setopt NO_GLOB_SUBST
12517
  fi
12518
  # Now quote all the things that may contain metacharacters while being
12519
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12520
  # variables and quote the copies for generation of the libtool script.
12521
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12522
    SED SHELL STRIP \
12523
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12524
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12525
    deplibs_check_method reload_flag reload_cmds need_locks \
12526
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12527
    lt_cv_sys_global_symbol_to_c_name_address \
12528
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12529
    old_postinstall_cmds old_postuninstall_cmds \
12530
    compiler_CXX \
12531
    CC_CXX \
12532
    LD_CXX \
12533
    lt_prog_compiler_wl_CXX \
12534
    lt_prog_compiler_pic_CXX \
12535
    lt_prog_compiler_static_CXX \
12536
    lt_prog_compiler_no_builtin_flag_CXX \
12537
    export_dynamic_flag_spec_CXX \
12538
    thread_safe_flag_spec_CXX \
12539
    whole_archive_flag_spec_CXX \
12540
    enable_shared_with_static_runtimes_CXX \
12541
    old_archive_cmds_CXX \
12542
    old_archive_from_new_cmds_CXX \
12543
    predep_objects_CXX \
12544
    postdep_objects_CXX \
12545
    predeps_CXX \
12546
    postdeps_CXX \
12547
    compiler_lib_search_path_CXX \
12548
    archive_cmds_CXX \
12549
    archive_expsym_cmds_CXX \
12550
    postinstall_cmds_CXX \
12551
    postuninstall_cmds_CXX \
12552
    old_archive_from_expsyms_cmds_CXX \
12553
    allow_undefined_flag_CXX \
12554
    no_undefined_flag_CXX \
12555
    export_symbols_cmds_CXX \
12556
    hardcode_libdir_flag_spec_CXX \
12557
    hardcode_libdir_flag_spec_ld_CXX \
12558
    hardcode_libdir_separator_CXX \
12559
    hardcode_automatic_CXX \
12560
    module_cmds_CXX \
12561
    module_expsym_cmds_CXX \
12562
    lt_cv_prog_compiler_c_o_CXX \
12563
    fix_srcfile_path_CXX \
12564
    exclude_expsyms_CXX \
12565
    include_expsyms_CXX; do
12566
 
12567
    case $var in
12568
    old_archive_cmds_CXX | \
12569
    old_archive_from_new_cmds_CXX | \
12570
    archive_cmds_CXX | \
12571
    archive_expsym_cmds_CXX | \
12572
    module_cmds_CXX | \
12573
    module_expsym_cmds_CXX | \
12574
    old_archive_from_expsyms_cmds_CXX | \
12575
    export_symbols_cmds_CXX | \
12576
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12577
    postinstall_cmds | postuninstall_cmds | \
12578
    old_postinstall_cmds | old_postuninstall_cmds | \
12579
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12580
      # Double-quote double-evaled strings.
12581
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12582
      ;;
12583
    *)
12584
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12585
      ;;
12586
    esac
12587
  done
12588
 
12589
  case $lt_echo in
12590
  *'\$0 --fallback-echo"')
12591
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12592
    ;;
12593
  esac
12594
 
12595
cfgfile="$ofile"
12596
 
12597
  cat <<__EOF__ >> "$cfgfile"
12598
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12599
 
12600
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12601
 
12602
# Shell to use when invoking shell scripts.
12603
SHELL=$lt_SHELL
12604
 
12605
# Whether or not to build shared libraries.
12606
build_libtool_libs=$enable_shared
12607
 
12608
# Whether or not to build static libraries.
12609
build_old_libs=$enable_static
12610
 
12611
# Whether or not to add -lc for building shared libraries.
12612
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12613
 
12614
# Whether or not to disallow shared libs when runtime libs are static
12615
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12616
 
12617
# Whether or not to optimize for fast installation.
12618
fast_install=$enable_fast_install
12619
 
12620
# The host system.
12621
host_alias=$host_alias
12622
host=$host
12623
host_os=$host_os
12624
 
12625
# The build system.
12626
build_alias=$build_alias
12627
build=$build
12628
build_os=$build_os
12629
 
12630
# An echo program that does not interpret backslashes.
12631
echo=$lt_echo
12632
 
12633
# The archiver.
12634
AR=$lt_AR
12635
AR_FLAGS=$lt_AR_FLAGS
12636
 
12637
# A C compiler.
12638
LTCC=$lt_LTCC
12639
 
12640
# LTCC compiler flags.
12641
LTCFLAGS=$lt_LTCFLAGS
12642
 
12643
# A language-specific compiler.
12644
CC=$lt_compiler_CXX
12645
 
12646
# Is the compiler the GNU C compiler?
12647
with_gcc=$GCC_CXX
12648
 
12649
# An ERE matcher.
12650
EGREP=$lt_EGREP
12651
 
12652
# The linker used to build libraries.
12653
LD=$lt_LD_CXX
12654
 
12655
# Whether we need hard or soft links.
12656
LN_S=$lt_LN_S
12657
 
12658
# A BSD-compatible nm program.
12659
NM=$lt_NM
12660
 
12661
# A symbol stripping program
12662
STRIP=$lt_STRIP
12663
 
12664
# Used to examine libraries when file_magic_cmd begins "file"
12665
MAGIC_CMD=$MAGIC_CMD
12666
 
12667
# Used on cygwin: DLL creation program.
12668
DLLTOOL="$DLLTOOL"
12669
 
12670
# Used on cygwin: object dumper.
12671
OBJDUMP="$OBJDUMP"
12672
 
12673
# Used on cygwin: assembler.
12674
AS="$AS"
12675
 
12676
# The name of the directory that contains temporary libtool files.
12677
objdir=$objdir
12678
 
12679
# How to create reloadable object files.
12680
reload_flag=$lt_reload_flag
12681
reload_cmds=$lt_reload_cmds
12682
 
12683
# How to pass a linker flag through the compiler.
12684
wl=$lt_lt_prog_compiler_wl_CXX
12685
 
12686
# Object file suffix (normally "o").
12687
objext="$ac_objext"
12688
 
12689
# Old archive suffix (normally "a").
12690
libext="$libext"
12691
 
12692
# Shared library suffix (normally ".so").
12693
shrext_cmds='$shrext_cmds'
12694
 
12695
# Executable file suffix (normally "").
12696
exeext="$exeext"
12697
 
12698
# Additional compiler flags for building library objects.
12699
pic_flag=$lt_lt_prog_compiler_pic_CXX
12700
pic_mode=$pic_mode
12701
 
12702
# What is the maximum length of a command?
12703
max_cmd_len=$lt_cv_sys_max_cmd_len
12704
 
12705
# Does compiler simultaneously support -c and -o options?
12706
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12707
 
12708
# Must we lock files when doing compilation?
12709
need_locks=$lt_need_locks
12710
 
12711
# Do we need the lib prefix for modules?
12712
need_lib_prefix=$need_lib_prefix
12713
 
12714
# Do we need a version for libraries?
12715
need_version=$need_version
12716
 
12717
# Whether dlopen is supported.
12718
dlopen_support=$enable_dlopen
12719
 
12720
# Whether dlopen of programs is supported.
12721
dlopen_self=$enable_dlopen_self
12722
 
12723
# Whether dlopen of statically linked programs is supported.
12724
dlopen_self_static=$enable_dlopen_self_static
12725
 
12726
# Compiler flag to prevent dynamic linking.
12727
link_static_flag=$lt_lt_prog_compiler_static_CXX
12728
 
12729
# Compiler flag to turn off builtin functions.
12730
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12731
 
12732
# Compiler flag to allow reflexive dlopens.
12733
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12734
 
12735
# Compiler flag to generate shared objects directly from archives.
12736
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12737
 
12738
# Compiler flag to generate thread-safe objects.
12739
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12740
 
12741
# Library versioning type.
12742
version_type=$version_type
12743
 
12744
# Format of library name prefix.
12745
libname_spec=$lt_libname_spec
12746
 
12747
# List of archive names.  First name is the real one, the rest are links.
12748
# The last name is the one that the linker finds with -lNAME.
12749
library_names_spec=$lt_library_names_spec
12750
 
12751
# The coded name of the library, if different from the real name.
12752
soname_spec=$lt_soname_spec
12753
 
12754
# Commands used to build and install an old-style archive.
12755
RANLIB=$lt_RANLIB
12756
old_archive_cmds=$lt_old_archive_cmds_CXX
12757
old_postinstall_cmds=$lt_old_postinstall_cmds
12758
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12759
 
12760
# Create an old-style archive from a shared archive.
12761
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12762
 
12763
# Create a temporary old-style archive to link instead of a shared archive.
12764
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12765
 
12766
# Commands used to build and install a shared archive.
12767
archive_cmds=$lt_archive_cmds_CXX
12768
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12769
postinstall_cmds=$lt_postinstall_cmds
12770
postuninstall_cmds=$lt_postuninstall_cmds
12771
 
12772
# Commands used to build a loadable module (assumed same as above if empty)
12773
module_cmds=$lt_module_cmds_CXX
12774
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12775
 
12776
# Commands to strip libraries.
12777
old_striplib=$lt_old_striplib
12778
striplib=$lt_striplib
12779
 
12780
# Dependencies to place before the objects being linked to create a
12781
# shared library.
12782
predep_objects=$lt_predep_objects_CXX
12783
 
12784
# Dependencies to place after the objects being linked to create a
12785
# shared library.
12786
postdep_objects=$lt_postdep_objects_CXX
12787
 
12788
# Dependencies to place before the objects being linked to create a
12789
# shared library.
12790
predeps=$lt_predeps_CXX
12791
 
12792
# Dependencies to place after the objects being linked to create a
12793
# shared library.
12794
postdeps=$lt_postdeps_CXX
12795
 
12796
# The library search path used internally by the compiler when linking
12797
# a shared library.
12798
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12799
 
12800
# Method to check whether dependent libraries are shared objects.
12801
deplibs_check_method=$lt_deplibs_check_method
12802
 
12803
# Command to use when deplibs_check_method == file_magic.
12804
file_magic_cmd=$lt_file_magic_cmd
12805
 
12806
# Flag that allows shared libraries with undefined symbols to be built.
12807
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12808
 
12809
# Flag that forces no undefined symbols.
12810
no_undefined_flag=$lt_no_undefined_flag_CXX
12811
 
12812
# Commands used to finish a libtool library installation in a directory.
12813
finish_cmds=$lt_finish_cmds
12814
 
12815
# Same as above, but a single script fragment to be evaled but not shown.
12816
finish_eval=$lt_finish_eval
12817
 
12818
# Take the output of nm and produce a listing of raw symbols and C names.
12819
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12820
 
12821
# Transform the output of nm in a proper C declaration
12822
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12823
 
12824
# Transform the output of nm in a C name address pair
12825
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12826
 
12827
# This is the shared library runtime path variable.
12828
runpath_var=$runpath_var
12829
 
12830
# This is the shared library path variable.
12831
shlibpath_var=$shlibpath_var
12832
 
12833
# Is shlibpath searched before the hard-coded library search path?
12834
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12835
 
12836
# How to hardcode a shared library path into an executable.
12837
hardcode_action=$hardcode_action_CXX
12838
 
12839
# Whether we should hardcode library paths into libraries.
12840
hardcode_into_libs=$hardcode_into_libs
12841
 
12842
# Flag to hardcode \$libdir into a binary during linking.
12843
# This must work even if \$libdir does not exist.
12844
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12845
 
12846
# If ld is used when linking, flag to hardcode \$libdir into
12847
# a binary during linking. This must work even if \$libdir does
12848
# not exist.
12849
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12850
 
12851
# Whether we need a single -rpath flag with a separated argument.
12852
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12853
 
12854
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12855
# resulting binary.
12856
hardcode_direct=$hardcode_direct_CXX
12857
 
12858
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12859
# resulting binary.
12860
hardcode_minus_L=$hardcode_minus_L_CXX
12861
 
12862
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12863
# the resulting binary.
12864
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12865
 
12866
# Set to yes if building a shared library automatically hardcodes DIR into the library
12867
# and all subsequent libraries and executables linked against it.
12868
hardcode_automatic=$hardcode_automatic_CXX
12869
 
12870
# Variables whose values should be saved in libtool wrapper scripts and
12871
# restored at relink time.
12872
variables_saved_for_relink="$variables_saved_for_relink"
12873
 
12874
# Whether libtool must link a program against all its dependency libraries.
12875
link_all_deplibs=$link_all_deplibs_CXX
12876
 
12877
# Compile-time system search path for libraries
12878
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12879
 
12880
# Run-time system search path for libraries
12881
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12882
 
12883
# Fix the shell variable \$srcfile for the compiler.
12884
fix_srcfile_path=$lt_fix_srcfile_path
12885
 
12886
# Set to yes if exported symbols are required.
12887
always_export_symbols=$always_export_symbols_CXX
12888
 
12889
# The commands to list exported symbols.
12890
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12891
 
12892
# The commands to extract the exported symbol list from a shared archive.
12893
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12894
 
12895
# Symbols that should not be listed in the preloaded symbols.
12896
exclude_expsyms=$lt_exclude_expsyms_CXX
12897
 
12898
# Symbols that must always be exported.
12899
include_expsyms=$lt_include_expsyms_CXX
12900
 
12901
# ### END LIBTOOL TAG CONFIG: $tagname
12902
 
12903
__EOF__
12904
 
12905
 
12906
else
12907
  # If there is no Makefile yet, we rely on a make rule to execute
12908
  # `config.status --recheck' to rerun these tests and create the
12909
  # libtool script then.
12910
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12911
  if test -f "$ltmain_in"; then
12912
    test -f Makefile && make "$ltmain"
12913
  fi
12914
fi
12915
 
12916
 
12917
ac_ext=c
12918
ac_cpp='$CPP $CPPFLAGS'
12919
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12920
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12921
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12922
 
12923
CC=$lt_save_CC
12924
LDCXX=$LD
12925
LD=$lt_save_LD
12926
GCC=$lt_save_GCC
12927
with_gnu_ldcxx=$with_gnu_ld
12928
with_gnu_ld=$lt_save_with_gnu_ld
12929
lt_cv_path_LDCXX=$lt_cv_path_LD
12930
lt_cv_path_LD=$lt_save_path_LD
12931
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12932
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12933
 
12934
        else
12935
          tagname=""
12936
        fi
12937
        ;;
12938
 
12939
      F77)
12940
        if test -n "$F77" && test "X$F77" != "Xno"; then
12941
 
12942
ac_ext=f
12943
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12944
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12946
 
12947
 
12948
archive_cmds_need_lc_F77=no
12949
allow_undefined_flag_F77=
12950
always_export_symbols_F77=no
12951
archive_expsym_cmds_F77=
12952
export_dynamic_flag_spec_F77=
12953
hardcode_direct_F77=no
12954
hardcode_libdir_flag_spec_F77=
12955
hardcode_libdir_flag_spec_ld_F77=
12956
hardcode_libdir_separator_F77=
12957
hardcode_minus_L_F77=no
12958
hardcode_automatic_F77=no
12959
module_cmds_F77=
12960
module_expsym_cmds_F77=
12961
link_all_deplibs_F77=unknown
12962
old_archive_cmds_F77=$old_archive_cmds
12963
no_undefined_flag_F77=
12964
whole_archive_flag_spec_F77=
12965
enable_shared_with_static_runtimes_F77=no
12966
 
12967
# Source file extension for f77 test sources.
12968
ac_ext=f
12969
 
12970
# Object file extension for compiled f77 test sources.
12971
objext=o
12972
objext_F77=$objext
12973
 
12974
# Code to be used in simple compile tests
12975
lt_simple_compile_test_code="\
12976
      subroutine t
12977
      return
12978
      end
12979
"
12980
 
12981
# Code to be used in simple link tests
12982
lt_simple_link_test_code="\
12983
      program t
12984
      end
12985
"
12986
 
12987
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12988
 
12989
# If no C compiler was specified, use CC.
12990
LTCC=${LTCC-"$CC"}
12991
 
12992
# If no C compiler flags were specified, use CFLAGS.
12993
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12994
 
12995
# Allow CC to be a program name with arguments.
12996
compiler=$CC
12997
 
12998
 
12999
# save warnings/boilerplate of simple test code
13000
ac_outfile=conftest.$ac_objext
13001
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13002
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13003
_lt_compiler_boilerplate=`cat conftest.err`
13004
$rm conftest*
13005
 
13006
ac_outfile=conftest.$ac_objext
13007
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13008
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13009
_lt_linker_boilerplate=`cat conftest.err`
13010
$rm conftest*
13011
 
13012
 
13013
# Allow CC to be a program name with arguments.
13014
lt_save_CC="$CC"
13015
CC=${F77-"f77"}
13016
compiler=$CC
13017
compiler_F77=$CC
13018
for cc_temp in $compiler""; do
13019
  case $cc_temp in
13020
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13021
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13022
    \-*) ;;
13023
    *) break;;
13024
  esac
13025
done
13026
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13027
 
13028
 
13029
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13030
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13031
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13032
echo "${ECHO_T}$can_build_shared" >&6; }
13033
 
13034
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13035
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13036
test "$can_build_shared" = "no" && enable_shared=no
13037
 
13038
# On AIX, shared libraries and static libraries use the same namespace, and
13039
# are all built from PIC.
13040
case $host_os in
13041
aix3*)
13042
  test "$enable_shared" = yes && enable_static=no
13043
  if test -n "$RANLIB"; then
13044
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13045
    postinstall_cmds='$RANLIB $lib'
13046
  fi
13047
  ;;
13048
aix4* | aix5*)
13049
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13050
    test "$enable_shared" = yes && enable_static=no
13051
  fi
13052
  ;;
13053
esac
13054
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13055
echo "${ECHO_T}$enable_shared" >&6; }
13056
 
13057
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13058
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13059
# Make sure either enable_shared or enable_static is yes.
13060
test "$enable_shared" = yes || enable_static=yes
13061
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13062
echo "${ECHO_T}$enable_static" >&6; }
13063
 
13064
GCC_F77="$G77"
13065
LD_F77="$LD"
13066
 
13067
lt_prog_compiler_wl_F77=
13068
lt_prog_compiler_pic_F77=
13069
lt_prog_compiler_static_F77=
13070
 
13071
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13072
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13073
 
13074
  if test "$GCC" = yes; then
13075
    lt_prog_compiler_wl_F77='-Wl,'
13076
    lt_prog_compiler_static_F77='-static'
13077
 
13078
    case $host_os in
13079
      aix*)
13080
      # All AIX code is PIC.
13081
      if test "$host_cpu" = ia64; then
13082
        # AIX 5 now supports IA64 processor
13083
        lt_prog_compiler_static_F77='-Bstatic'
13084
      fi
13085
      ;;
13086
 
13087
    amigaos*)
13088
      # FIXME: we need at least 68020 code to build shared libraries, but
13089
      # adding the `-m68020' flag to GCC prevents building anything better,
13090
      # like `-m68040'.
13091
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13092
      ;;
13093
 
13094
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13095
      # PIC is the default for these OSes.
13096
      ;;
13097
 
13098
    mingw* | cygwin* | pw32* | os2*)
13099
      # This hack is so that the source file can tell whether it is being
13100
      # built for inclusion in a dll (and should export symbols for example).
13101
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13102
      # (--disable-auto-import) libraries
13103
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13104
      ;;
13105
 
13106
    darwin* | rhapsody*)
13107
      # PIC is the default on this platform
13108
      # Common symbols not allowed in MH_DYLIB files
13109
      lt_prog_compiler_pic_F77='-fno-common'
13110
      ;;
13111
 
13112
    interix[3-9]*)
13113
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13114
      # Instead, we relocate shared libraries at runtime.
13115
      ;;
13116
 
13117
    msdosdjgpp*)
13118
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13119
      # on systems that don't support them.
13120
      lt_prog_compiler_can_build_shared_F77=no
13121
      enable_shared=no
13122
      ;;
13123
 
13124
    sysv4*MP*)
13125
      if test -d /usr/nec; then
13126
        lt_prog_compiler_pic_F77=-Kconform_pic
13127
      fi
13128
      ;;
13129
 
13130
    hpux*)
13131
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13132
      # not for PA HP-UX.
13133
      case $host_cpu in
13134
      hppa*64*|ia64*)
13135
        # +Z the default
13136
        ;;
13137
      *)
13138
        lt_prog_compiler_pic_F77='-fPIC'
13139
        ;;
13140
      esac
13141
      ;;
13142
 
13143
    *)
13144
      lt_prog_compiler_pic_F77='-fPIC'
13145
      ;;
13146
    esac
13147
  else
13148
    # PORTME Check for flag to pass linker flags through the system compiler.
13149
    case $host_os in
13150
    aix*)
13151
      lt_prog_compiler_wl_F77='-Wl,'
13152
      if test "$host_cpu" = ia64; then
13153
        # AIX 5 now supports IA64 processor
13154
        lt_prog_compiler_static_F77='-Bstatic'
13155
      else
13156
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13157
      fi
13158
      ;;
13159
      darwin*)
13160
        # PIC is the default on this platform
13161
        # Common symbols not allowed in MH_DYLIB files
13162
       case $cc_basename in
13163
         xlc*)
13164
         lt_prog_compiler_pic_F77='-qnocommon'
13165
         lt_prog_compiler_wl_F77='-Wl,'
13166
         ;;
13167
       esac
13168
       ;;
13169
 
13170
    mingw* | cygwin* | pw32* | os2*)
13171
      # This hack is so that the source file can tell whether it is being
13172
      # built for inclusion in a dll (and should export symbols for example).
13173
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13174
      ;;
13175
 
13176
    hpux9* | hpux10* | hpux11*)
13177
      lt_prog_compiler_wl_F77='-Wl,'
13178
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13179
      # not for PA HP-UX.
13180
      case $host_cpu in
13181
      hppa*64*|ia64*)
13182
        # +Z the default
13183
        ;;
13184
      *)
13185
        lt_prog_compiler_pic_F77='+Z'
13186
        ;;
13187
      esac
13188
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13189
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13190
      ;;
13191
 
13192
    irix5* | irix6* | nonstopux*)
13193
      lt_prog_compiler_wl_F77='-Wl,'
13194
      # PIC (with -KPIC) is the default.
13195
      lt_prog_compiler_static_F77='-non_shared'
13196
      ;;
13197
 
13198
    newsos6)
13199
      lt_prog_compiler_pic_F77='-KPIC'
13200
      lt_prog_compiler_static_F77='-Bstatic'
13201
      ;;
13202
 
13203
    linux* | k*bsd*-gnu)
13204
      case $cc_basename in
13205
      icc* | ecc*)
13206
        lt_prog_compiler_wl_F77='-Wl,'
13207
        lt_prog_compiler_pic_F77='-KPIC'
13208
        lt_prog_compiler_static_F77='-static'
13209
        ;;
13210
      pgcc* | pgf77* | pgf90* | pgf95*)
13211
        # Portland Group compilers (*not* the Pentium gcc compiler,
13212
        # which looks to be a dead project)
13213
        lt_prog_compiler_wl_F77='-Wl,'
13214
        lt_prog_compiler_pic_F77='-fpic'
13215
        lt_prog_compiler_static_F77='-Bstatic'
13216
        ;;
13217
      ccc*)
13218
        lt_prog_compiler_wl_F77='-Wl,'
13219
        # All Alpha code is PIC.
13220
        lt_prog_compiler_static_F77='-non_shared'
13221
        ;;
13222
      *)
13223
        case `$CC -V 2>&1 | sed 5q` in
13224
        *Sun\ C*)
13225
          # Sun C 5.9
13226
          lt_prog_compiler_pic_F77='-KPIC'
13227
          lt_prog_compiler_static_F77='-Bstatic'
13228
          lt_prog_compiler_wl_F77='-Wl,'
13229
          ;;
13230
        *Sun\ F*)
13231
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
13232
          lt_prog_compiler_pic_F77='-KPIC'
13233
          lt_prog_compiler_static_F77='-Bstatic'
13234
          lt_prog_compiler_wl_F77=''
13235
          ;;
13236
        esac
13237
        ;;
13238
      esac
13239
      ;;
13240
 
13241
    osf3* | osf4* | osf5*)
13242
      lt_prog_compiler_wl_F77='-Wl,'
13243
      # All OSF/1 code is PIC.
13244
      lt_prog_compiler_static_F77='-non_shared'
13245
      ;;
13246
 
13247
    rdos*)
13248
      lt_prog_compiler_static_F77='-non_shared'
13249
      ;;
13250
 
13251
    solaris*)
13252
      lt_prog_compiler_pic_F77='-KPIC'
13253
      lt_prog_compiler_static_F77='-Bstatic'
13254
      case $cc_basename in
13255
      f77* | f90* | f95*)
13256
        lt_prog_compiler_wl_F77='-Qoption ld ';;
13257
      *)
13258
        lt_prog_compiler_wl_F77='-Wl,';;
13259
      esac
13260
      ;;
13261
 
13262
    sunos4*)
13263
      lt_prog_compiler_wl_F77='-Qoption ld '
13264
      lt_prog_compiler_pic_F77='-PIC'
13265
      lt_prog_compiler_static_F77='-Bstatic'
13266
      ;;
13267
 
13268
    sysv4 | sysv4.2uw2* | sysv4.3*)
13269
      lt_prog_compiler_wl_F77='-Wl,'
13270
      lt_prog_compiler_pic_F77='-KPIC'
13271
      lt_prog_compiler_static_F77='-Bstatic'
13272
      ;;
13273
 
13274
    sysv4*MP*)
13275
      if test -d /usr/nec ;then
13276
        lt_prog_compiler_pic_F77='-Kconform_pic'
13277
        lt_prog_compiler_static_F77='-Bstatic'
13278
      fi
13279
      ;;
13280
 
13281
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13282
      lt_prog_compiler_wl_F77='-Wl,'
13283
      lt_prog_compiler_pic_F77='-KPIC'
13284
      lt_prog_compiler_static_F77='-Bstatic'
13285
      ;;
13286
 
13287
    unicos*)
13288
      lt_prog_compiler_wl_F77='-Wl,'
13289
      lt_prog_compiler_can_build_shared_F77=no
13290
      ;;
13291
 
13292
    uts4*)
13293
      lt_prog_compiler_pic_F77='-pic'
13294
      lt_prog_compiler_static_F77='-Bstatic'
13295
      ;;
13296
 
13297
    *)
13298
      lt_prog_compiler_can_build_shared_F77=no
13299
      ;;
13300
    esac
13301
  fi
13302
 
13303
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13304
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13305
 
13306
#
13307
# Check to make sure the PIC flag actually works.
13308
#
13309
if test -n "$lt_prog_compiler_pic_F77"; then
13310
 
13311
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13312
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13313
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13314
  echo $ECHO_N "(cached) $ECHO_C" >&6
13315
else
13316
  lt_prog_compiler_pic_works_F77=no
13317
  ac_outfile=conftest.$ac_objext
13318
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13319
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13320
   # Insert the option either (1) after the last *FLAGS variable, or
13321
   # (2) before a word containing "conftest.", or (3) at the end.
13322
   # Note that $ac_compile itself does not contain backslashes and begins
13323
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13324
   # The option is referenced via a variable to avoid confusing sed.
13325
   lt_compile=`echo "$ac_compile" | $SED \
13326
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13327
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13328
   -e 's:$: $lt_compiler_flag:'`
13329
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13330
   (eval "$lt_compile" 2>conftest.err)
13331
   ac_status=$?
13332
   cat conftest.err >&5
13333
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13334
   if (exit $ac_status) && test -s "$ac_outfile"; then
13335
     # The compiler can only warn and ignore the option if not recognized
13336
     # So say no if there are warnings other than the usual output.
13337
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13338
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13339
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13340
       lt_prog_compiler_pic_works_F77=yes
13341
     fi
13342
   fi
13343
   $rm conftest*
13344
 
13345
fi
13346
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13347
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13348
 
13349
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13350
    case $lt_prog_compiler_pic_F77 in
13351
     "" | " "*) ;;
13352
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13353
     esac
13354
else
13355
    lt_prog_compiler_pic_F77=
13356
     lt_prog_compiler_can_build_shared_F77=no
13357
fi
13358
 
13359
fi
13360
case $host_os in
13361
  # For platforms which do not support PIC, -DPIC is meaningless:
13362
  *djgpp*)
13363
    lt_prog_compiler_pic_F77=
13364
    ;;
13365
  *)
13366
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13367
    ;;
13368
esac
13369
 
13370
#
13371
# Check to make sure the static flag actually works.
13372
#
13373
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13374
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13375
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13376
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13377
  echo $ECHO_N "(cached) $ECHO_C" >&6
13378
else
13379
  lt_prog_compiler_static_works_F77=no
13380
   save_LDFLAGS="$LDFLAGS"
13381
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13382
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13383
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13384
     # The linker can only warn and ignore the option if not recognized
13385
     # So say no if there are warnings
13386
     if test -s conftest.err; then
13387
       # Append any errors to the config.log.
13388
       cat conftest.err 1>&5
13389
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13390
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13391
       if diff conftest.exp conftest.er2 >/dev/null; then
13392
         lt_prog_compiler_static_works_F77=yes
13393
       fi
13394
     else
13395
       lt_prog_compiler_static_works_F77=yes
13396
     fi
13397
   fi
13398
   $rm conftest*
13399
   LDFLAGS="$save_LDFLAGS"
13400
 
13401
fi
13402
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13403
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13404
 
13405
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13406
    :
13407
else
13408
    lt_prog_compiler_static_F77=
13409
fi
13410
 
13411
 
13412
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13413
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13414
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13415
  echo $ECHO_N "(cached) $ECHO_C" >&6
13416
else
13417
  lt_cv_prog_compiler_c_o_F77=no
13418
   $rm -r conftest 2>/dev/null
13419
   mkdir conftest
13420
   cd conftest
13421
   mkdir out
13422
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13423
 
13424
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13425
   # Insert the option either (1) after the last *FLAGS variable, or
13426
   # (2) before a word containing "conftest.", or (3) at the end.
13427
   # Note that $ac_compile itself does not contain backslashes and begins
13428
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13429
   lt_compile=`echo "$ac_compile" | $SED \
13430
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13431
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13432
   -e 's:$: $lt_compiler_flag:'`
13433
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13434
   (eval "$lt_compile" 2>out/conftest.err)
13435
   ac_status=$?
13436
   cat out/conftest.err >&5
13437
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13438
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13439
   then
13440
     # The compiler can only warn and ignore the option if not recognized
13441
     # So say no if there are warnings
13442
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13443
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13444
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13445
       lt_cv_prog_compiler_c_o_F77=yes
13446
     fi
13447
   fi
13448
   chmod u+w . 2>&5
13449
   $rm conftest*
13450
   # SGI C++ compiler will create directory out/ii_files/ for
13451
   # template instantiation
13452
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13453
   $rm out/* && rmdir out
13454
   cd ..
13455
   rmdir conftest
13456
   $rm conftest*
13457
 
13458
fi
13459
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13460
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13461
 
13462
 
13463
hard_links="nottested"
13464
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13465
  # do not overwrite the value of need_locks provided by the user
13466
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13467
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13468
  hard_links=yes
13469
  $rm conftest*
13470
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13471
  touch conftest.a
13472
  ln conftest.a conftest.b 2>&5 || hard_links=no
13473
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13474
  { echo "$as_me:$LINENO: result: $hard_links" >&5
13475
echo "${ECHO_T}$hard_links" >&6; }
13476
  if test "$hard_links" = no; then
13477
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13478
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13479
    need_locks=warn
13480
  fi
13481
else
13482
  need_locks=no
13483
fi
13484
 
13485
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13486
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13487
 
13488
  runpath_var=
13489
  allow_undefined_flag_F77=
13490
  enable_shared_with_static_runtimes_F77=no
13491
  archive_cmds_F77=
13492
  archive_expsym_cmds_F77=
13493
  old_archive_From_new_cmds_F77=
13494
  old_archive_from_expsyms_cmds_F77=
13495
  export_dynamic_flag_spec_F77=
13496
  whole_archive_flag_spec_F77=
13497
  thread_safe_flag_spec_F77=
13498
  hardcode_libdir_flag_spec_F77=
13499
  hardcode_libdir_flag_spec_ld_F77=
13500
  hardcode_libdir_separator_F77=
13501
  hardcode_direct_F77=no
13502
  hardcode_minus_L_F77=no
13503
  hardcode_shlibpath_var_F77=unsupported
13504
  link_all_deplibs_F77=unknown
13505
  hardcode_automatic_F77=no
13506
  module_cmds_F77=
13507
  module_expsym_cmds_F77=
13508
  always_export_symbols_F77=no
13509
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13510
  # include_expsyms should be a list of space-separated symbols to be *always*
13511
  # included in the symbol list
13512
  include_expsyms_F77=
13513
  # exclude_expsyms can be an extended regexp of symbols to exclude
13514
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13515
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13516
  # as well as any symbol that contains `d'.
13517
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13518
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13519
  # platforms (ab)use it in PIC code, but their linkers get confused if
13520
  # the symbol is explicitly referenced.  Since portable code cannot
13521
  # rely on this symbol name, it's probably fine to never include it in
13522
  # preloaded symbol tables.
13523
  extract_expsyms_cmds=
13524
  # Just being paranoid about ensuring that cc_basename is set.
13525
  for cc_temp in $compiler""; do
13526
  case $cc_temp in
13527
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13528
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13529
    \-*) ;;
13530
    *) break;;
13531
  esac
13532
done
13533
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13534
 
13535
  case $host_os in
13536
  cygwin* | mingw* | pw32*)
13537
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13538
    # When not using gcc, we currently assume that we are using
13539
    # Microsoft Visual C++.
13540
    if test "$GCC" != yes; then
13541
      with_gnu_ld=no
13542
    fi
13543
    ;;
13544
  interix*)
13545
    # we just hope/assume this is gcc and not c89 (= MSVC++)
13546
    with_gnu_ld=yes
13547
    ;;
13548
  openbsd*)
13549
    with_gnu_ld=no
13550
    ;;
13551
  esac
13552
 
13553
  ld_shlibs_F77=yes
13554
  if test "$with_gnu_ld" = yes; then
13555
    # If archive_cmds runs LD, not CC, wlarc should be empty
13556
    wlarc='${wl}'
13557
 
13558
    # Set some defaults for GNU ld with shared library support. These
13559
    # are reset later if shared libraries are not supported. Putting them
13560
    # here allows them to be overridden if necessary.
13561
    runpath_var=LD_RUN_PATH
13562
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13563
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13564
    # ancient GNU ld didn't support --whole-archive et. al.
13565
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13566
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13567
      else
13568
        whole_archive_flag_spec_F77=
13569
    fi
13570
    supports_anon_versioning=no
13571
    case `$LD -v 2>/dev/null` in
13572
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13573
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13574
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13575
      *\ 2.11.*) ;; # other 2.11 versions
13576
      *) supports_anon_versioning=yes ;;
13577
    esac
13578
 
13579
    # See if GNU ld supports shared libraries.
13580
    case $host_os in
13581
    aix3* | aix4* | aix5*)
13582
      # On AIX/PPC, the GNU linker is very broken
13583
      if test "$host_cpu" != ia64; then
13584
        ld_shlibs_F77=no
13585
        cat <&2
13586
 
13587
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13588
*** to be unable to reliably create shared libraries on AIX.
13589
*** Therefore, libtool is disabling shared libraries support.  If you
13590
*** really care for shared libraries, you may want to modify your PATH
13591
*** so that a non-GNU linker is found, and then restart.
13592
 
13593
EOF
13594
      fi
13595
      ;;
13596
 
13597
    amigaos*)
13598
      archive_cmds_F77='$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)'
13599
      hardcode_libdir_flag_spec_F77='-L$libdir'
13600
      hardcode_minus_L_F77=yes
13601
 
13602
      # Samuel A. Falvo II  reports
13603
      # that the semantics of dynamic libraries on AmigaOS, at least up
13604
      # to version 4, is to share data among multiple programs linked
13605
      # with the same dynamic library.  Since this doesn't match the
13606
      # behavior of shared libraries on other platforms, we can't use
13607
      # them.
13608
      ld_shlibs_F77=no
13609
      ;;
13610
 
13611
    beos*)
13612
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13613
        allow_undefined_flag_F77=unsupported
13614
        # Joseph Beckenbach  says some releases of gcc
13615
        # support --undefined.  This deserves some investigation.  FIXME
13616
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13617
      else
13618
        ld_shlibs_F77=no
13619
      fi
13620
      ;;
13621
 
13622
    cygwin* | mingw* | pw32*)
13623
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13624
      # as there is no search path for DLLs.
13625
      hardcode_libdir_flag_spec_F77='-L$libdir'
13626
      allow_undefined_flag_F77=unsupported
13627
      always_export_symbols_F77=no
13628
      enable_shared_with_static_runtimes_F77=yes
13629
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13630
 
13631
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13632
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13633
        # If the export-symbols file already is a .def file (1st line
13634
        # is EXPORTS), use it as is; otherwise, prepend...
13635
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13636
          cp $export_symbols $output_objdir/$soname.def;
13637
        else
13638
          echo EXPORTS > $output_objdir/$soname.def;
13639
          cat $export_symbols >> $output_objdir/$soname.def;
13640
        fi~
13641
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13642
      else
13643
        ld_shlibs_F77=no
13644
      fi
13645
      ;;
13646
 
13647
    interix[3-9]*)
13648
      hardcode_direct_F77=no
13649
      hardcode_shlibpath_var_F77=no
13650
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13651
      export_dynamic_flag_spec_F77='${wl}-E'
13652
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13653
      # Instead, shared libraries are loaded at an image base (0x10000000 by
13654
      # default) and relocated if they conflict, which is a slow very memory
13655
      # consuming and fragmenting process.  To avoid this, we pick a random,
13656
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13657
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13658
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13659
      archive_expsym_cmds_F77='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'
13660
      ;;
13661
 
13662
    gnu* | linux* | k*bsd*-gnu)
13663
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13664
        tmp_addflag=
13665
        case $cc_basename,$host_cpu in
13666
        pgcc*)                          # Portland Group C compiler
13667
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13668
          tmp_addflag=' $pic_flag'
13669
          ;;
13670
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13671
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13672
          tmp_addflag=' $pic_flag -Mnomain' ;;
13673
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13674
          tmp_addflag=' -i_dynamic' ;;
13675
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13676
          tmp_addflag=' -i_dynamic -nofor_main' ;;
13677
        ifc* | ifort*)                  # Intel Fortran compiler
13678
          tmp_addflag=' -nofor_main' ;;
13679
        esac
13680
        case `$CC -V 2>&1 | sed 5q` in
13681
        *Sun\ C*)                       # Sun C 5.9
13682
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13683
          tmp_sharedflag='-G' ;;
13684
        *Sun\ F*)                       # Sun Fortran 8.3
13685
          tmp_sharedflag='-G' ;;
13686
        *)
13687
          tmp_sharedflag='-shared' ;;
13688
        esac
13689
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13690
 
13691
        if test $supports_anon_versioning = yes; then
13692
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13693
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13694
  $echo "local: *; };" >> $output_objdir/$libname.ver~
13695
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13696
        fi
13697
      else
13698
        ld_shlibs_F77=no
13699
      fi
13700
      ;;
13701
 
13702
    netbsd*)
13703
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13704
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13705
        wlarc=
13706
      else
13707
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13708
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13709
      fi
13710
      ;;
13711
 
13712
    solaris*)
13713
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13714
        ld_shlibs_F77=no
13715
        cat <&2
13716
 
13717
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13718
*** create shared libraries on Solaris systems.  Therefore, libtool
13719
*** is disabling shared libraries support.  We urge you to upgrade GNU
13720
*** binutils to release 2.9.1 or newer.  Another option is to modify
13721
*** your PATH or compiler configuration so that the native linker is
13722
*** used, and then restart.
13723
 
13724
EOF
13725
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13726
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13727
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13728
      else
13729
        ld_shlibs_F77=no
13730
      fi
13731
      ;;
13732
 
13733
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13734
      case `$LD -v 2>&1` in
13735
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13736
        ld_shlibs_F77=no
13737
        cat <<_LT_EOF 1>&2
13738
 
13739
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13740
*** reliably create shared libraries on SCO systems.  Therefore, libtool
13741
*** is disabling shared libraries support.  We urge you to upgrade GNU
13742
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13743
*** your PATH or compiler configuration so that the native linker is
13744
*** used, and then restart.
13745
 
13746
_LT_EOF
13747
        ;;
13748
        *)
13749
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13750
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13751
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13752
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13753
          else
13754
            ld_shlibs_F77=no
13755
          fi
13756
        ;;
13757
      esac
13758
      ;;
13759
 
13760
    sunos4*)
13761
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13762
      wlarc=
13763
      hardcode_direct_F77=yes
13764
      hardcode_shlibpath_var_F77=no
13765
      ;;
13766
 
13767
    *)
13768
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13769
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13770
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13771
      else
13772
        ld_shlibs_F77=no
13773
      fi
13774
      ;;
13775
    esac
13776
 
13777
    if test "$ld_shlibs_F77" = no; then
13778
      runpath_var=
13779
      hardcode_libdir_flag_spec_F77=
13780
      export_dynamic_flag_spec_F77=
13781
      whole_archive_flag_spec_F77=
13782
    fi
13783
  else
13784
    # PORTME fill in a description of your system's linker (not GNU ld)
13785
    case $host_os in
13786
    aix3*)
13787
      allow_undefined_flag_F77=unsupported
13788
      always_export_symbols_F77=yes
13789
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13790
      # Note: this linker hardcodes the directories in LIBPATH if there
13791
      # are no directories specified by -L.
13792
      hardcode_minus_L_F77=yes
13793
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13794
        # Neither direct hardcoding nor static linking is supported with a
13795
        # broken collect2.
13796
        hardcode_direct_F77=unsupported
13797
      fi
13798
      ;;
13799
 
13800
    aix4* | aix5*)
13801
      if test "$host_cpu" = ia64; then
13802
        # On IA64, the linker does run time linking by default, so we don't
13803
        # have to do anything special.
13804
        aix_use_runtimelinking=no
13805
        exp_sym_flag='-Bexport'
13806
        no_entry_flag=""
13807
      else
13808
        # If we're using GNU nm, then we don't want the "-C" option.
13809
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
13810
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13811
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13812
        else
13813
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13814
        fi
13815
        aix_use_runtimelinking=no
13816
 
13817
        # Test if we are trying to use run time linking or normal
13818
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13819
        # need to do runtime linking.
13820
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13821
          for ld_flag in $LDFLAGS; do
13822
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13823
            aix_use_runtimelinking=yes
13824
            break
13825
          fi
13826
          done
13827
          ;;
13828
        esac
13829
 
13830
        exp_sym_flag='-bexport'
13831
        no_entry_flag='-bnoentry'
13832
      fi
13833
 
13834
      # When large executables or shared objects are built, AIX ld can
13835
      # have problems creating the table of contents.  If linking a library
13836
      # or program results in "error TOC overflow" add -mminimal-toc to
13837
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13838
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13839
 
13840
      archive_cmds_F77=''
13841
      hardcode_direct_F77=yes
13842
      hardcode_libdir_separator_F77=':'
13843
      link_all_deplibs_F77=yes
13844
 
13845
      if test "$GCC" = yes; then
13846
        case $host_os in aix4.[012]|aix4.[012].*)
13847
        # We only want to do this on AIX 4.2 and lower, the check
13848
        # below for broken collect2 doesn't work under 4.3+
13849
          collect2name=`${CC} -print-prog-name=collect2`
13850
          if test -f "$collect2name" && \
13851
           strings "$collect2name" | grep resolve_lib_name >/dev/null
13852
          then
13853
          # We have reworked collect2
13854
          :
13855
          else
13856
          # We have old collect2
13857
          hardcode_direct_F77=unsupported
13858
          # It fails to find uninstalled libraries when the uninstalled
13859
          # path is not listed in the libpath.  Setting hardcode_minus_L
13860
          # to unsupported forces relinking
13861
          hardcode_minus_L_F77=yes
13862
          hardcode_libdir_flag_spec_F77='-L$libdir'
13863
          hardcode_libdir_separator_F77=
13864
          fi
13865
          ;;
13866
        esac
13867
        shared_flag='-shared'
13868
        if test "$aix_use_runtimelinking" = yes; then
13869
          shared_flag="$shared_flag "'${wl}-G'
13870
        fi
13871
      else
13872
        # not using gcc
13873
        if test "$host_cpu" = ia64; then
13874
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13875
        # chokes on -Wl,-G. The following line is correct:
13876
          shared_flag='-G'
13877
        else
13878
          if test "$aix_use_runtimelinking" = yes; then
13879
            shared_flag='${wl}-G'
13880
          else
13881
            shared_flag='${wl}-bM:SRE'
13882
          fi
13883
        fi
13884
      fi
13885
 
13886
      # It seems that -bexpall does not export symbols beginning with
13887
      # underscore (_), so it is better to generate a list of symbols to export.
13888
      always_export_symbols_F77=yes
13889
      if test "$aix_use_runtimelinking" = yes; then
13890
        # Warning - without using the other runtime loading flags (-brtl),
13891
        # -berok will link without error, but may produce a broken library.
13892
        allow_undefined_flag_F77='-berok'
13893
       # Determine the default libpath from the value encoded in an empty executable.
13894
       cat >conftest.$ac_ext <<_ACEOF
13895
      program main
13896
 
13897
      end
13898
_ACEOF
13899
rm -f conftest.$ac_objext conftest$ac_exeext
13900
if { (ac_try="$ac_link"
13901
case "(($ac_try" in
13902
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13903
  *) ac_try_echo=$ac_try;;
13904
esac
13905
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13906
  (eval "$ac_link") 2>conftest.er1
13907
  ac_status=$?
13908
  grep -v '^ *+' conftest.er1 >conftest.err
13909
  rm -f conftest.er1
13910
  cat conftest.err >&5
13911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912
  (exit $ac_status); } && {
13913
         test -z "$ac_f77_werror_flag" ||
13914
         test ! -s conftest.err
13915
       } && test -s conftest$ac_exeext &&
13916
       $as_test_x conftest$ac_exeext; then
13917
 
13918
lt_aix_libpath_sed='
13919
    /Import File Strings/,/^$/ {
13920
        /^0/ {
13921
            s/^0  *\(.*\)$/\1/
13922
            p
13923
        }
13924
    }'
13925
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13926
# Check for a 64-bit object if we didn't find anything.
13927
if test -z "$aix_libpath"; then
13928
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13929
fi
13930
else
13931
  echo "$as_me: failed program was:" >&5
13932
sed 's/^/| /' conftest.$ac_ext >&5
13933
 
13934
 
13935
fi
13936
 
13937
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13938
      conftest$ac_exeext conftest.$ac_ext
13939
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13940
 
13941
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13942
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13943
       else
13944
        if test "$host_cpu" = ia64; then
13945
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13946
          allow_undefined_flag_F77="-z nodefs"
13947
          archive_expsym_cmds_F77="\$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"
13948
        else
13949
         # Determine the default libpath from the value encoded in an empty executable.
13950
         cat >conftest.$ac_ext <<_ACEOF
13951
      program main
13952
 
13953
      end
13954
_ACEOF
13955
rm -f conftest.$ac_objext conftest$ac_exeext
13956
if { (ac_try="$ac_link"
13957
case "(($ac_try" in
13958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959
  *) ac_try_echo=$ac_try;;
13960
esac
13961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962
  (eval "$ac_link") 2>conftest.er1
13963
  ac_status=$?
13964
  grep -v '^ *+' conftest.er1 >conftest.err
13965
  rm -f conftest.er1
13966
  cat conftest.err >&5
13967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968
  (exit $ac_status); } && {
13969
         test -z "$ac_f77_werror_flag" ||
13970
         test ! -s conftest.err
13971
       } && test -s conftest$ac_exeext &&
13972
       $as_test_x conftest$ac_exeext; then
13973
 
13974
lt_aix_libpath_sed='
13975
    /Import File Strings/,/^$/ {
13976
        /^0/ {
13977
            s/^0  *\(.*\)$/\1/
13978
            p
13979
        }
13980
    }'
13981
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13982
# Check for a 64-bit object if we didn't find anything.
13983
if test -z "$aix_libpath"; then
13984
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13985
fi
13986
else
13987
  echo "$as_me: failed program was:" >&5
13988
sed 's/^/| /' conftest.$ac_ext >&5
13989
 
13990
 
13991
fi
13992
 
13993
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13994
      conftest$ac_exeext conftest.$ac_ext
13995
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13996
 
13997
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13998
          # Warning - without using the other run time loading flags,
13999
          # -berok will link without error, but may produce a broken library.
14000
          no_undefined_flag_F77=' ${wl}-bernotok'
14001
          allow_undefined_flag_F77=' ${wl}-berok'
14002
          # Exported symbols can be pulled into shared objects from archives
14003
          whole_archive_flag_spec_F77='$convenience'
14004
          archive_cmds_need_lc_F77=yes
14005
          # This is similar to how AIX traditionally builds its shared libraries.
14006
          archive_expsym_cmds_F77="\$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'
14007
        fi
14008
      fi
14009
      ;;
14010
 
14011
    amigaos*)
14012
      archive_cmds_F77='$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)'
14013
      hardcode_libdir_flag_spec_F77='-L$libdir'
14014
      hardcode_minus_L_F77=yes
14015
      # see comment about different semantics on the GNU ld section
14016
      ld_shlibs_F77=no
14017
      ;;
14018
 
14019
    bsdi[45]*)
14020
      export_dynamic_flag_spec_F77=-rdynamic
14021
      ;;
14022
 
14023
    cygwin* | mingw* | pw32*)
14024
      # When not using gcc, we currently assume that we are using
14025
      # Microsoft Visual C++.
14026
      # hardcode_libdir_flag_spec is actually meaningless, as there is
14027
      # no search path for DLLs.
14028
      hardcode_libdir_flag_spec_F77=' '
14029
      allow_undefined_flag_F77=unsupported
14030
      # Tell ltmain to make .lib files, not .a files.
14031
      libext=lib
14032
      # Tell ltmain to make .dll files, not .so files.
14033
      shrext_cmds=".dll"
14034
      # FIXME: Setting linknames here is a bad hack.
14035
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14036
      # The linker will automatically build a .lib file if we build a DLL.
14037
      old_archive_From_new_cmds_F77='true'
14038
      # FIXME: Should let the user specify the lib program.
14039
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14040
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14041
      enable_shared_with_static_runtimes_F77=yes
14042
      ;;
14043
 
14044
    darwin* | rhapsody*)
14045
      case $host_os in
14046
        rhapsody* | darwin1.[012])
14047
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14048
         ;;
14049
       *) # Darwin 1.3 on
14050
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14051
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14052
         else
14053
           case ${MACOSX_DEPLOYMENT_TARGET} in
14054
             10.[012])
14055
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14056
               ;;
14057
             10.*)
14058
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14059
               ;;
14060
           esac
14061
         fi
14062
         ;;
14063
      esac
14064
      archive_cmds_need_lc_F77=no
14065
      hardcode_direct_F77=no
14066
      hardcode_automatic_F77=yes
14067
      hardcode_shlibpath_var_F77=unsupported
14068
      whole_archive_flag_spec_F77=''
14069
      link_all_deplibs_F77=yes
14070
    if test "$GCC" = yes ; then
14071
        output_verbose_link_cmd='echo'
14072
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14073
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14074
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14075
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14076
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14077
    else
14078
      case $cc_basename in
14079
        xlc*)
14080
         output_verbose_link_cmd='echo'
14081
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14082
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14083
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14084
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14085
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14086
          ;;
14087
       *)
14088
         ld_shlibs_F77=no
14089
          ;;
14090
      esac
14091
    fi
14092
      ;;
14093
 
14094
    dgux*)
14095
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14096
      hardcode_libdir_flag_spec_F77='-L$libdir'
14097
      hardcode_shlibpath_var_F77=no
14098
      ;;
14099
 
14100
    freebsd1*)
14101
      ld_shlibs_F77=no
14102
      ;;
14103
 
14104
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14105
    # support.  Future versions do this automatically, but an explicit c++rt0.o
14106
    # does not break anything, and helps significantly (at the cost of a little
14107
    # extra space).
14108
    freebsd2.2*)
14109
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14110
      hardcode_libdir_flag_spec_F77='-R$libdir'
14111
      hardcode_direct_F77=yes
14112
      hardcode_shlibpath_var_F77=no
14113
      ;;
14114
 
14115
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14116
    freebsd2*)
14117
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14118
      hardcode_direct_F77=yes
14119
      hardcode_minus_L_F77=yes
14120
      hardcode_shlibpath_var_F77=no
14121
      ;;
14122
 
14123
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14124
    freebsd* | dragonfly*)
14125
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14126
      hardcode_libdir_flag_spec_F77='-R$libdir'
14127
      hardcode_direct_F77=yes
14128
      hardcode_shlibpath_var_F77=no
14129
      ;;
14130
 
14131
    hpux9*)
14132
      if test "$GCC" = yes; then
14133
        archive_cmds_F77='$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'
14134
      else
14135
        archive_cmds_F77='$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'
14136
      fi
14137
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14138
      hardcode_libdir_separator_F77=:
14139
      hardcode_direct_F77=yes
14140
 
14141
      # hardcode_minus_L: Not really in the search PATH,
14142
      # but as the default location of the library.
14143
      hardcode_minus_L_F77=yes
14144
      export_dynamic_flag_spec_F77='${wl}-E'
14145
      ;;
14146
 
14147
    hpux10*)
14148
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14149
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14150
      else
14151
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14152
      fi
14153
      if test "$with_gnu_ld" = no; then
14154
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14155
        hardcode_libdir_separator_F77=:
14156
 
14157
        hardcode_direct_F77=yes
14158
        export_dynamic_flag_spec_F77='${wl}-E'
14159
 
14160
        # hardcode_minus_L: Not really in the search PATH,
14161
        # but as the default location of the library.
14162
        hardcode_minus_L_F77=yes
14163
      fi
14164
      ;;
14165
 
14166
    hpux11*)
14167
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14168
        case $host_cpu in
14169
        hppa*64*)
14170
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14171
          ;;
14172
        ia64*)
14173
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14174
          ;;
14175
        *)
14176
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14177
          ;;
14178
        esac
14179
      else
14180
        case $host_cpu in
14181
        hppa*64*)
14182
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14183
          ;;
14184
        ia64*)
14185
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14186
          ;;
14187
        *)
14188
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14189
          ;;
14190
        esac
14191
      fi
14192
      if test "$with_gnu_ld" = no; then
14193
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14194
        hardcode_libdir_separator_F77=:
14195
 
14196
        case $host_cpu in
14197
        hppa*64*|ia64*)
14198
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14199
          hardcode_direct_F77=no
14200
          hardcode_shlibpath_var_F77=no
14201
          ;;
14202
        *)
14203
          hardcode_direct_F77=yes
14204
          export_dynamic_flag_spec_F77='${wl}-E'
14205
 
14206
          # hardcode_minus_L: Not really in the search PATH,
14207
          # but as the default location of the library.
14208
          hardcode_minus_L_F77=yes
14209
          ;;
14210
        esac
14211
      fi
14212
      ;;
14213
 
14214
    irix5* | irix6* | nonstopux*)
14215
      if test "$GCC" = yes; then
14216
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14217
      else
14218
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14219
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14220
      fi
14221
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14222
      hardcode_libdir_separator_F77=:
14223
      link_all_deplibs_F77=yes
14224
      ;;
14225
 
14226
    netbsd*)
14227
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14228
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14229
      else
14230
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14231
      fi
14232
      hardcode_libdir_flag_spec_F77='-R$libdir'
14233
      hardcode_direct_F77=yes
14234
      hardcode_shlibpath_var_F77=no
14235
      ;;
14236
 
14237
    newsos6)
14238
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14239
      hardcode_direct_F77=yes
14240
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14241
      hardcode_libdir_separator_F77=:
14242
      hardcode_shlibpath_var_F77=no
14243
      ;;
14244
 
14245
    openbsd*)
14246
      if test -f /usr/libexec/ld.so; then
14247
        hardcode_direct_F77=yes
14248
        hardcode_shlibpath_var_F77=no
14249
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14250
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14251
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14252
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14253
          export_dynamic_flag_spec_F77='${wl}-E'
14254
        else
14255
          case $host_os in
14256
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14257
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14258
             hardcode_libdir_flag_spec_F77='-R$libdir'
14259
             ;;
14260
           *)
14261
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14262
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14263
             ;;
14264
          esac
14265
        fi
14266
      else
14267
        ld_shlibs_F77=no
14268
      fi
14269
      ;;
14270
 
14271
    os2*)
14272
      hardcode_libdir_flag_spec_F77='-L$libdir'
14273
      hardcode_minus_L_F77=yes
14274
      allow_undefined_flag_F77=unsupported
14275
      archive_cmds_F77='$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'
14276
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14277
      ;;
14278
 
14279
    osf3*)
14280
      if test "$GCC" = yes; then
14281
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14282
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14283
      else
14284
        allow_undefined_flag_F77=' -expect_unresolved \*'
14285
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14286
      fi
14287
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14288
      hardcode_libdir_separator_F77=:
14289
      ;;
14290
 
14291
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14292
      if test "$GCC" = yes; then
14293
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14294
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14295
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14296
      else
14297
        allow_undefined_flag_F77=' -expect_unresolved \*'
14298
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14299
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14300
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14301
 
14302
        # Both c and cxx compiler support -rpath directly
14303
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14304
      fi
14305
      hardcode_libdir_separator_F77=:
14306
      ;;
14307
 
14308
    solaris*)
14309
      no_undefined_flag_F77=' -z text'
14310
      if test "$GCC" = yes; then
14311
        wlarc='${wl}'
14312
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14313
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14314
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14315
      else
14316
        wlarc=''
14317
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14318
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14319
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14320
      fi
14321
      hardcode_libdir_flag_spec_F77='-R$libdir'
14322
      hardcode_shlibpath_var_F77=no
14323
      case $host_os in
14324
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14325
      *)
14326
        # The compiler driver will combine and reorder linker options,
14327
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
14328
        # but is careful enough not to reorder.
14329
        # Supported since Solaris 2.6 (maybe 2.5.1?)
14330
        if test "$GCC" = yes; then
14331
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14332
        else
14333
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14334
        fi
14335
        ;;
14336
      esac
14337
      link_all_deplibs_F77=yes
14338
      ;;
14339
 
14340
    sunos4*)
14341
      if test "x$host_vendor" = xsequent; then
14342
        # Use $CC to link under sequent, because it throws in some extra .o
14343
        # files that make .init and .fini sections work.
14344
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14345
      else
14346
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14347
      fi
14348
      hardcode_libdir_flag_spec_F77='-L$libdir'
14349
      hardcode_direct_F77=yes
14350
      hardcode_minus_L_F77=yes
14351
      hardcode_shlibpath_var_F77=no
14352
      ;;
14353
 
14354
    sysv4)
14355
      case $host_vendor in
14356
        sni)
14357
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358
          hardcode_direct_F77=yes # is this really true???
14359
        ;;
14360
        siemens)
14361
          ## LD is ld it makes a PLAMLIB
14362
          ## CC just makes a GrossModule.
14363
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14364
          reload_cmds_F77='$CC -r -o $output$reload_objs'
14365
          hardcode_direct_F77=no
14366
        ;;
14367
        motorola)
14368
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14369
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14370
        ;;
14371
      esac
14372
      runpath_var='LD_RUN_PATH'
14373
      hardcode_shlibpath_var_F77=no
14374
      ;;
14375
 
14376
    sysv4.3*)
14377
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14378
      hardcode_shlibpath_var_F77=no
14379
      export_dynamic_flag_spec_F77='-Bexport'
14380
      ;;
14381
 
14382
    sysv4*MP*)
14383
      if test -d /usr/nec; then
14384
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14385
        hardcode_shlibpath_var_F77=no
14386
        runpath_var=LD_RUN_PATH
14387
        hardcode_runpath_var=yes
14388
        ld_shlibs_F77=yes
14389
      fi
14390
      ;;
14391
 
14392
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14393
      no_undefined_flag_F77='${wl}-z,text'
14394
      archive_cmds_need_lc_F77=no
14395
      hardcode_shlibpath_var_F77=no
14396
      runpath_var='LD_RUN_PATH'
14397
 
14398
      if test "$GCC" = yes; then
14399
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14400
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14401
      else
14402
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14403
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14404
      fi
14405
      ;;
14406
 
14407
    sysv5* | sco3.2v5* | sco5v6*)
14408
      # Note: We can NOT use -z defs as we might desire, because we do not
14409
      # link with -lc, and that would cause any symbols used from libc to
14410
      # always be unresolved, which means just about no library would
14411
      # ever link correctly.  If we're not using GNU ld we use -z text
14412
      # though, which does catch some bad symbols but isn't as heavy-handed
14413
      # as -z defs.
14414
      no_undefined_flag_F77='${wl}-z,text'
14415
      allow_undefined_flag_F77='${wl}-z,nodefs'
14416
      archive_cmds_need_lc_F77=no
14417
      hardcode_shlibpath_var_F77=no
14418
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14419
      hardcode_libdir_separator_F77=':'
14420
      link_all_deplibs_F77=yes
14421
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14422
      runpath_var='LD_RUN_PATH'
14423
 
14424
      if test "$GCC" = yes; then
14425
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14426
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14427
      else
14428
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14429
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14430
      fi
14431
      ;;
14432
 
14433
    uts4*)
14434
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14435
      hardcode_libdir_flag_spec_F77='-L$libdir'
14436
      hardcode_shlibpath_var_F77=no
14437
      ;;
14438
 
14439
    *)
14440
      ld_shlibs_F77=no
14441
      ;;
14442
    esac
14443
  fi
14444
 
14445
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14446
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14447
test "$ld_shlibs_F77" = no && can_build_shared=no
14448
 
14449
#
14450
# Do we need to explicitly link libc?
14451
#
14452
case "x$archive_cmds_need_lc_F77" in
14453
x|xyes)
14454
  # Assume -lc should be added
14455
  archive_cmds_need_lc_F77=yes
14456
 
14457
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14458
    case $archive_cmds_F77 in
14459
    *'~'*)
14460
      # FIXME: we may have to deal with multi-command sequences.
14461
      ;;
14462
    '$CC '*)
14463
      # Test whether the compiler implicitly links with -lc since on some
14464
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14465
      # to ld, don't add -lc before -lgcc.
14466
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14467
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14468
      $rm conftest*
14469
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14470
 
14471
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14472
  (eval $ac_compile) 2>&5
14473
  ac_status=$?
14474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475
  (exit $ac_status); } 2>conftest.err; then
14476
        soname=conftest
14477
        lib=conftest
14478
        libobjs=conftest.$ac_objext
14479
        deplibs=
14480
        wl=$lt_prog_compiler_wl_F77
14481
        pic_flag=$lt_prog_compiler_pic_F77
14482
        compiler_flags=-v
14483
        linker_flags=-v
14484
        verstring=
14485
        output_objdir=.
14486
        libname=conftest
14487
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14488
        allow_undefined_flag_F77=
14489
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14490
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14491
  ac_status=$?
14492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493
  (exit $ac_status); }
14494
        then
14495
          archive_cmds_need_lc_F77=no
14496
        else
14497
          archive_cmds_need_lc_F77=yes
14498
        fi
14499
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14500
      else
14501
        cat conftest.err 1>&5
14502
      fi
14503
      $rm conftest*
14504
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14505
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14506
      ;;
14507
    esac
14508
  fi
14509
  ;;
14510
esac
14511
 
14512
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14513
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14514
library_names_spec=
14515
libname_spec='lib$name'
14516
soname_spec=
14517
shrext_cmds=".so"
14518
postinstall_cmds=
14519
postuninstall_cmds=
14520
finish_cmds=
14521
finish_eval=
14522
shlibpath_var=
14523
shlibpath_overrides_runpath=unknown
14524
version_type=none
14525
dynamic_linker="$host_os ld.so"
14526
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14527
 
14528
need_lib_prefix=unknown
14529
hardcode_into_libs=no
14530
 
14531
# when you set need_version to no, make sure it does not cause -set_version
14532
# flags to be left without arguments
14533
need_version=unknown
14534
 
14535
case $host_os in
14536
aix3*)
14537
  version_type=linux
14538
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14539
  shlibpath_var=LIBPATH
14540
 
14541
  # AIX 3 has no versioning support, so we append a major version to the name.
14542
  soname_spec='${libname}${release}${shared_ext}$major'
14543
  ;;
14544
 
14545
aix4* | aix5*)
14546
  version_type=linux
14547
  need_lib_prefix=no
14548
  need_version=no
14549
  hardcode_into_libs=yes
14550
  if test "$host_cpu" = ia64; then
14551
    # AIX 5 supports IA64
14552
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14553
    shlibpath_var=LD_LIBRARY_PATH
14554
  else
14555
    # With GCC up to 2.95.x, collect2 would create an import file
14556
    # for dependence libraries.  The import file would start with
14557
    # the line `#! .'.  This would cause the generated library to
14558
    # depend on `.', always an invalid library.  This was fixed in
14559
    # development snapshots of GCC prior to 3.0.
14560
    case $host_os in
14561
      aix4 | aix4.[01] | aix4.[01].*)
14562
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14563
           echo ' yes '
14564
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14565
        :
14566
      else
14567
        can_build_shared=no
14568
      fi
14569
      ;;
14570
    esac
14571
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14572
    # soname into executable. Probably we can add versioning support to
14573
    # collect2, so additional links can be useful in future.
14574
    if test "$aix_use_runtimelinking" = yes; then
14575
      # If using run time linking (on AIX 4.2 or later) use lib.so
14576
      # instead of lib.a to let people know that these are not
14577
      # typical AIX shared libraries.
14578
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579
    else
14580
      # We preserve .a as extension for shared libraries through AIX4.2
14581
      # and later when we are not doing run time linking.
14582
      library_names_spec='${libname}${release}.a $libname.a'
14583
      soname_spec='${libname}${release}${shared_ext}$major'
14584
    fi
14585
    shlibpath_var=LIBPATH
14586
  fi
14587
  ;;
14588
 
14589
amigaos*)
14590
  library_names_spec='$libname.ixlibrary $libname.a'
14591
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14592
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14593
  ;;
14594
 
14595
beos*)
14596
  library_names_spec='${libname}${shared_ext}'
14597
  dynamic_linker="$host_os ld.so"
14598
  shlibpath_var=LIBRARY_PATH
14599
  ;;
14600
 
14601
bsdi[45]*)
14602
  version_type=linux
14603
  need_version=no
14604
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605
  soname_spec='${libname}${release}${shared_ext}$major'
14606
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14607
  shlibpath_var=LD_LIBRARY_PATH
14608
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14609
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14610
  # the default ld.so.conf also contains /usr/contrib/lib and
14611
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14612
  # libtool to hard-code these into programs
14613
  ;;
14614
 
14615
cygwin* | mingw* | pw32*)
14616
  version_type=windows
14617
  shrext_cmds=".dll"
14618
  need_version=no
14619
  need_lib_prefix=no
14620
 
14621
  case $GCC,$host_os in
14622
  yes,cygwin* | yes,mingw* | yes,pw32*)
14623
    library_names_spec='$libname.dll.a'
14624
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14625
    postinstall_cmds='base_file=`basename \${file}`~
14626
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14627
      dldir=$destdir/`dirname \$dlpath`~
14628
      test -d \$dldir || mkdir -p \$dldir~
14629
      $install_prog $dir/$dlname \$dldir/$dlname~
14630
      chmod a+x \$dldir/$dlname'
14631
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14632
      dlpath=$dir/\$dldll~
14633
       $rm \$dlpath'
14634
    shlibpath_overrides_runpath=yes
14635
 
14636
    case $host_os in
14637
    cygwin*)
14638
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14639
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14640
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14641
      ;;
14642
    mingw*)
14643
      # MinGW DLLs use traditional 'lib' prefix
14644
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14645
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14646
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14647
        # It is most probably a Windows format PATH printed by
14648
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14649
        # path with ; separators, and with drive letters. We can handle the
14650
        # drive letters (cygwin fileutils understands them), so leave them,
14651
        # especially as we might pass files found there to a mingw objdump,
14652
        # which wouldn't understand a cygwinified path. Ahh.
14653
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14654
      else
14655
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14656
      fi
14657
      ;;
14658
    pw32*)
14659
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14660
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14661
      ;;
14662
    esac
14663
    ;;
14664
 
14665
  *)
14666
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14667
    ;;
14668
  esac
14669
  dynamic_linker='Win32 ld.exe'
14670
  # FIXME: first we should search . and the directory the executable is in
14671
  shlibpath_var=PATH
14672
  ;;
14673
 
14674
darwin* | rhapsody*)
14675
  dynamic_linker="$host_os dyld"
14676
  version_type=darwin
14677
  need_lib_prefix=no
14678
  need_version=no
14679
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14680
  soname_spec='${libname}${release}${major}$shared_ext'
14681
  shlibpath_overrides_runpath=yes
14682
  shlibpath_var=DYLD_LIBRARY_PATH
14683
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14684
 
14685
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14686
  ;;
14687
 
14688
dgux*)
14689
  version_type=linux
14690
  need_lib_prefix=no
14691
  need_version=no
14692
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14693
  soname_spec='${libname}${release}${shared_ext}$major'
14694
  shlibpath_var=LD_LIBRARY_PATH
14695
  ;;
14696
 
14697
freebsd1*)
14698
  dynamic_linker=no
14699
  ;;
14700
 
14701
freebsd* | dragonfly*)
14702
  # DragonFly does not have aout.  When/if they implement a new
14703
  # versioning mechanism, adjust this.
14704
  if test -x /usr/bin/objformat; then
14705
    objformat=`/usr/bin/objformat`
14706
  else
14707
    case $host_os in
14708
    freebsd[123]*) objformat=aout ;;
14709
    *) objformat=elf ;;
14710
    esac
14711
  fi
14712
  version_type=freebsd-$objformat
14713
  case $version_type in
14714
    freebsd-elf*)
14715
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14716
      need_version=no
14717
      need_lib_prefix=no
14718
      ;;
14719
    freebsd-*)
14720
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14721
      need_version=yes
14722
      ;;
14723
  esac
14724
  shlibpath_var=LD_LIBRARY_PATH
14725
  case $host_os in
14726
  freebsd2*)
14727
    shlibpath_overrides_runpath=yes
14728
    ;;
14729
  freebsd3.[01]* | freebsdelf3.[01]*)
14730
    shlibpath_overrides_runpath=yes
14731
    hardcode_into_libs=yes
14732
    ;;
14733
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14734
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14735
    shlibpath_overrides_runpath=no
14736
    hardcode_into_libs=yes
14737
    ;;
14738
  *) # from 4.6 on, and DragonFly
14739
    shlibpath_overrides_runpath=yes
14740
    hardcode_into_libs=yes
14741
    ;;
14742
  esac
14743
  ;;
14744
 
14745
gnu*)
14746
  version_type=linux
14747
  need_lib_prefix=no
14748
  need_version=no
14749
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14750
  soname_spec='${libname}${release}${shared_ext}$major'
14751
  shlibpath_var=LD_LIBRARY_PATH
14752
  hardcode_into_libs=yes
14753
  ;;
14754
 
14755
hpux9* | hpux10* | hpux11*)
14756
  # Give a soname corresponding to the major version so that dld.sl refuses to
14757
  # link against other versions.
14758
  version_type=sunos
14759
  need_lib_prefix=no
14760
  need_version=no
14761
  case $host_cpu in
14762
  ia64*)
14763
    shrext_cmds='.so'
14764
    hardcode_into_libs=yes
14765
    dynamic_linker="$host_os dld.so"
14766
    shlibpath_var=LD_LIBRARY_PATH
14767
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14768
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769
    soname_spec='${libname}${release}${shared_ext}$major'
14770
    if test "X$HPUX_IA64_MODE" = X32; then
14771
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14772
    else
14773
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14774
    fi
14775
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14776
    ;;
14777
   hppa*64*)
14778
     shrext_cmds='.sl'
14779
     hardcode_into_libs=yes
14780
     dynamic_linker="$host_os dld.sl"
14781
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14782
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14783
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784
     soname_spec='${libname}${release}${shared_ext}$major'
14785
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14786
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14787
     ;;
14788
   *)
14789
    shrext_cmds='.sl'
14790
    dynamic_linker="$host_os dld.sl"
14791
    shlibpath_var=SHLIB_PATH
14792
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14793
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794
    soname_spec='${libname}${release}${shared_ext}$major'
14795
    ;;
14796
  esac
14797
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14798
  postinstall_cmds='chmod 555 $lib'
14799
  ;;
14800
 
14801
interix[3-9]*)
14802
  version_type=linux
14803
  need_lib_prefix=no
14804
  need_version=no
14805
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14806
  soname_spec='${libname}${release}${shared_ext}$major'
14807
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14808
  shlibpath_var=LD_LIBRARY_PATH
14809
  shlibpath_overrides_runpath=no
14810
  hardcode_into_libs=yes
14811
  ;;
14812
 
14813
irix5* | irix6* | nonstopux*)
14814
  case $host_os in
14815
    nonstopux*) version_type=nonstopux ;;
14816
    *)
14817
        if test "$lt_cv_prog_gnu_ld" = yes; then
14818
                version_type=linux
14819
        else
14820
                version_type=irix
14821
        fi ;;
14822
  esac
14823
  need_lib_prefix=no
14824
  need_version=no
14825
  soname_spec='${libname}${release}${shared_ext}$major'
14826
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14827
  case $host_os in
14828
  irix5* | nonstopux*)
14829
    libsuff= shlibsuff=
14830
    ;;
14831
  *)
14832
    case $LD in # libtool.m4 will add one of these switches to LD
14833
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14834
      libsuff= shlibsuff= libmagic=32-bit;;
14835
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14836
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14837
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14838
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14839
    *) libsuff= shlibsuff= libmagic=never-match;;
14840
    esac
14841
    ;;
14842
  esac
14843
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14844
  shlibpath_overrides_runpath=no
14845
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14846
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14847
  hardcode_into_libs=yes
14848
  ;;
14849
 
14850
# No shared lib support for Linux oldld, aout, or coff.
14851
linux*oldld* | linux*aout* | linux*coff*)
14852
  dynamic_linker=no
14853
  ;;
14854
 
14855
# This must be Linux ELF.
14856
linux* | k*bsd*-gnu)
14857
  version_type=linux
14858
  need_lib_prefix=no
14859
  need_version=no
14860
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861
  soname_spec='${libname}${release}${shared_ext}$major'
14862
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14863
  shlibpath_var=LD_LIBRARY_PATH
14864
  shlibpath_overrides_runpath=no
14865
  # This implies no fast_install, which is unacceptable.
14866
  # Some rework will be needed to allow for fast_install
14867
  # before this can be enabled.
14868
  hardcode_into_libs=yes
14869
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14870
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14871
 
14872
  # Append ld.so.conf contents to the search path
14873
  if test -f /etc/ld.so.conf; then
14874
    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;/^$/d' | tr '\n' ' '`
14875
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14876
  fi
14877
 
14878
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14879
  # powerpc, because MkLinux only supported shared libraries with the
14880
  # GNU dynamic linker.  Since this was broken with cross compilers,
14881
  # most powerpc-linux boxes support dynamic linking these days and
14882
  # people can always --disable-shared, the test was removed, and we
14883
  # assume the GNU/Linux dynamic linker is in use.
14884
  dynamic_linker='GNU/Linux ld.so'
14885
  ;;
14886
 
14887
netbsd*)
14888
  version_type=sunos
14889
  need_lib_prefix=no
14890
  need_version=no
14891
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14892
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14893
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14894
    dynamic_linker='NetBSD (a.out) ld.so'
14895
  else
14896
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14897
    soname_spec='${libname}${release}${shared_ext}$major'
14898
    dynamic_linker='NetBSD ld.elf_so'
14899
  fi
14900
  shlibpath_var=LD_LIBRARY_PATH
14901
  shlibpath_overrides_runpath=yes
14902
  hardcode_into_libs=yes
14903
  ;;
14904
 
14905
newsos6)
14906
  version_type=linux
14907
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908
  shlibpath_var=LD_LIBRARY_PATH
14909
  shlibpath_overrides_runpath=yes
14910
  ;;
14911
 
14912
nto-qnx*)
14913
  version_type=linux
14914
  need_lib_prefix=no
14915
  need_version=no
14916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917
  soname_spec='${libname}${release}${shared_ext}$major'
14918
  shlibpath_var=LD_LIBRARY_PATH
14919
  shlibpath_overrides_runpath=yes
14920
  ;;
14921
 
14922
openbsd*)
14923
  version_type=sunos
14924
  sys_lib_dlsearch_path_spec="/usr/lib"
14925
  need_lib_prefix=no
14926
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14927
  case $host_os in
14928
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14929
    *)                         need_version=no  ;;
14930
  esac
14931
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14932
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14933
  shlibpath_var=LD_LIBRARY_PATH
14934
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14935
    case $host_os in
14936
      openbsd2.[89] | openbsd2.[89].*)
14937
        shlibpath_overrides_runpath=no
14938
        ;;
14939
      *)
14940
        shlibpath_overrides_runpath=yes
14941
        ;;
14942
      esac
14943
  else
14944
    shlibpath_overrides_runpath=yes
14945
  fi
14946
  ;;
14947
 
14948
os2*)
14949
  libname_spec='$name'
14950
  shrext_cmds=".dll"
14951
  need_lib_prefix=no
14952
  library_names_spec='$libname${shared_ext} $libname.a'
14953
  dynamic_linker='OS/2 ld.exe'
14954
  shlibpath_var=LIBPATH
14955
  ;;
14956
 
14957
osf3* | osf4* | osf5*)
14958
  version_type=osf
14959
  need_lib_prefix=no
14960
  need_version=no
14961
  soname_spec='${libname}${release}${shared_ext}$major'
14962
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963
  shlibpath_var=LD_LIBRARY_PATH
14964
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14965
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14966
  ;;
14967
 
14968
rdos*)
14969
  dynamic_linker=no
14970
  ;;
14971
 
14972
solaris*)
14973
  version_type=linux
14974
  need_lib_prefix=no
14975
  need_version=no
14976
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14977
  soname_spec='${libname}${release}${shared_ext}$major'
14978
  shlibpath_var=LD_LIBRARY_PATH
14979
  shlibpath_overrides_runpath=yes
14980
  hardcode_into_libs=yes
14981
  # ldd complains unless libraries are executable
14982
  postinstall_cmds='chmod +x $lib'
14983
  ;;
14984
 
14985
sunos4*)
14986
  version_type=sunos
14987
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14988
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14989
  shlibpath_var=LD_LIBRARY_PATH
14990
  shlibpath_overrides_runpath=yes
14991
  if test "$with_gnu_ld" = yes; then
14992
    need_lib_prefix=no
14993
  fi
14994
  need_version=yes
14995
  ;;
14996
 
14997
sysv4 | sysv4.3*)
14998
  version_type=linux
14999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000
  soname_spec='${libname}${release}${shared_ext}$major'
15001
  shlibpath_var=LD_LIBRARY_PATH
15002
  case $host_vendor in
15003
    sni)
15004
      shlibpath_overrides_runpath=no
15005
      need_lib_prefix=no
15006
      export_dynamic_flag_spec='${wl}-Blargedynsym'
15007
      runpath_var=LD_RUN_PATH
15008
      ;;
15009
    siemens)
15010
      need_lib_prefix=no
15011
      ;;
15012
    motorola)
15013
      need_lib_prefix=no
15014
      need_version=no
15015
      shlibpath_overrides_runpath=no
15016
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15017
      ;;
15018
  esac
15019
  ;;
15020
 
15021
sysv4*MP*)
15022
  if test -d /usr/nec ;then
15023
    version_type=linux
15024
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15025
    soname_spec='$libname${shared_ext}.$major'
15026
    shlibpath_var=LD_LIBRARY_PATH
15027
  fi
15028
  ;;
15029
 
15030
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15031
  version_type=freebsd-elf
15032
  need_lib_prefix=no
15033
  need_version=no
15034
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15035
  soname_spec='${libname}${release}${shared_ext}$major'
15036
  shlibpath_var=LD_LIBRARY_PATH
15037
  hardcode_into_libs=yes
15038
  if test "$with_gnu_ld" = yes; then
15039
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15040
    shlibpath_overrides_runpath=no
15041
  else
15042
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15043
    shlibpath_overrides_runpath=yes
15044
    case $host_os in
15045
      sco3.2v5*)
15046
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15047
        ;;
15048
    esac
15049
  fi
15050
  sys_lib_dlsearch_path_spec='/usr/lib'
15051
  ;;
15052
 
15053
uts4*)
15054
  version_type=linux
15055
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15056
  soname_spec='${libname}${release}${shared_ext}$major'
15057
  shlibpath_var=LD_LIBRARY_PATH
15058
  ;;
15059
 
15060
*)
15061
  dynamic_linker=no
15062
  ;;
15063
esac
15064
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15065
echo "${ECHO_T}$dynamic_linker" >&6; }
15066
test "$dynamic_linker" = no && can_build_shared=no
15067
 
15068
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15069
if test "$GCC" = yes; then
15070
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15071
fi
15072
 
15073
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15074
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15075
hardcode_action_F77=
15076
if test -n "$hardcode_libdir_flag_spec_F77" || \
15077
   test -n "$runpath_var_F77" || \
15078
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15079
 
15080
  # We can hardcode non-existant directories.
15081
  if test "$hardcode_direct_F77" != no &&
15082
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15083
     # have to relink, otherwise we might link with an installed library
15084
     # when we should be linking with a yet-to-be-installed one
15085
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15086
     test "$hardcode_minus_L_F77" != no; then
15087
    # Linking always hardcodes the temporary library directory.
15088
    hardcode_action_F77=relink
15089
  else
15090
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15091
    hardcode_action_F77=immediate
15092
  fi
15093
else
15094
  # We cannot hardcode anything, or else we can only hardcode existing
15095
  # directories.
15096
  hardcode_action_F77=unsupported
15097
fi
15098
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15099
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15100
 
15101
if test "$hardcode_action_F77" = relink; then
15102
  # Fast installation is not supported
15103
  enable_fast_install=no
15104
elif test "$shlibpath_overrides_runpath" = yes ||
15105
     test "$enable_shared" = no; then
15106
  # Fast installation is not necessary
15107
  enable_fast_install=needless
15108
fi
15109
 
15110
 
15111
# The else clause should only fire when bootstrapping the
15112
# libtool distribution, otherwise you forgot to ship ltmain.sh
15113
# with your package, and you will get complaints that there are
15114
# no rules to generate ltmain.sh.
15115
if test -f "$ltmain"; then
15116
  # See if we are running on zsh, and set the options which allow our commands through
15117
  # without removal of \ escapes.
15118
  if test -n "${ZSH_VERSION+set}" ; then
15119
    setopt NO_GLOB_SUBST
15120
  fi
15121
  # Now quote all the things that may contain metacharacters while being
15122
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15123
  # variables and quote the copies for generation of the libtool script.
15124
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15125
    SED SHELL STRIP \
15126
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15127
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15128
    deplibs_check_method reload_flag reload_cmds need_locks \
15129
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15130
    lt_cv_sys_global_symbol_to_c_name_address \
15131
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15132
    old_postinstall_cmds old_postuninstall_cmds \
15133
    compiler_F77 \
15134
    CC_F77 \
15135
    LD_F77 \
15136
    lt_prog_compiler_wl_F77 \
15137
    lt_prog_compiler_pic_F77 \
15138
    lt_prog_compiler_static_F77 \
15139
    lt_prog_compiler_no_builtin_flag_F77 \
15140
    export_dynamic_flag_spec_F77 \
15141
    thread_safe_flag_spec_F77 \
15142
    whole_archive_flag_spec_F77 \
15143
    enable_shared_with_static_runtimes_F77 \
15144
    old_archive_cmds_F77 \
15145
    old_archive_from_new_cmds_F77 \
15146
    predep_objects_F77 \
15147
    postdep_objects_F77 \
15148
    predeps_F77 \
15149
    postdeps_F77 \
15150
    compiler_lib_search_path_F77 \
15151
    archive_cmds_F77 \
15152
    archive_expsym_cmds_F77 \
15153
    postinstall_cmds_F77 \
15154
    postuninstall_cmds_F77 \
15155
    old_archive_from_expsyms_cmds_F77 \
15156
    allow_undefined_flag_F77 \
15157
    no_undefined_flag_F77 \
15158
    export_symbols_cmds_F77 \
15159
    hardcode_libdir_flag_spec_F77 \
15160
    hardcode_libdir_flag_spec_ld_F77 \
15161
    hardcode_libdir_separator_F77 \
15162
    hardcode_automatic_F77 \
15163
    module_cmds_F77 \
15164
    module_expsym_cmds_F77 \
15165
    lt_cv_prog_compiler_c_o_F77 \
15166
    fix_srcfile_path_F77 \
15167
    exclude_expsyms_F77 \
15168
    include_expsyms_F77; do
15169
 
15170
    case $var in
15171
    old_archive_cmds_F77 | \
15172
    old_archive_from_new_cmds_F77 | \
15173
    archive_cmds_F77 | \
15174
    archive_expsym_cmds_F77 | \
15175
    module_cmds_F77 | \
15176
    module_expsym_cmds_F77 | \
15177
    old_archive_from_expsyms_cmds_F77 | \
15178
    export_symbols_cmds_F77 | \
15179
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15180
    postinstall_cmds | postuninstall_cmds | \
15181
    old_postinstall_cmds | old_postuninstall_cmds | \
15182
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15183
      # Double-quote double-evaled strings.
15184
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15185
      ;;
15186
    *)
15187
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15188
      ;;
15189
    esac
15190
  done
15191
 
15192
  case $lt_echo in
15193
  *'\$0 --fallback-echo"')
15194
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15195
    ;;
15196
  esac
15197
 
15198
cfgfile="$ofile"
15199
 
15200
  cat <<__EOF__ >> "$cfgfile"
15201
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15202
 
15203
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15204
 
15205
# Shell to use when invoking shell scripts.
15206
SHELL=$lt_SHELL
15207
 
15208
# Whether or not to build shared libraries.
15209
build_libtool_libs=$enable_shared
15210
 
15211
# Whether or not to build static libraries.
15212
build_old_libs=$enable_static
15213
 
15214
# Whether or not to add -lc for building shared libraries.
15215
build_libtool_need_lc=$archive_cmds_need_lc_F77
15216
 
15217
# Whether or not to disallow shared libs when runtime libs are static
15218
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15219
 
15220
# Whether or not to optimize for fast installation.
15221
fast_install=$enable_fast_install
15222
 
15223
# The host system.
15224
host_alias=$host_alias
15225
host=$host
15226
host_os=$host_os
15227
 
15228
# The build system.
15229
build_alias=$build_alias
15230
build=$build
15231
build_os=$build_os
15232
 
15233
# An echo program that does not interpret backslashes.
15234
echo=$lt_echo
15235
 
15236
# The archiver.
15237
AR=$lt_AR
15238
AR_FLAGS=$lt_AR_FLAGS
15239
 
15240
# A C compiler.
15241
LTCC=$lt_LTCC
15242
 
15243
# LTCC compiler flags.
15244
LTCFLAGS=$lt_LTCFLAGS
15245
 
15246
# A language-specific compiler.
15247
CC=$lt_compiler_F77
15248
 
15249
# Is the compiler the GNU C compiler?
15250
with_gcc=$GCC_F77
15251
 
15252
# An ERE matcher.
15253
EGREP=$lt_EGREP
15254
 
15255
# The linker used to build libraries.
15256
LD=$lt_LD_F77
15257
 
15258
# Whether we need hard or soft links.
15259
LN_S=$lt_LN_S
15260
 
15261
# A BSD-compatible nm program.
15262
NM=$lt_NM
15263
 
15264
# A symbol stripping program
15265
STRIP=$lt_STRIP
15266
 
15267
# Used to examine libraries when file_magic_cmd begins "file"
15268
MAGIC_CMD=$MAGIC_CMD
15269
 
15270
# Used on cygwin: DLL creation program.
15271
DLLTOOL="$DLLTOOL"
15272
 
15273
# Used on cygwin: object dumper.
15274
OBJDUMP="$OBJDUMP"
15275
 
15276
# Used on cygwin: assembler.
15277
AS="$AS"
15278
 
15279
# The name of the directory that contains temporary libtool files.
15280
objdir=$objdir
15281
 
15282
# How to create reloadable object files.
15283
reload_flag=$lt_reload_flag
15284
reload_cmds=$lt_reload_cmds
15285
 
15286
# How to pass a linker flag through the compiler.
15287
wl=$lt_lt_prog_compiler_wl_F77
15288
 
15289
# Object file suffix (normally "o").
15290
objext="$ac_objext"
15291
 
15292
# Old archive suffix (normally "a").
15293
libext="$libext"
15294
 
15295
# Shared library suffix (normally ".so").
15296
shrext_cmds='$shrext_cmds'
15297
 
15298
# Executable file suffix (normally "").
15299
exeext="$exeext"
15300
 
15301
# Additional compiler flags for building library objects.
15302
pic_flag=$lt_lt_prog_compiler_pic_F77
15303
pic_mode=$pic_mode
15304
 
15305
# What is the maximum length of a command?
15306
max_cmd_len=$lt_cv_sys_max_cmd_len
15307
 
15308
# Does compiler simultaneously support -c and -o options?
15309
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15310
 
15311
# Must we lock files when doing compilation?
15312
need_locks=$lt_need_locks
15313
 
15314
# Do we need the lib prefix for modules?
15315
need_lib_prefix=$need_lib_prefix
15316
 
15317
# Do we need a version for libraries?
15318
need_version=$need_version
15319
 
15320
# Whether dlopen is supported.
15321
dlopen_support=$enable_dlopen
15322
 
15323
# Whether dlopen of programs is supported.
15324
dlopen_self=$enable_dlopen_self
15325
 
15326
# Whether dlopen of statically linked programs is supported.
15327
dlopen_self_static=$enable_dlopen_self_static
15328
 
15329
# Compiler flag to prevent dynamic linking.
15330
link_static_flag=$lt_lt_prog_compiler_static_F77
15331
 
15332
# Compiler flag to turn off builtin functions.
15333
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15334
 
15335
# Compiler flag to allow reflexive dlopens.
15336
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15337
 
15338
# Compiler flag to generate shared objects directly from archives.
15339
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15340
 
15341
# Compiler flag to generate thread-safe objects.
15342
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15343
 
15344
# Library versioning type.
15345
version_type=$version_type
15346
 
15347
# Format of library name prefix.
15348
libname_spec=$lt_libname_spec
15349
 
15350
# List of archive names.  First name is the real one, the rest are links.
15351
# The last name is the one that the linker finds with -lNAME.
15352
library_names_spec=$lt_library_names_spec
15353
 
15354
# The coded name of the library, if different from the real name.
15355
soname_spec=$lt_soname_spec
15356
 
15357
# Commands used to build and install an old-style archive.
15358
RANLIB=$lt_RANLIB
15359
old_archive_cmds=$lt_old_archive_cmds_F77
15360
old_postinstall_cmds=$lt_old_postinstall_cmds
15361
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15362
 
15363
# Create an old-style archive from a shared archive.
15364
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15365
 
15366
# Create a temporary old-style archive to link instead of a shared archive.
15367
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15368
 
15369
# Commands used to build and install a shared archive.
15370
archive_cmds=$lt_archive_cmds_F77
15371
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15372
postinstall_cmds=$lt_postinstall_cmds
15373
postuninstall_cmds=$lt_postuninstall_cmds
15374
 
15375
# Commands used to build a loadable module (assumed same as above if empty)
15376
module_cmds=$lt_module_cmds_F77
15377
module_expsym_cmds=$lt_module_expsym_cmds_F77
15378
 
15379
# Commands to strip libraries.
15380
old_striplib=$lt_old_striplib
15381
striplib=$lt_striplib
15382
 
15383
# Dependencies to place before the objects being linked to create a
15384
# shared library.
15385
predep_objects=$lt_predep_objects_F77
15386
 
15387
# Dependencies to place after the objects being linked to create a
15388
# shared library.
15389
postdep_objects=$lt_postdep_objects_F77
15390
 
15391
# Dependencies to place before the objects being linked to create a
15392
# shared library.
15393
predeps=$lt_predeps_F77
15394
 
15395
# Dependencies to place after the objects being linked to create a
15396
# shared library.
15397
postdeps=$lt_postdeps_F77
15398
 
15399
# The library search path used internally by the compiler when linking
15400
# a shared library.
15401
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15402
 
15403
# Method to check whether dependent libraries are shared objects.
15404
deplibs_check_method=$lt_deplibs_check_method
15405
 
15406
# Command to use when deplibs_check_method == file_magic.
15407
file_magic_cmd=$lt_file_magic_cmd
15408
 
15409
# Flag that allows shared libraries with undefined symbols to be built.
15410
allow_undefined_flag=$lt_allow_undefined_flag_F77
15411
 
15412
# Flag that forces no undefined symbols.
15413
no_undefined_flag=$lt_no_undefined_flag_F77
15414
 
15415
# Commands used to finish a libtool library installation in a directory.
15416
finish_cmds=$lt_finish_cmds
15417
 
15418
# Same as above, but a single script fragment to be evaled but not shown.
15419
finish_eval=$lt_finish_eval
15420
 
15421
# Take the output of nm and produce a listing of raw symbols and C names.
15422
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15423
 
15424
# Transform the output of nm in a proper C declaration
15425
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15426
 
15427
# Transform the output of nm in a C name address pair
15428
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15429
 
15430
# This is the shared library runtime path variable.
15431
runpath_var=$runpath_var
15432
 
15433
# This is the shared library path variable.
15434
shlibpath_var=$shlibpath_var
15435
 
15436
# Is shlibpath searched before the hard-coded library search path?
15437
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15438
 
15439
# How to hardcode a shared library path into an executable.
15440
hardcode_action=$hardcode_action_F77
15441
 
15442
# Whether we should hardcode library paths into libraries.
15443
hardcode_into_libs=$hardcode_into_libs
15444
 
15445
# Flag to hardcode \$libdir into a binary during linking.
15446
# This must work even if \$libdir does not exist.
15447
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15448
 
15449
# If ld is used when linking, flag to hardcode \$libdir into
15450
# a binary during linking. This must work even if \$libdir does
15451
# not exist.
15452
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15453
 
15454
# Whether we need a single -rpath flag with a separated argument.
15455
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15456
 
15457
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15458
# resulting binary.
15459
hardcode_direct=$hardcode_direct_F77
15460
 
15461
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15462
# resulting binary.
15463
hardcode_minus_L=$hardcode_minus_L_F77
15464
 
15465
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15466
# the resulting binary.
15467
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15468
 
15469
# Set to yes if building a shared library automatically hardcodes DIR into the library
15470
# and all subsequent libraries and executables linked against it.
15471
hardcode_automatic=$hardcode_automatic_F77
15472
 
15473
# Variables whose values should be saved in libtool wrapper scripts and
15474
# restored at relink time.
15475
variables_saved_for_relink="$variables_saved_for_relink"
15476
 
15477
# Whether libtool must link a program against all its dependency libraries.
15478
link_all_deplibs=$link_all_deplibs_F77
15479
 
15480
# Compile-time system search path for libraries
15481
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15482
 
15483
# Run-time system search path for libraries
15484
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15485
 
15486
# Fix the shell variable \$srcfile for the compiler.
15487
fix_srcfile_path=$lt_fix_srcfile_path
15488
 
15489
# Set to yes if exported symbols are required.
15490
always_export_symbols=$always_export_symbols_F77
15491
 
15492
# The commands to list exported symbols.
15493
export_symbols_cmds=$lt_export_symbols_cmds_F77
15494
 
15495
# The commands to extract the exported symbol list from a shared archive.
15496
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15497
 
15498
# Symbols that should not be listed in the preloaded symbols.
15499
exclude_expsyms=$lt_exclude_expsyms_F77
15500
 
15501
# Symbols that must always be exported.
15502
include_expsyms=$lt_include_expsyms_F77
15503
 
15504
# ### END LIBTOOL TAG CONFIG: $tagname
15505
 
15506
__EOF__
15507
 
15508
 
15509
else
15510
  # If there is no Makefile yet, we rely on a make rule to execute
15511
  # `config.status --recheck' to rerun these tests and create the
15512
  # libtool script then.
15513
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15514
  if test -f "$ltmain_in"; then
15515
    test -f Makefile && make "$ltmain"
15516
  fi
15517
fi
15518
 
15519
 
15520
ac_ext=c
15521
ac_cpp='$CPP $CPPFLAGS'
15522
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15523
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15524
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15525
 
15526
CC="$lt_save_CC"
15527
 
15528
        else
15529
          tagname=""
15530
        fi
15531
        ;;
15532
 
15533
      GCJ)
15534
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15535
 
15536
 
15537
# Source file extension for Java test sources.
15538
ac_ext=java
15539
 
15540
# Object file extension for compiled Java test sources.
15541
objext=o
15542
objext_GCJ=$objext
15543
 
15544
# Code to be used in simple compile tests
15545
lt_simple_compile_test_code="class foo {}"
15546
 
15547
# Code to be used in simple link tests
15548
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15549
 
15550
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15551
 
15552
# If no C compiler was specified, use CC.
15553
LTCC=${LTCC-"$CC"}
15554
 
15555
# If no C compiler flags were specified, use CFLAGS.
15556
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15557
 
15558
# Allow CC to be a program name with arguments.
15559
compiler=$CC
15560
 
15561
 
15562
# save warnings/boilerplate of simple test code
15563
ac_outfile=conftest.$ac_objext
15564
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15565
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15566
_lt_compiler_boilerplate=`cat conftest.err`
15567
$rm conftest*
15568
 
15569
ac_outfile=conftest.$ac_objext
15570
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15571
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15572
_lt_linker_boilerplate=`cat conftest.err`
15573
$rm conftest*
15574
 
15575
 
15576
# Allow CC to be a program name with arguments.
15577
lt_save_CC="$CC"
15578
CC=${GCJ-"gcj"}
15579
compiler=$CC
15580
compiler_GCJ=$CC
15581
for cc_temp in $compiler""; do
15582
  case $cc_temp in
15583
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15584
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15585
    \-*) ;;
15586
    *) break;;
15587
  esac
15588
done
15589
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15590
 
15591
 
15592
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15593
archive_cmds_need_lc_GCJ=no
15594
 
15595
old_archive_cmds_GCJ=$old_archive_cmds
15596
 
15597
 
15598
lt_prog_compiler_no_builtin_flag_GCJ=
15599
 
15600
if test "$GCC" = yes; then
15601
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15602
 
15603
 
15604
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15605
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15606
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15607
  echo $ECHO_N "(cached) $ECHO_C" >&6
15608
else
15609
  lt_cv_prog_compiler_rtti_exceptions=no
15610
  ac_outfile=conftest.$ac_objext
15611
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15612
   lt_compiler_flag="-fno-rtti -fno-exceptions"
15613
   # Insert the option either (1) after the last *FLAGS variable, or
15614
   # (2) before a word containing "conftest.", or (3) at the end.
15615
   # Note that $ac_compile itself does not contain backslashes and begins
15616
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15617
   # The option is referenced via a variable to avoid confusing sed.
15618
   lt_compile=`echo "$ac_compile" | $SED \
15619
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15620
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15621
   -e 's:$: $lt_compiler_flag:'`
15622
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15623
   (eval "$lt_compile" 2>conftest.err)
15624
   ac_status=$?
15625
   cat conftest.err >&5
15626
   echo "$as_me:__oline__: \$? = $ac_status" >&5
15627
   if (exit $ac_status) && test -s "$ac_outfile"; then
15628
     # The compiler can only warn and ignore the option if not recognized
15629
     # So say no if there are warnings other than the usual output.
15630
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15631
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15632
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15633
       lt_cv_prog_compiler_rtti_exceptions=yes
15634
     fi
15635
   fi
15636
   $rm conftest*
15637
 
15638
fi
15639
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15640
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15641
 
15642
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15643
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15644
else
15645
    :
15646
fi
15647
 
15648
fi
15649
 
15650
lt_prog_compiler_wl_GCJ=
15651
lt_prog_compiler_pic_GCJ=
15652
lt_prog_compiler_static_GCJ=
15653
 
15654
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15655
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15656
 
15657
  if test "$GCC" = yes; then
15658
    lt_prog_compiler_wl_GCJ='-Wl,'
15659
    lt_prog_compiler_static_GCJ='-static'
15660
 
15661
    case $host_os in
15662
      aix*)
15663
      # All AIX code is PIC.
15664
      if test "$host_cpu" = ia64; then
15665
        # AIX 5 now supports IA64 processor
15666
        lt_prog_compiler_static_GCJ='-Bstatic'
15667
      fi
15668
      ;;
15669
 
15670
    amigaos*)
15671
      # FIXME: we need at least 68020 code to build shared libraries, but
15672
      # adding the `-m68020' flag to GCC prevents building anything better,
15673
      # like `-m68040'.
15674
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15675
      ;;
15676
 
15677
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15678
      # PIC is the default for these OSes.
15679
      ;;
15680
 
15681
    mingw* | cygwin* | pw32* | os2*)
15682
      # This hack is so that the source file can tell whether it is being
15683
      # built for inclusion in a dll (and should export symbols for example).
15684
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15685
      # (--disable-auto-import) libraries
15686
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15687
      ;;
15688
 
15689
    darwin* | rhapsody*)
15690
      # PIC is the default on this platform
15691
      # Common symbols not allowed in MH_DYLIB files
15692
      lt_prog_compiler_pic_GCJ='-fno-common'
15693
      ;;
15694
 
15695
    interix[3-9]*)
15696
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15697
      # Instead, we relocate shared libraries at runtime.
15698
      ;;
15699
 
15700
    msdosdjgpp*)
15701
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15702
      # on systems that don't support them.
15703
      lt_prog_compiler_can_build_shared_GCJ=no
15704
      enable_shared=no
15705
      ;;
15706
 
15707
    sysv4*MP*)
15708
      if test -d /usr/nec; then
15709
        lt_prog_compiler_pic_GCJ=-Kconform_pic
15710
      fi
15711
      ;;
15712
 
15713
    hpux*)
15714
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15715
      # not for PA HP-UX.
15716
      case $host_cpu in
15717
      hppa*64*|ia64*)
15718
        # +Z the default
15719
        ;;
15720
      *)
15721
        lt_prog_compiler_pic_GCJ='-fPIC'
15722
        ;;
15723
      esac
15724
      ;;
15725
 
15726
    *)
15727
      lt_prog_compiler_pic_GCJ='-fPIC'
15728
      ;;
15729
    esac
15730
  else
15731
    # PORTME Check for flag to pass linker flags through the system compiler.
15732
    case $host_os in
15733
    aix*)
15734
      lt_prog_compiler_wl_GCJ='-Wl,'
15735
      if test "$host_cpu" = ia64; then
15736
        # AIX 5 now supports IA64 processor
15737
        lt_prog_compiler_static_GCJ='-Bstatic'
15738
      else
15739
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15740
      fi
15741
      ;;
15742
      darwin*)
15743
        # PIC is the default on this platform
15744
        # Common symbols not allowed in MH_DYLIB files
15745
       case $cc_basename in
15746
         xlc*)
15747
         lt_prog_compiler_pic_GCJ='-qnocommon'
15748
         lt_prog_compiler_wl_GCJ='-Wl,'
15749
         ;;
15750
       esac
15751
       ;;
15752
 
15753
    mingw* | cygwin* | pw32* | os2*)
15754
      # This hack is so that the source file can tell whether it is being
15755
      # built for inclusion in a dll (and should export symbols for example).
15756
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15757
      ;;
15758
 
15759
    hpux9* | hpux10* | hpux11*)
15760
      lt_prog_compiler_wl_GCJ='-Wl,'
15761
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15762
      # not for PA HP-UX.
15763
      case $host_cpu in
15764
      hppa*64*|ia64*)
15765
        # +Z the default
15766
        ;;
15767
      *)
15768
        lt_prog_compiler_pic_GCJ='+Z'
15769
        ;;
15770
      esac
15771
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15772
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15773
      ;;
15774
 
15775
    irix5* | irix6* | nonstopux*)
15776
      lt_prog_compiler_wl_GCJ='-Wl,'
15777
      # PIC (with -KPIC) is the default.
15778
      lt_prog_compiler_static_GCJ='-non_shared'
15779
      ;;
15780
 
15781
    newsos6)
15782
      lt_prog_compiler_pic_GCJ='-KPIC'
15783
      lt_prog_compiler_static_GCJ='-Bstatic'
15784
      ;;
15785
 
15786
    linux* | k*bsd*-gnu)
15787
      case $cc_basename in
15788
      icc* | ecc*)
15789
        lt_prog_compiler_wl_GCJ='-Wl,'
15790
        lt_prog_compiler_pic_GCJ='-KPIC'
15791
        lt_prog_compiler_static_GCJ='-static'
15792
        ;;
15793
      pgcc* | pgf77* | pgf90* | pgf95*)
15794
        # Portland Group compilers (*not* the Pentium gcc compiler,
15795
        # which looks to be a dead project)
15796
        lt_prog_compiler_wl_GCJ='-Wl,'
15797
        lt_prog_compiler_pic_GCJ='-fpic'
15798
        lt_prog_compiler_static_GCJ='-Bstatic'
15799
        ;;
15800
      ccc*)
15801
        lt_prog_compiler_wl_GCJ='-Wl,'
15802
        # All Alpha code is PIC.
15803
        lt_prog_compiler_static_GCJ='-non_shared'
15804
        ;;
15805
      *)
15806
        case `$CC -V 2>&1 | sed 5q` in
15807
        *Sun\ C*)
15808
          # Sun C 5.9
15809
          lt_prog_compiler_pic_GCJ='-KPIC'
15810
          lt_prog_compiler_static_GCJ='-Bstatic'
15811
          lt_prog_compiler_wl_GCJ='-Wl,'
15812
          ;;
15813
        *Sun\ F*)
15814
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
15815
          lt_prog_compiler_pic_GCJ='-KPIC'
15816
          lt_prog_compiler_static_GCJ='-Bstatic'
15817
          lt_prog_compiler_wl_GCJ=''
15818
          ;;
15819
        esac
15820
        ;;
15821
      esac
15822
      ;;
15823
 
15824
    osf3* | osf4* | osf5*)
15825
      lt_prog_compiler_wl_GCJ='-Wl,'
15826
      # All OSF/1 code is PIC.
15827
      lt_prog_compiler_static_GCJ='-non_shared'
15828
      ;;
15829
 
15830
    rdos*)
15831
      lt_prog_compiler_static_GCJ='-non_shared'
15832
      ;;
15833
 
15834
    solaris*)
15835
      lt_prog_compiler_pic_GCJ='-KPIC'
15836
      lt_prog_compiler_static_GCJ='-Bstatic'
15837
      case $cc_basename in
15838
      f77* | f90* | f95*)
15839
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15840
      *)
15841
        lt_prog_compiler_wl_GCJ='-Wl,';;
15842
      esac
15843
      ;;
15844
 
15845
    sunos4*)
15846
      lt_prog_compiler_wl_GCJ='-Qoption ld '
15847
      lt_prog_compiler_pic_GCJ='-PIC'
15848
      lt_prog_compiler_static_GCJ='-Bstatic'
15849
      ;;
15850
 
15851
    sysv4 | sysv4.2uw2* | sysv4.3*)
15852
      lt_prog_compiler_wl_GCJ='-Wl,'
15853
      lt_prog_compiler_pic_GCJ='-KPIC'
15854
      lt_prog_compiler_static_GCJ='-Bstatic'
15855
      ;;
15856
 
15857
    sysv4*MP*)
15858
      if test -d /usr/nec ;then
15859
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
15860
        lt_prog_compiler_static_GCJ='-Bstatic'
15861
      fi
15862
      ;;
15863
 
15864
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15865
      lt_prog_compiler_wl_GCJ='-Wl,'
15866
      lt_prog_compiler_pic_GCJ='-KPIC'
15867
      lt_prog_compiler_static_GCJ='-Bstatic'
15868
      ;;
15869
 
15870
    unicos*)
15871
      lt_prog_compiler_wl_GCJ='-Wl,'
15872
      lt_prog_compiler_can_build_shared_GCJ=no
15873
      ;;
15874
 
15875
    uts4*)
15876
      lt_prog_compiler_pic_GCJ='-pic'
15877
      lt_prog_compiler_static_GCJ='-Bstatic'
15878
      ;;
15879
 
15880
    *)
15881
      lt_prog_compiler_can_build_shared_GCJ=no
15882
      ;;
15883
    esac
15884
  fi
15885
 
15886
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15887
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15888
 
15889
#
15890
# Check to make sure the PIC flag actually works.
15891
#
15892
if test -n "$lt_prog_compiler_pic_GCJ"; then
15893
 
15894
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15895
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15896
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15897
  echo $ECHO_N "(cached) $ECHO_C" >&6
15898
else
15899
  lt_prog_compiler_pic_works_GCJ=no
15900
  ac_outfile=conftest.$ac_objext
15901
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15902
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15903
   # Insert the option either (1) after the last *FLAGS variable, or
15904
   # (2) before a word containing "conftest.", or (3) at the end.
15905
   # Note that $ac_compile itself does not contain backslashes and begins
15906
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15907
   # The option is referenced via a variable to avoid confusing sed.
15908
   lt_compile=`echo "$ac_compile" | $SED \
15909
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15910
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15911
   -e 's:$: $lt_compiler_flag:'`
15912
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15913
   (eval "$lt_compile" 2>conftest.err)
15914
   ac_status=$?
15915
   cat conftest.err >&5
15916
   echo "$as_me:__oline__: \$? = $ac_status" >&5
15917
   if (exit $ac_status) && test -s "$ac_outfile"; then
15918
     # The compiler can only warn and ignore the option if not recognized
15919
     # So say no if there are warnings other than the usual output.
15920
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15921
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15922
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15923
       lt_prog_compiler_pic_works_GCJ=yes
15924
     fi
15925
   fi
15926
   $rm conftest*
15927
 
15928
fi
15929
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15930
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15931
 
15932
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15933
    case $lt_prog_compiler_pic_GCJ in
15934
     "" | " "*) ;;
15935
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15936
     esac
15937
else
15938
    lt_prog_compiler_pic_GCJ=
15939
     lt_prog_compiler_can_build_shared_GCJ=no
15940
fi
15941
 
15942
fi
15943
case $host_os in
15944
  # For platforms which do not support PIC, -DPIC is meaningless:
15945
  *djgpp*)
15946
    lt_prog_compiler_pic_GCJ=
15947
    ;;
15948
  *)
15949
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15950
    ;;
15951
esac
15952
 
15953
#
15954
# Check to make sure the static flag actually works.
15955
#
15956
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15957
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15958
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15959
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15960
  echo $ECHO_N "(cached) $ECHO_C" >&6
15961
else
15962
  lt_prog_compiler_static_works_GCJ=no
15963
   save_LDFLAGS="$LDFLAGS"
15964
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15965
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15966
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15967
     # The linker can only warn and ignore the option if not recognized
15968
     # So say no if there are warnings
15969
     if test -s conftest.err; then
15970
       # Append any errors to the config.log.
15971
       cat conftest.err 1>&5
15972
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15973
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15974
       if diff conftest.exp conftest.er2 >/dev/null; then
15975
         lt_prog_compiler_static_works_GCJ=yes
15976
       fi
15977
     else
15978
       lt_prog_compiler_static_works_GCJ=yes
15979
     fi
15980
   fi
15981
   $rm conftest*
15982
   LDFLAGS="$save_LDFLAGS"
15983
 
15984
fi
15985
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15986
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
15987
 
15988
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15989
    :
15990
else
15991
    lt_prog_compiler_static_GCJ=
15992
fi
15993
 
15994
 
15995
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15996
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15997
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15998
  echo $ECHO_N "(cached) $ECHO_C" >&6
15999
else
16000
  lt_cv_prog_compiler_c_o_GCJ=no
16001
   $rm -r conftest 2>/dev/null
16002
   mkdir conftest
16003
   cd conftest
16004
   mkdir out
16005
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16006
 
16007
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16008
   # Insert the option either (1) after the last *FLAGS variable, or
16009
   # (2) before a word containing "conftest.", or (3) at the end.
16010
   # Note that $ac_compile itself does not contain backslashes and begins
16011
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16012
   lt_compile=`echo "$ac_compile" | $SED \
16013
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16014
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16015
   -e 's:$: $lt_compiler_flag:'`
16016
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16017
   (eval "$lt_compile" 2>out/conftest.err)
16018
   ac_status=$?
16019
   cat out/conftest.err >&5
16020
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16021
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16022
   then
16023
     # The compiler can only warn and ignore the option if not recognized
16024
     # So say no if there are warnings
16025
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16026
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16027
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16028
       lt_cv_prog_compiler_c_o_GCJ=yes
16029
     fi
16030
   fi
16031
   chmod u+w . 2>&5
16032
   $rm conftest*
16033
   # SGI C++ compiler will create directory out/ii_files/ for
16034
   # template instantiation
16035
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16036
   $rm out/* && rmdir out
16037
   cd ..
16038
   rmdir conftest
16039
   $rm conftest*
16040
 
16041
fi
16042
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16043
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16044
 
16045
 
16046
hard_links="nottested"
16047
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16048
  # do not overwrite the value of need_locks provided by the user
16049
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16050
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16051
  hard_links=yes
16052
  $rm conftest*
16053
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16054
  touch conftest.a
16055
  ln conftest.a conftest.b 2>&5 || hard_links=no
16056
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16057
  { echo "$as_me:$LINENO: result: $hard_links" >&5
16058
echo "${ECHO_T}$hard_links" >&6; }
16059
  if test "$hard_links" = no; then
16060
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16061
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16062
    need_locks=warn
16063
  fi
16064
else
16065
  need_locks=no
16066
fi
16067
 
16068
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16069
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16070
 
16071
  runpath_var=
16072
  allow_undefined_flag_GCJ=
16073
  enable_shared_with_static_runtimes_GCJ=no
16074
  archive_cmds_GCJ=
16075
  archive_expsym_cmds_GCJ=
16076
  old_archive_From_new_cmds_GCJ=
16077
  old_archive_from_expsyms_cmds_GCJ=
16078
  export_dynamic_flag_spec_GCJ=
16079
  whole_archive_flag_spec_GCJ=
16080
  thread_safe_flag_spec_GCJ=
16081
  hardcode_libdir_flag_spec_GCJ=
16082
  hardcode_libdir_flag_spec_ld_GCJ=
16083
  hardcode_libdir_separator_GCJ=
16084
  hardcode_direct_GCJ=no
16085
  hardcode_minus_L_GCJ=no
16086
  hardcode_shlibpath_var_GCJ=unsupported
16087
  link_all_deplibs_GCJ=unknown
16088
  hardcode_automatic_GCJ=no
16089
  module_cmds_GCJ=
16090
  module_expsym_cmds_GCJ=
16091
  always_export_symbols_GCJ=no
16092
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16093
  # include_expsyms should be a list of space-separated symbols to be *always*
16094
  # included in the symbol list
16095
  include_expsyms_GCJ=
16096
  # exclude_expsyms can be an extended regexp of symbols to exclude
16097
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16098
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16099
  # as well as any symbol that contains `d'.
16100
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16101
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16102
  # platforms (ab)use it in PIC code, but their linkers get confused if
16103
  # the symbol is explicitly referenced.  Since portable code cannot
16104
  # rely on this symbol name, it's probably fine to never include it in
16105
  # preloaded symbol tables.
16106
  extract_expsyms_cmds=
16107
  # Just being paranoid about ensuring that cc_basename is set.
16108
  for cc_temp in $compiler""; do
16109
  case $cc_temp in
16110
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16111
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16112
    \-*) ;;
16113
    *) break;;
16114
  esac
16115
done
16116
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16117
 
16118
  case $host_os in
16119
  cygwin* | mingw* | pw32*)
16120
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16121
    # When not using gcc, we currently assume that we are using
16122
    # Microsoft Visual C++.
16123
    if test "$GCC" != yes; then
16124
      with_gnu_ld=no
16125
    fi
16126
    ;;
16127
  interix*)
16128
    # we just hope/assume this is gcc and not c89 (= MSVC++)
16129
    with_gnu_ld=yes
16130
    ;;
16131
  openbsd*)
16132
    with_gnu_ld=no
16133
    ;;
16134
  esac
16135
 
16136
  ld_shlibs_GCJ=yes
16137
  if test "$with_gnu_ld" = yes; then
16138
    # If archive_cmds runs LD, not CC, wlarc should be empty
16139
    wlarc='${wl}'
16140
 
16141
    # Set some defaults for GNU ld with shared library support. These
16142
    # are reset later if shared libraries are not supported. Putting them
16143
    # here allows them to be overridden if necessary.
16144
    runpath_var=LD_RUN_PATH
16145
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16146
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16147
    # ancient GNU ld didn't support --whole-archive et. al.
16148
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16149
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16150
      else
16151
        whole_archive_flag_spec_GCJ=
16152
    fi
16153
    supports_anon_versioning=no
16154
    case `$LD -v 2>/dev/null` in
16155
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16156
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16157
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16158
      *\ 2.11.*) ;; # other 2.11 versions
16159
      *) supports_anon_versioning=yes ;;
16160
    esac
16161
 
16162
    # See if GNU ld supports shared libraries.
16163
    case $host_os in
16164
    aix3* | aix4* | aix5*)
16165
      # On AIX/PPC, the GNU linker is very broken
16166
      if test "$host_cpu" != ia64; then
16167
        ld_shlibs_GCJ=no
16168
        cat <&2
16169
 
16170
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16171
*** to be unable to reliably create shared libraries on AIX.
16172
*** Therefore, libtool is disabling shared libraries support.  If you
16173
*** really care for shared libraries, you may want to modify your PATH
16174
*** so that a non-GNU linker is found, and then restart.
16175
 
16176
EOF
16177
      fi
16178
      ;;
16179
 
16180
    amigaos*)
16181
      archive_cmds_GCJ='$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)'
16182
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16183
      hardcode_minus_L_GCJ=yes
16184
 
16185
      # Samuel A. Falvo II  reports
16186
      # that the semantics of dynamic libraries on AmigaOS, at least up
16187
      # to version 4, is to share data among multiple programs linked
16188
      # with the same dynamic library.  Since this doesn't match the
16189
      # behavior of shared libraries on other platforms, we can't use
16190
      # them.
16191
      ld_shlibs_GCJ=no
16192
      ;;
16193
 
16194
    beos*)
16195
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16196
        allow_undefined_flag_GCJ=unsupported
16197
        # Joseph Beckenbach  says some releases of gcc
16198
        # support --undefined.  This deserves some investigation.  FIXME
16199
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16200
      else
16201
        ld_shlibs_GCJ=no
16202
      fi
16203
      ;;
16204
 
16205
    cygwin* | mingw* | pw32*)
16206
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16207
      # as there is no search path for DLLs.
16208
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16209
      allow_undefined_flag_GCJ=unsupported
16210
      always_export_symbols_GCJ=no
16211
      enable_shared_with_static_runtimes_GCJ=yes
16212
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16213
 
16214
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16215
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16216
        # If the export-symbols file already is a .def file (1st line
16217
        # is EXPORTS), use it as is; otherwise, prepend...
16218
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16219
          cp $export_symbols $output_objdir/$soname.def;
16220
        else
16221
          echo EXPORTS > $output_objdir/$soname.def;
16222
          cat $export_symbols >> $output_objdir/$soname.def;
16223
        fi~
16224
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16225
      else
16226
        ld_shlibs_GCJ=no
16227
      fi
16228
      ;;
16229
 
16230
    interix[3-9]*)
16231
      hardcode_direct_GCJ=no
16232
      hardcode_shlibpath_var_GCJ=no
16233
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16234
      export_dynamic_flag_spec_GCJ='${wl}-E'
16235
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16236
      # Instead, shared libraries are loaded at an image base (0x10000000 by
16237
      # default) and relocated if they conflict, which is a slow very memory
16238
      # consuming and fragmenting process.  To avoid this, we pick a random,
16239
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16240
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16241
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16242
      archive_expsym_cmds_GCJ='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'
16243
      ;;
16244
 
16245
    gnu* | linux* | k*bsd*-gnu)
16246
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16247
        tmp_addflag=
16248
        case $cc_basename,$host_cpu in
16249
        pgcc*)                          # Portland Group C compiler
16250
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16251
          tmp_addflag=' $pic_flag'
16252
          ;;
16253
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16254
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16255
          tmp_addflag=' $pic_flag -Mnomain' ;;
16256
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16257
          tmp_addflag=' -i_dynamic' ;;
16258
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16259
          tmp_addflag=' -i_dynamic -nofor_main' ;;
16260
        ifc* | ifort*)                  # Intel Fortran compiler
16261
          tmp_addflag=' -nofor_main' ;;
16262
        esac
16263
        case `$CC -V 2>&1 | sed 5q` in
16264
        *Sun\ C*)                       # Sun C 5.9
16265
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16266
          tmp_sharedflag='-G' ;;
16267
        *Sun\ F*)                       # Sun Fortran 8.3
16268
          tmp_sharedflag='-G' ;;
16269
        *)
16270
          tmp_sharedflag='-shared' ;;
16271
        esac
16272
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16273
 
16274
        if test $supports_anon_versioning = yes; then
16275
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16276
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16277
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16278
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16279
        fi
16280
      else
16281
        ld_shlibs_GCJ=no
16282
      fi
16283
      ;;
16284
 
16285
    netbsd*)
16286
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16287
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16288
        wlarc=
16289
      else
16290
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16291
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16292
      fi
16293
      ;;
16294
 
16295
    solaris*)
16296
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16297
        ld_shlibs_GCJ=no
16298
        cat <&2
16299
 
16300
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16301
*** create shared libraries on Solaris systems.  Therefore, libtool
16302
*** is disabling shared libraries support.  We urge you to upgrade GNU
16303
*** binutils to release 2.9.1 or newer.  Another option is to modify
16304
*** your PATH or compiler configuration so that the native linker is
16305
*** used, and then restart.
16306
 
16307
EOF
16308
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16309
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16310
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16311
      else
16312
        ld_shlibs_GCJ=no
16313
      fi
16314
      ;;
16315
 
16316
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16317
      case `$LD -v 2>&1` in
16318
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16319
        ld_shlibs_GCJ=no
16320
        cat <<_LT_EOF 1>&2
16321
 
16322
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16323
*** reliably create shared libraries on SCO systems.  Therefore, libtool
16324
*** is disabling shared libraries support.  We urge you to upgrade GNU
16325
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16326
*** your PATH or compiler configuration so that the native linker is
16327
*** used, and then restart.
16328
 
16329
_LT_EOF
16330
        ;;
16331
        *)
16332
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16333
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16334
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16335
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16336
          else
16337
            ld_shlibs_GCJ=no
16338
          fi
16339
        ;;
16340
      esac
16341
      ;;
16342
 
16343
    sunos4*)
16344
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16345
      wlarc=
16346
      hardcode_direct_GCJ=yes
16347
      hardcode_shlibpath_var_GCJ=no
16348
      ;;
16349
 
16350
    *)
16351
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16352
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16353
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16354
      else
16355
        ld_shlibs_GCJ=no
16356
      fi
16357
      ;;
16358
    esac
16359
 
16360
    if test "$ld_shlibs_GCJ" = no; then
16361
      runpath_var=
16362
      hardcode_libdir_flag_spec_GCJ=
16363
      export_dynamic_flag_spec_GCJ=
16364
      whole_archive_flag_spec_GCJ=
16365
    fi
16366
  else
16367
    # PORTME fill in a description of your system's linker (not GNU ld)
16368
    case $host_os in
16369
    aix3*)
16370
      allow_undefined_flag_GCJ=unsupported
16371
      always_export_symbols_GCJ=yes
16372
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16373
      # Note: this linker hardcodes the directories in LIBPATH if there
16374
      # are no directories specified by -L.
16375
      hardcode_minus_L_GCJ=yes
16376
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16377
        # Neither direct hardcoding nor static linking is supported with a
16378
        # broken collect2.
16379
        hardcode_direct_GCJ=unsupported
16380
      fi
16381
      ;;
16382
 
16383
    aix4* | aix5*)
16384
      if test "$host_cpu" = ia64; then
16385
        # On IA64, the linker does run time linking by default, so we don't
16386
        # have to do anything special.
16387
        aix_use_runtimelinking=no
16388
        exp_sym_flag='-Bexport'
16389
        no_entry_flag=""
16390
      else
16391
        # If we're using GNU nm, then we don't want the "-C" option.
16392
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16393
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16394
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16395
        else
16396
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16397
        fi
16398
        aix_use_runtimelinking=no
16399
 
16400
        # Test if we are trying to use run time linking or normal
16401
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16402
        # need to do runtime linking.
16403
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16404
          for ld_flag in $LDFLAGS; do
16405
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16406
            aix_use_runtimelinking=yes
16407
            break
16408
          fi
16409
          done
16410
          ;;
16411
        esac
16412
 
16413
        exp_sym_flag='-bexport'
16414
        no_entry_flag='-bnoentry'
16415
      fi
16416
 
16417
      # When large executables or shared objects are built, AIX ld can
16418
      # have problems creating the table of contents.  If linking a library
16419
      # or program results in "error TOC overflow" add -mminimal-toc to
16420
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16421
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16422
 
16423
      archive_cmds_GCJ=''
16424
      hardcode_direct_GCJ=yes
16425
      hardcode_libdir_separator_GCJ=':'
16426
      link_all_deplibs_GCJ=yes
16427
 
16428
      if test "$GCC" = yes; then
16429
        case $host_os in aix4.[012]|aix4.[012].*)
16430
        # We only want to do this on AIX 4.2 and lower, the check
16431
        # below for broken collect2 doesn't work under 4.3+
16432
          collect2name=`${CC} -print-prog-name=collect2`
16433
          if test -f "$collect2name" && \
16434
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16435
          then
16436
          # We have reworked collect2
16437
          :
16438
          else
16439
          # We have old collect2
16440
          hardcode_direct_GCJ=unsupported
16441
          # It fails to find uninstalled libraries when the uninstalled
16442
          # path is not listed in the libpath.  Setting hardcode_minus_L
16443
          # to unsupported forces relinking
16444
          hardcode_minus_L_GCJ=yes
16445
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16446
          hardcode_libdir_separator_GCJ=
16447
          fi
16448
          ;;
16449
        esac
16450
        shared_flag='-shared'
16451
        if test "$aix_use_runtimelinking" = yes; then
16452
          shared_flag="$shared_flag "'${wl}-G'
16453
        fi
16454
      else
16455
        # not using gcc
16456
        if test "$host_cpu" = ia64; then
16457
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16458
        # chokes on -Wl,-G. The following line is correct:
16459
          shared_flag='-G'
16460
        else
16461
          if test "$aix_use_runtimelinking" = yes; then
16462
            shared_flag='${wl}-G'
16463
          else
16464
            shared_flag='${wl}-bM:SRE'
16465
          fi
16466
        fi
16467
      fi
16468
 
16469
      # It seems that -bexpall does not export symbols beginning with
16470
      # underscore (_), so it is better to generate a list of symbols to export.
16471
      always_export_symbols_GCJ=yes
16472
      if test "$aix_use_runtimelinking" = yes; then
16473
        # Warning - without using the other runtime loading flags (-brtl),
16474
        # -berok will link without error, but may produce a broken library.
16475
        allow_undefined_flag_GCJ='-berok'
16476
       # Determine the default libpath from the value encoded in an empty executable.
16477
       cat >conftest.$ac_ext <<_ACEOF
16478
/* confdefs.h.  */
16479
_ACEOF
16480
cat confdefs.h >>conftest.$ac_ext
16481
cat >>conftest.$ac_ext <<_ACEOF
16482
/* end confdefs.h.  */
16483
 
16484
int
16485
main ()
16486
{
16487
 
16488
  ;
16489
  return 0;
16490
}
16491
_ACEOF
16492
rm -f conftest.$ac_objext conftest$ac_exeext
16493
if { (ac_try="$ac_link"
16494
case "(($ac_try" in
16495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496
  *) ac_try_echo=$ac_try;;
16497
esac
16498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499
  (eval "$ac_link") 2>conftest.er1
16500
  ac_status=$?
16501
  grep -v '^ *+' conftest.er1 >conftest.err
16502
  rm -f conftest.er1
16503
  cat conftest.err >&5
16504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505
  (exit $ac_status); } && {
16506
         test -z "$ac_c_werror_flag" ||
16507
         test ! -s conftest.err
16508
       } && test -s conftest$ac_exeext &&
16509
       $as_test_x conftest$ac_exeext; then
16510
 
16511
lt_aix_libpath_sed='
16512
    /Import File Strings/,/^$/ {
16513
        /^0/ {
16514
            s/^0  *\(.*\)$/\1/
16515
            p
16516
        }
16517
    }'
16518
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16519
# Check for a 64-bit object if we didn't find anything.
16520
if test -z "$aix_libpath"; then
16521
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16522
fi
16523
else
16524
  echo "$as_me: failed program was:" >&5
16525
sed 's/^/| /' conftest.$ac_ext >&5
16526
 
16527
 
16528
fi
16529
 
16530
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16531
      conftest$ac_exeext conftest.$ac_ext
16532
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16533
 
16534
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16535
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16536
       else
16537
        if test "$host_cpu" = ia64; then
16538
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16539
          allow_undefined_flag_GCJ="-z nodefs"
16540
          archive_expsym_cmds_GCJ="\$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"
16541
        else
16542
         # Determine the default libpath from the value encoded in an empty executable.
16543
         cat >conftest.$ac_ext <<_ACEOF
16544
/* confdefs.h.  */
16545
_ACEOF
16546
cat confdefs.h >>conftest.$ac_ext
16547
cat >>conftest.$ac_ext <<_ACEOF
16548
/* end confdefs.h.  */
16549
 
16550
int
16551
main ()
16552
{
16553
 
16554
  ;
16555
  return 0;
16556
}
16557
_ACEOF
16558
rm -f conftest.$ac_objext conftest$ac_exeext
16559
if { (ac_try="$ac_link"
16560
case "(($ac_try" in
16561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562
  *) ac_try_echo=$ac_try;;
16563
esac
16564
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565
  (eval "$ac_link") 2>conftest.er1
16566
  ac_status=$?
16567
  grep -v '^ *+' conftest.er1 >conftest.err
16568
  rm -f conftest.er1
16569
  cat conftest.err >&5
16570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571
  (exit $ac_status); } && {
16572
         test -z "$ac_c_werror_flag" ||
16573
         test ! -s conftest.err
16574
       } && test -s conftest$ac_exeext &&
16575
       $as_test_x conftest$ac_exeext; then
16576
 
16577
lt_aix_libpath_sed='
16578
    /Import File Strings/,/^$/ {
16579
        /^0/ {
16580
            s/^0  *\(.*\)$/\1/
16581
            p
16582
        }
16583
    }'
16584
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16585
# Check for a 64-bit object if we didn't find anything.
16586
if test -z "$aix_libpath"; then
16587
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16588
fi
16589
else
16590
  echo "$as_me: failed program was:" >&5
16591
sed 's/^/| /' conftest.$ac_ext >&5
16592
 
16593
 
16594
fi
16595
 
16596
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16597
      conftest$ac_exeext conftest.$ac_ext
16598
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16599
 
16600
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16601
          # Warning - without using the other run time loading flags,
16602
          # -berok will link without error, but may produce a broken library.
16603
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16604
          allow_undefined_flag_GCJ=' ${wl}-berok'
16605
          # Exported symbols can be pulled into shared objects from archives
16606
          whole_archive_flag_spec_GCJ='$convenience'
16607
          archive_cmds_need_lc_GCJ=yes
16608
          # This is similar to how AIX traditionally builds its shared libraries.
16609
          archive_expsym_cmds_GCJ="\$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'
16610
        fi
16611
      fi
16612
      ;;
16613
 
16614
    amigaos*)
16615
      archive_cmds_GCJ='$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)'
16616
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16617
      hardcode_minus_L_GCJ=yes
16618
      # see comment about different semantics on the GNU ld section
16619
      ld_shlibs_GCJ=no
16620
      ;;
16621
 
16622
    bsdi[45]*)
16623
      export_dynamic_flag_spec_GCJ=-rdynamic
16624
      ;;
16625
 
16626
    cygwin* | mingw* | pw32*)
16627
      # When not using gcc, we currently assume that we are using
16628
      # Microsoft Visual C++.
16629
      # hardcode_libdir_flag_spec is actually meaningless, as there is
16630
      # no search path for DLLs.
16631
      hardcode_libdir_flag_spec_GCJ=' '
16632
      allow_undefined_flag_GCJ=unsupported
16633
      # Tell ltmain to make .lib files, not .a files.
16634
      libext=lib
16635
      # Tell ltmain to make .dll files, not .so files.
16636
      shrext_cmds=".dll"
16637
      # FIXME: Setting linknames here is a bad hack.
16638
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16639
      # The linker will automatically build a .lib file if we build a DLL.
16640
      old_archive_From_new_cmds_GCJ='true'
16641
      # FIXME: Should let the user specify the lib program.
16642
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16643
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16644
      enable_shared_with_static_runtimes_GCJ=yes
16645
      ;;
16646
 
16647
    darwin* | rhapsody*)
16648
      case $host_os in
16649
        rhapsody* | darwin1.[012])
16650
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16651
         ;;
16652
       *) # Darwin 1.3 on
16653
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16654
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16655
         else
16656
           case ${MACOSX_DEPLOYMENT_TARGET} in
16657
             10.[012])
16658
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16659
               ;;
16660
             10.*)
16661
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16662
               ;;
16663
           esac
16664
         fi
16665
         ;;
16666
      esac
16667
      archive_cmds_need_lc_GCJ=no
16668
      hardcode_direct_GCJ=no
16669
      hardcode_automatic_GCJ=yes
16670
      hardcode_shlibpath_var_GCJ=unsupported
16671
      whole_archive_flag_spec_GCJ=''
16672
      link_all_deplibs_GCJ=yes
16673
    if test "$GCC" = yes ; then
16674
        output_verbose_link_cmd='echo'
16675
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16676
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16677
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16678
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16679
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16680
    else
16681
      case $cc_basename in
16682
        xlc*)
16683
         output_verbose_link_cmd='echo'
16684
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16685
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16686
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16687
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16688
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16689
          ;;
16690
       *)
16691
         ld_shlibs_GCJ=no
16692
          ;;
16693
      esac
16694
    fi
16695
      ;;
16696
 
16697
    dgux*)
16698
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16700
      hardcode_shlibpath_var_GCJ=no
16701
      ;;
16702
 
16703
    freebsd1*)
16704
      ld_shlibs_GCJ=no
16705
      ;;
16706
 
16707
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16708
    # support.  Future versions do this automatically, but an explicit c++rt0.o
16709
    # does not break anything, and helps significantly (at the cost of a little
16710
    # extra space).
16711
    freebsd2.2*)
16712
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16713
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16714
      hardcode_direct_GCJ=yes
16715
      hardcode_shlibpath_var_GCJ=no
16716
      ;;
16717
 
16718
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16719
    freebsd2*)
16720
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16721
      hardcode_direct_GCJ=yes
16722
      hardcode_minus_L_GCJ=yes
16723
      hardcode_shlibpath_var_GCJ=no
16724
      ;;
16725
 
16726
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16727
    freebsd* | dragonfly*)
16728
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16729
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16730
      hardcode_direct_GCJ=yes
16731
      hardcode_shlibpath_var_GCJ=no
16732
      ;;
16733
 
16734
    hpux9*)
16735
      if test "$GCC" = yes; then
16736
        archive_cmds_GCJ='$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'
16737
      else
16738
        archive_cmds_GCJ='$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'
16739
      fi
16740
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16741
      hardcode_libdir_separator_GCJ=:
16742
      hardcode_direct_GCJ=yes
16743
 
16744
      # hardcode_minus_L: Not really in the search PATH,
16745
      # but as the default location of the library.
16746
      hardcode_minus_L_GCJ=yes
16747
      export_dynamic_flag_spec_GCJ='${wl}-E'
16748
      ;;
16749
 
16750
    hpux10*)
16751
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16752
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16753
      else
16754
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16755
      fi
16756
      if test "$with_gnu_ld" = no; then
16757
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16758
        hardcode_libdir_separator_GCJ=:
16759
 
16760
        hardcode_direct_GCJ=yes
16761
        export_dynamic_flag_spec_GCJ='${wl}-E'
16762
 
16763
        # hardcode_minus_L: Not really in the search PATH,
16764
        # but as the default location of the library.
16765
        hardcode_minus_L_GCJ=yes
16766
      fi
16767
      ;;
16768
 
16769
    hpux11*)
16770
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16771
        case $host_cpu in
16772
        hppa*64*)
16773
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16774
          ;;
16775
        ia64*)
16776
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16777
          ;;
16778
        *)
16779
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16780
          ;;
16781
        esac
16782
      else
16783
        case $host_cpu in
16784
        hppa*64*)
16785
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16786
          ;;
16787
        ia64*)
16788
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16789
          ;;
16790
        *)
16791
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16792
          ;;
16793
        esac
16794
      fi
16795
      if test "$with_gnu_ld" = no; then
16796
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16797
        hardcode_libdir_separator_GCJ=:
16798
 
16799
        case $host_cpu in
16800
        hppa*64*|ia64*)
16801
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16802
          hardcode_direct_GCJ=no
16803
          hardcode_shlibpath_var_GCJ=no
16804
          ;;
16805
        *)
16806
          hardcode_direct_GCJ=yes
16807
          export_dynamic_flag_spec_GCJ='${wl}-E'
16808
 
16809
          # hardcode_minus_L: Not really in the search PATH,
16810
          # but as the default location of the library.
16811
          hardcode_minus_L_GCJ=yes
16812
          ;;
16813
        esac
16814
      fi
16815
      ;;
16816
 
16817
    irix5* | irix6* | nonstopux*)
16818
      if test "$GCC" = yes; then
16819
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16820
      else
16821
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16822
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16823
      fi
16824
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16825
      hardcode_libdir_separator_GCJ=:
16826
      link_all_deplibs_GCJ=yes
16827
      ;;
16828
 
16829
    netbsd*)
16830
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16831
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16832
      else
16833
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16834
      fi
16835
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16836
      hardcode_direct_GCJ=yes
16837
      hardcode_shlibpath_var_GCJ=no
16838
      ;;
16839
 
16840
    newsos6)
16841
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842
      hardcode_direct_GCJ=yes
16843
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16844
      hardcode_libdir_separator_GCJ=:
16845
      hardcode_shlibpath_var_GCJ=no
16846
      ;;
16847
 
16848
    openbsd*)
16849
      if test -f /usr/libexec/ld.so; then
16850
        hardcode_direct_GCJ=yes
16851
        hardcode_shlibpath_var_GCJ=no
16852
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16853
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16854
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16855
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16856
          export_dynamic_flag_spec_GCJ='${wl}-E'
16857
        else
16858
          case $host_os in
16859
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16860
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16861
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
16862
             ;;
16863
           *)
16864
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16865
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16866
             ;;
16867
          esac
16868
        fi
16869
      else
16870
        ld_shlibs_GCJ=no
16871
      fi
16872
      ;;
16873
 
16874
    os2*)
16875
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16876
      hardcode_minus_L_GCJ=yes
16877
      allow_undefined_flag_GCJ=unsupported
16878
      archive_cmds_GCJ='$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'
16879
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16880
      ;;
16881
 
16882
    osf3*)
16883
      if test "$GCC" = yes; then
16884
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16885
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16886
      else
16887
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16888
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16889
      fi
16890
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16891
      hardcode_libdir_separator_GCJ=:
16892
      ;;
16893
 
16894
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16895
      if test "$GCC" = yes; then
16896
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16897
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16898
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16899
      else
16900
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16901
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16902
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16903
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16904
 
16905
        # Both c and cxx compiler support -rpath directly
16906
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16907
      fi
16908
      hardcode_libdir_separator_GCJ=:
16909
      ;;
16910
 
16911
    solaris*)
16912
      no_undefined_flag_GCJ=' -z text'
16913
      if test "$GCC" = yes; then
16914
        wlarc='${wl}'
16915
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16916
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16917
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16918
      else
16919
        wlarc=''
16920
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16921
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16922
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16923
      fi
16924
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16925
      hardcode_shlibpath_var_GCJ=no
16926
      case $host_os in
16927
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16928
      *)
16929
        # The compiler driver will combine and reorder linker options,
16930
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
16931
        # but is careful enough not to reorder.
16932
        # Supported since Solaris 2.6 (maybe 2.5.1?)
16933
        if test "$GCC" = yes; then
16934
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16935
        else
16936
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
16937
        fi
16938
        ;;
16939
      esac
16940
      link_all_deplibs_GCJ=yes
16941
      ;;
16942
 
16943
    sunos4*)
16944
      if test "x$host_vendor" = xsequent; then
16945
        # Use $CC to link under sequent, because it throws in some extra .o
16946
        # files that make .init and .fini sections work.
16947
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16948
      else
16949
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16950
      fi
16951
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16952
      hardcode_direct_GCJ=yes
16953
      hardcode_minus_L_GCJ=yes
16954
      hardcode_shlibpath_var_GCJ=no
16955
      ;;
16956
 
16957
    sysv4)
16958
      case $host_vendor in
16959
        sni)
16960
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16961
          hardcode_direct_GCJ=yes # is this really true???
16962
        ;;
16963
        siemens)
16964
          ## LD is ld it makes a PLAMLIB
16965
          ## CC just makes a GrossModule.
16966
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16967
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16968
          hardcode_direct_GCJ=no
16969
        ;;
16970
        motorola)
16971
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16972
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16973
        ;;
16974
      esac
16975
      runpath_var='LD_RUN_PATH'
16976
      hardcode_shlibpath_var_GCJ=no
16977
      ;;
16978
 
16979
    sysv4.3*)
16980
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16981
      hardcode_shlibpath_var_GCJ=no
16982
      export_dynamic_flag_spec_GCJ='-Bexport'
16983
      ;;
16984
 
16985
    sysv4*MP*)
16986
      if test -d /usr/nec; then
16987
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16988
        hardcode_shlibpath_var_GCJ=no
16989
        runpath_var=LD_RUN_PATH
16990
        hardcode_runpath_var=yes
16991
        ld_shlibs_GCJ=yes
16992
      fi
16993
      ;;
16994
 
16995
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16996
      no_undefined_flag_GCJ='${wl}-z,text'
16997
      archive_cmds_need_lc_GCJ=no
16998
      hardcode_shlibpath_var_GCJ=no
16999
      runpath_var='LD_RUN_PATH'
17000
 
17001
      if test "$GCC" = yes; then
17002
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17003
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17004
      else
17005
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17006
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17007
      fi
17008
      ;;
17009
 
17010
    sysv5* | sco3.2v5* | sco5v6*)
17011
      # Note: We can NOT use -z defs as we might desire, because we do not
17012
      # link with -lc, and that would cause any symbols used from libc to
17013
      # always be unresolved, which means just about no library would
17014
      # ever link correctly.  If we're not using GNU ld we use -z text
17015
      # though, which does catch some bad symbols but isn't as heavy-handed
17016
      # as -z defs.
17017
      no_undefined_flag_GCJ='${wl}-z,text'
17018
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17019
      archive_cmds_need_lc_GCJ=no
17020
      hardcode_shlibpath_var_GCJ=no
17021
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17022
      hardcode_libdir_separator_GCJ=':'
17023
      link_all_deplibs_GCJ=yes
17024
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17025
      runpath_var='LD_RUN_PATH'
17026
 
17027
      if test "$GCC" = yes; then
17028
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17029
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17030
      else
17031
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17032
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17033
      fi
17034
      ;;
17035
 
17036
    uts4*)
17037
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17038
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17039
      hardcode_shlibpath_var_GCJ=no
17040
      ;;
17041
 
17042
    *)
17043
      ld_shlibs_GCJ=no
17044
      ;;
17045
    esac
17046
  fi
17047
 
17048
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17049
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17050
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17051
 
17052
#
17053
# Do we need to explicitly link libc?
17054
#
17055
case "x$archive_cmds_need_lc_GCJ" in
17056
x|xyes)
17057
  # Assume -lc should be added
17058
  archive_cmds_need_lc_GCJ=yes
17059
 
17060
  if test "$enable_shared" = yes && test "$GCC" = yes; then
17061
    case $archive_cmds_GCJ in
17062
    *'~'*)
17063
      # FIXME: we may have to deal with multi-command sequences.
17064
      ;;
17065
    '$CC '*)
17066
      # Test whether the compiler implicitly links with -lc since on some
17067
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17068
      # to ld, don't add -lc before -lgcc.
17069
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17070
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17071
      $rm conftest*
17072
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17073
 
17074
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17075
  (eval $ac_compile) 2>&5
17076
  ac_status=$?
17077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078
  (exit $ac_status); } 2>conftest.err; then
17079
        soname=conftest
17080
        lib=conftest
17081
        libobjs=conftest.$ac_objext
17082
        deplibs=
17083
        wl=$lt_prog_compiler_wl_GCJ
17084
        pic_flag=$lt_prog_compiler_pic_GCJ
17085
        compiler_flags=-v
17086
        linker_flags=-v
17087
        verstring=
17088
        output_objdir=.
17089
        libname=conftest
17090
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17091
        allow_undefined_flag_GCJ=
17092
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17093
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17094
  ac_status=$?
17095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096
  (exit $ac_status); }
17097
        then
17098
          archive_cmds_need_lc_GCJ=no
17099
        else
17100
          archive_cmds_need_lc_GCJ=yes
17101
        fi
17102
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17103
      else
17104
        cat conftest.err 1>&5
17105
      fi
17106
      $rm conftest*
17107
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17108
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17109
      ;;
17110
    esac
17111
  fi
17112
  ;;
17113
esac
17114
 
17115
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17116
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17117
library_names_spec=
17118
libname_spec='lib$name'
17119
soname_spec=
17120
shrext_cmds=".so"
17121
postinstall_cmds=
17122
postuninstall_cmds=
17123
finish_cmds=
17124
finish_eval=
17125
shlibpath_var=
17126
shlibpath_overrides_runpath=unknown
17127
version_type=none
17128
dynamic_linker="$host_os ld.so"
17129
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17130
 
17131
need_lib_prefix=unknown
17132
hardcode_into_libs=no
17133
 
17134
# when you set need_version to no, make sure it does not cause -set_version
17135
# flags to be left without arguments
17136
need_version=unknown
17137
 
17138
case $host_os in
17139
aix3*)
17140
  version_type=linux
17141
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17142
  shlibpath_var=LIBPATH
17143
 
17144
  # AIX 3 has no versioning support, so we append a major version to the name.
17145
  soname_spec='${libname}${release}${shared_ext}$major'
17146
  ;;
17147
 
17148
aix4* | aix5*)
17149
  version_type=linux
17150
  need_lib_prefix=no
17151
  need_version=no
17152
  hardcode_into_libs=yes
17153
  if test "$host_cpu" = ia64; then
17154
    # AIX 5 supports IA64
17155
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17156
    shlibpath_var=LD_LIBRARY_PATH
17157
  else
17158
    # With GCC up to 2.95.x, collect2 would create an import file
17159
    # for dependence libraries.  The import file would start with
17160
    # the line `#! .'.  This would cause the generated library to
17161
    # depend on `.', always an invalid library.  This was fixed in
17162
    # development snapshots of GCC prior to 3.0.
17163
    case $host_os in
17164
      aix4 | aix4.[01] | aix4.[01].*)
17165
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17166
           echo ' yes '
17167
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17168
        :
17169
      else
17170
        can_build_shared=no
17171
      fi
17172
      ;;
17173
    esac
17174
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17175
    # soname into executable. Probably we can add versioning support to
17176
    # collect2, so additional links can be useful in future.
17177
    if test "$aix_use_runtimelinking" = yes; then
17178
      # If using run time linking (on AIX 4.2 or later) use lib.so
17179
      # instead of lib.a to let people know that these are not
17180
      # typical AIX shared libraries.
17181
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17182
    else
17183
      # We preserve .a as extension for shared libraries through AIX4.2
17184
      # and later when we are not doing run time linking.
17185
      library_names_spec='${libname}${release}.a $libname.a'
17186
      soname_spec='${libname}${release}${shared_ext}$major'
17187
    fi
17188
    shlibpath_var=LIBPATH
17189
  fi
17190
  ;;
17191
 
17192
amigaos*)
17193
  library_names_spec='$libname.ixlibrary $libname.a'
17194
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17195
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17196
  ;;
17197
 
17198
beos*)
17199
  library_names_spec='${libname}${shared_ext}'
17200
  dynamic_linker="$host_os ld.so"
17201
  shlibpath_var=LIBRARY_PATH
17202
  ;;
17203
 
17204
bsdi[45]*)
17205
  version_type=linux
17206
  need_version=no
17207
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17208
  soname_spec='${libname}${release}${shared_ext}$major'
17209
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17210
  shlibpath_var=LD_LIBRARY_PATH
17211
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17212
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17213
  # the default ld.so.conf also contains /usr/contrib/lib and
17214
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17215
  # libtool to hard-code these into programs
17216
  ;;
17217
 
17218
cygwin* | mingw* | pw32*)
17219
  version_type=windows
17220
  shrext_cmds=".dll"
17221
  need_version=no
17222
  need_lib_prefix=no
17223
 
17224
  case $GCC,$host_os in
17225
  yes,cygwin* | yes,mingw* | yes,pw32*)
17226
    library_names_spec='$libname.dll.a'
17227
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17228
    postinstall_cmds='base_file=`basename \${file}`~
17229
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17230
      dldir=$destdir/`dirname \$dlpath`~
17231
      test -d \$dldir || mkdir -p \$dldir~
17232
      $install_prog $dir/$dlname \$dldir/$dlname~
17233
      chmod a+x \$dldir/$dlname'
17234
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17235
      dlpath=$dir/\$dldll~
17236
       $rm \$dlpath'
17237
    shlibpath_overrides_runpath=yes
17238
 
17239
    case $host_os in
17240
    cygwin*)
17241
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17242
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17243
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17244
      ;;
17245
    mingw*)
17246
      # MinGW DLLs use traditional 'lib' prefix
17247
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17248
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17249
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17250
        # It is most probably a Windows format PATH printed by
17251
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17252
        # path with ; separators, and with drive letters. We can handle the
17253
        # drive letters (cygwin fileutils understands them), so leave them,
17254
        # especially as we might pass files found there to a mingw objdump,
17255
        # which wouldn't understand a cygwinified path. Ahh.
17256
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17257
      else
17258
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17259
      fi
17260
      ;;
17261
    pw32*)
17262
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17263
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17264
      ;;
17265
    esac
17266
    ;;
17267
 
17268
  *)
17269
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17270
    ;;
17271
  esac
17272
  dynamic_linker='Win32 ld.exe'
17273
  # FIXME: first we should search . and the directory the executable is in
17274
  shlibpath_var=PATH
17275
  ;;
17276
 
17277
darwin* | rhapsody*)
17278
  dynamic_linker="$host_os dyld"
17279
  version_type=darwin
17280
  need_lib_prefix=no
17281
  need_version=no
17282
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17283
  soname_spec='${libname}${release}${major}$shared_ext'
17284
  shlibpath_overrides_runpath=yes
17285
  shlibpath_var=DYLD_LIBRARY_PATH
17286
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17287
 
17288
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17289
  ;;
17290
 
17291
dgux*)
17292
  version_type=linux
17293
  need_lib_prefix=no
17294
  need_version=no
17295
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17296
  soname_spec='${libname}${release}${shared_ext}$major'
17297
  shlibpath_var=LD_LIBRARY_PATH
17298
  ;;
17299
 
17300
freebsd1*)
17301
  dynamic_linker=no
17302
  ;;
17303
 
17304
freebsd* | dragonfly*)
17305
  # DragonFly does not have aout.  When/if they implement a new
17306
  # versioning mechanism, adjust this.
17307
  if test -x /usr/bin/objformat; then
17308
    objformat=`/usr/bin/objformat`
17309
  else
17310
    case $host_os in
17311
    freebsd[123]*) objformat=aout ;;
17312
    *) objformat=elf ;;
17313
    esac
17314
  fi
17315
  version_type=freebsd-$objformat
17316
  case $version_type in
17317
    freebsd-elf*)
17318
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17319
      need_version=no
17320
      need_lib_prefix=no
17321
      ;;
17322
    freebsd-*)
17323
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17324
      need_version=yes
17325
      ;;
17326
  esac
17327
  shlibpath_var=LD_LIBRARY_PATH
17328
  case $host_os in
17329
  freebsd2*)
17330
    shlibpath_overrides_runpath=yes
17331
    ;;
17332
  freebsd3.[01]* | freebsdelf3.[01]*)
17333
    shlibpath_overrides_runpath=yes
17334
    hardcode_into_libs=yes
17335
    ;;
17336
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17337
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17338
    shlibpath_overrides_runpath=no
17339
    hardcode_into_libs=yes
17340
    ;;
17341
  *) # from 4.6 on, and DragonFly
17342
    shlibpath_overrides_runpath=yes
17343
    hardcode_into_libs=yes
17344
    ;;
17345
  esac
17346
  ;;
17347
 
17348
gnu*)
17349
  version_type=linux
17350
  need_lib_prefix=no
17351
  need_version=no
17352
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17353
  soname_spec='${libname}${release}${shared_ext}$major'
17354
  shlibpath_var=LD_LIBRARY_PATH
17355
  hardcode_into_libs=yes
17356
  ;;
17357
 
17358
hpux9* | hpux10* | hpux11*)
17359
  # Give a soname corresponding to the major version so that dld.sl refuses to
17360
  # link against other versions.
17361
  version_type=sunos
17362
  need_lib_prefix=no
17363
  need_version=no
17364
  case $host_cpu in
17365
  ia64*)
17366
    shrext_cmds='.so'
17367
    hardcode_into_libs=yes
17368
    dynamic_linker="$host_os dld.so"
17369
    shlibpath_var=LD_LIBRARY_PATH
17370
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17371
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372
    soname_spec='${libname}${release}${shared_ext}$major'
17373
    if test "X$HPUX_IA64_MODE" = X32; then
17374
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17375
    else
17376
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17377
    fi
17378
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17379
    ;;
17380
   hppa*64*)
17381
     shrext_cmds='.sl'
17382
     hardcode_into_libs=yes
17383
     dynamic_linker="$host_os dld.sl"
17384
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17385
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17386
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387
     soname_spec='${libname}${release}${shared_ext}$major'
17388
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17389
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17390
     ;;
17391
   *)
17392
    shrext_cmds='.sl'
17393
    dynamic_linker="$host_os dld.sl"
17394
    shlibpath_var=SHLIB_PATH
17395
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17396
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397
    soname_spec='${libname}${release}${shared_ext}$major'
17398
    ;;
17399
  esac
17400
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17401
  postinstall_cmds='chmod 555 $lib'
17402
  ;;
17403
 
17404
interix[3-9]*)
17405
  version_type=linux
17406
  need_lib_prefix=no
17407
  need_version=no
17408
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17409
  soname_spec='${libname}${release}${shared_ext}$major'
17410
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17411
  shlibpath_var=LD_LIBRARY_PATH
17412
  shlibpath_overrides_runpath=no
17413
  hardcode_into_libs=yes
17414
  ;;
17415
 
17416
irix5* | irix6* | nonstopux*)
17417
  case $host_os in
17418
    nonstopux*) version_type=nonstopux ;;
17419
    *)
17420
        if test "$lt_cv_prog_gnu_ld" = yes; then
17421
                version_type=linux
17422
        else
17423
                version_type=irix
17424
        fi ;;
17425
  esac
17426
  need_lib_prefix=no
17427
  need_version=no
17428
  soname_spec='${libname}${release}${shared_ext}$major'
17429
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17430
  case $host_os in
17431
  irix5* | nonstopux*)
17432
    libsuff= shlibsuff=
17433
    ;;
17434
  *)
17435
    case $LD in # libtool.m4 will add one of these switches to LD
17436
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17437
      libsuff= shlibsuff= libmagic=32-bit;;
17438
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17439
      libsuff=32 shlibsuff=N32 libmagic=N32;;
17440
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17441
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17442
    *) libsuff= shlibsuff= libmagic=never-match;;
17443
    esac
17444
    ;;
17445
  esac
17446
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17447
  shlibpath_overrides_runpath=no
17448
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17449
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17450
  hardcode_into_libs=yes
17451
  ;;
17452
 
17453
# No shared lib support for Linux oldld, aout, or coff.
17454
linux*oldld* | linux*aout* | linux*coff*)
17455
  dynamic_linker=no
17456
  ;;
17457
 
17458
# This must be Linux ELF.
17459
linux* | k*bsd*-gnu)
17460
  version_type=linux
17461
  need_lib_prefix=no
17462
  need_version=no
17463
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464
  soname_spec='${libname}${release}${shared_ext}$major'
17465
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17466
  shlibpath_var=LD_LIBRARY_PATH
17467
  shlibpath_overrides_runpath=no
17468
  # This implies no fast_install, which is unacceptable.
17469
  # Some rework will be needed to allow for fast_install
17470
  # before this can be enabled.
17471
  hardcode_into_libs=yes
17472
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17473
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17474
 
17475
  # Append ld.so.conf contents to the search path
17476
  if test -f /etc/ld.so.conf; then
17477
    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;/^$/d' | tr '\n' ' '`
17478
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17479
  fi
17480
 
17481
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17482
  # powerpc, because MkLinux only supported shared libraries with the
17483
  # GNU dynamic linker.  Since this was broken with cross compilers,
17484
  # most powerpc-linux boxes support dynamic linking these days and
17485
  # people can always --disable-shared, the test was removed, and we
17486
  # assume the GNU/Linux dynamic linker is in use.
17487
  dynamic_linker='GNU/Linux ld.so'
17488
  ;;
17489
 
17490
netbsd*)
17491
  version_type=sunos
17492
  need_lib_prefix=no
17493
  need_version=no
17494
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17495
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17496
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17497
    dynamic_linker='NetBSD (a.out) ld.so'
17498
  else
17499
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17500
    soname_spec='${libname}${release}${shared_ext}$major'
17501
    dynamic_linker='NetBSD ld.elf_so'
17502
  fi
17503
  shlibpath_var=LD_LIBRARY_PATH
17504
  shlibpath_overrides_runpath=yes
17505
  hardcode_into_libs=yes
17506
  ;;
17507
 
17508
newsos6)
17509
  version_type=linux
17510
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17511
  shlibpath_var=LD_LIBRARY_PATH
17512
  shlibpath_overrides_runpath=yes
17513
  ;;
17514
 
17515
nto-qnx*)
17516
  version_type=linux
17517
  need_lib_prefix=no
17518
  need_version=no
17519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520
  soname_spec='${libname}${release}${shared_ext}$major'
17521
  shlibpath_var=LD_LIBRARY_PATH
17522
  shlibpath_overrides_runpath=yes
17523
  ;;
17524
 
17525
openbsd*)
17526
  version_type=sunos
17527
  sys_lib_dlsearch_path_spec="/usr/lib"
17528
  need_lib_prefix=no
17529
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17530
  case $host_os in
17531
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17532
    *)                         need_version=no  ;;
17533
  esac
17534
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17535
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17536
  shlibpath_var=LD_LIBRARY_PATH
17537
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17538
    case $host_os in
17539
      openbsd2.[89] | openbsd2.[89].*)
17540
        shlibpath_overrides_runpath=no
17541
        ;;
17542
      *)
17543
        shlibpath_overrides_runpath=yes
17544
        ;;
17545
      esac
17546
  else
17547
    shlibpath_overrides_runpath=yes
17548
  fi
17549
  ;;
17550
 
17551
os2*)
17552
  libname_spec='$name'
17553
  shrext_cmds=".dll"
17554
  need_lib_prefix=no
17555
  library_names_spec='$libname${shared_ext} $libname.a'
17556
  dynamic_linker='OS/2 ld.exe'
17557
  shlibpath_var=LIBPATH
17558
  ;;
17559
 
17560
osf3* | osf4* | osf5*)
17561
  version_type=osf
17562
  need_lib_prefix=no
17563
  need_version=no
17564
  soname_spec='${libname}${release}${shared_ext}$major'
17565
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17566
  shlibpath_var=LD_LIBRARY_PATH
17567
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17568
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17569
  ;;
17570
 
17571
rdos*)
17572
  dynamic_linker=no
17573
  ;;
17574
 
17575
solaris*)
17576
  version_type=linux
17577
  need_lib_prefix=no
17578
  need_version=no
17579
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17580
  soname_spec='${libname}${release}${shared_ext}$major'
17581
  shlibpath_var=LD_LIBRARY_PATH
17582
  shlibpath_overrides_runpath=yes
17583
  hardcode_into_libs=yes
17584
  # ldd complains unless libraries are executable
17585
  postinstall_cmds='chmod +x $lib'
17586
  ;;
17587
 
17588
sunos4*)
17589
  version_type=sunos
17590
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17591
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17592
  shlibpath_var=LD_LIBRARY_PATH
17593
  shlibpath_overrides_runpath=yes
17594
  if test "$with_gnu_ld" = yes; then
17595
    need_lib_prefix=no
17596
  fi
17597
  need_version=yes
17598
  ;;
17599
 
17600
sysv4 | sysv4.3*)
17601
  version_type=linux
17602
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17603
  soname_spec='${libname}${release}${shared_ext}$major'
17604
  shlibpath_var=LD_LIBRARY_PATH
17605
  case $host_vendor in
17606
    sni)
17607
      shlibpath_overrides_runpath=no
17608
      need_lib_prefix=no
17609
      export_dynamic_flag_spec='${wl}-Blargedynsym'
17610
      runpath_var=LD_RUN_PATH
17611
      ;;
17612
    siemens)
17613
      need_lib_prefix=no
17614
      ;;
17615
    motorola)
17616
      need_lib_prefix=no
17617
      need_version=no
17618
      shlibpath_overrides_runpath=no
17619
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17620
      ;;
17621
  esac
17622
  ;;
17623
 
17624
sysv4*MP*)
17625
  if test -d /usr/nec ;then
17626
    version_type=linux
17627
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17628
    soname_spec='$libname${shared_ext}.$major'
17629
    shlibpath_var=LD_LIBRARY_PATH
17630
  fi
17631
  ;;
17632
 
17633
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17634
  version_type=freebsd-elf
17635
  need_lib_prefix=no
17636
  need_version=no
17637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17638
  soname_spec='${libname}${release}${shared_ext}$major'
17639
  shlibpath_var=LD_LIBRARY_PATH
17640
  hardcode_into_libs=yes
17641
  if test "$with_gnu_ld" = yes; then
17642
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17643
    shlibpath_overrides_runpath=no
17644
  else
17645
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17646
    shlibpath_overrides_runpath=yes
17647
    case $host_os in
17648
      sco3.2v5*)
17649
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17650
        ;;
17651
    esac
17652
  fi
17653
  sys_lib_dlsearch_path_spec='/usr/lib'
17654
  ;;
17655
 
17656
uts4*)
17657
  version_type=linux
17658
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17659
  soname_spec='${libname}${release}${shared_ext}$major'
17660
  shlibpath_var=LD_LIBRARY_PATH
17661
  ;;
17662
 
17663
*)
17664
  dynamic_linker=no
17665
  ;;
17666
esac
17667
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17668
echo "${ECHO_T}$dynamic_linker" >&6; }
17669
test "$dynamic_linker" = no && can_build_shared=no
17670
 
17671
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17672
if test "$GCC" = yes; then
17673
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17674
fi
17675
 
17676
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17677
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17678
hardcode_action_GCJ=
17679
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17680
   test -n "$runpath_var_GCJ" || \
17681
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17682
 
17683
  # We can hardcode non-existant directories.
17684
  if test "$hardcode_direct_GCJ" != no &&
17685
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17686
     # have to relink, otherwise we might link with an installed library
17687
     # when we should be linking with a yet-to-be-installed one
17688
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17689
     test "$hardcode_minus_L_GCJ" != no; then
17690
    # Linking always hardcodes the temporary library directory.
17691
    hardcode_action_GCJ=relink
17692
  else
17693
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17694
    hardcode_action_GCJ=immediate
17695
  fi
17696
else
17697
  # We cannot hardcode anything, or else we can only hardcode existing
17698
  # directories.
17699
  hardcode_action_GCJ=unsupported
17700
fi
17701
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17702
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17703
 
17704
if test "$hardcode_action_GCJ" = relink; then
17705
  # Fast installation is not supported
17706
  enable_fast_install=no
17707
elif test "$shlibpath_overrides_runpath" = yes ||
17708
     test "$enable_shared" = no; then
17709
  # Fast installation is not necessary
17710
  enable_fast_install=needless
17711
fi
17712
 
17713
 
17714
# The else clause should only fire when bootstrapping the
17715
# libtool distribution, otherwise you forgot to ship ltmain.sh
17716
# with your package, and you will get complaints that there are
17717
# no rules to generate ltmain.sh.
17718
if test -f "$ltmain"; then
17719
  # See if we are running on zsh, and set the options which allow our commands through
17720
  # without removal of \ escapes.
17721
  if test -n "${ZSH_VERSION+set}" ; then
17722
    setopt NO_GLOB_SUBST
17723
  fi
17724
  # Now quote all the things that may contain metacharacters while being
17725
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17726
  # variables and quote the copies for generation of the libtool script.
17727
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17728
    SED SHELL STRIP \
17729
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17730
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17731
    deplibs_check_method reload_flag reload_cmds need_locks \
17732
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17733
    lt_cv_sys_global_symbol_to_c_name_address \
17734
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17735
    old_postinstall_cmds old_postuninstall_cmds \
17736
    compiler_GCJ \
17737
    CC_GCJ \
17738
    LD_GCJ \
17739
    lt_prog_compiler_wl_GCJ \
17740
    lt_prog_compiler_pic_GCJ \
17741
    lt_prog_compiler_static_GCJ \
17742
    lt_prog_compiler_no_builtin_flag_GCJ \
17743
    export_dynamic_flag_spec_GCJ \
17744
    thread_safe_flag_spec_GCJ \
17745
    whole_archive_flag_spec_GCJ \
17746
    enable_shared_with_static_runtimes_GCJ \
17747
    old_archive_cmds_GCJ \
17748
    old_archive_from_new_cmds_GCJ \
17749
    predep_objects_GCJ \
17750
    postdep_objects_GCJ \
17751
    predeps_GCJ \
17752
    postdeps_GCJ \
17753
    compiler_lib_search_path_GCJ \
17754
    archive_cmds_GCJ \
17755
    archive_expsym_cmds_GCJ \
17756
    postinstall_cmds_GCJ \
17757
    postuninstall_cmds_GCJ \
17758
    old_archive_from_expsyms_cmds_GCJ \
17759
    allow_undefined_flag_GCJ \
17760
    no_undefined_flag_GCJ \
17761
    export_symbols_cmds_GCJ \
17762
    hardcode_libdir_flag_spec_GCJ \
17763
    hardcode_libdir_flag_spec_ld_GCJ \
17764
    hardcode_libdir_separator_GCJ \
17765
    hardcode_automatic_GCJ \
17766
    module_cmds_GCJ \
17767
    module_expsym_cmds_GCJ \
17768
    lt_cv_prog_compiler_c_o_GCJ \
17769
    fix_srcfile_path_GCJ \
17770
    exclude_expsyms_GCJ \
17771
    include_expsyms_GCJ; do
17772
 
17773
    case $var in
17774
    old_archive_cmds_GCJ | \
17775
    old_archive_from_new_cmds_GCJ | \
17776
    archive_cmds_GCJ | \
17777
    archive_expsym_cmds_GCJ | \
17778
    module_cmds_GCJ | \
17779
    module_expsym_cmds_GCJ | \
17780
    old_archive_from_expsyms_cmds_GCJ | \
17781
    export_symbols_cmds_GCJ | \
17782
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17783
    postinstall_cmds | postuninstall_cmds | \
17784
    old_postinstall_cmds | old_postuninstall_cmds | \
17785
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17786
      # Double-quote double-evaled strings.
17787
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17788
      ;;
17789
    *)
17790
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17791
      ;;
17792
    esac
17793
  done
17794
 
17795
  case $lt_echo in
17796
  *'\$0 --fallback-echo"')
17797
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17798
    ;;
17799
  esac
17800
 
17801
cfgfile="$ofile"
17802
 
17803
  cat <<__EOF__ >> "$cfgfile"
17804
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17805
 
17806
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17807
 
17808
# Shell to use when invoking shell scripts.
17809
SHELL=$lt_SHELL
17810
 
17811
# Whether or not to build shared libraries.
17812
build_libtool_libs=$enable_shared
17813
 
17814
# Whether or not to build static libraries.
17815
build_old_libs=$enable_static
17816
 
17817
# Whether or not to add -lc for building shared libraries.
17818
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17819
 
17820
# Whether or not to disallow shared libs when runtime libs are static
17821
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17822
 
17823
# Whether or not to optimize for fast installation.
17824
fast_install=$enable_fast_install
17825
 
17826
# The host system.
17827
host_alias=$host_alias
17828
host=$host
17829
host_os=$host_os
17830
 
17831
# The build system.
17832
build_alias=$build_alias
17833
build=$build
17834
build_os=$build_os
17835
 
17836
# An echo program that does not interpret backslashes.
17837
echo=$lt_echo
17838
 
17839
# The archiver.
17840
AR=$lt_AR
17841
AR_FLAGS=$lt_AR_FLAGS
17842
 
17843
# A C compiler.
17844
LTCC=$lt_LTCC
17845
 
17846
# LTCC compiler flags.
17847
LTCFLAGS=$lt_LTCFLAGS
17848
 
17849
# A language-specific compiler.
17850
CC=$lt_compiler_GCJ
17851
 
17852
# Is the compiler the GNU C compiler?
17853
with_gcc=$GCC_GCJ
17854
 
17855
# An ERE matcher.
17856
EGREP=$lt_EGREP
17857
 
17858
# The linker used to build libraries.
17859
LD=$lt_LD_GCJ
17860
 
17861
# Whether we need hard or soft links.
17862
LN_S=$lt_LN_S
17863
 
17864
# A BSD-compatible nm program.
17865
NM=$lt_NM
17866
 
17867
# A symbol stripping program
17868
STRIP=$lt_STRIP
17869
 
17870
# Used to examine libraries when file_magic_cmd begins "file"
17871
MAGIC_CMD=$MAGIC_CMD
17872
 
17873
# Used on cygwin: DLL creation program.
17874
DLLTOOL="$DLLTOOL"
17875
 
17876
# Used on cygwin: object dumper.
17877
OBJDUMP="$OBJDUMP"
17878
 
17879
# Used on cygwin: assembler.
17880
AS="$AS"
17881
 
17882
# The name of the directory that contains temporary libtool files.
17883
objdir=$objdir
17884
 
17885
# How to create reloadable object files.
17886
reload_flag=$lt_reload_flag
17887
reload_cmds=$lt_reload_cmds
17888
 
17889
# How to pass a linker flag through the compiler.
17890
wl=$lt_lt_prog_compiler_wl_GCJ
17891
 
17892
# Object file suffix (normally "o").
17893
objext="$ac_objext"
17894
 
17895
# Old archive suffix (normally "a").
17896
libext="$libext"
17897
 
17898
# Shared library suffix (normally ".so").
17899
shrext_cmds='$shrext_cmds'
17900
 
17901
# Executable file suffix (normally "").
17902
exeext="$exeext"
17903
 
17904
# Additional compiler flags for building library objects.
17905
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17906
pic_mode=$pic_mode
17907
 
17908
# What is the maximum length of a command?
17909
max_cmd_len=$lt_cv_sys_max_cmd_len
17910
 
17911
# Does compiler simultaneously support -c and -o options?
17912
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17913
 
17914
# Must we lock files when doing compilation?
17915
need_locks=$lt_need_locks
17916
 
17917
# Do we need the lib prefix for modules?
17918
need_lib_prefix=$need_lib_prefix
17919
 
17920
# Do we need a version for libraries?
17921
need_version=$need_version
17922
 
17923
# Whether dlopen is supported.
17924
dlopen_support=$enable_dlopen
17925
 
17926
# Whether dlopen of programs is supported.
17927
dlopen_self=$enable_dlopen_self
17928
 
17929
# Whether dlopen of statically linked programs is supported.
17930
dlopen_self_static=$enable_dlopen_self_static
17931
 
17932
# Compiler flag to prevent dynamic linking.
17933
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17934
 
17935
# Compiler flag to turn off builtin functions.
17936
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17937
 
17938
# Compiler flag to allow reflexive dlopens.
17939
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17940
 
17941
# Compiler flag to generate shared objects directly from archives.
17942
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17943
 
17944
# Compiler flag to generate thread-safe objects.
17945
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17946
 
17947
# Library versioning type.
17948
version_type=$version_type
17949
 
17950
# Format of library name prefix.
17951
libname_spec=$lt_libname_spec
17952
 
17953
# List of archive names.  First name is the real one, the rest are links.
17954
# The last name is the one that the linker finds with -lNAME.
17955
library_names_spec=$lt_library_names_spec
17956
 
17957
# The coded name of the library, if different from the real name.
17958
soname_spec=$lt_soname_spec
17959
 
17960
# Commands used to build and install an old-style archive.
17961
RANLIB=$lt_RANLIB
17962
old_archive_cmds=$lt_old_archive_cmds_GCJ
17963
old_postinstall_cmds=$lt_old_postinstall_cmds
17964
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17965
 
17966
# Create an old-style archive from a shared archive.
17967
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17968
 
17969
# Create a temporary old-style archive to link instead of a shared archive.
17970
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17971
 
17972
# Commands used to build and install a shared archive.
17973
archive_cmds=$lt_archive_cmds_GCJ
17974
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17975
postinstall_cmds=$lt_postinstall_cmds
17976
postuninstall_cmds=$lt_postuninstall_cmds
17977
 
17978
# Commands used to build a loadable module (assumed same as above if empty)
17979
module_cmds=$lt_module_cmds_GCJ
17980
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17981
 
17982
# Commands to strip libraries.
17983
old_striplib=$lt_old_striplib
17984
striplib=$lt_striplib
17985
 
17986
# Dependencies to place before the objects being linked to create a
17987
# shared library.
17988
predep_objects=$lt_predep_objects_GCJ
17989
 
17990
# Dependencies to place after the objects being linked to create a
17991
# shared library.
17992
postdep_objects=$lt_postdep_objects_GCJ
17993
 
17994
# Dependencies to place before the objects being linked to create a
17995
# shared library.
17996
predeps=$lt_predeps_GCJ
17997
 
17998
# Dependencies to place after the objects being linked to create a
17999
# shared library.
18000
postdeps=$lt_postdeps_GCJ
18001
 
18002
# The library search path used internally by the compiler when linking
18003
# a shared library.
18004
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18005
 
18006
# Method to check whether dependent libraries are shared objects.
18007
deplibs_check_method=$lt_deplibs_check_method
18008
 
18009
# Command to use when deplibs_check_method == file_magic.
18010
file_magic_cmd=$lt_file_magic_cmd
18011
 
18012
# Flag that allows shared libraries with undefined symbols to be built.
18013
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18014
 
18015
# Flag that forces no undefined symbols.
18016
no_undefined_flag=$lt_no_undefined_flag_GCJ
18017
 
18018
# Commands used to finish a libtool library installation in a directory.
18019
finish_cmds=$lt_finish_cmds
18020
 
18021
# Same as above, but a single script fragment to be evaled but not shown.
18022
finish_eval=$lt_finish_eval
18023
 
18024
# Take the output of nm and produce a listing of raw symbols and C names.
18025
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18026
 
18027
# Transform the output of nm in a proper C declaration
18028
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18029
 
18030
# Transform the output of nm in a C name address pair
18031
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18032
 
18033
# This is the shared library runtime path variable.
18034
runpath_var=$runpath_var
18035
 
18036
# This is the shared library path variable.
18037
shlibpath_var=$shlibpath_var
18038
 
18039
# Is shlibpath searched before the hard-coded library search path?
18040
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18041
 
18042
# How to hardcode a shared library path into an executable.
18043
hardcode_action=$hardcode_action_GCJ
18044
 
18045
# Whether we should hardcode library paths into libraries.
18046
hardcode_into_libs=$hardcode_into_libs
18047
 
18048
# Flag to hardcode \$libdir into a binary during linking.
18049
# This must work even if \$libdir does not exist.
18050
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18051
 
18052
# If ld is used when linking, flag to hardcode \$libdir into
18053
# a binary during linking. This must work even if \$libdir does
18054
# not exist.
18055
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18056
 
18057
# Whether we need a single -rpath flag with a separated argument.
18058
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18059
 
18060
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18061
# resulting binary.
18062
hardcode_direct=$hardcode_direct_GCJ
18063
 
18064
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18065
# resulting binary.
18066
hardcode_minus_L=$hardcode_minus_L_GCJ
18067
 
18068
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18069
# the resulting binary.
18070
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18071
 
18072
# Set to yes if building a shared library automatically hardcodes DIR into the library
18073
# and all subsequent libraries and executables linked against it.
18074
hardcode_automatic=$hardcode_automatic_GCJ
18075
 
18076
# Variables whose values should be saved in libtool wrapper scripts and
18077
# restored at relink time.
18078
variables_saved_for_relink="$variables_saved_for_relink"
18079
 
18080
# Whether libtool must link a program against all its dependency libraries.
18081
link_all_deplibs=$link_all_deplibs_GCJ
18082
 
18083
# Compile-time system search path for libraries
18084
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18085
 
18086
# Run-time system search path for libraries
18087
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18088
 
18089
# Fix the shell variable \$srcfile for the compiler.
18090
fix_srcfile_path=$lt_fix_srcfile_path
18091
 
18092
# Set to yes if exported symbols are required.
18093
always_export_symbols=$always_export_symbols_GCJ
18094
 
18095
# The commands to list exported symbols.
18096
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18097
 
18098
# The commands to extract the exported symbol list from a shared archive.
18099
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18100
 
18101
# Symbols that should not be listed in the preloaded symbols.
18102
exclude_expsyms=$lt_exclude_expsyms_GCJ
18103
 
18104
# Symbols that must always be exported.
18105
include_expsyms=$lt_include_expsyms_GCJ
18106
 
18107
# ### END LIBTOOL TAG CONFIG: $tagname
18108
 
18109
__EOF__
18110
 
18111
 
18112
else
18113
  # If there is no Makefile yet, we rely on a make rule to execute
18114
  # `config.status --recheck' to rerun these tests and create the
18115
  # libtool script then.
18116
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18117
  if test -f "$ltmain_in"; then
18118
    test -f Makefile && make "$ltmain"
18119
  fi
18120
fi
18121
 
18122
 
18123
ac_ext=c
18124
ac_cpp='$CPP $CPPFLAGS'
18125
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18126
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18127
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18128
 
18129
CC="$lt_save_CC"
18130
 
18131
        else
18132
          tagname=""
18133
        fi
18134
        ;;
18135
 
18136
      RC)
18137
 
18138
 
18139
# Source file extension for RC test sources.
18140
ac_ext=rc
18141
 
18142
# Object file extension for compiled RC test sources.
18143
objext=o
18144
objext_RC=$objext
18145
 
18146
# Code to be used in simple compile tests
18147
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18148
 
18149
# Code to be used in simple link tests
18150
lt_simple_link_test_code="$lt_simple_compile_test_code"
18151
 
18152
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18153
 
18154
# If no C compiler was specified, use CC.
18155
LTCC=${LTCC-"$CC"}
18156
 
18157
# If no C compiler flags were specified, use CFLAGS.
18158
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18159
 
18160
# Allow CC to be a program name with arguments.
18161
compiler=$CC
18162
 
18163
 
18164
# save warnings/boilerplate of simple test code
18165
ac_outfile=conftest.$ac_objext
18166
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18167
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18168
_lt_compiler_boilerplate=`cat conftest.err`
18169
$rm conftest*
18170
 
18171
ac_outfile=conftest.$ac_objext
18172
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18173
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18174
_lt_linker_boilerplate=`cat conftest.err`
18175
$rm conftest*
18176
 
18177
 
18178
# Allow CC to be a program name with arguments.
18179
lt_save_CC="$CC"
18180
CC=${RC-"windres"}
18181
compiler=$CC
18182
compiler_RC=$CC
18183
for cc_temp in $compiler""; do
18184
  case $cc_temp in
18185
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18186
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18187
    \-*) ;;
18188
    *) break;;
18189
  esac
18190
done
18191
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18192
 
18193
lt_cv_prog_compiler_c_o_RC=yes
18194
 
18195
# The else clause should only fire when bootstrapping the
18196
# libtool distribution, otherwise you forgot to ship ltmain.sh
18197
# with your package, and you will get complaints that there are
18198
# no rules to generate ltmain.sh.
18199
if test -f "$ltmain"; then
18200
  # See if we are running on zsh, and set the options which allow our commands through
18201
  # without removal of \ escapes.
18202
  if test -n "${ZSH_VERSION+set}" ; then
18203
    setopt NO_GLOB_SUBST
18204
  fi
18205
  # Now quote all the things that may contain metacharacters while being
18206
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18207
  # variables and quote the copies for generation of the libtool script.
18208
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18209
    SED SHELL STRIP \
18210
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18211
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18212
    deplibs_check_method reload_flag reload_cmds need_locks \
18213
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18214
    lt_cv_sys_global_symbol_to_c_name_address \
18215
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18216
    old_postinstall_cmds old_postuninstall_cmds \
18217
    compiler_RC \
18218
    CC_RC \
18219
    LD_RC \
18220
    lt_prog_compiler_wl_RC \
18221
    lt_prog_compiler_pic_RC \
18222
    lt_prog_compiler_static_RC \
18223
    lt_prog_compiler_no_builtin_flag_RC \
18224
    export_dynamic_flag_spec_RC \
18225
    thread_safe_flag_spec_RC \
18226
    whole_archive_flag_spec_RC \
18227
    enable_shared_with_static_runtimes_RC \
18228
    old_archive_cmds_RC \
18229
    old_archive_from_new_cmds_RC \
18230
    predep_objects_RC \
18231
    postdep_objects_RC \
18232
    predeps_RC \
18233
    postdeps_RC \
18234
    compiler_lib_search_path_RC \
18235
    archive_cmds_RC \
18236
    archive_expsym_cmds_RC \
18237
    postinstall_cmds_RC \
18238
    postuninstall_cmds_RC \
18239
    old_archive_from_expsyms_cmds_RC \
18240
    allow_undefined_flag_RC \
18241
    no_undefined_flag_RC \
18242
    export_symbols_cmds_RC \
18243
    hardcode_libdir_flag_spec_RC \
18244
    hardcode_libdir_flag_spec_ld_RC \
18245
    hardcode_libdir_separator_RC \
18246
    hardcode_automatic_RC \
18247
    module_cmds_RC \
18248
    module_expsym_cmds_RC \
18249
    lt_cv_prog_compiler_c_o_RC \
18250
    fix_srcfile_path_RC \
18251
    exclude_expsyms_RC \
18252
    include_expsyms_RC; do
18253
 
18254
    case $var in
18255
    old_archive_cmds_RC | \
18256
    old_archive_from_new_cmds_RC | \
18257
    archive_cmds_RC | \
18258
    archive_expsym_cmds_RC | \
18259
    module_cmds_RC | \
18260
    module_expsym_cmds_RC | \
18261
    old_archive_from_expsyms_cmds_RC | \
18262
    export_symbols_cmds_RC | \
18263
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18264
    postinstall_cmds | postuninstall_cmds | \
18265
    old_postinstall_cmds | old_postuninstall_cmds | \
18266
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18267
      # Double-quote double-evaled strings.
18268
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18269
      ;;
18270
    *)
18271
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18272
      ;;
18273
    esac
18274
  done
18275
 
18276
  case $lt_echo in
18277
  *'\$0 --fallback-echo"')
18278
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18279
    ;;
18280
  esac
18281
 
18282
cfgfile="$ofile"
18283
 
18284
  cat <<__EOF__ >> "$cfgfile"
18285
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18286
 
18287
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18288
 
18289
# Shell to use when invoking shell scripts.
18290
SHELL=$lt_SHELL
18291
 
18292
# Whether or not to build shared libraries.
18293
build_libtool_libs=$enable_shared
18294
 
18295
# Whether or not to build static libraries.
18296
build_old_libs=$enable_static
18297
 
18298
# Whether or not to add -lc for building shared libraries.
18299
build_libtool_need_lc=$archive_cmds_need_lc_RC
18300
 
18301
# Whether or not to disallow shared libs when runtime libs are static
18302
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18303
 
18304
# Whether or not to optimize for fast installation.
18305
fast_install=$enable_fast_install
18306
 
18307
# The host system.
18308
host_alias=$host_alias
18309
host=$host
18310
host_os=$host_os
18311
 
18312
# The build system.
18313
build_alias=$build_alias
18314
build=$build
18315
build_os=$build_os
18316
 
18317
# An echo program that does not interpret backslashes.
18318
echo=$lt_echo
18319
 
18320
# The archiver.
18321
AR=$lt_AR
18322
AR_FLAGS=$lt_AR_FLAGS
18323
 
18324
# A C compiler.
18325
LTCC=$lt_LTCC
18326
 
18327
# LTCC compiler flags.
18328
LTCFLAGS=$lt_LTCFLAGS
18329
 
18330
# A language-specific compiler.
18331
CC=$lt_compiler_RC
18332
 
18333
# Is the compiler the GNU C compiler?
18334
with_gcc=$GCC_RC
18335
 
18336
# An ERE matcher.
18337
EGREP=$lt_EGREP
18338
 
18339
# The linker used to build libraries.
18340
LD=$lt_LD_RC
18341
 
18342
# Whether we need hard or soft links.
18343
LN_S=$lt_LN_S
18344
 
18345
# A BSD-compatible nm program.
18346
NM=$lt_NM
18347
 
18348
# A symbol stripping program
18349
STRIP=$lt_STRIP
18350
 
18351
# Used to examine libraries when file_magic_cmd begins "file"
18352
MAGIC_CMD=$MAGIC_CMD
18353
 
18354
# Used on cygwin: DLL creation program.
18355
DLLTOOL="$DLLTOOL"
18356
 
18357
# Used on cygwin: object dumper.
18358
OBJDUMP="$OBJDUMP"
18359
 
18360
# Used on cygwin: assembler.
18361
AS="$AS"
18362
 
18363
# The name of the directory that contains temporary libtool files.
18364
objdir=$objdir
18365
 
18366
# How to create reloadable object files.
18367
reload_flag=$lt_reload_flag
18368
reload_cmds=$lt_reload_cmds
18369
 
18370
# How to pass a linker flag through the compiler.
18371
wl=$lt_lt_prog_compiler_wl_RC
18372
 
18373
# Object file suffix (normally "o").
18374
objext="$ac_objext"
18375
 
18376
# Old archive suffix (normally "a").
18377
libext="$libext"
18378
 
18379
# Shared library suffix (normally ".so").
18380
shrext_cmds='$shrext_cmds'
18381
 
18382
# Executable file suffix (normally "").
18383
exeext="$exeext"
18384
 
18385
# Additional compiler flags for building library objects.
18386
pic_flag=$lt_lt_prog_compiler_pic_RC
18387
pic_mode=$pic_mode
18388
 
18389
# What is the maximum length of a command?
18390
max_cmd_len=$lt_cv_sys_max_cmd_len
18391
 
18392
# Does compiler simultaneously support -c and -o options?
18393
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18394
 
18395
# Must we lock files when doing compilation?
18396
need_locks=$lt_need_locks
18397
 
18398
# Do we need the lib prefix for modules?
18399
need_lib_prefix=$need_lib_prefix
18400
 
18401
# Do we need a version for libraries?
18402
need_version=$need_version
18403
 
18404
# Whether dlopen is supported.
18405
dlopen_support=$enable_dlopen
18406
 
18407
# Whether dlopen of programs is supported.
18408
dlopen_self=$enable_dlopen_self
18409
 
18410
# Whether dlopen of statically linked programs is supported.
18411
dlopen_self_static=$enable_dlopen_self_static
18412
 
18413
# Compiler flag to prevent dynamic linking.
18414
link_static_flag=$lt_lt_prog_compiler_static_RC
18415
 
18416
# Compiler flag to turn off builtin functions.
18417
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18418
 
18419
# Compiler flag to allow reflexive dlopens.
18420
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18421
 
18422
# Compiler flag to generate shared objects directly from archives.
18423
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18424
 
18425
# Compiler flag to generate thread-safe objects.
18426
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18427
 
18428
# Library versioning type.
18429
version_type=$version_type
18430
 
18431
# Format of library name prefix.
18432
libname_spec=$lt_libname_spec
18433
 
18434
# List of archive names.  First name is the real one, the rest are links.
18435
# The last name is the one that the linker finds with -lNAME.
18436
library_names_spec=$lt_library_names_spec
18437
 
18438
# The coded name of the library, if different from the real name.
18439
soname_spec=$lt_soname_spec
18440
 
18441
# Commands used to build and install an old-style archive.
18442
RANLIB=$lt_RANLIB
18443
old_archive_cmds=$lt_old_archive_cmds_RC
18444
old_postinstall_cmds=$lt_old_postinstall_cmds
18445
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18446
 
18447
# Create an old-style archive from a shared archive.
18448
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18449
 
18450
# Create a temporary old-style archive to link instead of a shared archive.
18451
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18452
 
18453
# Commands used to build and install a shared archive.
18454
archive_cmds=$lt_archive_cmds_RC
18455
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18456
postinstall_cmds=$lt_postinstall_cmds
18457
postuninstall_cmds=$lt_postuninstall_cmds
18458
 
18459
# Commands used to build a loadable module (assumed same as above if empty)
18460
module_cmds=$lt_module_cmds_RC
18461
module_expsym_cmds=$lt_module_expsym_cmds_RC
18462
 
18463
# Commands to strip libraries.
18464
old_striplib=$lt_old_striplib
18465
striplib=$lt_striplib
18466
 
18467
# Dependencies to place before the objects being linked to create a
18468
# shared library.
18469
predep_objects=$lt_predep_objects_RC
18470
 
18471
# Dependencies to place after the objects being linked to create a
18472
# shared library.
18473
postdep_objects=$lt_postdep_objects_RC
18474
 
18475
# Dependencies to place before the objects being linked to create a
18476
# shared library.
18477
predeps=$lt_predeps_RC
18478
 
18479
# Dependencies to place after the objects being linked to create a
18480
# shared library.
18481
postdeps=$lt_postdeps_RC
18482
 
18483
# The library search path used internally by the compiler when linking
18484
# a shared library.
18485
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18486
 
18487
# Method to check whether dependent libraries are shared objects.
18488
deplibs_check_method=$lt_deplibs_check_method
18489
 
18490
# Command to use when deplibs_check_method == file_magic.
18491
file_magic_cmd=$lt_file_magic_cmd
18492
 
18493
# Flag that allows shared libraries with undefined symbols to be built.
18494
allow_undefined_flag=$lt_allow_undefined_flag_RC
18495
 
18496
# Flag that forces no undefined symbols.
18497
no_undefined_flag=$lt_no_undefined_flag_RC
18498
 
18499
# Commands used to finish a libtool library installation in a directory.
18500
finish_cmds=$lt_finish_cmds
18501
 
18502
# Same as above, but a single script fragment to be evaled but not shown.
18503
finish_eval=$lt_finish_eval
18504
 
18505
# Take the output of nm and produce a listing of raw symbols and C names.
18506
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18507
 
18508
# Transform the output of nm in a proper C declaration
18509
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18510
 
18511
# Transform the output of nm in a C name address pair
18512
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18513
 
18514
# This is the shared library runtime path variable.
18515
runpath_var=$runpath_var
18516
 
18517
# This is the shared library path variable.
18518
shlibpath_var=$shlibpath_var
18519
 
18520
# Is shlibpath searched before the hard-coded library search path?
18521
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18522
 
18523
# How to hardcode a shared library path into an executable.
18524
hardcode_action=$hardcode_action_RC
18525
 
18526
# Whether we should hardcode library paths into libraries.
18527
hardcode_into_libs=$hardcode_into_libs
18528
 
18529
# Flag to hardcode \$libdir into a binary during linking.
18530
# This must work even if \$libdir does not exist.
18531
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18532
 
18533
# If ld is used when linking, flag to hardcode \$libdir into
18534
# a binary during linking. This must work even if \$libdir does
18535
# not exist.
18536
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18537
 
18538
# Whether we need a single -rpath flag with a separated argument.
18539
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18540
 
18541
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18542
# resulting binary.
18543
hardcode_direct=$hardcode_direct_RC
18544
 
18545
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18546
# resulting binary.
18547
hardcode_minus_L=$hardcode_minus_L_RC
18548
 
18549
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18550
# the resulting binary.
18551
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18552
 
18553
# Set to yes if building a shared library automatically hardcodes DIR into the library
18554
# and all subsequent libraries and executables linked against it.
18555
hardcode_automatic=$hardcode_automatic_RC
18556
 
18557
# Variables whose values should be saved in libtool wrapper scripts and
18558
# restored at relink time.
18559
variables_saved_for_relink="$variables_saved_for_relink"
18560
 
18561
# Whether libtool must link a program against all its dependency libraries.
18562
link_all_deplibs=$link_all_deplibs_RC
18563
 
18564
# Compile-time system search path for libraries
18565
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18566
 
18567
# Run-time system search path for libraries
18568
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18569
 
18570
# Fix the shell variable \$srcfile for the compiler.
18571
fix_srcfile_path=$lt_fix_srcfile_path
18572
 
18573
# Set to yes if exported symbols are required.
18574
always_export_symbols=$always_export_symbols_RC
18575
 
18576
# The commands to list exported symbols.
18577
export_symbols_cmds=$lt_export_symbols_cmds_RC
18578
 
18579
# The commands to extract the exported symbol list from a shared archive.
18580
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18581
 
18582
# Symbols that should not be listed in the preloaded symbols.
18583
exclude_expsyms=$lt_exclude_expsyms_RC
18584
 
18585
# Symbols that must always be exported.
18586
include_expsyms=$lt_include_expsyms_RC
18587
 
18588
# ### END LIBTOOL TAG CONFIG: $tagname
18589
 
18590
__EOF__
18591
 
18592
 
18593
else
18594
  # If there is no Makefile yet, we rely on a make rule to execute
18595
  # `config.status --recheck' to rerun these tests and create the
18596
  # libtool script then.
18597
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18598
  if test -f "$ltmain_in"; then
18599
    test -f Makefile && make "$ltmain"
18600
  fi
18601
fi
18602
 
18603
 
18604
ac_ext=c
18605
ac_cpp='$CPP $CPPFLAGS'
18606
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18607
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18608
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18609
 
18610
CC="$lt_save_CC"
18611
 
18612
        ;;
18613
 
18614
      *)
18615
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18616
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18617
   { (exit 1); exit 1; }; }
18618
        ;;
18619
      esac
18620
 
18621
      # Append the new tag name to the list of available tags.
18622
      if test -n "$tagname" ; then
18623
      available_tags="$available_tags $tagname"
18624
    fi
18625
    fi
18626
  done
18627
  IFS="$lt_save_ifs"
18628
 
18629
  # Now substitute the updated list of available tags.
18630
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18631
    mv "${ofile}T" "$ofile"
18632
    chmod +x "$ofile"
18633
  else
18634
    rm -f "${ofile}T"
18635
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18636
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18637
   { (exit 1); exit 1; }; }
18638
  fi
18639
fi
18640
 
18641
 
18642
 
18643
# This can be used to rebuild libtool when needed
18644
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18645
 
18646
# Always use our own libtool.
18647
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18648
 
18649
# Prevent multiple expansion
18650
 
18651
 
18652
 
18653
 
18654
 
18655
 
18656
 
18657
 
18658
 
18659
 
18660
 
18661
 
18662
 
18663
 
18664
 
18665
 
18666
 
18667
 
18668
 
18669
 
18670
am__api_version='1.10'
18671
 
18672
# Find a good install program.  We prefer a C program (faster),
18673
# so one script is as good as another.  But avoid the broken or
18674
# incompatible versions:
18675
# SysV /etc/install, /usr/sbin/install
18676
# SunOS /usr/etc/install
18677
# IRIX /sbin/install
18678
# AIX /bin/install
18679
# AmigaOS /C/install, which installs bootblocks on floppy discs
18680
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18681
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18682
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18683
# OS/2's system install, which has a completely different semantic
18684
# ./install, which can be erroneously created by make from ./install.sh.
18685
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18686
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
18687
if test -z "$INSTALL"; then
18688
if test "${ac_cv_path_install+set}" = set; then
18689
  echo $ECHO_N "(cached) $ECHO_C" >&6
18690
else
18691
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18692
for as_dir in $PATH
18693
do
18694
  IFS=$as_save_IFS
18695
  test -z "$as_dir" && as_dir=.
18696
  # Account for people who put trailing slashes in PATH elements.
18697
case $as_dir/ in
18698
  ./ | .// | /cC/* | \
18699
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18700
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18701
  /usr/ucb/* ) ;;
18702
  *)
18703
    # OSF1 and SCO ODT 3.0 have their own names for install.
18704
    # Don't use installbsd from OSF since it installs stuff as root
18705
    # by default.
18706
    for ac_prog in ginstall scoinst install; do
18707
      for ac_exec_ext in '' $ac_executable_extensions; do
18708
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18709
          if test $ac_prog = install &&
18710
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18711
            # AIX install.  It has an incompatible calling convention.
18712
            :
18713
          elif test $ac_prog = install &&
18714
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18715
            # program-specific install script used by HP pwplus--don't use.
18716
            :
18717
          else
18718
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18719
            break 3
18720
          fi
18721
        fi
18722
      done
18723
    done
18724
    ;;
18725
esac
18726
done
18727
IFS=$as_save_IFS
18728
 
18729
 
18730
fi
18731
  if test "${ac_cv_path_install+set}" = set; then
18732
    INSTALL=$ac_cv_path_install
18733
  else
18734
    # As a last resort, use the slow shell script.  Don't cache a
18735
    # value for INSTALL within a source directory, because that will
18736
    # break other packages using the cache if that directory is
18737
    # removed, or if the value is a relative name.
18738
    INSTALL=$ac_install_sh
18739
  fi
18740
fi
18741
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
18742
echo "${ECHO_T}$INSTALL" >&6; }
18743
 
18744
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18745
# It thinks the first close brace ends the variable substitution.
18746
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18747
 
18748
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18749
 
18750
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18751
 
18752
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18753
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
18754
# Just in case
18755
sleep 1
18756
echo timestamp > conftest.file
18757
# Do `set' in a subshell so we don't clobber the current shell's
18758
# arguments.  Must try -L first in case configure is actually a
18759
# symlink; some systems play weird games with the mod time of symlinks
18760
# (eg FreeBSD returns the mod time of the symlink's containing
18761
# directory).
18762
if (
18763
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18764
   if test "$*" = "X"; then
18765
      # -L didn't work.
18766
      set X `ls -t $srcdir/configure conftest.file`
18767
   fi
18768
   rm -f conftest.file
18769
   if test "$*" != "X $srcdir/configure conftest.file" \
18770
      && test "$*" != "X conftest.file $srcdir/configure"; then
18771
 
18772
      # If neither matched, then we have a broken ls.  This can happen
18773
      # if, for instance, CONFIG_SHELL is bash and it inherits a
18774
      # broken ls alias from the environment.  This has actually
18775
      # happened.  Such a system could not be considered "sane".
18776
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
18777
alias in your environment" >&5
18778
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
18779
alias in your environment" >&2;}
18780
   { (exit 1); exit 1; }; }
18781
   fi
18782
 
18783
   test "$2" = conftest.file
18784
   )
18785
then
18786
   # Ok.
18787
   :
18788
else
18789
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18790
Check your system clock" >&5
18791
echo "$as_me: error: newly created file is older than distributed files!
18792
Check your system clock" >&2;}
18793
   { (exit 1); exit 1; }; }
18794
fi
18795
{ echo "$as_me:$LINENO: result: yes" >&5
18796
echo "${ECHO_T}yes" >&6; }
18797
test "$program_prefix" != NONE &&
18798
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
18799
# Use a double $ so make ignores it.
18800
test "$program_suffix" != NONE &&
18801
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18802
# Double any \ or $.  echo might interpret backslashes.
18803
# By default was `s,x,x', remove it if useless.
18804
cat <<\_ACEOF >conftest.sed
18805
s/[\\$]/&&/g;s/;s,x,x,$//
18806
_ACEOF
18807
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18808
rm -f conftest.sed
18809
 
18810
# expand $ac_aux_dir to an absolute path
18811
am_aux_dir=`cd $ac_aux_dir && pwd`
18812
 
18813
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18814
# Use eval to expand $SHELL
18815
if eval "$MISSING --run true"; then
18816
  am_missing_run="$MISSING --run "
18817
else
18818
  am_missing_run=
18819
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18820
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18821
fi
18822
 
18823
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18824
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
18825
if test -z "$MKDIR_P"; then
18826
  if test "${ac_cv_path_mkdir+set}" = set; then
18827
  echo $ECHO_N "(cached) $ECHO_C" >&6
18828
else
18829
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18830
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18831
do
18832
  IFS=$as_save_IFS
18833
  test -z "$as_dir" && as_dir=.
18834
  for ac_prog in mkdir gmkdir; do
18835
         for ac_exec_ext in '' $ac_executable_extensions; do
18836
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18837
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18838
             'mkdir (GNU coreutils) '* | \
18839
             'mkdir (coreutils) '* | \
18840
             'mkdir (fileutils) '4.1*)
18841
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18842
               break 3;;
18843
           esac
18844
         done
18845
       done
18846
done
18847
IFS=$as_save_IFS
18848
 
18849
fi
18850
 
18851
  if test "${ac_cv_path_mkdir+set}" = set; then
18852
    MKDIR_P="$ac_cv_path_mkdir -p"
18853
  else
18854
    # As a last resort, use the slow shell script.  Don't cache a
18855
    # value for MKDIR_P within a source directory, because that will
18856
    # break other packages using the cache if that directory is
18857
    # removed, or if the value is a relative name.
18858
    test -d ./--version && rmdir ./--version
18859
    MKDIR_P="$ac_install_sh -d"
18860
  fi
18861
fi
18862
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18863
echo "${ECHO_T}$MKDIR_P" >&6; }
18864
 
18865
mkdir_p="$MKDIR_P"
18866
case $mkdir_p in
18867
  [\\/$]* | ?:[\\/]*) ;;
18868
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18869
esac
18870
 
18871
for ac_prog in gawk mawk nawk awk
18872
do
18873
  # Extract the first word of "$ac_prog", so it can be a program name with args.
18874
set dummy $ac_prog; ac_word=$2
18875
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18877
if test "${ac_cv_prog_AWK+set}" = set; then
18878
  echo $ECHO_N "(cached) $ECHO_C" >&6
18879
else
18880
  if test -n "$AWK"; then
18881
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
18882
else
18883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884
for as_dir in $PATH
18885
do
18886
  IFS=$as_save_IFS
18887
  test -z "$as_dir" && as_dir=.
18888
  for ac_exec_ext in '' $ac_executable_extensions; do
18889
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18890
    ac_cv_prog_AWK="$ac_prog"
18891
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18892
    break 2
18893
  fi
18894
done
18895
done
18896
IFS=$as_save_IFS
18897
 
18898
fi
18899
fi
18900
AWK=$ac_cv_prog_AWK
18901
if test -n "$AWK"; then
18902
  { echo "$as_me:$LINENO: result: $AWK" >&5
18903
echo "${ECHO_T}$AWK" >&6; }
18904
else
18905
  { echo "$as_me:$LINENO: result: no" >&5
18906
echo "${ECHO_T}no" >&6; }
18907
fi
18908
 
18909
 
18910
  test -n "$AWK" && break
18911
done
18912
 
18913
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18914
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
18915
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18916
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18917
  echo $ECHO_N "(cached) $ECHO_C" >&6
18918
else
18919
  cat >conftest.make <<\_ACEOF
18920
SHELL = /bin/sh
18921
all:
18922
        @echo '@@@%%%=$(MAKE)=@@@%%%'
18923
_ACEOF
18924
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18925
case `${MAKE-make} -f conftest.make 2>/dev/null` in
18926
  *@@@%%%=?*=@@@%%%*)
18927
    eval ac_cv_prog_make_${ac_make}_set=yes;;
18928
  *)
18929
    eval ac_cv_prog_make_${ac_make}_set=no;;
18930
esac
18931
rm -f conftest.make
18932
fi
18933
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18934
  { echo "$as_me:$LINENO: result: yes" >&5
18935
echo "${ECHO_T}yes" >&6; }
18936
  SET_MAKE=
18937
else
18938
  { echo "$as_me:$LINENO: result: no" >&5
18939
echo "${ECHO_T}no" >&6; }
18940
  SET_MAKE="MAKE=${MAKE-make}"
18941
fi
18942
 
18943
rm -rf .tst 2>/dev/null
18944
mkdir .tst 2>/dev/null
18945
if test -d .tst; then
18946
  am__leading_dot=.
18947
else
18948
  am__leading_dot=_
18949
fi
18950
rmdir .tst 2>/dev/null
18951
 
18952
DEPDIR="${am__leading_dot}deps"
18953
 
18954
ac_config_commands="$ac_config_commands depfiles"
18955
 
18956
 
18957
am_make=${MAKE-make}
18958
cat > confinc << 'END'
18959
am__doit:
18960
        @echo done
18961
.PHONY: am__doit
18962
END
18963
# If we don't find an include directive, just comment out the code.
18964
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
18965
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
18966
am__include="#"
18967
am__quote=
18968
_am_result=none
18969
# First try GNU make style include.
18970
echo "include confinc" > confmf
18971
# We grep out `Entering directory' and `Leaving directory'
18972
# messages which can occur if `w' ends up in MAKEFLAGS.
18973
# In particular we don't look at `^make:' because GNU make might
18974
# be invoked under some other name (usually "gmake"), in which
18975
# case it prints its new name instead of `make'.
18976
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
18977
   am__include=include
18978
   am__quote=
18979
   _am_result=GNU
18980
fi
18981
# Now try BSD make style include.
18982
if test "$am__include" = "#"; then
18983
   echo '.include "confinc"' > confmf
18984
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
18985
      am__include=.include
18986
      am__quote="\""
18987
      _am_result=BSD
18988
   fi
18989
fi
18990
 
18991
 
18992
{ echo "$as_me:$LINENO: result: $_am_result" >&5
18993
echo "${ECHO_T}$_am_result" >&6; }
18994
rm -f confinc confmf
18995
 
18996
# Check whether --enable-dependency-tracking was given.
18997
if test "${enable_dependency_tracking+set}" = set; then
18998
  enableval=$enable_dependency_tracking;
18999
fi
19000
 
19001
if test "x$enable_dependency_tracking" != xno; then
19002
  am_depcomp="$ac_aux_dir/depcomp"
19003
  AMDEPBACKSLASH='\'
19004
fi
19005
 if test "x$enable_dependency_tracking" != xno; then
19006
  AMDEP_TRUE=
19007
  AMDEP_FALSE='#'
19008
else
19009
  AMDEP_TRUE='#'
19010
  AMDEP_FALSE=
19011
fi
19012
 
19013
 
19014
if test "`cd $srcdir && pwd`" != "`pwd`"; then
19015
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19016
  # is not polluted with repeated "-I."
19017
  am__isrc=' -I$(srcdir)'
19018
  # test to see if srcdir already configured
19019
  if test -f $srcdir/config.status; then
19020
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19021
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19022
   { (exit 1); exit 1; }; }
19023
  fi
19024
fi
19025
 
19026
# test whether we have cygpath
19027
if test -z "$CYGPATH_W"; then
19028
  if (cygpath --version) >/dev/null 2>/dev/null; then
19029
    CYGPATH_W='cygpath -w'
19030
  else
19031
    CYGPATH_W=echo
19032
  fi
19033
fi
19034
 
19035
 
19036
# Define the identity of the package.
19037
 PACKAGE='or1ksim'
19038
 VERSION='0.3.0'
19039
 
19040
 
19041
cat >>confdefs.h <<_ACEOF
19042
@%:@define PACKAGE "$PACKAGE"
19043
_ACEOF
19044
 
19045
 
19046
cat >>confdefs.h <<_ACEOF
19047
@%:@define VERSION "$VERSION"
19048
_ACEOF
19049
 
19050
# Some tools Automake needs.
19051
 
19052
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19053
 
19054
 
19055
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19056
 
19057
 
19058
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19059
 
19060
 
19061
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19062
 
19063
 
19064
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19065
 
19066
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19067
 
19068
# Installed binaries are usually stripped using `strip' when the user
19069
# run `make install-strip'.  However `strip' might not be the right
19070
# tool to use in cross-compilation environments, therefore Automake
19071
# will honor the `STRIP' environment variable to overrule this program.
19072
if test "$cross_compiling" != no; then
19073
  if test -n "$ac_tool_prefix"; then
19074
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19075
set dummy ${ac_tool_prefix}strip; ac_word=$2
19076
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19077
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19078
if test "${ac_cv_prog_STRIP+set}" = set; then
19079
  echo $ECHO_N "(cached) $ECHO_C" >&6
19080
else
19081
  if test -n "$STRIP"; then
19082
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19083
else
19084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19085
for as_dir in $PATH
19086
do
19087
  IFS=$as_save_IFS
19088
  test -z "$as_dir" && as_dir=.
19089
  for ac_exec_ext in '' $ac_executable_extensions; do
19090
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19091
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19092
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19093
    break 2
19094
  fi
19095
done
19096
done
19097
IFS=$as_save_IFS
19098
 
19099
fi
19100
fi
19101
STRIP=$ac_cv_prog_STRIP
19102
if test -n "$STRIP"; then
19103
  { echo "$as_me:$LINENO: result: $STRIP" >&5
19104
echo "${ECHO_T}$STRIP" >&6; }
19105
else
19106
  { echo "$as_me:$LINENO: result: no" >&5
19107
echo "${ECHO_T}no" >&6; }
19108
fi
19109
 
19110
 
19111
fi
19112
if test -z "$ac_cv_prog_STRIP"; then
19113
  ac_ct_STRIP=$STRIP
19114
  # Extract the first word of "strip", so it can be a program name with args.
19115
set dummy strip; ac_word=$2
19116
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19117
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19118
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19119
  echo $ECHO_N "(cached) $ECHO_C" >&6
19120
else
19121
  if test -n "$ac_ct_STRIP"; then
19122
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19123
else
19124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19125
for as_dir in $PATH
19126
do
19127
  IFS=$as_save_IFS
19128
  test -z "$as_dir" && as_dir=.
19129
  for ac_exec_ext in '' $ac_executable_extensions; do
19130
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19131
    ac_cv_prog_ac_ct_STRIP="strip"
19132
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19133
    break 2
19134
  fi
19135
done
19136
done
19137
IFS=$as_save_IFS
19138
 
19139
fi
19140
fi
19141
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19142
if test -n "$ac_ct_STRIP"; then
19143
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19144
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19145
else
19146
  { echo "$as_me:$LINENO: result: no" >&5
19147
echo "${ECHO_T}no" >&6; }
19148
fi
19149
 
19150
  if test "x$ac_ct_STRIP" = x; then
19151
    STRIP=":"
19152
  else
19153
    case $cross_compiling:$ac_tool_warned in
19154
yes:)
19155
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19156
whose name does not start with the host triplet.  If you think this
19157
configuration is useful to you, please write to autoconf@gnu.org." >&5
19158
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19159
whose name does not start with the host triplet.  If you think this
19160
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19161
ac_tool_warned=yes ;;
19162
esac
19163
    STRIP=$ac_ct_STRIP
19164
  fi
19165
else
19166
  STRIP="$ac_cv_prog_STRIP"
19167
fi
19168
 
19169
fi
19170
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19171
 
19172
# We need awk for the "check" target.  The system "awk" is bad on
19173
# some platforms.
19174
# Always define AMTAR for backward compatibility.
19175
 
19176
AMTAR=${AMTAR-"${am_missing_run}tar"}
19177
 
19178
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19179
 
19180
 
19181
 
19182
 
19183
depcc="$CC"   am_compiler_list=
19184
 
19185
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19186
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19187
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19188
  echo $ECHO_N "(cached) $ECHO_C" >&6
19189
else
19190
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19191
  # We make a subdir and do the tests there.  Otherwise we can end up
19192
  # making bogus files that we don't know about and never remove.  For
19193
  # instance it was reported that on HP-UX the gcc test will end up
19194
  # making a dummy file named `D' -- because `-MD' means `put the output
19195
  # in D'.
19196
  mkdir conftest.dir
19197
  # Copy depcomp to subdir because otherwise we won't find it if we're
19198
  # using a relative directory.
19199
  cp "$am_depcomp" conftest.dir
19200
  cd conftest.dir
19201
  # We will build objects and dependencies in a subdirectory because
19202
  # it helps to detect inapplicable dependency modes.  For instance
19203
  # both Tru64's cc and ICC support -MD to output dependencies as a
19204
  # side effect of compilation, but ICC will put the dependencies in
19205
  # the current directory while Tru64 will put them in the object
19206
  # directory.
19207
  mkdir sub
19208
 
19209
  am_cv_CC_dependencies_compiler_type=none
19210
  if test "$am_compiler_list" = ""; then
19211
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19212
  fi
19213
  for depmode in $am_compiler_list; do
19214
    # Setup a source with many dependencies, because some compilers
19215
    # like to wrap large dependency lists on column 80 (with \), and
19216
    # we should not choose a depcomp mode which is confused by this.
19217
    #
19218
    # We need to recreate these files for each test, as the compiler may
19219
    # overwrite some of them when testing with obscure command lines.
19220
    # This happens at least with the AIX C compiler.
19221
    : > sub/conftest.c
19222
    for i in 1 2 3 4 5 6; do
19223
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19224
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19225
      # Solaris 8's {/usr,}/bin/sh.
19226
      touch sub/conftst$i.h
19227
    done
19228
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19229
 
19230
    case $depmode in
19231
    nosideeffect)
19232
      # after this tag, mechanisms are not by side-effect, so they'll
19233
      # only be used when explicitly requested
19234
      if test "x$enable_dependency_tracking" = xyes; then
19235
        continue
19236
      else
19237
        break
19238
      fi
19239
      ;;
19240
    none) break ;;
19241
    esac
19242
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19243
    # mode.  It turns out that the SunPro C++ compiler does not properly
19244
    # handle `-M -o', and we need to detect this.
19245
    if depmode=$depmode \
19246
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19247
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19248
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19249
         >/dev/null 2>conftest.err &&
19250
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19251
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19252
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19253
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19254
      # icc doesn't choke on unknown options, it will just issue warnings
19255
      # or remarks (even with -Werror).  So we grep stderr for any message
19256
      # that says an option was ignored or not supported.
19257
      # When given -MP, icc 7.0 and 7.1 complain thusly:
19258
      #   icc: Command line warning: ignoring option '-M'; no argument required
19259
      # The diagnosis changed in icc 8.0:
19260
      #   icc: Command line remark: option '-MP' not supported
19261
      if (grep 'ignoring option' conftest.err ||
19262
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19263
        am_cv_CC_dependencies_compiler_type=$depmode
19264
        break
19265
      fi
19266
    fi
19267
  done
19268
 
19269
  cd ..
19270
  rm -rf conftest.dir
19271
else
19272
  am_cv_CC_dependencies_compiler_type=none
19273
fi
19274
 
19275
fi
19276
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19277
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19278
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19279
 
19280
 if
19281
  test "x$enable_dependency_tracking" != xno \
19282
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19283
  am__fastdepCC_TRUE=
19284
  am__fastdepCC_FALSE='#'
19285
else
19286
  am__fastdepCC_TRUE='#'
19287
  am__fastdepCC_FALSE=
19288
fi
19289
 
19290
 
19291
depcc="$CXX"  am_compiler_list=
19292
 
19293
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19294
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19295
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19296
  echo $ECHO_N "(cached) $ECHO_C" >&6
19297
else
19298
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19299
  # We make a subdir and do the tests there.  Otherwise we can end up
19300
  # making bogus files that we don't know about and never remove.  For
19301
  # instance it was reported that on HP-UX the gcc test will end up
19302
  # making a dummy file named `D' -- because `-MD' means `put the output
19303
  # in D'.
19304
  mkdir conftest.dir
19305
  # Copy depcomp to subdir because otherwise we won't find it if we're
19306
  # using a relative directory.
19307
  cp "$am_depcomp" conftest.dir
19308
  cd conftest.dir
19309
  # We will build objects and dependencies in a subdirectory because
19310
  # it helps to detect inapplicable dependency modes.  For instance
19311
  # both Tru64's cc and ICC support -MD to output dependencies as a
19312
  # side effect of compilation, but ICC will put the dependencies in
19313
  # the current directory while Tru64 will put them in the object
19314
  # directory.
19315
  mkdir sub
19316
 
19317
  am_cv_CXX_dependencies_compiler_type=none
19318
  if test "$am_compiler_list" = ""; then
19319
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19320
  fi
19321
  for depmode in $am_compiler_list; do
19322
    # Setup a source with many dependencies, because some compilers
19323
    # like to wrap large dependency lists on column 80 (with \), and
19324
    # we should not choose a depcomp mode which is confused by this.
19325
    #
19326
    # We need to recreate these files for each test, as the compiler may
19327
    # overwrite some of them when testing with obscure command lines.
19328
    # This happens at least with the AIX C compiler.
19329
    : > sub/conftest.c
19330
    for i in 1 2 3 4 5 6; do
19331
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19332
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19333
      # Solaris 8's {/usr,}/bin/sh.
19334
      touch sub/conftst$i.h
19335
    done
19336
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19337
 
19338
    case $depmode in
19339
    nosideeffect)
19340
      # after this tag, mechanisms are not by side-effect, so they'll
19341
      # only be used when explicitly requested
19342
      if test "x$enable_dependency_tracking" = xyes; then
19343
        continue
19344
      else
19345
        break
19346
      fi
19347
      ;;
19348
    none) break ;;
19349
    esac
19350
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19351
    # mode.  It turns out that the SunPro C++ compiler does not properly
19352
    # handle `-M -o', and we need to detect this.
19353
    if depmode=$depmode \
19354
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19355
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19356
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19357
         >/dev/null 2>conftest.err &&
19358
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19359
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19360
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19361
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19362
      # icc doesn't choke on unknown options, it will just issue warnings
19363
      # or remarks (even with -Werror).  So we grep stderr for any message
19364
      # that says an option was ignored or not supported.
19365
      # When given -MP, icc 7.0 and 7.1 complain thusly:
19366
      #   icc: Command line warning: ignoring option '-M'; no argument required
19367
      # The diagnosis changed in icc 8.0:
19368
      #   icc: Command line remark: option '-MP' not supported
19369
      if (grep 'ignoring option' conftest.err ||
19370
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19371
        am_cv_CXX_dependencies_compiler_type=$depmode
19372
        break
19373
      fi
19374
    fi
19375
  done
19376
 
19377
  cd ..
19378
  rm -rf conftest.dir
19379
else
19380
  am_cv_CXX_dependencies_compiler_type=none
19381
fi
19382
 
19383
fi
19384
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19385
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
19386
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19387
 
19388
 if
19389
  test "x$enable_dependency_tracking" != xno \
19390
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19391
  am__fastdepCXX_TRUE=
19392
  am__fastdepCXX_FALSE='#'
19393
else
19394
  am__fastdepCXX_TRUE='#'
19395
  am__fastdepCXX_FALSE=
19396
fi
19397
 
19398
 
19399
 
19400
ac_config_headers="$ac_config_headers config.h"
19401
 
19402
 
19403
 
19404
 
19405
# make sure we are using a recent autoconf version
19406
 
19407
 
19408
# yuck
19409
case "$target_cpu" in
19410
or32*)  CPU_ARCH=or32;
19411
        ARCH_ISA=OR32;;
19412
dlx*)   CPU_ARCH=dlx;
19413
        ARCH_ISA=DLX;;
19414
*)      { { echo "$as_me:$LINENO: error: Unknown target architechture $target_cpu" >&5
19415
echo "$as_me: error: Unknown target architechture $target_cpu" >&2;}
19416
   { (exit 1); exit 1; }; };;
19417
esac
19418
 
19419
 
19420
# We want these before the checks, so the checks can modify their values.
19421
test -z "$CFLAGS" && CFLAGS="-g -Wall" auto_cflags=1
19422
 
19423
ac_ext=c
19424
ac_cpp='$CPP $CPPFLAGS'
19425
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19428
if test -n "$ac_tool_prefix"; then
19429
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19430
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19431
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19432
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19433
if test "${ac_cv_prog_CC+set}" = set; then
19434
  echo $ECHO_N "(cached) $ECHO_C" >&6
19435
else
19436
  if test -n "$CC"; then
19437
  ac_cv_prog_CC="$CC" # Let the user override the test.
19438
else
19439
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19440
for as_dir in $PATH
19441
do
19442
  IFS=$as_save_IFS
19443
  test -z "$as_dir" && as_dir=.
19444
  for ac_exec_ext in '' $ac_executable_extensions; do
19445
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19446
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19447
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19448
    break 2
19449
  fi
19450
done
19451
done
19452
IFS=$as_save_IFS
19453
 
19454
fi
19455
fi
19456
CC=$ac_cv_prog_CC
19457
if test -n "$CC"; then
19458
  { echo "$as_me:$LINENO: result: $CC" >&5
19459
echo "${ECHO_T}$CC" >&6; }
19460
else
19461
  { echo "$as_me:$LINENO: result: no" >&5
19462
echo "${ECHO_T}no" >&6; }
19463
fi
19464
 
19465
 
19466
fi
19467
if test -z "$ac_cv_prog_CC"; then
19468
  ac_ct_CC=$CC
19469
  # Extract the first word of "gcc", so it can be a program name with args.
19470
set dummy gcc; ac_word=$2
19471
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19472
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19473
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19474
  echo $ECHO_N "(cached) $ECHO_C" >&6
19475
else
19476
  if test -n "$ac_ct_CC"; then
19477
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19478
else
19479
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19480
for as_dir in $PATH
19481
do
19482
  IFS=$as_save_IFS
19483
  test -z "$as_dir" && as_dir=.
19484
  for ac_exec_ext in '' $ac_executable_extensions; do
19485
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19486
    ac_cv_prog_ac_ct_CC="gcc"
19487
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19488
    break 2
19489
  fi
19490
done
19491
done
19492
IFS=$as_save_IFS
19493
 
19494
fi
19495
fi
19496
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19497
if test -n "$ac_ct_CC"; then
19498
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19499
echo "${ECHO_T}$ac_ct_CC" >&6; }
19500
else
19501
  { echo "$as_me:$LINENO: result: no" >&5
19502
echo "${ECHO_T}no" >&6; }
19503
fi
19504
 
19505
  if test "x$ac_ct_CC" = x; then
19506
    CC=""
19507
  else
19508
    case $cross_compiling:$ac_tool_warned in
19509
yes:)
19510
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19511
whose name does not start with the host triplet.  If you think this
19512
configuration is useful to you, please write to autoconf@gnu.org." >&5
19513
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19514
whose name does not start with the host triplet.  If you think this
19515
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19516
ac_tool_warned=yes ;;
19517
esac
19518
    CC=$ac_ct_CC
19519
  fi
19520
else
19521
  CC="$ac_cv_prog_CC"
19522
fi
19523
 
19524
if test -z "$CC"; then
19525
          if test -n "$ac_tool_prefix"; then
19526
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19527
set dummy ${ac_tool_prefix}cc; ac_word=$2
19528
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19529
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19530
if test "${ac_cv_prog_CC+set}" = set; then
19531
  echo $ECHO_N "(cached) $ECHO_C" >&6
19532
else
19533
  if test -n "$CC"; then
19534
  ac_cv_prog_CC="$CC" # Let the user override the test.
19535
else
19536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19537
for as_dir in $PATH
19538
do
19539
  IFS=$as_save_IFS
19540
  test -z "$as_dir" && as_dir=.
19541
  for ac_exec_ext in '' $ac_executable_extensions; do
19542
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19543
    ac_cv_prog_CC="${ac_tool_prefix}cc"
19544
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19545
    break 2
19546
  fi
19547
done
19548
done
19549
IFS=$as_save_IFS
19550
 
19551
fi
19552
fi
19553
CC=$ac_cv_prog_CC
19554
if test -n "$CC"; then
19555
  { echo "$as_me:$LINENO: result: $CC" >&5
19556
echo "${ECHO_T}$CC" >&6; }
19557
else
19558
  { echo "$as_me:$LINENO: result: no" >&5
19559
echo "${ECHO_T}no" >&6; }
19560
fi
19561
 
19562
 
19563
  fi
19564
fi
19565
if test -z "$CC"; then
19566
  # Extract the first word of "cc", so it can be a program name with args.
19567
set dummy cc; ac_word=$2
19568
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19569
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19570
if test "${ac_cv_prog_CC+set}" = set; then
19571
  echo $ECHO_N "(cached) $ECHO_C" >&6
19572
else
19573
  if test -n "$CC"; then
19574
  ac_cv_prog_CC="$CC" # Let the user override the test.
19575
else
19576
  ac_prog_rejected=no
19577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19578
for as_dir in $PATH
19579
do
19580
  IFS=$as_save_IFS
19581
  test -z "$as_dir" && as_dir=.
19582
  for ac_exec_ext in '' $ac_executable_extensions; do
19583
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19584
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19585
       ac_prog_rejected=yes
19586
       continue
19587
     fi
19588
    ac_cv_prog_CC="cc"
19589
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19590
    break 2
19591
  fi
19592
done
19593
done
19594
IFS=$as_save_IFS
19595
 
19596
if test $ac_prog_rejected = yes; then
19597
  # We found a bogon in the path, so make sure we never use it.
19598
  set dummy $ac_cv_prog_CC
19599
  shift
19600
  if test $@%:@ != 0; then
19601
    # We chose a different compiler from the bogus one.
19602
    # However, it has the same basename, so the bogon will be chosen
19603
    # first if we set CC to just the basename; use the full file name.
19604
    shift
19605
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19606
  fi
19607
fi
19608
fi
19609
fi
19610
CC=$ac_cv_prog_CC
19611
if test -n "$CC"; then
19612
  { echo "$as_me:$LINENO: result: $CC" >&5
19613
echo "${ECHO_T}$CC" >&6; }
19614
else
19615
  { echo "$as_me:$LINENO: result: no" >&5
19616
echo "${ECHO_T}no" >&6; }
19617
fi
19618
 
19619
 
19620
fi
19621
if test -z "$CC"; then
19622
  if test -n "$ac_tool_prefix"; then
19623
  for ac_prog in cl.exe
19624
  do
19625
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19626
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19627
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19628
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19629
if test "${ac_cv_prog_CC+set}" = set; then
19630
  echo $ECHO_N "(cached) $ECHO_C" >&6
19631
else
19632
  if test -n "$CC"; then
19633
  ac_cv_prog_CC="$CC" # Let the user override the test.
19634
else
19635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19636
for as_dir in $PATH
19637
do
19638
  IFS=$as_save_IFS
19639
  test -z "$as_dir" && as_dir=.
19640
  for ac_exec_ext in '' $ac_executable_extensions; do
19641
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19642
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19643
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19644
    break 2
19645
  fi
19646
done
19647
done
19648
IFS=$as_save_IFS
19649
 
19650
fi
19651
fi
19652
CC=$ac_cv_prog_CC
19653
if test -n "$CC"; then
19654
  { echo "$as_me:$LINENO: result: $CC" >&5
19655
echo "${ECHO_T}$CC" >&6; }
19656
else
19657
  { echo "$as_me:$LINENO: result: no" >&5
19658
echo "${ECHO_T}no" >&6; }
19659
fi
19660
 
19661
 
19662
    test -n "$CC" && break
19663
  done
19664
fi
19665
if test -z "$CC"; then
19666
  ac_ct_CC=$CC
19667
  for ac_prog in cl.exe
19668
do
19669
  # Extract the first word of "$ac_prog", so it can be a program name with args.
19670
set dummy $ac_prog; ac_word=$2
19671
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19672
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19673
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19674
  echo $ECHO_N "(cached) $ECHO_C" >&6
19675
else
19676
  if test -n "$ac_ct_CC"; then
19677
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19678
else
19679
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19680
for as_dir in $PATH
19681
do
19682
  IFS=$as_save_IFS
19683
  test -z "$as_dir" && as_dir=.
19684
  for ac_exec_ext in '' $ac_executable_extensions; do
19685
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19686
    ac_cv_prog_ac_ct_CC="$ac_prog"
19687
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19688
    break 2
19689
  fi
19690
done
19691
done
19692
IFS=$as_save_IFS
19693
 
19694
fi
19695
fi
19696
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19697
if test -n "$ac_ct_CC"; then
19698
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19699
echo "${ECHO_T}$ac_ct_CC" >&6; }
19700
else
19701
  { echo "$as_me:$LINENO: result: no" >&5
19702
echo "${ECHO_T}no" >&6; }
19703
fi
19704
 
19705
 
19706
  test -n "$ac_ct_CC" && break
19707
done
19708
 
19709
  if test "x$ac_ct_CC" = x; then
19710
    CC=""
19711
  else
19712
    case $cross_compiling:$ac_tool_warned in
19713
yes:)
19714
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19715
whose name does not start with the host triplet.  If you think this
19716
configuration is useful to you, please write to autoconf@gnu.org." >&5
19717
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19718
whose name does not start with the host triplet.  If you think this
19719
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19720
ac_tool_warned=yes ;;
19721
esac
19722
    CC=$ac_ct_CC
19723
  fi
19724
fi
19725
 
19726
fi
19727
 
19728
 
19729
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19730
See \`config.log' for more details." >&5
19731
echo "$as_me: error: no acceptable C compiler found in \$PATH
19732
See \`config.log' for more details." >&2;}
19733
   { (exit 1); exit 1; }; }
19734
 
19735
# Provide some information about the compiler.
19736
echo "$as_me:$LINENO: checking for C compiler version" >&5
19737
ac_compiler=`set X $ac_compile; echo $2`
19738
{ (ac_try="$ac_compiler --version >&5"
19739
case "(($ac_try" in
19740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741
  *) ac_try_echo=$ac_try;;
19742
esac
19743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744
  (eval "$ac_compiler --version >&5") 2>&5
19745
  ac_status=$?
19746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747
  (exit $ac_status); }
19748
{ (ac_try="$ac_compiler -v >&5"
19749
case "(($ac_try" in
19750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751
  *) ac_try_echo=$ac_try;;
19752
esac
19753
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754
  (eval "$ac_compiler -v >&5") 2>&5
19755
  ac_status=$?
19756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757
  (exit $ac_status); }
19758
{ (ac_try="$ac_compiler -V >&5"
19759
case "(($ac_try" in
19760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761
  *) ac_try_echo=$ac_try;;
19762
esac
19763
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19764
  (eval "$ac_compiler -V >&5") 2>&5
19765
  ac_status=$?
19766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767
  (exit $ac_status); }
19768
 
19769
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19770
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19771
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19772
  echo $ECHO_N "(cached) $ECHO_C" >&6
19773
else
19774
  cat >conftest.$ac_ext <<_ACEOF
19775
/* confdefs.h.  */
19776
_ACEOF
19777
cat confdefs.h >>conftest.$ac_ext
19778
cat >>conftest.$ac_ext <<_ACEOF
19779
/* end confdefs.h.  */
19780
 
19781
int
19782
main ()
19783
{
19784
#ifndef __GNUC__
19785
       choke me
19786
#endif
19787
 
19788
  ;
19789
  return 0;
19790
}
19791
_ACEOF
19792
rm -f conftest.$ac_objext
19793
if { (ac_try="$ac_compile"
19794
case "(($ac_try" in
19795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796
  *) ac_try_echo=$ac_try;;
19797
esac
19798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799
  (eval "$ac_compile") 2>conftest.er1
19800
  ac_status=$?
19801
  grep -v '^ *+' conftest.er1 >conftest.err
19802
  rm -f conftest.er1
19803
  cat conftest.err >&5
19804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805
  (exit $ac_status); } && {
19806
         test -z "$ac_c_werror_flag" ||
19807
         test ! -s conftest.err
19808
       } && test -s conftest.$ac_objext; then
19809
  ac_compiler_gnu=yes
19810
else
19811
  echo "$as_me: failed program was:" >&5
19812
sed 's/^/| /' conftest.$ac_ext >&5
19813
 
19814
        ac_compiler_gnu=no
19815
fi
19816
 
19817
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19818
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19819
 
19820
fi
19821
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19822
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19823
GCC=`test $ac_compiler_gnu = yes && echo yes`
19824
ac_test_CFLAGS=${CFLAGS+set}
19825
ac_save_CFLAGS=$CFLAGS
19826
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19827
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19828
if test "${ac_cv_prog_cc_g+set}" = set; then
19829
  echo $ECHO_N "(cached) $ECHO_C" >&6
19830
else
19831
  ac_save_c_werror_flag=$ac_c_werror_flag
19832
   ac_c_werror_flag=yes
19833
   ac_cv_prog_cc_g=no
19834
   CFLAGS="-g"
19835
   cat >conftest.$ac_ext <<_ACEOF
19836
/* confdefs.h.  */
19837
_ACEOF
19838
cat confdefs.h >>conftest.$ac_ext
19839
cat >>conftest.$ac_ext <<_ACEOF
19840
/* end confdefs.h.  */
19841
 
19842
int
19843
main ()
19844
{
19845
 
19846
  ;
19847
  return 0;
19848
}
19849
_ACEOF
19850
rm -f conftest.$ac_objext
19851
if { (ac_try="$ac_compile"
19852
case "(($ac_try" in
19853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854
  *) ac_try_echo=$ac_try;;
19855
esac
19856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857
  (eval "$ac_compile") 2>conftest.er1
19858
  ac_status=$?
19859
  grep -v '^ *+' conftest.er1 >conftest.err
19860
  rm -f conftest.er1
19861
  cat conftest.err >&5
19862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863
  (exit $ac_status); } && {
19864
         test -z "$ac_c_werror_flag" ||
19865
         test ! -s conftest.err
19866
       } && test -s conftest.$ac_objext; then
19867
  ac_cv_prog_cc_g=yes
19868
else
19869
  echo "$as_me: failed program was:" >&5
19870
sed 's/^/| /' conftest.$ac_ext >&5
19871
 
19872
        CFLAGS=""
19873
      cat >conftest.$ac_ext <<_ACEOF
19874
/* confdefs.h.  */
19875
_ACEOF
19876
cat confdefs.h >>conftest.$ac_ext
19877
cat >>conftest.$ac_ext <<_ACEOF
19878
/* end confdefs.h.  */
19879
 
19880
int
19881
main ()
19882
{
19883
 
19884
  ;
19885
  return 0;
19886
}
19887
_ACEOF
19888
rm -f conftest.$ac_objext
19889
if { (ac_try="$ac_compile"
19890
case "(($ac_try" in
19891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892
  *) ac_try_echo=$ac_try;;
19893
esac
19894
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895
  (eval "$ac_compile") 2>conftest.er1
19896
  ac_status=$?
19897
  grep -v '^ *+' conftest.er1 >conftest.err
19898
  rm -f conftest.er1
19899
  cat conftest.err >&5
19900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901
  (exit $ac_status); } && {
19902
         test -z "$ac_c_werror_flag" ||
19903
         test ! -s conftest.err
19904
       } && test -s conftest.$ac_objext; then
19905
  :
19906
else
19907
  echo "$as_me: failed program was:" >&5
19908
sed 's/^/| /' conftest.$ac_ext >&5
19909
 
19910
        ac_c_werror_flag=$ac_save_c_werror_flag
19911
         CFLAGS="-g"
19912
         cat >conftest.$ac_ext <<_ACEOF
19913
/* confdefs.h.  */
19914
_ACEOF
19915
cat confdefs.h >>conftest.$ac_ext
19916
cat >>conftest.$ac_ext <<_ACEOF
19917
/* end confdefs.h.  */
19918
 
19919
int
19920
main ()
19921
{
19922
 
19923
  ;
19924
  return 0;
19925
}
19926
_ACEOF
19927
rm -f conftest.$ac_objext
19928
if { (ac_try="$ac_compile"
19929
case "(($ac_try" in
19930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19931
  *) ac_try_echo=$ac_try;;
19932
esac
19933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19934
  (eval "$ac_compile") 2>conftest.er1
19935
  ac_status=$?
19936
  grep -v '^ *+' conftest.er1 >conftest.err
19937
  rm -f conftest.er1
19938
  cat conftest.err >&5
19939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940
  (exit $ac_status); } && {
19941
         test -z "$ac_c_werror_flag" ||
19942
         test ! -s conftest.err
19943
       } && test -s conftest.$ac_objext; then
19944
  ac_cv_prog_cc_g=yes
19945
else
19946
  echo "$as_me: failed program was:" >&5
19947
sed 's/^/| /' conftest.$ac_ext >&5
19948
 
19949
 
19950
fi
19951
 
19952
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19953
fi
19954
 
19955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19956
fi
19957
 
19958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19959
   ac_c_werror_flag=$ac_save_c_werror_flag
19960
fi
19961
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19962
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19963
if test "$ac_test_CFLAGS" = set; then
19964
  CFLAGS=$ac_save_CFLAGS
19965
elif test $ac_cv_prog_cc_g = yes; then
19966
  if test "$GCC" = yes; then
19967
    CFLAGS="-g -O2"
19968
  else
19969
    CFLAGS="-g"
19970
  fi
19971
else
19972
  if test "$GCC" = yes; then
19973
    CFLAGS="-O2"
19974
  else
19975
    CFLAGS=
19976
  fi
19977
fi
19978
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19979
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19980
if test "${ac_cv_prog_cc_c89+set}" = set; then
19981
  echo $ECHO_N "(cached) $ECHO_C" >&6
19982
else
19983
  ac_cv_prog_cc_c89=no
19984
ac_save_CC=$CC
19985
cat >conftest.$ac_ext <<_ACEOF
19986
/* confdefs.h.  */
19987
_ACEOF
19988
cat confdefs.h >>conftest.$ac_ext
19989
cat >>conftest.$ac_ext <<_ACEOF
19990
/* end confdefs.h.  */
19991
#include 
19992
#include 
19993
#include 
19994
#include 
19995
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19996
struct buf { int x; };
19997
FILE * (*rcsopen) (struct buf *, struct stat *, int);
19998
static char *e (p, i)
19999
     char **p;
20000
     int i;
20001
{
20002
  return p[i];
20003
}
20004
static char *f (char * (*g) (char **, int), char **p, ...)
20005
{
20006
  char *s;
20007
  va_list v;
20008
  va_start (v,p);
20009
  s = g (p, va_arg (v,int));
20010
  va_end (v);
20011
  return s;
20012
}
20013
 
20014
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20015
   function prototypes and stuff, but not '\xHH' hex character constants.
20016
   These don't provoke an error unfortunately, instead are silently treated
20017
   as 'x'.  The following induces an error, until -std is added to get
20018
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20019
   array size at least.  It's necessary to write '\x00'==0 to get something
20020
   that's true only with -std.  */
20021
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20022
 
20023
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20024
   inside strings and character constants.  */
20025
#define FOO(x) 'x'
20026
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20027
 
20028
int test (int i, double x);
20029
struct s1 {int (*f) (int a);};
20030
struct s2 {int (*f) (double a);};
20031
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20032
int argc;
20033
char **argv;
20034
int
20035
main ()
20036
{
20037
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20038
  ;
20039
  return 0;
20040
}
20041
_ACEOF
20042
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20043
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20044
do
20045
  CC="$ac_save_CC $ac_arg"
20046
  rm -f conftest.$ac_objext
20047
if { (ac_try="$ac_compile"
20048
case "(($ac_try" in
20049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050
  *) ac_try_echo=$ac_try;;
20051
esac
20052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053
  (eval "$ac_compile") 2>conftest.er1
20054
  ac_status=$?
20055
  grep -v '^ *+' conftest.er1 >conftest.err
20056
  rm -f conftest.er1
20057
  cat conftest.err >&5
20058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059
  (exit $ac_status); } && {
20060
         test -z "$ac_c_werror_flag" ||
20061
         test ! -s conftest.err
20062
       } && test -s conftest.$ac_objext; then
20063
  ac_cv_prog_cc_c89=$ac_arg
20064
else
20065
  echo "$as_me: failed program was:" >&5
20066
sed 's/^/| /' conftest.$ac_ext >&5
20067
 
20068
 
20069
fi
20070
 
20071
rm -f core conftest.err conftest.$ac_objext
20072
  test "x$ac_cv_prog_cc_c89" != "xno" && break
20073
done
20074
rm -f conftest.$ac_ext
20075
CC=$ac_save_CC
20076
 
20077
fi
20078
# AC_CACHE_VAL
20079
case "x$ac_cv_prog_cc_c89" in
20080
  x)
20081
    { echo "$as_me:$LINENO: result: none needed" >&5
20082
echo "${ECHO_T}none needed" >&6; } ;;
20083
  xno)
20084
    { echo "$as_me:$LINENO: result: unsupported" >&5
20085
echo "${ECHO_T}unsupported" >&6; } ;;
20086
  *)
20087
    CC="$CC $ac_cv_prog_cc_c89"
20088
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20089
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20090
esac
20091
 
20092
 
20093
ac_ext=c
20094
ac_cpp='$CPP $CPPFLAGS'
20095
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20096
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20097
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20098
 
20099
if test "x$CC" != xcc; then
20100
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20101
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20102
else
20103
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20104
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20105
fi
20106
set dummy $CC; ac_cc=`echo $2 |
20107
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20108
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20109
  echo $ECHO_N "(cached) $ECHO_C" >&6
20110
else
20111
  cat >conftest.$ac_ext <<_ACEOF
20112
/* confdefs.h.  */
20113
_ACEOF
20114
cat confdefs.h >>conftest.$ac_ext
20115
cat >>conftest.$ac_ext <<_ACEOF
20116
/* end confdefs.h.  */
20117
 
20118
int
20119
main ()
20120
{
20121
 
20122
  ;
20123
  return 0;
20124
}
20125
_ACEOF
20126
# Make sure it works both with $CC and with simple cc.
20127
# We do the test twice because some compilers refuse to overwrite an
20128
# existing .o file with -o, though they will create one.
20129
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20130
rm -f conftest2.*
20131
if { (case "(($ac_try" in
20132
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133
  *) ac_try_echo=$ac_try;;
20134
esac
20135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136
  (eval "$ac_try") 2>&5
20137
  ac_status=$?
20138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139
  (exit $ac_status); } &&
20140
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
20141
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142
  *) ac_try_echo=$ac_try;;
20143
esac
20144
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145
  (eval "$ac_try") 2>&5
20146
  ac_status=$?
20147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148
  (exit $ac_status); };
20149
then
20150
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20151
  if test "x$CC" != xcc; then
20152
    # Test first that cc exists at all.
20153
    if { ac_try='cc -c conftest.$ac_ext >&5'
20154
  { (case "(($ac_try" in
20155
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156
  *) ac_try_echo=$ac_try;;
20157
esac
20158
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159
  (eval "$ac_try") 2>&5
20160
  ac_status=$?
20161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162
  (exit $ac_status); }; }; then
20163
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20164
      rm -f conftest2.*
20165
      if { (case "(($ac_try" in
20166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167
  *) ac_try_echo=$ac_try;;
20168
esac
20169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170
  (eval "$ac_try") 2>&5
20171
  ac_status=$?
20172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173
  (exit $ac_status); } &&
20174
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
20175
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176
  *) ac_try_echo=$ac_try;;
20177
esac
20178
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179
  (eval "$ac_try") 2>&5
20180
  ac_status=$?
20181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182
  (exit $ac_status); };
20183
      then
20184
        # cc works too.
20185
        :
20186
      else
20187
        # cc exists but doesn't like -o.
20188
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
20189
      fi
20190
    fi
20191
  fi
20192
else
20193
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
20194
fi
20195
rm -f core conftest*
20196
 
20197
fi
20198
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20199
  { echo "$as_me:$LINENO: result: yes" >&5
20200
echo "${ECHO_T}yes" >&6; }
20201
else
20202
  { echo "$as_me:$LINENO: result: no" >&5
20203
echo "${ECHO_T}no" >&6; }
20204
 
20205
cat >>confdefs.h <<\_ACEOF
20206
@%:@define NO_MINUS_C_MINUS_O 1
20207
_ACEOF
20208
 
20209
fi
20210
 
20211
# FIXME: we rely on the cache variable name because
20212
# there is no other way.
20213
set dummy $CC
20214
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20215
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20216
   # Losing compiler, so override with the script.
20217
   # FIXME: It is wrong to rewrite CC.
20218
   # But if we don't then we get into trouble of one sort or another.
20219
   # A longer-term fix would be to have automake use am__CC in this case,
20220
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20221
   CC="$am_aux_dir/compile $CC"
20222
fi
20223
 
20224
 
20225
 
20226
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20227
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20228
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20229
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20230
  echo $ECHO_N "(cached) $ECHO_C" >&6
20231
else
20232
  cat >conftest.make <<\_ACEOF
20233
SHELL = /bin/sh
20234
all:
20235
        @echo '@@@%%%=$(MAKE)=@@@%%%'
20236
_ACEOF
20237
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20238
case `${MAKE-make} -f conftest.make 2>/dev/null` in
20239
  *@@@%%%=?*=@@@%%%*)
20240
    eval ac_cv_prog_make_${ac_make}_set=yes;;
20241
  *)
20242
    eval ac_cv_prog_make_${ac_make}_set=no;;
20243
esac
20244
rm -f conftest.make
20245
fi
20246
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20247
  { echo "$as_me:$LINENO: result: yes" >&5
20248
echo "${ECHO_T}yes" >&6; }
20249
  SET_MAKE=
20250
else
20251
  { echo "$as_me:$LINENO: result: no" >&5
20252
echo "${ECHO_T}no" >&6; }
20253
  SET_MAKE="MAKE=${MAKE-make}"
20254
fi
20255
 
20256
 
20257
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
20258
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2 -D$ARCH_ISA"
20259
 
20260
if test $ac_cv_c_compiler_gnu = yes; then
20261
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20262
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
20263
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20264
  echo $ECHO_N "(cached) $ECHO_C" >&6
20265
else
20266
    ac_pattern="Autoconf.*'x'"
20267
  cat >conftest.$ac_ext <<_ACEOF
20268
/* confdefs.h.  */
20269
_ACEOF
20270
cat confdefs.h >>conftest.$ac_ext
20271
cat >>conftest.$ac_ext <<_ACEOF
20272
/* end confdefs.h.  */
20273
#include 
20274
Autoconf TIOCGETP
20275
_ACEOF
20276
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20277
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
20278
  ac_cv_prog_gcc_traditional=yes
20279
else
20280
  ac_cv_prog_gcc_traditional=no
20281
fi
20282
rm -f conftest*
20283
 
20284
 
20285
  if test $ac_cv_prog_gcc_traditional = no; then
20286
    cat >conftest.$ac_ext <<_ACEOF
20287
/* confdefs.h.  */
20288
_ACEOF
20289
cat confdefs.h >>conftest.$ac_ext
20290
cat >>conftest.$ac_ext <<_ACEOF
20291
/* end confdefs.h.  */
20292
#include 
20293
Autoconf TCGETA
20294
_ACEOF
20295
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20296
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
20297
  ac_cv_prog_gcc_traditional=yes
20298
fi
20299
rm -f conftest*
20300
 
20301
  fi
20302
fi
20303
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20304
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
20305
  if test $ac_cv_prog_gcc_traditional = yes; then
20306
    CC="$CC -traditional"
20307
  fi
20308
fi
20309
 
20310
# Find a good install program.  We prefer a C program (faster),
20311
# so one script is as good as another.  But avoid the broken or
20312
# incompatible versions:
20313
# SysV /etc/install, /usr/sbin/install
20314
# SunOS /usr/etc/install
20315
# IRIX /sbin/install
20316
# AIX /bin/install
20317
# AmigaOS /C/install, which installs bootblocks on floppy discs
20318
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20319
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20320
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20321
# OS/2's system install, which has a completely different semantic
20322
# ./install, which can be erroneously created by make from ./install.sh.
20323
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20324
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20325
if test -z "$INSTALL"; then
20326
if test "${ac_cv_path_install+set}" = set; then
20327
  echo $ECHO_N "(cached) $ECHO_C" >&6
20328
else
20329
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20330
for as_dir in $PATH
20331
do
20332
  IFS=$as_save_IFS
20333
  test -z "$as_dir" && as_dir=.
20334
  # Account for people who put trailing slashes in PATH elements.
20335
case $as_dir/ in
20336
  ./ | .// | /cC/* | \
20337
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20338
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20339
  /usr/ucb/* ) ;;
20340
  *)
20341
    # OSF1 and SCO ODT 3.0 have their own names for install.
20342
    # Don't use installbsd from OSF since it installs stuff as root
20343
    # by default.
20344
    for ac_prog in ginstall scoinst install; do
20345
      for ac_exec_ext in '' $ac_executable_extensions; do
20346
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20347
          if test $ac_prog = install &&
20348
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20349
            # AIX install.  It has an incompatible calling convention.
20350
            :
20351
          elif test $ac_prog = install &&
20352
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20353
            # program-specific install script used by HP pwplus--don't use.
20354
            :
20355
          else
20356
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20357
            break 3
20358
          fi
20359
        fi
20360
      done
20361
    done
20362
    ;;
20363
esac
20364
done
20365
IFS=$as_save_IFS
20366
 
20367
 
20368
fi
20369
  if test "${ac_cv_path_install+set}" = set; then
20370
    INSTALL=$ac_cv_path_install
20371
  else
20372
    # As a last resort, use the slow shell script.  Don't cache a
20373
    # value for INSTALL within a source directory, because that will
20374
    # break other packages using the cache if that directory is
20375
    # removed, or if the value is a relative name.
20376
    INSTALL=$ac_install_sh
20377
  fi
20378
fi
20379
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
20380
echo "${ECHO_T}$INSTALL" >&6; }
20381
 
20382
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20383
# It thinks the first close brace ends the variable substitution.
20384
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20385
 
20386
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20387
 
20388
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20389
 
20390
# Extract the first word of "ar", so it can be a program name with args.
20391
set dummy ar; ac_word=$2
20392
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20393
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20394
if test "${ac_cv_prog_AR+set}" = set; then
20395
  echo $ECHO_N "(cached) $ECHO_C" >&6
20396
else
20397
  if test -n "$AR"; then
20398
  ac_cv_prog_AR="$AR" # Let the user override the test.
20399
else
20400
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20401
for as_dir in $PATH
20402
do
20403
  IFS=$as_save_IFS
20404
  test -z "$as_dir" && as_dir=.
20405
  for ac_exec_ext in '' $ac_executable_extensions; do
20406
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20407
    ac_cv_prog_AR="ar"
20408
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20409
    break 2
20410
  fi
20411
done
20412
done
20413
IFS=$as_save_IFS
20414
 
20415
fi
20416
fi
20417
AR=$ac_cv_prog_AR
20418
if test -n "$AR"; then
20419
  { echo "$as_me:$LINENO: result: $AR" >&5
20420
echo "${ECHO_T}$AR" >&6; }
20421
else
20422
  { echo "$as_me:$LINENO: result: no" >&5
20423
echo "${ECHO_T}no" >&6; }
20424
fi
20425
 
20426
 
20427
# Set default for ARFLAGS, since autoconf does not have a macro for it.
20428
# This allows people to set it when running configure or make
20429
test -n "$ARFLAGS" || ARFLAGS="cr"
20430
 
20431
MAKE_SHELL=/bin/sh
20432
 
20433
 
20434
 
20435
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20436
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
20437
if test "${ac_cv_type_signal+set}" = set; then
20438
  echo $ECHO_N "(cached) $ECHO_C" >&6
20439
else
20440
  cat >conftest.$ac_ext <<_ACEOF
20441
/* confdefs.h.  */
20442
_ACEOF
20443
cat confdefs.h >>conftest.$ac_ext
20444
cat >>conftest.$ac_ext <<_ACEOF
20445
/* end confdefs.h.  */
20446
#include 
20447
#include 
20448
 
20449
int
20450
main ()
20451
{
20452
return *(signal (0, 0)) (0) == 1;
20453
  ;
20454
  return 0;
20455
}
20456
_ACEOF
20457
rm -f conftest.$ac_objext
20458
if { (ac_try="$ac_compile"
20459
case "(($ac_try" in
20460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461
  *) ac_try_echo=$ac_try;;
20462
esac
20463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464
  (eval "$ac_compile") 2>conftest.er1
20465
  ac_status=$?
20466
  grep -v '^ *+' conftest.er1 >conftest.err
20467
  rm -f conftest.er1
20468
  cat conftest.err >&5
20469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470
  (exit $ac_status); } && {
20471
         test -z "$ac_c_werror_flag" ||
20472
         test ! -s conftest.err
20473
       } && test -s conftest.$ac_objext; then
20474
  ac_cv_type_signal=int
20475
else
20476
  echo "$as_me: failed program was:" >&5
20477
sed 's/^/| /' conftest.$ac_ext >&5
20478
 
20479
        ac_cv_type_signal=void
20480
fi
20481
 
20482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20483
fi
20484
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20485
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
20486
 
20487
cat >>confdefs.h <<_ACEOF
20488
@%:@define RETSIGTYPE $ac_cv_type_signal
20489
_ACEOF
20490
 
20491
 
20492
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20493
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20494
if test "${ac_cv_header_stat_broken+set}" = set; then
20495
  echo $ECHO_N "(cached) $ECHO_C" >&6
20496
else
20497
  cat >conftest.$ac_ext <<_ACEOF
20498
/* confdefs.h.  */
20499
_ACEOF
20500
cat confdefs.h >>conftest.$ac_ext
20501
cat >>conftest.$ac_ext <<_ACEOF
20502
/* end confdefs.h.  */
20503
#include 
20504
#include 
20505
 
20506
#if defined S_ISBLK && defined S_IFDIR
20507
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20508
#endif
20509
 
20510
#if defined S_ISBLK && defined S_IFCHR
20511
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20512
#endif
20513
 
20514
#if defined S_ISLNK && defined S_IFREG
20515
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20516
#endif
20517
 
20518
#if defined S_ISSOCK && defined S_IFREG
20519
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20520
#endif
20521
 
20522
_ACEOF
20523
rm -f conftest.$ac_objext
20524
if { (ac_try="$ac_compile"
20525
case "(($ac_try" in
20526
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527
  *) ac_try_echo=$ac_try;;
20528
esac
20529
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530
  (eval "$ac_compile") 2>conftest.er1
20531
  ac_status=$?
20532
  grep -v '^ *+' conftest.er1 >conftest.err
20533
  rm -f conftest.er1
20534
  cat conftest.err >&5
20535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536
  (exit $ac_status); } && {
20537
         test -z "$ac_c_werror_flag" ||
20538
         test ! -s conftest.err
20539
       } && test -s conftest.$ac_objext; then
20540
  ac_cv_header_stat_broken=no
20541
else
20542
  echo "$as_me: failed program was:" >&5
20543
sed 's/^/| /' conftest.$ac_ext >&5
20544
 
20545
        ac_cv_header_stat_broken=yes
20546
fi
20547
 
20548
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20549
fi
20550
{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20551
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20552
if test $ac_cv_header_stat_broken = yes; then
20553
 
20554
cat >>confdefs.h <<\_ACEOF
20555
@%:@define STAT_MACROS_BROKEN 1
20556
_ACEOF
20557
 
20558
fi
20559
 
20560
 
20561
 
20562
 
20563
 
20564
 
20565
ac_header_dirent=no
20566
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20567
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20568
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20569
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20570
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20571
  echo $ECHO_N "(cached) $ECHO_C" >&6
20572
else
20573
  cat >conftest.$ac_ext <<_ACEOF
20574
/* confdefs.h.  */
20575
_ACEOF
20576
cat confdefs.h >>conftest.$ac_ext
20577
cat >>conftest.$ac_ext <<_ACEOF
20578
/* end confdefs.h.  */
20579
#include 
20580
#include <$ac_hdr>
20581
 
20582
int
20583
main ()
20584
{
20585
if ((DIR *) 0)
20586
return 0;
20587
  ;
20588
  return 0;
20589
}
20590
_ACEOF
20591
rm -f conftest.$ac_objext
20592
if { (ac_try="$ac_compile"
20593
case "(($ac_try" in
20594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595
  *) ac_try_echo=$ac_try;;
20596
esac
20597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598
  (eval "$ac_compile") 2>conftest.er1
20599
  ac_status=$?
20600
  grep -v '^ *+' conftest.er1 >conftest.err
20601
  rm -f conftest.er1
20602
  cat conftest.err >&5
20603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604
  (exit $ac_status); } && {
20605
         test -z "$ac_c_werror_flag" ||
20606
         test ! -s conftest.err
20607
       } && test -s conftest.$ac_objext; then
20608
  eval "$as_ac_Header=yes"
20609
else
20610
  echo "$as_me: failed program was:" >&5
20611
sed 's/^/| /' conftest.$ac_ext >&5
20612
 
20613
        eval "$as_ac_Header=no"
20614
fi
20615
 
20616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617
fi
20618
ac_res=`eval echo '${'$as_ac_Header'}'`
20619
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20620
echo "${ECHO_T}$ac_res" >&6; }
20621
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20622
  cat >>confdefs.h <<_ACEOF
20623
@%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20624
_ACEOF
20625
 
20626
ac_header_dirent=$ac_hdr; break
20627
fi
20628
 
20629
done
20630
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20631
if test $ac_header_dirent = dirent.h; then
20632
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20633
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20634
if test "${ac_cv_search_opendir+set}" = set; then
20635
  echo $ECHO_N "(cached) $ECHO_C" >&6
20636
else
20637
  ac_func_search_save_LIBS=$LIBS
20638
cat >conftest.$ac_ext <<_ACEOF
20639
/* confdefs.h.  */
20640
_ACEOF
20641
cat confdefs.h >>conftest.$ac_ext
20642
cat >>conftest.$ac_ext <<_ACEOF
20643
/* end confdefs.h.  */
20644
 
20645
/* Override any GCC internal prototype to avoid an error.
20646
   Use char because int might match the return type of a GCC
20647
   builtin and then its argument prototype would still apply.  */
20648
#ifdef __cplusplus
20649
extern "C"
20650
#endif
20651
char opendir ();
20652
int
20653
main ()
20654
{
20655
return opendir ();
20656
  ;
20657
  return 0;
20658
}
20659
_ACEOF
20660
for ac_lib in '' dir; do
20661
  if test -z "$ac_lib"; then
20662
    ac_res="none required"
20663
  else
20664
    ac_res=-l$ac_lib
20665
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20666
  fi
20667
  rm -f conftest.$ac_objext conftest$ac_exeext
20668
if { (ac_try="$ac_link"
20669
case "(($ac_try" in
20670
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671
  *) ac_try_echo=$ac_try;;
20672
esac
20673
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674
  (eval "$ac_link") 2>conftest.er1
20675
  ac_status=$?
20676
  grep -v '^ *+' conftest.er1 >conftest.err
20677
  rm -f conftest.er1
20678
  cat conftest.err >&5
20679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680
  (exit $ac_status); } && {
20681
         test -z "$ac_c_werror_flag" ||
20682
         test ! -s conftest.err
20683
       } && test -s conftest$ac_exeext &&
20684
       $as_test_x conftest$ac_exeext; then
20685
  ac_cv_search_opendir=$ac_res
20686
else
20687
  echo "$as_me: failed program was:" >&5
20688
sed 's/^/| /' conftest.$ac_ext >&5
20689
 
20690
 
20691
fi
20692
 
20693
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20694
      conftest$ac_exeext
20695
  if test "${ac_cv_search_opendir+set}" = set; then
20696
  break
20697
fi
20698
done
20699
if test "${ac_cv_search_opendir+set}" = set; then
20700
  :
20701
else
20702
  ac_cv_search_opendir=no
20703
fi
20704
rm conftest.$ac_ext
20705
LIBS=$ac_func_search_save_LIBS
20706
fi
20707
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20708
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20709
ac_res=$ac_cv_search_opendir
20710
if test "$ac_res" != no; then
20711
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20712
 
20713
fi
20714
 
20715
else
20716
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20717
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20718
if test "${ac_cv_search_opendir+set}" = set; then
20719
  echo $ECHO_N "(cached) $ECHO_C" >&6
20720
else
20721
  ac_func_search_save_LIBS=$LIBS
20722
cat >conftest.$ac_ext <<_ACEOF
20723
/* confdefs.h.  */
20724
_ACEOF
20725
cat confdefs.h >>conftest.$ac_ext
20726
cat >>conftest.$ac_ext <<_ACEOF
20727
/* end confdefs.h.  */
20728
 
20729
/* Override any GCC internal prototype to avoid an error.
20730
   Use char because int might match the return type of a GCC
20731
   builtin and then its argument prototype would still apply.  */
20732
#ifdef __cplusplus
20733
extern "C"
20734
#endif
20735
char opendir ();
20736
int
20737
main ()
20738
{
20739
return opendir ();
20740
  ;
20741
  return 0;
20742
}
20743
_ACEOF
20744
for ac_lib in '' x; do
20745
  if test -z "$ac_lib"; then
20746
    ac_res="none required"
20747
  else
20748
    ac_res=-l$ac_lib
20749
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20750
  fi
20751
  rm -f conftest.$ac_objext conftest$ac_exeext
20752
if { (ac_try="$ac_link"
20753
case "(($ac_try" in
20754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755
  *) ac_try_echo=$ac_try;;
20756
esac
20757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758
  (eval "$ac_link") 2>conftest.er1
20759
  ac_status=$?
20760
  grep -v '^ *+' conftest.er1 >conftest.err
20761
  rm -f conftest.er1
20762
  cat conftest.err >&5
20763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764
  (exit $ac_status); } && {
20765
         test -z "$ac_c_werror_flag" ||
20766
         test ! -s conftest.err
20767
       } && test -s conftest$ac_exeext &&
20768
       $as_test_x conftest$ac_exeext; then
20769
  ac_cv_search_opendir=$ac_res
20770
else
20771
  echo "$as_me: failed program was:" >&5
20772
sed 's/^/| /' conftest.$ac_ext >&5
20773
 
20774
 
20775
fi
20776
 
20777
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20778
      conftest$ac_exeext
20779
  if test "${ac_cv_search_opendir+set}" = set; then
20780
  break
20781
fi
20782
done
20783
if test "${ac_cv_search_opendir+set}" = set; then
20784
  :
20785
else
20786
  ac_cv_search_opendir=no
20787
fi
20788
rm conftest.$ac_ext
20789
LIBS=$ac_func_search_save_LIBS
20790
fi
20791
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20792
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20793
ac_res=$ac_cv_search_opendir
20794
if test "$ac_res" != no; then
20795
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20796
 
20797
fi
20798
 
20799
fi
20800
 
20801
 
20802
 
20803
 
20804
 
20805
 
20806
 
20807
 
20808
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
20809
do
20810
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20811
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20812
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20813
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20814
  echo $ECHO_N "(cached) $ECHO_C" >&6
20815
else
20816
  cat >conftest.$ac_ext <<_ACEOF
20817
/* confdefs.h.  */
20818
_ACEOF
20819
cat confdefs.h >>conftest.$ac_ext
20820
cat >>conftest.$ac_ext <<_ACEOF
20821
/* end confdefs.h.  */
20822
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20823
   For example, HP-UX 11i  declares gettimeofday.  */
20824
#define $ac_func innocuous_$ac_func
20825
 
20826
/* System header to define __stub macros and hopefully few prototypes,
20827
    which can conflict with char $ac_func (); below.
20828
    Prefer  to  if __STDC__ is defined, since
20829
     exists even on freestanding compilers.  */
20830
 
20831
#ifdef __STDC__
20832
# include 
20833
#else
20834
# include 
20835
#endif
20836
 
20837
#undef $ac_func
20838
 
20839
/* Override any GCC internal prototype to avoid an error.
20840
   Use char because int might match the return type of a GCC
20841
   builtin and then its argument prototype would still apply.  */
20842
#ifdef __cplusplus
20843
extern "C"
20844
#endif
20845
char $ac_func ();
20846
/* The GNU C library defines this for functions which it implements
20847
    to always fail with ENOSYS.  Some functions are actually named
20848
    something starting with __ and the normal name is an alias.  */
20849
#if defined __stub_$ac_func || defined __stub___$ac_func
20850
choke me
20851
#endif
20852
 
20853
int
20854
main ()
20855
{
20856
return $ac_func ();
20857
  ;
20858
  return 0;
20859
}
20860
_ACEOF
20861
rm -f conftest.$ac_objext conftest$ac_exeext
20862
if { (ac_try="$ac_link"
20863
case "(($ac_try" in
20864
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865
  *) ac_try_echo=$ac_try;;
20866
esac
20867
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868
  (eval "$ac_link") 2>conftest.er1
20869
  ac_status=$?
20870
  grep -v '^ *+' conftest.er1 >conftest.err
20871
  rm -f conftest.er1
20872
  cat conftest.err >&5
20873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874
  (exit $ac_status); } && {
20875
         test -z "$ac_c_werror_flag" ||
20876
         test ! -s conftest.err
20877
       } && test -s conftest$ac_exeext &&
20878
       $as_test_x conftest$ac_exeext; then
20879
  eval "$as_ac_var=yes"
20880
else
20881
  echo "$as_me: failed program was:" >&5
20882
sed 's/^/| /' conftest.$ac_ext >&5
20883
 
20884
        eval "$as_ac_var=no"
20885
fi
20886
 
20887
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20888
      conftest$ac_exeext conftest.$ac_ext
20889
fi
20890
ac_res=`eval echo '${'$as_ac_var'}'`
20891
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20892
echo "${ECHO_T}$ac_res" >&6; }
20893
if test `eval echo '${'$as_ac_var'}'` = yes; then
20894
  cat >>confdefs.h <<_ACEOF
20895
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20896
_ACEOF
20897
 
20898
fi
20899
done
20900
 
20901
 
20902
 
20903
 
20904
 
20905
 
20906
 
20907
for ac_func in strndup grantpt unlockpt ptsname on_exit isblank
20908
do
20909
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20910
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20911
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20912
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20913
  echo $ECHO_N "(cached) $ECHO_C" >&6
20914
else
20915
  cat >conftest.$ac_ext <<_ACEOF
20916
/* confdefs.h.  */
20917
_ACEOF
20918
cat confdefs.h >>conftest.$ac_ext
20919
cat >>conftest.$ac_ext <<_ACEOF
20920
/* end confdefs.h.  */
20921
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20922
   For example, HP-UX 11i  declares gettimeofday.  */
20923
#define $ac_func innocuous_$ac_func
20924
 
20925
/* System header to define __stub macros and hopefully few prototypes,
20926
    which can conflict with char $ac_func (); below.
20927
    Prefer  to  if __STDC__ is defined, since
20928
     exists even on freestanding compilers.  */
20929
 
20930
#ifdef __STDC__
20931
# include 
20932
#else
20933
# include 
20934
#endif
20935
 
20936
#undef $ac_func
20937
 
20938
/* Override any GCC internal prototype to avoid an error.
20939
   Use char because int might match the return type of a GCC
20940
   builtin and then its argument prototype would still apply.  */
20941
#ifdef __cplusplus
20942
extern "C"
20943
#endif
20944
char $ac_func ();
20945
/* The GNU C library defines this for functions which it implements
20946
    to always fail with ENOSYS.  Some functions are actually named
20947
    something starting with __ and the normal name is an alias.  */
20948
#if defined __stub_$ac_func || defined __stub___$ac_func
20949
choke me
20950
#endif
20951
 
20952
int
20953
main ()
20954
{
20955
return $ac_func ();
20956
  ;
20957
  return 0;
20958
}
20959
_ACEOF
20960
rm -f conftest.$ac_objext conftest$ac_exeext
20961
if { (ac_try="$ac_link"
20962
case "(($ac_try" in
20963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964
  *) ac_try_echo=$ac_try;;
20965
esac
20966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967
  (eval "$ac_link") 2>conftest.er1
20968
  ac_status=$?
20969
  grep -v '^ *+' conftest.er1 >conftest.err
20970
  rm -f conftest.er1
20971
  cat conftest.err >&5
20972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973
  (exit $ac_status); } && {
20974
         test -z "$ac_c_werror_flag" ||
20975
         test ! -s conftest.err
20976
       } && test -s conftest$ac_exeext &&
20977
       $as_test_x conftest$ac_exeext; then
20978
  eval "$as_ac_var=yes"
20979
else
20980
  echo "$as_me: failed program was:" >&5
20981
sed 's/^/| /' conftest.$ac_ext >&5
20982
 
20983
        eval "$as_ac_var=no"
20984
fi
20985
 
20986
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20987
      conftest$ac_exeext conftest.$ac_ext
20988
fi
20989
ac_res=`eval echo '${'$as_ac_var'}'`
20990
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20991
echo "${ECHO_T}$ac_res" >&6; }
20992
if test `eval echo '${'$as_ac_var'}'` = yes; then
20993
  cat >>confdefs.h <<_ACEOF
20994
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20995
_ACEOF
20996
 
20997
fi
20998
done
20999
 
21000
{ echo "$as_me:$LINENO: checking for working strcoll" >&5
21001
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
21002
if test "${ac_cv_func_strcoll_works+set}" = set; then
21003
  echo $ECHO_N "(cached) $ECHO_C" >&6
21004
else
21005
  if test "$cross_compiling" = yes; then
21006
  ac_cv_func_strcoll_works=no
21007
else
21008
  cat >conftest.$ac_ext <<_ACEOF
21009
/* confdefs.h.  */
21010
_ACEOF
21011
cat confdefs.h >>conftest.$ac_ext
21012
cat >>conftest.$ac_ext <<_ACEOF
21013
/* end confdefs.h.  */
21014
$ac_includes_default
21015
int
21016
main ()
21017
{
21018
return (strcoll ("abc", "def") >= 0 ||
21019
         strcoll ("ABC", "DEF") >= 0 ||
21020
         strcoll ("123", "456") >= 0)
21021
  ;
21022
  return 0;
21023
}
21024
_ACEOF
21025
rm -f conftest$ac_exeext
21026
if { (ac_try="$ac_link"
21027
case "(($ac_try" in
21028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029
  *) ac_try_echo=$ac_try;;
21030
esac
21031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21032
  (eval "$ac_link") 2>&5
21033
  ac_status=$?
21034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21036
  { (case "(($ac_try" in
21037
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038
  *) ac_try_echo=$ac_try;;
21039
esac
21040
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041
  (eval "$ac_try") 2>&5
21042
  ac_status=$?
21043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044
  (exit $ac_status); }; }; then
21045
  ac_cv_func_strcoll_works=yes
21046
else
21047
  echo "$as_me: program exited with status $ac_status" >&5
21048
echo "$as_me: failed program was:" >&5
21049
sed 's/^/| /' conftest.$ac_ext >&5
21050
 
21051
( exit $ac_status )
21052
ac_cv_func_strcoll_works=no
21053
fi
21054
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21055
fi
21056
 
21057
 
21058
fi
21059
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
21060
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
21061
if test $ac_cv_func_strcoll_works = yes; then
21062
 
21063
cat >>confdefs.h <<\_ACEOF
21064
@%:@define HAVE_STRCOLL 1
21065
_ACEOF
21066
 
21067
fi
21068
 
21069
 
21070
 
21071
 
21072
 
21073
 
21074
 
21075
 
21076
 
21077
 
21078
 
21079
 
21080
 
21081
 
21082
 
21083
 
21084
 
21085
 
21086
 
21087
 
21088
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h \
21089
                sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
21090
                termcap.h termios.h termio.h sys/file.h locale.h\
21091
                net/ethernet.h sys/ethernet.h malloc.h inttypes.h
21092
do
21093
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21094
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21095
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21096
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21097
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21098
  echo $ECHO_N "(cached) $ECHO_C" >&6
21099
fi
21100
ac_res=`eval echo '${'$as_ac_Header'}'`
21101
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21102
echo "${ECHO_T}$ac_res" >&6; }
21103
else
21104
  # Is the header compilable?
21105
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21106
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21107
cat >conftest.$ac_ext <<_ACEOF
21108
/* confdefs.h.  */
21109
_ACEOF
21110
cat confdefs.h >>conftest.$ac_ext
21111
cat >>conftest.$ac_ext <<_ACEOF
21112
/* end confdefs.h.  */
21113
$ac_includes_default
21114
@%:@include <$ac_header>
21115
_ACEOF
21116
rm -f conftest.$ac_objext
21117
if { (ac_try="$ac_compile"
21118
case "(($ac_try" in
21119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120
  *) ac_try_echo=$ac_try;;
21121
esac
21122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123
  (eval "$ac_compile") 2>conftest.er1
21124
  ac_status=$?
21125
  grep -v '^ *+' conftest.er1 >conftest.err
21126
  rm -f conftest.er1
21127
  cat conftest.err >&5
21128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129
  (exit $ac_status); } && {
21130
         test -z "$ac_c_werror_flag" ||
21131
         test ! -s conftest.err
21132
       } && test -s conftest.$ac_objext; then
21133
  ac_header_compiler=yes
21134
else
21135
  echo "$as_me: failed program was:" >&5
21136
sed 's/^/| /' conftest.$ac_ext >&5
21137
 
21138
        ac_header_compiler=no
21139
fi
21140
 
21141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21142
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21143
echo "${ECHO_T}$ac_header_compiler" >&6; }
21144
 
21145
# Is the header present?
21146
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21147
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21148
cat >conftest.$ac_ext <<_ACEOF
21149
/* confdefs.h.  */
21150
_ACEOF
21151
cat confdefs.h >>conftest.$ac_ext
21152
cat >>conftest.$ac_ext <<_ACEOF
21153
/* end confdefs.h.  */
21154
@%:@include <$ac_header>
21155
_ACEOF
21156
if { (ac_try="$ac_cpp conftest.$ac_ext"
21157
case "(($ac_try" in
21158
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159
  *) ac_try_echo=$ac_try;;
21160
esac
21161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21163
  ac_status=$?
21164
  grep -v '^ *+' conftest.er1 >conftest.err
21165
  rm -f conftest.er1
21166
  cat conftest.err >&5
21167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168
  (exit $ac_status); } >/dev/null && {
21169
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21170
         test ! -s conftest.err
21171
       }; then
21172
  ac_header_preproc=yes
21173
else
21174
  echo "$as_me: failed program was:" >&5
21175
sed 's/^/| /' conftest.$ac_ext >&5
21176
 
21177
  ac_header_preproc=no
21178
fi
21179
 
21180
rm -f conftest.err conftest.$ac_ext
21181
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21182
echo "${ECHO_T}$ac_header_preproc" >&6; }
21183
 
21184
# So?  What about this header?
21185
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21186
  yes:no: )
21187
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21188
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21189
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21190
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21191
    ac_header_preproc=yes
21192
    ;;
21193
  no:yes:* )
21194
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21195
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21196
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21197
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21198
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21199
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21200
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21201
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21202
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21203
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21204
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21205
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21206
    ( cat <<\_ASBOX
21207
@%:@@%:@ ------------------------------------- @%:@@%:@
21208
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
21209
@%:@@%:@ ------------------------------------- @%:@@%:@
21210
_ASBOX
21211
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21212
    ;;
21213
esac
21214
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21215
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21216
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21217
  echo $ECHO_N "(cached) $ECHO_C" >&6
21218
else
21219
  eval "$as_ac_Header=\$ac_header_preproc"
21220
fi
21221
ac_res=`eval echo '${'$as_ac_Header'}'`
21222
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21223
echo "${ECHO_T}$ac_res" >&6; }
21224
 
21225
fi
21226
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21227
  cat >>confdefs.h <<_ACEOF
21228
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21229
_ACEOF
21230
 
21231
fi
21232
 
21233
done
21234
 
21235
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21236
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21237
if test "${ac_cv_c_bigendian+set}" = set; then
21238
  echo $ECHO_N "(cached) $ECHO_C" >&6
21239
else
21240
  # See if sys/param.h defines the BYTE_ORDER macro.
21241
cat >conftest.$ac_ext <<_ACEOF
21242
/* confdefs.h.  */
21243
_ACEOF
21244
cat confdefs.h >>conftest.$ac_ext
21245
cat >>conftest.$ac_ext <<_ACEOF
21246
/* end confdefs.h.  */
21247
#include 
21248
#include 
21249
 
21250
int
21251
main ()
21252
{
21253
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21254
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21255
 bogus endian macros
21256
#endif
21257
 
21258
  ;
21259
  return 0;
21260
}
21261
_ACEOF
21262
rm -f conftest.$ac_objext
21263
if { (ac_try="$ac_compile"
21264
case "(($ac_try" in
21265
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266
  *) ac_try_echo=$ac_try;;
21267
esac
21268
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269
  (eval "$ac_compile") 2>conftest.er1
21270
  ac_status=$?
21271
  grep -v '^ *+' conftest.er1 >conftest.err
21272
  rm -f conftest.er1
21273
  cat conftest.err >&5
21274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275
  (exit $ac_status); } && {
21276
         test -z "$ac_c_werror_flag" ||
21277
         test ! -s conftest.err
21278
       } && test -s conftest.$ac_objext; then
21279
  # It does; now see whether it defined to BIG_ENDIAN or not.
21280
cat >conftest.$ac_ext <<_ACEOF
21281
/* confdefs.h.  */
21282
_ACEOF
21283
cat confdefs.h >>conftest.$ac_ext
21284
cat >>conftest.$ac_ext <<_ACEOF
21285
/* end confdefs.h.  */
21286
#include 
21287
#include 
21288
 
21289
int
21290
main ()
21291
{
21292
#if BYTE_ORDER != BIG_ENDIAN
21293
 not big endian
21294
#endif
21295
 
21296
  ;
21297
  return 0;
21298
}
21299
_ACEOF
21300
rm -f conftest.$ac_objext
21301
if { (ac_try="$ac_compile"
21302
case "(($ac_try" in
21303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304
  *) ac_try_echo=$ac_try;;
21305
esac
21306
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307
  (eval "$ac_compile") 2>conftest.er1
21308
  ac_status=$?
21309
  grep -v '^ *+' conftest.er1 >conftest.err
21310
  rm -f conftest.er1
21311
  cat conftest.err >&5
21312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313
  (exit $ac_status); } && {
21314
         test -z "$ac_c_werror_flag" ||
21315
         test ! -s conftest.err
21316
       } && test -s conftest.$ac_objext; then
21317
  ac_cv_c_bigendian=yes
21318
else
21319
  echo "$as_me: failed program was:" >&5
21320
sed 's/^/| /' conftest.$ac_ext >&5
21321
 
21322
        ac_cv_c_bigendian=no
21323
fi
21324
 
21325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326
else
21327
  echo "$as_me: failed program was:" >&5
21328
sed 's/^/| /' conftest.$ac_ext >&5
21329
 
21330
        # It does not; compile a test program.
21331
if test "$cross_compiling" = yes; then
21332
  # try to guess the endianness by grepping values into an object file
21333
  ac_cv_c_bigendian=unknown
21334
  cat >conftest.$ac_ext <<_ACEOF
21335
/* confdefs.h.  */
21336
_ACEOF
21337
cat confdefs.h >>conftest.$ac_ext
21338
cat >>conftest.$ac_ext <<_ACEOF
21339
/* end confdefs.h.  */
21340
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21341
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21342
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21343
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21344
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21345
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21346
int
21347
main ()
21348
{
21349
 _ascii (); _ebcdic ();
21350
  ;
21351
  return 0;
21352
}
21353
_ACEOF
21354
rm -f conftest.$ac_objext
21355
if { (ac_try="$ac_compile"
21356
case "(($ac_try" in
21357
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358
  *) ac_try_echo=$ac_try;;
21359
esac
21360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361
  (eval "$ac_compile") 2>conftest.er1
21362
  ac_status=$?
21363
  grep -v '^ *+' conftest.er1 >conftest.err
21364
  rm -f conftest.er1
21365
  cat conftest.err >&5
21366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367
  (exit $ac_status); } && {
21368
         test -z "$ac_c_werror_flag" ||
21369
         test ! -s conftest.err
21370
       } && test -s conftest.$ac_objext; then
21371
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21372
  ac_cv_c_bigendian=yes
21373
fi
21374
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21375
  if test "$ac_cv_c_bigendian" = unknown; then
21376
    ac_cv_c_bigendian=no
21377
  else
21378
    # finding both strings is unlikely to happen, but who knows?
21379
    ac_cv_c_bigendian=unknown
21380
  fi
21381
fi
21382
else
21383
  echo "$as_me: failed program was:" >&5
21384
sed 's/^/| /' conftest.$ac_ext >&5
21385
 
21386
 
21387
fi
21388
 
21389
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390
else
21391
  cat >conftest.$ac_ext <<_ACEOF
21392
/* confdefs.h.  */
21393
_ACEOF
21394
cat confdefs.h >>conftest.$ac_ext
21395
cat >>conftest.$ac_ext <<_ACEOF
21396
/* end confdefs.h.  */
21397
$ac_includes_default
21398
int
21399
main ()
21400
{
21401
 
21402
  /* Are we little or big endian?  From Harbison&Steele.  */
21403
  union
21404
  {
21405
    long int l;
21406
    char c[sizeof (long int)];
21407
  } u;
21408
  u.l = 1;
21409
  return u.c[sizeof (long int) - 1] == 1;
21410
 
21411
  ;
21412
  return 0;
21413
}
21414
_ACEOF
21415
rm -f conftest$ac_exeext
21416
if { (ac_try="$ac_link"
21417
case "(($ac_try" in
21418
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419
  *) ac_try_echo=$ac_try;;
21420
esac
21421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422
  (eval "$ac_link") 2>&5
21423
  ac_status=$?
21424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21426
  { (case "(($ac_try" in
21427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428
  *) ac_try_echo=$ac_try;;
21429
esac
21430
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431
  (eval "$ac_try") 2>&5
21432
  ac_status=$?
21433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434
  (exit $ac_status); }; }; then
21435
  ac_cv_c_bigendian=no
21436
else
21437
  echo "$as_me: program exited with status $ac_status" >&5
21438
echo "$as_me: failed program was:" >&5
21439
sed 's/^/| /' conftest.$ac_ext >&5
21440
 
21441
( exit $ac_status )
21442
ac_cv_c_bigendian=yes
21443
fi
21444
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21445
fi
21446
 
21447
 
21448
fi
21449
 
21450
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21451
fi
21452
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21453
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21454
case $ac_cv_c_bigendian in
21455
  yes)
21456
 
21457
cat >>confdefs.h <<\_ACEOF
21458
@%:@define WORDS_BIGENDIAN 1
21459
_ACEOF
21460
 ;;
21461
  no)
21462
     ;;
21463
  *)
21464
    { { echo "$as_me:$LINENO: error: unknown endianness
21465
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21466
echo "$as_me: error: unknown endianness
21467
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21468
   { (exit 1); exit 1; }; } ;;
21469
esac
21470
 
21471
 
21472
# check for "long long" (added by Erez)
21473
cat >conftest.$ac_ext <<_ACEOF
21474
/* confdefs.h.  */
21475
_ACEOF
21476
cat confdefs.h >>conftest.$ac_ext
21477
cat >>conftest.$ac_ext <<_ACEOF
21478
/* end confdefs.h.  */
21479
 
21480
int
21481
main ()
21482
{
21483
long long ll; unsigned long long ull;
21484
  ;
21485
  return 0;
21486
}
21487
_ACEOF
21488
rm -f conftest.$ac_objext
21489
if { (ac_try="$ac_compile"
21490
case "(($ac_try" in
21491
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492
  *) ac_try_echo=$ac_try;;
21493
esac
21494
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495
  (eval "$ac_compile") 2>conftest.er1
21496
  ac_status=$?
21497
  grep -v '^ *+' conftest.er1 >conftest.err
21498
  rm -f conftest.er1
21499
  cat conftest.err >&5
21500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501
  (exit $ac_status); } && {
21502
         test -z "$ac_c_werror_flag" ||
21503
         test ! -s conftest.err
21504
       } && test -s conftest.$ac_objext; then
21505
 
21506
cat >>confdefs.h <<\_ACEOF
21507
@%:@define CC_HAS_LONG_LONG 1
21508
_ACEOF
21509
 
21510
else
21511
  echo "$as_me: failed program was:" >&5
21512
sed 's/^/| /' conftest.$ac_ext >&5
21513
 
21514
 
21515
fi
21516
 
21517
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21518
 
21519
# check for {u,}int{8,16,32}_t in inttypes.h
21520
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
21521
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
21522
if test "${ac_cv_type_uint8_t+set}" = set; then
21523
  echo $ECHO_N "(cached) $ECHO_C" >&6
21524
else
21525
  cat >conftest.$ac_ext <<_ACEOF
21526
/* confdefs.h.  */
21527
_ACEOF
21528
cat confdefs.h >>conftest.$ac_ext
21529
cat >>conftest.$ac_ext <<_ACEOF
21530
/* end confdefs.h.  */
21531
#include 
21532
 
21533
typedef uint8_t ac__type_new_;
21534
int
21535
main ()
21536
{
21537
if ((ac__type_new_ *) 0)
21538
  return 0;
21539
if (sizeof (ac__type_new_))
21540
  return 0;
21541
  ;
21542
  return 0;
21543
}
21544
_ACEOF
21545
rm -f conftest.$ac_objext
21546
if { (ac_try="$ac_compile"
21547
case "(($ac_try" in
21548
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21549
  *) ac_try_echo=$ac_try;;
21550
esac
21551
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21552
  (eval "$ac_compile") 2>conftest.er1
21553
  ac_status=$?
21554
  grep -v '^ *+' conftest.er1 >conftest.err
21555
  rm -f conftest.er1
21556
  cat conftest.err >&5
21557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558
  (exit $ac_status); } && {
21559
         test -z "$ac_c_werror_flag" ||
21560
         test ! -s conftest.err
21561
       } && test -s conftest.$ac_objext; then
21562
  ac_cv_type_uint8_t=yes
21563
else
21564
  echo "$as_me: failed program was:" >&5
21565
sed 's/^/| /' conftest.$ac_ext >&5
21566
 
21567
        ac_cv_type_uint8_t=no
21568
fi
21569
 
21570
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21571
fi
21572
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21573
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
21574
if test $ac_cv_type_uint8_t = yes; then
21575
 
21576
cat >>confdefs.h <<_ACEOF
21577
@%:@define HAVE_UINT8_T 1
21578
_ACEOF
21579
 
21580
 
21581
fi
21582
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
21583
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
21584
if test "${ac_cv_type_uint16_t+set}" = set; then
21585
  echo $ECHO_N "(cached) $ECHO_C" >&6
21586
else
21587
  cat >conftest.$ac_ext <<_ACEOF
21588
/* confdefs.h.  */
21589
_ACEOF
21590
cat confdefs.h >>conftest.$ac_ext
21591
cat >>conftest.$ac_ext <<_ACEOF
21592
/* end confdefs.h.  */
21593
#include 
21594
 
21595
typedef uint16_t ac__type_new_;
21596
int
21597
main ()
21598
{
21599
if ((ac__type_new_ *) 0)
21600
  return 0;
21601
if (sizeof (ac__type_new_))
21602
  return 0;
21603
  ;
21604
  return 0;
21605
}
21606
_ACEOF
21607
rm -f conftest.$ac_objext
21608
if { (ac_try="$ac_compile"
21609
case "(($ac_try" in
21610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611
  *) ac_try_echo=$ac_try;;
21612
esac
21613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614
  (eval "$ac_compile") 2>conftest.er1
21615
  ac_status=$?
21616
  grep -v '^ *+' conftest.er1 >conftest.err
21617
  rm -f conftest.er1
21618
  cat conftest.err >&5
21619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620
  (exit $ac_status); } && {
21621
         test -z "$ac_c_werror_flag" ||
21622
         test ! -s conftest.err
21623
       } && test -s conftest.$ac_objext; then
21624
  ac_cv_type_uint16_t=yes
21625
else
21626
  echo "$as_me: failed program was:" >&5
21627
sed 's/^/| /' conftest.$ac_ext >&5
21628
 
21629
        ac_cv_type_uint16_t=no
21630
fi
21631
 
21632
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633
fi
21634
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21635
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
21636
if test $ac_cv_type_uint16_t = yes; then
21637
 
21638
cat >>confdefs.h <<_ACEOF
21639
@%:@define HAVE_UINT16_T 1
21640
_ACEOF
21641
 
21642
 
21643
fi
21644
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
21645
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
21646
if test "${ac_cv_type_uint32_t+set}" = set; then
21647
  echo $ECHO_N "(cached) $ECHO_C" >&6
21648
else
21649
  cat >conftest.$ac_ext <<_ACEOF
21650
/* confdefs.h.  */
21651
_ACEOF
21652
cat confdefs.h >>conftest.$ac_ext
21653
cat >>conftest.$ac_ext <<_ACEOF
21654
/* end confdefs.h.  */
21655
#include 
21656
 
21657
typedef uint32_t ac__type_new_;
21658
int
21659
main ()
21660
{
21661
if ((ac__type_new_ *) 0)
21662
  return 0;
21663
if (sizeof (ac__type_new_))
21664
  return 0;
21665
  ;
21666
  return 0;
21667
}
21668
_ACEOF
21669
rm -f conftest.$ac_objext
21670
if { (ac_try="$ac_compile"
21671
case "(($ac_try" in
21672
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673
  *) ac_try_echo=$ac_try;;
21674
esac
21675
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676
  (eval "$ac_compile") 2>conftest.er1
21677
  ac_status=$?
21678
  grep -v '^ *+' conftest.er1 >conftest.err
21679
  rm -f conftest.er1
21680
  cat conftest.err >&5
21681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682
  (exit $ac_status); } && {
21683
         test -z "$ac_c_werror_flag" ||
21684
         test ! -s conftest.err
21685
       } && test -s conftest.$ac_objext; then
21686
  ac_cv_type_uint32_t=yes
21687
else
21688
  echo "$as_me: failed program was:" >&5
21689
sed 's/^/| /' conftest.$ac_ext >&5
21690
 
21691
        ac_cv_type_uint32_t=no
21692
fi
21693
 
21694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21695
fi
21696
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21697
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
21698
if test $ac_cv_type_uint32_t = yes; then
21699
 
21700
cat >>confdefs.h <<_ACEOF
21701
@%:@define HAVE_UINT32_T 1
21702
_ACEOF
21703
 
21704
 
21705
fi
21706
 
21707
{ echo "$as_me:$LINENO: checking for int8_t" >&5
21708
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
21709
if test "${ac_cv_type_int8_t+set}" = set; then
21710
  echo $ECHO_N "(cached) $ECHO_C" >&6
21711
else
21712
  cat >conftest.$ac_ext <<_ACEOF
21713
/* confdefs.h.  */
21714
_ACEOF
21715
cat confdefs.h >>conftest.$ac_ext
21716
cat >>conftest.$ac_ext <<_ACEOF
21717
/* end confdefs.h.  */
21718
#include 
21719
 
21720
typedef int8_t ac__type_new_;
21721
int
21722
main ()
21723
{
21724
if ((ac__type_new_ *) 0)
21725
  return 0;
21726
if (sizeof (ac__type_new_))
21727
  return 0;
21728
  ;
21729
  return 0;
21730
}
21731
_ACEOF
21732
rm -f conftest.$ac_objext
21733
if { (ac_try="$ac_compile"
21734
case "(($ac_try" in
21735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736
  *) ac_try_echo=$ac_try;;
21737
esac
21738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739
  (eval "$ac_compile") 2>conftest.er1
21740
  ac_status=$?
21741
  grep -v '^ *+' conftest.er1 >conftest.err
21742
  rm -f conftest.er1
21743
  cat conftest.err >&5
21744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745
  (exit $ac_status); } && {
21746
         test -z "$ac_c_werror_flag" ||
21747
         test ! -s conftest.err
21748
       } && test -s conftest.$ac_objext; then
21749
  ac_cv_type_int8_t=yes
21750
else
21751
  echo "$as_me: failed program was:" >&5
21752
sed 's/^/| /' conftest.$ac_ext >&5
21753
 
21754
        ac_cv_type_int8_t=no
21755
fi
21756
 
21757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21758
fi
21759
{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
21760
echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
21761
if test $ac_cv_type_int8_t = yes; then
21762
 
21763
cat >>confdefs.h <<_ACEOF
21764
@%:@define HAVE_INT8_T 1
21765
_ACEOF
21766
 
21767
 
21768
fi
21769
{ echo "$as_me:$LINENO: checking for int16_t" >&5
21770
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
21771
if test "${ac_cv_type_int16_t+set}" = set; then
21772
  echo $ECHO_N "(cached) $ECHO_C" >&6
21773
else
21774
  cat >conftest.$ac_ext <<_ACEOF
21775
/* confdefs.h.  */
21776
_ACEOF
21777
cat confdefs.h >>conftest.$ac_ext
21778
cat >>conftest.$ac_ext <<_ACEOF
21779
/* end confdefs.h.  */
21780
#include 
21781
 
21782
typedef int16_t ac__type_new_;
21783
int
21784
main ()
21785
{
21786
if ((ac__type_new_ *) 0)
21787
  return 0;
21788
if (sizeof (ac__type_new_))
21789
  return 0;
21790
  ;
21791
  return 0;
21792
}
21793
_ACEOF
21794
rm -f conftest.$ac_objext
21795
if { (ac_try="$ac_compile"
21796
case "(($ac_try" in
21797
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798
  *) ac_try_echo=$ac_try;;
21799
esac
21800
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801
  (eval "$ac_compile") 2>conftest.er1
21802
  ac_status=$?
21803
  grep -v '^ *+' conftest.er1 >conftest.err
21804
  rm -f conftest.er1
21805
  cat conftest.err >&5
21806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807
  (exit $ac_status); } && {
21808
         test -z "$ac_c_werror_flag" ||
21809
         test ! -s conftest.err
21810
       } && test -s conftest.$ac_objext; then
21811
  ac_cv_type_int16_t=yes
21812
else
21813
  echo "$as_me: failed program was:" >&5
21814
sed 's/^/| /' conftest.$ac_ext >&5
21815
 
21816
        ac_cv_type_int16_t=no
21817
fi
21818
 
21819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820
fi
21821
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
21822
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
21823
if test $ac_cv_type_int16_t = yes; then
21824
 
21825
cat >>confdefs.h <<_ACEOF
21826
@%:@define HAVE_INT16_T 1
21827
_ACEOF
21828
 
21829
 
21830
fi
21831
{ echo "$as_me:$LINENO: checking for int32_t" >&5
21832
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
21833
if test "${ac_cv_type_int32_t+set}" = set; then
21834
  echo $ECHO_N "(cached) $ECHO_C" >&6
21835
else
21836
  cat >conftest.$ac_ext <<_ACEOF
21837
/* confdefs.h.  */
21838
_ACEOF
21839
cat confdefs.h >>conftest.$ac_ext
21840
cat >>conftest.$ac_ext <<_ACEOF
21841
/* end confdefs.h.  */
21842
#include 
21843
 
21844
typedef int32_t ac__type_new_;
21845
int
21846
main ()
21847
{
21848
if ((ac__type_new_ *) 0)
21849
  return 0;
21850
if (sizeof (ac__type_new_))
21851
  return 0;
21852
  ;
21853
  return 0;
21854
}
21855
_ACEOF
21856
rm -f conftest.$ac_objext
21857
if { (ac_try="$ac_compile"
21858
case "(($ac_try" in
21859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860
  *) ac_try_echo=$ac_try;;
21861
esac
21862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863
  (eval "$ac_compile") 2>conftest.er1
21864
  ac_status=$?
21865
  grep -v '^ *+' conftest.er1 >conftest.err
21866
  rm -f conftest.er1
21867
  cat conftest.err >&5
21868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869
  (exit $ac_status); } && {
21870
         test -z "$ac_c_werror_flag" ||
21871
         test ! -s conftest.err
21872
       } && test -s conftest.$ac_objext; then
21873
  ac_cv_type_int32_t=yes
21874
else
21875
  echo "$as_me: failed program was:" >&5
21876
sed 's/^/| /' conftest.$ac_ext >&5
21877
 
21878
        ac_cv_type_int32_t=no
21879
fi
21880
 
21881
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21882
fi
21883
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
21884
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
21885
if test $ac_cv_type_int32_t = yes; then
21886
 
21887
cat >>confdefs.h <<_ACEOF
21888
@%:@define HAVE_INT32_T 1
21889
_ACEOF
21890
 
21891
 
21892
fi
21893
 
21894
 
21895
{ echo "$as_me:$LINENO: checking for char" >&5
21896
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
21897
if test "${ac_cv_type_char+set}" = set; then
21898
  echo $ECHO_N "(cached) $ECHO_C" >&6
21899
else
21900
  cat >conftest.$ac_ext <<_ACEOF
21901
/* confdefs.h.  */
21902
_ACEOF
21903
cat confdefs.h >>conftest.$ac_ext
21904
cat >>conftest.$ac_ext <<_ACEOF
21905
/* end confdefs.h.  */
21906
$ac_includes_default
21907
typedef char ac__type_new_;
21908
int
21909
main ()
21910
{
21911
if ((ac__type_new_ *) 0)
21912
  return 0;
21913
if (sizeof (ac__type_new_))
21914
  return 0;
21915
  ;
21916
  return 0;
21917
}
21918
_ACEOF
21919
rm -f conftest.$ac_objext
21920
if { (ac_try="$ac_compile"
21921
case "(($ac_try" in
21922
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923
  *) ac_try_echo=$ac_try;;
21924
esac
21925
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926
  (eval "$ac_compile") 2>conftest.er1
21927
  ac_status=$?
21928
  grep -v '^ *+' conftest.er1 >conftest.err
21929
  rm -f conftest.er1
21930
  cat conftest.err >&5
21931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932
  (exit $ac_status); } && {
21933
         test -z "$ac_c_werror_flag" ||
21934
         test ! -s conftest.err
21935
       } && test -s conftest.$ac_objext; then
21936
  ac_cv_type_char=yes
21937
else
21938
  echo "$as_me: failed program was:" >&5
21939
sed 's/^/| /' conftest.$ac_ext >&5
21940
 
21941
        ac_cv_type_char=no
21942
fi
21943
 
21944
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945
fi
21946
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
21947
echo "${ECHO_T}$ac_cv_type_char" >&6; }
21948
 
21949
# The cast to long int works around a bug in the HP C Compiler
21950
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21951
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21952
# This bug is HP SR number 8606223364.
21953
{ echo "$as_me:$LINENO: checking size of char" >&5
21954
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
21955
if test "${ac_cv_sizeof_char+set}" = set; then
21956
  echo $ECHO_N "(cached) $ECHO_C" >&6
21957
else
21958
  if test "$cross_compiling" = yes; then
21959
  # Depending upon the size, compute the lo and hi bounds.
21960
cat >conftest.$ac_ext <<_ACEOF
21961
/* confdefs.h.  */
21962
_ACEOF
21963
cat confdefs.h >>conftest.$ac_ext
21964
cat >>conftest.$ac_ext <<_ACEOF
21965
/* end confdefs.h.  */
21966
$ac_includes_default
21967
   typedef char ac__type_sizeof_;
21968
int
21969
main ()
21970
{
21971
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
21972
test_array @<:@0@:>@ = 0
21973
 
21974
  ;
21975
  return 0;
21976
}
21977
_ACEOF
21978
rm -f conftest.$ac_objext
21979
if { (ac_try="$ac_compile"
21980
case "(($ac_try" in
21981
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982
  *) ac_try_echo=$ac_try;;
21983
esac
21984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985
  (eval "$ac_compile") 2>conftest.er1
21986
  ac_status=$?
21987
  grep -v '^ *+' conftest.er1 >conftest.err
21988
  rm -f conftest.er1
21989
  cat conftest.err >&5
21990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991
  (exit $ac_status); } && {
21992
         test -z "$ac_c_werror_flag" ||
21993
         test ! -s conftest.err
21994
       } && test -s conftest.$ac_objext; then
21995
  ac_lo=0 ac_mid=0
21996
  while :; do
21997
    cat >conftest.$ac_ext <<_ACEOF
21998
/* confdefs.h.  */
21999
_ACEOF
22000
cat confdefs.h >>conftest.$ac_ext
22001
cat >>conftest.$ac_ext <<_ACEOF
22002
/* end confdefs.h.  */
22003
$ac_includes_default
22004
   typedef char ac__type_sizeof_;
22005
int
22006
main ()
22007
{
22008
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22009
test_array @<:@0@:>@ = 0
22010
 
22011
  ;
22012
  return 0;
22013
}
22014
_ACEOF
22015
rm -f conftest.$ac_objext
22016
if { (ac_try="$ac_compile"
22017
case "(($ac_try" in
22018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019
  *) ac_try_echo=$ac_try;;
22020
esac
22021
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022
  (eval "$ac_compile") 2>conftest.er1
22023
  ac_status=$?
22024
  grep -v '^ *+' conftest.er1 >conftest.err
22025
  rm -f conftest.er1
22026
  cat conftest.err >&5
22027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028
  (exit $ac_status); } && {
22029
         test -z "$ac_c_werror_flag" ||
22030
         test ! -s conftest.err
22031
       } && test -s conftest.$ac_objext; then
22032
  ac_hi=$ac_mid; break
22033
else
22034
  echo "$as_me: failed program was:" >&5
22035
sed 's/^/| /' conftest.$ac_ext >&5
22036
 
22037
        ac_lo=`expr $ac_mid + 1`
22038
                        if test $ac_lo -le $ac_mid; then
22039
                          ac_lo= ac_hi=
22040
                          break
22041
                        fi
22042
                        ac_mid=`expr 2 '*' $ac_mid + 1`
22043
fi
22044
 
22045
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046
  done
22047
else
22048
  echo "$as_me: failed program was:" >&5
22049
sed 's/^/| /' conftest.$ac_ext >&5
22050
 
22051
        cat >conftest.$ac_ext <<_ACEOF
22052
/* confdefs.h.  */
22053
_ACEOF
22054
cat confdefs.h >>conftest.$ac_ext
22055
cat >>conftest.$ac_ext <<_ACEOF
22056
/* end confdefs.h.  */
22057
$ac_includes_default
22058
   typedef char ac__type_sizeof_;
22059
int
22060
main ()
22061
{
22062
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
22063
test_array @<:@0@:>@ = 0
22064
 
22065
  ;
22066
  return 0;
22067
}
22068
_ACEOF
22069
rm -f conftest.$ac_objext
22070
if { (ac_try="$ac_compile"
22071
case "(($ac_try" in
22072
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073
  *) ac_try_echo=$ac_try;;
22074
esac
22075
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22076
  (eval "$ac_compile") 2>conftest.er1
22077
  ac_status=$?
22078
  grep -v '^ *+' conftest.er1 >conftest.err
22079
  rm -f conftest.er1
22080
  cat conftest.err >&5
22081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082
  (exit $ac_status); } && {
22083
         test -z "$ac_c_werror_flag" ||
22084
         test ! -s conftest.err
22085
       } && test -s conftest.$ac_objext; then
22086
  ac_hi=-1 ac_mid=-1
22087
  while :; do
22088
    cat >conftest.$ac_ext <<_ACEOF
22089
/* confdefs.h.  */
22090
_ACEOF
22091
cat confdefs.h >>conftest.$ac_ext
22092
cat >>conftest.$ac_ext <<_ACEOF
22093
/* end confdefs.h.  */
22094
$ac_includes_default
22095
   typedef char ac__type_sizeof_;
22096
int
22097
main ()
22098
{
22099
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
22100
test_array @<:@0@:>@ = 0
22101
 
22102
  ;
22103
  return 0;
22104
}
22105
_ACEOF
22106
rm -f conftest.$ac_objext
22107
if { (ac_try="$ac_compile"
22108
case "(($ac_try" in
22109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110
  *) ac_try_echo=$ac_try;;
22111
esac
22112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113
  (eval "$ac_compile") 2>conftest.er1
22114
  ac_status=$?
22115
  grep -v '^ *+' conftest.er1 >conftest.err
22116
  rm -f conftest.er1
22117
  cat conftest.err >&5
22118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119
  (exit $ac_status); } && {
22120
         test -z "$ac_c_werror_flag" ||
22121
         test ! -s conftest.err
22122
       } && test -s conftest.$ac_objext; then
22123
  ac_lo=$ac_mid; break
22124
else
22125
  echo "$as_me: failed program was:" >&5
22126
sed 's/^/| /' conftest.$ac_ext >&5
22127
 
22128
        ac_hi=`expr '(' $ac_mid ')' - 1`
22129
                        if test $ac_mid -le $ac_hi; then
22130
                          ac_lo= ac_hi=
22131
                          break
22132
                        fi
22133
                        ac_mid=`expr 2 '*' $ac_mid`
22134
fi
22135
 
22136
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137
  done
22138
else
22139
  echo "$as_me: failed program was:" >&5
22140
sed 's/^/| /' conftest.$ac_ext >&5
22141
 
22142
        ac_lo= ac_hi=
22143
fi
22144
 
22145
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22146
fi
22147
 
22148
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22149
# Binary search between lo and hi bounds.
22150
while test "x$ac_lo" != "x$ac_hi"; do
22151
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22152
  cat >conftest.$ac_ext <<_ACEOF
22153
/* confdefs.h.  */
22154
_ACEOF
22155
cat confdefs.h >>conftest.$ac_ext
22156
cat >>conftest.$ac_ext <<_ACEOF
22157
/* end confdefs.h.  */
22158
$ac_includes_default
22159
   typedef char ac__type_sizeof_;
22160
int
22161
main ()
22162
{
22163
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22164
test_array @<:@0@:>@ = 0
22165
 
22166
  ;
22167
  return 0;
22168
}
22169
_ACEOF
22170
rm -f conftest.$ac_objext
22171
if { (ac_try="$ac_compile"
22172
case "(($ac_try" in
22173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174
  *) ac_try_echo=$ac_try;;
22175
esac
22176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177
  (eval "$ac_compile") 2>conftest.er1
22178
  ac_status=$?
22179
  grep -v '^ *+' conftest.er1 >conftest.err
22180
  rm -f conftest.er1
22181
  cat conftest.err >&5
22182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183
  (exit $ac_status); } && {
22184
         test -z "$ac_c_werror_flag" ||
22185
         test ! -s conftest.err
22186
       } && test -s conftest.$ac_objext; then
22187
  ac_hi=$ac_mid
22188
else
22189
  echo "$as_me: failed program was:" >&5
22190
sed 's/^/| /' conftest.$ac_ext >&5
22191
 
22192
        ac_lo=`expr '(' $ac_mid ')' + 1`
22193
fi
22194
 
22195
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22196
done
22197
case $ac_lo in
22198
?*) ac_cv_sizeof_char=$ac_lo;;
22199
'') if test "$ac_cv_type_char" = yes; then
22200
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
22201
See \`config.log' for more details." >&5
22202
echo "$as_me: error: cannot compute sizeof (char)
22203
See \`config.log' for more details." >&2;}
22204
   { (exit 77); exit 77; }; }
22205
   else
22206
     ac_cv_sizeof_char=0
22207
   fi ;;
22208
esac
22209
else
22210
  cat >conftest.$ac_ext <<_ACEOF
22211
/* confdefs.h.  */
22212
_ACEOF
22213
cat confdefs.h >>conftest.$ac_ext
22214
cat >>conftest.$ac_ext <<_ACEOF
22215
/* end confdefs.h.  */
22216
$ac_includes_default
22217
   typedef char ac__type_sizeof_;
22218
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22219
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22220
@%:@include 
22221
@%:@include 
22222
int
22223
main ()
22224
{
22225
 
22226
  FILE *f = fopen ("conftest.val", "w");
22227
  if (! f)
22228
    return 1;
22229
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22230
    {
22231
      long int i = longval ();
22232
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
22233
        return 1;
22234
      fprintf (f, "%ld\n", i);
22235
    }
22236
  else
22237
    {
22238
      unsigned long int i = ulongval ();
22239
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
22240
        return 1;
22241
      fprintf (f, "%lu\n", i);
22242
    }
22243
  return ferror (f) || fclose (f) != 0;
22244
 
22245
  ;
22246
  return 0;
22247
}
22248
_ACEOF
22249
rm -f conftest$ac_exeext
22250
if { (ac_try="$ac_link"
22251
case "(($ac_try" in
22252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22253
  *) ac_try_echo=$ac_try;;
22254
esac
22255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22256
  (eval "$ac_link") 2>&5
22257
  ac_status=$?
22258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22260
  { (case "(($ac_try" in
22261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262
  *) ac_try_echo=$ac_try;;
22263
esac
22264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22265
  (eval "$ac_try") 2>&5
22266
  ac_status=$?
22267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268
  (exit $ac_status); }; }; then
22269
  ac_cv_sizeof_char=`cat conftest.val`
22270
else
22271
  echo "$as_me: program exited with status $ac_status" >&5
22272
echo "$as_me: failed program was:" >&5
22273
sed 's/^/| /' conftest.$ac_ext >&5
22274
 
22275
( exit $ac_status )
22276
if test "$ac_cv_type_char" = yes; then
22277
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
22278
See \`config.log' for more details." >&5
22279
echo "$as_me: error: cannot compute sizeof (char)
22280
See \`config.log' for more details." >&2;}
22281
   { (exit 77); exit 77; }; }
22282
   else
22283
     ac_cv_sizeof_char=0
22284
   fi
22285
fi
22286
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22287
fi
22288
rm -f conftest.val
22289
fi
22290
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22291
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
22292
 
22293
 
22294
 
22295
cat >>confdefs.h <<_ACEOF
22296
@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
22297
_ACEOF
22298
 
22299
 
22300
{ echo "$as_me:$LINENO: checking for short" >&5
22301
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22302
if test "${ac_cv_type_short+set}" = set; then
22303
  echo $ECHO_N "(cached) $ECHO_C" >&6
22304
else
22305
  cat >conftest.$ac_ext <<_ACEOF
22306
/* confdefs.h.  */
22307
_ACEOF
22308
cat confdefs.h >>conftest.$ac_ext
22309
cat >>conftest.$ac_ext <<_ACEOF
22310
/* end confdefs.h.  */
22311
$ac_includes_default
22312
typedef short ac__type_new_;
22313
int
22314
main ()
22315
{
22316
if ((ac__type_new_ *) 0)
22317
  return 0;
22318
if (sizeof (ac__type_new_))
22319
  return 0;
22320
  ;
22321
  return 0;
22322
}
22323
_ACEOF
22324
rm -f conftest.$ac_objext
22325
if { (ac_try="$ac_compile"
22326
case "(($ac_try" in
22327
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328
  *) ac_try_echo=$ac_try;;
22329
esac
22330
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22331
  (eval "$ac_compile") 2>conftest.er1
22332
  ac_status=$?
22333
  grep -v '^ *+' conftest.er1 >conftest.err
22334
  rm -f conftest.er1
22335
  cat conftest.err >&5
22336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337
  (exit $ac_status); } && {
22338
         test -z "$ac_c_werror_flag" ||
22339
         test ! -s conftest.err
22340
       } && test -s conftest.$ac_objext; then
22341
  ac_cv_type_short=yes
22342
else
22343
  echo "$as_me: failed program was:" >&5
22344
sed 's/^/| /' conftest.$ac_ext >&5
22345
 
22346
        ac_cv_type_short=no
22347
fi
22348
 
22349
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22350
fi
22351
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22352
echo "${ECHO_T}$ac_cv_type_short" >&6; }
22353
 
22354
# The cast to long int works around a bug in the HP C Compiler
22355
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22356
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22357
# This bug is HP SR number 8606223364.
22358
{ echo "$as_me:$LINENO: checking size of short" >&5
22359
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
22360
if test "${ac_cv_sizeof_short+set}" = set; then
22361
  echo $ECHO_N "(cached) $ECHO_C" >&6
22362
else
22363
  if test "$cross_compiling" = yes; then
22364
  # Depending upon the size, compute the lo and hi bounds.
22365
cat >conftest.$ac_ext <<_ACEOF
22366
/* confdefs.h.  */
22367
_ACEOF
22368
cat confdefs.h >>conftest.$ac_ext
22369
cat >>conftest.$ac_ext <<_ACEOF
22370
/* end confdefs.h.  */
22371
$ac_includes_default
22372
   typedef short ac__type_sizeof_;
22373
int
22374
main ()
22375
{
22376
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
22377
test_array @<:@0@:>@ = 0
22378
 
22379
  ;
22380
  return 0;
22381
}
22382
_ACEOF
22383
rm -f conftest.$ac_objext
22384
if { (ac_try="$ac_compile"
22385
case "(($ac_try" in
22386
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22387
  *) ac_try_echo=$ac_try;;
22388
esac
22389
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22390
  (eval "$ac_compile") 2>conftest.er1
22391
  ac_status=$?
22392
  grep -v '^ *+' conftest.er1 >conftest.err
22393
  rm -f conftest.er1
22394
  cat conftest.err >&5
22395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396
  (exit $ac_status); } && {
22397
         test -z "$ac_c_werror_flag" ||
22398
         test ! -s conftest.err
22399
       } && test -s conftest.$ac_objext; then
22400
  ac_lo=0 ac_mid=0
22401
  while :; do
22402
    cat >conftest.$ac_ext <<_ACEOF
22403
/* confdefs.h.  */
22404
_ACEOF
22405
cat confdefs.h >>conftest.$ac_ext
22406
cat >>conftest.$ac_ext <<_ACEOF
22407
/* end confdefs.h.  */
22408
$ac_includes_default
22409
   typedef short ac__type_sizeof_;
22410
int
22411
main ()
22412
{
22413
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22414
test_array @<:@0@:>@ = 0
22415
 
22416
  ;
22417
  return 0;
22418
}
22419
_ACEOF
22420
rm -f conftest.$ac_objext
22421
if { (ac_try="$ac_compile"
22422
case "(($ac_try" in
22423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424
  *) ac_try_echo=$ac_try;;
22425
esac
22426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427
  (eval "$ac_compile") 2>conftest.er1
22428
  ac_status=$?
22429
  grep -v '^ *+' conftest.er1 >conftest.err
22430
  rm -f conftest.er1
22431
  cat conftest.err >&5
22432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433
  (exit $ac_status); } && {
22434
         test -z "$ac_c_werror_flag" ||
22435
         test ! -s conftest.err
22436
       } && test -s conftest.$ac_objext; then
22437
  ac_hi=$ac_mid; break
22438
else
22439
  echo "$as_me: failed program was:" >&5
22440
sed 's/^/| /' conftest.$ac_ext >&5
22441
 
22442
        ac_lo=`expr $ac_mid + 1`
22443
                        if test $ac_lo -le $ac_mid; then
22444
                          ac_lo= ac_hi=
22445
                          break
22446
                        fi
22447
                        ac_mid=`expr 2 '*' $ac_mid + 1`
22448
fi
22449
 
22450
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22451
  done
22452
else
22453
  echo "$as_me: failed program was:" >&5
22454
sed 's/^/| /' conftest.$ac_ext >&5
22455
 
22456
        cat >conftest.$ac_ext <<_ACEOF
22457
/* confdefs.h.  */
22458
_ACEOF
22459
cat confdefs.h >>conftest.$ac_ext
22460
cat >>conftest.$ac_ext <<_ACEOF
22461
/* end confdefs.h.  */
22462
$ac_includes_default
22463
   typedef short ac__type_sizeof_;
22464
int
22465
main ()
22466
{
22467
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
22468
test_array @<:@0@:>@ = 0
22469
 
22470
  ;
22471
  return 0;
22472
}
22473
_ACEOF
22474
rm -f conftest.$ac_objext
22475
if { (ac_try="$ac_compile"
22476
case "(($ac_try" in
22477
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478
  *) ac_try_echo=$ac_try;;
22479
esac
22480
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481
  (eval "$ac_compile") 2>conftest.er1
22482
  ac_status=$?
22483
  grep -v '^ *+' conftest.er1 >conftest.err
22484
  rm -f conftest.er1
22485
  cat conftest.err >&5
22486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487
  (exit $ac_status); } && {
22488
         test -z "$ac_c_werror_flag" ||
22489
         test ! -s conftest.err
22490
       } && test -s conftest.$ac_objext; then
22491
  ac_hi=-1 ac_mid=-1
22492
  while :; do
22493
    cat >conftest.$ac_ext <<_ACEOF
22494
/* confdefs.h.  */
22495
_ACEOF
22496
cat confdefs.h >>conftest.$ac_ext
22497
cat >>conftest.$ac_ext <<_ACEOF
22498
/* end confdefs.h.  */
22499
$ac_includes_default
22500
   typedef short ac__type_sizeof_;
22501
int
22502
main ()
22503
{
22504
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
22505
test_array @<:@0@:>@ = 0
22506
 
22507
  ;
22508
  return 0;
22509
}
22510
_ACEOF
22511
rm -f conftest.$ac_objext
22512
if { (ac_try="$ac_compile"
22513
case "(($ac_try" in
22514
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515
  *) ac_try_echo=$ac_try;;
22516
esac
22517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518
  (eval "$ac_compile") 2>conftest.er1
22519
  ac_status=$?
22520
  grep -v '^ *+' conftest.er1 >conftest.err
22521
  rm -f conftest.er1
22522
  cat conftest.err >&5
22523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524
  (exit $ac_status); } && {
22525
         test -z "$ac_c_werror_flag" ||
22526
         test ! -s conftest.err
22527
       } && test -s conftest.$ac_objext; then
22528
  ac_lo=$ac_mid; break
22529
else
22530
  echo "$as_me: failed program was:" >&5
22531
sed 's/^/| /' conftest.$ac_ext >&5
22532
 
22533
        ac_hi=`expr '(' $ac_mid ')' - 1`
22534
                        if test $ac_mid -le $ac_hi; then
22535
                          ac_lo= ac_hi=
22536
                          break
22537
                        fi
22538
                        ac_mid=`expr 2 '*' $ac_mid`
22539
fi
22540
 
22541
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22542
  done
22543
else
22544
  echo "$as_me: failed program was:" >&5
22545
sed 's/^/| /' conftest.$ac_ext >&5
22546
 
22547
        ac_lo= ac_hi=
22548
fi
22549
 
22550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551
fi
22552
 
22553
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554
# Binary search between lo and hi bounds.
22555
while test "x$ac_lo" != "x$ac_hi"; do
22556
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22557
  cat >conftest.$ac_ext <<_ACEOF
22558
/* confdefs.h.  */
22559
_ACEOF
22560
cat confdefs.h >>conftest.$ac_ext
22561
cat >>conftest.$ac_ext <<_ACEOF
22562
/* end confdefs.h.  */
22563
$ac_includes_default
22564
   typedef short ac__type_sizeof_;
22565
int
22566
main ()
22567
{
22568
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22569
test_array @<:@0@:>@ = 0
22570
 
22571
  ;
22572
  return 0;
22573
}
22574
_ACEOF
22575
rm -f conftest.$ac_objext
22576
if { (ac_try="$ac_compile"
22577
case "(($ac_try" in
22578
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22579
  *) ac_try_echo=$ac_try;;
22580
esac
22581
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22582
  (eval "$ac_compile") 2>conftest.er1
22583
  ac_status=$?
22584
  grep -v '^ *+' conftest.er1 >conftest.err
22585
  rm -f conftest.er1
22586
  cat conftest.err >&5
22587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588
  (exit $ac_status); } && {
22589
         test -z "$ac_c_werror_flag" ||
22590
         test ! -s conftest.err
22591
       } && test -s conftest.$ac_objext; then
22592
  ac_hi=$ac_mid
22593
else
22594
  echo "$as_me: failed program was:" >&5
22595
sed 's/^/| /' conftest.$ac_ext >&5
22596
 
22597
        ac_lo=`expr '(' $ac_mid ')' + 1`
22598
fi
22599
 
22600
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22601
done
22602
case $ac_lo in
22603
?*) ac_cv_sizeof_short=$ac_lo;;
22604
'') if test "$ac_cv_type_short" = yes; then
22605
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22606
See \`config.log' for more details." >&5
22607
echo "$as_me: error: cannot compute sizeof (short)
22608
See \`config.log' for more details." >&2;}
22609
   { (exit 77); exit 77; }; }
22610
   else
22611
     ac_cv_sizeof_short=0
22612
   fi ;;
22613
esac
22614
else
22615
  cat >conftest.$ac_ext <<_ACEOF
22616
/* confdefs.h.  */
22617
_ACEOF
22618
cat confdefs.h >>conftest.$ac_ext
22619
cat >>conftest.$ac_ext <<_ACEOF
22620
/* end confdefs.h.  */
22621
$ac_includes_default
22622
   typedef short ac__type_sizeof_;
22623
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22624
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22625
@%:@include 
22626
@%:@include 
22627
int
22628
main ()
22629
{
22630
 
22631
  FILE *f = fopen ("conftest.val", "w");
22632
  if (! f)
22633
    return 1;
22634
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22635
    {
22636
      long int i = longval ();
22637
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
22638
        return 1;
22639
      fprintf (f, "%ld\n", i);
22640
    }
22641
  else
22642
    {
22643
      unsigned long int i = ulongval ();
22644
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
22645
        return 1;
22646
      fprintf (f, "%lu\n", i);
22647
    }
22648
  return ferror (f) || fclose (f) != 0;
22649
 
22650
  ;
22651
  return 0;
22652
}
22653
_ACEOF
22654
rm -f conftest$ac_exeext
22655
if { (ac_try="$ac_link"
22656
case "(($ac_try" in
22657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658
  *) ac_try_echo=$ac_try;;
22659
esac
22660
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22661
  (eval "$ac_link") 2>&5
22662
  ac_status=$?
22663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22665
  { (case "(($ac_try" in
22666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22667
  *) ac_try_echo=$ac_try;;
22668
esac
22669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22670
  (eval "$ac_try") 2>&5
22671
  ac_status=$?
22672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673
  (exit $ac_status); }; }; then
22674
  ac_cv_sizeof_short=`cat conftest.val`
22675
else
22676
  echo "$as_me: program exited with status $ac_status" >&5
22677
echo "$as_me: failed program was:" >&5
22678
sed 's/^/| /' conftest.$ac_ext >&5
22679
 
22680
( exit $ac_status )
22681
if test "$ac_cv_type_short" = yes; then
22682
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22683
See \`config.log' for more details." >&5
22684
echo "$as_me: error: cannot compute sizeof (short)
22685
See \`config.log' for more details." >&2;}
22686
   { (exit 77); exit 77; }; }
22687
   else
22688
     ac_cv_sizeof_short=0
22689
   fi
22690
fi
22691
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22692
fi
22693
rm -f conftest.val
22694
fi
22695
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22696
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22697
 
22698
 
22699
 
22700
cat >>confdefs.h <<_ACEOF
22701
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
22702
_ACEOF
22703
 
22704
 
22705
{ echo "$as_me:$LINENO: checking for int" >&5
22706
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22707
if test "${ac_cv_type_int+set}" = set; then
22708
  echo $ECHO_N "(cached) $ECHO_C" >&6
22709
else
22710
  cat >conftest.$ac_ext <<_ACEOF
22711
/* confdefs.h.  */
22712
_ACEOF
22713
cat confdefs.h >>conftest.$ac_ext
22714
cat >>conftest.$ac_ext <<_ACEOF
22715
/* end confdefs.h.  */
22716
$ac_includes_default
22717
typedef int ac__type_new_;
22718
int
22719
main ()
22720
{
22721
if ((ac__type_new_ *) 0)
22722
  return 0;
22723
if (sizeof (ac__type_new_))
22724
  return 0;
22725
  ;
22726
  return 0;
22727
}
22728
_ACEOF
22729
rm -f conftest.$ac_objext
22730
if { (ac_try="$ac_compile"
22731
case "(($ac_try" in
22732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22733
  *) ac_try_echo=$ac_try;;
22734
esac
22735
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22736
  (eval "$ac_compile") 2>conftest.er1
22737
  ac_status=$?
22738
  grep -v '^ *+' conftest.er1 >conftest.err
22739
  rm -f conftest.er1
22740
  cat conftest.err >&5
22741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742
  (exit $ac_status); } && {
22743
         test -z "$ac_c_werror_flag" ||
22744
         test ! -s conftest.err
22745
       } && test -s conftest.$ac_objext; then
22746
  ac_cv_type_int=yes
22747
else
22748
  echo "$as_me: failed program was:" >&5
22749
sed 's/^/| /' conftest.$ac_ext >&5
22750
 
22751
        ac_cv_type_int=no
22752
fi
22753
 
22754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22755
fi
22756
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22757
echo "${ECHO_T}$ac_cv_type_int" >&6; }
22758
 
22759
# The cast to long int works around a bug in the HP C Compiler
22760
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22761
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22762
# This bug is HP SR number 8606223364.
22763
{ echo "$as_me:$LINENO: checking size of int" >&5
22764
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22765
if test "${ac_cv_sizeof_int+set}" = set; then
22766
  echo $ECHO_N "(cached) $ECHO_C" >&6
22767
else
22768
  if test "$cross_compiling" = yes; then
22769
  # Depending upon the size, compute the lo and hi bounds.
22770
cat >conftest.$ac_ext <<_ACEOF
22771
/* confdefs.h.  */
22772
_ACEOF
22773
cat confdefs.h >>conftest.$ac_ext
22774
cat >>conftest.$ac_ext <<_ACEOF
22775
/* end confdefs.h.  */
22776
$ac_includes_default
22777
   typedef int ac__type_sizeof_;
22778
int
22779
main ()
22780
{
22781
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
22782
test_array @<:@0@:>@ = 0
22783
 
22784
  ;
22785
  return 0;
22786
}
22787
_ACEOF
22788
rm -f conftest.$ac_objext
22789
if { (ac_try="$ac_compile"
22790
case "(($ac_try" in
22791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792
  *) ac_try_echo=$ac_try;;
22793
esac
22794
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795
  (eval "$ac_compile") 2>conftest.er1
22796
  ac_status=$?
22797
  grep -v '^ *+' conftest.er1 >conftest.err
22798
  rm -f conftest.er1
22799
  cat conftest.err >&5
22800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801
  (exit $ac_status); } && {
22802
         test -z "$ac_c_werror_flag" ||
22803
         test ! -s conftest.err
22804
       } && test -s conftest.$ac_objext; then
22805
  ac_lo=0 ac_mid=0
22806
  while :; do
22807
    cat >conftest.$ac_ext <<_ACEOF
22808
/* confdefs.h.  */
22809
_ACEOF
22810
cat confdefs.h >>conftest.$ac_ext
22811
cat >>conftest.$ac_ext <<_ACEOF
22812
/* end confdefs.h.  */
22813
$ac_includes_default
22814
   typedef int ac__type_sizeof_;
22815
int
22816
main ()
22817
{
22818
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22819
test_array @<:@0@:>@ = 0
22820
 
22821
  ;
22822
  return 0;
22823
}
22824
_ACEOF
22825
rm -f conftest.$ac_objext
22826
if { (ac_try="$ac_compile"
22827
case "(($ac_try" in
22828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829
  *) ac_try_echo=$ac_try;;
22830
esac
22831
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832
  (eval "$ac_compile") 2>conftest.er1
22833
  ac_status=$?
22834
  grep -v '^ *+' conftest.er1 >conftest.err
22835
  rm -f conftest.er1
22836
  cat conftest.err >&5
22837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838
  (exit $ac_status); } && {
22839
         test -z "$ac_c_werror_flag" ||
22840
         test ! -s conftest.err
22841
       } && test -s conftest.$ac_objext; then
22842
  ac_hi=$ac_mid; break
22843
else
22844
  echo "$as_me: failed program was:" >&5
22845
sed 's/^/| /' conftest.$ac_ext >&5
22846
 
22847
        ac_lo=`expr $ac_mid + 1`
22848
                        if test $ac_lo -le $ac_mid; then
22849
                          ac_lo= ac_hi=
22850
                          break
22851
                        fi
22852
                        ac_mid=`expr 2 '*' $ac_mid + 1`
22853
fi
22854
 
22855
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856
  done
22857
else
22858
  echo "$as_me: failed program was:" >&5
22859
sed 's/^/| /' conftest.$ac_ext >&5
22860
 
22861
        cat >conftest.$ac_ext <<_ACEOF
22862
/* confdefs.h.  */
22863
_ACEOF
22864
cat confdefs.h >>conftest.$ac_ext
22865
cat >>conftest.$ac_ext <<_ACEOF
22866
/* end confdefs.h.  */
22867
$ac_includes_default
22868
   typedef int ac__type_sizeof_;
22869
int
22870
main ()
22871
{
22872
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
22873
test_array @<:@0@:>@ = 0
22874
 
22875
  ;
22876
  return 0;
22877
}
22878
_ACEOF
22879
rm -f conftest.$ac_objext
22880
if { (ac_try="$ac_compile"
22881
case "(($ac_try" in
22882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883
  *) ac_try_echo=$ac_try;;
22884
esac
22885
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886
  (eval "$ac_compile") 2>conftest.er1
22887
  ac_status=$?
22888
  grep -v '^ *+' conftest.er1 >conftest.err
22889
  rm -f conftest.er1
22890
  cat conftest.err >&5
22891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892
  (exit $ac_status); } && {
22893
         test -z "$ac_c_werror_flag" ||
22894
         test ! -s conftest.err
22895
       } && test -s conftest.$ac_objext; then
22896
  ac_hi=-1 ac_mid=-1
22897
  while :; do
22898
    cat >conftest.$ac_ext <<_ACEOF
22899
/* confdefs.h.  */
22900
_ACEOF
22901
cat confdefs.h >>conftest.$ac_ext
22902
cat >>conftest.$ac_ext <<_ACEOF
22903
/* end confdefs.h.  */
22904
$ac_includes_default
22905
   typedef int ac__type_sizeof_;
22906
int
22907
main ()
22908
{
22909
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
22910
test_array @<:@0@:>@ = 0
22911
 
22912
  ;
22913
  return 0;
22914
}
22915
_ACEOF
22916
rm -f conftest.$ac_objext
22917
if { (ac_try="$ac_compile"
22918
case "(($ac_try" in
22919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920
  *) ac_try_echo=$ac_try;;
22921
esac
22922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923
  (eval "$ac_compile") 2>conftest.er1
22924
  ac_status=$?
22925
  grep -v '^ *+' conftest.er1 >conftest.err
22926
  rm -f conftest.er1
22927
  cat conftest.err >&5
22928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929
  (exit $ac_status); } && {
22930
         test -z "$ac_c_werror_flag" ||
22931
         test ! -s conftest.err
22932
       } && test -s conftest.$ac_objext; then
22933
  ac_lo=$ac_mid; break
22934
else
22935
  echo "$as_me: failed program was:" >&5
22936
sed 's/^/| /' conftest.$ac_ext >&5
22937
 
22938
        ac_hi=`expr '(' $ac_mid ')' - 1`
22939
                        if test $ac_mid -le $ac_hi; then
22940
                          ac_lo= ac_hi=
22941
                          break
22942
                        fi
22943
                        ac_mid=`expr 2 '*' $ac_mid`
22944
fi
22945
 
22946
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22947
  done
22948
else
22949
  echo "$as_me: failed program was:" >&5
22950
sed 's/^/| /' conftest.$ac_ext >&5
22951
 
22952
        ac_lo= ac_hi=
22953
fi
22954
 
22955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956
fi
22957
 
22958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22959
# Binary search between lo and hi bounds.
22960
while test "x$ac_lo" != "x$ac_hi"; do
22961
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22962
  cat >conftest.$ac_ext <<_ACEOF
22963
/* confdefs.h.  */
22964
_ACEOF
22965
cat confdefs.h >>conftest.$ac_ext
22966
cat >>conftest.$ac_ext <<_ACEOF
22967
/* end confdefs.h.  */
22968
$ac_includes_default
22969
   typedef int ac__type_sizeof_;
22970
int
22971
main ()
22972
{
22973
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
22974
test_array @<:@0@:>@ = 0
22975
 
22976
  ;
22977
  return 0;
22978
}
22979
_ACEOF
22980
rm -f conftest.$ac_objext
22981
if { (ac_try="$ac_compile"
22982
case "(($ac_try" in
22983
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984
  *) ac_try_echo=$ac_try;;
22985
esac
22986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987
  (eval "$ac_compile") 2>conftest.er1
22988
  ac_status=$?
22989
  grep -v '^ *+' conftest.er1 >conftest.err
22990
  rm -f conftest.er1
22991
  cat conftest.err >&5
22992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993
  (exit $ac_status); } && {
22994
         test -z "$ac_c_werror_flag" ||
22995
         test ! -s conftest.err
22996
       } && test -s conftest.$ac_objext; then
22997
  ac_hi=$ac_mid
22998
else
22999
  echo "$as_me: failed program was:" >&5
23000
sed 's/^/| /' conftest.$ac_ext >&5
23001
 
23002
        ac_lo=`expr '(' $ac_mid ')' + 1`
23003
fi
23004
 
23005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23006
done
23007
case $ac_lo in
23008
?*) ac_cv_sizeof_int=$ac_lo;;
23009
'') if test "$ac_cv_type_int" = yes; then
23010
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23011
See \`config.log' for more details." >&5
23012
echo "$as_me: error: cannot compute sizeof (int)
23013
See \`config.log' for more details." >&2;}
23014
   { (exit 77); exit 77; }; }
23015
   else
23016
     ac_cv_sizeof_int=0
23017
   fi ;;
23018
esac
23019
else
23020
  cat >conftest.$ac_ext <<_ACEOF
23021
/* confdefs.h.  */
23022
_ACEOF
23023
cat confdefs.h >>conftest.$ac_ext
23024
cat >>conftest.$ac_ext <<_ACEOF
23025
/* end confdefs.h.  */
23026
$ac_includes_default
23027
   typedef int ac__type_sizeof_;
23028
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23029
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23030
@%:@include 
23031
@%:@include 
23032
int
23033
main ()
23034
{
23035
 
23036
  FILE *f = fopen ("conftest.val", "w");
23037
  if (! f)
23038
    return 1;
23039
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23040
    {
23041
      long int i = longval ();
23042
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23043
        return 1;
23044
      fprintf (f, "%ld\n", i);
23045
    }
23046
  else
23047
    {
23048
      unsigned long int i = ulongval ();
23049
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23050
        return 1;
23051
      fprintf (f, "%lu\n", i);
23052
    }
23053
  return ferror (f) || fclose (f) != 0;
23054
 
23055
  ;
23056
  return 0;
23057
}
23058
_ACEOF
23059
rm -f conftest$ac_exeext
23060
if { (ac_try="$ac_link"
23061
case "(($ac_try" in
23062
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23063
  *) ac_try_echo=$ac_try;;
23064
esac
23065
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23066
  (eval "$ac_link") 2>&5
23067
  ac_status=$?
23068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23070
  { (case "(($ac_try" in
23071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072
  *) ac_try_echo=$ac_try;;
23073
esac
23074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075
  (eval "$ac_try") 2>&5
23076
  ac_status=$?
23077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078
  (exit $ac_status); }; }; then
23079
  ac_cv_sizeof_int=`cat conftest.val`
23080
else
23081
  echo "$as_me: program exited with status $ac_status" >&5
23082
echo "$as_me: failed program was:" >&5
23083
sed 's/^/| /' conftest.$ac_ext >&5
23084
 
23085
( exit $ac_status )
23086
if test "$ac_cv_type_int" = yes; then
23087
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23088
See \`config.log' for more details." >&5
23089
echo "$as_me: error: cannot compute sizeof (int)
23090
See \`config.log' for more details." >&2;}
23091
   { (exit 77); exit 77; }; }
23092
   else
23093
     ac_cv_sizeof_int=0
23094
   fi
23095
fi
23096
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23097
fi
23098
rm -f conftest.val
23099
fi
23100
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23101
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23102
 
23103
 
23104
 
23105
cat >>confdefs.h <<_ACEOF
23106
@%:@define SIZEOF_INT $ac_cv_sizeof_int
23107
_ACEOF
23108
 
23109
 
23110
{ echo "$as_me:$LINENO: checking for long" >&5
23111
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23112
if test "${ac_cv_type_long+set}" = set; then
23113
  echo $ECHO_N "(cached) $ECHO_C" >&6
23114
else
23115
  cat >conftest.$ac_ext <<_ACEOF
23116
/* confdefs.h.  */
23117
_ACEOF
23118
cat confdefs.h >>conftest.$ac_ext
23119
cat >>conftest.$ac_ext <<_ACEOF
23120
/* end confdefs.h.  */
23121
$ac_includes_default
23122
typedef long ac__type_new_;
23123
int
23124
main ()
23125
{
23126
if ((ac__type_new_ *) 0)
23127
  return 0;
23128
if (sizeof (ac__type_new_))
23129
  return 0;
23130
  ;
23131
  return 0;
23132
}
23133
_ACEOF
23134
rm -f conftest.$ac_objext
23135
if { (ac_try="$ac_compile"
23136
case "(($ac_try" in
23137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138
  *) ac_try_echo=$ac_try;;
23139
esac
23140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141
  (eval "$ac_compile") 2>conftest.er1
23142
  ac_status=$?
23143
  grep -v '^ *+' conftest.er1 >conftest.err
23144
  rm -f conftest.er1
23145
  cat conftest.err >&5
23146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147
  (exit $ac_status); } && {
23148
         test -z "$ac_c_werror_flag" ||
23149
         test ! -s conftest.err
23150
       } && test -s conftest.$ac_objext; then
23151
  ac_cv_type_long=yes
23152
else
23153
  echo "$as_me: failed program was:" >&5
23154
sed 's/^/| /' conftest.$ac_ext >&5
23155
 
23156
        ac_cv_type_long=no
23157
fi
23158
 
23159
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23160
fi
23161
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23162
echo "${ECHO_T}$ac_cv_type_long" >&6; }
23163
 
23164
# The cast to long int works around a bug in the HP C Compiler
23165
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23166
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23167
# This bug is HP SR number 8606223364.
23168
{ echo "$as_me:$LINENO: checking size of long" >&5
23169
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
23170
if test "${ac_cv_sizeof_long+set}" = set; then
23171
  echo $ECHO_N "(cached) $ECHO_C" >&6
23172
else
23173
  if test "$cross_compiling" = yes; then
23174
  # Depending upon the size, compute the lo and hi bounds.
23175
cat >conftest.$ac_ext <<_ACEOF
23176
/* confdefs.h.  */
23177
_ACEOF
23178
cat confdefs.h >>conftest.$ac_ext
23179
cat >>conftest.$ac_ext <<_ACEOF
23180
/* end confdefs.h.  */
23181
$ac_includes_default
23182
   typedef long ac__type_sizeof_;
23183
int
23184
main ()
23185
{
23186
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23187
test_array @<:@0@:>@ = 0
23188
 
23189
  ;
23190
  return 0;
23191
}
23192
_ACEOF
23193
rm -f conftest.$ac_objext
23194
if { (ac_try="$ac_compile"
23195
case "(($ac_try" in
23196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197
  *) ac_try_echo=$ac_try;;
23198
esac
23199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200
  (eval "$ac_compile") 2>conftest.er1
23201
  ac_status=$?
23202
  grep -v '^ *+' conftest.er1 >conftest.err
23203
  rm -f conftest.er1
23204
  cat conftest.err >&5
23205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206
  (exit $ac_status); } && {
23207
         test -z "$ac_c_werror_flag" ||
23208
         test ! -s conftest.err
23209
       } && test -s conftest.$ac_objext; then
23210
  ac_lo=0 ac_mid=0
23211
  while :; do
23212
    cat >conftest.$ac_ext <<_ACEOF
23213
/* confdefs.h.  */
23214
_ACEOF
23215
cat confdefs.h >>conftest.$ac_ext
23216
cat >>conftest.$ac_ext <<_ACEOF
23217
/* end confdefs.h.  */
23218
$ac_includes_default
23219
   typedef long ac__type_sizeof_;
23220
int
23221
main ()
23222
{
23223
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23224
test_array @<:@0@:>@ = 0
23225
 
23226
  ;
23227
  return 0;
23228
}
23229
_ACEOF
23230
rm -f conftest.$ac_objext
23231
if { (ac_try="$ac_compile"
23232
case "(($ac_try" in
23233
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23234
  *) ac_try_echo=$ac_try;;
23235
esac
23236
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23237
  (eval "$ac_compile") 2>conftest.er1
23238
  ac_status=$?
23239
  grep -v '^ *+' conftest.er1 >conftest.err
23240
  rm -f conftest.er1
23241
  cat conftest.err >&5
23242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243
  (exit $ac_status); } && {
23244
         test -z "$ac_c_werror_flag" ||
23245
         test ! -s conftest.err
23246
       } && test -s conftest.$ac_objext; then
23247
  ac_hi=$ac_mid; break
23248
else
23249
  echo "$as_me: failed program was:" >&5
23250
sed 's/^/| /' conftest.$ac_ext >&5
23251
 
23252
        ac_lo=`expr $ac_mid + 1`
23253
                        if test $ac_lo -le $ac_mid; then
23254
                          ac_lo= ac_hi=
23255
                          break
23256
                        fi
23257
                        ac_mid=`expr 2 '*' $ac_mid + 1`
23258
fi
23259
 
23260
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23261
  done
23262
else
23263
  echo "$as_me: failed program was:" >&5
23264
sed 's/^/| /' conftest.$ac_ext >&5
23265
 
23266
        cat >conftest.$ac_ext <<_ACEOF
23267
/* confdefs.h.  */
23268
_ACEOF
23269
cat confdefs.h >>conftest.$ac_ext
23270
cat >>conftest.$ac_ext <<_ACEOF
23271
/* end confdefs.h.  */
23272
$ac_includes_default
23273
   typedef long ac__type_sizeof_;
23274
int
23275
main ()
23276
{
23277
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23278
test_array @<:@0@:>@ = 0
23279
 
23280
  ;
23281
  return 0;
23282
}
23283
_ACEOF
23284
rm -f conftest.$ac_objext
23285
if { (ac_try="$ac_compile"
23286
case "(($ac_try" in
23287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288
  *) ac_try_echo=$ac_try;;
23289
esac
23290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23291
  (eval "$ac_compile") 2>conftest.er1
23292
  ac_status=$?
23293
  grep -v '^ *+' conftest.er1 >conftest.err
23294
  rm -f conftest.er1
23295
  cat conftest.err >&5
23296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297
  (exit $ac_status); } && {
23298
         test -z "$ac_c_werror_flag" ||
23299
         test ! -s conftest.err
23300
       } && test -s conftest.$ac_objext; then
23301
  ac_hi=-1 ac_mid=-1
23302
  while :; do
23303
    cat >conftest.$ac_ext <<_ACEOF
23304
/* confdefs.h.  */
23305
_ACEOF
23306
cat confdefs.h >>conftest.$ac_ext
23307
cat >>conftest.$ac_ext <<_ACEOF
23308
/* end confdefs.h.  */
23309
$ac_includes_default
23310
   typedef long ac__type_sizeof_;
23311
int
23312
main ()
23313
{
23314
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23315
test_array @<:@0@:>@ = 0
23316
 
23317
  ;
23318
  return 0;
23319
}
23320
_ACEOF
23321
rm -f conftest.$ac_objext
23322
if { (ac_try="$ac_compile"
23323
case "(($ac_try" in
23324
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23325
  *) ac_try_echo=$ac_try;;
23326
esac
23327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23328
  (eval "$ac_compile") 2>conftest.er1
23329
  ac_status=$?
23330
  grep -v '^ *+' conftest.er1 >conftest.err
23331
  rm -f conftest.er1
23332
  cat conftest.err >&5
23333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334
  (exit $ac_status); } && {
23335
         test -z "$ac_c_werror_flag" ||
23336
         test ! -s conftest.err
23337
       } && test -s conftest.$ac_objext; then
23338
  ac_lo=$ac_mid; break
23339
else
23340
  echo "$as_me: failed program was:" >&5
23341
sed 's/^/| /' conftest.$ac_ext >&5
23342
 
23343
        ac_hi=`expr '(' $ac_mid ')' - 1`
23344
                        if test $ac_mid -le $ac_hi; then
23345
                          ac_lo= ac_hi=
23346
                          break
23347
                        fi
23348
                        ac_mid=`expr 2 '*' $ac_mid`
23349
fi
23350
 
23351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352
  done
23353
else
23354
  echo "$as_me: failed program was:" >&5
23355
sed 's/^/| /' conftest.$ac_ext >&5
23356
 
23357
        ac_lo= ac_hi=
23358
fi
23359
 
23360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361
fi
23362
 
23363
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364
# Binary search between lo and hi bounds.
23365
while test "x$ac_lo" != "x$ac_hi"; do
23366
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23367
  cat >conftest.$ac_ext <<_ACEOF
23368
/* confdefs.h.  */
23369
_ACEOF
23370
cat confdefs.h >>conftest.$ac_ext
23371
cat >>conftest.$ac_ext <<_ACEOF
23372
/* end confdefs.h.  */
23373
$ac_includes_default
23374
   typedef long ac__type_sizeof_;
23375
int
23376
main ()
23377
{
23378
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23379
test_array @<:@0@:>@ = 0
23380
 
23381
  ;
23382
  return 0;
23383
}
23384
_ACEOF
23385
rm -f conftest.$ac_objext
23386
if { (ac_try="$ac_compile"
23387
case "(($ac_try" in
23388
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389
  *) ac_try_echo=$ac_try;;
23390
esac
23391
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392
  (eval "$ac_compile") 2>conftest.er1
23393
  ac_status=$?
23394
  grep -v '^ *+' conftest.er1 >conftest.err
23395
  rm -f conftest.er1
23396
  cat conftest.err >&5
23397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398
  (exit $ac_status); } && {
23399
         test -z "$ac_c_werror_flag" ||
23400
         test ! -s conftest.err
23401
       } && test -s conftest.$ac_objext; then
23402
  ac_hi=$ac_mid
23403
else
23404
  echo "$as_me: failed program was:" >&5
23405
sed 's/^/| /' conftest.$ac_ext >&5
23406
 
23407
        ac_lo=`expr '(' $ac_mid ')' + 1`
23408
fi
23409
 
23410
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411
done
23412
case $ac_lo in
23413
?*) ac_cv_sizeof_long=$ac_lo;;
23414
'') if test "$ac_cv_type_long" = yes; then
23415
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23416
See \`config.log' for more details." >&5
23417
echo "$as_me: error: cannot compute sizeof (long)
23418
See \`config.log' for more details." >&2;}
23419
   { (exit 77); exit 77; }; }
23420
   else
23421
     ac_cv_sizeof_long=0
23422
   fi ;;
23423
esac
23424
else
23425
  cat >conftest.$ac_ext <<_ACEOF
23426
/* confdefs.h.  */
23427
_ACEOF
23428
cat confdefs.h >>conftest.$ac_ext
23429
cat >>conftest.$ac_ext <<_ACEOF
23430
/* end confdefs.h.  */
23431
$ac_includes_default
23432
   typedef long ac__type_sizeof_;
23433
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23434
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23435
@%:@include 
23436
@%:@include 
23437
int
23438
main ()
23439
{
23440
 
23441
  FILE *f = fopen ("conftest.val", "w");
23442
  if (! f)
23443
    return 1;
23444
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23445
    {
23446
      long int i = longval ();
23447
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23448
        return 1;
23449
      fprintf (f, "%ld\n", i);
23450
    }
23451
  else
23452
    {
23453
      unsigned long int i = ulongval ();
23454
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23455
        return 1;
23456
      fprintf (f, "%lu\n", i);
23457
    }
23458
  return ferror (f) || fclose (f) != 0;
23459
 
23460
  ;
23461
  return 0;
23462
}
23463
_ACEOF
23464
rm -f conftest$ac_exeext
23465
if { (ac_try="$ac_link"
23466
case "(($ac_try" in
23467
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468
  *) ac_try_echo=$ac_try;;
23469
esac
23470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471
  (eval "$ac_link") 2>&5
23472
  ac_status=$?
23473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23475
  { (case "(($ac_try" in
23476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477
  *) ac_try_echo=$ac_try;;
23478
esac
23479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23480
  (eval "$ac_try") 2>&5
23481
  ac_status=$?
23482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483
  (exit $ac_status); }; }; then
23484
  ac_cv_sizeof_long=`cat conftest.val`
23485
else
23486
  echo "$as_me: program exited with status $ac_status" >&5
23487
echo "$as_me: failed program was:" >&5
23488
sed 's/^/| /' conftest.$ac_ext >&5
23489
 
23490
( exit $ac_status )
23491
if test "$ac_cv_type_long" = yes; then
23492
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23493
See \`config.log' for more details." >&5
23494
echo "$as_me: error: cannot compute sizeof (long)
23495
See \`config.log' for more details." >&2;}
23496
   { (exit 77); exit 77; }; }
23497
   else
23498
     ac_cv_sizeof_long=0
23499
   fi
23500
fi
23501
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23502
fi
23503
rm -f conftest.val
23504
fi
23505
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23506
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23507
 
23508
 
23509
 
23510
cat >>confdefs.h <<_ACEOF
23511
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
23512
_ACEOF
23513
 
23514
 
23515
 
23516
# check for GNU readline
23517
 
23518
{ echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
23519
echo $ECHO_N "checking for add_history in -lreadline... $ECHO_C" >&6; }
23520
if test "${ac_cv_lib_readline_add_history+set}" = set; then
23521
  echo $ECHO_N "(cached) $ECHO_C" >&6
23522
else
23523
  ac_check_lib_save_LIBS=$LIBS
23524
LIBS="-lreadline  $LIBS"
23525
cat >conftest.$ac_ext <<_ACEOF
23526
/* confdefs.h.  */
23527
_ACEOF
23528
cat confdefs.h >>conftest.$ac_ext
23529
cat >>conftest.$ac_ext <<_ACEOF
23530
/* end confdefs.h.  */
23531
 
23532
/* Override any GCC internal prototype to avoid an error.
23533
   Use char because int might match the return type of a GCC
23534
   builtin and then its argument prototype would still apply.  */
23535
#ifdef __cplusplus
23536
extern "C"
23537
#endif
23538
char add_history ();
23539
int
23540
main ()
23541
{
23542
return add_history ();
23543
  ;
23544
  return 0;
23545
}
23546
_ACEOF
23547
rm -f conftest.$ac_objext conftest$ac_exeext
23548
if { (ac_try="$ac_link"
23549
case "(($ac_try" in
23550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551
  *) ac_try_echo=$ac_try;;
23552
esac
23553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554
  (eval "$ac_link") 2>conftest.er1
23555
  ac_status=$?
23556
  grep -v '^ *+' conftest.er1 >conftest.err
23557
  rm -f conftest.er1
23558
  cat conftest.err >&5
23559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560
  (exit $ac_status); } && {
23561
         test -z "$ac_c_werror_flag" ||
23562
         test ! -s conftest.err
23563
       } && test -s conftest$ac_exeext &&
23564
       $as_test_x conftest$ac_exeext; then
23565
  ac_cv_lib_readline_add_history=yes
23566
else
23567
  echo "$as_me: failed program was:" >&5
23568
sed 's/^/| /' conftest.$ac_ext >&5
23569
 
23570
        ac_cv_lib_readline_add_history=no
23571
fi
23572
 
23573
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23574
      conftest$ac_exeext conftest.$ac_ext
23575
LIBS=$ac_check_lib_save_LIBS
23576
fi
23577
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
23578
echo "${ECHO_T}$ac_cv_lib_readline_add_history" >&6; }
23579
if test $ac_cv_lib_readline_add_history = yes; then
23580
  cat >>confdefs.h <<_ACEOF
23581
@%:@define HAVE_LIBREADLINE 1
23582
_ACEOF
23583
 
23584
  LIBS="-lreadline $LIBS"
23585
 
23586
fi
23587
 
23588
 
23589
# yuck
23590
case "$host_os" in
23591
aix*)   prefer_curses=yes ;;
23592
esac
23593
 
23594
case "$host_cpu" in
23595
*cray*) LOCAL_CFLAGS=-DCRAY ;;
23596
esac
23597
 
23598
case "$host_os" in
23599
isc*)   LOCAL_CFLAGS=-Disc386 ;;
23600
esac
23601
 
23602
case "$host_os" in
23603
solaris*) LIBS="-lsocket -lnsl" ;;
23604
esac
23605
 
23606
# define options
23607
 
23608
{ echo "$as_me:$LINENO: checking whether to enable profiling" >&5
23609
echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6; }
23610
# Check whether --enable-profiling was given.
23611
if test "${enable_profiling+set}" = set; then
23612
  enableval=$enable_profiling;
23613
    case "$enableval" in
23614
        yes) profile="-pg -a" ;;
23615
    esac
23616
 
23617
fi
23618
 
23619
{ echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
23620
echo "${ECHO_T}${enable_profiling-no}" >&6; }
23621
 
23622
execution="1"
23623
 
23624
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
23625
{ echo "$as_me:$LINENO: checking which execution style to use" >&5
23626
echo $ECHO_N "checking which execution style to use... $ECHO_C" >&6; }
23627
# Check whether --enable-execution was given.
23628
if test "${enable_execution+set}" = set; then
23629
  enableval=$enable_execution;
23630
    case "$enableval" in
23631
    simple)
23632
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
23633
      execution="0"
23634
      { echo "$as_me:$LINENO: result: simple" >&5
23635
echo "${ECHO_T}simple" >&6; }
23636
      ;;
23637
    complex)
23638
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
23639
      execution="1"
23640
      { echo "$as_me:$LINENO: result: complex" >&5
23641
echo "${ECHO_T}complex" >&6; }
23642
      ;;
23643
    dynamic)
23644
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
23645
      execution="2"
23646
      { echo "$as_me:$LINENO: result: dynamic" >&5
23647
echo "${ECHO_T}dynamic" >&6; }
23648
      ;;
23649
    *)
23650
      { { echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
23651
echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
23652
   { (exit 1); exit 1; }; }
23653
      ;;
23654
    esac
23655
 
23656
else
23657
 
23658
      { echo "$as_me:$LINENO: result: complex" >&5
23659
echo "${ECHO_T}complex" >&6; }
23660
 
23661
fi
23662
 
23663
 
23664
eth_phy="0"
23665
{ echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
23666
echo $ECHO_N "checking whether to enable ethernet phy emulation... $ECHO_C" >&6; }
23667
# Check whether --enable-ethphy was given.
23668
if test "${enable_ethphy+set}" = set; then
23669
  enableval=$enable_ethphy;
23670
    case "$enableval" in
23671
  no)  eth_phy="0" ;;
23672
        yes) eth_phy="1" ;;
23673
    esac
23674
 
23675
fi
23676
 
23677
{ echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
23678
echo "${ECHO_T}${enable_eth_phy-no}" >&6; }
23679
 
23680
 
23681
raw_range_stats="0"
23682
{ echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
23683
echo $ECHO_N "checking whether to use raw range stats... $ECHO_C" >&6; }
23684
# Check whether --enable-range_stats was given.
23685
if test "${enable_range_stats+set}" = set; then
23686
  enableval=$enable_range_stats;
23687
    case "$enableval" in
23688
  no)  raw_range_stats="0" ;;
23689
        yes) raw_range_stats="1" simple_execution="1" ;;
23690
    esac
23691
 
23692
fi
23693
 
23694
{ echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
23695
echo "${ECHO_T}${enable_range_stats-no}" >&6; }
23696
 
23697
set_ov_flag="0"
23698
{ echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
23699
echo $ECHO_N "checking whether instructions set overflow flag... $ECHO_C" >&6; }
23700
# Check whether --enable-ov_flag was given.
23701
if test "${enable_ov_flag+set}" = set; then
23702
  enableval=$enable_ov_flag;
23703
    case "$enableval" in
23704
  no)  set_ov_flag="0" ;;
23705
        yes) set_ov_flag="1" ;;
23706
    esac
23707
 
23708
fi
23709
 
23710
{ echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
23711
echo "${ECHO_T}${enable_ov_flag-no}" >&6; }
23712
 
23713
set_arith_flag="0"
23714
{ echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
23715
echo $ECHO_N "checking whether arithmethic instructions set flag... $ECHO_C" >&6; }
23716
# Check whether --enable-arith_flag was given.
23717
if test "${enable_arith_flag+set}" = set; then
23718
  enableval=$enable_arith_flag;
23719
    case "$enableval" in
23720
  no)  set_arith_flag="0" ;;
23721
        yes) set_arith_flag="1" ;;
23722
    esac
23723
 
23724
fi
23725
 
23726
{ echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
23727
echo "${ECHO_T}${enable_arith_flag-no}" >&6; }
23728
 
23729
 
23730
cat >>confdefs.h <<_ACEOF
23731
@%:@define RAW_RANGE_STATS $raw_range_stats
23732
_ACEOF
23733
 
23734
 
23735
cat >>confdefs.h <<_ACEOF
23736
@%:@define SET_OV_FLAG $set_ov_flag
23737
_ACEOF
23738
 
23739
 
23740
cat >>confdefs.h <<_ACEOF
23741
@%:@define ARITH_SET_FLAG $set_arith_flag
23742
_ACEOF
23743
 
23744
 
23745
cat >>confdefs.h <<_ACEOF
23746
@%:@define HAVE_ETH_PHY $eth_phy
23747
_ACEOF
23748
 
23749
 
23750
cat >>confdefs.h <<_ACEOF
23751
@%:@define SIMPLE_EXECUTION $execution == 0
23752
_ACEOF
23753
 
23754
 
23755
cat >>confdefs.h <<_ACEOF
23756
@%:@define COMPLEX_EXECUTION $execution == 1
23757
_ACEOF
23758
 
23759
 
23760
cat >>confdefs.h <<_ACEOF
23761
@%:@define DYNAMIC_EXECUTION $execution == 2
23762
_ACEOF
23763
 
23764
 if test x$execution = x1; then
23765
  GENERATE_NEEDED_TRUE=
23766
  GENERATE_NEEDED_FALSE='#'
23767
else
23768
  GENERATE_NEEDED_TRUE='#'
23769
  GENERATE_NEEDED_FALSE=
23770
fi
23771
 
23772
 if test x$execution = x2; then
23773
  DYNAMIC_EXECUTION_TRUE=
23774
  DYNAMIC_EXECUTION_FALSE='#'
23775
else
23776
  DYNAMIC_EXECUTION_TRUE='#'
23777
  DYNAMIC_EXECUTION_FALSE=
23778
fi
23779
 
23780
 
23781
 
23782
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
23783
# CFLAGS="$CFLAGS -O4"
23784
 
23785
BUILD_DIR=`pwd`
23786
 
23787
 
23788
 
23789
 
23790
 
23791
 
23792
 
23793
 
23794
 
23795
 
23796
 
23797
 
23798
 
23799
 
23800
 
23801
 
23802
 
23803
 
23804
cat >>confdefs.h <<\_ACEOF
23805
@%:@define HAS_EXECUTION 1
23806
_ACEOF
23807
 
23808
 
23809
cat >>confdefs.h <<\_ACEOF
23810
@%:@define HAS_DEBUG 1
23811
_ACEOF
23812
 
23813
 
23814
# yuck
23815
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
23816
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
23817
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
23818
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
23819
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
23820
-I\${top_srcdir}/cuc -I\${top_srcdir}/port"
23821
 
23822
 
23823
ac_config_files="$ac_config_files Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or32/Makefile cuc/Makefile cpu/or1k/Makefile cpu/dlx/Makefile debug/Makefile support/Makefile mmu/Makefile peripheral/Makefile tick/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile vapi/Makefile port/Makefile"
23824
 
23825
ac_config_commands="$ac_config_commands default"
23826
 
23827
cat >confcache <<\_ACEOF
23828
# This file is a shell script that caches the results of configure
23829
# tests run on this system so they can be shared between configure
23830
# scripts and configure runs, see configure's option --config-cache.
23831
# It is not useful on other systems.  If it contains results you don't
23832
# want to keep, you may remove or edit it.
23833
#
23834
# config.status only pays attention to the cache file if you give it
23835
# the --recheck option to rerun configure.
23836
#
23837
# `ac_cv_env_foo' variables (set or unset) will be overridden when
23838
# loading this file, other *unset* `ac_cv_foo' will be assigned the
23839
# following values.
23840
 
23841
_ACEOF
23842
 
23843
# The following way of writing the cache mishandles newlines in values,
23844
# but we know of no workaround that is simple, portable, and efficient.
23845
# So, we kill variables containing newlines.
23846
# Ultrix sh set writes to stderr and can't be redirected directly,
23847
# and sets the high bit in the cache file unless we assign to the vars.
23848
(
23849
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23850
    eval ac_val=\$$ac_var
23851
    case $ac_val in #(
23852
    *${as_nl}*)
23853
      case $ac_var in #(
23854
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23855
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23856
      esac
23857
      case $ac_var in #(
23858
      _ | IFS | as_nl) ;; #(
23859
      *) $as_unset $ac_var ;;
23860
      esac ;;
23861
    esac
23862
  done
23863
 
23864
  (set) 2>&1 |
23865
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23866
    *${as_nl}ac_space=\ *)
23867
      # `set' does not quote correctly, so add quotes (double-quote
23868
      # substitution turns \\\\ into \\, and sed turns \\ into \).
23869
      sed -n \
23870
        "s/'/'\\\\''/g;
23871
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23872
      ;; #(
23873
    *)
23874
      # `set' quotes correctly as required by POSIX, so do not add quotes.
23875
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23876
      ;;
23877
    esac |
23878
    sort
23879
) |
23880
  sed '
23881
     /^ac_cv_env_/b end
23882
     t clear
23883
     :clear
23884
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23885
     t end
23886
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23887
     :end' >>confcache
23888
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23889
  if test -w "$cache_file"; then
23890
    test "x$cache_file" != "x/dev/null" &&
23891
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23892
echo "$as_me: updating cache $cache_file" >&6;}
23893
    cat confcache >$cache_file
23894
  else
23895
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23896
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23897
  fi
23898
fi
23899
rm -f confcache
23900
 
23901
test "x$prefix" = xNONE && prefix=$ac_default_prefix
23902
# Let make expand exec_prefix.
23903
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23904
 
23905
DEFS=-DHAVE_CONFIG_H
23906
 
23907
ac_libobjs=
23908
ac_ltlibobjs=
23909
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
23910
  # 1. Remove the extension, and $U if already installed.
23911
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23912
  ac_i=`echo "$ac_i" | sed "$ac_script"`
23913
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23914
  #    will be set to the directory where LIBOBJS objects are built.
23915
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23916
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23917
done
23918
LIB@&t@OBJS=$ac_libobjs
23919
 
23920
LTLIBOBJS=$ac_ltlibobjs
23921
 
23922
 
23923
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23924
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23925
Usually this means the macro was only invoked conditionally." >&5
23926
echo "$as_me: error: conditional \"AMDEP\" was never defined.
23927
Usually this means the macro was only invoked conditionally." >&2;}
23928
   { (exit 1); exit 1; }; }
23929
fi
23930
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23931
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23932
Usually this means the macro was only invoked conditionally." >&5
23933
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23934
Usually this means the macro was only invoked conditionally." >&2;}
23935
   { (exit 1); exit 1; }; }
23936
fi
23937
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23938
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23939
Usually this means the macro was only invoked conditionally." >&5
23940
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23941
Usually this means the macro was only invoked conditionally." >&2;}
23942
   { (exit 1); exit 1; }; }
23943
fi
23944
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
23945
  { { echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
23946
Usually this means the macro was only invoked conditionally." >&5
23947
echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
23948
Usually this means the macro was only invoked conditionally." >&2;}
23949
   { (exit 1); exit 1; }; }
23950
fi
23951
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
23952
  { { echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
23953
Usually this means the macro was only invoked conditionally." >&5
23954
echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
23955
Usually this means the macro was only invoked conditionally." >&2;}
23956
   { (exit 1); exit 1; }; }
23957
fi
23958
 
23959
: ${CONFIG_STATUS=./config.status}
23960
ac_clean_files_save=$ac_clean_files
23961
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23962
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23963
echo "$as_me: creating $CONFIG_STATUS" >&6;}
23964
cat >$CONFIG_STATUS <<_ACEOF
23965
#! $SHELL
23966
# Generated by $as_me.
23967
# Run this file to recreate the current configuration.
23968
# Compiler output produced by configure, useful for debugging
23969
# configure, is in config.log if it exists.
23970
 
23971
debug=false
23972
ac_cs_recheck=false
23973
ac_cs_silent=false
23974
SHELL=\${CONFIG_SHELL-$SHELL}
23975
_ACEOF
23976
 
23977
cat >>$CONFIG_STATUS <<\_ACEOF
23978
## --------------------- ##
23979
## M4sh Initialization.  ##
23980
## --------------------- ##
23981
 
23982
# Be more Bourne compatible
23983
DUALCASE=1; export DUALCASE # for MKS sh
23984
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23985
  emulate sh
23986
  NULLCMD=:
23987
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23988
  # is contrary to our usage.  Disable this feature.
23989
  alias -g '${1+"$@"}'='"$@"'
23990
  setopt NO_GLOB_SUBST
23991
else
23992
  case `(set -o) 2>/dev/null` in
23993
  *posix*) set -o posix ;;
23994
esac
23995
 
23996
fi
23997
 
23998
 
23999
 
24000
 
24001
# PATH needs CR
24002
# Avoid depending upon Character Ranges.
24003
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24004
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24005
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24006
as_cr_digits='0123456789'
24007
as_cr_alnum=$as_cr_Letters$as_cr_digits
24008
 
24009
# The user is always right.
24010
if test "${PATH_SEPARATOR+set}" != set; then
24011
  echo "#! /bin/sh" >conf$$.sh
24012
  echo  "exit 0"   >>conf$$.sh
24013
  chmod +x conf$$.sh
24014
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24015
    PATH_SEPARATOR=';'
24016
  else
24017
    PATH_SEPARATOR=:
24018
  fi
24019
  rm -f conf$$.sh
24020
fi
24021
 
24022
# Support unset when possible.
24023
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24024
  as_unset=unset
24025
else
24026
  as_unset=false
24027
fi
24028
 
24029
 
24030
# IFS
24031
# We need space, tab and new line, in precisely that order.  Quoting is
24032
# there to prevent editors from complaining about space-tab.
24033
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24034
# splitting by setting IFS to empty value.)
24035
as_nl='
24036
'
24037
IFS=" ""        $as_nl"
24038
 
24039
# Find who we are.  Look in the path if we contain no directory separator.
24040
case $0 in
24041
  *[\\/]* ) as_myself=$0 ;;
24042
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24043
for as_dir in $PATH
24044
do
24045
  IFS=$as_save_IFS
24046
  test -z "$as_dir" && as_dir=.
24047
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24048
done
24049
IFS=$as_save_IFS
24050
 
24051
     ;;
24052
esac
24053
# We did not find ourselves, most probably we were run as `sh COMMAND'
24054
# in which case we are not to be found in the path.
24055
if test "x$as_myself" = x; then
24056
  as_myself=$0
24057
fi
24058
if test ! -f "$as_myself"; then
24059
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24060
  { (exit 1); exit 1; }
24061
fi
24062
 
24063
# Work around bugs in pre-3.0 UWIN ksh.
24064
for as_var in ENV MAIL MAILPATH
24065
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24066
done
24067
PS1='$ '
24068
PS2='> '
24069
PS4='+ '
24070
 
24071
# NLS nuisances.
24072
for as_var in \
24073
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24074
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24075
  LC_TELEPHONE LC_TIME
24076
do
24077
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24078
    eval $as_var=C; export $as_var
24079
  else
24080
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24081
  fi
24082
done
24083
 
24084
# Required to use basename.
24085
if expr a : '\(a\)' >/dev/null 2>&1 &&
24086
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24087
  as_expr=expr
24088
else
24089
  as_expr=false
24090
fi
24091
 
24092
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24093
  as_basename=basename
24094
else
24095
  as_basename=false
24096
fi
24097
 
24098
 
24099
# Name of the executable.
24100
as_me=`$as_basename -- "$0" ||
24101
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24102
         X"$0" : 'X\(//\)$' \| \
24103
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24104
echo X/"$0" |
24105
    sed '/^.*\/\([^/][^/]*\)\/*$/{
24106
            s//\1/
24107
            q
24108
          }
24109
          /^X\/\(\/\/\)$/{
24110
            s//\1/
24111
            q
24112
          }
24113
          /^X\/\(\/\).*/{
24114
            s//\1/
24115
            q
24116
          }
24117
          s/.*/./; q'`
24118
 
24119
# CDPATH.
24120
$as_unset CDPATH
24121
 
24122
 
24123
 
24124
  as_lineno_1=$LINENO
24125
  as_lineno_2=$LINENO
24126
  test "x$as_lineno_1" != "x$as_lineno_2" &&
24127
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24128
 
24129
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24130
  # uniformly replaced by the line number.  The first 'sed' inserts a
24131
  # line-number line after each line using $LINENO; the second 'sed'
24132
  # does the real work.  The second script uses 'N' to pair each
24133
  # line-number line with the line containing $LINENO, and appends
24134
  # trailing '-' during substitution so that $LINENO is not a special
24135
  # case at line end.
24136
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24137
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
24138
  # E. McMahon (1931-1989) for sed's syntax.  :-)
24139
  sed -n '
24140
    p
24141
    /[$]LINENO/=
24142
  ' <$as_myself |
24143
    sed '
24144
      s/[$]LINENO.*/&-/
24145
      t lineno
24146
      b
24147
      :lineno
24148
      N
24149
      :loop
24150
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24151
      t loop
24152
      s/-\n.*//
24153
    ' >$as_me.lineno &&
24154
  chmod +x "$as_me.lineno" ||
24155
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24156
   { (exit 1); exit 1; }; }
24157
 
24158
  # Don't try to exec as it changes $[0], causing all sort of problems
24159
  # (the dirname of $[0] is not the place where we might find the
24160
  # original and so on.  Autoconf is especially sensitive to this).
24161
  . "./$as_me.lineno"
24162
  # Exit status is that of the last command.
24163
  exit
24164
}
24165
 
24166
 
24167
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24168
  as_dirname=dirname
24169
else
24170
  as_dirname=false
24171
fi
24172
 
24173
ECHO_C= ECHO_N= ECHO_T=
24174
case `echo -n x` in
24175
-n*)
24176
  case `echo 'x\c'` in
24177
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24178
  *)   ECHO_C='\c';;
24179
  esac;;
24180
*)
24181
  ECHO_N='-n';;
24182
esac
24183
 
24184
if expr a : '\(a\)' >/dev/null 2>&1 &&
24185
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24186
  as_expr=expr
24187
else
24188
  as_expr=false
24189
fi
24190
 
24191
rm -f conf$$ conf$$.exe conf$$.file
24192
if test -d conf$$.dir; then
24193
  rm -f conf$$.dir/conf$$.file
24194
else
24195
  rm -f conf$$.dir
24196
  mkdir conf$$.dir
24197
fi
24198
echo >conf$$.file
24199
if ln -s conf$$.file conf$$ 2>/dev/null; then
24200
  as_ln_s='ln -s'
24201
  # ... but there are two gotchas:
24202
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24203
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24204
  # In both cases, we have to default to `cp -p'.
24205
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24206
    as_ln_s='cp -p'
24207
elif ln conf$$.file conf$$ 2>/dev/null; then
24208
  as_ln_s=ln
24209
else
24210
  as_ln_s='cp -p'
24211
fi
24212
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24213
rmdir conf$$.dir 2>/dev/null
24214
 
24215
if mkdir -p . 2>/dev/null; then
24216
  as_mkdir_p=:
24217
else
24218
  test -d ./-p && rmdir ./-p
24219
  as_mkdir_p=false
24220
fi
24221
 
24222
if test -x / >/dev/null 2>&1; then
24223
  as_test_x='test -x'
24224
else
24225
  if ls -dL / >/dev/null 2>&1; then
24226
    as_ls_L_option=L
24227
  else
24228
    as_ls_L_option=
24229
  fi
24230
  as_test_x='
24231
    eval sh -c '\''
24232
      if test -d "$1"; then
24233
        test -d "$1/.";
24234
      else
24235
        case $1 in
24236
        -*)set "./$1";;
24237
        esac;
24238
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24239
        ???[sx]*):;;*)false;;esac;fi
24240
    '\'' sh
24241
  '
24242
fi
24243
as_executable_p=$as_test_x
24244
 
24245
# Sed expression to map a string onto a valid CPP name.
24246
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24247
 
24248
# Sed expression to map a string onto a valid variable name.
24249
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24250
 
24251
 
24252
exec 6>&1
24253
 
24254
# Save the log message, to keep $[0] and so on meaningful, and to
24255
# report actual input values of CONFIG_FILES etc. instead of their
24256
# values after options handling.
24257
ac_log="
24258
This file was extended by or1ksim $as_me 0.3.0, which was
24259
generated by GNU Autoconf 2.61.  Invocation command line was
24260
 
24261
  CONFIG_FILES    = $CONFIG_FILES
24262
  CONFIG_HEADERS  = $CONFIG_HEADERS
24263
  CONFIG_LINKS    = $CONFIG_LINKS
24264
  CONFIG_COMMANDS = $CONFIG_COMMANDS
24265
  $ $0 $@
24266
 
24267
on `(hostname || uname -n) 2>/dev/null | sed 1q`
24268
"
24269
 
24270
_ACEOF
24271
 
24272
cat >>$CONFIG_STATUS <<_ACEOF
24273
# Files that config.status was made for.
24274
config_files="$ac_config_files"
24275
config_headers="$ac_config_headers"
24276
config_commands="$ac_config_commands"
24277
 
24278
_ACEOF
24279
 
24280
cat >>$CONFIG_STATUS <<\_ACEOF
24281
ac_cs_usage="\
24282
\`$as_me' instantiates files from templates according to the
24283
current configuration.
24284
 
24285
Usage: $0 [OPTIONS] [FILE]...
24286
 
24287
  -h, --help       print this help, then exit
24288
  -V, --version    print version number and configuration settings, then exit
24289
  -q, --quiet      do not print progress messages
24290
  -d, --debug      don't remove temporary files
24291
      --recheck    update $as_me by reconfiguring in the same conditions
24292
  --file=FILE[:TEMPLATE]
24293
                   instantiate the configuration file FILE
24294
  --header=FILE[:TEMPLATE]
24295
                   instantiate the configuration header FILE
24296
 
24297
Configuration files:
24298
$config_files
24299
 
24300
Configuration headers:
24301
$config_headers
24302
 
24303
Configuration commands:
24304
$config_commands
24305
 
24306
Report bugs to ."
24307
 
24308
_ACEOF
24309
cat >>$CONFIG_STATUS <<_ACEOF
24310
ac_cs_version="\\
24311
or1ksim config.status 0.3.0
24312
configured by $0, generated by GNU Autoconf 2.61,
24313
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24314
 
24315
Copyright (C) 2006 Free Software Foundation, Inc.
24316
This config.status script is free software; the Free Software Foundation
24317
gives unlimited permission to copy, distribute and modify it."
24318
 
24319
ac_pwd='$ac_pwd'
24320
srcdir='$srcdir'
24321
INSTALL='$INSTALL'
24322
MKDIR_P='$MKDIR_P'
24323
_ACEOF
24324
 
24325
cat >>$CONFIG_STATUS <<\_ACEOF
24326
# If no file are specified by the user, then we need to provide default
24327
# value.  By we need to know if files were specified by the user.
24328
ac_need_defaults=:
24329
while test $# != 0
24330
do
24331
  case $1 in
24332
  --*=*)
24333
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24334
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24335
    ac_shift=:
24336
    ;;
24337
  *)
24338
    ac_option=$1
24339
    ac_optarg=$2
24340
    ac_shift=shift
24341
    ;;
24342
  esac
24343
 
24344
  case $ac_option in
24345
  # Handling of the options.
24346
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24347
    ac_cs_recheck=: ;;
24348
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24349
    echo "$ac_cs_version"; exit ;;
24350
  --debug | --debu | --deb | --de | --d | -d )
24351
    debug=: ;;
24352
  --file | --fil | --fi | --f )
24353
    $ac_shift
24354
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24355
    ac_need_defaults=false;;
24356
  --header | --heade | --head | --hea )
24357
    $ac_shift
24358
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24359
    ac_need_defaults=false;;
24360
  --he | --h)
24361
    # Conflict between --help and --header
24362
    { echo "$as_me: error: ambiguous option: $1
24363
Try \`$0 --help' for more information." >&2
24364
   { (exit 1); exit 1; }; };;
24365
  --help | --hel | -h )
24366
    echo "$ac_cs_usage"; exit ;;
24367
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24368
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24369
    ac_cs_silent=: ;;
24370
 
24371
  # This is an error.
24372
  -*) { echo "$as_me: error: unrecognized option: $1
24373
Try \`$0 --help' for more information." >&2
24374
   { (exit 1); exit 1; }; } ;;
24375
 
24376
  *) ac_config_targets="$ac_config_targets $1"
24377
     ac_need_defaults=false ;;
24378
 
24379
  esac
24380
  shift
24381
done
24382
 
24383
ac_configure_extra_args=
24384
 
24385
if $ac_cs_silent; then
24386
  exec 6>/dev/null
24387
  ac_configure_extra_args="$ac_configure_extra_args --silent"
24388
fi
24389
 
24390
_ACEOF
24391
cat >>$CONFIG_STATUS <<_ACEOF
24392
if \$ac_cs_recheck; then
24393
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24394
  CONFIG_SHELL=$SHELL
24395
  export CONFIG_SHELL
24396
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24397
fi
24398
 
24399
_ACEOF
24400
cat >>$CONFIG_STATUS <<\_ACEOF
24401
exec 5>>config.log
24402
{
24403
  echo
24404
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
24405
@%:@@%:@ Running $as_me. @%:@@%:@
24406
_ASBOX
24407
  echo "$ac_log"
24408
} >&5
24409
 
24410
_ACEOF
24411
cat >>$CONFIG_STATUS <<_ACEOF
24412
#
24413
# INIT-COMMANDS
24414
#
24415
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24416
 
24417
 
24418
_ACEOF
24419
 
24420
cat >>$CONFIG_STATUS <<\_ACEOF
24421
 
24422
# Handling of arguments.
24423
for ac_config_target in $ac_config_targets
24424
do
24425
  case $ac_config_target in
24426
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24427
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24428
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24429
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
24430
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
24431
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
24432
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
24433
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
24434
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
24435
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
24436
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
24437
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
24438
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
24439
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
24440
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
24441
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
24442
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
24443
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
24444
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
24445
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
24446
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
24447
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24448
 
24449
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24450
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24451
   { (exit 1); exit 1; }; };;
24452
  esac
24453
done
24454
 
24455
 
24456
# If the user did not use the arguments to specify the items to instantiate,
24457
# then the envvar interface is used.  Set only those that are not.
24458
# We use the long form for the default assignment because of an extremely
24459
# bizarre bug on SunOS 4.1.3.
24460
if $ac_need_defaults; then
24461
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24462
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24463
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24464
fi
24465
 
24466
# Have a temporary directory for convenience.  Make it in the build tree
24467
# simply because there is no reason against having it here, and in addition,
24468
# creating and moving files from /tmp can sometimes cause problems.
24469
# Hook for its removal unless debugging.
24470
# Note that there is a small window in which the directory will not be cleaned:
24471
# after its creation but before its name has been assigned to `$tmp'.
24472
$debug ||
24473
{
24474
  tmp=
24475
  trap 'exit_status=$?
24476
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24477
' 0
24478
  trap '{ (exit 1); exit 1; }' 1 2 13 15
24479
}
24480
# Create a (secure) tmp directory for tmp files.
24481
 
24482
{
24483
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24484
  test -n "$tmp" && test -d "$tmp"
24485
}  ||
24486
{
24487
  tmp=./conf$$-$RANDOM
24488
  (umask 077 && mkdir "$tmp")
24489
} ||
24490
{
24491
   echo "$me: cannot create a temporary directory in ." >&2
24492
   { (exit 1); exit 1; }
24493
}
24494
 
24495
#
24496
# Set up the sed scripts for CONFIG_FILES section.
24497
#
24498
 
24499
# No need to generate the scripts if there are no CONFIG_FILES.
24500
# This happens for instance when ./config.status config.h
24501
if test -n "$CONFIG_FILES"; then
24502
 
24503
_ACEOF
24504
 
24505
 
24506
 
24507
ac_delim='%!_!# '
24508
for ac_last_try in false false false false false :; do
24509
  cat >conf$$subs.sed <<_ACEOF
24510
SHELL!$SHELL$ac_delim
24511
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24512
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24513
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24514
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24515
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24516
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24517
exec_prefix!$exec_prefix$ac_delim
24518
prefix!$prefix$ac_delim
24519
program_transform_name!$program_transform_name$ac_delim
24520
bindir!$bindir$ac_delim
24521
sbindir!$sbindir$ac_delim
24522
libexecdir!$libexecdir$ac_delim
24523
datarootdir!$datarootdir$ac_delim
24524
datadir!$datadir$ac_delim
24525
sysconfdir!$sysconfdir$ac_delim
24526
sharedstatedir!$sharedstatedir$ac_delim
24527
localstatedir!$localstatedir$ac_delim
24528
includedir!$includedir$ac_delim
24529
oldincludedir!$oldincludedir$ac_delim
24530
docdir!$docdir$ac_delim
24531
infodir!$infodir$ac_delim
24532
htmldir!$htmldir$ac_delim
24533
dvidir!$dvidir$ac_delim
24534
pdfdir!$pdfdir$ac_delim
24535
psdir!$psdir$ac_delim
24536
libdir!$libdir$ac_delim
24537
localedir!$localedir$ac_delim
24538
mandir!$mandir$ac_delim
24539
DEFS!$DEFS$ac_delim
24540
ECHO_C!$ECHO_C$ac_delim
24541
ECHO_N!$ECHO_N$ac_delim
24542
ECHO_T!$ECHO_T$ac_delim
24543
LIBS!$LIBS$ac_delim
24544
build_alias!$build_alias$ac_delim
24545
host_alias!$host_alias$ac_delim
24546
target_alias!$target_alias$ac_delim
24547
build!$build$ac_delim
24548
build_cpu!$build_cpu$ac_delim
24549
build_vendor!$build_vendor$ac_delim
24550
build_os!$build_os$ac_delim
24551
host!$host$ac_delim
24552
host_cpu!$host_cpu$ac_delim
24553
host_vendor!$host_vendor$ac_delim
24554
host_os!$host_os$ac_delim
24555
target!$target$ac_delim
24556
target_cpu!$target_cpu$ac_delim
24557
target_vendor!$target_vendor$ac_delim
24558
target_os!$target_os$ac_delim
24559
CC!$CC$ac_delim
24560
CFLAGS!$CFLAGS$ac_delim
24561
LDFLAGS!$LDFLAGS$ac_delim
24562
CPPFLAGS!$CPPFLAGS$ac_delim
24563
ac_ct_CC!$ac_ct_CC$ac_delim
24564
EXEEXT!$EXEEXT$ac_delim
24565
OBJEXT!$OBJEXT$ac_delim
24566
SED!$SED$ac_delim
24567
GREP!$GREP$ac_delim
24568
EGREP!$EGREP$ac_delim
24569
LN_S!$LN_S$ac_delim
24570
ECHO!$ECHO$ac_delim
24571
AR!$AR$ac_delim
24572
RANLIB!$RANLIB$ac_delim
24573
STRIP!$STRIP$ac_delim
24574
CPP!$CPP$ac_delim
24575
CXX!$CXX$ac_delim
24576
CXXFLAGS!$CXXFLAGS$ac_delim
24577
ac_ct_CXX!$ac_ct_CXX$ac_delim
24578
CXXCPP!$CXXCPP$ac_delim
24579
F77!$F77$ac_delim
24580
FFLAGS!$FFLAGS$ac_delim
24581
ac_ct_F77!$ac_ct_F77$ac_delim
24582
LIBTOOL!$LIBTOOL$ac_delim
24583
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24584
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24585
INSTALL_DATA!$INSTALL_DATA$ac_delim
24586
am__isrc!$am__isrc$ac_delim
24587
CYGPATH_W!$CYGPATH_W$ac_delim
24588
PACKAGE!$PACKAGE$ac_delim
24589
VERSION!$VERSION$ac_delim
24590
ACLOCAL!$ACLOCAL$ac_delim
24591
AUTOCONF!$AUTOCONF$ac_delim
24592
AUTOMAKE!$AUTOMAKE$ac_delim
24593
AUTOHEADER!$AUTOHEADER$ac_delim
24594
MAKEINFO!$MAKEINFO$ac_delim
24595
install_sh!$install_sh$ac_delim
24596
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24597
mkdir_p!$mkdir_p$ac_delim
24598
AWK!$AWK$ac_delim
24599
SET_MAKE!$SET_MAKE$ac_delim
24600
am__leading_dot!$am__leading_dot$ac_delim
24601
AMTAR!$AMTAR$ac_delim
24602
am__tar!$am__tar$ac_delim
24603
am__untar!$am__untar$ac_delim
24604
DEPDIR!$DEPDIR$ac_delim
24605
am__include!$am__include$ac_delim
24606
am__quote!$am__quote$ac_delim
24607
_ACEOF
24608
 
24609
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24610
    break
24611
  elif $ac_last_try; then
24612
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24613
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24614
   { (exit 1); exit 1; }; }
24615
  else
24616
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24617
  fi
24618
done
24619
 
24620
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24621
if test -n "$ac_eof"; then
24622
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24623
  ac_eof=`expr $ac_eof + 1`
24624
fi
24625
 
24626
cat >>$CONFIG_STATUS <<_ACEOF
24627
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24628
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24629
_ACEOF
24630
sed '
24631
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24632
s/^/s,@/; s/!/@,|#_!!_#|/
24633
:n
24634
t n
24635
s/'"$ac_delim"'$/,g/; t
24636
s/$/\\/; p
24637
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24638
' >>$CONFIG_STATUS 
24639
rm -f conf$$subs.sed
24640
cat >>$CONFIG_STATUS <<_ACEOF
24641
CEOF$ac_eof
24642
_ACEOF
24643
 
24644
 
24645
ac_delim='%!_!# '
24646
for ac_last_try in false false false false false :; do
24647
  cat >conf$$subs.sed <<_ACEOF
24648
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24649
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24650
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24651
CCDEPMODE!$CCDEPMODE$ac_delim
24652
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24653
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24654
CXXDEPMODE!$CXXDEPMODE$ac_delim
24655
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24656
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24657
CPU_ARCH!$CPU_ARCH$ac_delim
24658
MAKE_SHELL!$MAKE_SHELL$ac_delim
24659
GENERATE_NEEDED_TRUE!$GENERATE_NEEDED_TRUE$ac_delim
24660
GENERATE_NEEDED_FALSE!$GENERATE_NEEDED_FALSE$ac_delim
24661
DYNAMIC_EXECUTION_TRUE!$DYNAMIC_EXECUTION_TRUE$ac_delim
24662
DYNAMIC_EXECUTION_FALSE!$DYNAMIC_EXECUTION_FALSE$ac_delim
24663
BUILD_DIR!$BUILD_DIR$ac_delim
24664
LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
24665
LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
24666
LOCAL_DEFS!$LOCAL_DEFS$ac_delim
24667
ARFLAGS!$ARFLAGS$ac_delim
24668
SUMVERSION!$SUMVERSION$ac_delim
24669
TERMCAP_LIB!$TERMCAP_LIB$ac_delim
24670
INCLUDES!$INCLUDES$ac_delim
24671
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
24672
LTLIBOBJS!$LTLIBOBJS$ac_delim
24673
_ACEOF
24674
 
24675
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
24676
    break
24677
  elif $ac_last_try; then
24678
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24679
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24680
   { (exit 1); exit 1; }; }
24681
  else
24682
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24683
  fi
24684
done
24685
 
24686
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24687
if test -n "$ac_eof"; then
24688
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24689
  ac_eof=`expr $ac_eof + 1`
24690
fi
24691
 
24692
cat >>$CONFIG_STATUS <<_ACEOF
24693
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24694
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24695
_ACEOF
24696
sed '
24697
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24698
s/^/s,@/; s/!/@,|#_!!_#|/
24699
:n
24700
t n
24701
s/'"$ac_delim"'$/,g/; t
24702
s/$/\\/; p
24703
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24704
' >>$CONFIG_STATUS 
24705
rm -f conf$$subs.sed
24706
cat >>$CONFIG_STATUS <<_ACEOF
24707
:end
24708
s/|#_!!_#|//g
24709
CEOF$ac_eof
24710
_ACEOF
24711
 
24712
 
24713
# VPATH may cause trouble with some makes, so we remove $(srcdir),
24714
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24715
# trailing colons and then remove the whole line if VPATH becomes empty
24716
# (actually we leave an empty line to preserve line numbers).
24717
if test "x$srcdir" = x.; then
24718
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
24719
s/:*\$(srcdir):*/:/
24720
s/:*\${srcdir}:*/:/
24721
s/:*@srcdir@:*/:/
24722
s/^\([^=]*=[     ]*\):*/\1/
24723
s/:*$//
24724
s/^[^=]*=[       ]*$//
24725
}'
24726
fi
24727
 
24728
cat >>$CONFIG_STATUS <<\_ACEOF
24729
fi # test -n "$CONFIG_FILES"
24730
 
24731
 
24732
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24733
do
24734
  case $ac_tag in
24735
  :[FHLC]) ac_mode=$ac_tag; continue;;
24736
  esac
24737
  case $ac_mode$ac_tag in
24738
  :[FHL]*:*);;
24739
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24740
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24741
   { (exit 1); exit 1; }; };;
24742
  :[FH]-) ac_tag=-:-;;
24743
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24744
  esac
24745
  ac_save_IFS=$IFS
24746
  IFS=:
24747
  set x $ac_tag
24748
  IFS=$ac_save_IFS
24749
  shift
24750
  ac_file=$1
24751
  shift
24752
 
24753
  case $ac_mode in
24754
  :L) ac_source=$1;;
24755
  :[FH])
24756
    ac_file_inputs=
24757
    for ac_f
24758
    do
24759
      case $ac_f in
24760
      -) ac_f="$tmp/stdin";;
24761
      *) # Look for the file first in the build tree, then in the source tree
24762
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
24763
         # because $ac_f cannot contain `:'.
24764
         test -f "$ac_f" ||
24765
           case $ac_f in
24766
           [\\/$]*) false;;
24767
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24768
           esac ||
24769
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24770
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24771
   { (exit 1); exit 1; }; };;
24772
      esac
24773
      ac_file_inputs="$ac_file_inputs $ac_f"
24774
    done
24775
 
24776
    # Let's still pretend it is `configure' which instantiates (i.e., don't
24777
    # use $as_me), people would be surprised to read:
24778
    #    /* config.h.  Generated by config.status.  */
24779
    configure_input="Generated from "`IFS=:
24780
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24781
    if test x"$ac_file" != x-; then
24782
      configure_input="$ac_file.  $configure_input"
24783
      { echo "$as_me:$LINENO: creating $ac_file" >&5
24784
echo "$as_me: creating $ac_file" >&6;}
24785
    fi
24786
 
24787
    case $ac_tag in
24788
    *:-:* | *:-) cat >"$tmp/stdin";;
24789
    esac
24790
    ;;
24791
  esac
24792
 
24793
  ac_dir=`$as_dirname -- "$ac_file" ||
24794
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24795
         X"$ac_file" : 'X\(//\)[^/]' \| \
24796
         X"$ac_file" : 'X\(//\)$' \| \
24797
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24798
echo X"$ac_file" |
24799
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24800
            s//\1/
24801
            q
24802
          }
24803
          /^X\(\/\/\)[^/].*/{
24804
            s//\1/
24805
            q
24806
          }
24807
          /^X\(\/\/\)$/{
24808
            s//\1/
24809
            q
24810
          }
24811
          /^X\(\/\).*/{
24812
            s//\1/
24813
            q
24814
          }
24815
          s/.*/./; q'`
24816
  { as_dir="$ac_dir"
24817
  case $as_dir in #(
24818
  -*) as_dir=./$as_dir;;
24819
  esac
24820
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24821
    as_dirs=
24822
    while :; do
24823
      case $as_dir in #(
24824
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24825
      *) as_qdir=$as_dir;;
24826
      esac
24827
      as_dirs="'$as_qdir' $as_dirs"
24828
      as_dir=`$as_dirname -- "$as_dir" ||
24829
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24830
         X"$as_dir" : 'X\(//\)[^/]' \| \
24831
         X"$as_dir" : 'X\(//\)$' \| \
24832
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24833
echo X"$as_dir" |
24834
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24835
            s//\1/
24836
            q
24837
          }
24838
          /^X\(\/\/\)[^/].*/{
24839
            s//\1/
24840
            q
24841
          }
24842
          /^X\(\/\/\)$/{
24843
            s//\1/
24844
            q
24845
          }
24846
          /^X\(\/\).*/{
24847
            s//\1/
24848
            q
24849
          }
24850
          s/.*/./; q'`
24851
      test -d "$as_dir" && break
24852
    done
24853
    test -z "$as_dirs" || eval "mkdir $as_dirs"
24854
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24855
echo "$as_me: error: cannot create directory $as_dir" >&2;}
24856
   { (exit 1); exit 1; }; }; }
24857
  ac_builddir=.
24858
 
24859
case "$ac_dir" in
24860
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24861
*)
24862
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24863
  # A ".." for each directory in $ac_dir_suffix.
24864
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24865
  case $ac_top_builddir_sub in
24866
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24867
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24868
  esac ;;
24869
esac
24870
ac_abs_top_builddir=$ac_pwd
24871
ac_abs_builddir=$ac_pwd$ac_dir_suffix
24872
# for backward compatibility:
24873
ac_top_builddir=$ac_top_build_prefix
24874
 
24875
case $srcdir in
24876
  .)  # We are building in place.
24877
    ac_srcdir=.
24878
    ac_top_srcdir=$ac_top_builddir_sub
24879
    ac_abs_top_srcdir=$ac_pwd ;;
24880
  [\\/]* | ?:[\\/]* )  # Absolute name.
24881
    ac_srcdir=$srcdir$ac_dir_suffix;
24882
    ac_top_srcdir=$srcdir
24883
    ac_abs_top_srcdir=$srcdir ;;
24884
  *) # Relative name.
24885
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24886
    ac_top_srcdir=$ac_top_build_prefix$srcdir
24887
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24888
esac
24889
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24890
 
24891
 
24892
  case $ac_mode in
24893
  :F)
24894
  #
24895
  # CONFIG_FILE
24896
  #
24897
 
24898
  case $INSTALL in
24899
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24900
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24901
  esac
24902
  ac_MKDIR_P=$MKDIR_P
24903
  case $MKDIR_P in
24904
  [\\/$]* | ?:[\\/]* ) ;;
24905
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24906
  esac
24907
_ACEOF
24908
 
24909
cat >>$CONFIG_STATUS <<\_ACEOF
24910
# If the template does not know about datarootdir, expand it.
24911
# FIXME: This hack should be removed a few years after 2.60.
24912
ac_datarootdir_hack=; ac_datarootdir_seen=
24913
 
24914
case `sed -n '/datarootdir/ {
24915
  p
24916
  q
24917
}
24918
/@datadir@/p
24919
/@docdir@/p
24920
/@infodir@/p
24921
/@localedir@/p
24922
/@mandir@/p
24923
' $ac_file_inputs` in
24924
*datarootdir*) ac_datarootdir_seen=yes;;
24925
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24926
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24927
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24928
_ACEOF
24929
cat >>$CONFIG_STATUS <<_ACEOF
24930
  ac_datarootdir_hack='
24931
  s&@datadir@&$datadir&g
24932
  s&@docdir@&$docdir&g
24933
  s&@infodir@&$infodir&g
24934
  s&@localedir@&$localedir&g
24935
  s&@mandir@&$mandir&g
24936
    s&\\\${datarootdir}&$datarootdir&g' ;;
24937
esac
24938
_ACEOF
24939
 
24940
# Neutralize VPATH when `$srcdir' = `.'.
24941
# Shell code in configure.ac might set extrasub.
24942
# FIXME: do we really want to maintain this feature?
24943
cat >>$CONFIG_STATUS <<_ACEOF
24944
  sed "$ac_vpsub
24945
$extrasub
24946
_ACEOF
24947
cat >>$CONFIG_STATUS <<\_ACEOF
24948
:t
24949
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24950
s&@configure_input@&$configure_input&;t t
24951
s&@top_builddir@&$ac_top_builddir_sub&;t t
24952
s&@srcdir@&$ac_srcdir&;t t
24953
s&@abs_srcdir@&$ac_abs_srcdir&;t t
24954
s&@top_srcdir@&$ac_top_srcdir&;t t
24955
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24956
s&@builddir@&$ac_builddir&;t t
24957
s&@abs_builddir@&$ac_abs_builddir&;t t
24958
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24959
s&@INSTALL@&$ac_INSTALL&;t t
24960
s&@MKDIR_P@&$ac_MKDIR_P&;t t
24961
$ac_datarootdir_hack
24962
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24963
 
24964
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24965
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24966
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24967
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24968
which seems to be undefined.  Please make sure it is defined." >&5
24969
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24970
which seems to be undefined.  Please make sure it is defined." >&2;}
24971
 
24972
  rm -f "$tmp/stdin"
24973
  case $ac_file in
24974
  -) cat "$tmp/out"; rm -f "$tmp/out";;
24975
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24976
  esac
24977
 ;;
24978
  :H)
24979
  #
24980
  # CONFIG_HEADER
24981
  #
24982
_ACEOF
24983
 
24984
# Transform confdefs.h into a sed script `conftest.defines', that
24985
# substitutes the proper values into config.h.in to produce config.h.
24986
rm -f conftest.defines conftest.tail
24987
# First, append a space to every undef/define line, to ease matching.
24988
echo 's/$/ /' >conftest.defines
24989
# Then, protect against being on the right side of a sed subst, or in
24990
# an unquoted here document, in config.status.  If some macros were
24991
# called several times there might be several #defines for the same
24992
# symbol, which is useless.  But do not sort them, since the last
24993
# AC_DEFINE must be honored.
24994
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24995
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24996
# NAME is the cpp macro being defined, VALUE is the value it is being given.
24997
# PARAMS is the parameter list in the macro definition--in most cases, it's
24998
# just an empty string.
24999
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25000
ac_dB='\\)[      (].*,\\1define\\2'
25001
ac_dC=' '
25002
ac_dD=' ,'
25003
 
25004
uniq confdefs.h |
25005
  sed -n '
25006
        t rset
25007
        :rset
25008
        s/^[     ]*#[    ]*define[       ][      ]*//
25009
        t ok
25010
        d
25011
        :ok
25012
        s/[\\&,]/\\&/g
25013
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25014
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25015
  ' >>conftest.defines
25016
 
25017
# Remove the space that was appended to ease matching.
25018
# Then replace #undef with comments.  This is necessary, for
25019
# example, in the case of _POSIX_SOURCE, which is predefined and required
25020
# on some systems where configure will not decide to define it.
25021
# (The regexp can be short, since the line contains either #define or #undef.)
25022
echo 's/ $//
25023
s,^[     #]*u.*,/* & */,' >>conftest.defines
25024
 
25025
# Break up conftest.defines:
25026
ac_max_sed_lines=50
25027
 
25028
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25029
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25030
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25031
# et cetera.
25032
ac_in='$ac_file_inputs'
25033
ac_out='"$tmp/out1"'
25034
ac_nxt='"$tmp/out2"'
25035
 
25036
while :
25037
do
25038
  # Write a here document:
25039
    cat >>$CONFIG_STATUS <<_ACEOF
25040
    # First, check the format of the line:
25041
    cat >"\$tmp/defines.sed" <<\\CEOF
25042
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25043
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25044
b
25045
:def
25046
_ACEOF
25047
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25048
  echo 'CEOF
25049
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25050
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25051
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25052
  grep . conftest.tail >/dev/null || break
25053
  rm -f conftest.defines
25054
  mv conftest.tail conftest.defines
25055
done
25056
rm -f conftest.defines conftest.tail
25057
 
25058
echo "ac_result=$ac_in" >>$CONFIG_STATUS
25059
cat >>$CONFIG_STATUS <<\_ACEOF
25060
  if test x"$ac_file" != x-; then
25061
    echo "/* $configure_input  */" >"$tmp/config.h"
25062
    cat "$ac_result" >>"$tmp/config.h"
25063
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25064
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25065
echo "$as_me: $ac_file is unchanged" >&6;}
25066
    else
25067
      rm -f $ac_file
25068
      mv "$tmp/config.h" $ac_file
25069
    fi
25070
  else
25071
    echo "/* $configure_input  */"
25072
    cat "$ac_result"
25073
  fi
25074
  rm -f "$tmp/out12"
25075
# Compute $ac_file's index in $config_headers.
25076
_am_arg=$ac_file
25077
_am_stamp_count=1
25078
for _am_header in $config_headers :; do
25079
  case $_am_header in
25080
    $_am_arg | $_am_arg:* )
25081
      break ;;
25082
    * )
25083
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25084
  esac
25085
done
25086
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25087
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25088
         X"$_am_arg" : 'X\(//\)[^/]' \| \
25089
         X"$_am_arg" : 'X\(//\)$' \| \
25090
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25091
echo X"$_am_arg" |
25092
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25093
            s//\1/
25094
            q
25095
          }
25096
          /^X\(\/\/\)[^/].*/{
25097
            s//\1/
25098
            q
25099
          }
25100
          /^X\(\/\/\)$/{
25101
            s//\1/
25102
            q
25103
          }
25104
          /^X\(\/\).*/{
25105
            s//\1/
25106
            q
25107
          }
25108
          s/.*/./; q'`/stamp-h$_am_stamp_count
25109
 ;;
25110
 
25111
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25112
echo "$as_me: executing $ac_file commands" >&6;}
25113
 ;;
25114
  esac
25115
 
25116
 
25117
  case $ac_file$ac_mode in
25118
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25119
  # Strip MF so we end up with the name of the file.
25120
  mf=`echo "$mf" | sed -e 's/:.*$//'`
25121
  # Check whether this is an Automake generated Makefile or not.
25122
  # We used to match only the files named `Makefile.in', but
25123
  # some people rename them; so instead we look at the file content.
25124
  # Grep'ing the first line is not enough: some people post-process
25125
  # each Makefile.in and add a new line on top of each file to say so.
25126
  # Grep'ing the whole file is not good either: AIX grep has a line
25127
  # limit of 2048, but all sed's we know have understand at least 4000.
25128
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25129
    dirpart=`$as_dirname -- "$mf" ||
25130
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25131
         X"$mf" : 'X\(//\)[^/]' \| \
25132
         X"$mf" : 'X\(//\)$' \| \
25133
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25134
echo X"$mf" |
25135
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25136
            s//\1/
25137
            q
25138
          }
25139
          /^X\(\/\/\)[^/].*/{
25140
            s//\1/
25141
            q
25142
          }
25143
          /^X\(\/\/\)$/{
25144
            s//\1/
25145
            q
25146
          }
25147
          /^X\(\/\).*/{
25148
            s//\1/
25149
            q
25150
          }
25151
          s/.*/./; q'`
25152
  else
25153
    continue
25154
  fi
25155
  # Extract the definition of DEPDIR, am__include, and am__quote
25156
  # from the Makefile without running `make'.
25157
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25158
  test -z "$DEPDIR" && continue
25159
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
25160
  test -z "am__include" && continue
25161
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25162
  # When using ansi2knr, U may be empty or an underscore; expand it
25163
  U=`sed -n 's/^U = //p' < "$mf"`
25164
  # Find all dependency output files, they are included files with
25165
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
25166
  # simplest approach to changing $(DEPDIR) to its actual value in the
25167
  # expansion.
25168
  for file in `sed -n "
25169
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25170
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25171
    # Make sure the directory exists.
25172
    test -f "$dirpart/$file" && continue
25173
    fdir=`$as_dirname -- "$file" ||
25174
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25175
         X"$file" : 'X\(//\)[^/]' \| \
25176
         X"$file" : 'X\(//\)$' \| \
25177
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25178
echo X"$file" |
25179
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25180
            s//\1/
25181
            q
25182
          }
25183
          /^X\(\/\/\)[^/].*/{
25184
            s//\1/
25185
            q
25186
          }
25187
          /^X\(\/\/\)$/{
25188
            s//\1/
25189
            q
25190
          }
25191
          /^X\(\/\).*/{
25192
            s//\1/
25193
            q
25194
          }
25195
          s/.*/./; q'`
25196
    { as_dir=$dirpart/$fdir
25197
  case $as_dir in #(
25198
  -*) as_dir=./$as_dir;;
25199
  esac
25200
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25201
    as_dirs=
25202
    while :; do
25203
      case $as_dir in #(
25204
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25205
      *) as_qdir=$as_dir;;
25206
      esac
25207
      as_dirs="'$as_qdir' $as_dirs"
25208
      as_dir=`$as_dirname -- "$as_dir" ||
25209
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25210
         X"$as_dir" : 'X\(//\)[^/]' \| \
25211
         X"$as_dir" : 'X\(//\)$' \| \
25212
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25213
echo X"$as_dir" |
25214
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25215
            s//\1/
25216
            q
25217
          }
25218
          /^X\(\/\/\)[^/].*/{
25219
            s//\1/
25220
            q
25221
          }
25222
          /^X\(\/\/\)$/{
25223
            s//\1/
25224
            q
25225
          }
25226
          /^X\(\/\).*/{
25227
            s//\1/
25228
            q
25229
          }
25230
          s/.*/./; q'`
25231
      test -d "$as_dir" && break
25232
    done
25233
    test -z "$as_dirs" || eval "mkdir $as_dirs"
25234
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25235
echo "$as_me: error: cannot create directory $as_dir" >&2;}
25236
   { (exit 1); exit 1; }; }; }
25237
    # echo "creating $dirpart/$file"
25238
    echo '# dummy' > "$dirpart/$file"
25239
  done
25240
done
25241
 ;;
25242
    "default":C)
25243
# Makefile uses this timestamp file to record whether config.h is up to date.
25244
echo > stamp-h
25245
 ;;
25246
 
25247
  esac
25248
done # for ac_tag
25249
 
25250
 
25251
{ (exit 0); exit 0; }
25252
_ACEOF
25253
chmod +x $CONFIG_STATUS
25254
ac_clean_files=$ac_clean_files_save
25255
 
25256
 
25257
# configure is writing to config.log, and then calls config.status.
25258
# config.status does its own redirection, appending to config.log.
25259
# Unfortunately, on DOS this fails, as config.log is still kept open
25260
# by configure, so config.status won't be able to write to it; its
25261
# output is simply discarded.  So we exec the FD to /dev/null,
25262
# effectively closing config.log, so it can be properly (re)opened and
25263
# appended to by config.status.  When coming back to configure, we
25264
# need to make the FD available again.
25265
if test "$no_create" != yes; then
25266
  ac_cs_success=:
25267
  ac_config_status_args=
25268
  test "$silent" = yes &&
25269
    ac_config_status_args="$ac_config_status_args --quiet"
25270
  exec 5>/dev/null
25271
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25272
  exec 5>>config.log
25273
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25274
  # would make configure fail if this is the last instruction.
25275
  $ac_cs_success || { (exit 1); exit 1; }
25276
fi
25277
 

powered by: WebSVN 2.1.0

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