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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [or1ksim/] [autom4te.cache/] [output.0] - Blame information for rev 86

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

Line No. Rev Author Line
1 19 jeremybenn
@%:@! /bin/sh
2 60 jeremybenn
@%:@ From configure.ac Id: configure.ac 19 2009-05-25 09:01:28Z jeremybennett  using automake version AC_ACVERSION.
3 19 jeremybenn
@%:@ 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 60 jeremybenn
LIB@&t@OBJS
882
POW_LIB
883
USE_SYS_GETOPTLONG_TRUE
884
USE_SYS_GETOPTLONG_FALSE
885
USE_ARGREX_TRUE
886
USE_ARGREX_FALSE
887
USE_ARGDATE_TRUE
888
USE_ARGDATE_FALSE
889
DEBUGFLAGS
890 19 jeremybenn
GENERATE_NEEDED_TRUE
891
GENERATE_NEEDED_FALSE
892
DYNAMIC_EXECUTION_TRUE
893
DYNAMIC_EXECUTION_FALSE
894
BUILD_DIR
895
LOCAL_CFLAGS
896
LOCAL_LDFLAGS
897
LOCAL_DEFS
898
ARFLAGS
899
SUMVERSION
900
TERMCAP_LIB
901
INCLUDES
902
LTLIBOBJS'
903
ac_subst_files=''
904
      ac_precious_vars='build_alias
905
host_alias
906
target_alias
907
CC
908
CFLAGS
909
LDFLAGS
910
LIBS
911
CPPFLAGS
912
CPP
913
CXX
914
CXXFLAGS
915
CCC
916
CXXCPP
917
F77
918
FFLAGS'
919
 
920
 
921
# Initialize some variables set by options.
922
ac_init_help=
923
ac_init_version=false
924
# The variables have the same names as the options, with
925
# dashes changed to underlines.
926
cache_file=/dev/null
927
exec_prefix=NONE
928
no_create=
929
no_recursion=
930
prefix=NONE
931
program_prefix=NONE
932
program_suffix=NONE
933
program_transform_name=s,x,x,
934
silent=
935
site=
936
srcdir=
937
verbose=
938
x_includes=NONE
939
x_libraries=NONE
940
 
941
# Installation directory options.
942
# These are left unexpanded so users can "make install exec_prefix=/foo"
943
# and all the variables that are supposed to be based on exec_prefix
944
# by default will actually change.
945
# Use braces instead of parens because sh, perl, etc. also accept them.
946
# (The list follows the same order as the GNU Coding Standards.)
947
bindir='${exec_prefix}/bin'
948
sbindir='${exec_prefix}/sbin'
949
libexecdir='${exec_prefix}/libexec'
950
datarootdir='${prefix}/share'
951
datadir='${datarootdir}'
952
sysconfdir='${prefix}/etc'
953
sharedstatedir='${prefix}/com'
954
localstatedir='${prefix}/var'
955
includedir='${prefix}/include'
956
oldincludedir='/usr/include'
957
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958
infodir='${datarootdir}/info'
959
htmldir='${docdir}'
960
dvidir='${docdir}'
961
pdfdir='${docdir}'
962
psdir='${docdir}'
963
libdir='${exec_prefix}/lib'
964
localedir='${datarootdir}/locale'
965
mandir='${datarootdir}/man'
966
 
967
ac_prev=
968
ac_dashdash=
969
for ac_option
970
do
971
  # If the previous option needs an argument, assign it.
972
  if test -n "$ac_prev"; then
973
    eval $ac_prev=\$ac_option
974
    ac_prev=
975
    continue
976
  fi
977
 
978
  case $ac_option in
979
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980
  *)    ac_optarg=yes ;;
981
  esac
982
 
983
  # Accept the important Cygnus configure options, so we can diagnose typos.
984
 
985
  case $ac_dashdash$ac_option in
986
  --)
987
    ac_dashdash=yes ;;
988
 
989
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
990
    ac_prev=bindir ;;
991
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992
    bindir=$ac_optarg ;;
993
 
994
  -build | --build | --buil | --bui | --bu)
995
    ac_prev=build_alias ;;
996
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997
    build_alias=$ac_optarg ;;
998
 
999
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1000
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001
    ac_prev=cache_file ;;
1002
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004
    cache_file=$ac_optarg ;;
1005
 
1006
  --config-cache | -C)
1007
    cache_file=config.cache ;;
1008
 
1009
  -datadir | --datadir | --datadi | --datad)
1010
    ac_prev=datadir ;;
1011
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012
    datadir=$ac_optarg ;;
1013
 
1014
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015
  | --dataroo | --dataro | --datar)
1016
    ac_prev=datarootdir ;;
1017
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019
    datarootdir=$ac_optarg ;;
1020
 
1021
  -disable-* | --disable-*)
1022
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023
    # Reject names that are not valid shell variable names.
1024
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026
   { (exit 1); exit 1; }; }
1027
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028
    eval enable_$ac_feature=no ;;
1029
 
1030
  -docdir | --docdir | --docdi | --doc | --do)
1031
    ac_prev=docdir ;;
1032
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033
    docdir=$ac_optarg ;;
1034
 
1035
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036
    ac_prev=dvidir ;;
1037
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038
    dvidir=$ac_optarg ;;
1039
 
1040
  -enable-* | --enable-*)
1041
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042
    # Reject names that are not valid shell variable names.
1043
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1045
   { (exit 1); exit 1; }; }
1046
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1047
    eval enable_$ac_feature=\$ac_optarg ;;
1048
 
1049
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051
  | --exec | --exe | --ex)
1052
    ac_prev=exec_prefix ;;
1053
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055
  | --exec=* | --exe=* | --ex=*)
1056
    exec_prefix=$ac_optarg ;;
1057
 
1058
  -gas | --gas | --ga | --g)
1059
    # Obsolete; use --with-gas.
1060
    with_gas=yes ;;
1061
 
1062
  -help | --help | --hel | --he | -h)
1063
    ac_init_help=long ;;
1064
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065
    ac_init_help=recursive ;;
1066
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067
    ac_init_help=short ;;
1068
 
1069
  -host | --host | --hos | --ho)
1070
    ac_prev=host_alias ;;
1071
  -host=* | --host=* | --hos=* | --ho=*)
1072
    host_alias=$ac_optarg ;;
1073
 
1074
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075
    ac_prev=htmldir ;;
1076
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077
  | --ht=*)
1078
    htmldir=$ac_optarg ;;
1079
 
1080
  -includedir | --includedir | --includedi | --included | --include \
1081
  | --includ | --inclu | --incl | --inc)
1082
    ac_prev=includedir ;;
1083
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1085
    includedir=$ac_optarg ;;
1086
 
1087
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1088
    ac_prev=infodir ;;
1089
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090
    infodir=$ac_optarg ;;
1091
 
1092
  -libdir | --libdir | --libdi | --libd)
1093
    ac_prev=libdir ;;
1094
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095
    libdir=$ac_optarg ;;
1096
 
1097
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098
  | --libexe | --libex | --libe)
1099
    ac_prev=libexecdir ;;
1100
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101
  | --libexe=* | --libex=* | --libe=*)
1102
    libexecdir=$ac_optarg ;;
1103
 
1104
  -localedir | --localedir | --localedi | --localed | --locale)
1105
    ac_prev=localedir ;;
1106
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107
    localedir=$ac_optarg ;;
1108
 
1109
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1110
  | --localstate | --localstat | --localsta | --localst | --locals)
1111
    ac_prev=localstatedir ;;
1112
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114
    localstatedir=$ac_optarg ;;
1115
 
1116
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117
    ac_prev=mandir ;;
1118
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119
    mandir=$ac_optarg ;;
1120
 
1121
  -nfp | --nfp | --nf)
1122
    # Obsolete; use --without-fp.
1123
    with_fp=no ;;
1124
 
1125
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126
  | --no-cr | --no-c | -n)
1127
    no_create=yes ;;
1128
 
1129
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131
    no_recursion=yes ;;
1132
 
1133
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135
  | --oldin | --oldi | --old | --ol | --o)
1136
    ac_prev=oldincludedir ;;
1137
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140
    oldincludedir=$ac_optarg ;;
1141
 
1142
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143
    ac_prev=prefix ;;
1144
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145
    prefix=$ac_optarg ;;
1146
 
1147
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148
  | --program-pre | --program-pr | --program-p)
1149
    ac_prev=program_prefix ;;
1150
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152
    program_prefix=$ac_optarg ;;
1153
 
1154
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155
  | --program-suf | --program-su | --program-s)
1156
    ac_prev=program_suffix ;;
1157
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159
    program_suffix=$ac_optarg ;;
1160
 
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
    ac_prev=program_transform_name ;;
1169
  -program-transform-name=* | --program-transform-name=* \
1170
  | --program-transform-nam=* | --program-transform-na=* \
1171
  | --program-transform-n=* | --program-transform-=* \
1172
  | --program-transform=* | --program-transfor=* \
1173
  | --program-transfo=* | --program-transf=* \
1174
  | --program-trans=* | --program-tran=* \
1175
  | --progr-tra=* | --program-tr=* | --program-t=*)
1176
    program_transform_name=$ac_optarg ;;
1177
 
1178
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179
    ac_prev=pdfdir ;;
1180
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181
    pdfdir=$ac_optarg ;;
1182
 
1183
  -psdir | --psdir | --psdi | --psd | --ps)
1184
    ac_prev=psdir ;;
1185
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186
    psdir=$ac_optarg ;;
1187
 
1188
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189
  | -silent | --silent | --silen | --sile | --sil)
1190
    silent=yes ;;
1191
 
1192
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193
    ac_prev=sbindir ;;
1194
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195
  | --sbi=* | --sb=*)
1196
    sbindir=$ac_optarg ;;
1197
 
1198
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200
  | --sharedst | --shareds | --shared | --share | --shar \
1201
  | --sha | --sh)
1202
    ac_prev=sharedstatedir ;;
1203
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206
  | --sha=* | --sh=*)
1207
    sharedstatedir=$ac_optarg ;;
1208
 
1209
  -site | --site | --sit)
1210
    ac_prev=site ;;
1211
  -site=* | --site=* | --sit=*)
1212
    site=$ac_optarg ;;
1213
 
1214
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215
    ac_prev=srcdir ;;
1216
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217
    srcdir=$ac_optarg ;;
1218
 
1219
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220
  | --syscon | --sysco | --sysc | --sys | --sy)
1221
    ac_prev=sysconfdir ;;
1222
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224
    sysconfdir=$ac_optarg ;;
1225
 
1226
  -target | --target | --targe | --targ | --tar | --ta | --t)
1227
    ac_prev=target_alias ;;
1228
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229
    target_alias=$ac_optarg ;;
1230
 
1231
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232
    verbose=yes ;;
1233
 
1234
  -version | --version | --versio | --versi | --vers | -V)
1235
    ac_init_version=: ;;
1236
 
1237
  -with-* | --with-*)
1238
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239
    # Reject names that are not valid shell variable names.
1240
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1242
   { (exit 1); exit 1; }; }
1243
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1244
    eval with_$ac_package=\$ac_optarg ;;
1245
 
1246
  -without-* | --without-*)
1247
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248
    # Reject names that are not valid shell variable names.
1249
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1251
   { (exit 1); exit 1; }; }
1252
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253
    eval with_$ac_package=no ;;
1254
 
1255
  --x)
1256
    # Obsolete; use --with-x.
1257
    with_x=yes ;;
1258
 
1259
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260
  | --x-incl | --x-inc | --x-in | --x-i)
1261
    ac_prev=x_includes ;;
1262
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264
    x_includes=$ac_optarg ;;
1265
 
1266
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268
    ac_prev=x_libraries ;;
1269
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271
    x_libraries=$ac_optarg ;;
1272
 
1273
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1274
Try \`$0 --help' for more information." >&2
1275
   { (exit 1); exit 1; }; }
1276
    ;;
1277
 
1278
  *=*)
1279
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280
    # Reject names that are not valid shell variable names.
1281
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1282
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1283
   { (exit 1); exit 1; }; }
1284
    eval $ac_envvar=\$ac_optarg
1285
    export $ac_envvar ;;
1286
 
1287
  *)
1288
    # FIXME: should be removed in autoconf 3.0.
1289
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293
    ;;
1294
 
1295
  esac
1296
done
1297
 
1298
if test -n "$ac_prev"; then
1299
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300
  { echo "$as_me: error: missing argument to $ac_option" >&2
1301
   { (exit 1); exit 1; }; }
1302
fi
1303
 
1304
# Be sure to have absolute directory names.
1305
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306
                datadir sysconfdir sharedstatedir localstatedir includedir \
1307
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308
                libdir localedir mandir
1309
do
1310
  eval ac_val=\$$ac_var
1311
  case $ac_val in
1312
    [\\/$]* | ?:[\\/]* )  continue;;
1313
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314
  esac
1315
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1316
   { (exit 1); exit 1; }; }
1317
done
1318
 
1319
# There might be people who depend on the old broken behavior: `$host'
1320
# used to hold the argument of --host etc.
1321
# FIXME: To remove some day.
1322
build=$build_alias
1323
host=$host_alias
1324
target=$target_alias
1325
 
1326
# FIXME: To remove some day.
1327
if test "x$host_alias" != x; then
1328
  if test "x$build_alias" = x; then
1329
    cross_compiling=maybe
1330
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1331
    If a cross compiler is detected then cross compile mode will be used." >&2
1332
  elif test "x$build_alias" != "x$host_alias"; then
1333
    cross_compiling=yes
1334
  fi
1335
fi
1336
 
1337
ac_tool_prefix=
1338
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
 
1340
test "$silent" = yes && exec 6>/dev/null
1341
 
1342
 
1343
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344
ac_ls_di=`ls -di .` &&
1345
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346
  { echo "$as_me: error: Working directory cannot be determined" >&2
1347
   { (exit 1); exit 1; }; }
1348
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1350
   { (exit 1); exit 1; }; }
1351
 
1352
 
1353
# Find the source files, if location was not specified.
1354
if test -z "$srcdir"; then
1355
  ac_srcdir_defaulted=yes
1356
  # Try the directory containing this script, then the parent directory.
1357
  ac_confdir=`$as_dirname -- "$0" ||
1358
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359
         X"$0" : 'X\(//\)[^/]' \| \
1360
         X"$0" : 'X\(//\)$' \| \
1361
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1362
echo X"$0" |
1363
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364
            s//\1/
1365
            q
1366
          }
1367
          /^X\(\/\/\)[^/].*/{
1368
            s//\1/
1369
            q
1370
          }
1371
          /^X\(\/\/\)$/{
1372
            s//\1/
1373
            q
1374
          }
1375
          /^X\(\/\).*/{
1376
            s//\1/
1377
            q
1378
          }
1379
          s/.*/./; q'`
1380
  srcdir=$ac_confdir
1381
  if test ! -r "$srcdir/$ac_unique_file"; then
1382
    srcdir=..
1383
  fi
1384
else
1385
  ac_srcdir_defaulted=no
1386
fi
1387
if test ! -r "$srcdir/$ac_unique_file"; then
1388
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1390
   { (exit 1); exit 1; }; }
1391
fi
1392
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393
ac_abs_confdir=`(
1394
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1395
   { (exit 1); exit 1; }; }
1396
        pwd)`
1397
# When building in place, set srcdir=.
1398
if test "$ac_abs_confdir" = "$ac_pwd"; then
1399
  srcdir=.
1400
fi
1401
# Remove unnecessary trailing slashes from srcdir.
1402
# Double slashes in file names in object file debugging info
1403
# mess up M-x gdb in Emacs.
1404
case $srcdir in
1405
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406
esac
1407
for ac_var in $ac_precious_vars; do
1408
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409
  eval ac_env_${ac_var}_value=\$${ac_var}
1410
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412
done
1413
 
1414
#
1415
# Report the --help message.
1416
#
1417
if test "$ac_init_help" = "long"; then
1418
  # Omit some internal or obsolete options to make the list less imposing.
1419
  # This message is too long to be a string in the A/UX 3.1 sh.
1420
  cat <<_ACEOF
1421
\`configure' configures or1ksim 0.3.0 to adapt to many kinds of systems.
1422
 
1423
Usage: $0 [OPTION]... [VAR=VALUE]...
1424
 
1425
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426
VAR=VALUE.  See below for descriptions of some of the useful variables.
1427
 
1428
Defaults for the options are specified in brackets.
1429
 
1430
Configuration:
1431
  -h, --help              display this help and exit
1432
      --help=short        display options specific to this package
1433
      --help=recursive    display the short help of all the included packages
1434
  -V, --version           display version information and exit
1435
  -q, --quiet, --silent   do not print \`checking...' messages
1436
      --cache-file=FILE   cache test results in FILE [disabled]
1437
  -C, --config-cache      alias for \`--cache-file=config.cache'
1438
  -n, --no-create         do not create output files
1439
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1440
 
1441
Installation directories:
1442
  --prefix=PREFIX         install architecture-independent files in PREFIX
1443
                          [$ac_default_prefix]
1444
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1445
                          [PREFIX]
1446
 
1447
By default, \`make install' will install all the files in
1448
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1449
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450
for instance \`--prefix=\$HOME'.
1451
 
1452
For better control, use the options below.
1453
 
1454
Fine tuning of the installation directories:
1455
  --bindir=DIR           user executables [EPREFIX/bin]
1456
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1457
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1458
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1459
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1460
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1461
  --libdir=DIR           object code libraries [EPREFIX/lib]
1462
  --includedir=DIR       C header files [PREFIX/include]
1463
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1464
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1465
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1466
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1467
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1468
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1469
  --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/or1ksim@:>@
1470
  --htmldir=DIR          html documentation [DOCDIR]
1471
  --dvidir=DIR           dvi documentation [DOCDIR]
1472
  --pdfdir=DIR           pdf documentation [DOCDIR]
1473
  --psdir=DIR            ps documentation [DOCDIR]
1474
_ACEOF
1475
 
1476
  cat <<\_ACEOF
1477
 
1478
Program names:
1479
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1480
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1481
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1482
 
1483
System types:
1484
  --build=BUILD     configure for building on BUILD [guessed]
1485
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1486
  --target=TARGET   configure for building compilers for TARGET [HOST]
1487
_ACEOF
1488
fi
1489
 
1490
if test -n "$ac_init_help"; then
1491
  case $ac_init_help in
1492
     short | recursive ) echo "Configuration of or1ksim 0.3.0:";;
1493
   esac
1494
  cat <<\_ACEOF
1495
 
1496
Optional Features:
1497
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1498
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1499
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1500
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1501
  --enable-fast-install@<:@=PKGS@:>@
1502
                          optimize for fast installation @<:@default=yes@:>@
1503
  --disable-libtool-lock  avoid locking (might break parallel builds)
1504
  --disable-dependency-tracking  speeds up one-time build
1505
  --enable-dependency-tracking   do not reject slow dependency extractors
1506
  --enable-profiling      generate profiling code
1507
  --enable-execution Execution style to use (simple/complex/dynamic)
1508
  --enable-ethphy    compiles sim with ethernet phy support
1509
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1510
  --enable-ov-flag      Whether instructions set overflow flag.
1511
  --enable-arith-flag      Whether arithmethic instructions setflag.
1512 60 jeremybenn
  --enable-debug          enable library debugging symbols
1513 19 jeremybenn
 
1514
Optional Packages:
1515
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1516
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1517
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1518
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1519
                          both@:>@
1520
  --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1521
 
1522
Some influential environment variables:
1523
  CC          C compiler command
1524
  CFLAGS      C compiler flags
1525
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1526
              nonstandard directory 
1527
  LIBS        libraries to pass to the linker, e.g. -l
1528
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1529
              you have headers in a nonstandard directory 
1530
  CPP         C preprocessor
1531
  CXX         C++ compiler command
1532
  CXXFLAGS    C++ compiler flags
1533
  CXXCPP      C++ preprocessor
1534
  F77         Fortran 77 compiler command
1535
  FFLAGS      Fortran 77 compiler flags
1536
 
1537
Use these variables to override the choices made by `configure' or to help
1538
it to find libraries and programs with nonstandard names/locations.
1539
 
1540
Report bugs to .
1541
_ACEOF
1542
ac_status=$?
1543
fi
1544
 
1545
if test "$ac_init_help" = "recursive"; then
1546
  # If there are subdirs, report their specific --help.
1547
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548
    test -d "$ac_dir" || continue
1549
    ac_builddir=.
1550
 
1551
case "$ac_dir" in
1552
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553
*)
1554
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1555
  # A ".." for each directory in $ac_dir_suffix.
1556
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1557
  case $ac_top_builddir_sub in
1558
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560
  esac ;;
1561
esac
1562
ac_abs_top_builddir=$ac_pwd
1563
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564
# for backward compatibility:
1565
ac_top_builddir=$ac_top_build_prefix
1566
 
1567
case $srcdir in
1568
  .)  # We are building in place.
1569
    ac_srcdir=.
1570
    ac_top_srcdir=$ac_top_builddir_sub
1571
    ac_abs_top_srcdir=$ac_pwd ;;
1572
  [\\/]* | ?:[\\/]* )  # Absolute name.
1573
    ac_srcdir=$srcdir$ac_dir_suffix;
1574
    ac_top_srcdir=$srcdir
1575
    ac_abs_top_srcdir=$srcdir ;;
1576
  *) # Relative name.
1577
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1579
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580
esac
1581
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
 
1583
    cd "$ac_dir" || { ac_status=$?; continue; }
1584
    # Check for guested configure.
1585
    if test -f "$ac_srcdir/configure.gnu"; then
1586
      echo &&
1587
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588
    elif test -f "$ac_srcdir/configure"; then
1589
      echo &&
1590
      $SHELL "$ac_srcdir/configure" --help=recursive
1591
    else
1592
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593
    fi || ac_status=$?
1594
    cd "$ac_pwd" || { ac_status=$?; break; }
1595
  done
1596
fi
1597
 
1598
test -n "$ac_init_help" && exit $ac_status
1599
if $ac_init_version; then
1600
  cat <<\_ACEOF
1601
or1ksim configure 0.3.0
1602
generated by GNU Autoconf 2.61
1603
 
1604
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1605
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1606
This configure script is free software; the Free Software Foundation
1607
gives unlimited permission to copy, distribute and modify it.
1608
_ACEOF
1609
  exit
1610
fi
1611
cat >config.log <<_ACEOF
1612
This file contains any messages produced by compilers while
1613
running configure, to aid debugging if configure makes a mistake.
1614
 
1615
It was created by or1ksim $as_me 0.3.0, which was
1616
generated by GNU Autoconf 2.61.  Invocation command line was
1617
 
1618
  $ $0 $@
1619
 
1620
_ACEOF
1621
exec 5>>config.log
1622
{
1623
cat <<_ASUNAME
1624
@%:@@%:@ --------- @%:@@%:@
1625
@%:@@%:@ Platform. @%:@@%:@
1626
@%:@@%:@ --------- @%:@@%:@
1627
 
1628
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1629
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1630
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1631
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1632
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633
 
1634
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1635
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1636
 
1637
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1638
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1639
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1640
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1641
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1642
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1643
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1644
 
1645
_ASUNAME
1646
 
1647
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648
for as_dir in $PATH
1649
do
1650
  IFS=$as_save_IFS
1651
  test -z "$as_dir" && as_dir=.
1652
  echo "PATH: $as_dir"
1653
done
1654
IFS=$as_save_IFS
1655
 
1656
} >&5
1657
 
1658
cat >&5 <<_ACEOF
1659
 
1660
 
1661
@%:@@%:@ ----------- @%:@@%:@
1662
@%:@@%:@ Core tests. @%:@@%:@
1663
@%:@@%:@ ----------- @%:@@%:@
1664
 
1665
_ACEOF
1666
 
1667
 
1668
# Keep a trace of the command line.
1669
# Strip out --no-create and --no-recursion so they do not pile up.
1670
# Strip out --silent because we don't want to record it for future runs.
1671
# Also quote any args containing shell meta-characters.
1672
# Make two passes to allow for proper duplicate-argument suppression.
1673
ac_configure_args=
1674
ac_configure_args0=
1675
ac_configure_args1=
1676
ac_must_keep_next=false
1677
for ac_pass in 1 2
1678
do
1679
  for ac_arg
1680
  do
1681
    case $ac_arg in
1682
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1683
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1684
    | -silent | --silent | --silen | --sile | --sil)
1685
      continue ;;
1686
    *\'*)
1687
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1688
    esac
1689
    case $ac_pass in
1690
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691
    2)
1692
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1693
      if test $ac_must_keep_next = true; then
1694
        ac_must_keep_next=false # Got value, back to normal.
1695
      else
1696
        case $ac_arg in
1697
          *=* | --config-cache | -C | -disable-* | --disable-* \
1698
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1699
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1700
          | -with-* | --with-* | -without-* | --without-* | --x)
1701
            case "$ac_configure_args0 " in
1702
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703
            esac
1704
            ;;
1705
          -* ) ac_must_keep_next=true ;;
1706
        esac
1707
      fi
1708
      ac_configure_args="$ac_configure_args '$ac_arg'"
1709
      ;;
1710
    esac
1711
  done
1712
done
1713
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1714
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715
 
1716
# When interrupted or exit'd, cleanup temporary files, and complete
1717
# config.log.  We remove comments because anyway the quotes in there
1718
# would cause problems or look ugly.
1719
# WARNING: Use '\'' to represent an apostrophe within the trap.
1720
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1721
trap 'exit_status=$?
1722
  # Save into config.log some information that might help in debugging.
1723
  {
1724
    echo
1725
 
1726
    cat <<\_ASBOX
1727
@%:@@%:@ ---------------- @%:@@%:@
1728
@%:@@%:@ Cache variables. @%:@@%:@
1729
@%:@@%:@ ---------------- @%:@@%:@
1730
_ASBOX
1731
    echo
1732
    # The following way of writing the cache mishandles newlines in values,
1733
(
1734
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1735
    eval ac_val=\$$ac_var
1736
    case $ac_val in #(
1737
    *${as_nl}*)
1738
      case $ac_var in #(
1739
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1740
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1741
      esac
1742
      case $ac_var in #(
1743
      _ | IFS | as_nl) ;; #(
1744
      *) $as_unset $ac_var ;;
1745
      esac ;;
1746
    esac
1747
  done
1748
  (set) 2>&1 |
1749
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750
    *${as_nl}ac_space=\ *)
1751
      sed -n \
1752
        "s/'\''/'\''\\\\'\'''\''/g;
1753
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754
      ;; #(
1755
    *)
1756
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757
      ;;
1758
    esac |
1759
    sort
1760
)
1761
    echo
1762
 
1763
    cat <<\_ASBOX
1764
@%:@@%:@ ----------------- @%:@@%:@
1765
@%:@@%:@ Output variables. @%:@@%:@
1766
@%:@@%:@ ----------------- @%:@@%:@
1767
_ASBOX
1768
    echo
1769
    for ac_var in $ac_subst_vars
1770
    do
1771
      eval ac_val=\$$ac_var
1772
      case $ac_val in
1773
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774
      esac
1775
      echo "$ac_var='\''$ac_val'\''"
1776
    done | sort
1777
    echo
1778
 
1779
    if test -n "$ac_subst_files"; then
1780
      cat <<\_ASBOX
1781
@%:@@%:@ ------------------- @%:@@%:@
1782
@%:@@%:@ File substitutions. @%:@@%:@
1783
@%:@@%:@ ------------------- @%:@@%:@
1784
_ASBOX
1785
      echo
1786
      for ac_var in $ac_subst_files
1787
      do
1788
        eval ac_val=\$$ac_var
1789
        case $ac_val in
1790
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791
        esac
1792
        echo "$ac_var='\''$ac_val'\''"
1793
      done | sort
1794
      echo
1795
    fi
1796
 
1797
    if test -s confdefs.h; then
1798
      cat <<\_ASBOX
1799
@%:@@%:@ ----------- @%:@@%:@
1800
@%:@@%:@ confdefs.h. @%:@@%:@
1801
@%:@@%:@ ----------- @%:@@%:@
1802
_ASBOX
1803
      echo
1804
      cat confdefs.h
1805
      echo
1806
    fi
1807
    test "$ac_signal" != 0 &&
1808
      echo "$as_me: caught signal $ac_signal"
1809
    echo "$as_me: exit $exit_status"
1810
  } >&5
1811
  rm -f core *.core core.conftest.* &&
1812
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813
    exit $exit_status
1814
' 0
1815
for ac_signal in 1 2 13 15; do
1816
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1817
done
1818
ac_signal=0
1819
 
1820
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1821
rm -f -r conftest* confdefs.h
1822
 
1823
# Predefined preprocessor variables.
1824
 
1825
cat >>confdefs.h <<_ACEOF
1826
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1827
_ACEOF
1828
 
1829
 
1830
cat >>confdefs.h <<_ACEOF
1831
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1832
_ACEOF
1833
 
1834
 
1835
cat >>confdefs.h <<_ACEOF
1836
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1837
_ACEOF
1838
 
1839
 
1840
cat >>confdefs.h <<_ACEOF
1841
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1842
_ACEOF
1843
 
1844
 
1845
cat >>confdefs.h <<_ACEOF
1846
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1847
_ACEOF
1848
 
1849
 
1850
# Let the site file select an alternate cache file if it wants to.
1851
# Prefer explicitly selected file to automatically selected ones.
1852
if test -n "$CONFIG_SITE"; then
1853
  set x "$CONFIG_SITE"
1854
elif test "x$prefix" != xNONE; then
1855
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1856
else
1857
  set x "$ac_default_prefix/share/config.site" \
1858
        "$ac_default_prefix/etc/config.site"
1859
fi
1860
shift
1861
for ac_site_file
1862
do
1863
  if test -r "$ac_site_file"; then
1864
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1865
echo "$as_me: loading site script $ac_site_file" >&6;}
1866
    sed 's/^/| /' "$ac_site_file" >&5
1867
    . "$ac_site_file"
1868
  fi
1869
done
1870
 
1871
if test -r "$cache_file"; then
1872
  # Some versions of bash will fail to source /dev/null (special
1873
  # files actually), so we avoid doing that.
1874
  if test -f "$cache_file"; then
1875
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1876
echo "$as_me: loading cache $cache_file" >&6;}
1877
    case $cache_file in
1878
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1879
      *)                      . "./$cache_file";;
1880
    esac
1881
  fi
1882
else
1883
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1884
echo "$as_me: creating cache $cache_file" >&6;}
1885
  >$cache_file
1886
fi
1887
 
1888
# Check that the precious variables saved in the cache have kept the same
1889
# value.
1890
ac_cache_corrupted=false
1891
for ac_var in $ac_precious_vars; do
1892
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1893
  eval ac_new_set=\$ac_env_${ac_var}_set
1894
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1895
  eval ac_new_val=\$ac_env_${ac_var}_value
1896
  case $ac_old_set,$ac_new_set in
1897
    set,)
1898
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1899
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1900
      ac_cache_corrupted=: ;;
1901
    ,set)
1902
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1903
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1904
      ac_cache_corrupted=: ;;
1905
    ,);;
1906
    *)
1907
      if test "x$ac_old_val" != "x$ac_new_val"; then
1908
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1909
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1910
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1911
echo "$as_me:   former value:  $ac_old_val" >&2;}
1912
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1913
echo "$as_me:   current value: $ac_new_val" >&2;}
1914
        ac_cache_corrupted=:
1915
      fi;;
1916
  esac
1917
  # Pass precious variables to config.status.
1918
  if test "$ac_new_set" = set; then
1919
    case $ac_new_val in
1920
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1921
    *) ac_arg=$ac_var=$ac_new_val ;;
1922
    esac
1923
    case " $ac_configure_args " in
1924
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1925
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1926
    esac
1927
  fi
1928
done
1929
if $ac_cache_corrupted; then
1930
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1931
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1932
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1933
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1934
   { (exit 1); exit 1; }; }
1935
fi
1936
 
1937
 
1938
 
1939
 
1940
 
1941
 
1942
 
1943
 
1944
 
1945
 
1946
 
1947
 
1948
 
1949
 
1950
 
1951
 
1952
 
1953
 
1954
 
1955
 
1956
 
1957
 
1958
 
1959
 
1960
 
1961
ac_ext=c
1962
ac_cpp='$CPP $CPPFLAGS'
1963
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966
 
1967
 
1968
 
1969
ac_aux_dir=
1970
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1971
  if test -f "$ac_dir/install-sh"; then
1972
    ac_aux_dir=$ac_dir
1973
    ac_install_sh="$ac_aux_dir/install-sh -c"
1974
    break
1975
  elif test -f "$ac_dir/install.sh"; then
1976
    ac_aux_dir=$ac_dir
1977
    ac_install_sh="$ac_aux_dir/install.sh -c"
1978
    break
1979
  elif test -f "$ac_dir/shtool"; then
1980
    ac_aux_dir=$ac_dir
1981
    ac_install_sh="$ac_aux_dir/shtool install -c"
1982
    break
1983
  fi
1984
done
1985
if test -z "$ac_aux_dir"; then
1986
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1987
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1988
   { (exit 1); exit 1; }; }
1989
fi
1990
 
1991
# These three variables are undocumented and unsupported,
1992
# and are intended to be withdrawn in a future Autoconf release.
1993
# They can cause serious problems if a builder's source tree is in a directory
1994
# whose full name contains unusual characters.
1995
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1996
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1997
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1998
 
1999
 
2000
# Make sure we can run config.sub.
2001
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2002
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2003
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2004
   { (exit 1); exit 1; }; }
2005
 
2006
{ echo "$as_me:$LINENO: checking build system type" >&5
2007
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2008
if test "${ac_cv_build+set}" = set; then
2009
  echo $ECHO_N "(cached) $ECHO_C" >&6
2010
else
2011
  ac_build_alias=$build_alias
2012
test "x$ac_build_alias" = x &&
2013
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2014
test "x$ac_build_alias" = x &&
2015
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2016
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2017
   { (exit 1); exit 1; }; }
2018
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2019
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2020
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2021
   { (exit 1); exit 1; }; }
2022
 
2023
fi
2024
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2025
echo "${ECHO_T}$ac_cv_build" >&6; }
2026
case $ac_cv_build in
2027
*-*-*) ;;
2028
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2029
echo "$as_me: error: invalid value of canonical build" >&2;}
2030
   { (exit 1); exit 1; }; };;
2031
esac
2032
build=$ac_cv_build
2033
ac_save_IFS=$IFS; IFS='-'
2034
set x $ac_cv_build
2035
shift
2036
build_cpu=$1
2037
build_vendor=$2
2038
shift; shift
2039
# Remember, the first character of IFS is used to create $*,
2040
# except with old shells:
2041
build_os=$*
2042
IFS=$ac_save_IFS
2043
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2044
 
2045
 
2046
{ echo "$as_me:$LINENO: checking host system type" >&5
2047
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2048
if test "${ac_cv_host+set}" = set; then
2049
  echo $ECHO_N "(cached) $ECHO_C" >&6
2050
else
2051
  if test "x$host_alias" = x; then
2052
  ac_cv_host=$ac_cv_build
2053
else
2054
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2055
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2056
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2057
   { (exit 1); exit 1; }; }
2058
fi
2059
 
2060
fi
2061
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2062
echo "${ECHO_T}$ac_cv_host" >&6; }
2063
case $ac_cv_host in
2064
*-*-*) ;;
2065
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2066
echo "$as_me: error: invalid value of canonical host" >&2;}
2067
   { (exit 1); exit 1; }; };;
2068
esac
2069
host=$ac_cv_host
2070
ac_save_IFS=$IFS; IFS='-'
2071
set x $ac_cv_host
2072
shift
2073
host_cpu=$1
2074
host_vendor=$2
2075
shift; shift
2076
# Remember, the first character of IFS is used to create $*,
2077
# except with old shells:
2078
host_os=$*
2079
IFS=$ac_save_IFS
2080
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2081
 
2082
 
2083
{ echo "$as_me:$LINENO: checking target system type" >&5
2084
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2085
if test "${ac_cv_target+set}" = set; then
2086
  echo $ECHO_N "(cached) $ECHO_C" >&6
2087
else
2088
  if test "x$target_alias" = x; then
2089
  ac_cv_target=$ac_cv_host
2090
else
2091
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2092
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2093
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2094
   { (exit 1); exit 1; }; }
2095
fi
2096
 
2097
fi
2098
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2099
echo "${ECHO_T}$ac_cv_target" >&6; }
2100
case $ac_cv_target in
2101
*-*-*) ;;
2102
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2103
echo "$as_me: error: invalid value of canonical target" >&2;}
2104
   { (exit 1); exit 1; }; };;
2105
esac
2106
target=$ac_cv_target
2107
ac_save_IFS=$IFS; IFS='-'
2108
set x $ac_cv_target
2109
shift
2110
target_cpu=$1
2111
target_vendor=$2
2112
shift; shift
2113
# Remember, the first character of IFS is used to create $*,
2114
# except with old shells:
2115
target_os=$*
2116
IFS=$ac_save_IFS
2117
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2118
 
2119
 
2120
# The aliases save the names the user supplied, while $host etc.
2121
# will get canonicalized.
2122
test -n "$target_alias" &&
2123
  test "$program_prefix$program_suffix$program_transform_name" = \
2124
    NONENONEs,x,x, &&
2125
  program_prefix=${target_alias}-
2126
# Check whether --enable-shared was given.
2127
if test "${enable_shared+set}" = set; then
2128
  enableval=$enable_shared; p=${PACKAGE-default}
2129
    case $enableval in
2130
    yes) enable_shared=yes ;;
2131
    no) enable_shared=no ;;
2132
    *)
2133
      enable_shared=no
2134
      # Look at the argument we got.  We use all the common list separators.
2135
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2136
      for pkg in $enableval; do
2137
        IFS="$lt_save_ifs"
2138
        if test "X$pkg" = "X$p"; then
2139
          enable_shared=yes
2140
        fi
2141
      done
2142
      IFS="$lt_save_ifs"
2143
      ;;
2144
    esac
2145
else
2146
  enable_shared=yes
2147
fi
2148
 
2149
 
2150
# Check whether --enable-static was given.
2151
if test "${enable_static+set}" = set; then
2152
  enableval=$enable_static; p=${PACKAGE-default}
2153
    case $enableval in
2154
    yes) enable_static=yes ;;
2155
    no) enable_static=no ;;
2156
    *)
2157
     enable_static=no
2158
      # Look at the argument we got.  We use all the common list separators.
2159
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2160
      for pkg in $enableval; do
2161
        IFS="$lt_save_ifs"
2162
        if test "X$pkg" = "X$p"; then
2163
          enable_static=yes
2164
        fi
2165
      done
2166
      IFS="$lt_save_ifs"
2167
      ;;
2168
    esac
2169
else
2170
  enable_static=yes
2171
fi
2172
 
2173
 
2174
# Check whether --enable-fast-install was given.
2175
if test "${enable_fast_install+set}" = set; then
2176
  enableval=$enable_fast_install; p=${PACKAGE-default}
2177
    case $enableval in
2178
    yes) enable_fast_install=yes ;;
2179
    no) enable_fast_install=no ;;
2180
    *)
2181
      enable_fast_install=no
2182
      # Look at the argument we got.  We use all the common list separators.
2183
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2184
      for pkg in $enableval; do
2185
        IFS="$lt_save_ifs"
2186
        if test "X$pkg" = "X$p"; then
2187
          enable_fast_install=yes
2188
        fi
2189
      done
2190
      IFS="$lt_save_ifs"
2191
      ;;
2192
    esac
2193
else
2194
  enable_fast_install=yes
2195
fi
2196
 
2197
 
2198
ac_ext=c
2199
ac_cpp='$CPP $CPPFLAGS'
2200
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203
if test -n "$ac_tool_prefix"; then
2204
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2205
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2206
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2208
if test "${ac_cv_prog_CC+set}" = set; then
2209
  echo $ECHO_N "(cached) $ECHO_C" >&6
2210
else
2211
  if test -n "$CC"; then
2212
  ac_cv_prog_CC="$CC" # Let the user override the test.
2213
else
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215
for as_dir in $PATH
2216
do
2217
  IFS=$as_save_IFS
2218
  test -z "$as_dir" && as_dir=.
2219
  for ac_exec_ext in '' $ac_executable_extensions; do
2220
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223
    break 2
2224
  fi
2225
done
2226
done
2227
IFS=$as_save_IFS
2228
 
2229
fi
2230
fi
2231
CC=$ac_cv_prog_CC
2232
if test -n "$CC"; then
2233
  { echo "$as_me:$LINENO: result: $CC" >&5
2234
echo "${ECHO_T}$CC" >&6; }
2235
else
2236
  { echo "$as_me:$LINENO: result: no" >&5
2237
echo "${ECHO_T}no" >&6; }
2238
fi
2239
 
2240
 
2241
fi
2242
if test -z "$ac_cv_prog_CC"; then
2243
  ac_ct_CC=$CC
2244
  # Extract the first word of "gcc", so it can be a program name with args.
2245
set dummy gcc; ac_word=$2
2246
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2249
  echo $ECHO_N "(cached) $ECHO_C" >&6
2250
else
2251
  if test -n "$ac_ct_CC"; then
2252
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2253
else
2254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255
for as_dir in $PATH
2256
do
2257
  IFS=$as_save_IFS
2258
  test -z "$as_dir" && as_dir=.
2259
  for ac_exec_ext in '' $ac_executable_extensions; do
2260
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261
    ac_cv_prog_ac_ct_CC="gcc"
2262
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263
    break 2
2264
  fi
2265
done
2266
done
2267
IFS=$as_save_IFS
2268
 
2269
fi
2270
fi
2271
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2272
if test -n "$ac_ct_CC"; then
2273
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2274
echo "${ECHO_T}$ac_ct_CC" >&6; }
2275
else
2276
  { echo "$as_me:$LINENO: result: no" >&5
2277
echo "${ECHO_T}no" >&6; }
2278
fi
2279
 
2280
  if test "x$ac_ct_CC" = x; then
2281
    CC=""
2282
  else
2283
    case $cross_compiling:$ac_tool_warned in
2284
yes:)
2285
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2286
whose name does not start with the host triplet.  If you think this
2287
configuration is useful to you, please write to autoconf@gnu.org." >&5
2288
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2289
whose name does not start with the host triplet.  If you think this
2290
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2291
ac_tool_warned=yes ;;
2292
esac
2293
    CC=$ac_ct_CC
2294
  fi
2295
else
2296
  CC="$ac_cv_prog_CC"
2297
fi
2298
 
2299
if test -z "$CC"; then
2300
          if test -n "$ac_tool_prefix"; then
2301
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2302
set dummy ${ac_tool_prefix}cc; ac_word=$2
2303
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2304
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305
if test "${ac_cv_prog_CC+set}" = set; then
2306
  echo $ECHO_N "(cached) $ECHO_C" >&6
2307
else
2308
  if test -n "$CC"; then
2309
  ac_cv_prog_CC="$CC" # Let the user override the test.
2310
else
2311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312
for as_dir in $PATH
2313
do
2314
  IFS=$as_save_IFS
2315
  test -z "$as_dir" && as_dir=.
2316
  for ac_exec_ext in '' $ac_executable_extensions; do
2317
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2318
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2319
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320
    break 2
2321
  fi
2322
done
2323
done
2324
IFS=$as_save_IFS
2325
 
2326
fi
2327
fi
2328
CC=$ac_cv_prog_CC
2329
if test -n "$CC"; then
2330
  { echo "$as_me:$LINENO: result: $CC" >&5
2331
echo "${ECHO_T}$CC" >&6; }
2332
else
2333
  { echo "$as_me:$LINENO: result: no" >&5
2334
echo "${ECHO_T}no" >&6; }
2335
fi
2336
 
2337
 
2338
  fi
2339
fi
2340
if test -z "$CC"; then
2341
  # Extract the first word of "cc", so it can be a program name with args.
2342
set dummy cc; ac_word=$2
2343
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345
if test "${ac_cv_prog_CC+set}" = set; then
2346
  echo $ECHO_N "(cached) $ECHO_C" >&6
2347
else
2348
  if test -n "$CC"; then
2349
  ac_cv_prog_CC="$CC" # Let the user override the test.
2350
else
2351
  ac_prog_rejected=no
2352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353
for as_dir in $PATH
2354
do
2355
  IFS=$as_save_IFS
2356
  test -z "$as_dir" && as_dir=.
2357
  for ac_exec_ext in '' $ac_executable_extensions; do
2358
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2360
       ac_prog_rejected=yes
2361
       continue
2362
     fi
2363
    ac_cv_prog_CC="cc"
2364
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365
    break 2
2366
  fi
2367
done
2368
done
2369
IFS=$as_save_IFS
2370
 
2371
if test $ac_prog_rejected = yes; then
2372
  # We found a bogon in the path, so make sure we never use it.
2373
  set dummy $ac_cv_prog_CC
2374
  shift
2375
  if test $@%:@ != 0; then
2376
    # We chose a different compiler from the bogus one.
2377
    # However, it has the same basename, so the bogon will be chosen
2378
    # first if we set CC to just the basename; use the full file name.
2379
    shift
2380
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2381
  fi
2382
fi
2383
fi
2384
fi
2385
CC=$ac_cv_prog_CC
2386
if test -n "$CC"; then
2387
  { echo "$as_me:$LINENO: result: $CC" >&5
2388
echo "${ECHO_T}$CC" >&6; }
2389
else
2390
  { echo "$as_me:$LINENO: result: no" >&5
2391
echo "${ECHO_T}no" >&6; }
2392
fi
2393
 
2394
 
2395
fi
2396
if test -z "$CC"; then
2397
  if test -n "$ac_tool_prefix"; then
2398
  for ac_prog in cl.exe
2399
  do
2400
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2401
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2402
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2403
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404
if test "${ac_cv_prog_CC+set}" = set; then
2405
  echo $ECHO_N "(cached) $ECHO_C" >&6
2406
else
2407
  if test -n "$CC"; then
2408
  ac_cv_prog_CC="$CC" # Let the user override the test.
2409
else
2410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411
for as_dir in $PATH
2412
do
2413
  IFS=$as_save_IFS
2414
  test -z "$as_dir" && as_dir=.
2415
  for ac_exec_ext in '' $ac_executable_extensions; do
2416
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2418
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419
    break 2
2420
  fi
2421
done
2422
done
2423
IFS=$as_save_IFS
2424
 
2425
fi
2426
fi
2427
CC=$ac_cv_prog_CC
2428
if test -n "$CC"; then
2429
  { echo "$as_me:$LINENO: result: $CC" >&5
2430
echo "${ECHO_T}$CC" >&6; }
2431
else
2432
  { echo "$as_me:$LINENO: result: no" >&5
2433
echo "${ECHO_T}no" >&6; }
2434
fi
2435
 
2436
 
2437
    test -n "$CC" && break
2438
  done
2439
fi
2440
if test -z "$CC"; then
2441
  ac_ct_CC=$CC
2442
  for ac_prog in cl.exe
2443
do
2444
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2445
set dummy $ac_prog; ac_word=$2
2446
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2447
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2449
  echo $ECHO_N "(cached) $ECHO_C" >&6
2450
else
2451
  if test -n "$ac_ct_CC"; then
2452
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453
else
2454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455
for as_dir in $PATH
2456
do
2457
  IFS=$as_save_IFS
2458
  test -z "$as_dir" && as_dir=.
2459
  for ac_exec_ext in '' $ac_executable_extensions; do
2460
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461
    ac_cv_prog_ac_ct_CC="$ac_prog"
2462
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463
    break 2
2464
  fi
2465
done
2466
done
2467
IFS=$as_save_IFS
2468
 
2469
fi
2470
fi
2471
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472
if test -n "$ac_ct_CC"; then
2473
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2474
echo "${ECHO_T}$ac_ct_CC" >&6; }
2475
else
2476
  { echo "$as_me:$LINENO: result: no" >&5
2477
echo "${ECHO_T}no" >&6; }
2478
fi
2479
 
2480
 
2481
  test -n "$ac_ct_CC" && break
2482
done
2483
 
2484
  if test "x$ac_ct_CC" = x; then
2485
    CC=""
2486
  else
2487
    case $cross_compiling:$ac_tool_warned in
2488
yes:)
2489
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2490
whose name does not start with the host triplet.  If you think this
2491
configuration is useful to you, please write to autoconf@gnu.org." >&5
2492
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2493
whose name does not start with the host triplet.  If you think this
2494
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2495
ac_tool_warned=yes ;;
2496
esac
2497
    CC=$ac_ct_CC
2498
  fi
2499
fi
2500
 
2501
fi
2502
 
2503
 
2504
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2505
See \`config.log' for more details." >&5
2506
echo "$as_me: error: no acceptable C compiler found in \$PATH
2507
See \`config.log' for more details." >&2;}
2508
   { (exit 1); exit 1; }; }
2509
 
2510
# Provide some information about the compiler.
2511
echo "$as_me:$LINENO: checking for C compiler version" >&5
2512
ac_compiler=`set X $ac_compile; echo $2`
2513
{ (ac_try="$ac_compiler --version >&5"
2514
case "(($ac_try" in
2515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516
  *) ac_try_echo=$ac_try;;
2517
esac
2518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519
  (eval "$ac_compiler --version >&5") 2>&5
2520
  ac_status=$?
2521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522
  (exit $ac_status); }
2523
{ (ac_try="$ac_compiler -v >&5"
2524
case "(($ac_try" in
2525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526
  *) ac_try_echo=$ac_try;;
2527
esac
2528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529
  (eval "$ac_compiler -v >&5") 2>&5
2530
  ac_status=$?
2531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532
  (exit $ac_status); }
2533
{ (ac_try="$ac_compiler -V >&5"
2534
case "(($ac_try" in
2535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536
  *) ac_try_echo=$ac_try;;
2537
esac
2538
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539
  (eval "$ac_compiler -V >&5") 2>&5
2540
  ac_status=$?
2541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542
  (exit $ac_status); }
2543
 
2544
cat >conftest.$ac_ext <<_ACEOF
2545
/* confdefs.h.  */
2546
_ACEOF
2547
cat confdefs.h >>conftest.$ac_ext
2548
cat >>conftest.$ac_ext <<_ACEOF
2549
/* end confdefs.h.  */
2550
 
2551
int
2552
main ()
2553
{
2554
 
2555
  ;
2556
  return 0;
2557
}
2558
_ACEOF
2559
ac_clean_files_save=$ac_clean_files
2560
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2561
# Try to create an executable without -o first, disregard a.out.
2562
# It will help us diagnose broken compilers, and finding out an intuition
2563
# of exeext.
2564
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2565
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2566
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2567
#
2568
# List of possible output files, starting from the most likely.
2569
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2570
# only as a last resort.  b.out is created by i960 compilers.
2571
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2572
#
2573
# The IRIX 6 linker writes into existing files which may not be
2574
# executable, retaining their permissions.  Remove them first so a
2575
# subsequent execution test works.
2576
ac_rmfiles=
2577
for ac_file in $ac_files
2578
do
2579
  case $ac_file in
2580
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2581
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2582
  esac
2583
done
2584
rm -f $ac_rmfiles
2585
 
2586
if { (ac_try="$ac_link_default"
2587
case "(($ac_try" in
2588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589
  *) ac_try_echo=$ac_try;;
2590
esac
2591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592
  (eval "$ac_link_default") 2>&5
2593
  ac_status=$?
2594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595
  (exit $ac_status); }; then
2596
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2597
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2598
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2599
# so that the user can short-circuit this test for compilers unknown to
2600
# Autoconf.
2601
for ac_file in $ac_files ''
2602
do
2603
  test -f "$ac_file" || continue
2604
  case $ac_file in
2605
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2606
        ;;
2607
    [ab].out )
2608
        # We found the default executable, but exeext='' is most
2609
        # certainly right.
2610
        break;;
2611
    *.* )
2612
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2613
        then :; else
2614
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2615
        fi
2616
        # We set ac_cv_exeext here because the later test for it is not
2617
        # safe: cross compilers may not add the suffix if given an `-o'
2618
        # argument, so we may need to know it at that point already.
2619
        # Even if this section looks crufty: it has the advantage of
2620
        # actually working.
2621
        break;;
2622
    * )
2623
        break;;
2624
  esac
2625
done
2626
test "$ac_cv_exeext" = no && ac_cv_exeext=
2627
 
2628
else
2629
  ac_file=''
2630
fi
2631
 
2632
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2633
echo "${ECHO_T}$ac_file" >&6; }
2634
if test -z "$ac_file"; then
2635
  echo "$as_me: failed program was:" >&5
2636
sed 's/^/| /' conftest.$ac_ext >&5
2637
 
2638
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2639
See \`config.log' for more details." >&5
2640
echo "$as_me: error: C compiler cannot create executables
2641
See \`config.log' for more details." >&2;}
2642
   { (exit 77); exit 77; }; }
2643
fi
2644
 
2645
ac_exeext=$ac_cv_exeext
2646
 
2647
# Check that the compiler produces executables we can run.  If not, either
2648
# the compiler is broken, or we cross compile.
2649
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2650
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2651
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2652
# If not cross compiling, check that we can run a simple program.
2653
if test "$cross_compiling" != yes; then
2654
  if { ac_try='./$ac_file'
2655
  { (case "(($ac_try" in
2656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657
  *) ac_try_echo=$ac_try;;
2658
esac
2659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660
  (eval "$ac_try") 2>&5
2661
  ac_status=$?
2662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663
  (exit $ac_status); }; }; then
2664
    cross_compiling=no
2665
  else
2666
    if test "$cross_compiling" = maybe; then
2667
        cross_compiling=yes
2668
    else
2669
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2670
If you meant to cross compile, use \`--host'.
2671
See \`config.log' for more details." >&5
2672
echo "$as_me: error: cannot run C compiled programs.
2673
If you meant to cross compile, use \`--host'.
2674
See \`config.log' for more details." >&2;}
2675
   { (exit 1); exit 1; }; }
2676
    fi
2677
  fi
2678
fi
2679
{ echo "$as_me:$LINENO: result: yes" >&5
2680
echo "${ECHO_T}yes" >&6; }
2681
 
2682
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2683
ac_clean_files=$ac_clean_files_save
2684
# Check that the compiler produces executables we can run.  If not, either
2685
# the compiler is broken, or we cross compile.
2686
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2687
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2688
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2689
echo "${ECHO_T}$cross_compiling" >&6; }
2690
 
2691
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2692
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2693
if { (ac_try="$ac_link"
2694
case "(($ac_try" in
2695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696
  *) ac_try_echo=$ac_try;;
2697
esac
2698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699
  (eval "$ac_link") 2>&5
2700
  ac_status=$?
2701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702
  (exit $ac_status); }; then
2703
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2704
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2705
# work properly (i.e., refer to `conftest.exe'), while it won't with
2706
# `rm'.
2707
for ac_file in conftest.exe conftest conftest.*; do
2708
  test -f "$ac_file" || continue
2709
  case $ac_file in
2710
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2711
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2712
          break;;
2713
    * ) break;;
2714
  esac
2715
done
2716
else
2717
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2718
See \`config.log' for more details." >&5
2719
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2720
See \`config.log' for more details." >&2;}
2721
   { (exit 1); exit 1; }; }
2722
fi
2723
 
2724
rm -f conftest$ac_cv_exeext
2725
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2726
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2727
 
2728
rm -f conftest.$ac_ext
2729
EXEEXT=$ac_cv_exeext
2730
ac_exeext=$EXEEXT
2731
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2732
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2733
if test "${ac_cv_objext+set}" = set; then
2734
  echo $ECHO_N "(cached) $ECHO_C" >&6
2735
else
2736
  cat >conftest.$ac_ext <<_ACEOF
2737
/* confdefs.h.  */
2738
_ACEOF
2739
cat confdefs.h >>conftest.$ac_ext
2740
cat >>conftest.$ac_ext <<_ACEOF
2741
/* end confdefs.h.  */
2742
 
2743
int
2744
main ()
2745
{
2746
 
2747
  ;
2748
  return 0;
2749
}
2750
_ACEOF
2751
rm -f conftest.o conftest.obj
2752
if { (ac_try="$ac_compile"
2753
case "(($ac_try" in
2754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755
  *) ac_try_echo=$ac_try;;
2756
esac
2757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758
  (eval "$ac_compile") 2>&5
2759
  ac_status=$?
2760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761
  (exit $ac_status); }; then
2762
  for ac_file in conftest.o conftest.obj conftest.*; do
2763
  test -f "$ac_file" || continue;
2764
  case $ac_file in
2765
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2766
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2767
       break;;
2768
  esac
2769
done
2770
else
2771
  echo "$as_me: failed program was:" >&5
2772
sed 's/^/| /' conftest.$ac_ext >&5
2773
 
2774
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2775
See \`config.log' for more details." >&5
2776
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2777
See \`config.log' for more details." >&2;}
2778
   { (exit 1); exit 1; }; }
2779
fi
2780
 
2781
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2782
fi
2783
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2784
echo "${ECHO_T}$ac_cv_objext" >&6; }
2785
OBJEXT=$ac_cv_objext
2786
ac_objext=$OBJEXT
2787
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2788
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2789
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2790
  echo $ECHO_N "(cached) $ECHO_C" >&6
2791
else
2792
  cat >conftest.$ac_ext <<_ACEOF
2793
/* confdefs.h.  */
2794
_ACEOF
2795
cat confdefs.h >>conftest.$ac_ext
2796
cat >>conftest.$ac_ext <<_ACEOF
2797
/* end confdefs.h.  */
2798
 
2799
int
2800
main ()
2801
{
2802
#ifndef __GNUC__
2803
       choke me
2804
#endif
2805
 
2806
  ;
2807
  return 0;
2808
}
2809
_ACEOF
2810
rm -f conftest.$ac_objext
2811
if { (ac_try="$ac_compile"
2812
case "(($ac_try" in
2813
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814
  *) ac_try_echo=$ac_try;;
2815
esac
2816
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817
  (eval "$ac_compile") 2>conftest.er1
2818
  ac_status=$?
2819
  grep -v '^ *+' conftest.er1 >conftest.err
2820
  rm -f conftest.er1
2821
  cat conftest.err >&5
2822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823
  (exit $ac_status); } && {
2824
         test -z "$ac_c_werror_flag" ||
2825
         test ! -s conftest.err
2826
       } && test -s conftest.$ac_objext; then
2827
  ac_compiler_gnu=yes
2828
else
2829
  echo "$as_me: failed program was:" >&5
2830
sed 's/^/| /' conftest.$ac_ext >&5
2831
 
2832
        ac_compiler_gnu=no
2833
fi
2834
 
2835
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2837
 
2838
fi
2839
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2840
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2841
GCC=`test $ac_compiler_gnu = yes && echo yes`
2842
ac_test_CFLAGS=${CFLAGS+set}
2843
ac_save_CFLAGS=$CFLAGS
2844
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2845
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2846
if test "${ac_cv_prog_cc_g+set}" = set; then
2847
  echo $ECHO_N "(cached) $ECHO_C" >&6
2848
else
2849
  ac_save_c_werror_flag=$ac_c_werror_flag
2850
   ac_c_werror_flag=yes
2851
   ac_cv_prog_cc_g=no
2852
   CFLAGS="-g"
2853
   cat >conftest.$ac_ext <<_ACEOF
2854
/* confdefs.h.  */
2855
_ACEOF
2856
cat confdefs.h >>conftest.$ac_ext
2857
cat >>conftest.$ac_ext <<_ACEOF
2858
/* end confdefs.h.  */
2859
 
2860
int
2861
main ()
2862
{
2863
 
2864
  ;
2865
  return 0;
2866
}
2867
_ACEOF
2868
rm -f conftest.$ac_objext
2869
if { (ac_try="$ac_compile"
2870
case "(($ac_try" in
2871
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872
  *) ac_try_echo=$ac_try;;
2873
esac
2874
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875
  (eval "$ac_compile") 2>conftest.er1
2876
  ac_status=$?
2877
  grep -v '^ *+' conftest.er1 >conftest.err
2878
  rm -f conftest.er1
2879
  cat conftest.err >&5
2880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881
  (exit $ac_status); } && {
2882
         test -z "$ac_c_werror_flag" ||
2883
         test ! -s conftest.err
2884
       } && test -s conftest.$ac_objext; then
2885
  ac_cv_prog_cc_g=yes
2886
else
2887
  echo "$as_me: failed program was:" >&5
2888
sed 's/^/| /' conftest.$ac_ext >&5
2889
 
2890
        CFLAGS=""
2891
      cat >conftest.$ac_ext <<_ACEOF
2892
/* confdefs.h.  */
2893
_ACEOF
2894
cat confdefs.h >>conftest.$ac_ext
2895
cat >>conftest.$ac_ext <<_ACEOF
2896
/* end confdefs.h.  */
2897
 
2898
int
2899
main ()
2900
{
2901
 
2902
  ;
2903
  return 0;
2904
}
2905
_ACEOF
2906
rm -f conftest.$ac_objext
2907
if { (ac_try="$ac_compile"
2908
case "(($ac_try" in
2909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910
  *) ac_try_echo=$ac_try;;
2911
esac
2912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913
  (eval "$ac_compile") 2>conftest.er1
2914
  ac_status=$?
2915
  grep -v '^ *+' conftest.er1 >conftest.err
2916
  rm -f conftest.er1
2917
  cat conftest.err >&5
2918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919
  (exit $ac_status); } && {
2920
         test -z "$ac_c_werror_flag" ||
2921
         test ! -s conftest.err
2922
       } && test -s conftest.$ac_objext; then
2923
  :
2924
else
2925
  echo "$as_me: failed program was:" >&5
2926
sed 's/^/| /' conftest.$ac_ext >&5
2927
 
2928
        ac_c_werror_flag=$ac_save_c_werror_flag
2929
         CFLAGS="-g"
2930
         cat >conftest.$ac_ext <<_ACEOF
2931
/* confdefs.h.  */
2932
_ACEOF
2933
cat confdefs.h >>conftest.$ac_ext
2934
cat >>conftest.$ac_ext <<_ACEOF
2935
/* end confdefs.h.  */
2936
 
2937
int
2938
main ()
2939
{
2940
 
2941
  ;
2942
  return 0;
2943
}
2944
_ACEOF
2945
rm -f conftest.$ac_objext
2946
if { (ac_try="$ac_compile"
2947
case "(($ac_try" in
2948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949
  *) ac_try_echo=$ac_try;;
2950
esac
2951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952
  (eval "$ac_compile") 2>conftest.er1
2953
  ac_status=$?
2954
  grep -v '^ *+' conftest.er1 >conftest.err
2955
  rm -f conftest.er1
2956
  cat conftest.err >&5
2957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958
  (exit $ac_status); } && {
2959
         test -z "$ac_c_werror_flag" ||
2960
         test ! -s conftest.err
2961
       } && test -s conftest.$ac_objext; then
2962
  ac_cv_prog_cc_g=yes
2963
else
2964
  echo "$as_me: failed program was:" >&5
2965
sed 's/^/| /' conftest.$ac_ext >&5
2966
 
2967
 
2968
fi
2969
 
2970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971
fi
2972
 
2973
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974
fi
2975
 
2976
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977
   ac_c_werror_flag=$ac_save_c_werror_flag
2978
fi
2979
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2980
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2981
if test "$ac_test_CFLAGS" = set; then
2982
  CFLAGS=$ac_save_CFLAGS
2983
elif test $ac_cv_prog_cc_g = yes; then
2984
  if test "$GCC" = yes; then
2985
    CFLAGS="-g -O2"
2986
  else
2987
    CFLAGS="-g"
2988
  fi
2989
else
2990
  if test "$GCC" = yes; then
2991
    CFLAGS="-O2"
2992
  else
2993
    CFLAGS=
2994
  fi
2995
fi
2996
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2997
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2998
if test "${ac_cv_prog_cc_c89+set}" = set; then
2999
  echo $ECHO_N "(cached) $ECHO_C" >&6
3000
else
3001
  ac_cv_prog_cc_c89=no
3002
ac_save_CC=$CC
3003
cat >conftest.$ac_ext <<_ACEOF
3004
/* confdefs.h.  */
3005
_ACEOF
3006
cat confdefs.h >>conftest.$ac_ext
3007
cat >>conftest.$ac_ext <<_ACEOF
3008
/* end confdefs.h.  */
3009
#include 
3010
#include 
3011
#include 
3012
#include 
3013
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3014
struct buf { int x; };
3015
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3016
static char *e (p, i)
3017
     char **p;
3018
     int i;
3019
{
3020
  return p[i];
3021
}
3022
static char *f (char * (*g) (char **, int), char **p, ...)
3023
{
3024
  char *s;
3025
  va_list v;
3026
  va_start (v,p);
3027
  s = g (p, va_arg (v,int));
3028
  va_end (v);
3029
  return s;
3030
}
3031
 
3032
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3033
   function prototypes and stuff, but not '\xHH' hex character constants.
3034
   These don't provoke an error unfortunately, instead are silently treated
3035
   as 'x'.  The following induces an error, until -std is added to get
3036
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3037
   array size at least.  It's necessary to write '\x00'==0 to get something
3038
   that's true only with -std.  */
3039
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3040
 
3041
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3042
   inside strings and character constants.  */
3043
#define FOO(x) 'x'
3044
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3045
 
3046
int test (int i, double x);
3047
struct s1 {int (*f) (int a);};
3048
struct s2 {int (*f) (double a);};
3049
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3050
int argc;
3051
char **argv;
3052
int
3053
main ()
3054
{
3055
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3056
  ;
3057
  return 0;
3058
}
3059
_ACEOF
3060
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3061
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3062
do
3063
  CC="$ac_save_CC $ac_arg"
3064
  rm -f conftest.$ac_objext
3065
if { (ac_try="$ac_compile"
3066
case "(($ac_try" in
3067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068
  *) ac_try_echo=$ac_try;;
3069
esac
3070
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071
  (eval "$ac_compile") 2>conftest.er1
3072
  ac_status=$?
3073
  grep -v '^ *+' conftest.er1 >conftest.err
3074
  rm -f conftest.er1
3075
  cat conftest.err >&5
3076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077
  (exit $ac_status); } && {
3078
         test -z "$ac_c_werror_flag" ||
3079
         test ! -s conftest.err
3080
       } && test -s conftest.$ac_objext; then
3081
  ac_cv_prog_cc_c89=$ac_arg
3082
else
3083
  echo "$as_me: failed program was:" >&5
3084
sed 's/^/| /' conftest.$ac_ext >&5
3085
 
3086
 
3087
fi
3088
 
3089
rm -f core conftest.err conftest.$ac_objext
3090
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3091
done
3092
rm -f conftest.$ac_ext
3093
CC=$ac_save_CC
3094
 
3095
fi
3096
# AC_CACHE_VAL
3097
case "x$ac_cv_prog_cc_c89" in
3098
  x)
3099
    { echo "$as_me:$LINENO: result: none needed" >&5
3100
echo "${ECHO_T}none needed" >&6; } ;;
3101
  xno)
3102
    { echo "$as_me:$LINENO: result: unsupported" >&5
3103
echo "${ECHO_T}unsupported" >&6; } ;;
3104
  *)
3105
    CC="$CC $ac_cv_prog_cc_c89"
3106
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3107
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3108
esac
3109
 
3110
 
3111
ac_ext=c
3112
ac_cpp='$CPP $CPPFLAGS'
3113
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116
 
3117
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3118
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3119
if test "${lt_cv_path_SED+set}" = set; then
3120
  echo $ECHO_N "(cached) $ECHO_C" >&6
3121
else
3122
  # Loop through the user's path and test for sed and gsed.
3123
# Then use that list of sed's as ones to test for truncation.
3124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125
for as_dir in $PATH
3126
do
3127
  IFS=$as_save_IFS
3128
  test -z "$as_dir" && as_dir=.
3129
  for lt_ac_prog in sed gsed; do
3130
    for ac_exec_ext in '' $ac_executable_extensions; do
3131
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3132
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3133
      fi
3134
    done
3135
  done
3136
done
3137
IFS=$as_save_IFS
3138
lt_ac_max=0
3139
lt_ac_count=0
3140
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3141
# along with /bin/sed that truncates output.
3142
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3143
  test ! -f $lt_ac_sed && continue
3144
  cat /dev/null > conftest.in
3145
  lt_ac_count=0
3146
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3147
  # Check for GNU sed and select it if it is found.
3148
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3149
    lt_cv_path_SED=$lt_ac_sed
3150
    break
3151
  fi
3152
  while true; do
3153
    cat conftest.in conftest.in >conftest.tmp
3154
    mv conftest.tmp conftest.in
3155
    cp conftest.in conftest.nl
3156
    echo >>conftest.nl
3157
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3158
    cmp -s conftest.out conftest.nl || break
3159
    # 10000 chars as input seems more than enough
3160
    test $lt_ac_count -gt 10 && break
3161
    lt_ac_count=`expr $lt_ac_count + 1`
3162
    if test $lt_ac_count -gt $lt_ac_max; then
3163
      lt_ac_max=$lt_ac_count
3164
      lt_cv_path_SED=$lt_ac_sed
3165
    fi
3166
  done
3167
done
3168
 
3169
fi
3170
 
3171
SED=$lt_cv_path_SED
3172
 
3173
{ echo "$as_me:$LINENO: result: $SED" >&5
3174
echo "${ECHO_T}$SED" >&6; }
3175
 
3176
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3177
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3178
if test "${ac_cv_path_GREP+set}" = set; then
3179
  echo $ECHO_N "(cached) $ECHO_C" >&6
3180
else
3181
  # Extract the first word of "grep ggrep" to use in msg output
3182
if test -z "$GREP"; then
3183
set dummy grep ggrep; ac_prog_name=$2
3184
if test "${ac_cv_path_GREP+set}" = set; then
3185
  echo $ECHO_N "(cached) $ECHO_C" >&6
3186
else
3187
  ac_path_GREP_found=false
3188
# Loop through the user's path and test for each of PROGNAME-LIST
3189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3191
do
3192
  IFS=$as_save_IFS
3193
  test -z "$as_dir" && as_dir=.
3194
  for ac_prog in grep ggrep; do
3195
  for ac_exec_ext in '' $ac_executable_extensions; do
3196
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3197
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3198
    # Check for GNU ac_path_GREP and select it if it is found.
3199
  # Check for GNU $ac_path_GREP
3200
case `"$ac_path_GREP" --version 2>&1` in
3201
*GNU*)
3202
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3203
*)
3204
  ac_count=0
3205
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3206
  while :
3207
  do
3208
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3209
    mv "conftest.tmp" "conftest.in"
3210
    cp "conftest.in" "conftest.nl"
3211
    echo 'GREP' >> "conftest.nl"
3212
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3213
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3214
    ac_count=`expr $ac_count + 1`
3215
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3216
      # Best one so far, save it but keep looking for a better one
3217
      ac_cv_path_GREP="$ac_path_GREP"
3218
      ac_path_GREP_max=$ac_count
3219
    fi
3220
    # 10*(2^10) chars as input seems more than enough
3221
    test $ac_count -gt 10 && break
3222
  done
3223
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3224
esac
3225
 
3226
 
3227
    $ac_path_GREP_found && break 3
3228
  done
3229
done
3230
 
3231
done
3232
IFS=$as_save_IFS
3233
 
3234
 
3235
fi
3236
 
3237
GREP="$ac_cv_path_GREP"
3238
if test -z "$GREP"; then
3239
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3240
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3241
   { (exit 1); exit 1; }; }
3242
fi
3243
 
3244
else
3245
  ac_cv_path_GREP=$GREP
3246
fi
3247
 
3248
 
3249
fi
3250
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3251
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3252
 GREP="$ac_cv_path_GREP"
3253
 
3254
 
3255
{ echo "$as_me:$LINENO: checking for egrep" >&5
3256
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3257
if test "${ac_cv_path_EGREP+set}" = set; then
3258
  echo $ECHO_N "(cached) $ECHO_C" >&6
3259
else
3260
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3261
   then ac_cv_path_EGREP="$GREP -E"
3262
   else
3263
     # Extract the first word of "egrep" to use in msg output
3264
if test -z "$EGREP"; then
3265
set dummy egrep; ac_prog_name=$2
3266
if test "${ac_cv_path_EGREP+set}" = set; then
3267
  echo $ECHO_N "(cached) $ECHO_C" >&6
3268
else
3269
  ac_path_EGREP_found=false
3270
# Loop through the user's path and test for each of PROGNAME-LIST
3271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3273
do
3274
  IFS=$as_save_IFS
3275
  test -z "$as_dir" && as_dir=.
3276
  for ac_prog in egrep; do
3277
  for ac_exec_ext in '' $ac_executable_extensions; do
3278
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3279
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3280
    # Check for GNU ac_path_EGREP and select it if it is found.
3281
  # Check for GNU $ac_path_EGREP
3282
case `"$ac_path_EGREP" --version 2>&1` in
3283
*GNU*)
3284
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3285
*)
3286
  ac_count=0
3287
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3288
  while :
3289
  do
3290
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3291
    mv "conftest.tmp" "conftest.in"
3292
    cp "conftest.in" "conftest.nl"
3293
    echo 'EGREP' >> "conftest.nl"
3294
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3295
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3296
    ac_count=`expr $ac_count + 1`
3297
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3298
      # Best one so far, save it but keep looking for a better one
3299
      ac_cv_path_EGREP="$ac_path_EGREP"
3300
      ac_path_EGREP_max=$ac_count
3301
    fi
3302
    # 10*(2^10) chars as input seems more than enough
3303
    test $ac_count -gt 10 && break
3304
  done
3305
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3306
esac
3307
 
3308
 
3309
    $ac_path_EGREP_found && break 3
3310
  done
3311
done
3312
 
3313
done
3314
IFS=$as_save_IFS
3315
 
3316
 
3317
fi
3318
 
3319
EGREP="$ac_cv_path_EGREP"
3320
if test -z "$EGREP"; then
3321
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3322
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3323
   { (exit 1); exit 1; }; }
3324
fi
3325
 
3326
else
3327
  ac_cv_path_EGREP=$EGREP
3328
fi
3329
 
3330
 
3331
   fi
3332
fi
3333
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3334
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3335
 EGREP="$ac_cv_path_EGREP"
3336
 
3337
 
3338
 
3339
# Check whether --with-gnu-ld was given.
3340
if test "${with_gnu_ld+set}" = set; then
3341
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3342
else
3343
  with_gnu_ld=no
3344
fi
3345
 
3346
ac_prog=ld
3347
if test "$GCC" = yes; then
3348
  # Check if gcc -print-prog-name=ld gives a path.
3349
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3350
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3351
  case $host in
3352
  *-*-mingw*)
3353
    # gcc leaves a trailing carriage return which upsets mingw
3354
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3355
  *)
3356
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3357
  esac
3358
  case $ac_prog in
3359
    # Accept absolute paths.
3360
    [\\/]* | ?:[\\/]*)
3361
      re_direlt='/[^/][^/]*/\.\./'
3362
      # Canonicalize the pathname of ld
3363
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3364
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3365
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3366
      done
3367
      test -z "$LD" && LD="$ac_prog"
3368
      ;;
3369
  "")
3370
    # If it fails, then pretend we aren't using GCC.
3371
    ac_prog=ld
3372
    ;;
3373
  *)
3374
    # If it is relative, then search for the first ld in PATH.
3375
    with_gnu_ld=unknown
3376
    ;;
3377
  esac
3378
elif test "$with_gnu_ld" = yes; then
3379
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3380
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3381
else
3382
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3383
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3384
fi
3385
if test "${lt_cv_path_LD+set}" = set; then
3386
  echo $ECHO_N "(cached) $ECHO_C" >&6
3387
else
3388
  if test -z "$LD"; then
3389
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3390
  for ac_dir in $PATH; do
3391
    IFS="$lt_save_ifs"
3392
    test -z "$ac_dir" && ac_dir=.
3393
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3394
      lt_cv_path_LD="$ac_dir/$ac_prog"
3395
      # Check to see if the program is GNU ld.  I'd rather use --version,
3396
      # but apparently some variants of GNU ld only accept -v.
3397
      # Break only if it was the GNU/non-GNU ld that we prefer.
3398
      case `"$lt_cv_path_LD" -v 2>&1 
3399
      *GNU* | *'with BFD'*)
3400
        test "$with_gnu_ld" != no && break
3401
        ;;
3402
      *)
3403
        test "$with_gnu_ld" != yes && break
3404
        ;;
3405
      esac
3406
    fi
3407
  done
3408
  IFS="$lt_save_ifs"
3409
else
3410
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3411
fi
3412
fi
3413
 
3414
LD="$lt_cv_path_LD"
3415
if test -n "$LD"; then
3416
  { echo "$as_me:$LINENO: result: $LD" >&5
3417
echo "${ECHO_T}$LD" >&6; }
3418
else
3419
  { echo "$as_me:$LINENO: result: no" >&5
3420
echo "${ECHO_T}no" >&6; }
3421
fi
3422
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3423
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3424
   { (exit 1); exit 1; }; }
3425
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3426
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3427
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3428
  echo $ECHO_N "(cached) $ECHO_C" >&6
3429
else
3430
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3431
case `$LD -v 2>&1 
3432
*GNU* | *'with BFD'*)
3433
  lt_cv_prog_gnu_ld=yes
3434
  ;;
3435
*)
3436
  lt_cv_prog_gnu_ld=no
3437
  ;;
3438
esac
3439
fi
3440
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3441
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3442
with_gnu_ld=$lt_cv_prog_gnu_ld
3443
 
3444
 
3445
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3446
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3447
if test "${lt_cv_ld_reload_flag+set}" = set; then
3448
  echo $ECHO_N "(cached) $ECHO_C" >&6
3449
else
3450
  lt_cv_ld_reload_flag='-r'
3451
fi
3452
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3453
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3454
reload_flag=$lt_cv_ld_reload_flag
3455
case $reload_flag in
3456
"" | " "*) ;;
3457
*) reload_flag=" $reload_flag" ;;
3458
esac
3459
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3460
case $host_os in
3461
  darwin*)
3462
    if test "$GCC" = yes; then
3463
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3464
    else
3465
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3466
    fi
3467
    ;;
3468
esac
3469
 
3470
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3471
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3472
if test "${lt_cv_path_NM+set}" = set; then
3473
  echo $ECHO_N "(cached) $ECHO_C" >&6
3474
else
3475
  if test -n "$NM"; then
3476
  # Let the user override the test.
3477
  lt_cv_path_NM="$NM"
3478
else
3479
  lt_nm_to_check="${ac_tool_prefix}nm"
3480
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3481
    lt_nm_to_check="$lt_nm_to_check nm"
3482
  fi
3483
  for lt_tmp_nm in $lt_nm_to_check; do
3484
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3485
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3486
      IFS="$lt_save_ifs"
3487
      test -z "$ac_dir" && ac_dir=.
3488
      tmp_nm="$ac_dir/$lt_tmp_nm"
3489
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3490
        # Check to see if the nm accepts a BSD-compat flag.
3491
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3492
        #   nm: unknown option "B" ignored
3493
        # Tru64's nm complains that /dev/null is an invalid object file
3494
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3495
        */dev/null* | *'Invalid file or object type'*)
3496
          lt_cv_path_NM="$tmp_nm -B"
3497
          break
3498
          ;;
3499
        *)
3500
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3501
          */dev/null*)
3502
            lt_cv_path_NM="$tmp_nm -p"
3503
            break
3504
            ;;
3505
          *)
3506
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3507
            continue # so that we can try to find one that supports BSD flags
3508
            ;;
3509
          esac
3510
          ;;
3511
        esac
3512
      fi
3513
    done
3514
    IFS="$lt_save_ifs"
3515
  done
3516
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3517
fi
3518
fi
3519
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3520
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3521
NM="$lt_cv_path_NM"
3522
 
3523
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3524
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3525
LN_S=$as_ln_s
3526
if test "$LN_S" = "ln -s"; then
3527
  { echo "$as_me:$LINENO: result: yes" >&5
3528
echo "${ECHO_T}yes" >&6; }
3529
else
3530
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3531
echo "${ECHO_T}no, using $LN_S" >&6; }
3532
fi
3533
 
3534
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3535
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3536
if test "${lt_cv_deplibs_check_method+set}" = set; then
3537
  echo $ECHO_N "(cached) $ECHO_C" >&6
3538
else
3539
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3540
lt_cv_file_magic_test_file=
3541
lt_cv_deplibs_check_method='unknown'
3542
# Need to set the preceding variable on all platforms that support
3543
# interlibrary dependencies.
3544
# 'none' -- dependencies not supported.
3545
# `unknown' -- same as none, but documents that we really don't know.
3546
# 'pass_all' -- all dependencies passed with no checks.
3547
# 'test_compile' -- check by making test program.
3548
# 'file_magic [[regex]]' -- check by looking for files in library path
3549
# which responds to the $file_magic_cmd with a given extended regex.
3550
# If you have `file' or equivalent on your system and you're not sure
3551
# whether `pass_all' will *always* work, you probably want this one.
3552
 
3553
case $host_os in
3554
aix4* | aix5*)
3555
  lt_cv_deplibs_check_method=pass_all
3556
  ;;
3557
 
3558
beos*)
3559
  lt_cv_deplibs_check_method=pass_all
3560
  ;;
3561
 
3562
bsdi[45]*)
3563
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3564
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3565
  lt_cv_file_magic_test_file=/shlib/libc.so
3566
  ;;
3567
 
3568
cygwin*)
3569
  # func_win32_libid is a shell function defined in ltmain.sh
3570
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3571
  lt_cv_file_magic_cmd='func_win32_libid'
3572
  ;;
3573
 
3574
mingw* | pw32*)
3575
  # Base MSYS/MinGW do not provide the 'file' command needed by
3576
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3577
  # unless we find 'file', for example because we are cross-compiling.
3578
  if ( file / ) >/dev/null 2>&1; then
3579
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3580
    lt_cv_file_magic_cmd='func_win32_libid'
3581
  else
3582
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3583
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3584
  fi
3585
  ;;
3586
 
3587
darwin* | rhapsody*)
3588
  lt_cv_deplibs_check_method=pass_all
3589
  ;;
3590
 
3591
freebsd* | dragonfly*)
3592
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3593
    case $host_cpu in
3594
    i*86 )
3595
      # Not sure whether the presence of OpenBSD here was a mistake.
3596
      # Let's accept both of them until this is cleared up.
3597
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3598
      lt_cv_file_magic_cmd=/usr/bin/file
3599
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3600
      ;;
3601
    esac
3602
  else
3603
    lt_cv_deplibs_check_method=pass_all
3604
  fi
3605
  ;;
3606
 
3607
gnu*)
3608
  lt_cv_deplibs_check_method=pass_all
3609
  ;;
3610
 
3611
hpux10.20* | hpux11*)
3612
  lt_cv_file_magic_cmd=/usr/bin/file
3613
  case $host_cpu in
3614
  ia64*)
3615
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3616
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3617
    ;;
3618
  hppa*64*)
3619
    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]'
3620
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3621
    ;;
3622
  *)
3623
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3624
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3625
    ;;
3626
  esac
3627
  ;;
3628
 
3629
interix[3-9]*)
3630
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3631
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3632
  ;;
3633
 
3634
irix5* | irix6* | nonstopux*)
3635
  case $LD in
3636
  *-32|*"-32 ") libmagic=32-bit;;
3637
  *-n32|*"-n32 ") libmagic=N32;;
3638
  *-64|*"-64 ") libmagic=64-bit;;
3639
  *) libmagic=never-match;;
3640
  esac
3641
  lt_cv_deplibs_check_method=pass_all
3642
  ;;
3643
 
3644
# This must be Linux ELF.
3645
linux* | k*bsd*-gnu)
3646
  lt_cv_deplibs_check_method=pass_all
3647
  ;;
3648
 
3649
netbsd*)
3650
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3651
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3652
  else
3653
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3654
  fi
3655
  ;;
3656
 
3657
newos6*)
3658
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3659
  lt_cv_file_magic_cmd=/usr/bin/file
3660
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3661
  ;;
3662
 
3663
nto-qnx*)
3664
  lt_cv_deplibs_check_method=unknown
3665
  ;;
3666
 
3667
openbsd*)
3668
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3669
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3670
  else
3671
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3672
  fi
3673
  ;;
3674
 
3675
osf3* | osf4* | osf5*)
3676
  lt_cv_deplibs_check_method=pass_all
3677
  ;;
3678
 
3679
rdos*)
3680
  lt_cv_deplibs_check_method=pass_all
3681
  ;;
3682
 
3683
solaris*)
3684
  lt_cv_deplibs_check_method=pass_all
3685
  ;;
3686
 
3687
sysv4 | sysv4.3*)
3688
  case $host_vendor in
3689
  motorola)
3690
    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]'
3691
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3692
    ;;
3693
  ncr)
3694
    lt_cv_deplibs_check_method=pass_all
3695
    ;;
3696
  sequent)
3697
    lt_cv_file_magic_cmd='/bin/file'
3698
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3699
    ;;
3700
  sni)
3701
    lt_cv_file_magic_cmd='/bin/file'
3702
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3703
    lt_cv_file_magic_test_file=/lib/libc.so
3704
    ;;
3705
  siemens)
3706
    lt_cv_deplibs_check_method=pass_all
3707
    ;;
3708
  pc)
3709
    lt_cv_deplibs_check_method=pass_all
3710
    ;;
3711
  esac
3712
  ;;
3713
 
3714
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3715
  lt_cv_deplibs_check_method=pass_all
3716
  ;;
3717
esac
3718
 
3719
fi
3720
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3721
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3722
file_magic_cmd=$lt_cv_file_magic_cmd
3723
deplibs_check_method=$lt_cv_deplibs_check_method
3724
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3725
 
3726
 
3727
 
3728
 
3729
# If no C compiler was specified, use CC.
3730
LTCC=${LTCC-"$CC"}
3731
 
3732
# If no C compiler flags were specified, use CFLAGS.
3733
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3734
 
3735
# Allow CC to be a program name with arguments.
3736
compiler=$CC
3737
 
3738
 
3739
# Check whether --enable-libtool-lock was given.
3740
if test "${enable_libtool_lock+set}" = set; then
3741
  enableval=$enable_libtool_lock;
3742
fi
3743
 
3744
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3745
 
3746
# Some flags need to be propagated to the compiler or linker for good
3747
# libtool support.
3748
case $host in
3749
ia64-*-hpux*)
3750
  # Find out which ABI we are using.
3751
  echo 'int i;' > conftest.$ac_ext
3752
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753
  (eval $ac_compile) 2>&5
3754
  ac_status=$?
3755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756
  (exit $ac_status); }; then
3757
    case `/usr/bin/file conftest.$ac_objext` in
3758
    *ELF-32*)
3759
      HPUX_IA64_MODE="32"
3760
      ;;
3761
    *ELF-64*)
3762
      HPUX_IA64_MODE="64"
3763
      ;;
3764
    esac
3765
  fi
3766
  rm -rf conftest*
3767
  ;;
3768
*-*-irix6*)
3769
  # Find out which ABI we are using.
3770
  echo '#line __oline__ "configure"' > conftest.$ac_ext
3771
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772
  (eval $ac_compile) 2>&5
3773
  ac_status=$?
3774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775
  (exit $ac_status); }; then
3776
   if test "$lt_cv_prog_gnu_ld" = yes; then
3777
    case `/usr/bin/file conftest.$ac_objext` in
3778
    *32-bit*)
3779
      LD="${LD-ld} -melf32bsmip"
3780
      ;;
3781
    *N32*)
3782
      LD="${LD-ld} -melf32bmipn32"
3783
      ;;
3784
    *64-bit*)
3785
      LD="${LD-ld} -melf64bmip"
3786
      ;;
3787
    esac
3788
   else
3789
    case `/usr/bin/file conftest.$ac_objext` in
3790
    *32-bit*)
3791
      LD="${LD-ld} -32"
3792
      ;;
3793
    *N32*)
3794
      LD="${LD-ld} -n32"
3795
      ;;
3796
    *64-bit*)
3797
      LD="${LD-ld} -64"
3798
      ;;
3799
    esac
3800
   fi
3801
  fi
3802
  rm -rf conftest*
3803
  ;;
3804
 
3805
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3806
s390*-*linux*|sparc*-*linux*)
3807
  # Find out which ABI we are using.
3808
  echo 'int i;' > conftest.$ac_ext
3809
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810
  (eval $ac_compile) 2>&5
3811
  ac_status=$?
3812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813
  (exit $ac_status); }; then
3814
    case `/usr/bin/file conftest.o` in
3815
    *32-bit*)
3816
      case $host in
3817
        x86_64-*kfreebsd*-gnu)
3818
          LD="${LD-ld} -m elf_i386_fbsd"
3819
          ;;
3820
        x86_64-*linux*)
3821
          LD="${LD-ld} -m elf_i386"
3822
          ;;
3823
        ppc64-*linux*|powerpc64-*linux*)
3824
          LD="${LD-ld} -m elf32ppclinux"
3825
          ;;
3826
        s390x-*linux*)
3827
          LD="${LD-ld} -m elf_s390"
3828
          ;;
3829
        sparc64-*linux*)
3830
          LD="${LD-ld} -m elf32_sparc"
3831
          ;;
3832
      esac
3833
      ;;
3834
    *64-bit*)
3835
      case $host in
3836
        x86_64-*kfreebsd*-gnu)
3837
          LD="${LD-ld} -m elf_x86_64_fbsd"
3838
          ;;
3839
        x86_64-*linux*)
3840
          LD="${LD-ld} -m elf_x86_64"
3841
          ;;
3842
        ppc*-*linux*|powerpc*-*linux*)
3843
          LD="${LD-ld} -m elf64ppc"
3844
          ;;
3845
        s390*-*linux*)
3846
          LD="${LD-ld} -m elf64_s390"
3847
          ;;
3848
        sparc*-*linux*)
3849
          LD="${LD-ld} -m elf64_sparc"
3850
          ;;
3851
      esac
3852
      ;;
3853
    esac
3854
  fi
3855
  rm -rf conftest*
3856
  ;;
3857
 
3858
*-*-sco3.2v5*)
3859
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3860
  SAVE_CFLAGS="$CFLAGS"
3861
  CFLAGS="$CFLAGS -belf"
3862
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3863
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3864
if test "${lt_cv_cc_needs_belf+set}" = set; then
3865
  echo $ECHO_N "(cached) $ECHO_C" >&6
3866
else
3867
  ac_ext=c
3868
ac_cpp='$CPP $CPPFLAGS'
3869
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872
 
3873
     cat >conftest.$ac_ext <<_ACEOF
3874
/* confdefs.h.  */
3875
_ACEOF
3876
cat confdefs.h >>conftest.$ac_ext
3877
cat >>conftest.$ac_ext <<_ACEOF
3878
/* end confdefs.h.  */
3879
 
3880
int
3881
main ()
3882
{
3883
 
3884
  ;
3885
  return 0;
3886
}
3887
_ACEOF
3888
rm -f conftest.$ac_objext conftest$ac_exeext
3889
if { (ac_try="$ac_link"
3890
case "(($ac_try" in
3891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892
  *) ac_try_echo=$ac_try;;
3893
esac
3894
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895
  (eval "$ac_link") 2>conftest.er1
3896
  ac_status=$?
3897
  grep -v '^ *+' conftest.er1 >conftest.err
3898
  rm -f conftest.er1
3899
  cat conftest.err >&5
3900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901
  (exit $ac_status); } && {
3902
         test -z "$ac_c_werror_flag" ||
3903
         test ! -s conftest.err
3904
       } && test -s conftest$ac_exeext &&
3905
       $as_test_x conftest$ac_exeext; then
3906
  lt_cv_cc_needs_belf=yes
3907
else
3908
  echo "$as_me: failed program was:" >&5
3909
sed 's/^/| /' conftest.$ac_ext >&5
3910
 
3911
        lt_cv_cc_needs_belf=no
3912
fi
3913
 
3914
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3915
      conftest$ac_exeext conftest.$ac_ext
3916
     ac_ext=c
3917
ac_cpp='$CPP $CPPFLAGS'
3918
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
 
3922
fi
3923
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3924
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3925
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3926
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3927
    CFLAGS="$SAVE_CFLAGS"
3928
  fi
3929
  ;;
3930
sparc*-*solaris*)
3931
  # Find out which ABI we are using.
3932
  echo 'int i;' > conftest.$ac_ext
3933
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934
  (eval $ac_compile) 2>&5
3935
  ac_status=$?
3936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937
  (exit $ac_status); }; then
3938
    case `/usr/bin/file conftest.o` in
3939
    *64-bit*)
3940
      case $lt_cv_prog_gnu_ld in
3941
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3942
      *)    LD="${LD-ld} -64" ;;
3943
      esac
3944
      ;;
3945
    esac
3946
  fi
3947
  rm -rf conftest*
3948
  ;;
3949
 
3950
 
3951
esac
3952
 
3953
need_locks="$enable_libtool_lock"
3954
 
3955
 
3956
ac_ext=c
3957
ac_cpp='$CPP $CPPFLAGS'
3958
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3962
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3963
# On Suns, sometimes $CPP names a directory.
3964
if test -n "$CPP" && test -d "$CPP"; then
3965
  CPP=
3966
fi
3967
if test -z "$CPP"; then
3968
  if test "${ac_cv_prog_CPP+set}" = set; then
3969
  echo $ECHO_N "(cached) $ECHO_C" >&6
3970
else
3971
      # Double quotes because CPP needs to be expanded
3972
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3973
    do
3974
      ac_preproc_ok=false
3975
for ac_c_preproc_warn_flag in '' yes
3976
do
3977
  # Use a header file that comes with gcc, so configuring glibc
3978
  # with a fresh cross-compiler works.
3979
  # Prefer  to  if __STDC__ is defined, since
3980
  #  exists even on freestanding compilers.
3981
  # On the NeXT, cc -E runs the code through the compiler's parser,
3982
  # not just through cpp. "Syntax error" is here to catch this case.
3983
  cat >conftest.$ac_ext <<_ACEOF
3984
/* confdefs.h.  */
3985
_ACEOF
3986
cat confdefs.h >>conftest.$ac_ext
3987
cat >>conftest.$ac_ext <<_ACEOF
3988
/* end confdefs.h.  */
3989
@%:@ifdef __STDC__
3990
@%:@ include 
3991
@%:@else
3992
@%:@ include 
3993
@%:@endif
3994
                     Syntax error
3995
_ACEOF
3996
if { (ac_try="$ac_cpp conftest.$ac_ext"
3997
case "(($ac_try" in
3998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999
  *) ac_try_echo=$ac_try;;
4000
esac
4001
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4003
  ac_status=$?
4004
  grep -v '^ *+' conftest.er1 >conftest.err
4005
  rm -f conftest.er1
4006
  cat conftest.err >&5
4007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008
  (exit $ac_status); } >/dev/null && {
4009
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4010
         test ! -s conftest.err
4011
       }; then
4012
  :
4013
else
4014
  echo "$as_me: failed program was:" >&5
4015
sed 's/^/| /' conftest.$ac_ext >&5
4016
 
4017
  # Broken: fails on valid input.
4018
continue
4019
fi
4020
 
4021
rm -f conftest.err conftest.$ac_ext
4022
 
4023
  # OK, works on sane cases.  Now check whether nonexistent headers
4024
  # can be detected and how.
4025
  cat >conftest.$ac_ext <<_ACEOF
4026
/* confdefs.h.  */
4027
_ACEOF
4028
cat confdefs.h >>conftest.$ac_ext
4029
cat >>conftest.$ac_ext <<_ACEOF
4030
/* end confdefs.h.  */
4031
@%:@include 
4032
_ACEOF
4033
if { (ac_try="$ac_cpp conftest.$ac_ext"
4034
case "(($ac_try" in
4035
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036
  *) ac_try_echo=$ac_try;;
4037
esac
4038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4039
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4040
  ac_status=$?
4041
  grep -v '^ *+' conftest.er1 >conftest.err
4042
  rm -f conftest.er1
4043
  cat conftest.err >&5
4044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045
  (exit $ac_status); } >/dev/null && {
4046
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4047
         test ! -s conftest.err
4048
       }; then
4049
  # Broken: success on invalid input.
4050
continue
4051
else
4052
  echo "$as_me: failed program was:" >&5
4053
sed 's/^/| /' conftest.$ac_ext >&5
4054
 
4055
  # Passes both tests.
4056
ac_preproc_ok=:
4057
break
4058
fi
4059
 
4060
rm -f conftest.err conftest.$ac_ext
4061
 
4062
done
4063
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4064
rm -f conftest.err conftest.$ac_ext
4065
if $ac_preproc_ok; then
4066
  break
4067
fi
4068
 
4069
    done
4070
    ac_cv_prog_CPP=$CPP
4071
 
4072
fi
4073
  CPP=$ac_cv_prog_CPP
4074
else
4075
  ac_cv_prog_CPP=$CPP
4076
fi
4077
{ echo "$as_me:$LINENO: result: $CPP" >&5
4078
echo "${ECHO_T}$CPP" >&6; }
4079
ac_preproc_ok=false
4080
for ac_c_preproc_warn_flag in '' yes
4081
do
4082
  # Use a header file that comes with gcc, so configuring glibc
4083
  # with a fresh cross-compiler works.
4084
  # Prefer  to  if __STDC__ is defined, since
4085
  #  exists even on freestanding compilers.
4086
  # On the NeXT, cc -E runs the code through the compiler's parser,
4087
  # not just through cpp. "Syntax error" is here to catch this case.
4088
  cat >conftest.$ac_ext <<_ACEOF
4089
/* confdefs.h.  */
4090
_ACEOF
4091
cat confdefs.h >>conftest.$ac_ext
4092
cat >>conftest.$ac_ext <<_ACEOF
4093
/* end confdefs.h.  */
4094
@%:@ifdef __STDC__
4095
@%:@ include 
4096
@%:@else
4097
@%:@ include 
4098
@%:@endif
4099
                     Syntax error
4100
_ACEOF
4101
if { (ac_try="$ac_cpp conftest.$ac_ext"
4102
case "(($ac_try" in
4103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104
  *) ac_try_echo=$ac_try;;
4105
esac
4106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4108
  ac_status=$?
4109
  grep -v '^ *+' conftest.er1 >conftest.err
4110
  rm -f conftest.er1
4111
  cat conftest.err >&5
4112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113
  (exit $ac_status); } >/dev/null && {
4114
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4115
         test ! -s conftest.err
4116
       }; then
4117
  :
4118
else
4119
  echo "$as_me: failed program was:" >&5
4120
sed 's/^/| /' conftest.$ac_ext >&5
4121
 
4122
  # Broken: fails on valid input.
4123
continue
4124
fi
4125
 
4126
rm -f conftest.err conftest.$ac_ext
4127
 
4128
  # OK, works on sane cases.  Now check whether nonexistent headers
4129
  # can be detected and how.
4130
  cat >conftest.$ac_ext <<_ACEOF
4131
/* confdefs.h.  */
4132
_ACEOF
4133
cat confdefs.h >>conftest.$ac_ext
4134
cat >>conftest.$ac_ext <<_ACEOF
4135
/* end confdefs.h.  */
4136
@%:@include 
4137
_ACEOF
4138
if { (ac_try="$ac_cpp conftest.$ac_ext"
4139
case "(($ac_try" in
4140
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141
  *) ac_try_echo=$ac_try;;
4142
esac
4143
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4145
  ac_status=$?
4146
  grep -v '^ *+' conftest.er1 >conftest.err
4147
  rm -f conftest.er1
4148
  cat conftest.err >&5
4149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150
  (exit $ac_status); } >/dev/null && {
4151
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4152
         test ! -s conftest.err
4153
       }; then
4154
  # Broken: success on invalid input.
4155
continue
4156
else
4157
  echo "$as_me: failed program was:" >&5
4158
sed 's/^/| /' conftest.$ac_ext >&5
4159
 
4160
  # Passes both tests.
4161
ac_preproc_ok=:
4162
break
4163
fi
4164
 
4165
rm -f conftest.err conftest.$ac_ext
4166
 
4167
done
4168
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4169
rm -f conftest.err conftest.$ac_ext
4170
if $ac_preproc_ok; then
4171
  :
4172
else
4173
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4174
See \`config.log' for more details." >&5
4175
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4176
See \`config.log' for more details." >&2;}
4177
   { (exit 1); exit 1; }; }
4178
fi
4179
 
4180
ac_ext=c
4181
ac_cpp='$CPP $CPPFLAGS'
4182
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185
 
4186
 
4187
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4188
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4189
if test "${ac_cv_header_stdc+set}" = set; then
4190
  echo $ECHO_N "(cached) $ECHO_C" >&6
4191
else
4192
  cat >conftest.$ac_ext <<_ACEOF
4193
/* confdefs.h.  */
4194
_ACEOF
4195
cat confdefs.h >>conftest.$ac_ext
4196
cat >>conftest.$ac_ext <<_ACEOF
4197
/* end confdefs.h.  */
4198
#include 
4199
#include 
4200
#include 
4201
#include 
4202
 
4203
int
4204
main ()
4205
{
4206
 
4207
  ;
4208
  return 0;
4209
}
4210
_ACEOF
4211
rm -f conftest.$ac_objext
4212
if { (ac_try="$ac_compile"
4213
case "(($ac_try" in
4214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215
  *) ac_try_echo=$ac_try;;
4216
esac
4217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218
  (eval "$ac_compile") 2>conftest.er1
4219
  ac_status=$?
4220
  grep -v '^ *+' conftest.er1 >conftest.err
4221
  rm -f conftest.er1
4222
  cat conftest.err >&5
4223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224
  (exit $ac_status); } && {
4225
         test -z "$ac_c_werror_flag" ||
4226
         test ! -s conftest.err
4227
       } && test -s conftest.$ac_objext; then
4228
  ac_cv_header_stdc=yes
4229
else
4230
  echo "$as_me: failed program was:" >&5
4231
sed 's/^/| /' conftest.$ac_ext >&5
4232
 
4233
        ac_cv_header_stdc=no
4234
fi
4235
 
4236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237
 
4238
if test $ac_cv_header_stdc = yes; then
4239
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4240
  cat >conftest.$ac_ext <<_ACEOF
4241
/* confdefs.h.  */
4242
_ACEOF
4243
cat confdefs.h >>conftest.$ac_ext
4244
cat >>conftest.$ac_ext <<_ACEOF
4245
/* end confdefs.h.  */
4246
#include 
4247
 
4248
_ACEOF
4249
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250
  $EGREP "memchr" >/dev/null 2>&1; then
4251
  :
4252
else
4253
  ac_cv_header_stdc=no
4254
fi
4255
rm -f conftest*
4256
 
4257
fi
4258
 
4259
if test $ac_cv_header_stdc = yes; then
4260
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4261
  cat >conftest.$ac_ext <<_ACEOF
4262
/* confdefs.h.  */
4263
_ACEOF
4264
cat confdefs.h >>conftest.$ac_ext
4265
cat >>conftest.$ac_ext <<_ACEOF
4266
/* end confdefs.h.  */
4267
#include 
4268
 
4269
_ACEOF
4270
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4271
  $EGREP "free" >/dev/null 2>&1; then
4272
  :
4273
else
4274
  ac_cv_header_stdc=no
4275
fi
4276
rm -f conftest*
4277
 
4278
fi
4279
 
4280
if test $ac_cv_header_stdc = yes; then
4281
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4282
  if test "$cross_compiling" = yes; then
4283
  :
4284
else
4285
  cat >conftest.$ac_ext <<_ACEOF
4286
/* confdefs.h.  */
4287
_ACEOF
4288
cat confdefs.h >>conftest.$ac_ext
4289
cat >>conftest.$ac_ext <<_ACEOF
4290
/* end confdefs.h.  */
4291
#include 
4292
#include 
4293
#if ((' ' & 0x0FF) == 0x020)
4294
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4295
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4296
#else
4297
# define ISLOWER(c) \
4298
                   (('a' <= (c) && (c) <= 'i') \
4299
                     || ('j' <= (c) && (c) <= 'r') \
4300
                     || ('s' <= (c) && (c) <= 'z'))
4301
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4302
#endif
4303
 
4304
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4305
int
4306
main ()
4307
{
4308
  int i;
4309
  for (i = 0; i < 256; i++)
4310
    if (XOR (islower (i), ISLOWER (i))
4311
        || toupper (i) != TOUPPER (i))
4312
      return 2;
4313
  return 0;
4314
}
4315
_ACEOF
4316
rm -f conftest$ac_exeext
4317
if { (ac_try="$ac_link"
4318
case "(($ac_try" in
4319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320
  *) ac_try_echo=$ac_try;;
4321
esac
4322
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323
  (eval "$ac_link") 2>&5
4324
  ac_status=$?
4325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327
  { (case "(($ac_try" in
4328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329
  *) ac_try_echo=$ac_try;;
4330
esac
4331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332
  (eval "$ac_try") 2>&5
4333
  ac_status=$?
4334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335
  (exit $ac_status); }; }; then
4336
  :
4337
else
4338
  echo "$as_me: program exited with status $ac_status" >&5
4339
echo "$as_me: failed program was:" >&5
4340
sed 's/^/| /' conftest.$ac_ext >&5
4341
 
4342
( exit $ac_status )
4343
ac_cv_header_stdc=no
4344
fi
4345
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4346
fi
4347
 
4348
 
4349
fi
4350
fi
4351
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4352
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4353
if test $ac_cv_header_stdc = yes; then
4354
 
4355
cat >>confdefs.h <<\_ACEOF
4356
@%:@define STDC_HEADERS 1
4357
_ACEOF
4358
 
4359
fi
4360
 
4361
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4362
 
4363
 
4364
 
4365
 
4366
 
4367
 
4368
 
4369
 
4370
 
4371
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4372
                  inttypes.h stdint.h unistd.h
4373
do
4374
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4375
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4376
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4377
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4378
  echo $ECHO_N "(cached) $ECHO_C" >&6
4379
else
4380
  cat >conftest.$ac_ext <<_ACEOF
4381
/* confdefs.h.  */
4382
_ACEOF
4383
cat confdefs.h >>conftest.$ac_ext
4384
cat >>conftest.$ac_ext <<_ACEOF
4385
/* end confdefs.h.  */
4386
$ac_includes_default
4387
 
4388
@%:@include <$ac_header>
4389
_ACEOF
4390
rm -f conftest.$ac_objext
4391
if { (ac_try="$ac_compile"
4392
case "(($ac_try" in
4393
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394
  *) ac_try_echo=$ac_try;;
4395
esac
4396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397
  (eval "$ac_compile") 2>conftest.er1
4398
  ac_status=$?
4399
  grep -v '^ *+' conftest.er1 >conftest.err
4400
  rm -f conftest.er1
4401
  cat conftest.err >&5
4402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403
  (exit $ac_status); } && {
4404
         test -z "$ac_c_werror_flag" ||
4405
         test ! -s conftest.err
4406
       } && test -s conftest.$ac_objext; then
4407
  eval "$as_ac_Header=yes"
4408
else
4409
  echo "$as_me: failed program was:" >&5
4410
sed 's/^/| /' conftest.$ac_ext >&5
4411
 
4412
        eval "$as_ac_Header=no"
4413
fi
4414
 
4415
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416
fi
4417
ac_res=`eval echo '${'$as_ac_Header'}'`
4418
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4419
echo "${ECHO_T}$ac_res" >&6; }
4420
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4421
  cat >>confdefs.h <<_ACEOF
4422
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4423
_ACEOF
4424
 
4425
fi
4426
 
4427
done
4428
 
4429
 
4430
 
4431
for ac_header in dlfcn.h
4432
do
4433
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4434
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4435
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4436
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4437
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4438
  echo $ECHO_N "(cached) $ECHO_C" >&6
4439
fi
4440
ac_res=`eval echo '${'$as_ac_Header'}'`
4441
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4442
echo "${ECHO_T}$ac_res" >&6; }
4443
else
4444
  # Is the header compilable?
4445
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4446
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4447
cat >conftest.$ac_ext <<_ACEOF
4448
/* confdefs.h.  */
4449
_ACEOF
4450
cat confdefs.h >>conftest.$ac_ext
4451
cat >>conftest.$ac_ext <<_ACEOF
4452
/* end confdefs.h.  */
4453
$ac_includes_default
4454
@%:@include <$ac_header>
4455
_ACEOF
4456
rm -f conftest.$ac_objext
4457
if { (ac_try="$ac_compile"
4458
case "(($ac_try" in
4459
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460
  *) ac_try_echo=$ac_try;;
4461
esac
4462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463
  (eval "$ac_compile") 2>conftest.er1
4464
  ac_status=$?
4465
  grep -v '^ *+' conftest.er1 >conftest.err
4466
  rm -f conftest.er1
4467
  cat conftest.err >&5
4468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469
  (exit $ac_status); } && {
4470
         test -z "$ac_c_werror_flag" ||
4471
         test ! -s conftest.err
4472
       } && test -s conftest.$ac_objext; then
4473
  ac_header_compiler=yes
4474
else
4475
  echo "$as_me: failed program was:" >&5
4476
sed 's/^/| /' conftest.$ac_ext >&5
4477
 
4478
        ac_header_compiler=no
4479
fi
4480
 
4481
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4483
echo "${ECHO_T}$ac_header_compiler" >&6; }
4484
 
4485
# Is the header present?
4486
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4487
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4488
cat >conftest.$ac_ext <<_ACEOF
4489
/* confdefs.h.  */
4490
_ACEOF
4491
cat confdefs.h >>conftest.$ac_ext
4492
cat >>conftest.$ac_ext <<_ACEOF
4493
/* end confdefs.h.  */
4494
@%:@include <$ac_header>
4495
_ACEOF
4496
if { (ac_try="$ac_cpp conftest.$ac_ext"
4497
case "(($ac_try" in
4498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499
  *) ac_try_echo=$ac_try;;
4500
esac
4501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4503
  ac_status=$?
4504
  grep -v '^ *+' conftest.er1 >conftest.err
4505
  rm -f conftest.er1
4506
  cat conftest.err >&5
4507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508
  (exit $ac_status); } >/dev/null && {
4509
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4510
         test ! -s conftest.err
4511
       }; then
4512
  ac_header_preproc=yes
4513
else
4514
  echo "$as_me: failed program was:" >&5
4515
sed 's/^/| /' conftest.$ac_ext >&5
4516
 
4517
  ac_header_preproc=no
4518
fi
4519
 
4520
rm -f conftest.err conftest.$ac_ext
4521
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4522
echo "${ECHO_T}$ac_header_preproc" >&6; }
4523
 
4524
# So?  What about this header?
4525
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4526
  yes:no: )
4527
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4528
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4529
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4530
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4531
    ac_header_preproc=yes
4532
    ;;
4533
  no:yes:* )
4534
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4535
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4536
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4537
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4538
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4539
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4540
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4541
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4542
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4543
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4544
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4545
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4546
    ( cat <<\_ASBOX
4547
@%:@@%:@ ------------------------------------- @%:@@%:@
4548
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
4549
@%:@@%:@ ------------------------------------- @%:@@%:@
4550
_ASBOX
4551
     ) | sed "s/^/$as_me: WARNING:     /" >&2
4552
    ;;
4553
esac
4554
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4555
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4556
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4557
  echo $ECHO_N "(cached) $ECHO_C" >&6
4558
else
4559
  eval "$as_ac_Header=\$ac_header_preproc"
4560
fi
4561
ac_res=`eval echo '${'$as_ac_Header'}'`
4562
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4563
echo "${ECHO_T}$ac_res" >&6; }
4564
 
4565
fi
4566
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4567
  cat >>confdefs.h <<_ACEOF
4568
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4569
_ACEOF
4570
 
4571
fi
4572
 
4573
done
4574
 
4575
ac_ext=cpp
4576
ac_cpp='$CXXCPP $CPPFLAGS'
4577
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4580
if test -z "$CXX"; then
4581
  if test -n "$CCC"; then
4582
    CXX=$CCC
4583
  else
4584
    if test -n "$ac_tool_prefix"; then
4585
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4586
  do
4587
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4588
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4589
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4590
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4591
if test "${ac_cv_prog_CXX+set}" = set; then
4592
  echo $ECHO_N "(cached) $ECHO_C" >&6
4593
else
4594
  if test -n "$CXX"; then
4595
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4596
else
4597
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598
for as_dir in $PATH
4599
do
4600
  IFS=$as_save_IFS
4601
  test -z "$as_dir" && as_dir=.
4602
  for ac_exec_ext in '' $ac_executable_extensions; do
4603
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4605
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606
    break 2
4607
  fi
4608
done
4609
done
4610
IFS=$as_save_IFS
4611
 
4612
fi
4613
fi
4614
CXX=$ac_cv_prog_CXX
4615
if test -n "$CXX"; then
4616
  { echo "$as_me:$LINENO: result: $CXX" >&5
4617
echo "${ECHO_T}$CXX" >&6; }
4618
else
4619
  { echo "$as_me:$LINENO: result: no" >&5
4620
echo "${ECHO_T}no" >&6; }
4621
fi
4622
 
4623
 
4624
    test -n "$CXX" && break
4625
  done
4626
fi
4627
if test -z "$CXX"; then
4628
  ac_ct_CXX=$CXX
4629
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4630
do
4631
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4632
set dummy $ac_prog; ac_word=$2
4633
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4634
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4635
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4636
  echo $ECHO_N "(cached) $ECHO_C" >&6
4637
else
4638
  if test -n "$ac_ct_CXX"; then
4639
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4640
else
4641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642
for as_dir in $PATH
4643
do
4644
  IFS=$as_save_IFS
4645
  test -z "$as_dir" && as_dir=.
4646
  for ac_exec_ext in '' $ac_executable_extensions; do
4647
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4648
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4649
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650
    break 2
4651
  fi
4652
done
4653
done
4654
IFS=$as_save_IFS
4655
 
4656
fi
4657
fi
4658
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4659
if test -n "$ac_ct_CXX"; then
4660
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4661
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4662
else
4663
  { echo "$as_me:$LINENO: result: no" >&5
4664
echo "${ECHO_T}no" >&6; }
4665
fi
4666
 
4667
 
4668
  test -n "$ac_ct_CXX" && break
4669
done
4670
 
4671
  if test "x$ac_ct_CXX" = x; then
4672
    CXX="g++"
4673
  else
4674
    case $cross_compiling:$ac_tool_warned in
4675
yes:)
4676
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4677
whose name does not start with the host triplet.  If you think this
4678
configuration is useful to you, please write to autoconf@gnu.org." >&5
4679
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4680
whose name does not start with the host triplet.  If you think this
4681
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4682
ac_tool_warned=yes ;;
4683
esac
4684
    CXX=$ac_ct_CXX
4685
  fi
4686
fi
4687
 
4688
  fi
4689
fi
4690
# Provide some information about the compiler.
4691
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4692
ac_compiler=`set X $ac_compile; echo $2`
4693
{ (ac_try="$ac_compiler --version >&5"
4694
case "(($ac_try" in
4695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696
  *) ac_try_echo=$ac_try;;
4697
esac
4698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699
  (eval "$ac_compiler --version >&5") 2>&5
4700
  ac_status=$?
4701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702
  (exit $ac_status); }
4703
{ (ac_try="$ac_compiler -v >&5"
4704
case "(($ac_try" in
4705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706
  *) ac_try_echo=$ac_try;;
4707
esac
4708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4709
  (eval "$ac_compiler -v >&5") 2>&5
4710
  ac_status=$?
4711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712
  (exit $ac_status); }
4713
{ (ac_try="$ac_compiler -V >&5"
4714
case "(($ac_try" in
4715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716
  *) ac_try_echo=$ac_try;;
4717
esac
4718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719
  (eval "$ac_compiler -V >&5") 2>&5
4720
  ac_status=$?
4721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722
  (exit $ac_status); }
4723
 
4724
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4725
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4726
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4727
  echo $ECHO_N "(cached) $ECHO_C" >&6
4728
else
4729
  cat >conftest.$ac_ext <<_ACEOF
4730
/* confdefs.h.  */
4731
_ACEOF
4732
cat confdefs.h >>conftest.$ac_ext
4733
cat >>conftest.$ac_ext <<_ACEOF
4734
/* end confdefs.h.  */
4735
 
4736
int
4737
main ()
4738
{
4739
#ifndef __GNUC__
4740
       choke me
4741
#endif
4742
 
4743
  ;
4744
  return 0;
4745
}
4746
_ACEOF
4747
rm -f conftest.$ac_objext
4748
if { (ac_try="$ac_compile"
4749
case "(($ac_try" in
4750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751
  *) ac_try_echo=$ac_try;;
4752
esac
4753
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754
  (eval "$ac_compile") 2>conftest.er1
4755
  ac_status=$?
4756
  grep -v '^ *+' conftest.er1 >conftest.err
4757
  rm -f conftest.er1
4758
  cat conftest.err >&5
4759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760
  (exit $ac_status); } && {
4761
         test -z "$ac_cxx_werror_flag" ||
4762
         test ! -s conftest.err
4763
       } && test -s conftest.$ac_objext; then
4764
  ac_compiler_gnu=yes
4765
else
4766
  echo "$as_me: failed program was:" >&5
4767
sed 's/^/| /' conftest.$ac_ext >&5
4768
 
4769
        ac_compiler_gnu=no
4770
fi
4771
 
4772
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4774
 
4775
fi
4776
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4777
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4778
GXX=`test $ac_compiler_gnu = yes && echo yes`
4779
ac_test_CXXFLAGS=${CXXFLAGS+set}
4780
ac_save_CXXFLAGS=$CXXFLAGS
4781
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4782
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4783
if test "${ac_cv_prog_cxx_g+set}" = set; then
4784
  echo $ECHO_N "(cached) $ECHO_C" >&6
4785
else
4786
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4787
   ac_cxx_werror_flag=yes
4788
   ac_cv_prog_cxx_g=no
4789
   CXXFLAGS="-g"
4790
   cat >conftest.$ac_ext <<_ACEOF
4791
/* confdefs.h.  */
4792
_ACEOF
4793
cat confdefs.h >>conftest.$ac_ext
4794
cat >>conftest.$ac_ext <<_ACEOF
4795
/* end confdefs.h.  */
4796
 
4797
int
4798
main ()
4799
{
4800
 
4801
  ;
4802
  return 0;
4803
}
4804
_ACEOF
4805
rm -f conftest.$ac_objext
4806
if { (ac_try="$ac_compile"
4807
case "(($ac_try" in
4808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809
  *) ac_try_echo=$ac_try;;
4810
esac
4811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812
  (eval "$ac_compile") 2>conftest.er1
4813
  ac_status=$?
4814
  grep -v '^ *+' conftest.er1 >conftest.err
4815
  rm -f conftest.er1
4816
  cat conftest.err >&5
4817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818
  (exit $ac_status); } && {
4819
         test -z "$ac_cxx_werror_flag" ||
4820
         test ! -s conftest.err
4821
       } && test -s conftest.$ac_objext; then
4822
  ac_cv_prog_cxx_g=yes
4823
else
4824
  echo "$as_me: failed program was:" >&5
4825
sed 's/^/| /' conftest.$ac_ext >&5
4826
 
4827
        CXXFLAGS=""
4828
      cat >conftest.$ac_ext <<_ACEOF
4829
/* confdefs.h.  */
4830
_ACEOF
4831
cat confdefs.h >>conftest.$ac_ext
4832
cat >>conftest.$ac_ext <<_ACEOF
4833
/* end confdefs.h.  */
4834
 
4835
int
4836
main ()
4837
{
4838
 
4839
  ;
4840
  return 0;
4841
}
4842
_ACEOF
4843
rm -f conftest.$ac_objext
4844
if { (ac_try="$ac_compile"
4845
case "(($ac_try" in
4846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847
  *) ac_try_echo=$ac_try;;
4848
esac
4849
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850
  (eval "$ac_compile") 2>conftest.er1
4851
  ac_status=$?
4852
  grep -v '^ *+' conftest.er1 >conftest.err
4853
  rm -f conftest.er1
4854
  cat conftest.err >&5
4855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856
  (exit $ac_status); } && {
4857
         test -z "$ac_cxx_werror_flag" ||
4858
         test ! -s conftest.err
4859
       } && test -s conftest.$ac_objext; then
4860
  :
4861
else
4862
  echo "$as_me: failed program was:" >&5
4863
sed 's/^/| /' conftest.$ac_ext >&5
4864
 
4865
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4866
         CXXFLAGS="-g"
4867
         cat >conftest.$ac_ext <<_ACEOF
4868
/* confdefs.h.  */
4869
_ACEOF
4870
cat confdefs.h >>conftest.$ac_ext
4871
cat >>conftest.$ac_ext <<_ACEOF
4872
/* end confdefs.h.  */
4873
 
4874
int
4875
main ()
4876
{
4877
 
4878
  ;
4879
  return 0;
4880
}
4881
_ACEOF
4882
rm -f conftest.$ac_objext
4883
if { (ac_try="$ac_compile"
4884
case "(($ac_try" in
4885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886
  *) ac_try_echo=$ac_try;;
4887
esac
4888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889
  (eval "$ac_compile") 2>conftest.er1
4890
  ac_status=$?
4891
  grep -v '^ *+' conftest.er1 >conftest.err
4892
  rm -f conftest.er1
4893
  cat conftest.err >&5
4894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895
  (exit $ac_status); } && {
4896
         test -z "$ac_cxx_werror_flag" ||
4897
         test ! -s conftest.err
4898
       } && test -s conftest.$ac_objext; then
4899
  ac_cv_prog_cxx_g=yes
4900
else
4901
  echo "$as_me: failed program was:" >&5
4902
sed 's/^/| /' conftest.$ac_ext >&5
4903
 
4904
 
4905
fi
4906
 
4907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908
fi
4909
 
4910
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911
fi
4912
 
4913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4915
fi
4916
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4917
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4918
if test "$ac_test_CXXFLAGS" = set; then
4919
  CXXFLAGS=$ac_save_CXXFLAGS
4920
elif test $ac_cv_prog_cxx_g = yes; then
4921
  if test "$GXX" = yes; then
4922
    CXXFLAGS="-g -O2"
4923
  else
4924
    CXXFLAGS="-g"
4925
  fi
4926
else
4927
  if test "$GXX" = yes; then
4928
    CXXFLAGS="-O2"
4929
  else
4930
    CXXFLAGS=
4931
  fi
4932
fi
4933
ac_ext=cpp
4934
ac_cpp='$CXXCPP $CPPFLAGS'
4935
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4938
 
4939
 
4940
 
4941
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4942
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4943
    (test "X$CXX" != "Xg++"))) ; then
4944
  ac_ext=cpp
4945
ac_cpp='$CXXCPP $CPPFLAGS'
4946
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4949
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4950
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4951
if test -z "$CXXCPP"; then
4952
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4953
  echo $ECHO_N "(cached) $ECHO_C" >&6
4954
else
4955
      # Double quotes because CXXCPP needs to be expanded
4956
    for CXXCPP in "$CXX -E" "/lib/cpp"
4957
    do
4958
      ac_preproc_ok=false
4959
for ac_cxx_preproc_warn_flag in '' yes
4960
do
4961
  # Use a header file that comes with gcc, so configuring glibc
4962
  # with a fresh cross-compiler works.
4963
  # Prefer  to  if __STDC__ is defined, since
4964
  #  exists even on freestanding compilers.
4965
  # On the NeXT, cc -E runs the code through the compiler's parser,
4966
  # not just through cpp. "Syntax error" is here to catch this case.
4967
  cat >conftest.$ac_ext <<_ACEOF
4968
/* confdefs.h.  */
4969
_ACEOF
4970
cat confdefs.h >>conftest.$ac_ext
4971
cat >>conftest.$ac_ext <<_ACEOF
4972
/* end confdefs.h.  */
4973
@%:@ifdef __STDC__
4974
@%:@ include 
4975
@%:@else
4976
@%:@ include 
4977
@%:@endif
4978
                     Syntax error
4979
_ACEOF
4980
if { (ac_try="$ac_cpp conftest.$ac_ext"
4981
case "(($ac_try" in
4982
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983
  *) ac_try_echo=$ac_try;;
4984
esac
4985
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4987
  ac_status=$?
4988
  grep -v '^ *+' conftest.er1 >conftest.err
4989
  rm -f conftest.er1
4990
  cat conftest.err >&5
4991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992
  (exit $ac_status); } >/dev/null && {
4993
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4994
         test ! -s conftest.err
4995
       }; then
4996
  :
4997
else
4998
  echo "$as_me: failed program was:" >&5
4999
sed 's/^/| /' conftest.$ac_ext >&5
5000
 
5001
  # Broken: fails on valid input.
5002
continue
5003
fi
5004
 
5005
rm -f conftest.err conftest.$ac_ext
5006
 
5007
  # OK, works on sane cases.  Now check whether nonexistent headers
5008
  # can be detected and how.
5009
  cat >conftest.$ac_ext <<_ACEOF
5010
/* confdefs.h.  */
5011
_ACEOF
5012
cat confdefs.h >>conftest.$ac_ext
5013
cat >>conftest.$ac_ext <<_ACEOF
5014
/* end confdefs.h.  */
5015
@%:@include 
5016
_ACEOF
5017
if { (ac_try="$ac_cpp conftest.$ac_ext"
5018
case "(($ac_try" in
5019
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020
  *) ac_try_echo=$ac_try;;
5021
esac
5022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5024
  ac_status=$?
5025
  grep -v '^ *+' conftest.er1 >conftest.err
5026
  rm -f conftest.er1
5027
  cat conftest.err >&5
5028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029
  (exit $ac_status); } >/dev/null && {
5030
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5031
         test ! -s conftest.err
5032
       }; then
5033
  # Broken: success on invalid input.
5034
continue
5035
else
5036
  echo "$as_me: failed program was:" >&5
5037
sed 's/^/| /' conftest.$ac_ext >&5
5038
 
5039
  # Passes both tests.
5040
ac_preproc_ok=:
5041
break
5042
fi
5043
 
5044
rm -f conftest.err conftest.$ac_ext
5045
 
5046
done
5047
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5048
rm -f conftest.err conftest.$ac_ext
5049
if $ac_preproc_ok; then
5050
  break
5051
fi
5052
 
5053
    done
5054
    ac_cv_prog_CXXCPP=$CXXCPP
5055
 
5056
fi
5057
  CXXCPP=$ac_cv_prog_CXXCPP
5058
else
5059
  ac_cv_prog_CXXCPP=$CXXCPP
5060
fi
5061
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5062
echo "${ECHO_T}$CXXCPP" >&6; }
5063
ac_preproc_ok=false
5064
for ac_cxx_preproc_warn_flag in '' yes
5065
do
5066
  # Use a header file that comes with gcc, so configuring glibc
5067
  # with a fresh cross-compiler works.
5068
  # Prefer  to  if __STDC__ is defined, since
5069
  #  exists even on freestanding compilers.
5070
  # On the NeXT, cc -E runs the code through the compiler's parser,
5071
  # not just through cpp. "Syntax error" is here to catch this case.
5072
  cat >conftest.$ac_ext <<_ACEOF
5073
/* confdefs.h.  */
5074
_ACEOF
5075
cat confdefs.h >>conftest.$ac_ext
5076
cat >>conftest.$ac_ext <<_ACEOF
5077
/* end confdefs.h.  */
5078
@%:@ifdef __STDC__
5079
@%:@ include 
5080
@%:@else
5081
@%:@ include 
5082
@%:@endif
5083
                     Syntax error
5084
_ACEOF
5085
if { (ac_try="$ac_cpp conftest.$ac_ext"
5086
case "(($ac_try" in
5087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088
  *) ac_try_echo=$ac_try;;
5089
esac
5090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5092
  ac_status=$?
5093
  grep -v '^ *+' conftest.er1 >conftest.err
5094
  rm -f conftest.er1
5095
  cat conftest.err >&5
5096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097
  (exit $ac_status); } >/dev/null && {
5098
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5099
         test ! -s conftest.err
5100
       }; then
5101
  :
5102
else
5103
  echo "$as_me: failed program was:" >&5
5104
sed 's/^/| /' conftest.$ac_ext >&5
5105
 
5106
  # Broken: fails on valid input.
5107
continue
5108
fi
5109
 
5110
rm -f conftest.err conftest.$ac_ext
5111
 
5112
  # OK, works on sane cases.  Now check whether nonexistent headers
5113
  # can be detected and how.
5114
  cat >conftest.$ac_ext <<_ACEOF
5115
/* confdefs.h.  */
5116
_ACEOF
5117
cat confdefs.h >>conftest.$ac_ext
5118
cat >>conftest.$ac_ext <<_ACEOF
5119
/* end confdefs.h.  */
5120
@%:@include 
5121
_ACEOF
5122
if { (ac_try="$ac_cpp conftest.$ac_ext"
5123
case "(($ac_try" in
5124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125
  *) ac_try_echo=$ac_try;;
5126
esac
5127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5129
  ac_status=$?
5130
  grep -v '^ *+' conftest.er1 >conftest.err
5131
  rm -f conftest.er1
5132
  cat conftest.err >&5
5133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134
  (exit $ac_status); } >/dev/null && {
5135
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5136
         test ! -s conftest.err
5137
       }; then
5138
  # Broken: success on invalid input.
5139
continue
5140
else
5141
  echo "$as_me: failed program was:" >&5
5142
sed 's/^/| /' conftest.$ac_ext >&5
5143
 
5144
  # Passes both tests.
5145
ac_preproc_ok=:
5146
break
5147
fi
5148
 
5149
rm -f conftest.err conftest.$ac_ext
5150
 
5151
done
5152
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5153
rm -f conftest.err conftest.$ac_ext
5154
if $ac_preproc_ok; then
5155
  :
5156
else
5157
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5158
See \`config.log' for more details." >&5
5159
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5160
See \`config.log' for more details." >&2;}
5161
   { (exit 1); exit 1; }; }
5162
fi
5163
 
5164
ac_ext=cpp
5165
ac_cpp='$CXXCPP $CPPFLAGS'
5166
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5169
 
5170
fi
5171
 
5172
 
5173
ac_ext=f
5174
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5175
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5177
if test -n "$ac_tool_prefix"; then
5178
  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
5179
  do
5180
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5181
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5182
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5183
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5184
if test "${ac_cv_prog_F77+set}" = set; then
5185
  echo $ECHO_N "(cached) $ECHO_C" >&6
5186
else
5187
  if test -n "$F77"; then
5188
  ac_cv_prog_F77="$F77" # Let the user override the test.
5189
else
5190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191
for as_dir in $PATH
5192
do
5193
  IFS=$as_save_IFS
5194
  test -z "$as_dir" && as_dir=.
5195
  for ac_exec_ext in '' $ac_executable_extensions; do
5196
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5198
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199
    break 2
5200
  fi
5201
done
5202
done
5203
IFS=$as_save_IFS
5204
 
5205
fi
5206
fi
5207
F77=$ac_cv_prog_F77
5208
if test -n "$F77"; then
5209
  { echo "$as_me:$LINENO: result: $F77" >&5
5210
echo "${ECHO_T}$F77" >&6; }
5211
else
5212
  { echo "$as_me:$LINENO: result: no" >&5
5213
echo "${ECHO_T}no" >&6; }
5214
fi
5215
 
5216
 
5217
    test -n "$F77" && break
5218
  done
5219
fi
5220
if test -z "$F77"; then
5221
  ac_ct_F77=$F77
5222
  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
5223
do
5224
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5225
set dummy $ac_prog; ac_word=$2
5226
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5227
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5228
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5229
  echo $ECHO_N "(cached) $ECHO_C" >&6
5230
else
5231
  if test -n "$ac_ct_F77"; then
5232
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5233
else
5234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235
for as_dir in $PATH
5236
do
5237
  IFS=$as_save_IFS
5238
  test -z "$as_dir" && as_dir=.
5239
  for ac_exec_ext in '' $ac_executable_extensions; do
5240
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241
    ac_cv_prog_ac_ct_F77="$ac_prog"
5242
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243
    break 2
5244
  fi
5245
done
5246
done
5247
IFS=$as_save_IFS
5248
 
5249
fi
5250
fi
5251
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5252
if test -n "$ac_ct_F77"; then
5253
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5254
echo "${ECHO_T}$ac_ct_F77" >&6; }
5255
else
5256
  { echo "$as_me:$LINENO: result: no" >&5
5257
echo "${ECHO_T}no" >&6; }
5258
fi
5259
 
5260
 
5261
  test -n "$ac_ct_F77" && break
5262
done
5263
 
5264
  if test "x$ac_ct_F77" = x; then
5265
    F77=""
5266
  else
5267
    case $cross_compiling:$ac_tool_warned in
5268
yes:)
5269
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5270
whose name does not start with the host triplet.  If you think this
5271
configuration is useful to you, please write to autoconf@gnu.org." >&5
5272
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5273
whose name does not start with the host triplet.  If you think this
5274
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5275
ac_tool_warned=yes ;;
5276
esac
5277
    F77=$ac_ct_F77
5278
  fi
5279
fi
5280
 
5281
 
5282
# Provide some information about the compiler.
5283
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5284
ac_compiler=`set X $ac_compile; echo $2`
5285
{ (ac_try="$ac_compiler --version >&5"
5286
case "(($ac_try" in
5287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288
  *) ac_try_echo=$ac_try;;
5289
esac
5290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291
  (eval "$ac_compiler --version >&5") 2>&5
5292
  ac_status=$?
5293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294
  (exit $ac_status); }
5295
{ (ac_try="$ac_compiler -v >&5"
5296
case "(($ac_try" in
5297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298
  *) ac_try_echo=$ac_try;;
5299
esac
5300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301
  (eval "$ac_compiler -v >&5") 2>&5
5302
  ac_status=$?
5303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304
  (exit $ac_status); }
5305
{ (ac_try="$ac_compiler -V >&5"
5306
case "(($ac_try" in
5307
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308
  *) ac_try_echo=$ac_try;;
5309
esac
5310
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311
  (eval "$ac_compiler -V >&5") 2>&5
5312
  ac_status=$?
5313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314
  (exit $ac_status); }
5315
rm -f a.out
5316
 
5317
# If we don't use `.F' as extension, the preprocessor is not run on the
5318
# input file.  (Note that this only needs to work for GNU compilers.)
5319
ac_save_ext=$ac_ext
5320
ac_ext=F
5321
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5322
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5323
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5324
  echo $ECHO_N "(cached) $ECHO_C" >&6
5325
else
5326
  cat >conftest.$ac_ext <<_ACEOF
5327
      program main
5328
#ifndef __GNUC__
5329
       choke me
5330
#endif
5331
 
5332
      end
5333
_ACEOF
5334
rm -f conftest.$ac_objext
5335
if { (ac_try="$ac_compile"
5336
case "(($ac_try" in
5337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338
  *) ac_try_echo=$ac_try;;
5339
esac
5340
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341
  (eval "$ac_compile") 2>conftest.er1
5342
  ac_status=$?
5343
  grep -v '^ *+' conftest.er1 >conftest.err
5344
  rm -f conftest.er1
5345
  cat conftest.err >&5
5346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347
  (exit $ac_status); } && {
5348
         test -z "$ac_f77_werror_flag" ||
5349
         test ! -s conftest.err
5350
       } && test -s conftest.$ac_objext; then
5351
  ac_compiler_gnu=yes
5352
else
5353
  echo "$as_me: failed program was:" >&5
5354
sed 's/^/| /' conftest.$ac_ext >&5
5355
 
5356
        ac_compiler_gnu=no
5357
fi
5358
 
5359
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5361
 
5362
fi
5363
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5364
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5365
ac_ext=$ac_save_ext
5366
ac_test_FFLAGS=${FFLAGS+set}
5367
ac_save_FFLAGS=$FFLAGS
5368
FFLAGS=
5369
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5370
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5371
if test "${ac_cv_prog_f77_g+set}" = set; then
5372
  echo $ECHO_N "(cached) $ECHO_C" >&6
5373
else
5374
  FFLAGS=-g
5375
cat >conftest.$ac_ext <<_ACEOF
5376
      program main
5377
 
5378
      end
5379
_ACEOF
5380
rm -f conftest.$ac_objext
5381
if { (ac_try="$ac_compile"
5382
case "(($ac_try" in
5383
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384
  *) ac_try_echo=$ac_try;;
5385
esac
5386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387
  (eval "$ac_compile") 2>conftest.er1
5388
  ac_status=$?
5389
  grep -v '^ *+' conftest.er1 >conftest.err
5390
  rm -f conftest.er1
5391
  cat conftest.err >&5
5392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393
  (exit $ac_status); } && {
5394
         test -z "$ac_f77_werror_flag" ||
5395
         test ! -s conftest.err
5396
       } && test -s conftest.$ac_objext; then
5397
  ac_cv_prog_f77_g=yes
5398
else
5399
  echo "$as_me: failed program was:" >&5
5400
sed 's/^/| /' conftest.$ac_ext >&5
5401
 
5402
        ac_cv_prog_f77_g=no
5403
fi
5404
 
5405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406
 
5407
fi
5408
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5409
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5410
if test "$ac_test_FFLAGS" = set; then
5411
  FFLAGS=$ac_save_FFLAGS
5412
elif test $ac_cv_prog_f77_g = yes; then
5413
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5414
    FFLAGS="-g -O2"
5415
  else
5416
    FFLAGS="-g"
5417
  fi
5418
else
5419
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5420
    FFLAGS="-O2"
5421
  else
5422
    FFLAGS=
5423
  fi
5424
fi
5425
 
5426
G77=`test $ac_compiler_gnu = yes && echo yes`
5427
ac_ext=c
5428
ac_cpp='$CPP $CPPFLAGS'
5429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432
 
5433
 
5434
 
5435
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5436
 
5437
# find the maximum length of command line arguments
5438
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5439
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5440
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5441
  echo $ECHO_N "(cached) $ECHO_C" >&6
5442
else
5443
    i=0
5444
  teststring="ABCD"
5445
 
5446
  case $build_os in
5447
  msdosdjgpp*)
5448
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5449
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5450
    # during glob expansion).  Even if it were fixed, the result of this
5451
    # check would be larger than it should be.
5452
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5453
    ;;
5454
 
5455
  gnu*)
5456
    # Under GNU Hurd, this test is not required because there is
5457
    # no limit to the length of command line arguments.
5458
    # Libtool will interpret -1 as no limit whatsoever
5459
    lt_cv_sys_max_cmd_len=-1;
5460
    ;;
5461
 
5462
  cygwin* | mingw*)
5463
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5464
    # about 5 minutes as the teststring grows exponentially.
5465
    # Worse, since 9x/ME are not pre-emptively multitasking,
5466
    # you end up with a "frozen" computer, even though with patience
5467
    # the test eventually succeeds (with a max line length of 256k).
5468
    # Instead, let's just punt: use the minimum linelength reported by
5469
    # all of the supported platforms: 8192 (on NT/2K/XP).
5470
    lt_cv_sys_max_cmd_len=8192;
5471
    ;;
5472
 
5473
  amigaos*)
5474
    # On AmigaOS with pdksh, this test takes hours, literally.
5475
    # So we just punt and use a minimum line length of 8192.
5476
    lt_cv_sys_max_cmd_len=8192;
5477
    ;;
5478
 
5479
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5480
    # This has been around since 386BSD, at least.  Likely further.
5481
    if test -x /sbin/sysctl; then
5482
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5483
    elif test -x /usr/sbin/sysctl; then
5484
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5485
    else
5486
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5487
    fi
5488
    # And add a safety zone
5489
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5490
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5491
    ;;
5492
 
5493
  interix*)
5494
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5495
    lt_cv_sys_max_cmd_len=196608
5496
    ;;
5497
 
5498
  osf*)
5499
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5500
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5501
    # nice to cause kernel panics so lets avoid the loop below.
5502
    # First set a reasonable default.
5503
    lt_cv_sys_max_cmd_len=16384
5504
    #
5505
    if test -x /sbin/sysconfig; then
5506
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5507
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5508
      esac
5509
    fi
5510
    ;;
5511
  sco3.2v5*)
5512
    lt_cv_sys_max_cmd_len=102400
5513
    ;;
5514
  sysv5* | sco5v6* | sysv4.2uw2*)
5515
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5516
    if test -n "$kargmax"; then
5517
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5518
    else
5519
      lt_cv_sys_max_cmd_len=32768
5520
    fi
5521
    ;;
5522
  *)
5523
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5524
    if test -n "$lt_cv_sys_max_cmd_len"; then
5525
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5526
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5527
    else
5528
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5529
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5530
               = "XX$teststring") >/dev/null 2>&1 &&
5531
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
5532
              lt_cv_sys_max_cmd_len=$new_result &&
5533
              test $i != 17 # 1/2 MB should be enough
5534
      do
5535
        i=`expr $i + 1`
5536
        teststring=$teststring$teststring
5537
      done
5538
      teststring=
5539
      # Add a significant safety factor because C++ compilers can tack on massive
5540
      # amounts of additional arguments before passing them to the linker.
5541
      # It appears as though 1/2 is a usable value.
5542
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5543
    fi
5544
    ;;
5545
  esac
5546
 
5547
fi
5548
 
5549
if test -n $lt_cv_sys_max_cmd_len ; then
5550
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5551
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5552
else
5553
  { echo "$as_me:$LINENO: result: none" >&5
5554
echo "${ECHO_T}none" >&6; }
5555
fi
5556
 
5557
 
5558
 
5559
 
5560
 
5561
# Check for command to grab the raw symbol name followed by C symbol from nm.
5562
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5563
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5564
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5565
  echo $ECHO_N "(cached) $ECHO_C" >&6
5566
else
5567
 
5568
# These are sane defaults that work on at least a few old systems.
5569
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5570
 
5571
# Character class describing NM global symbol codes.
5572
symcode='[BCDEGRST]'
5573
 
5574
# Regexp to match symbols that can be accessed directly from C.
5575
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5576
 
5577
# Transform an extracted symbol line into a proper C declaration
5578
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5579
 
5580
# Transform an extracted symbol line into symbol name and symbol address
5581
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'"
5582
 
5583
# Define system-specific variables.
5584
case $host_os in
5585
aix*)
5586
  symcode='[BCDT]'
5587
  ;;
5588
cygwin* | mingw* | pw32*)
5589
  symcode='[ABCDGISTW]'
5590
  ;;
5591
hpux*) # Its linker distinguishes data from code symbols
5592
  if test "$host_cpu" = ia64; then
5593
    symcode='[ABCDEGRST]'
5594
  fi
5595
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5596
  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'"
5597
  ;;
5598
linux* | k*bsd*-gnu)
5599
  if test "$host_cpu" = ia64; then
5600
    symcode='[ABCDGIRSTW]'
5601
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5602
    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'"
5603
  fi
5604
  ;;
5605
irix* | nonstopux*)
5606
  symcode='[BCDEGRST]'
5607
  ;;
5608
osf*)
5609
  symcode='[BCDEGQRST]'
5610
  ;;
5611
solaris*)
5612
  symcode='[BDRT]'
5613
  ;;
5614
sco3.2v5*)
5615
  symcode='[DT]'
5616
  ;;
5617
sysv4.2uw2*)
5618
  symcode='[DT]'
5619
  ;;
5620
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5621
  symcode='[ABDT]'
5622
  ;;
5623
sysv4)
5624
  symcode='[DFNSTU]'
5625
  ;;
5626
esac
5627
 
5628
# Handle CRLF in mingw tool chain
5629
opt_cr=
5630
case $build_os in
5631
mingw*)
5632
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5633
  ;;
5634
esac
5635
 
5636
# If we're using GNU nm, then use its standard symbol codes.
5637
case `$NM -V 2>&1` in
5638
*GNU* | *'with BFD'*)
5639
  symcode='[ABCDGIRSTW]' ;;
5640
esac
5641
 
5642
# Try without a prefix undercore, then with it.
5643
for ac_symprfx in "" "_"; do
5644
 
5645
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5646
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5647
 
5648
  # Write the raw and C identifiers.
5649
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5650
 
5651
  # Check to see that the pipe works correctly.
5652
  pipe_works=no
5653
 
5654
  rm -f conftest*
5655
  cat > conftest.$ac_ext <
5656
#ifdef __cplusplus
5657
extern "C" {
5658
#endif
5659
char nm_test_var;
5660
void nm_test_func(){}
5661
#ifdef __cplusplus
5662
}
5663
#endif
5664
int main(){nm_test_var='a';nm_test_func();return(0);}
5665
EOF
5666
 
5667
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668
  (eval $ac_compile) 2>&5
5669
  ac_status=$?
5670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671
  (exit $ac_status); }; then
5672
    # Now try to grab the symbols.
5673
    nlist=conftest.nm
5674
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5675
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5676
  ac_status=$?
5677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678
  (exit $ac_status); } && test -s "$nlist"; then
5679
      # Try sorting and uniquifying the output.
5680
      if sort "$nlist" | uniq > "$nlist"T; then
5681
        mv -f "$nlist"T "$nlist"
5682
      else
5683
        rm -f "$nlist"T
5684
      fi
5685
 
5686
      # Make sure that we snagged all the symbols we need.
5687
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5688
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5689
          cat < conftest.$ac_ext
5690
#ifdef __cplusplus
5691
extern "C" {
5692
#endif
5693
 
5694
EOF
5695
          # Now generate the symbol file.
5696
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5697
 
5698
          cat <> conftest.$ac_ext
5699
#if defined (__STDC__) && __STDC__
5700
# define lt_ptr_t void *
5701
#else
5702
# define lt_ptr_t char *
5703
# define const
5704
#endif
5705
 
5706
/* The mapping between symbol names and symbols. */
5707
const struct {
5708
  const char *name;
5709
  lt_ptr_t address;
5710
}
5711
lt_preloaded_symbols[] =
5712
{
5713
EOF
5714
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5715
          cat <<\EOF >> conftest.$ac_ext
5716
  {0, (lt_ptr_t) 0}
5717
};
5718
 
5719
#ifdef __cplusplus
5720
}
5721
#endif
5722
EOF
5723
          # Now try linking the two files.
5724
          mv conftest.$ac_objext conftstm.$ac_objext
5725
          lt_save_LIBS="$LIBS"
5726
          lt_save_CFLAGS="$CFLAGS"
5727
          LIBS="conftstm.$ac_objext"
5728
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5729
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5730
  (eval $ac_link) 2>&5
5731
  ac_status=$?
5732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5734
            pipe_works=yes
5735
          fi
5736
          LIBS="$lt_save_LIBS"
5737
          CFLAGS="$lt_save_CFLAGS"
5738
        else
5739
          echo "cannot find nm_test_func in $nlist" >&5
5740
        fi
5741
      else
5742
        echo "cannot find nm_test_var in $nlist" >&5
5743
      fi
5744
    else
5745
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5746
    fi
5747
  else
5748
    echo "$progname: failed program was:" >&5
5749
    cat conftest.$ac_ext >&5
5750
  fi
5751
  rm -f conftest* conftst*
5752
 
5753
  # Do not use the global_symbol_pipe unless it works.
5754
  if test "$pipe_works" = yes; then
5755
    break
5756
  else
5757
    lt_cv_sys_global_symbol_pipe=
5758
  fi
5759
done
5760
 
5761
fi
5762
 
5763
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5764
  lt_cv_sys_global_symbol_to_cdecl=
5765
fi
5766
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5767
  { echo "$as_me:$LINENO: result: failed" >&5
5768
echo "${ECHO_T}failed" >&6; }
5769
else
5770
  { echo "$as_me:$LINENO: result: ok" >&5
5771
echo "${ECHO_T}ok" >&6; }
5772
fi
5773
 
5774
{ echo "$as_me:$LINENO: checking for objdir" >&5
5775
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5776
if test "${lt_cv_objdir+set}" = set; then
5777
  echo $ECHO_N "(cached) $ECHO_C" >&6
5778
else
5779
  rm -f .libs 2>/dev/null
5780
mkdir .libs 2>/dev/null
5781
if test -d .libs; then
5782
  lt_cv_objdir=.libs
5783
else
5784
  # MS-DOS does not allow filenames that begin with a dot.
5785
  lt_cv_objdir=_libs
5786
fi
5787
rmdir .libs 2>/dev/null
5788
fi
5789
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5790
echo "${ECHO_T}$lt_cv_objdir" >&6; }
5791
objdir=$lt_cv_objdir
5792
 
5793
 
5794
 
5795
 
5796
 
5797
case $host_os in
5798
aix3*)
5799
  # AIX sometimes has problems with the GCC collect2 program.  For some
5800
  # reason, if we set the COLLECT_NAMES environment variable, the problems
5801
  # vanish in a puff of smoke.
5802
  if test "X${COLLECT_NAMES+set}" != Xset; then
5803
    COLLECT_NAMES=
5804
    export COLLECT_NAMES
5805
  fi
5806
  ;;
5807
esac
5808
 
5809
# Sed substitution that helps us do robust quoting.  It backslashifies
5810
# metacharacters that are still active within double-quoted strings.
5811
Xsed='sed -e 1s/^X//'
5812
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5813
 
5814
# Same as above, but do not quote variable references.
5815
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5816
 
5817
# Sed substitution to delay expansion of an escaped shell variable in a
5818
# double_quote_subst'ed string.
5819
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5820
 
5821
# Sed substitution to avoid accidental globbing in evaled expressions
5822
no_glob_subst='s/\*/\\\*/g'
5823
 
5824
# Constants:
5825
rm="rm -f"
5826
 
5827
# Global variables:
5828
default_ofile=libtool
5829
can_build_shared=yes
5830
 
5831
# All known linkers require a `.a' archive for static linking (except MSVC,
5832
# which needs '.lib').
5833
libext=a
5834
ltmain="$ac_aux_dir/ltmain.sh"
5835
ofile="$default_ofile"
5836
with_gnu_ld="$lt_cv_prog_gnu_ld"
5837
 
5838
if test -n "$ac_tool_prefix"; then
5839
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5840
set dummy ${ac_tool_prefix}ar; ac_word=$2
5841
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5842
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843
if test "${ac_cv_prog_AR+set}" = set; then
5844
  echo $ECHO_N "(cached) $ECHO_C" >&6
5845
else
5846
  if test -n "$AR"; then
5847
  ac_cv_prog_AR="$AR" # Let the user override the test.
5848
else
5849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850
for as_dir in $PATH
5851
do
5852
  IFS=$as_save_IFS
5853
  test -z "$as_dir" && as_dir=.
5854
  for ac_exec_ext in '' $ac_executable_extensions; do
5855
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5857
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858
    break 2
5859
  fi
5860
done
5861
done
5862
IFS=$as_save_IFS
5863
 
5864
fi
5865
fi
5866
AR=$ac_cv_prog_AR
5867
if test -n "$AR"; then
5868
  { echo "$as_me:$LINENO: result: $AR" >&5
5869
echo "${ECHO_T}$AR" >&6; }
5870
else
5871
  { echo "$as_me:$LINENO: result: no" >&5
5872
echo "${ECHO_T}no" >&6; }
5873
fi
5874
 
5875
 
5876
fi
5877
if test -z "$ac_cv_prog_AR"; then
5878
  ac_ct_AR=$AR
5879
  # Extract the first word of "ar", so it can be a program name with args.
5880
set dummy ar; ac_word=$2
5881
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5882
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5884
  echo $ECHO_N "(cached) $ECHO_C" >&6
5885
else
5886
  if test -n "$ac_ct_AR"; then
5887
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5888
else
5889
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890
for as_dir in $PATH
5891
do
5892
  IFS=$as_save_IFS
5893
  test -z "$as_dir" && as_dir=.
5894
  for ac_exec_ext in '' $ac_executable_extensions; do
5895
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896
    ac_cv_prog_ac_ct_AR="ar"
5897
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898
    break 2
5899
  fi
5900
done
5901
done
5902
IFS=$as_save_IFS
5903
 
5904
fi
5905
fi
5906
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5907
if test -n "$ac_ct_AR"; then
5908
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5909
echo "${ECHO_T}$ac_ct_AR" >&6; }
5910
else
5911
  { echo "$as_me:$LINENO: result: no" >&5
5912
echo "${ECHO_T}no" >&6; }
5913
fi
5914
 
5915
  if test "x$ac_ct_AR" = x; then
5916
    AR="false"
5917
  else
5918
    case $cross_compiling:$ac_tool_warned in
5919
yes:)
5920
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5921
whose name does not start with the host triplet.  If you think this
5922
configuration is useful to you, please write to autoconf@gnu.org." >&5
5923
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5924
whose name does not start with the host triplet.  If you think this
5925
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5926
ac_tool_warned=yes ;;
5927
esac
5928
    AR=$ac_ct_AR
5929
  fi
5930
else
5931
  AR="$ac_cv_prog_AR"
5932
fi
5933
 
5934
if test -n "$ac_tool_prefix"; then
5935
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5936
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5937
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5938
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939
if test "${ac_cv_prog_RANLIB+set}" = set; then
5940
  echo $ECHO_N "(cached) $ECHO_C" >&6
5941
else
5942
  if test -n "$RANLIB"; then
5943
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5944
else
5945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946
for as_dir in $PATH
5947
do
5948
  IFS=$as_save_IFS
5949
  test -z "$as_dir" && as_dir=.
5950
  for ac_exec_ext in '' $ac_executable_extensions; do
5951
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5953
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954
    break 2
5955
  fi
5956
done
5957
done
5958
IFS=$as_save_IFS
5959
 
5960
fi
5961
fi
5962
RANLIB=$ac_cv_prog_RANLIB
5963
if test -n "$RANLIB"; then
5964
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
5965
echo "${ECHO_T}$RANLIB" >&6; }
5966
else
5967
  { echo "$as_me:$LINENO: result: no" >&5
5968
echo "${ECHO_T}no" >&6; }
5969
fi
5970
 
5971
 
5972
fi
5973
if test -z "$ac_cv_prog_RANLIB"; then
5974
  ac_ct_RANLIB=$RANLIB
5975
  # Extract the first word of "ranlib", so it can be a program name with args.
5976
set dummy ranlib; ac_word=$2
5977
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5978
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5980
  echo $ECHO_N "(cached) $ECHO_C" >&6
5981
else
5982
  if test -n "$ac_ct_RANLIB"; then
5983
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5984
else
5985
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986
for as_dir in $PATH
5987
do
5988
  IFS=$as_save_IFS
5989
  test -z "$as_dir" && as_dir=.
5990
  for ac_exec_ext in '' $ac_executable_extensions; do
5991
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5992
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5993
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994
    break 2
5995
  fi
5996
done
5997
done
5998
IFS=$as_save_IFS
5999
 
6000
fi
6001
fi
6002
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6003
if test -n "$ac_ct_RANLIB"; then
6004
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6005
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6006
else
6007
  { echo "$as_me:$LINENO: result: no" >&5
6008
echo "${ECHO_T}no" >&6; }
6009
fi
6010
 
6011
  if test "x$ac_ct_RANLIB" = x; then
6012
    RANLIB=":"
6013
  else
6014
    case $cross_compiling:$ac_tool_warned in
6015
yes:)
6016
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6017
whose name does not start with the host triplet.  If you think this
6018
configuration is useful to you, please write to autoconf@gnu.org." >&5
6019
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6020
whose name does not start with the host triplet.  If you think this
6021
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6022
ac_tool_warned=yes ;;
6023
esac
6024
    RANLIB=$ac_ct_RANLIB
6025
  fi
6026
else
6027
  RANLIB="$ac_cv_prog_RANLIB"
6028
fi
6029
 
6030
if test -n "$ac_tool_prefix"; then
6031
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6032
set dummy ${ac_tool_prefix}strip; ac_word=$2
6033
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6034
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035
if test "${ac_cv_prog_STRIP+set}" = set; then
6036
  echo $ECHO_N "(cached) $ECHO_C" >&6
6037
else
6038
  if test -n "$STRIP"; then
6039
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6040
else
6041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042
for as_dir in $PATH
6043
do
6044
  IFS=$as_save_IFS
6045
  test -z "$as_dir" && as_dir=.
6046
  for ac_exec_ext in '' $ac_executable_extensions; do
6047
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6049
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050
    break 2
6051
  fi
6052
done
6053
done
6054
IFS=$as_save_IFS
6055
 
6056
fi
6057
fi
6058
STRIP=$ac_cv_prog_STRIP
6059
if test -n "$STRIP"; then
6060
  { echo "$as_me:$LINENO: result: $STRIP" >&5
6061
echo "${ECHO_T}$STRIP" >&6; }
6062
else
6063
  { echo "$as_me:$LINENO: result: no" >&5
6064
echo "${ECHO_T}no" >&6; }
6065
fi
6066
 
6067
 
6068
fi
6069
if test -z "$ac_cv_prog_STRIP"; then
6070
  ac_ct_STRIP=$STRIP
6071
  # Extract the first word of "strip", so it can be a program name with args.
6072
set dummy strip; ac_word=$2
6073
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6074
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6075
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6076
  echo $ECHO_N "(cached) $ECHO_C" >&6
6077
else
6078
  if test -n "$ac_ct_STRIP"; then
6079
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6080
else
6081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082
for as_dir in $PATH
6083
do
6084
  IFS=$as_save_IFS
6085
  test -z "$as_dir" && as_dir=.
6086
  for ac_exec_ext in '' $ac_executable_extensions; do
6087
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088
    ac_cv_prog_ac_ct_STRIP="strip"
6089
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090
    break 2
6091
  fi
6092
done
6093
done
6094
IFS=$as_save_IFS
6095
 
6096
fi
6097
fi
6098
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6099
if test -n "$ac_ct_STRIP"; then
6100
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6101
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6102
else
6103
  { echo "$as_me:$LINENO: result: no" >&5
6104
echo "${ECHO_T}no" >&6; }
6105
fi
6106
 
6107
  if test "x$ac_ct_STRIP" = x; then
6108
    STRIP=":"
6109
  else
6110
    case $cross_compiling:$ac_tool_warned in
6111
yes:)
6112
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6113
whose name does not start with the host triplet.  If you think this
6114
configuration is useful to you, please write to autoconf@gnu.org." >&5
6115
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6116
whose name does not start with the host triplet.  If you think this
6117
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6118
ac_tool_warned=yes ;;
6119
esac
6120
    STRIP=$ac_ct_STRIP
6121
  fi
6122
else
6123
  STRIP="$ac_cv_prog_STRIP"
6124
fi
6125
 
6126
 
6127
old_CC="$CC"
6128
old_CFLAGS="$CFLAGS"
6129
 
6130
# Set sane defaults for various variables
6131
test -z "$AR" && AR=ar
6132
test -z "$AR_FLAGS" && AR_FLAGS=cru
6133
test -z "$AS" && AS=as
6134
test -z "$CC" && CC=cc
6135
test -z "$LTCC" && LTCC=$CC
6136
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6137
test -z "$DLLTOOL" && DLLTOOL=dlltool
6138
test -z "$LD" && LD=ld
6139
test -z "$LN_S" && LN_S="ln -s"
6140
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6141
test -z "$NM" && NM=nm
6142
test -z "$SED" && SED=sed
6143
test -z "$OBJDUMP" && OBJDUMP=objdump
6144
test -z "$RANLIB" && RANLIB=:
6145
test -z "$STRIP" && STRIP=:
6146
test -z "$ac_objext" && ac_objext=o
6147
 
6148
# Determine commands to create old-style static archives.
6149
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6150
old_postinstall_cmds='chmod 644 $oldlib'
6151
old_postuninstall_cmds=
6152
 
6153
if test -n "$RANLIB"; then
6154
  case $host_os in
6155
  openbsd*)
6156
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6157
    ;;
6158
  *)
6159
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6160
    ;;
6161
  esac
6162
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6163
fi
6164
 
6165
for cc_temp in $compiler""; do
6166
  case $cc_temp in
6167
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6168
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6169
    \-*) ;;
6170
    *) break;;
6171
  esac
6172
done
6173
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6174
 
6175
 
6176
# Only perform the check for file, if the check method requires it
6177
case $deplibs_check_method in
6178
file_magic*)
6179
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6180
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6181
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6182
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6183
  echo $ECHO_N "(cached) $ECHO_C" >&6
6184
else
6185
  case $MAGIC_CMD in
6186
[\\/*] |  ?:[\\/]*)
6187
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6188
  ;;
6189
*)
6190
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6191
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6192
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6193
  for ac_dir in $ac_dummy; do
6194
    IFS="$lt_save_ifs"
6195
    test -z "$ac_dir" && ac_dir=.
6196
    if test -f $ac_dir/${ac_tool_prefix}file; then
6197
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6198
      if test -n "$file_magic_test_file"; then
6199
        case $deplibs_check_method in
6200
        "file_magic "*)
6201
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6202
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6203
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6204
            $EGREP "$file_magic_regex" > /dev/null; then
6205
            :
6206
          else
6207
            cat <&2
6208
 
6209
*** Warning: the command libtool uses to detect shared libraries,
6210
*** $file_magic_cmd, produces output that libtool cannot recognize.
6211
*** The result is that libtool may fail to recognize shared libraries
6212
*** as such.  This will affect the creation of libtool libraries that
6213
*** depend on shared libraries, but programs linked with such libtool
6214
*** libraries will work regardless of this problem.  Nevertheless, you
6215
*** may want to report the problem to your system manager and/or to
6216
*** bug-libtool@gnu.org
6217
 
6218
EOF
6219
          fi ;;
6220
        esac
6221
      fi
6222
      break
6223
    fi
6224
  done
6225
  IFS="$lt_save_ifs"
6226
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6227
  ;;
6228
esac
6229
fi
6230
 
6231
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6232
if test -n "$MAGIC_CMD"; then
6233
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6234
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6235
else
6236
  { echo "$as_me:$LINENO: result: no" >&5
6237
echo "${ECHO_T}no" >&6; }
6238
fi
6239
 
6240
if test -z "$lt_cv_path_MAGIC_CMD"; then
6241
  if test -n "$ac_tool_prefix"; then
6242
    { echo "$as_me:$LINENO: checking for file" >&5
6243
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6244
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6245
  echo $ECHO_N "(cached) $ECHO_C" >&6
6246
else
6247
  case $MAGIC_CMD in
6248
[\\/*] |  ?:[\\/]*)
6249
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6250
  ;;
6251
*)
6252
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6253
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6254
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6255
  for ac_dir in $ac_dummy; do
6256
    IFS="$lt_save_ifs"
6257
    test -z "$ac_dir" && ac_dir=.
6258
    if test -f $ac_dir/file; then
6259
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6260
      if test -n "$file_magic_test_file"; then
6261
        case $deplibs_check_method in
6262
        "file_magic "*)
6263
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6264
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6265
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6266
            $EGREP "$file_magic_regex" > /dev/null; then
6267
            :
6268
          else
6269
            cat <&2
6270
 
6271
*** Warning: the command libtool uses to detect shared libraries,
6272
*** $file_magic_cmd, produces output that libtool cannot recognize.
6273
*** The result is that libtool may fail to recognize shared libraries
6274
*** as such.  This will affect the creation of libtool libraries that
6275
*** depend on shared libraries, but programs linked with such libtool
6276
*** libraries will work regardless of this problem.  Nevertheless, you
6277
*** may want to report the problem to your system manager and/or to
6278
*** bug-libtool@gnu.org
6279
 
6280
EOF
6281
          fi ;;
6282
        esac
6283
      fi
6284
      break
6285
    fi
6286
  done
6287
  IFS="$lt_save_ifs"
6288
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6289
  ;;
6290
esac
6291
fi
6292
 
6293
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6294
if test -n "$MAGIC_CMD"; then
6295
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6296
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6297
else
6298
  { echo "$as_me:$LINENO: result: no" >&5
6299
echo "${ECHO_T}no" >&6; }
6300
fi
6301
 
6302
  else
6303
    MAGIC_CMD=:
6304
  fi
6305
fi
6306
 
6307
  fi
6308
  ;;
6309
esac
6310
 
6311
enable_dlopen=no
6312
enable_win32_dll=no
6313
 
6314
# Check whether --enable-libtool-lock was given.
6315
if test "${enable_libtool_lock+set}" = set; then
6316
  enableval=$enable_libtool_lock;
6317
fi
6318
 
6319
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6320
 
6321
 
6322
# Check whether --with-pic was given.
6323
if test "${with_pic+set}" = set; then
6324
  withval=$with_pic; pic_mode="$withval"
6325
else
6326
  pic_mode=default
6327
fi
6328
 
6329
test -z "$pic_mode" && pic_mode=default
6330
 
6331
# Use C for the default configuration in the libtool script
6332
tagname=
6333
lt_save_CC="$CC"
6334
ac_ext=c
6335
ac_cpp='$CPP $CPPFLAGS'
6336
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6337
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6338
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6339
 
6340
 
6341
# Source file extension for C test sources.
6342
ac_ext=c
6343
 
6344
# Object file extension for compiled C test sources.
6345
objext=o
6346
objext=$objext
6347
 
6348
# Code to be used in simple compile tests
6349
lt_simple_compile_test_code="int some_variable = 0;"
6350
 
6351
# Code to be used in simple link tests
6352
lt_simple_link_test_code='int main(){return(0);}'
6353
 
6354
 
6355
# If no C compiler was specified, use CC.
6356
LTCC=${LTCC-"$CC"}
6357
 
6358
# If no C compiler flags were specified, use CFLAGS.
6359
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6360
 
6361
# Allow CC to be a program name with arguments.
6362
compiler=$CC
6363
 
6364
 
6365
# save warnings/boilerplate of simple test code
6366
ac_outfile=conftest.$ac_objext
6367
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6368
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6369
_lt_compiler_boilerplate=`cat conftest.err`
6370
$rm conftest*
6371
 
6372
ac_outfile=conftest.$ac_objext
6373
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6374
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6375
_lt_linker_boilerplate=`cat conftest.err`
6376
$rm conftest*
6377
 
6378
 
6379
## CAVEAT EMPTOR:
6380
## There is no encapsulation within the following macros, do not change
6381
## the running order or otherwise move them around unless you know exactly
6382
## what you are doing...
6383
 
6384
lt_prog_compiler_no_builtin_flag=
6385
 
6386
if test "$GCC" = yes; then
6387
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6388
 
6389
 
6390
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6391
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6392
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6393
  echo $ECHO_N "(cached) $ECHO_C" >&6
6394
else
6395
  lt_cv_prog_compiler_rtti_exceptions=no
6396
  ac_outfile=conftest.$ac_objext
6397
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6398
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6399
   # Insert the option either (1) after the last *FLAGS variable, or
6400
   # (2) before a word containing "conftest.", or (3) at the end.
6401
   # Note that $ac_compile itself does not contain backslashes and begins
6402
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6403
   # The option is referenced via a variable to avoid confusing sed.
6404
   lt_compile=`echo "$ac_compile" | $SED \
6405
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6406
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6407
   -e 's:$: $lt_compiler_flag:'`
6408
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6409
   (eval "$lt_compile" 2>conftest.err)
6410
   ac_status=$?
6411
   cat conftest.err >&5
6412
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6413
   if (exit $ac_status) && test -s "$ac_outfile"; then
6414
     # The compiler can only warn and ignore the option if not recognized
6415
     # So say no if there are warnings other than the usual output.
6416
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6417
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6418
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6419
       lt_cv_prog_compiler_rtti_exceptions=yes
6420
     fi
6421
   fi
6422
   $rm conftest*
6423
 
6424
fi
6425
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6426
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6427
 
6428
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6429
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6430
else
6431
    :
6432
fi
6433
 
6434
fi
6435
 
6436
lt_prog_compiler_wl=
6437
lt_prog_compiler_pic=
6438
lt_prog_compiler_static=
6439
 
6440
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6441
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6442
 
6443
  if test "$GCC" = yes; then
6444
    lt_prog_compiler_wl='-Wl,'
6445
    lt_prog_compiler_static='-static'
6446
 
6447
    case $host_os in
6448
      aix*)
6449
      # All AIX code is PIC.
6450
      if test "$host_cpu" = ia64; then
6451
        # AIX 5 now supports IA64 processor
6452
        lt_prog_compiler_static='-Bstatic'
6453
      fi
6454
      ;;
6455
 
6456
    amigaos*)
6457
      # FIXME: we need at least 68020 code to build shared libraries, but
6458
      # adding the `-m68020' flag to GCC prevents building anything better,
6459
      # like `-m68040'.
6460
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6461
      ;;
6462
 
6463
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6464
      # PIC is the default for these OSes.
6465
      ;;
6466
 
6467
    mingw* | cygwin* | pw32* | os2*)
6468
      # This hack is so that the source file can tell whether it is being
6469
      # built for inclusion in a dll (and should export symbols for example).
6470
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6471
      # (--disable-auto-import) libraries
6472
      lt_prog_compiler_pic='-DDLL_EXPORT'
6473
      ;;
6474
 
6475
    darwin* | rhapsody*)
6476
      # PIC is the default on this platform
6477
      # Common symbols not allowed in MH_DYLIB files
6478
      lt_prog_compiler_pic='-fno-common'
6479
      ;;
6480
 
6481
    interix[3-9]*)
6482
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6483
      # Instead, we relocate shared libraries at runtime.
6484
      ;;
6485
 
6486
    msdosdjgpp*)
6487
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6488
      # on systems that don't support them.
6489
      lt_prog_compiler_can_build_shared=no
6490
      enable_shared=no
6491
      ;;
6492
 
6493
    sysv4*MP*)
6494
      if test -d /usr/nec; then
6495
        lt_prog_compiler_pic=-Kconform_pic
6496
      fi
6497
      ;;
6498
 
6499
    hpux*)
6500
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6501
      # not for PA HP-UX.
6502
      case $host_cpu in
6503
      hppa*64*|ia64*)
6504
        # +Z the default
6505
        ;;
6506
      *)
6507
        lt_prog_compiler_pic='-fPIC'
6508
        ;;
6509
      esac
6510
      ;;
6511
 
6512
    *)
6513
      lt_prog_compiler_pic='-fPIC'
6514
      ;;
6515
    esac
6516
  else
6517
    # PORTME Check for flag to pass linker flags through the system compiler.
6518
    case $host_os in
6519
    aix*)
6520
      lt_prog_compiler_wl='-Wl,'
6521
      if test "$host_cpu" = ia64; then
6522
        # AIX 5 now supports IA64 processor
6523
        lt_prog_compiler_static='-Bstatic'
6524
      else
6525
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6526
      fi
6527
      ;;
6528
      darwin*)
6529
        # PIC is the default on this platform
6530
        # Common symbols not allowed in MH_DYLIB files
6531
       case $cc_basename in
6532
         xlc*)
6533
         lt_prog_compiler_pic='-qnocommon'
6534
         lt_prog_compiler_wl='-Wl,'
6535
         ;;
6536
       esac
6537
       ;;
6538
 
6539
    mingw* | cygwin* | pw32* | os2*)
6540
      # This hack is so that the source file can tell whether it is being
6541
      # built for inclusion in a dll (and should export symbols for example).
6542
      lt_prog_compiler_pic='-DDLL_EXPORT'
6543
      ;;
6544
 
6545
    hpux9* | hpux10* | hpux11*)
6546
      lt_prog_compiler_wl='-Wl,'
6547
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6548
      # not for PA HP-UX.
6549
      case $host_cpu in
6550
      hppa*64*|ia64*)
6551
        # +Z the default
6552
        ;;
6553
      *)
6554
        lt_prog_compiler_pic='+Z'
6555
        ;;
6556
      esac
6557
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6558
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6559
      ;;
6560
 
6561
    irix5* | irix6* | nonstopux*)
6562
      lt_prog_compiler_wl='-Wl,'
6563
      # PIC (with -KPIC) is the default.
6564
      lt_prog_compiler_static='-non_shared'
6565
      ;;
6566
 
6567
    newsos6)
6568
      lt_prog_compiler_pic='-KPIC'
6569
      lt_prog_compiler_static='-Bstatic'
6570
      ;;
6571
 
6572
    linux* | k*bsd*-gnu)
6573
      case $cc_basename in
6574
      icc* | ecc*)
6575
        lt_prog_compiler_wl='-Wl,'
6576
        lt_prog_compiler_pic='-KPIC'
6577
        lt_prog_compiler_static='-static'
6578
        ;;
6579
      pgcc* | pgf77* | pgf90* | pgf95*)
6580
        # Portland Group compilers (*not* the Pentium gcc compiler,
6581
        # which looks to be a dead project)
6582
        lt_prog_compiler_wl='-Wl,'
6583
        lt_prog_compiler_pic='-fpic'
6584
        lt_prog_compiler_static='-Bstatic'
6585
        ;;
6586
      ccc*)
6587
        lt_prog_compiler_wl='-Wl,'
6588
        # All Alpha code is PIC.
6589
        lt_prog_compiler_static='-non_shared'
6590
        ;;
6591
      *)
6592
        case `$CC -V 2>&1 | sed 5q` in
6593
        *Sun\ C*)
6594
          # Sun C 5.9
6595
          lt_prog_compiler_pic='-KPIC'
6596
          lt_prog_compiler_static='-Bstatic'
6597
          lt_prog_compiler_wl='-Wl,'
6598
          ;;
6599
        *Sun\ F*)
6600
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6601
          lt_prog_compiler_pic='-KPIC'
6602
          lt_prog_compiler_static='-Bstatic'
6603
          lt_prog_compiler_wl=''
6604
          ;;
6605
        esac
6606
        ;;
6607
      esac
6608
      ;;
6609
 
6610
    osf3* | osf4* | osf5*)
6611
      lt_prog_compiler_wl='-Wl,'
6612
      # All OSF/1 code is PIC.
6613
      lt_prog_compiler_static='-non_shared'
6614
      ;;
6615
 
6616
    rdos*)
6617
      lt_prog_compiler_static='-non_shared'
6618
      ;;
6619
 
6620
    solaris*)
6621
      lt_prog_compiler_pic='-KPIC'
6622
      lt_prog_compiler_static='-Bstatic'
6623
      case $cc_basename in
6624
      f77* | f90* | f95*)
6625
        lt_prog_compiler_wl='-Qoption ld ';;
6626
      *)
6627
        lt_prog_compiler_wl='-Wl,';;
6628
      esac
6629
      ;;
6630
 
6631
    sunos4*)
6632
      lt_prog_compiler_wl='-Qoption ld '
6633
      lt_prog_compiler_pic='-PIC'
6634
      lt_prog_compiler_static='-Bstatic'
6635
      ;;
6636
 
6637
    sysv4 | sysv4.2uw2* | sysv4.3*)
6638
      lt_prog_compiler_wl='-Wl,'
6639
      lt_prog_compiler_pic='-KPIC'
6640
      lt_prog_compiler_static='-Bstatic'
6641
      ;;
6642
 
6643
    sysv4*MP*)
6644
      if test -d /usr/nec ;then
6645
        lt_prog_compiler_pic='-Kconform_pic'
6646
        lt_prog_compiler_static='-Bstatic'
6647
      fi
6648
      ;;
6649
 
6650
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6651
      lt_prog_compiler_wl='-Wl,'
6652
      lt_prog_compiler_pic='-KPIC'
6653
      lt_prog_compiler_static='-Bstatic'
6654
      ;;
6655
 
6656
    unicos*)
6657
      lt_prog_compiler_wl='-Wl,'
6658
      lt_prog_compiler_can_build_shared=no
6659
      ;;
6660
 
6661
    uts4*)
6662
      lt_prog_compiler_pic='-pic'
6663
      lt_prog_compiler_static='-Bstatic'
6664
      ;;
6665
 
6666
    *)
6667
      lt_prog_compiler_can_build_shared=no
6668
      ;;
6669
    esac
6670
  fi
6671
 
6672
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6673
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6674
 
6675
#
6676
# Check to make sure the PIC flag actually works.
6677
#
6678
if test -n "$lt_prog_compiler_pic"; then
6679
 
6680
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6681
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6682
if test "${lt_prog_compiler_pic_works+set}" = set; then
6683
  echo $ECHO_N "(cached) $ECHO_C" >&6
6684
else
6685
  lt_prog_compiler_pic_works=no
6686
  ac_outfile=conftest.$ac_objext
6687
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6688
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6689
   # Insert the option either (1) after the last *FLAGS variable, or
6690
   # (2) before a word containing "conftest.", or (3) at the end.
6691
   # Note that $ac_compile itself does not contain backslashes and begins
6692
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6693
   # The option is referenced via a variable to avoid confusing sed.
6694
   lt_compile=`echo "$ac_compile" | $SED \
6695
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6696
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6697
   -e 's:$: $lt_compiler_flag:'`
6698
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6699
   (eval "$lt_compile" 2>conftest.err)
6700
   ac_status=$?
6701
   cat conftest.err >&5
6702
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6703
   if (exit $ac_status) && test -s "$ac_outfile"; then
6704
     # The compiler can only warn and ignore the option if not recognized
6705
     # So say no if there are warnings other than the usual output.
6706
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6707
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6708
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6709
       lt_prog_compiler_pic_works=yes
6710
     fi
6711
   fi
6712
   $rm conftest*
6713
 
6714
fi
6715
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6716
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6717
 
6718
if test x"$lt_prog_compiler_pic_works" = xyes; then
6719
    case $lt_prog_compiler_pic in
6720
     "" | " "*) ;;
6721
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6722
     esac
6723
else
6724
    lt_prog_compiler_pic=
6725
     lt_prog_compiler_can_build_shared=no
6726
fi
6727
 
6728
fi
6729
case $host_os in
6730
  # For platforms which do not support PIC, -DPIC is meaningless:
6731
  *djgpp*)
6732
    lt_prog_compiler_pic=
6733
    ;;
6734
  *)
6735
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6736
    ;;
6737
esac
6738
 
6739
#
6740
# Check to make sure the static flag actually works.
6741
#
6742
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6743
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6744
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6745
if test "${lt_prog_compiler_static_works+set}" = set; then
6746
  echo $ECHO_N "(cached) $ECHO_C" >&6
6747
else
6748
  lt_prog_compiler_static_works=no
6749
   save_LDFLAGS="$LDFLAGS"
6750
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6751
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6752
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6753
     # The linker can only warn and ignore the option if not recognized
6754
     # So say no if there are warnings
6755
     if test -s conftest.err; then
6756
       # Append any errors to the config.log.
6757
       cat conftest.err 1>&5
6758
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6759
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6760
       if diff conftest.exp conftest.er2 >/dev/null; then
6761
         lt_prog_compiler_static_works=yes
6762
       fi
6763
     else
6764
       lt_prog_compiler_static_works=yes
6765
     fi
6766
   fi
6767
   $rm conftest*
6768
   LDFLAGS="$save_LDFLAGS"
6769
 
6770
fi
6771
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6772
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6773
 
6774
if test x"$lt_prog_compiler_static_works" = xyes; then
6775
    :
6776
else
6777
    lt_prog_compiler_static=
6778
fi
6779
 
6780
 
6781
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6782
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6783
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6784
  echo $ECHO_N "(cached) $ECHO_C" >&6
6785
else
6786
  lt_cv_prog_compiler_c_o=no
6787
   $rm -r conftest 2>/dev/null
6788
   mkdir conftest
6789
   cd conftest
6790
   mkdir out
6791
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6792
 
6793
   lt_compiler_flag="-o out/conftest2.$ac_objext"
6794
   # Insert the option either (1) after the last *FLAGS variable, or
6795
   # (2) before a word containing "conftest.", or (3) at the end.
6796
   # Note that $ac_compile itself does not contain backslashes and begins
6797
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6798
   lt_compile=`echo "$ac_compile" | $SED \
6799
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6800
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6801
   -e 's:$: $lt_compiler_flag:'`
6802
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6803
   (eval "$lt_compile" 2>out/conftest.err)
6804
   ac_status=$?
6805
   cat out/conftest.err >&5
6806
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6807
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6808
   then
6809
     # The compiler can only warn and ignore the option if not recognized
6810
     # So say no if there are warnings
6811
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6812
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6813
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6814
       lt_cv_prog_compiler_c_o=yes
6815
     fi
6816
   fi
6817
   chmod u+w . 2>&5
6818
   $rm conftest*
6819
   # SGI C++ compiler will create directory out/ii_files/ for
6820
   # template instantiation
6821
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6822
   $rm out/* && rmdir out
6823
   cd ..
6824
   rmdir conftest
6825
   $rm conftest*
6826
 
6827
fi
6828
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6829
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6830
 
6831
 
6832
hard_links="nottested"
6833
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6834
  # do not overwrite the value of need_locks provided by the user
6835
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6836
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6837
  hard_links=yes
6838
  $rm conftest*
6839
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6840
  touch conftest.a
6841
  ln conftest.a conftest.b 2>&5 || hard_links=no
6842
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6843
  { echo "$as_me:$LINENO: result: $hard_links" >&5
6844
echo "${ECHO_T}$hard_links" >&6; }
6845
  if test "$hard_links" = no; then
6846
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6847
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6848
    need_locks=warn
6849
  fi
6850
else
6851
  need_locks=no
6852
fi
6853
 
6854
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6855
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6856
 
6857
  runpath_var=
6858
  allow_undefined_flag=
6859
  enable_shared_with_static_runtimes=no
6860
  archive_cmds=
6861
  archive_expsym_cmds=
6862
  old_archive_From_new_cmds=
6863
  old_archive_from_expsyms_cmds=
6864
  export_dynamic_flag_spec=
6865
  whole_archive_flag_spec=
6866
  thread_safe_flag_spec=
6867
  hardcode_libdir_flag_spec=
6868
  hardcode_libdir_flag_spec_ld=
6869
  hardcode_libdir_separator=
6870
  hardcode_direct=no
6871
  hardcode_minus_L=no
6872
  hardcode_shlibpath_var=unsupported
6873
  link_all_deplibs=unknown
6874
  hardcode_automatic=no
6875
  module_cmds=
6876
  module_expsym_cmds=
6877
  always_export_symbols=no
6878
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6879
  # include_expsyms should be a list of space-separated symbols to be *always*
6880
  # included in the symbol list
6881
  include_expsyms=
6882
  # exclude_expsyms can be an extended regexp of symbols to exclude
6883
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6884
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6885
  # as well as any symbol that contains `d'.
6886
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6887
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6888
  # platforms (ab)use it in PIC code, but their linkers get confused if
6889
  # the symbol is explicitly referenced.  Since portable code cannot
6890
  # rely on this symbol name, it's probably fine to never include it in
6891
  # preloaded symbol tables.
6892
  extract_expsyms_cmds=
6893
  # Just being paranoid about ensuring that cc_basename is set.
6894
  for cc_temp in $compiler""; do
6895
  case $cc_temp in
6896
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6897
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6898
    \-*) ;;
6899
    *) break;;
6900
  esac
6901
done
6902
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6903
 
6904
  case $host_os in
6905
  cygwin* | mingw* | pw32*)
6906
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6907
    # When not using gcc, we currently assume that we are using
6908
    # Microsoft Visual C++.
6909
    if test "$GCC" != yes; then
6910
      with_gnu_ld=no
6911
    fi
6912
    ;;
6913
  interix*)
6914
    # we just hope/assume this is gcc and not c89 (= MSVC++)
6915
    with_gnu_ld=yes
6916
    ;;
6917
  openbsd*)
6918
    with_gnu_ld=no
6919
    ;;
6920
  esac
6921
 
6922
  ld_shlibs=yes
6923
  if test "$with_gnu_ld" = yes; then
6924
    # If archive_cmds runs LD, not CC, wlarc should be empty
6925
    wlarc='${wl}'
6926
 
6927
    # Set some defaults for GNU ld with shared library support. These
6928
    # are reset later if shared libraries are not supported. Putting them
6929
    # here allows them to be overridden if necessary.
6930
    runpath_var=LD_RUN_PATH
6931
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6932
    export_dynamic_flag_spec='${wl}--export-dynamic'
6933
    # ancient GNU ld didn't support --whole-archive et. al.
6934
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6935
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6936
      else
6937
        whole_archive_flag_spec=
6938
    fi
6939
    supports_anon_versioning=no
6940
    case `$LD -v 2>/dev/null` in
6941
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6942
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6943
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6944
      *\ 2.11.*) ;; # other 2.11 versions
6945
      *) supports_anon_versioning=yes ;;
6946
    esac
6947
 
6948
    # See if GNU ld supports shared libraries.
6949
    case $host_os in
6950
    aix3* | aix4* | aix5*)
6951
      # On AIX/PPC, the GNU linker is very broken
6952
      if test "$host_cpu" != ia64; then
6953
        ld_shlibs=no
6954
        cat <&2
6955
 
6956
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6957
*** to be unable to reliably create shared libraries on AIX.
6958
*** Therefore, libtool is disabling shared libraries support.  If you
6959
*** really care for shared libraries, you may want to modify your PATH
6960
*** so that a non-GNU linker is found, and then restart.
6961
 
6962
EOF
6963
      fi
6964
      ;;
6965
 
6966
    amigaos*)
6967
      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)'
6968
      hardcode_libdir_flag_spec='-L$libdir'
6969
      hardcode_minus_L=yes
6970
 
6971
      # Samuel A. Falvo II  reports
6972
      # that the semantics of dynamic libraries on AmigaOS, at least up
6973
      # to version 4, is to share data among multiple programs linked
6974
      # with the same dynamic library.  Since this doesn't match the
6975
      # behavior of shared libraries on other platforms, we can't use
6976
      # them.
6977
      ld_shlibs=no
6978
      ;;
6979
 
6980
    beos*)
6981
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6982
        allow_undefined_flag=unsupported
6983
        # Joseph Beckenbach  says some releases of gcc
6984
        # support --undefined.  This deserves some investigation.  FIXME
6985
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6986
      else
6987
        ld_shlibs=no
6988
      fi
6989
      ;;
6990
 
6991
    cygwin* | mingw* | pw32*)
6992
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6993
      # as there is no search path for DLLs.
6994
      hardcode_libdir_flag_spec='-L$libdir'
6995
      allow_undefined_flag=unsupported
6996
      always_export_symbols=no
6997
      enable_shared_with_static_runtimes=yes
6998
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6999
 
7000
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7001
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7002
        # If the export-symbols file already is a .def file (1st line
7003
        # is EXPORTS), use it as is; otherwise, prepend...
7004
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7005
          cp $export_symbols $output_objdir/$soname.def;
7006
        else
7007
          echo EXPORTS > $output_objdir/$soname.def;
7008
          cat $export_symbols >> $output_objdir/$soname.def;
7009
        fi~
7010
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7011
      else
7012
        ld_shlibs=no
7013
      fi
7014
      ;;
7015
 
7016
    interix[3-9]*)
7017
      hardcode_direct=no
7018
      hardcode_shlibpath_var=no
7019
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7020
      export_dynamic_flag_spec='${wl}-E'
7021
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7022
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7023
      # default) and relocated if they conflict, which is a slow very memory
7024
      # consuming and fragmenting process.  To avoid this, we pick a random,
7025
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7026
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7027
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7028
      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'
7029
      ;;
7030
 
7031
    gnu* | linux* | k*bsd*-gnu)
7032
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7033
        tmp_addflag=
7034
        case $cc_basename,$host_cpu in
7035
        pgcc*)                          # Portland Group C compiler
7036
          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'
7037
          tmp_addflag=' $pic_flag'
7038
          ;;
7039
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7040
          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'
7041
          tmp_addflag=' $pic_flag -Mnomain' ;;
7042
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7043
          tmp_addflag=' -i_dynamic' ;;
7044
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7045
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7046
        ifc* | ifort*)                  # Intel Fortran compiler
7047
          tmp_addflag=' -nofor_main' ;;
7048
        esac
7049
        case `$CC -V 2>&1 | sed 5q` in
7050
        *Sun\ C*)                       # Sun C 5.9
7051
          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'
7052
          tmp_sharedflag='-G' ;;
7053
        *Sun\ F*)                       # Sun Fortran 8.3
7054
          tmp_sharedflag='-G' ;;
7055
        *)
7056
          tmp_sharedflag='-shared' ;;
7057
        esac
7058
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7059
 
7060
        if test $supports_anon_versioning = yes; then
7061
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7062
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7063
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7064
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7065
        fi
7066
      else
7067
        ld_shlibs=no
7068
      fi
7069
      ;;
7070
 
7071
    netbsd*)
7072
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7073
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7074
        wlarc=
7075
      else
7076
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7077
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7078
      fi
7079
      ;;
7080
 
7081
    solaris*)
7082
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7083
        ld_shlibs=no
7084
        cat <&2
7085
 
7086
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7087
*** create shared libraries on Solaris systems.  Therefore, libtool
7088
*** is disabling shared libraries support.  We urge you to upgrade GNU
7089
*** binutils to release 2.9.1 or newer.  Another option is to modify
7090
*** your PATH or compiler configuration so that the native linker is
7091
*** used, and then restart.
7092
 
7093
EOF
7094
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7095
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7096
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7097
      else
7098
        ld_shlibs=no
7099
      fi
7100
      ;;
7101
 
7102
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7103
      case `$LD -v 2>&1` in
7104
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7105
        ld_shlibs=no
7106
        cat <<_LT_EOF 1>&2
7107
 
7108
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7109
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7110
*** is disabling shared libraries support.  We urge you to upgrade GNU
7111
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7112
*** your PATH or compiler configuration so that the native linker is
7113
*** used, and then restart.
7114
 
7115
_LT_EOF
7116
        ;;
7117
        *)
7118
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7119
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7120
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7121
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7122
          else
7123
            ld_shlibs=no
7124
          fi
7125
        ;;
7126
      esac
7127
      ;;
7128
 
7129
    sunos4*)
7130
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7131
      wlarc=
7132
      hardcode_direct=yes
7133
      hardcode_shlibpath_var=no
7134
      ;;
7135
 
7136
    *)
7137
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7138
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7139
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7140
      else
7141
        ld_shlibs=no
7142
      fi
7143
      ;;
7144
    esac
7145
 
7146
    if test "$ld_shlibs" = no; then
7147
      runpath_var=
7148
      hardcode_libdir_flag_spec=
7149
      export_dynamic_flag_spec=
7150
      whole_archive_flag_spec=
7151
    fi
7152
  else
7153
    # PORTME fill in a description of your system's linker (not GNU ld)
7154
    case $host_os in
7155
    aix3*)
7156
      allow_undefined_flag=unsupported
7157
      always_export_symbols=yes
7158
      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'
7159
      # Note: this linker hardcodes the directories in LIBPATH if there
7160
      # are no directories specified by -L.
7161
      hardcode_minus_L=yes
7162
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7163
        # Neither direct hardcoding nor static linking is supported with a
7164
        # broken collect2.
7165
        hardcode_direct=unsupported
7166
      fi
7167
      ;;
7168
 
7169
    aix4* | aix5*)
7170
      if test "$host_cpu" = ia64; then
7171
        # On IA64, the linker does run time linking by default, so we don't
7172
        # have to do anything special.
7173
        aix_use_runtimelinking=no
7174
        exp_sym_flag='-Bexport'
7175
        no_entry_flag=""
7176
      else
7177
        # If we're using GNU nm, then we don't want the "-C" option.
7178
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7179
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7180
          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'
7181
        else
7182
          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'
7183
        fi
7184
        aix_use_runtimelinking=no
7185
 
7186
        # Test if we are trying to use run time linking or normal
7187
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7188
        # need to do runtime linking.
7189
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7190
          for ld_flag in $LDFLAGS; do
7191
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7192
            aix_use_runtimelinking=yes
7193
            break
7194
          fi
7195
          done
7196
          ;;
7197
        esac
7198
 
7199
        exp_sym_flag='-bexport'
7200
        no_entry_flag='-bnoentry'
7201
      fi
7202
 
7203
      # When large executables or shared objects are built, AIX ld can
7204
      # have problems creating the table of contents.  If linking a library
7205
      # or program results in "error TOC overflow" add -mminimal-toc to
7206
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7207
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7208
 
7209
      archive_cmds=''
7210
      hardcode_direct=yes
7211
      hardcode_libdir_separator=':'
7212
      link_all_deplibs=yes
7213
 
7214
      if test "$GCC" = yes; then
7215
        case $host_os in aix4.[012]|aix4.[012].*)
7216
        # We only want to do this on AIX 4.2 and lower, the check
7217
        # below for broken collect2 doesn't work under 4.3+
7218
          collect2name=`${CC} -print-prog-name=collect2`
7219
          if test -f "$collect2name" && \
7220
           strings "$collect2name" | grep resolve_lib_name >/dev/null
7221
          then
7222
          # We have reworked collect2
7223
          :
7224
          else
7225
          # We have old collect2
7226
          hardcode_direct=unsupported
7227
          # It fails to find uninstalled libraries when the uninstalled
7228
          # path is not listed in the libpath.  Setting hardcode_minus_L
7229
          # to unsupported forces relinking
7230
          hardcode_minus_L=yes
7231
          hardcode_libdir_flag_spec='-L$libdir'
7232
          hardcode_libdir_separator=
7233
          fi
7234
          ;;
7235
        esac
7236
        shared_flag='-shared'
7237
        if test "$aix_use_runtimelinking" = yes; then
7238
          shared_flag="$shared_flag "'${wl}-G'
7239
        fi
7240
      else
7241
        # not using gcc
7242
        if test "$host_cpu" = ia64; then
7243
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7244
        # chokes on -Wl,-G. The following line is correct:
7245
          shared_flag='-G'
7246
        else
7247
          if test "$aix_use_runtimelinking" = yes; then
7248
            shared_flag='${wl}-G'
7249
          else
7250
            shared_flag='${wl}-bM:SRE'
7251
          fi
7252
        fi
7253
      fi
7254
 
7255
      # It seems that -bexpall does not export symbols beginning with
7256
      # underscore (_), so it is better to generate a list of symbols to export.
7257
      always_export_symbols=yes
7258
      if test "$aix_use_runtimelinking" = yes; then
7259
        # Warning - without using the other runtime loading flags (-brtl),
7260
        # -berok will link without error, but may produce a broken library.
7261
        allow_undefined_flag='-berok'
7262
       # Determine the default libpath from the value encoded in an empty executable.
7263
       cat >conftest.$ac_ext <<_ACEOF
7264
/* confdefs.h.  */
7265
_ACEOF
7266
cat confdefs.h >>conftest.$ac_ext
7267
cat >>conftest.$ac_ext <<_ACEOF
7268
/* end confdefs.h.  */
7269
 
7270
int
7271
main ()
7272
{
7273
 
7274
  ;
7275
  return 0;
7276
}
7277
_ACEOF
7278
rm -f conftest.$ac_objext conftest$ac_exeext
7279
if { (ac_try="$ac_link"
7280
case "(($ac_try" in
7281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282
  *) ac_try_echo=$ac_try;;
7283
esac
7284
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285
  (eval "$ac_link") 2>conftest.er1
7286
  ac_status=$?
7287
  grep -v '^ *+' conftest.er1 >conftest.err
7288
  rm -f conftest.er1
7289
  cat conftest.err >&5
7290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291
  (exit $ac_status); } && {
7292
         test -z "$ac_c_werror_flag" ||
7293
         test ! -s conftest.err
7294
       } && test -s conftest$ac_exeext &&
7295
       $as_test_x conftest$ac_exeext; then
7296
 
7297
lt_aix_libpath_sed='
7298
    /Import File Strings/,/^$/ {
7299
        /^0/ {
7300
            s/^0  *\(.*\)$/\1/
7301
            p
7302
        }
7303
    }'
7304
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7305
# Check for a 64-bit object if we didn't find anything.
7306
if test -z "$aix_libpath"; then
7307
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7308
fi
7309
else
7310
  echo "$as_me: failed program was:" >&5
7311
sed 's/^/| /' conftest.$ac_ext >&5
7312
 
7313
 
7314
fi
7315
 
7316
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7317
      conftest$ac_exeext conftest.$ac_ext
7318
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7319
 
7320
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7321
        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"
7322
       else
7323
        if test "$host_cpu" = ia64; then
7324
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7325
          allow_undefined_flag="-z nodefs"
7326
          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"
7327
        else
7328
         # Determine the default libpath from the value encoded in an empty executable.
7329
         cat >conftest.$ac_ext <<_ACEOF
7330
/* confdefs.h.  */
7331
_ACEOF
7332
cat confdefs.h >>conftest.$ac_ext
7333
cat >>conftest.$ac_ext <<_ACEOF
7334
/* end confdefs.h.  */
7335
 
7336
int
7337
main ()
7338
{
7339
 
7340
  ;
7341
  return 0;
7342
}
7343
_ACEOF
7344
rm -f conftest.$ac_objext conftest$ac_exeext
7345
if { (ac_try="$ac_link"
7346
case "(($ac_try" in
7347
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348
  *) ac_try_echo=$ac_try;;
7349
esac
7350
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7351
  (eval "$ac_link") 2>conftest.er1
7352
  ac_status=$?
7353
  grep -v '^ *+' conftest.er1 >conftest.err
7354
  rm -f conftest.er1
7355
  cat conftest.err >&5
7356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357
  (exit $ac_status); } && {
7358
         test -z "$ac_c_werror_flag" ||
7359
         test ! -s conftest.err
7360
       } && test -s conftest$ac_exeext &&
7361
       $as_test_x conftest$ac_exeext; then
7362
 
7363
lt_aix_libpath_sed='
7364
    /Import File Strings/,/^$/ {
7365
        /^0/ {
7366
            s/^0  *\(.*\)$/\1/
7367
            p
7368
        }
7369
    }'
7370
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7371
# Check for a 64-bit object if we didn't find anything.
7372
if test -z "$aix_libpath"; then
7373
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7374
fi
7375
else
7376
  echo "$as_me: failed program was:" >&5
7377
sed 's/^/| /' conftest.$ac_ext >&5
7378
 
7379
 
7380
fi
7381
 
7382
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7383
      conftest$ac_exeext conftest.$ac_ext
7384
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7385
 
7386
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7387
          # Warning - without using the other run time loading flags,
7388
          # -berok will link without error, but may produce a broken library.
7389
          no_undefined_flag=' ${wl}-bernotok'
7390
          allow_undefined_flag=' ${wl}-berok'
7391
          # Exported symbols can be pulled into shared objects from archives
7392
          whole_archive_flag_spec='$convenience'
7393
          archive_cmds_need_lc=yes
7394
          # This is similar to how AIX traditionally builds its shared libraries.
7395
          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'
7396
        fi
7397
      fi
7398
      ;;
7399
 
7400
    amigaos*)
7401
      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)'
7402
      hardcode_libdir_flag_spec='-L$libdir'
7403
      hardcode_minus_L=yes
7404
      # see comment about different semantics on the GNU ld section
7405
      ld_shlibs=no
7406
      ;;
7407
 
7408
    bsdi[45]*)
7409
      export_dynamic_flag_spec=-rdynamic
7410
      ;;
7411
 
7412
    cygwin* | mingw* | pw32*)
7413
      # When not using gcc, we currently assume that we are using
7414
      # Microsoft Visual C++.
7415
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7416
      # no search path for DLLs.
7417
      hardcode_libdir_flag_spec=' '
7418
      allow_undefined_flag=unsupported
7419
      # Tell ltmain to make .lib files, not .a files.
7420
      libext=lib
7421
      # Tell ltmain to make .dll files, not .so files.
7422
      shrext_cmds=".dll"
7423
      # FIXME: Setting linknames here is a bad hack.
7424
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7425
      # The linker will automatically build a .lib file if we build a DLL.
7426
      old_archive_From_new_cmds='true'
7427
      # FIXME: Should let the user specify the lib program.
7428
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7429
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7430
      enable_shared_with_static_runtimes=yes
7431
      ;;
7432
 
7433
    darwin* | rhapsody*)
7434
      case $host_os in
7435
        rhapsody* | darwin1.[012])
7436
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7437
         ;;
7438
       *) # Darwin 1.3 on
7439
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7440
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7441
         else
7442
           case ${MACOSX_DEPLOYMENT_TARGET} in
7443
             10.[012])
7444
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7445
               ;;
7446
             10.*)
7447
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7448
               ;;
7449
           esac
7450
         fi
7451
         ;;
7452
      esac
7453
      archive_cmds_need_lc=no
7454
      hardcode_direct=no
7455
      hardcode_automatic=yes
7456
      hardcode_shlibpath_var=unsupported
7457
      whole_archive_flag_spec=''
7458
      link_all_deplibs=yes
7459
    if test "$GCC" = yes ; then
7460
        output_verbose_link_cmd='echo'
7461
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7462
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7463
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7464
      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}'
7465
      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}'
7466
    else
7467
      case $cc_basename in
7468
        xlc*)
7469
         output_verbose_link_cmd='echo'
7470
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7471
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7472
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7473
         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}'
7474
          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}'
7475
          ;;
7476
       *)
7477
         ld_shlibs=no
7478
          ;;
7479
      esac
7480
    fi
7481
      ;;
7482
 
7483
    dgux*)
7484
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7485
      hardcode_libdir_flag_spec='-L$libdir'
7486
      hardcode_shlibpath_var=no
7487
      ;;
7488
 
7489
    freebsd1*)
7490
      ld_shlibs=no
7491
      ;;
7492
 
7493
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7494
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7495
    # does not break anything, and helps significantly (at the cost of a little
7496
    # extra space).
7497
    freebsd2.2*)
7498
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7499
      hardcode_libdir_flag_spec='-R$libdir'
7500
      hardcode_direct=yes
7501
      hardcode_shlibpath_var=no
7502
      ;;
7503
 
7504
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7505
    freebsd2*)
7506
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7507
      hardcode_direct=yes
7508
      hardcode_minus_L=yes
7509
      hardcode_shlibpath_var=no
7510
      ;;
7511
 
7512
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7513
    freebsd* | dragonfly*)
7514
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7515
      hardcode_libdir_flag_spec='-R$libdir'
7516
      hardcode_direct=yes
7517
      hardcode_shlibpath_var=no
7518
      ;;
7519
 
7520
    hpux9*)
7521
      if test "$GCC" = yes; then
7522
        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'
7523
      else
7524
        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'
7525
      fi
7526
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7527
      hardcode_libdir_separator=:
7528
      hardcode_direct=yes
7529
 
7530
      # hardcode_minus_L: Not really in the search PATH,
7531
      # but as the default location of the library.
7532
      hardcode_minus_L=yes
7533
      export_dynamic_flag_spec='${wl}-E'
7534
      ;;
7535
 
7536
    hpux10*)
7537
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7538
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7539
      else
7540
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7541
      fi
7542
      if test "$with_gnu_ld" = no; then
7543
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7544
        hardcode_libdir_separator=:
7545
 
7546
        hardcode_direct=yes
7547
        export_dynamic_flag_spec='${wl}-E'
7548
 
7549
        # hardcode_minus_L: Not really in the search PATH,
7550
        # but as the default location of the library.
7551
        hardcode_minus_L=yes
7552
      fi
7553
      ;;
7554
 
7555
    hpux11*)
7556
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7557
        case $host_cpu in
7558
        hppa*64*)
7559
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7560
          ;;
7561
        ia64*)
7562
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7563
          ;;
7564
        *)
7565
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7566
          ;;
7567
        esac
7568
      else
7569
        case $host_cpu in
7570
        hppa*64*)
7571
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7572
          ;;
7573
        ia64*)
7574
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7575
          ;;
7576
        *)
7577
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7578
          ;;
7579
        esac
7580
      fi
7581
      if test "$with_gnu_ld" = no; then
7582
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7583
        hardcode_libdir_separator=:
7584
 
7585
        case $host_cpu in
7586
        hppa*64*|ia64*)
7587
          hardcode_libdir_flag_spec_ld='+b $libdir'
7588
          hardcode_direct=no
7589
          hardcode_shlibpath_var=no
7590
          ;;
7591
        *)
7592
          hardcode_direct=yes
7593
          export_dynamic_flag_spec='${wl}-E'
7594
 
7595
          # hardcode_minus_L: Not really in the search PATH,
7596
          # but as the default location of the library.
7597
          hardcode_minus_L=yes
7598
          ;;
7599
        esac
7600
      fi
7601
      ;;
7602
 
7603
    irix5* | irix6* | nonstopux*)
7604
      if test "$GCC" = yes; then
7605
        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'
7606
      else
7607
        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'
7608
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7609
      fi
7610
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7611
      hardcode_libdir_separator=:
7612
      link_all_deplibs=yes
7613
      ;;
7614
 
7615
    netbsd*)
7616
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7617
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7618
      else
7619
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7620
      fi
7621
      hardcode_libdir_flag_spec='-R$libdir'
7622
      hardcode_direct=yes
7623
      hardcode_shlibpath_var=no
7624
      ;;
7625
 
7626
    newsos6)
7627
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7628
      hardcode_direct=yes
7629
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7630
      hardcode_libdir_separator=:
7631
      hardcode_shlibpath_var=no
7632
      ;;
7633
 
7634
    openbsd*)
7635
      if test -f /usr/libexec/ld.so; then
7636
        hardcode_direct=yes
7637
        hardcode_shlibpath_var=no
7638
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7639
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7640
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7641
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7642
          export_dynamic_flag_spec='${wl}-E'
7643
        else
7644
          case $host_os in
7645
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7646
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7647
             hardcode_libdir_flag_spec='-R$libdir'
7648
             ;;
7649
           *)
7650
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7651
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7652
             ;;
7653
          esac
7654
        fi
7655
      else
7656
        ld_shlibs=no
7657
      fi
7658
      ;;
7659
 
7660
    os2*)
7661
      hardcode_libdir_flag_spec='-L$libdir'
7662
      hardcode_minus_L=yes
7663
      allow_undefined_flag=unsupported
7664
      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'
7665
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7666
      ;;
7667
 
7668
    osf3*)
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7672
      else
7673
        allow_undefined_flag=' -expect_unresolved \*'
7674
        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'
7675
      fi
7676
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7677
      hardcode_libdir_separator=:
7678
      ;;
7679
 
7680
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7681
      if test "$GCC" = yes; then
7682
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7683
        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'
7684
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7685
      else
7686
        allow_undefined_flag=' -expect_unresolved \*'
7687
        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'
7688
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7689
        $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'
7690
 
7691
        # Both c and cxx compiler support -rpath directly
7692
        hardcode_libdir_flag_spec='-rpath $libdir'
7693
      fi
7694
      hardcode_libdir_separator=:
7695
      ;;
7696
 
7697
    solaris*)
7698
      no_undefined_flag=' -z text'
7699
      if test "$GCC" = yes; then
7700
        wlarc='${wl}'
7701
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7702
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7703
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7704
      else
7705
        wlarc=''
7706
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7707
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7708
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7709
      fi
7710
      hardcode_libdir_flag_spec='-R$libdir'
7711
      hardcode_shlibpath_var=no
7712
      case $host_os in
7713
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7714
      *)
7715
        # The compiler driver will combine and reorder linker options,
7716
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
7717
        # but is careful enough not to reorder.
7718
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7719
        if test "$GCC" = yes; then
7720
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7721
        else
7722
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7723
        fi
7724
        ;;
7725
      esac
7726
      link_all_deplibs=yes
7727
      ;;
7728
 
7729
    sunos4*)
7730
      if test "x$host_vendor" = xsequent; then
7731
        # Use $CC to link under sequent, because it throws in some extra .o
7732
        # files that make .init and .fini sections work.
7733
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7734
      else
7735
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7736
      fi
7737
      hardcode_libdir_flag_spec='-L$libdir'
7738
      hardcode_direct=yes
7739
      hardcode_minus_L=yes
7740
      hardcode_shlibpath_var=no
7741
      ;;
7742
 
7743
    sysv4)
7744
      case $host_vendor in
7745
        sni)
7746
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7747
          hardcode_direct=yes # is this really true???
7748
        ;;
7749
        siemens)
7750
          ## LD is ld it makes a PLAMLIB
7751
          ## CC just makes a GrossModule.
7752
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7753
          reload_cmds='$CC -r -o $output$reload_objs'
7754
          hardcode_direct=no
7755
        ;;
7756
        motorola)
7757
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7758
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7759
        ;;
7760
      esac
7761
      runpath_var='LD_RUN_PATH'
7762
      hardcode_shlibpath_var=no
7763
      ;;
7764
 
7765
    sysv4.3*)
7766
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7767
      hardcode_shlibpath_var=no
7768
      export_dynamic_flag_spec='-Bexport'
7769
      ;;
7770
 
7771
    sysv4*MP*)
7772
      if test -d /usr/nec; then
7773
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7774
        hardcode_shlibpath_var=no
7775
        runpath_var=LD_RUN_PATH
7776
        hardcode_runpath_var=yes
7777
        ld_shlibs=yes
7778
      fi
7779
      ;;
7780
 
7781
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7782
      no_undefined_flag='${wl}-z,text'
7783
      archive_cmds_need_lc=no
7784
      hardcode_shlibpath_var=no
7785
      runpath_var='LD_RUN_PATH'
7786
 
7787
      if test "$GCC" = yes; then
7788
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7789
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7790
      else
7791
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7792
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7793
      fi
7794
      ;;
7795
 
7796
    sysv5* | sco3.2v5* | sco5v6*)
7797
      # Note: We can NOT use -z defs as we might desire, because we do not
7798
      # link with -lc, and that would cause any symbols used from libc to
7799
      # always be unresolved, which means just about no library would
7800
      # ever link correctly.  If we're not using GNU ld we use -z text
7801
      # though, which does catch some bad symbols but isn't as heavy-handed
7802
      # as -z defs.
7803
      no_undefined_flag='${wl}-z,text'
7804
      allow_undefined_flag='${wl}-z,nodefs'
7805
      archive_cmds_need_lc=no
7806
      hardcode_shlibpath_var=no
7807
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7808
      hardcode_libdir_separator=':'
7809
      link_all_deplibs=yes
7810
      export_dynamic_flag_spec='${wl}-Bexport'
7811
      runpath_var='LD_RUN_PATH'
7812
 
7813
      if test "$GCC" = yes; then
7814
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7815
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7816
      else
7817
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7818
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7819
      fi
7820
      ;;
7821
 
7822
    uts4*)
7823
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7824
      hardcode_libdir_flag_spec='-L$libdir'
7825
      hardcode_shlibpath_var=no
7826
      ;;
7827
 
7828
    *)
7829
      ld_shlibs=no
7830
      ;;
7831
    esac
7832
  fi
7833
 
7834
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7835
echo "${ECHO_T}$ld_shlibs" >&6; }
7836
test "$ld_shlibs" = no && can_build_shared=no
7837
 
7838
#
7839
# Do we need to explicitly link libc?
7840
#
7841
case "x$archive_cmds_need_lc" in
7842
x|xyes)
7843
  # Assume -lc should be added
7844
  archive_cmds_need_lc=yes
7845
 
7846
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7847
    case $archive_cmds in
7848
    *'~'*)
7849
      # FIXME: we may have to deal with multi-command sequences.
7850
      ;;
7851
    '$CC '*)
7852
      # Test whether the compiler implicitly links with -lc since on some
7853
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7854
      # to ld, don't add -lc before -lgcc.
7855
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7856
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7857
      $rm conftest*
7858
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7859
 
7860
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7861
  (eval $ac_compile) 2>&5
7862
  ac_status=$?
7863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864
  (exit $ac_status); } 2>conftest.err; then
7865
        soname=conftest
7866
        lib=conftest
7867
        libobjs=conftest.$ac_objext
7868
        deplibs=
7869
        wl=$lt_prog_compiler_wl
7870
        pic_flag=$lt_prog_compiler_pic
7871
        compiler_flags=-v
7872
        linker_flags=-v
7873
        verstring=
7874
        output_objdir=.
7875
        libname=conftest
7876
        lt_save_allow_undefined_flag=$allow_undefined_flag
7877
        allow_undefined_flag=
7878
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7879
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7880
  ac_status=$?
7881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882
  (exit $ac_status); }
7883
        then
7884
          archive_cmds_need_lc=no
7885
        else
7886
          archive_cmds_need_lc=yes
7887
        fi
7888
        allow_undefined_flag=$lt_save_allow_undefined_flag
7889
      else
7890
        cat conftest.err 1>&5
7891
      fi
7892
      $rm conftest*
7893
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7894
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7895
      ;;
7896
    esac
7897
  fi
7898
  ;;
7899
esac
7900
 
7901
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7902
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7903
library_names_spec=
7904
libname_spec='lib$name'
7905
soname_spec=
7906
shrext_cmds=".so"
7907
postinstall_cmds=
7908
postuninstall_cmds=
7909
finish_cmds=
7910
finish_eval=
7911
shlibpath_var=
7912
shlibpath_overrides_runpath=unknown
7913
version_type=none
7914
dynamic_linker="$host_os ld.so"
7915
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7916
 
7917
if test "$GCC" = yes; then
7918
  case $host_os in
7919
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7920
    *) lt_awk_arg="/^libraries:/" ;;
7921
  esac
7922
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7923
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7924
    # if the path contains ";" then we assume it to be the separator
7925
    # otherwise default to the standard path separator (i.e. ":") - it is
7926
    # assumed that no part of a normal pathname contains ";" but that should
7927
    # okay in the real world where ";" in dirpaths is itself problematic.
7928
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7929
  else
7930
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7931
  fi
7932
  # Ok, now we have the path, separated by spaces, we can step through it
7933
  # and add multilib dir if necessary.
7934
  lt_tmp_lt_search_path_spec=
7935
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7936
  for lt_sys_path in $lt_search_path_spec; do
7937
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7938
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7939
    else
7940
      test -d "$lt_sys_path" && \
7941
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7942
    fi
7943
  done
7944
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
7945
BEGIN {RS=" "; FS="/|\n";} {
7946
  lt_foo="";
7947
  lt_count=0;
7948
  for (lt_i = NF; lt_i > 0; lt_i--) {
7949
    if ($lt_i != "" && $lt_i != ".") {
7950
      if ($lt_i == "..") {
7951
        lt_count++;
7952
      } else {
7953
        if (lt_count == 0) {
7954
          lt_foo="/" $lt_i lt_foo;
7955
        } else {
7956
          lt_count--;
7957
        }
7958
      }
7959
    }
7960
  }
7961
  if (lt_foo != "") { lt_freq[lt_foo]++; }
7962
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
7963
}'`
7964
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
7965
else
7966
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7967
fi
7968
need_lib_prefix=unknown
7969
hardcode_into_libs=no
7970
 
7971
# when you set need_version to no, make sure it does not cause -set_version
7972
# flags to be left without arguments
7973
need_version=unknown
7974
 
7975
case $host_os in
7976
aix3*)
7977
  version_type=linux
7978
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7979
  shlibpath_var=LIBPATH
7980
 
7981
  # AIX 3 has no versioning support, so we append a major version to the name.
7982
  soname_spec='${libname}${release}${shared_ext}$major'
7983
  ;;
7984
 
7985
aix4* | aix5*)
7986
  version_type=linux
7987
  need_lib_prefix=no
7988
  need_version=no
7989
  hardcode_into_libs=yes
7990
  if test "$host_cpu" = ia64; then
7991
    # AIX 5 supports IA64
7992
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7993
    shlibpath_var=LD_LIBRARY_PATH
7994
  else
7995
    # With GCC up to 2.95.x, collect2 would create an import file
7996
    # for dependence libraries.  The import file would start with
7997
    # the line `#! .'.  This would cause the generated library to
7998
    # depend on `.', always an invalid library.  This was fixed in
7999
    # development snapshots of GCC prior to 3.0.
8000
    case $host_os in
8001
      aix4 | aix4.[01] | aix4.[01].*)
8002
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8003
           echo ' yes '
8004
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8005
        :
8006
      else
8007
        can_build_shared=no
8008
      fi
8009
      ;;
8010
    esac
8011
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8012
    # soname into executable. Probably we can add versioning support to
8013
    # collect2, so additional links can be useful in future.
8014
    if test "$aix_use_runtimelinking" = yes; then
8015
      # If using run time linking (on AIX 4.2 or later) use lib.so
8016
      # instead of lib.a to let people know that these are not
8017
      # typical AIX shared libraries.
8018
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8019
    else
8020
      # We preserve .a as extension for shared libraries through AIX4.2
8021
      # and later when we are not doing run time linking.
8022
      library_names_spec='${libname}${release}.a $libname.a'
8023
      soname_spec='${libname}${release}${shared_ext}$major'
8024
    fi
8025
    shlibpath_var=LIBPATH
8026
  fi
8027
  ;;
8028
 
8029
amigaos*)
8030
  library_names_spec='$libname.ixlibrary $libname.a'
8031
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8032
  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'
8033
  ;;
8034
 
8035
beos*)
8036
  library_names_spec='${libname}${shared_ext}'
8037
  dynamic_linker="$host_os ld.so"
8038
  shlibpath_var=LIBRARY_PATH
8039
  ;;
8040
 
8041
bsdi[45]*)
8042
  version_type=linux
8043
  need_version=no
8044
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8045
  soname_spec='${libname}${release}${shared_ext}$major'
8046
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8047
  shlibpath_var=LD_LIBRARY_PATH
8048
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8049
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8050
  # the default ld.so.conf also contains /usr/contrib/lib and
8051
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8052
  # libtool to hard-code these into programs
8053
  ;;
8054
 
8055
cygwin* | mingw* | pw32*)
8056
  version_type=windows
8057
  shrext_cmds=".dll"
8058
  need_version=no
8059
  need_lib_prefix=no
8060
 
8061
  case $GCC,$host_os in
8062
  yes,cygwin* | yes,mingw* | yes,pw32*)
8063
    library_names_spec='$libname.dll.a'
8064
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8065
    postinstall_cmds='base_file=`basename \${file}`~
8066
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8067
      dldir=$destdir/`dirname \$dlpath`~
8068
      test -d \$dldir || mkdir -p \$dldir~
8069
      $install_prog $dir/$dlname \$dldir/$dlname~
8070
      chmod a+x \$dldir/$dlname'
8071
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8072
      dlpath=$dir/\$dldll~
8073
       $rm \$dlpath'
8074
    shlibpath_overrides_runpath=yes
8075
 
8076
    case $host_os in
8077
    cygwin*)
8078
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8079
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8080
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8081
      ;;
8082
    mingw*)
8083
      # MinGW DLLs use traditional 'lib' prefix
8084
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8085
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8086
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8087
        # It is most probably a Windows format PATH printed by
8088
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8089
        # path with ; separators, and with drive letters. We can handle the
8090
        # drive letters (cygwin fileutils understands them), so leave them,
8091
        # especially as we might pass files found there to a mingw objdump,
8092
        # which wouldn't understand a cygwinified path. Ahh.
8093
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8094
      else
8095
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8096
      fi
8097
      ;;
8098
    pw32*)
8099
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8100
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8101
      ;;
8102
    esac
8103
    ;;
8104
 
8105
  *)
8106
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8107
    ;;
8108
  esac
8109
  dynamic_linker='Win32 ld.exe'
8110
  # FIXME: first we should search . and the directory the executable is in
8111
  shlibpath_var=PATH
8112
  ;;
8113
 
8114
darwin* | rhapsody*)
8115
  dynamic_linker="$host_os dyld"
8116
  version_type=darwin
8117
  need_lib_prefix=no
8118
  need_version=no
8119
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8120
  soname_spec='${libname}${release}${major}$shared_ext'
8121
  shlibpath_overrides_runpath=yes
8122
  shlibpath_var=DYLD_LIBRARY_PATH
8123
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8124
 
8125
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8126
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8127
  ;;
8128
 
8129
dgux*)
8130
  version_type=linux
8131
  need_lib_prefix=no
8132
  need_version=no
8133
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8134
  soname_spec='${libname}${release}${shared_ext}$major'
8135
  shlibpath_var=LD_LIBRARY_PATH
8136
  ;;
8137
 
8138
freebsd1*)
8139
  dynamic_linker=no
8140
  ;;
8141
 
8142
freebsd* | dragonfly*)
8143
  # DragonFly does not have aout.  When/if they implement a new
8144
  # versioning mechanism, adjust this.
8145
  if test -x /usr/bin/objformat; then
8146
    objformat=`/usr/bin/objformat`
8147
  else
8148
    case $host_os in
8149
    freebsd[123]*) objformat=aout ;;
8150
    *) objformat=elf ;;
8151
    esac
8152
  fi
8153
  version_type=freebsd-$objformat
8154
  case $version_type in
8155
    freebsd-elf*)
8156
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8157
      need_version=no
8158
      need_lib_prefix=no
8159
      ;;
8160
    freebsd-*)
8161
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8162
      need_version=yes
8163
      ;;
8164
  esac
8165
  shlibpath_var=LD_LIBRARY_PATH
8166
  case $host_os in
8167
  freebsd2*)
8168
    shlibpath_overrides_runpath=yes
8169
    ;;
8170
  freebsd3.[01]* | freebsdelf3.[01]*)
8171
    shlibpath_overrides_runpath=yes
8172
    hardcode_into_libs=yes
8173
    ;;
8174
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8175
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8176
    shlibpath_overrides_runpath=no
8177
    hardcode_into_libs=yes
8178
    ;;
8179
  *) # from 4.6 on, and DragonFly
8180
    shlibpath_overrides_runpath=yes
8181
    hardcode_into_libs=yes
8182
    ;;
8183
  esac
8184
  ;;
8185
 
8186
gnu*)
8187
  version_type=linux
8188
  need_lib_prefix=no
8189
  need_version=no
8190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8191
  soname_spec='${libname}${release}${shared_ext}$major'
8192
  shlibpath_var=LD_LIBRARY_PATH
8193
  hardcode_into_libs=yes
8194
  ;;
8195
 
8196
hpux9* | hpux10* | hpux11*)
8197
  # Give a soname corresponding to the major version so that dld.sl refuses to
8198
  # link against other versions.
8199
  version_type=sunos
8200
  need_lib_prefix=no
8201
  need_version=no
8202
  case $host_cpu in
8203
  ia64*)
8204
    shrext_cmds='.so'
8205
    hardcode_into_libs=yes
8206
    dynamic_linker="$host_os dld.so"
8207
    shlibpath_var=LD_LIBRARY_PATH
8208
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8209
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8210
    soname_spec='${libname}${release}${shared_ext}$major'
8211
    if test "X$HPUX_IA64_MODE" = X32; then
8212
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8213
    else
8214
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8215
    fi
8216
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8217
    ;;
8218
   hppa*64*)
8219
     shrext_cmds='.sl'
8220
     hardcode_into_libs=yes
8221
     dynamic_linker="$host_os dld.sl"
8222
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8223
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8224
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8225
     soname_spec='${libname}${release}${shared_ext}$major'
8226
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8227
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8228
     ;;
8229
   *)
8230
    shrext_cmds='.sl'
8231
    dynamic_linker="$host_os dld.sl"
8232
    shlibpath_var=SHLIB_PATH
8233
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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
    ;;
8237
  esac
8238
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8239
  postinstall_cmds='chmod 555 $lib'
8240
  ;;
8241
 
8242
interix[3-9]*)
8243
  version_type=linux
8244
  need_lib_prefix=no
8245
  need_version=no
8246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8247
  soname_spec='${libname}${release}${shared_ext}$major'
8248
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8249
  shlibpath_var=LD_LIBRARY_PATH
8250
  shlibpath_overrides_runpath=no
8251
  hardcode_into_libs=yes
8252
  ;;
8253
 
8254
irix5* | irix6* | nonstopux*)
8255
  case $host_os in
8256
    nonstopux*) version_type=nonstopux ;;
8257
    *)
8258
        if test "$lt_cv_prog_gnu_ld" = yes; then
8259
                version_type=linux
8260
        else
8261
                version_type=irix
8262
        fi ;;
8263
  esac
8264
  need_lib_prefix=no
8265
  need_version=no
8266
  soname_spec='${libname}${release}${shared_ext}$major'
8267
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8268
  case $host_os in
8269
  irix5* | nonstopux*)
8270
    libsuff= shlibsuff=
8271
    ;;
8272
  *)
8273
    case $LD in # libtool.m4 will add one of these switches to LD
8274
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8275
      libsuff= shlibsuff= libmagic=32-bit;;
8276
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8277
      libsuff=32 shlibsuff=N32 libmagic=N32;;
8278
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8279
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8280
    *) libsuff= shlibsuff= libmagic=never-match;;
8281
    esac
8282
    ;;
8283
  esac
8284
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8285
  shlibpath_overrides_runpath=no
8286
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8287
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8288
  hardcode_into_libs=yes
8289
  ;;
8290
 
8291
# No shared lib support for Linux oldld, aout, or coff.
8292
linux*oldld* | linux*aout* | linux*coff*)
8293
  dynamic_linker=no
8294
  ;;
8295
 
8296
# This must be Linux ELF.
8297
linux* | k*bsd*-gnu)
8298
  version_type=linux
8299
  need_lib_prefix=no
8300
  need_version=no
8301
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8302
  soname_spec='${libname}${release}${shared_ext}$major'
8303
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8304
  shlibpath_var=LD_LIBRARY_PATH
8305
  shlibpath_overrides_runpath=no
8306
  # This implies no fast_install, which is unacceptable.
8307
  # Some rework will be needed to allow for fast_install
8308
  # before this can be enabled.
8309
  hardcode_into_libs=yes
8310
 
8311
  # Append ld.so.conf contents to the search path
8312
  if test -f /etc/ld.so.conf; then
8313
    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' ' '`
8314 60 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8315 19 jeremybenn
  fi
8316
 
8317
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8318
  # powerpc, because MkLinux only supported shared libraries with the
8319
  # GNU dynamic linker.  Since this was broken with cross compilers,
8320
  # most powerpc-linux boxes support dynamic linking these days and
8321
  # people can always --disable-shared, the test was removed, and we
8322
  # assume the GNU/Linux dynamic linker is in use.
8323
  dynamic_linker='GNU/Linux ld.so'
8324
  ;;
8325
 
8326
netbsd*)
8327
  version_type=sunos
8328
  need_lib_prefix=no
8329
  need_version=no
8330
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8331
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8332
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8333
    dynamic_linker='NetBSD (a.out) ld.so'
8334
  else
8335
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8336
    soname_spec='${libname}${release}${shared_ext}$major'
8337
    dynamic_linker='NetBSD ld.elf_so'
8338
  fi
8339
  shlibpath_var=LD_LIBRARY_PATH
8340
  shlibpath_overrides_runpath=yes
8341
  hardcode_into_libs=yes
8342
  ;;
8343
 
8344
newsos6)
8345
  version_type=linux
8346
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8347
  shlibpath_var=LD_LIBRARY_PATH
8348
  shlibpath_overrides_runpath=yes
8349
  ;;
8350
 
8351
nto-qnx*)
8352
  version_type=linux
8353
  need_lib_prefix=no
8354
  need_version=no
8355
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8356
  soname_spec='${libname}${release}${shared_ext}$major'
8357
  shlibpath_var=LD_LIBRARY_PATH
8358
  shlibpath_overrides_runpath=yes
8359
  ;;
8360
 
8361
openbsd*)
8362
  version_type=sunos
8363
  sys_lib_dlsearch_path_spec="/usr/lib"
8364
  need_lib_prefix=no
8365
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8366
  case $host_os in
8367
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8368
    *)                         need_version=no  ;;
8369
  esac
8370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8371
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8372
  shlibpath_var=LD_LIBRARY_PATH
8373
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8374
    case $host_os in
8375
      openbsd2.[89] | openbsd2.[89].*)
8376
        shlibpath_overrides_runpath=no
8377
        ;;
8378
      *)
8379
        shlibpath_overrides_runpath=yes
8380
        ;;
8381
      esac
8382
  else
8383
    shlibpath_overrides_runpath=yes
8384
  fi
8385
  ;;
8386
 
8387
os2*)
8388
  libname_spec='$name'
8389
  shrext_cmds=".dll"
8390
  need_lib_prefix=no
8391
  library_names_spec='$libname${shared_ext} $libname.a'
8392
  dynamic_linker='OS/2 ld.exe'
8393
  shlibpath_var=LIBPATH
8394
  ;;
8395
 
8396
osf3* | osf4* | osf5*)
8397
  version_type=osf
8398
  need_lib_prefix=no
8399
  need_version=no
8400
  soname_spec='${libname}${release}${shared_ext}$major'
8401
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8402
  shlibpath_var=LD_LIBRARY_PATH
8403
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8404
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8405
  ;;
8406
 
8407
rdos*)
8408
  dynamic_linker=no
8409
  ;;
8410
 
8411
solaris*)
8412
  version_type=linux
8413
  need_lib_prefix=no
8414
  need_version=no
8415
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8416
  soname_spec='${libname}${release}${shared_ext}$major'
8417
  shlibpath_var=LD_LIBRARY_PATH
8418
  shlibpath_overrides_runpath=yes
8419
  hardcode_into_libs=yes
8420
  # ldd complains unless libraries are executable
8421
  postinstall_cmds='chmod +x $lib'
8422
  ;;
8423
 
8424
sunos4*)
8425
  version_type=sunos
8426
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8427
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8428
  shlibpath_var=LD_LIBRARY_PATH
8429
  shlibpath_overrides_runpath=yes
8430
  if test "$with_gnu_ld" = yes; then
8431
    need_lib_prefix=no
8432
  fi
8433
  need_version=yes
8434
  ;;
8435
 
8436
sysv4 | sysv4.3*)
8437
  version_type=linux
8438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8439
  soname_spec='${libname}${release}${shared_ext}$major'
8440
  shlibpath_var=LD_LIBRARY_PATH
8441
  case $host_vendor in
8442
    sni)
8443
      shlibpath_overrides_runpath=no
8444
      need_lib_prefix=no
8445
      export_dynamic_flag_spec='${wl}-Blargedynsym'
8446
      runpath_var=LD_RUN_PATH
8447
      ;;
8448
    siemens)
8449
      need_lib_prefix=no
8450
      ;;
8451
    motorola)
8452
      need_lib_prefix=no
8453
      need_version=no
8454
      shlibpath_overrides_runpath=no
8455
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8456
      ;;
8457
  esac
8458
  ;;
8459
 
8460
sysv4*MP*)
8461
  if test -d /usr/nec ;then
8462
    version_type=linux
8463
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8464
    soname_spec='$libname${shared_ext}.$major'
8465
    shlibpath_var=LD_LIBRARY_PATH
8466
  fi
8467
  ;;
8468
 
8469
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8470
  version_type=freebsd-elf
8471
  need_lib_prefix=no
8472
  need_version=no
8473
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8474
  soname_spec='${libname}${release}${shared_ext}$major'
8475
  shlibpath_var=LD_LIBRARY_PATH
8476
  hardcode_into_libs=yes
8477
  if test "$with_gnu_ld" = yes; then
8478
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8479
    shlibpath_overrides_runpath=no
8480
  else
8481
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8482
    shlibpath_overrides_runpath=yes
8483
    case $host_os in
8484
      sco3.2v5*)
8485
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8486
        ;;
8487
    esac
8488
  fi
8489
  sys_lib_dlsearch_path_spec='/usr/lib'
8490
  ;;
8491
 
8492
uts4*)
8493
  version_type=linux
8494
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8495
  soname_spec='${libname}${release}${shared_ext}$major'
8496
  shlibpath_var=LD_LIBRARY_PATH
8497
  ;;
8498
 
8499
*)
8500
  dynamic_linker=no
8501
  ;;
8502
esac
8503
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8504
echo "${ECHO_T}$dynamic_linker" >&6; }
8505
test "$dynamic_linker" = no && can_build_shared=no
8506
 
8507
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8508
if test "$GCC" = yes; then
8509
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8510
fi
8511
 
8512
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8513
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8514
hardcode_action=
8515
if test -n "$hardcode_libdir_flag_spec" || \
8516
   test -n "$runpath_var" || \
8517
   test "X$hardcode_automatic" = "Xyes" ; then
8518
 
8519
  # We can hardcode non-existant directories.
8520
  if test "$hardcode_direct" != no &&
8521
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8522
     # have to relink, otherwise we might link with an installed library
8523
     # when we should be linking with a yet-to-be-installed one
8524
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8525
     test "$hardcode_minus_L" != no; then
8526
    # Linking always hardcodes the temporary library directory.
8527
    hardcode_action=relink
8528
  else
8529
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8530
    hardcode_action=immediate
8531
  fi
8532
else
8533
  # We cannot hardcode anything, or else we can only hardcode existing
8534
  # directories.
8535
  hardcode_action=unsupported
8536
fi
8537
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8538
echo "${ECHO_T}$hardcode_action" >&6; }
8539
 
8540
if test "$hardcode_action" = relink; then
8541
  # Fast installation is not supported
8542
  enable_fast_install=no
8543
elif test "$shlibpath_overrides_runpath" = yes ||
8544
     test "$enable_shared" = no; then
8545
  # Fast installation is not necessary
8546
  enable_fast_install=needless
8547
fi
8548
 
8549
striplib=
8550
old_striplib=
8551
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8552
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8553
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8554
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8555
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8556
  { echo "$as_me:$LINENO: result: yes" >&5
8557
echo "${ECHO_T}yes" >&6; }
8558
else
8559
# FIXME - insert some real tests, host_os isn't really good enough
8560
  case $host_os in
8561
   darwin*)
8562
       if test -n "$STRIP" ; then
8563
         striplib="$STRIP -x"
8564
         old_striplib="$STRIP -S"
8565
         { echo "$as_me:$LINENO: result: yes" >&5
8566
echo "${ECHO_T}yes" >&6; }
8567
       else
8568
  { echo "$as_me:$LINENO: result: no" >&5
8569
echo "${ECHO_T}no" >&6; }
8570
fi
8571
       ;;
8572
   *)
8573
  { echo "$as_me:$LINENO: result: no" >&5
8574
echo "${ECHO_T}no" >&6; }
8575
    ;;
8576
  esac
8577
fi
8578
 
8579
if test "x$enable_dlopen" != xyes; then
8580
  enable_dlopen=unknown
8581
  enable_dlopen_self=unknown
8582
  enable_dlopen_self_static=unknown
8583
else
8584
  lt_cv_dlopen=no
8585
  lt_cv_dlopen_libs=
8586
 
8587
  case $host_os in
8588
  beos*)
8589
    lt_cv_dlopen="load_add_on"
8590
    lt_cv_dlopen_libs=
8591
    lt_cv_dlopen_self=yes
8592
    ;;
8593
 
8594
  mingw* | pw32*)
8595
    lt_cv_dlopen="LoadLibrary"
8596
    lt_cv_dlopen_libs=
8597
   ;;
8598
 
8599
  cygwin*)
8600
    lt_cv_dlopen="dlopen"
8601
    lt_cv_dlopen_libs=
8602
   ;;
8603
 
8604
  darwin*)
8605
  # if libdl is installed we need to link against it
8606
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8607
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8608
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8609
  echo $ECHO_N "(cached) $ECHO_C" >&6
8610
else
8611
  ac_check_lib_save_LIBS=$LIBS
8612
LIBS="-ldl  $LIBS"
8613
cat >conftest.$ac_ext <<_ACEOF
8614
/* confdefs.h.  */
8615
_ACEOF
8616
cat confdefs.h >>conftest.$ac_ext
8617
cat >>conftest.$ac_ext <<_ACEOF
8618
/* end confdefs.h.  */
8619
 
8620
/* Override any GCC internal prototype to avoid an error.
8621
   Use char because int might match the return type of a GCC
8622
   builtin and then its argument prototype would still apply.  */
8623
#ifdef __cplusplus
8624
extern "C"
8625
#endif
8626
char dlopen ();
8627
int
8628
main ()
8629
{
8630
return dlopen ();
8631
  ;
8632
  return 0;
8633
}
8634
_ACEOF
8635
rm -f conftest.$ac_objext conftest$ac_exeext
8636
if { (ac_try="$ac_link"
8637
case "(($ac_try" in
8638
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639
  *) ac_try_echo=$ac_try;;
8640
esac
8641
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642
  (eval "$ac_link") 2>conftest.er1
8643
  ac_status=$?
8644
  grep -v '^ *+' conftest.er1 >conftest.err
8645
  rm -f conftest.er1
8646
  cat conftest.err >&5
8647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648
  (exit $ac_status); } && {
8649
         test -z "$ac_c_werror_flag" ||
8650
         test ! -s conftest.err
8651
       } && test -s conftest$ac_exeext &&
8652
       $as_test_x conftest$ac_exeext; then
8653
  ac_cv_lib_dl_dlopen=yes
8654
else
8655
  echo "$as_me: failed program was:" >&5
8656
sed 's/^/| /' conftest.$ac_ext >&5
8657
 
8658
        ac_cv_lib_dl_dlopen=no
8659
fi
8660
 
8661
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8662
      conftest$ac_exeext conftest.$ac_ext
8663
LIBS=$ac_check_lib_save_LIBS
8664
fi
8665
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8666
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8667
if test $ac_cv_lib_dl_dlopen = yes; then
8668
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8669
else
8670
 
8671
    lt_cv_dlopen="dyld"
8672
    lt_cv_dlopen_libs=
8673
    lt_cv_dlopen_self=yes
8674
 
8675
fi
8676
 
8677
   ;;
8678
 
8679
  *)
8680
    { echo "$as_me:$LINENO: checking for shl_load" >&5
8681
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8682
if test "${ac_cv_func_shl_load+set}" = set; then
8683
  echo $ECHO_N "(cached) $ECHO_C" >&6
8684
else
8685
  cat >conftest.$ac_ext <<_ACEOF
8686
/* confdefs.h.  */
8687
_ACEOF
8688
cat confdefs.h >>conftest.$ac_ext
8689
cat >>conftest.$ac_ext <<_ACEOF
8690
/* end confdefs.h.  */
8691
/* Define shl_load to an innocuous variant, in case  declares shl_load.
8692
   For example, HP-UX 11i  declares gettimeofday.  */
8693
#define shl_load innocuous_shl_load
8694
 
8695
/* System header to define __stub macros and hopefully few prototypes,
8696
    which can conflict with char shl_load (); below.
8697
    Prefer  to  if __STDC__ is defined, since
8698
     exists even on freestanding compilers.  */
8699
 
8700
#ifdef __STDC__
8701
# include 
8702
#else
8703
# include 
8704
#endif
8705
 
8706
#undef shl_load
8707
 
8708
/* Override any GCC internal prototype to avoid an error.
8709
   Use char because int might match the return type of a GCC
8710
   builtin and then its argument prototype would still apply.  */
8711
#ifdef __cplusplus
8712
extern "C"
8713
#endif
8714
char shl_load ();
8715
/* The GNU C library defines this for functions which it implements
8716
    to always fail with ENOSYS.  Some functions are actually named
8717
    something starting with __ and the normal name is an alias.  */
8718
#if defined __stub_shl_load || defined __stub___shl_load
8719
choke me
8720
#endif
8721
 
8722
int
8723
main ()
8724
{
8725
return shl_load ();
8726
  ;
8727
  return 0;
8728
}
8729
_ACEOF
8730
rm -f conftest.$ac_objext conftest$ac_exeext
8731
if { (ac_try="$ac_link"
8732
case "(($ac_try" in
8733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8734
  *) ac_try_echo=$ac_try;;
8735
esac
8736
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8737
  (eval "$ac_link") 2>conftest.er1
8738
  ac_status=$?
8739
  grep -v '^ *+' conftest.er1 >conftest.err
8740
  rm -f conftest.er1
8741
  cat conftest.err >&5
8742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743
  (exit $ac_status); } && {
8744
         test -z "$ac_c_werror_flag" ||
8745
         test ! -s conftest.err
8746
       } && test -s conftest$ac_exeext &&
8747
       $as_test_x conftest$ac_exeext; then
8748
  ac_cv_func_shl_load=yes
8749
else
8750
  echo "$as_me: failed program was:" >&5
8751
sed 's/^/| /' conftest.$ac_ext >&5
8752
 
8753
        ac_cv_func_shl_load=no
8754
fi
8755
 
8756
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8757
      conftest$ac_exeext conftest.$ac_ext
8758
fi
8759
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8760
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8761
if test $ac_cv_func_shl_load = yes; then
8762
  lt_cv_dlopen="shl_load"
8763
else
8764
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8765
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8766
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8767
  echo $ECHO_N "(cached) $ECHO_C" >&6
8768
else
8769
  ac_check_lib_save_LIBS=$LIBS
8770
LIBS="-ldld  $LIBS"
8771
cat >conftest.$ac_ext <<_ACEOF
8772
/* confdefs.h.  */
8773
_ACEOF
8774
cat confdefs.h >>conftest.$ac_ext
8775
cat >>conftest.$ac_ext <<_ACEOF
8776
/* end confdefs.h.  */
8777
 
8778
/* Override any GCC internal prototype to avoid an error.
8779
   Use char because int might match the return type of a GCC
8780
   builtin and then its argument prototype would still apply.  */
8781
#ifdef __cplusplus
8782
extern "C"
8783
#endif
8784
char shl_load ();
8785
int
8786
main ()
8787
{
8788
return shl_load ();
8789
  ;
8790
  return 0;
8791
}
8792
_ACEOF
8793
rm -f conftest.$ac_objext conftest$ac_exeext
8794
if { (ac_try="$ac_link"
8795
case "(($ac_try" in
8796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797
  *) ac_try_echo=$ac_try;;
8798
esac
8799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800
  (eval "$ac_link") 2>conftest.er1
8801
  ac_status=$?
8802
  grep -v '^ *+' conftest.er1 >conftest.err
8803
  rm -f conftest.er1
8804
  cat conftest.err >&5
8805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806
  (exit $ac_status); } && {
8807
         test -z "$ac_c_werror_flag" ||
8808
         test ! -s conftest.err
8809
       } && test -s conftest$ac_exeext &&
8810
       $as_test_x conftest$ac_exeext; then
8811
  ac_cv_lib_dld_shl_load=yes
8812
else
8813
  echo "$as_me: failed program was:" >&5
8814
sed 's/^/| /' conftest.$ac_ext >&5
8815
 
8816
        ac_cv_lib_dld_shl_load=no
8817
fi
8818
 
8819
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8820
      conftest$ac_exeext conftest.$ac_ext
8821
LIBS=$ac_check_lib_save_LIBS
8822
fi
8823
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8824
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8825
if test $ac_cv_lib_dld_shl_load = yes; then
8826
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8827
else
8828
  { echo "$as_me:$LINENO: checking for dlopen" >&5
8829
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8830
if test "${ac_cv_func_dlopen+set}" = set; then
8831
  echo $ECHO_N "(cached) $ECHO_C" >&6
8832
else
8833
  cat >conftest.$ac_ext <<_ACEOF
8834
/* confdefs.h.  */
8835
_ACEOF
8836
cat confdefs.h >>conftest.$ac_ext
8837
cat >>conftest.$ac_ext <<_ACEOF
8838
/* end confdefs.h.  */
8839
/* Define dlopen to an innocuous variant, in case  declares dlopen.
8840
   For example, HP-UX 11i  declares gettimeofday.  */
8841
#define dlopen innocuous_dlopen
8842
 
8843
/* System header to define __stub macros and hopefully few prototypes,
8844
    which can conflict with char dlopen (); below.
8845
    Prefer  to  if __STDC__ is defined, since
8846
     exists even on freestanding compilers.  */
8847
 
8848
#ifdef __STDC__
8849
# include 
8850
#else
8851
# include 
8852
#endif
8853
 
8854
#undef dlopen
8855
 
8856
/* Override any GCC internal prototype to avoid an error.
8857
   Use char because int might match the return type of a GCC
8858
   builtin and then its argument prototype would still apply.  */
8859
#ifdef __cplusplus
8860
extern "C"
8861
#endif
8862
char dlopen ();
8863
/* The GNU C library defines this for functions which it implements
8864
    to always fail with ENOSYS.  Some functions are actually named
8865
    something starting with __ and the normal name is an alias.  */
8866
#if defined __stub_dlopen || defined __stub___dlopen
8867
choke me
8868
#endif
8869
 
8870
int
8871
main ()
8872
{
8873
return dlopen ();
8874
  ;
8875
  return 0;
8876
}
8877
_ACEOF
8878
rm -f conftest.$ac_objext conftest$ac_exeext
8879
if { (ac_try="$ac_link"
8880
case "(($ac_try" in
8881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882
  *) ac_try_echo=$ac_try;;
8883
esac
8884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885
  (eval "$ac_link") 2>conftest.er1
8886
  ac_status=$?
8887
  grep -v '^ *+' conftest.er1 >conftest.err
8888
  rm -f conftest.er1
8889
  cat conftest.err >&5
8890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891
  (exit $ac_status); } && {
8892
         test -z "$ac_c_werror_flag" ||
8893
         test ! -s conftest.err
8894
       } && test -s conftest$ac_exeext &&
8895
       $as_test_x conftest$ac_exeext; then
8896
  ac_cv_func_dlopen=yes
8897
else
8898
  echo "$as_me: failed program was:" >&5
8899
sed 's/^/| /' conftest.$ac_ext >&5
8900
 
8901
        ac_cv_func_dlopen=no
8902
fi
8903
 
8904
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8905
      conftest$ac_exeext conftest.$ac_ext
8906
fi
8907
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8908
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8909
if test $ac_cv_func_dlopen = yes; then
8910
  lt_cv_dlopen="dlopen"
8911
else
8912
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8913
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8914
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8915
  echo $ECHO_N "(cached) $ECHO_C" >&6
8916
else
8917
  ac_check_lib_save_LIBS=$LIBS
8918
LIBS="-ldl  $LIBS"
8919
cat >conftest.$ac_ext <<_ACEOF
8920
/* confdefs.h.  */
8921
_ACEOF
8922
cat confdefs.h >>conftest.$ac_ext
8923
cat >>conftest.$ac_ext <<_ACEOF
8924
/* end confdefs.h.  */
8925
 
8926
/* Override any GCC internal prototype to avoid an error.
8927
   Use char because int might match the return type of a GCC
8928
   builtin and then its argument prototype would still apply.  */
8929
#ifdef __cplusplus
8930
extern "C"
8931
#endif
8932
char dlopen ();
8933
int
8934
main ()
8935
{
8936
return dlopen ();
8937
  ;
8938
  return 0;
8939
}
8940
_ACEOF
8941
rm -f conftest.$ac_objext conftest$ac_exeext
8942
if { (ac_try="$ac_link"
8943
case "(($ac_try" in
8944
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945
  *) ac_try_echo=$ac_try;;
8946
esac
8947
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948
  (eval "$ac_link") 2>conftest.er1
8949
  ac_status=$?
8950
  grep -v '^ *+' conftest.er1 >conftest.err
8951
  rm -f conftest.er1
8952
  cat conftest.err >&5
8953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954
  (exit $ac_status); } && {
8955
         test -z "$ac_c_werror_flag" ||
8956
         test ! -s conftest.err
8957
       } && test -s conftest$ac_exeext &&
8958
       $as_test_x conftest$ac_exeext; then
8959
  ac_cv_lib_dl_dlopen=yes
8960
else
8961
  echo "$as_me: failed program was:" >&5
8962
sed 's/^/| /' conftest.$ac_ext >&5
8963
 
8964
        ac_cv_lib_dl_dlopen=no
8965
fi
8966
 
8967
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8968
      conftest$ac_exeext conftest.$ac_ext
8969
LIBS=$ac_check_lib_save_LIBS
8970
fi
8971
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8972
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8973
if test $ac_cv_lib_dl_dlopen = yes; then
8974
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8975
else
8976
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8977
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8978
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8979
  echo $ECHO_N "(cached) $ECHO_C" >&6
8980
else
8981
  ac_check_lib_save_LIBS=$LIBS
8982
LIBS="-lsvld  $LIBS"
8983
cat >conftest.$ac_ext <<_ACEOF
8984
/* confdefs.h.  */
8985
_ACEOF
8986
cat confdefs.h >>conftest.$ac_ext
8987
cat >>conftest.$ac_ext <<_ACEOF
8988
/* end confdefs.h.  */
8989
 
8990
/* Override any GCC internal prototype to avoid an error.
8991
   Use char because int might match the return type of a GCC
8992
   builtin and then its argument prototype would still apply.  */
8993
#ifdef __cplusplus
8994
extern "C"
8995
#endif
8996
char dlopen ();
8997
int
8998
main ()
8999
{
9000
return dlopen ();
9001
  ;
9002
  return 0;
9003
}
9004
_ACEOF
9005
rm -f conftest.$ac_objext conftest$ac_exeext
9006
if { (ac_try="$ac_link"
9007
case "(($ac_try" in
9008
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009
  *) ac_try_echo=$ac_try;;
9010
esac
9011
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9012
  (eval "$ac_link") 2>conftest.er1
9013
  ac_status=$?
9014
  grep -v '^ *+' conftest.er1 >conftest.err
9015
  rm -f conftest.er1
9016
  cat conftest.err >&5
9017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018
  (exit $ac_status); } && {
9019
         test -z "$ac_c_werror_flag" ||
9020
         test ! -s conftest.err
9021
       } && test -s conftest$ac_exeext &&
9022
       $as_test_x conftest$ac_exeext; then
9023
  ac_cv_lib_svld_dlopen=yes
9024
else
9025
  echo "$as_me: failed program was:" >&5
9026
sed 's/^/| /' conftest.$ac_ext >&5
9027
 
9028
        ac_cv_lib_svld_dlopen=no
9029
fi
9030
 
9031
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9032
      conftest$ac_exeext conftest.$ac_ext
9033
LIBS=$ac_check_lib_save_LIBS
9034
fi
9035
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9036
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9037
if test $ac_cv_lib_svld_dlopen = yes; then
9038
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9039
else
9040
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9041
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9042
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9043
  echo $ECHO_N "(cached) $ECHO_C" >&6
9044
else
9045
  ac_check_lib_save_LIBS=$LIBS
9046
LIBS="-ldld  $LIBS"
9047
cat >conftest.$ac_ext <<_ACEOF
9048
/* confdefs.h.  */
9049
_ACEOF
9050
cat confdefs.h >>conftest.$ac_ext
9051
cat >>conftest.$ac_ext <<_ACEOF
9052
/* end confdefs.h.  */
9053
 
9054
/* Override any GCC internal prototype to avoid an error.
9055
   Use char because int might match the return type of a GCC
9056
   builtin and then its argument prototype would still apply.  */
9057
#ifdef __cplusplus
9058
extern "C"
9059
#endif
9060
char dld_link ();
9061
int
9062
main ()
9063
{
9064
return dld_link ();
9065
  ;
9066
  return 0;
9067
}
9068
_ACEOF
9069
rm -f conftest.$ac_objext conftest$ac_exeext
9070
if { (ac_try="$ac_link"
9071
case "(($ac_try" in
9072
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073
  *) ac_try_echo=$ac_try;;
9074
esac
9075
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076
  (eval "$ac_link") 2>conftest.er1
9077
  ac_status=$?
9078
  grep -v '^ *+' conftest.er1 >conftest.err
9079
  rm -f conftest.er1
9080
  cat conftest.err >&5
9081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082
  (exit $ac_status); } && {
9083
         test -z "$ac_c_werror_flag" ||
9084
         test ! -s conftest.err
9085
       } && test -s conftest$ac_exeext &&
9086
       $as_test_x conftest$ac_exeext; then
9087
  ac_cv_lib_dld_dld_link=yes
9088
else
9089
  echo "$as_me: failed program was:" >&5
9090
sed 's/^/| /' conftest.$ac_ext >&5
9091
 
9092
        ac_cv_lib_dld_dld_link=no
9093
fi
9094
 
9095
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9096
      conftest$ac_exeext conftest.$ac_ext
9097
LIBS=$ac_check_lib_save_LIBS
9098
fi
9099
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9100
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9101
if test $ac_cv_lib_dld_dld_link = yes; then
9102
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9103
fi
9104
 
9105
 
9106
fi
9107
 
9108
 
9109
fi
9110
 
9111
 
9112
fi
9113
 
9114
 
9115
fi
9116
 
9117
 
9118
fi
9119
 
9120
    ;;
9121
  esac
9122
 
9123
  if test "x$lt_cv_dlopen" != xno; then
9124
    enable_dlopen=yes
9125
  else
9126
    enable_dlopen=no
9127
  fi
9128
 
9129
  case $lt_cv_dlopen in
9130
  dlopen)
9131
    save_CPPFLAGS="$CPPFLAGS"
9132
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9133
 
9134
    save_LDFLAGS="$LDFLAGS"
9135
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9136
 
9137
    save_LIBS="$LIBS"
9138
    LIBS="$lt_cv_dlopen_libs $LIBS"
9139
 
9140
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9141
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9142
if test "${lt_cv_dlopen_self+set}" = set; then
9143
  echo $ECHO_N "(cached) $ECHO_C" >&6
9144
else
9145
          if test "$cross_compiling" = yes; then :
9146
  lt_cv_dlopen_self=cross
9147
else
9148
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9149
  lt_status=$lt_dlunknown
9150
  cat > conftest.$ac_ext <
9151
#line __oline__ "configure"
9152
#include "confdefs.h"
9153
 
9154
#if HAVE_DLFCN_H
9155
#include 
9156
#endif
9157
 
9158
#include 
9159
 
9160
#ifdef RTLD_GLOBAL
9161
#  define LT_DLGLOBAL           RTLD_GLOBAL
9162
#else
9163
#  ifdef DL_GLOBAL
9164
#    define LT_DLGLOBAL         DL_GLOBAL
9165
#  else
9166
#    define LT_DLGLOBAL         0
9167
#  endif
9168
#endif
9169
 
9170
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9171
   find out it does not work in some platform. */
9172
#ifndef LT_DLLAZY_OR_NOW
9173
#  ifdef RTLD_LAZY
9174
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9175
#  else
9176
#    ifdef DL_LAZY
9177
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9178
#    else
9179
#      ifdef RTLD_NOW
9180
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9181
#      else
9182
#        ifdef DL_NOW
9183
#          define LT_DLLAZY_OR_NOW      DL_NOW
9184
#        else
9185
#          define LT_DLLAZY_OR_NOW      0
9186
#        endif
9187
#      endif
9188
#    endif
9189
#  endif
9190
#endif
9191
 
9192
#ifdef __cplusplus
9193
extern "C" void exit (int);
9194
#endif
9195
 
9196
void fnord() { int i=42;}
9197
int main ()
9198
{
9199
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9200
  int status = $lt_dlunknown;
9201
 
9202
  if (self)
9203
    {
9204
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9205
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9206
      /* dlclose (self); */
9207
    }
9208
  else
9209
    puts (dlerror ());
9210
 
9211
    exit (status);
9212
}
9213
EOF
9214
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9215
  (eval $ac_link) 2>&5
9216
  ac_status=$?
9217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9219
    (./conftest; exit; ) >&5 2>/dev/null
9220
    lt_status=$?
9221
    case x$lt_status in
9222
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9223
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9224
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9225
    esac
9226
  else :
9227
    # compilation failed
9228
    lt_cv_dlopen_self=no
9229
  fi
9230
fi
9231
rm -fr conftest*
9232
 
9233
 
9234
fi
9235
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9236
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9237
 
9238
    if test "x$lt_cv_dlopen_self" = xyes; then
9239
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9240
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9241
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9242
if test "${lt_cv_dlopen_self_static+set}" = set; then
9243
  echo $ECHO_N "(cached) $ECHO_C" >&6
9244
else
9245
          if test "$cross_compiling" = yes; then :
9246
  lt_cv_dlopen_self_static=cross
9247
else
9248
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9249
  lt_status=$lt_dlunknown
9250
  cat > conftest.$ac_ext <
9251
#line __oline__ "configure"
9252
#include "confdefs.h"
9253
 
9254
#if HAVE_DLFCN_H
9255
#include 
9256
#endif
9257
 
9258
#include 
9259
 
9260
#ifdef RTLD_GLOBAL
9261
#  define LT_DLGLOBAL           RTLD_GLOBAL
9262
#else
9263
#  ifdef DL_GLOBAL
9264
#    define LT_DLGLOBAL         DL_GLOBAL
9265
#  else
9266
#    define LT_DLGLOBAL         0
9267
#  endif
9268
#endif
9269
 
9270
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9271
   find out it does not work in some platform. */
9272
#ifndef LT_DLLAZY_OR_NOW
9273
#  ifdef RTLD_LAZY
9274
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9275
#  else
9276
#    ifdef DL_LAZY
9277
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9278
#    else
9279
#      ifdef RTLD_NOW
9280
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9281
#      else
9282
#        ifdef DL_NOW
9283
#          define LT_DLLAZY_OR_NOW      DL_NOW
9284
#        else
9285
#          define LT_DLLAZY_OR_NOW      0
9286
#        endif
9287
#      endif
9288
#    endif
9289
#  endif
9290
#endif
9291
 
9292
#ifdef __cplusplus
9293
extern "C" void exit (int);
9294
#endif
9295
 
9296
void fnord() { int i=42;}
9297
int main ()
9298
{
9299
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9300
  int status = $lt_dlunknown;
9301
 
9302
  if (self)
9303
    {
9304
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9305
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9306
      /* dlclose (self); */
9307
    }
9308
  else
9309
    puts (dlerror ());
9310
 
9311
    exit (status);
9312
}
9313
EOF
9314
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315
  (eval $ac_link) 2>&5
9316
  ac_status=$?
9317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9319
    (./conftest; exit; ) >&5 2>/dev/null
9320
    lt_status=$?
9321
    case x$lt_status in
9322
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9323
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9324
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9325
    esac
9326
  else :
9327
    # compilation failed
9328
    lt_cv_dlopen_self_static=no
9329
  fi
9330
fi
9331
rm -fr conftest*
9332
 
9333
 
9334
fi
9335
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9336
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9337
    fi
9338
 
9339
    CPPFLAGS="$save_CPPFLAGS"
9340
    LDFLAGS="$save_LDFLAGS"
9341
    LIBS="$save_LIBS"
9342
    ;;
9343
  esac
9344
 
9345
  case $lt_cv_dlopen_self in
9346
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9347
  *) enable_dlopen_self=unknown ;;
9348
  esac
9349
 
9350
  case $lt_cv_dlopen_self_static in
9351
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9352
  *) enable_dlopen_self_static=unknown ;;
9353
  esac
9354
fi
9355
 
9356
 
9357
# Report which library types will actually be built
9358
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9359
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9360
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9361
echo "${ECHO_T}$can_build_shared" >&6; }
9362
 
9363
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9364
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9365
test "$can_build_shared" = "no" && enable_shared=no
9366
 
9367
# On AIX, shared libraries and static libraries use the same namespace, and
9368
# are all built from PIC.
9369
case $host_os in
9370
aix3*)
9371
  test "$enable_shared" = yes && enable_static=no
9372
  if test -n "$RANLIB"; then
9373
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9374
    postinstall_cmds='$RANLIB $lib'
9375
  fi
9376
  ;;
9377
 
9378
aix4* | aix5*)
9379
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9380
    test "$enable_shared" = yes && enable_static=no
9381
  fi
9382
    ;;
9383
esac
9384
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9385
echo "${ECHO_T}$enable_shared" >&6; }
9386
 
9387
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9388
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9389
# Make sure either enable_shared or enable_static is yes.
9390
test "$enable_shared" = yes || enable_static=yes
9391
{ echo "$as_me:$LINENO: result: $enable_static" >&5
9392
echo "${ECHO_T}$enable_static" >&6; }
9393
 
9394
# The else clause should only fire when bootstrapping the
9395
# libtool distribution, otherwise you forgot to ship ltmain.sh
9396
# with your package, and you will get complaints that there are
9397
# no rules to generate ltmain.sh.
9398
if test -f "$ltmain"; then
9399
  # See if we are running on zsh, and set the options which allow our commands through
9400
  # without removal of \ escapes.
9401
  if test -n "${ZSH_VERSION+set}" ; then
9402
    setopt NO_GLOB_SUBST
9403
  fi
9404
  # Now quote all the things that may contain metacharacters while being
9405
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9406
  # variables and quote the copies for generation of the libtool script.
9407
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9408
    SED SHELL STRIP \
9409
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9410
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9411
    deplibs_check_method reload_flag reload_cmds need_locks \
9412
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9413
    lt_cv_sys_global_symbol_to_c_name_address \
9414
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9415
    old_postinstall_cmds old_postuninstall_cmds \
9416
    compiler \
9417
    CC \
9418
    LD \
9419
    lt_prog_compiler_wl \
9420
    lt_prog_compiler_pic \
9421
    lt_prog_compiler_static \
9422
    lt_prog_compiler_no_builtin_flag \
9423
    export_dynamic_flag_spec \
9424
    thread_safe_flag_spec \
9425
    whole_archive_flag_spec \
9426
    enable_shared_with_static_runtimes \
9427
    old_archive_cmds \
9428
    old_archive_from_new_cmds \
9429
    predep_objects \
9430
    postdep_objects \
9431
    predeps \
9432
    postdeps \
9433
    compiler_lib_search_path \
9434
    archive_cmds \
9435
    archive_expsym_cmds \
9436
    postinstall_cmds \
9437
    postuninstall_cmds \
9438
    old_archive_from_expsyms_cmds \
9439
    allow_undefined_flag \
9440
    no_undefined_flag \
9441
    export_symbols_cmds \
9442
    hardcode_libdir_flag_spec \
9443
    hardcode_libdir_flag_spec_ld \
9444
    hardcode_libdir_separator \
9445
    hardcode_automatic \
9446
    module_cmds \
9447
    module_expsym_cmds \
9448
    lt_cv_prog_compiler_c_o \
9449
    fix_srcfile_path \
9450
    exclude_expsyms \
9451
    include_expsyms; do
9452
 
9453
    case $var in
9454
    old_archive_cmds | \
9455
    old_archive_from_new_cmds | \
9456
    archive_cmds | \
9457
    archive_expsym_cmds | \
9458
    module_cmds | \
9459
    module_expsym_cmds | \
9460
    old_archive_from_expsyms_cmds | \
9461
    export_symbols_cmds | \
9462
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9463
    postinstall_cmds | postuninstall_cmds | \
9464
    old_postinstall_cmds | old_postuninstall_cmds | \
9465
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9466
      # Double-quote double-evaled strings.
9467
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9468
      ;;
9469
    *)
9470
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9471
      ;;
9472
    esac
9473
  done
9474
 
9475
  case $lt_echo in
9476
  *'\$0 --fallback-echo"')
9477
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9478
    ;;
9479
  esac
9480
 
9481
cfgfile="${ofile}T"
9482
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9483
  $rm -f "$cfgfile"
9484
  { echo "$as_me:$LINENO: creating $ofile" >&5
9485
echo "$as_me: creating $ofile" >&6;}
9486
 
9487
  cat <<__EOF__ >> "$cfgfile"
9488
#! $SHELL
9489
 
9490
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9491
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9492
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9493
#
9494
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
9495
# Free Software Foundation, Inc.
9496
#
9497
# This file is part of GNU Libtool:
9498
# Originally by Gordon Matzigkeit , 1996
9499
#
9500
# This program is free software; you can redistribute it and/or modify
9501
# it under the terms of the GNU General Public License as published by
9502
# the Free Software Foundation; either version 2 of the License, or
9503
# (at your option) any later version.
9504
#
9505
# This program is distributed in the hope that it will be useful, but
9506
# WITHOUT ANY WARRANTY; without even the implied warranty of
9507
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9508
# General Public License for more details.
9509
#
9510
# You should have received a copy of the GNU General Public License
9511
# along with this program; if not, write to the Free Software
9512
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9513
#
9514
# As a special exception to the GNU General Public License, if you
9515
# distribute this file as part of a program that contains a
9516
# configuration script generated by Autoconf, you may include it under
9517
# the same distribution terms that you use for the rest of that program.
9518
 
9519
# A sed program that does not truncate output.
9520
SED=$lt_SED
9521
 
9522
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9523
Xsed="$SED -e 1s/^X//"
9524
 
9525
# The HP-UX ksh and POSIX shell print the target directory to stdout
9526
# if CDPATH is set.
9527
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9528
 
9529
# The names of the tagged configurations supported by this script.
9530
available_tags=
9531
 
9532
# ### BEGIN LIBTOOL CONFIG
9533
 
9534
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9535
 
9536
# Shell to use when invoking shell scripts.
9537
SHELL=$lt_SHELL
9538
 
9539
# Whether or not to build shared libraries.
9540
build_libtool_libs=$enable_shared
9541
 
9542
# Whether or not to build static libraries.
9543
build_old_libs=$enable_static
9544
 
9545
# Whether or not to add -lc for building shared libraries.
9546
build_libtool_need_lc=$archive_cmds_need_lc
9547
 
9548
# Whether or not to disallow shared libs when runtime libs are static
9549
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9550
 
9551
# Whether or not to optimize for fast installation.
9552
fast_install=$enable_fast_install
9553
 
9554
# The host system.
9555
host_alias=$host_alias
9556
host=$host
9557
host_os=$host_os
9558
 
9559
# The build system.
9560
build_alias=$build_alias
9561
build=$build
9562
build_os=$build_os
9563
 
9564
# An echo program that does not interpret backslashes.
9565
echo=$lt_echo
9566
 
9567
# The archiver.
9568
AR=$lt_AR
9569
AR_FLAGS=$lt_AR_FLAGS
9570
 
9571
# A C compiler.
9572
LTCC=$lt_LTCC
9573
 
9574
# LTCC compiler flags.
9575
LTCFLAGS=$lt_LTCFLAGS
9576
 
9577
# A language-specific compiler.
9578
CC=$lt_compiler
9579
 
9580
# Is the compiler the GNU C compiler?
9581
with_gcc=$GCC
9582
 
9583
# An ERE matcher.
9584
EGREP=$lt_EGREP
9585
 
9586
# The linker used to build libraries.
9587
LD=$lt_LD
9588
 
9589
# Whether we need hard or soft links.
9590
LN_S=$lt_LN_S
9591
 
9592
# A BSD-compatible nm program.
9593
NM=$lt_NM
9594
 
9595
# A symbol stripping program
9596
STRIP=$lt_STRIP
9597
 
9598
# Used to examine libraries when file_magic_cmd begins "file"
9599
MAGIC_CMD=$MAGIC_CMD
9600
 
9601
# Used on cygwin: DLL creation program.
9602
DLLTOOL="$DLLTOOL"
9603
 
9604
# Used on cygwin: object dumper.
9605
OBJDUMP="$OBJDUMP"
9606
 
9607
# Used on cygwin: assembler.
9608
AS="$AS"
9609
 
9610
# The name of the directory that contains temporary libtool files.
9611
objdir=$objdir
9612
 
9613
# How to create reloadable object files.
9614
reload_flag=$lt_reload_flag
9615
reload_cmds=$lt_reload_cmds
9616
 
9617
# How to pass a linker flag through the compiler.
9618
wl=$lt_lt_prog_compiler_wl
9619
 
9620
# Object file suffix (normally "o").
9621
objext="$ac_objext"
9622
 
9623
# Old archive suffix (normally "a").
9624
libext="$libext"
9625
 
9626
# Shared library suffix (normally ".so").
9627
shrext_cmds='$shrext_cmds'
9628
 
9629
# Executable file suffix (normally "").
9630
exeext="$exeext"
9631
 
9632
# Additional compiler flags for building library objects.
9633
pic_flag=$lt_lt_prog_compiler_pic
9634
pic_mode=$pic_mode
9635
 
9636
# What is the maximum length of a command?
9637
max_cmd_len=$lt_cv_sys_max_cmd_len
9638
 
9639
# Does compiler simultaneously support -c and -o options?
9640
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9641
 
9642
# Must we lock files when doing compilation?
9643
need_locks=$lt_need_locks
9644
 
9645
# Do we need the lib prefix for modules?
9646
need_lib_prefix=$need_lib_prefix
9647
 
9648
# Do we need a version for libraries?
9649
need_version=$need_version
9650
 
9651
# Whether dlopen is supported.
9652
dlopen_support=$enable_dlopen
9653
 
9654
# Whether dlopen of programs is supported.
9655
dlopen_self=$enable_dlopen_self
9656
 
9657
# Whether dlopen of statically linked programs is supported.
9658
dlopen_self_static=$enable_dlopen_self_static
9659
 
9660
# Compiler flag to prevent dynamic linking.
9661
link_static_flag=$lt_lt_prog_compiler_static
9662
 
9663
# Compiler flag to turn off builtin functions.
9664
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9665
 
9666
# Compiler flag to allow reflexive dlopens.
9667
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9668
 
9669
# Compiler flag to generate shared objects directly from archives.
9670
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9671
 
9672
# Compiler flag to generate thread-safe objects.
9673
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9674
 
9675
# Library versioning type.
9676
version_type=$version_type
9677
 
9678
# Format of library name prefix.
9679
libname_spec=$lt_libname_spec
9680
 
9681
# List of archive names.  First name is the real one, the rest are links.
9682
# The last name is the one that the linker finds with -lNAME.
9683
library_names_spec=$lt_library_names_spec
9684
 
9685
# The coded name of the library, if different from the real name.
9686
soname_spec=$lt_soname_spec
9687
 
9688
# Commands used to build and install an old-style archive.
9689
RANLIB=$lt_RANLIB
9690
old_archive_cmds=$lt_old_archive_cmds
9691
old_postinstall_cmds=$lt_old_postinstall_cmds
9692
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9693
 
9694
# Create an old-style archive from a shared archive.
9695
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9696
 
9697
# Create a temporary old-style archive to link instead of a shared archive.
9698
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9699
 
9700
# Commands used to build and install a shared archive.
9701
archive_cmds=$lt_archive_cmds
9702
archive_expsym_cmds=$lt_archive_expsym_cmds
9703
postinstall_cmds=$lt_postinstall_cmds
9704
postuninstall_cmds=$lt_postuninstall_cmds
9705
 
9706
# Commands used to build a loadable module (assumed same as above if empty)
9707
module_cmds=$lt_module_cmds
9708
module_expsym_cmds=$lt_module_expsym_cmds
9709
 
9710
# Commands to strip libraries.
9711
old_striplib=$lt_old_striplib
9712
striplib=$lt_striplib
9713
 
9714
# Dependencies to place before the objects being linked to create a
9715
# shared library.
9716
predep_objects=$lt_predep_objects
9717
 
9718
# Dependencies to place after the objects being linked to create a
9719
# shared library.
9720
postdep_objects=$lt_postdep_objects
9721
 
9722
# Dependencies to place before the objects being linked to create a
9723
# shared library.
9724
predeps=$lt_predeps
9725
 
9726
# Dependencies to place after the objects being linked to create a
9727
# shared library.
9728
postdeps=$lt_postdeps
9729
 
9730
# The library search path used internally by the compiler when linking
9731
# a shared library.
9732
compiler_lib_search_path=$lt_compiler_lib_search_path
9733
 
9734
# Method to check whether dependent libraries are shared objects.
9735
deplibs_check_method=$lt_deplibs_check_method
9736
 
9737
# Command to use when deplibs_check_method == file_magic.
9738
file_magic_cmd=$lt_file_magic_cmd
9739
 
9740
# Flag that allows shared libraries with undefined symbols to be built.
9741
allow_undefined_flag=$lt_allow_undefined_flag
9742
 
9743
# Flag that forces no undefined symbols.
9744
no_undefined_flag=$lt_no_undefined_flag
9745
 
9746
# Commands used to finish a libtool library installation in a directory.
9747
finish_cmds=$lt_finish_cmds
9748
 
9749
# Same as above, but a single script fragment to be evaled but not shown.
9750
finish_eval=$lt_finish_eval
9751
 
9752
# Take the output of nm and produce a listing of raw symbols and C names.
9753
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9754
 
9755
# Transform the output of nm in a proper C declaration
9756
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9757
 
9758
# Transform the output of nm in a C name address pair
9759
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9760
 
9761
# This is the shared library runtime path variable.
9762
runpath_var=$runpath_var
9763
 
9764
# This is the shared library path variable.
9765
shlibpath_var=$shlibpath_var
9766
 
9767
# Is shlibpath searched before the hard-coded library search path?
9768
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9769
 
9770
# How to hardcode a shared library path into an executable.
9771
hardcode_action=$hardcode_action
9772
 
9773
# Whether we should hardcode library paths into libraries.
9774
hardcode_into_libs=$hardcode_into_libs
9775
 
9776
# Flag to hardcode \$libdir into a binary during linking.
9777
# This must work even if \$libdir does not exist.
9778
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9779
 
9780
# If ld is used when linking, flag to hardcode \$libdir into
9781
# a binary during linking. This must work even if \$libdir does
9782
# not exist.
9783
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9784
 
9785
# Whether we need a single -rpath flag with a separated argument.
9786
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9787
 
9788
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9789
# resulting binary.
9790
hardcode_direct=$hardcode_direct
9791
 
9792
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9793
# resulting binary.
9794
hardcode_minus_L=$hardcode_minus_L
9795
 
9796
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9797
# the resulting binary.
9798
hardcode_shlibpath_var=$hardcode_shlibpath_var
9799
 
9800
# Set to yes if building a shared library automatically hardcodes DIR into the library
9801
# and all subsequent libraries and executables linked against it.
9802
hardcode_automatic=$hardcode_automatic
9803
 
9804
# Variables whose values should be saved in libtool wrapper scripts and
9805
# restored at relink time.
9806
variables_saved_for_relink="$variables_saved_for_relink"
9807
 
9808
# Whether libtool must link a program against all its dependency libraries.
9809
link_all_deplibs=$link_all_deplibs
9810
 
9811
# Compile-time system search path for libraries
9812
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9813
 
9814
# Run-time system search path for libraries
9815
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9816
 
9817
# Fix the shell variable \$srcfile for the compiler.
9818
fix_srcfile_path=$lt_fix_srcfile_path
9819
 
9820
# Set to yes if exported symbols are required.
9821
always_export_symbols=$always_export_symbols
9822
 
9823
# The commands to list exported symbols.
9824
export_symbols_cmds=$lt_export_symbols_cmds
9825
 
9826
# The commands to extract the exported symbol list from a shared archive.
9827
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9828
 
9829
# Symbols that should not be listed in the preloaded symbols.
9830
exclude_expsyms=$lt_exclude_expsyms
9831
 
9832
# Symbols that must always be exported.
9833
include_expsyms=$lt_include_expsyms
9834
 
9835
# ### END LIBTOOL CONFIG
9836
 
9837
__EOF__
9838
 
9839
 
9840
  case $host_os in
9841
  aix3*)
9842
    cat <<\EOF >> "$cfgfile"
9843
 
9844
# AIX sometimes has problems with the GCC collect2 program.  For some
9845
# reason, if we set the COLLECT_NAMES environment variable, the problems
9846
# vanish in a puff of smoke.
9847
if test "X${COLLECT_NAMES+set}" != Xset; then
9848
  COLLECT_NAMES=
9849
  export COLLECT_NAMES
9850
fi
9851
EOF
9852
    ;;
9853
  esac
9854
 
9855
  # We use sed instead of cat because bash on DJGPP gets confused if
9856
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9857
  # text mode, it properly converts lines to CR/LF.  This bash problem
9858
  # is reportedly fixed, but why not run on old versions too?
9859
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9860
 
9861
  mv -f "$cfgfile" "$ofile" || \
9862
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9863
  chmod +x "$ofile"
9864
 
9865
else
9866
  # If there is no Makefile yet, we rely on a make rule to execute
9867
  # `config.status --recheck' to rerun these tests and create the
9868
  # libtool script then.
9869
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9870
  if test -f "$ltmain_in"; then
9871
    test -f Makefile && make "$ltmain"
9872
  fi
9873
fi
9874
 
9875
 
9876
ac_ext=c
9877
ac_cpp='$CPP $CPPFLAGS'
9878
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9879
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9880
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9881
 
9882
CC="$lt_save_CC"
9883
 
9884
 
9885
# Check whether --with-tags was given.
9886
if test "${with_tags+set}" = set; then
9887
  withval=$with_tags; tagnames="$withval"
9888
fi
9889
 
9890
 
9891
if test -f "$ltmain" && test -n "$tagnames"; then
9892
  if test ! -f "${ofile}"; then
9893
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9894
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9895
  fi
9896
 
9897
  if test -z "$LTCC"; then
9898
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9899
    if test -z "$LTCC"; then
9900
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9901
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9902
    else
9903
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9904
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9905
    fi
9906
  fi
9907
  if test -z "$LTCFLAGS"; then
9908
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9909
  fi
9910
 
9911
  # Extract list of available tagged configurations in $ofile.
9912
  # Note that this assumes the entire list is on one line.
9913
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9914
 
9915
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9916
  for tagname in $tagnames; do
9917
    IFS="$lt_save_ifs"
9918
    # Check whether tagname contains only valid characters
9919
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9920
    "") ;;
9921
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9922
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9923
   { (exit 1); exit 1; }; }
9924
        ;;
9925
    esac
9926
 
9927
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9928
    then
9929
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9930
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9931
   { (exit 1); exit 1; }; }
9932
    fi
9933
 
9934
    # Update the list of available tags.
9935
    if test -n "$tagname"; then
9936
      echo appending configuration tag \"$tagname\" to $ofile
9937
 
9938
      case $tagname in
9939
      CXX)
9940
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9941
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9942
            (test "X$CXX" != "Xg++"))) ; then
9943
          ac_ext=cpp
9944
ac_cpp='$CXXCPP $CPPFLAGS'
9945
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9946
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9947
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9948
 
9949
 
9950
 
9951
 
9952
archive_cmds_need_lc_CXX=no
9953
allow_undefined_flag_CXX=
9954
always_export_symbols_CXX=no
9955
archive_expsym_cmds_CXX=
9956
export_dynamic_flag_spec_CXX=
9957
hardcode_direct_CXX=no
9958
hardcode_libdir_flag_spec_CXX=
9959
hardcode_libdir_flag_spec_ld_CXX=
9960
hardcode_libdir_separator_CXX=
9961
hardcode_minus_L_CXX=no
9962
hardcode_shlibpath_var_CXX=unsupported
9963
hardcode_automatic_CXX=no
9964
module_cmds_CXX=
9965
module_expsym_cmds_CXX=
9966
link_all_deplibs_CXX=unknown
9967
old_archive_cmds_CXX=$old_archive_cmds
9968
no_undefined_flag_CXX=
9969
whole_archive_flag_spec_CXX=
9970
enable_shared_with_static_runtimes_CXX=no
9971
 
9972
# Dependencies to place before and after the object being linked:
9973
predep_objects_CXX=
9974
postdep_objects_CXX=
9975
predeps_CXX=
9976
postdeps_CXX=
9977
compiler_lib_search_path_CXX=
9978
 
9979
# Source file extension for C++ test sources.
9980
ac_ext=cpp
9981
 
9982
# Object file extension for compiled C++ test sources.
9983
objext=o
9984
objext_CXX=$objext
9985
 
9986
# Code to be used in simple compile tests
9987
lt_simple_compile_test_code="int some_variable = 0;"
9988
 
9989
# Code to be used in simple link tests
9990
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9991
 
9992
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9993
 
9994
# If no C compiler was specified, use CC.
9995
LTCC=${LTCC-"$CC"}
9996
 
9997
# If no C compiler flags were specified, use CFLAGS.
9998
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9999
 
10000
# Allow CC to be a program name with arguments.
10001
compiler=$CC
10002
 
10003
 
10004
# save warnings/boilerplate of simple test code
10005
ac_outfile=conftest.$ac_objext
10006
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10007
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10008
_lt_compiler_boilerplate=`cat conftest.err`
10009
$rm conftest*
10010
 
10011
ac_outfile=conftest.$ac_objext
10012
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10013
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10014
_lt_linker_boilerplate=`cat conftest.err`
10015
$rm conftest*
10016
 
10017
 
10018
# Allow CC to be a program name with arguments.
10019
lt_save_CC=$CC
10020
lt_save_LD=$LD
10021
lt_save_GCC=$GCC
10022
GCC=$GXX
10023
lt_save_with_gnu_ld=$with_gnu_ld
10024
lt_save_path_LD=$lt_cv_path_LD
10025
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10026
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10027
else
10028
  $as_unset lt_cv_prog_gnu_ld
10029
fi
10030
if test -n "${lt_cv_path_LDCXX+set}"; then
10031
  lt_cv_path_LD=$lt_cv_path_LDCXX
10032
else
10033
  $as_unset lt_cv_path_LD
10034
fi
10035
test -z "${LDCXX+set}" || LD=$LDCXX
10036
CC=${CXX-"c++"}
10037
compiler=$CC
10038
compiler_CXX=$CC
10039
for cc_temp in $compiler""; do
10040
  case $cc_temp in
10041
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10042
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10043
    \-*) ;;
10044
    *) break;;
10045
  esac
10046
done
10047
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10048
 
10049
 
10050
# We don't want -fno-exception wen compiling C++ code, so set the
10051
# no_builtin_flag separately
10052
if test "$GXX" = yes; then
10053
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10054
else
10055
  lt_prog_compiler_no_builtin_flag_CXX=
10056
fi
10057
 
10058
if test "$GXX" = yes; then
10059
  # Set up default GNU C++ configuration
10060
 
10061
 
10062
# Check whether --with-gnu-ld was given.
10063
if test "${with_gnu_ld+set}" = set; then
10064
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10065
else
10066
  with_gnu_ld=no
10067
fi
10068
 
10069
ac_prog=ld
10070
if test "$GCC" = yes; then
10071
  # Check if gcc -print-prog-name=ld gives a path.
10072
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10073
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10074
  case $host in
10075
  *-*-mingw*)
10076
    # gcc leaves a trailing carriage return which upsets mingw
10077
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10078
  *)
10079
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10080
  esac
10081
  case $ac_prog in
10082
    # Accept absolute paths.
10083
    [\\/]* | ?:[\\/]*)
10084
      re_direlt='/[^/][^/]*/\.\./'
10085
      # Canonicalize the pathname of ld
10086
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10087
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10088
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10089
      done
10090
      test -z "$LD" && LD="$ac_prog"
10091
      ;;
10092
  "")
10093
    # If it fails, then pretend we aren't using GCC.
10094
    ac_prog=ld
10095
    ;;
10096
  *)
10097
    # If it is relative, then search for the first ld in PATH.
10098
    with_gnu_ld=unknown
10099
    ;;
10100
  esac
10101
elif test "$with_gnu_ld" = yes; then
10102
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10103
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10104
else
10105
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10106
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10107
fi
10108
if test "${lt_cv_path_LD+set}" = set; then
10109
  echo $ECHO_N "(cached) $ECHO_C" >&6
10110
else
10111
  if test -z "$LD"; then
10112
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10113
  for ac_dir in $PATH; do
10114
    IFS="$lt_save_ifs"
10115
    test -z "$ac_dir" && ac_dir=.
10116
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10117
      lt_cv_path_LD="$ac_dir/$ac_prog"
10118
      # Check to see if the program is GNU ld.  I'd rather use --version,
10119
      # but apparently some variants of GNU ld only accept -v.
10120
      # Break only if it was the GNU/non-GNU ld that we prefer.
10121
      case `"$lt_cv_path_LD" -v 2>&1 
10122
      *GNU* | *'with BFD'*)
10123
        test "$with_gnu_ld" != no && break
10124
        ;;
10125
      *)
10126
        test "$with_gnu_ld" != yes && break
10127
        ;;
10128
      esac
10129
    fi
10130
  done
10131
  IFS="$lt_save_ifs"
10132
else
10133
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10134
fi
10135
fi
10136
 
10137
LD="$lt_cv_path_LD"
10138
if test -n "$LD"; then
10139
  { echo "$as_me:$LINENO: result: $LD" >&5
10140
echo "${ECHO_T}$LD" >&6; }
10141
else
10142
  { echo "$as_me:$LINENO: result: no" >&5
10143
echo "${ECHO_T}no" >&6; }
10144
fi
10145
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10146
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10147
   { (exit 1); exit 1; }; }
10148
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10149
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10150
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10151
  echo $ECHO_N "(cached) $ECHO_C" >&6
10152
else
10153
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10154
case `$LD -v 2>&1 
10155
*GNU* | *'with BFD'*)
10156
  lt_cv_prog_gnu_ld=yes
10157
  ;;
10158
*)
10159
  lt_cv_prog_gnu_ld=no
10160
  ;;
10161
esac
10162
fi
10163
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10164
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10165
with_gnu_ld=$lt_cv_prog_gnu_ld
10166
 
10167
 
10168
 
10169
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10170
  # archiving commands below assume that GNU ld is being used.
10171
  if test "$with_gnu_ld" = yes; then
10172
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10173
    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'
10174
 
10175
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10176
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10177
 
10178
    # If archive_cmds runs LD, not CC, wlarc should be empty
10179
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10180
    #     investigate it a little bit more. (MM)
10181
    wlarc='${wl}'
10182
 
10183
    # ancient GNU ld didn't support --whole-archive et. al.
10184
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10185
        grep 'no-whole-archive' > /dev/null; then
10186
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10187
    else
10188
      whole_archive_flag_spec_CXX=
10189
    fi
10190
  else
10191
    with_gnu_ld=no
10192
    wlarc=
10193
 
10194
    # A generic and very simple default shared library creation
10195
    # command for GNU C++ for the case where it uses the native
10196
    # linker, instead of GNU ld.  If possible, this setting should
10197
    # overridden to take advantage of the native linker features on
10198
    # the platform it is being used on.
10199
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10200
  fi
10201
 
10202
  # Commands to make compiler produce verbose output that lists
10203
  # what "hidden" libraries, object files and flags are used when
10204
  # linking a shared library.
10205
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10206
 
10207
else
10208
  GXX=no
10209
  with_gnu_ld=no
10210
  wlarc=
10211
fi
10212
 
10213
# PORTME: fill in a description of your system's C++ link characteristics
10214
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10215
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10216
ld_shlibs_CXX=yes
10217
case $host_os in
10218
  aix3*)
10219
    # FIXME: insert proper C++ library support
10220
    ld_shlibs_CXX=no
10221
    ;;
10222
  aix4* | aix5*)
10223
    if test "$host_cpu" = ia64; then
10224
      # On IA64, the linker does run time linking by default, so we don't
10225
      # have to do anything special.
10226
      aix_use_runtimelinking=no
10227
      exp_sym_flag='-Bexport'
10228
      no_entry_flag=""
10229
    else
10230
      aix_use_runtimelinking=no
10231
 
10232
      # Test if we are trying to use run time linking or normal
10233
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10234
      # need to do runtime linking.
10235
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10236
        for ld_flag in $LDFLAGS; do
10237
          case $ld_flag in
10238
          *-brtl*)
10239
            aix_use_runtimelinking=yes
10240
            break
10241
            ;;
10242
          esac
10243
        done
10244
        ;;
10245
      esac
10246
 
10247
      exp_sym_flag='-bexport'
10248
      no_entry_flag='-bnoentry'
10249
    fi
10250
 
10251
    # When large executables or shared objects are built, AIX ld can
10252
    # have problems creating the table of contents.  If linking a library
10253
    # or program results in "error TOC overflow" add -mminimal-toc to
10254
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10255
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10256
 
10257
    archive_cmds_CXX=''
10258
    hardcode_direct_CXX=yes
10259
    hardcode_libdir_separator_CXX=':'
10260
    link_all_deplibs_CXX=yes
10261
 
10262
    if test "$GXX" = yes; then
10263
      case $host_os in aix4.[012]|aix4.[012].*)
10264
      # We only want to do this on AIX 4.2 and lower, the check
10265
      # below for broken collect2 doesn't work under 4.3+
10266
        collect2name=`${CC} -print-prog-name=collect2`
10267
        if test -f "$collect2name" && \
10268
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10269
        then
10270
          # We have reworked collect2
10271
          :
10272
        else
10273
          # We have old collect2
10274
          hardcode_direct_CXX=unsupported
10275
          # It fails to find uninstalled libraries when the uninstalled
10276
          # path is not listed in the libpath.  Setting hardcode_minus_L
10277
          # to unsupported forces relinking
10278
          hardcode_minus_L_CXX=yes
10279
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10280
          hardcode_libdir_separator_CXX=
10281
        fi
10282
        ;;
10283
      esac
10284
      shared_flag='-shared'
10285
      if test "$aix_use_runtimelinking" = yes; then
10286
        shared_flag="$shared_flag "'${wl}-G'
10287
      fi
10288
    else
10289
      # not using gcc
10290
      if test "$host_cpu" = ia64; then
10291
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10292
        # chokes on -Wl,-G. The following line is correct:
10293
        shared_flag='-G'
10294
      else
10295
        if test "$aix_use_runtimelinking" = yes; then
10296
          shared_flag='${wl}-G'
10297
        else
10298
          shared_flag='${wl}-bM:SRE'
10299
        fi
10300
      fi
10301
    fi
10302
 
10303
    # It seems that -bexpall does not export symbols beginning with
10304
    # underscore (_), so it is better to generate a list of symbols to export.
10305
    always_export_symbols_CXX=yes
10306
    if test "$aix_use_runtimelinking" = yes; then
10307
      # Warning - without using the other runtime loading flags (-brtl),
10308
      # -berok will link without error, but may produce a broken library.
10309
      allow_undefined_flag_CXX='-berok'
10310
      # Determine the default libpath from the value encoded in an empty executable.
10311
      cat >conftest.$ac_ext <<_ACEOF
10312
/* confdefs.h.  */
10313
_ACEOF
10314
cat confdefs.h >>conftest.$ac_ext
10315
cat >>conftest.$ac_ext <<_ACEOF
10316
/* end confdefs.h.  */
10317
 
10318
int
10319
main ()
10320
{
10321
 
10322
  ;
10323
  return 0;
10324
}
10325
_ACEOF
10326
rm -f conftest.$ac_objext conftest$ac_exeext
10327
if { (ac_try="$ac_link"
10328
case "(($ac_try" in
10329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330
  *) ac_try_echo=$ac_try;;
10331
esac
10332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333
  (eval "$ac_link") 2>conftest.er1
10334
  ac_status=$?
10335
  grep -v '^ *+' conftest.er1 >conftest.err
10336
  rm -f conftest.er1
10337
  cat conftest.err >&5
10338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339
  (exit $ac_status); } && {
10340
         test -z "$ac_cxx_werror_flag" ||
10341
         test ! -s conftest.err
10342
       } && test -s conftest$ac_exeext &&
10343
       $as_test_x conftest$ac_exeext; then
10344
 
10345
lt_aix_libpath_sed='
10346
    /Import File Strings/,/^$/ {
10347
        /^0/ {
10348
            s/^0  *\(.*\)$/\1/
10349
            p
10350
        }
10351
    }'
10352
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10353
# Check for a 64-bit object if we didn't find anything.
10354
if test -z "$aix_libpath"; then
10355
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10356
fi
10357
else
10358
  echo "$as_me: failed program was:" >&5
10359
sed 's/^/| /' conftest.$ac_ext >&5
10360
 
10361
 
10362
fi
10363
 
10364
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10365
      conftest$ac_exeext conftest.$ac_ext
10366
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10367
 
10368
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10369
 
10370
      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"
10371
     else
10372
      if test "$host_cpu" = ia64; then
10373
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10374
        allow_undefined_flag_CXX="-z nodefs"
10375
        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"
10376
      else
10377
        # Determine the default libpath from the value encoded in an empty executable.
10378
        cat >conftest.$ac_ext <<_ACEOF
10379
/* confdefs.h.  */
10380
_ACEOF
10381
cat confdefs.h >>conftest.$ac_ext
10382
cat >>conftest.$ac_ext <<_ACEOF
10383
/* end confdefs.h.  */
10384
 
10385
int
10386
main ()
10387
{
10388
 
10389
  ;
10390
  return 0;
10391
}
10392
_ACEOF
10393
rm -f conftest.$ac_objext conftest$ac_exeext
10394
if { (ac_try="$ac_link"
10395
case "(($ac_try" in
10396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397
  *) ac_try_echo=$ac_try;;
10398
esac
10399
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400
  (eval "$ac_link") 2>conftest.er1
10401
  ac_status=$?
10402
  grep -v '^ *+' conftest.er1 >conftest.err
10403
  rm -f conftest.er1
10404
  cat conftest.err >&5
10405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406
  (exit $ac_status); } && {
10407
         test -z "$ac_cxx_werror_flag" ||
10408
         test ! -s conftest.err
10409
       } && test -s conftest$ac_exeext &&
10410
       $as_test_x conftest$ac_exeext; then
10411
 
10412
lt_aix_libpath_sed='
10413
    /Import File Strings/,/^$/ {
10414
        /^0/ {
10415
            s/^0  *\(.*\)$/\1/
10416
            p
10417
        }
10418
    }'
10419
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10420
# Check for a 64-bit object if we didn't find anything.
10421
if test -z "$aix_libpath"; then
10422
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10423
fi
10424
else
10425
  echo "$as_me: failed program was:" >&5
10426
sed 's/^/| /' conftest.$ac_ext >&5
10427
 
10428
 
10429
fi
10430
 
10431
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10432
      conftest$ac_exeext conftest.$ac_ext
10433
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10434
 
10435
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10436
        # Warning - without using the other run time loading flags,
10437
        # -berok will link without error, but may produce a broken library.
10438
        no_undefined_flag_CXX=' ${wl}-bernotok'
10439
        allow_undefined_flag_CXX=' ${wl}-berok'
10440
        # Exported symbols can be pulled into shared objects from archives
10441
        whole_archive_flag_spec_CXX='$convenience'
10442
        archive_cmds_need_lc_CXX=yes
10443
        # This is similar to how AIX traditionally builds its shared libraries.
10444
        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'
10445
      fi
10446
    fi
10447
    ;;
10448
 
10449
  beos*)
10450
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10451
      allow_undefined_flag_CXX=unsupported
10452
      # Joseph Beckenbach  says some releases of gcc
10453
      # support --undefined.  This deserves some investigation.  FIXME
10454
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10455
    else
10456
      ld_shlibs_CXX=no
10457
    fi
10458
    ;;
10459
 
10460
  chorus*)
10461
    case $cc_basename in
10462
      *)
10463
        # FIXME: insert proper C++ library support
10464
        ld_shlibs_CXX=no
10465
        ;;
10466
    esac
10467
    ;;
10468
 
10469
  cygwin* | mingw* | pw32*)
10470
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10471
    # as there is no search path for DLLs.
10472
    hardcode_libdir_flag_spec_CXX='-L$libdir'
10473
    allow_undefined_flag_CXX=unsupported
10474
    always_export_symbols_CXX=no
10475
    enable_shared_with_static_runtimes_CXX=yes
10476
 
10477
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10478
      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'
10479
      # If the export-symbols file already is a .def file (1st line
10480
      # is EXPORTS), use it as is; otherwise, prepend...
10481
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10482
        cp $export_symbols $output_objdir/$soname.def;
10483
      else
10484
        echo EXPORTS > $output_objdir/$soname.def;
10485
        cat $export_symbols >> $output_objdir/$soname.def;
10486
      fi~
10487
      $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'
10488
    else
10489
      ld_shlibs_CXX=no
10490
    fi
10491
  ;;
10492
      darwin* | rhapsody*)
10493
        case $host_os in
10494
        rhapsody* | darwin1.[012])
10495
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10496
         ;;
10497
       *) # Darwin 1.3 on
10498
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10499
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10500
         else
10501
           case ${MACOSX_DEPLOYMENT_TARGET} in
10502
             10.[012])
10503
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10504
               ;;
10505
             10.*)
10506
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10507
               ;;
10508
           esac
10509
         fi
10510
         ;;
10511
        esac
10512
      archive_cmds_need_lc_CXX=no
10513
      hardcode_direct_CXX=no
10514
      hardcode_automatic_CXX=yes
10515
      hardcode_shlibpath_var_CXX=unsupported
10516
      whole_archive_flag_spec_CXX=''
10517
      link_all_deplibs_CXX=yes
10518
 
10519
    if test "$GXX" = yes ; then
10520
      lt_int_apple_cc_single_mod=no
10521
      output_verbose_link_cmd='echo'
10522
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10523
       lt_int_apple_cc_single_mod=yes
10524
      fi
10525
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10526
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10527
      else
10528
          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'
10529
        fi
10530
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10531
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10532
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10533
            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}'
10534
          else
10535
            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}'
10536
          fi
10537
            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}'
10538
      else
10539
      case $cc_basename in
10540
        xlc*)
10541
         output_verbose_link_cmd='echo'
10542
          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'
10543
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10544
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10545
          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}'
10546
          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}'
10547
          ;;
10548
       *)
10549
         ld_shlibs_CXX=no
10550
          ;;
10551
      esac
10552
      fi
10553
        ;;
10554
 
10555
  dgux*)
10556
    case $cc_basename in
10557
      ec++*)
10558
        # FIXME: insert proper C++ library support
10559
        ld_shlibs_CXX=no
10560
        ;;
10561
      ghcx*)
10562
        # Green Hills C++ Compiler
10563
        # FIXME: insert proper C++ library support
10564
        ld_shlibs_CXX=no
10565
        ;;
10566
      *)
10567
        # FIXME: insert proper C++ library support
10568
        ld_shlibs_CXX=no
10569
        ;;
10570
    esac
10571
    ;;
10572
  freebsd[12]*)
10573
    # C++ shared libraries reported to be fairly broken before switch to ELF
10574
    ld_shlibs_CXX=no
10575
    ;;
10576
  freebsd-elf*)
10577
    archive_cmds_need_lc_CXX=no
10578
    ;;
10579
  freebsd* | dragonfly*)
10580
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10581
    # conventions
10582
    ld_shlibs_CXX=yes
10583
    ;;
10584
  gnu*)
10585
    ;;
10586
  hpux9*)
10587
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10588
    hardcode_libdir_separator_CXX=:
10589
    export_dynamic_flag_spec_CXX='${wl}-E'
10590
    hardcode_direct_CXX=yes
10591
    hardcode_minus_L_CXX=yes # Not in the search PATH,
10592
                                # but as the default
10593
                                # location of the library.
10594
 
10595
    case $cc_basename in
10596
    CC*)
10597
      # FIXME: insert proper C++ library support
10598
      ld_shlibs_CXX=no
10599
      ;;
10600
    aCC*)
10601
      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'
10602
      # Commands to make compiler produce verbose output that lists
10603
      # what "hidden" libraries, object files and flags are used when
10604
      # linking a shared library.
10605
      #
10606
      # There doesn't appear to be a way to prevent this compiler from
10607
      # explicitly linking system object files so we need to strip them
10608
      # from the output so that they don't get included in the library
10609
      # dependencies.
10610
      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'
10611
      ;;
10612
    *)
10613
      if test "$GXX" = yes; then
10614
        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'
10615
      else
10616
        # FIXME: insert proper C++ library support
10617
        ld_shlibs_CXX=no
10618
      fi
10619
      ;;
10620
    esac
10621
    ;;
10622
  hpux10*|hpux11*)
10623
    if test $with_gnu_ld = no; then
10624
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10625
      hardcode_libdir_separator_CXX=:
10626
 
10627
      case $host_cpu in
10628
      hppa*64*|ia64*) ;;
10629
      *)
10630
        export_dynamic_flag_spec_CXX='${wl}-E'
10631
        ;;
10632
      esac
10633
    fi
10634
    case $host_cpu in
10635
    hppa*64*|ia64*)
10636
      hardcode_direct_CXX=no
10637
      hardcode_shlibpath_var_CXX=no
10638
      ;;
10639
    *)
10640
      hardcode_direct_CXX=yes
10641
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10642
                                              # but as the default
10643
                                              # location of the library.
10644
      ;;
10645
    esac
10646
 
10647
    case $cc_basename in
10648
      CC*)
10649
        # FIXME: insert proper C++ library support
10650
        ld_shlibs_CXX=no
10651
        ;;
10652
      aCC*)
10653
        case $host_cpu in
10654
        hppa*64*)
10655
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10656
          ;;
10657
        ia64*)
10658
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10659
          ;;
10660
        *)
10661
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10662
          ;;
10663
        esac
10664
        # Commands to make compiler produce verbose output that lists
10665
        # what "hidden" libraries, object files and flags are used when
10666
        # linking a shared library.
10667
        #
10668
        # There doesn't appear to be a way to prevent this compiler from
10669
        # explicitly linking system object files so we need to strip them
10670
        # from the output so that they don't get included in the library
10671
        # dependencies.
10672
        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'
10673
        ;;
10674
      *)
10675
        if test "$GXX" = yes; then
10676
          if test $with_gnu_ld = no; then
10677
            case $host_cpu in
10678
            hppa*64*)
10679
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10680
              ;;
10681
            ia64*)
10682
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10683
              ;;
10684
            *)
10685
              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'
10686
              ;;
10687
            esac
10688
          fi
10689
        else
10690
          # FIXME: insert proper C++ library support
10691
          ld_shlibs_CXX=no
10692
        fi
10693
        ;;
10694
    esac
10695
    ;;
10696
  interix[3-9]*)
10697
    hardcode_direct_CXX=no
10698
    hardcode_shlibpath_var_CXX=no
10699
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10700
    export_dynamic_flag_spec_CXX='${wl}-E'
10701
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10702
    # Instead, shared libraries are loaded at an image base (0x10000000 by
10703
    # default) and relocated if they conflict, which is a slow very memory
10704
    # consuming and fragmenting process.  To avoid this, we pick a random,
10705
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10706
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10707
    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'
10708
    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'
10709
    ;;
10710
  irix5* | irix6*)
10711
    case $cc_basename in
10712
      CC*)
10713
        # SGI C++
10714
        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'
10715
 
10716
        # Archives containing C++ object files must be created using
10717
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10718
        # necessary to make sure instantiated templates are included
10719
        # in the archive.
10720
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10721
        ;;
10722
      *)
10723
        if test "$GXX" = yes; then
10724
          if test "$with_gnu_ld" = no; then
10725
            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'
10726
          else
10727
            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'
10728
          fi
10729
        fi
10730
        link_all_deplibs_CXX=yes
10731
        ;;
10732
    esac
10733
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10734
    hardcode_libdir_separator_CXX=:
10735
    ;;
10736
  linux* | k*bsd*-gnu)
10737
    case $cc_basename in
10738
      KCC*)
10739
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10740
 
10741
        # KCC will only create a shared library if the output file
10742
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10743
        # to its proper name (with version) after linking.
10744
        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'
10745
        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'
10746
        # Commands to make compiler produce verbose output that lists
10747
        # what "hidden" libraries, object files and flags are used when
10748
        # linking a shared library.
10749
        #
10750
        # There doesn't appear to be a way to prevent this compiler from
10751
        # explicitly linking system object files so we need to strip them
10752
        # from the output so that they don't get included in the library
10753
        # dependencies.
10754
        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'
10755
 
10756
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10757
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10758
 
10759
        # Archives containing C++ object files must be created using
10760
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10761
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10762
        ;;
10763
      icpc*)
10764
        # Intel C++
10765
        with_gnu_ld=yes
10766
        # version 8.0 and above of icpc choke on multiply defined symbols
10767
        # if we add $predep_objects and $postdep_objects, however 7.1 and
10768
        # earlier do not add the objects themselves.
10769
        case `$CC -V 2>&1` in
10770
        *"Version 7."*)
10771
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10772
          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'
10773
          ;;
10774
        *)  # Version 8.0 or newer
10775
          tmp_idyn=
10776
          case $host_cpu in
10777
            ia64*) tmp_idyn=' -i_dynamic';;
10778
          esac
10779
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10780
          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'
10781
          ;;
10782
        esac
10783
        archive_cmds_need_lc_CXX=no
10784
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10785
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10786
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10787
        ;;
10788
      pgCC*)
10789
        # Portland Group C++ compiler
10790
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10791
        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'
10792
 
10793
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10794
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10795
        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'
10796
        ;;
10797
      cxx*)
10798
        # Compaq C++
10799
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10800
        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'
10801
 
10802
        runpath_var=LD_RUN_PATH
10803
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10804
        hardcode_libdir_separator_CXX=:
10805
 
10806
        # Commands to make compiler produce verbose output that lists
10807
        # what "hidden" libraries, object files and flags are used when
10808
        # linking a shared library.
10809
        #
10810
        # There doesn't appear to be a way to prevent this compiler from
10811
        # explicitly linking system object files so we need to strip them
10812
        # from the output so that they don't get included in the library
10813
        # dependencies.
10814
        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'
10815
        ;;
10816
      *)
10817
        case `$CC -V 2>&1 | sed 5q` in
10818
        *Sun\ C*)
10819
          # Sun C++ 5.9
10820
          no_undefined_flag_CXX=' -zdefs'
10821
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10822
          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'
10823
          hardcode_libdir_flag_spec_CXX='-R$libdir'
10824
          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'
10825
 
10826
          # Not sure whether something based on
10827
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10828
          # would be better.
10829
          output_verbose_link_cmd='echo'
10830
 
10831
          # Archives containing C++ object files must be created using
10832
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10833
          # necessary to make sure instantiated templates are included
10834
          # in the archive.
10835
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10836
          ;;
10837
        esac
10838
        ;;
10839
    esac
10840
    ;;
10841
  lynxos*)
10842
    # FIXME: insert proper C++ library support
10843
    ld_shlibs_CXX=no
10844
    ;;
10845
  m88k*)
10846
    # FIXME: insert proper C++ library support
10847
    ld_shlibs_CXX=no
10848
    ;;
10849
  mvs*)
10850
    case $cc_basename in
10851
      cxx*)
10852
        # FIXME: insert proper C++ library support
10853
        ld_shlibs_CXX=no
10854
        ;;
10855
      *)
10856
        # FIXME: insert proper C++ library support
10857
        ld_shlibs_CXX=no
10858
        ;;
10859
    esac
10860
    ;;
10861
  netbsd*)
10862
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10863
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10864
      wlarc=
10865
      hardcode_libdir_flag_spec_CXX='-R$libdir'
10866
      hardcode_direct_CXX=yes
10867
      hardcode_shlibpath_var_CXX=no
10868
    fi
10869
    # Workaround some broken pre-1.5 toolchains
10870
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10871
    ;;
10872
  openbsd2*)
10873
    # C++ shared libraries are fairly broken
10874
    ld_shlibs_CXX=no
10875
    ;;
10876
  openbsd*)
10877
    if test -f /usr/libexec/ld.so; then
10878
      hardcode_direct_CXX=yes
10879
      hardcode_shlibpath_var_CXX=no
10880
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10881
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10882
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10883
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10884
        export_dynamic_flag_spec_CXX='${wl}-E'
10885
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10886
      fi
10887
      output_verbose_link_cmd='echo'
10888
    else
10889
      ld_shlibs_CXX=no
10890
    fi
10891
    ;;
10892
  osf3*)
10893
    case $cc_basename in
10894
      KCC*)
10895
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10896
 
10897
        # KCC will only create a shared library if the output file
10898
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10899
        # to its proper name (with version) after linking.
10900
        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'
10901
 
10902
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10903
        hardcode_libdir_separator_CXX=:
10904
 
10905
        # Archives containing C++ object files must be created using
10906
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10907
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10908
 
10909
        ;;
10910
      RCC*)
10911
        # Rational C++ 2.4.1
10912
        # FIXME: insert proper C++ library support
10913
        ld_shlibs_CXX=no
10914
        ;;
10915
      cxx*)
10916
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10917
        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'
10918
 
10919
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10920
        hardcode_libdir_separator_CXX=:
10921
 
10922
        # Commands to make compiler produce verbose output that lists
10923
        # what "hidden" libraries, object files and flags are used when
10924
        # linking a shared library.
10925
        #
10926
        # There doesn't appear to be a way to prevent this compiler from
10927
        # explicitly linking system object files so we need to strip them
10928
        # from the output so that they don't get included in the library
10929
        # dependencies.
10930
        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'
10931
        ;;
10932
      *)
10933
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10934
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10935
          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'
10936
 
10937
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10938
          hardcode_libdir_separator_CXX=:
10939
 
10940
          # Commands to make compiler produce verbose output that lists
10941
          # what "hidden" libraries, object files and flags are used when
10942
          # linking a shared library.
10943
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10944
 
10945
        else
10946
          # FIXME: insert proper C++ library support
10947
          ld_shlibs_CXX=no
10948
        fi
10949
        ;;
10950
    esac
10951
    ;;
10952
  osf4* | osf5*)
10953
    case $cc_basename in
10954
      KCC*)
10955
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10956
 
10957
        # KCC will only create a shared library if the output file
10958
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10959
        # to its proper name (with version) after linking.
10960
        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'
10961
 
10962
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10963
        hardcode_libdir_separator_CXX=:
10964
 
10965
        # Archives containing C++ object files must be created using
10966
        # the KAI C++ compiler.
10967
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10968
        ;;
10969
      RCC*)
10970
        # Rational C++ 2.4.1
10971
        # FIXME: insert proper C++ library support
10972
        ld_shlibs_CXX=no
10973
        ;;
10974
      cxx*)
10975
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10976
        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'
10977
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10978
          echo "-hidden">> $lib.exp~
10979
          $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~
10980
          $rm $lib.exp'
10981
 
10982
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10983
        hardcode_libdir_separator_CXX=:
10984
 
10985
        # Commands to make compiler produce verbose output that lists
10986
        # what "hidden" libraries, object files and flags are used when
10987
        # linking a shared library.
10988
        #
10989
        # There doesn't appear to be a way to prevent this compiler from
10990
        # explicitly linking system object files so we need to strip them
10991
        # from the output so that they don't get included in the library
10992
        # dependencies.
10993
        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'
10994
        ;;
10995
      *)
10996
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10997
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10998
         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'
10999
 
11000
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11001
          hardcode_libdir_separator_CXX=:
11002
 
11003
          # Commands to make compiler produce verbose output that lists
11004
          # what "hidden" libraries, object files and flags are used when
11005
          # linking a shared library.
11006
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11007
 
11008
        else
11009
          # FIXME: insert proper C++ library support
11010
          ld_shlibs_CXX=no
11011
        fi
11012
        ;;
11013
    esac
11014
    ;;
11015
  psos*)
11016
    # FIXME: insert proper C++ library support
11017
    ld_shlibs_CXX=no
11018
    ;;
11019
  sunos4*)
11020
    case $cc_basename in
11021
      CC*)
11022
        # Sun C++ 4.x
11023
        # FIXME: insert proper C++ library support
11024
        ld_shlibs_CXX=no
11025
        ;;
11026
      lcc*)
11027
        # Lucid
11028
        # FIXME: insert proper C++ library support
11029
        ld_shlibs_CXX=no
11030
        ;;
11031
      *)
11032
        # FIXME: insert proper C++ library support
11033
        ld_shlibs_CXX=no
11034
        ;;
11035
    esac
11036
    ;;
11037
  solaris*)
11038
    case $cc_basename in
11039
      CC*)
11040
        # Sun C++ 4.2, 5.x and Centerline C++
11041
        archive_cmds_need_lc_CXX=yes
11042
        no_undefined_flag_CXX=' -zdefs'
11043
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11044
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11045
        $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'
11046
 
11047
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11048
        hardcode_shlibpath_var_CXX=no
11049
        case $host_os in
11050
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11051
          *)
11052
            # The compiler driver will combine and reorder linker options,
11053
            # but understands `-z linker_flag'.
11054
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11055
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11056
            ;;
11057
        esac
11058
        link_all_deplibs_CXX=yes
11059
 
11060
        output_verbose_link_cmd='echo'
11061
 
11062
        # Archives containing C++ object files must be created using
11063
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11064
        # necessary to make sure instantiated templates are included
11065
        # in the archive.
11066
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11067
        ;;
11068
      gcx*)
11069
        # Green Hills C++ Compiler
11070
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11071
 
11072
        # The C++ compiler must be used to create the archive.
11073
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11074
        ;;
11075
      *)
11076
        # GNU C++ compiler with Solaris linker
11077
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11078
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11079
          if $CC --version | grep -v '^2\.7' > /dev/null; then
11080
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11081
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11082
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11083
 
11084
            # Commands to make compiler produce verbose output that lists
11085
            # what "hidden" libraries, object files and flags are used when
11086
            # linking a shared library.
11087
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11088
          else
11089
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11090
            # platform.
11091
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11092
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11093
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11094
 
11095
            # Commands to make compiler produce verbose output that lists
11096
            # what "hidden" libraries, object files and flags are used when
11097
            # linking a shared library.
11098
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11099
          fi
11100
 
11101
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11102
          case $host_os in
11103
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11104
          *)
11105
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11106
            ;;
11107
          esac
11108
        fi
11109
        ;;
11110
    esac
11111
    ;;
11112
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11113
    no_undefined_flag_CXX='${wl}-z,text'
11114
    archive_cmds_need_lc_CXX=no
11115
    hardcode_shlibpath_var_CXX=no
11116
    runpath_var='LD_RUN_PATH'
11117
 
11118
    case $cc_basename in
11119
      CC*)
11120
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11121
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11122
        ;;
11123
      *)
11124
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11125
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126
        ;;
11127
    esac
11128
    ;;
11129
  sysv5* | sco3.2v5* | sco5v6*)
11130
    # Note: We can NOT use -z defs as we might desire, because we do not
11131
    # link with -lc, and that would cause any symbols used from libc to
11132
    # always be unresolved, which means just about no library would
11133
    # ever link correctly.  If we're not using GNU ld we use -z text
11134
    # though, which does catch some bad symbols but isn't as heavy-handed
11135
    # as -z defs.
11136
    # For security reasons, it is highly recommended that you always
11137
    # use absolute paths for naming shared libraries, and exclude the
11138
    # DT_RUNPATH tag from executables and libraries.  But doing so
11139
    # requires that you compile everything twice, which is a pain.
11140
    # So that behaviour is only enabled if SCOABSPATH is set to a
11141
    # non-empty value in the environment.  Most likely only useful for
11142
    # creating official distributions of packages.
11143
    # This is a hack until libtool officially supports absolute path
11144
    # names for shared libraries.
11145
    no_undefined_flag_CXX='${wl}-z,text'
11146
    allow_undefined_flag_CXX='${wl}-z,nodefs'
11147
    archive_cmds_need_lc_CXX=no
11148
    hardcode_shlibpath_var_CXX=no
11149
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11150
    hardcode_libdir_separator_CXX=':'
11151
    link_all_deplibs_CXX=yes
11152
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11153
    runpath_var='LD_RUN_PATH'
11154
 
11155
    case $cc_basename in
11156
      CC*)
11157
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11158
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11159
        ;;
11160
      *)
11161
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11162
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11163
        ;;
11164
    esac
11165
    ;;
11166
  tandem*)
11167
    case $cc_basename in
11168
      NCC*)
11169
        # NonStop-UX NCC 3.20
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
    ;;
11179
  vxworks*)
11180
    # FIXME: insert proper C++ library support
11181
    ld_shlibs_CXX=no
11182
    ;;
11183
  *)
11184
    # FIXME: insert proper C++ library support
11185
    ld_shlibs_CXX=no
11186
    ;;
11187
esac
11188
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11189
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11190
test "$ld_shlibs_CXX" = no && can_build_shared=no
11191
 
11192
GCC_CXX="$GXX"
11193
LD_CXX="$LD"
11194
 
11195
## CAVEAT EMPTOR:
11196
## There is no encapsulation within the following macros, do not change
11197
## the running order or otherwise move them around unless you know exactly
11198
## what you are doing...
11199
 
11200
cat > conftest.$ac_ext <
11201
class Foo
11202
{
11203
public:
11204
  Foo (void) { a = 0; }
11205
private:
11206
  int a;
11207
};
11208
EOF
11209
 
11210
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11211
  (eval $ac_compile) 2>&5
11212
  ac_status=$?
11213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214
  (exit $ac_status); }; then
11215
  # Parse the compiler output and extract the necessary
11216
  # objects, libraries and library flags.
11217
 
11218
  # Sentinel used to keep track of whether or not we are before
11219
  # the conftest object file.
11220
  pre_test_object_deps_done=no
11221
 
11222
  # The `*' in the case matches for architectures that use `case' in
11223
  # $output_verbose_cmd can trigger glob expansion during the loop
11224
  # eval without this substitution.
11225
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11226
 
11227
  for p in `eval $output_verbose_link_cmd`; do
11228
    case $p in
11229
 
11230
    -L* | -R* | -l*)
11231
       # Some compilers place space between "-{L,R}" and the path.
11232
       # Remove the space.
11233
       if test $p = "-L" \
11234
          || test $p = "-R"; then
11235
         prev=$p
11236
         continue
11237
       else
11238
         prev=
11239
       fi
11240
 
11241
       if test "$pre_test_object_deps_done" = no; then
11242
         case $p in
11243
         -L* | -R*)
11244
           # Internal compiler library paths should come after those
11245
           # provided the user.  The postdeps already come after the
11246
           # user supplied libs so there is no need to process them.
11247
           if test -z "$compiler_lib_search_path_CXX"; then
11248
             compiler_lib_search_path_CXX="${prev}${p}"
11249
           else
11250
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11251
           fi
11252
           ;;
11253
         # The "-l" case would never come before the object being
11254
         # linked, so don't bother handling this case.
11255
         esac
11256
       else
11257
         if test -z "$postdeps_CXX"; then
11258
           postdeps_CXX="${prev}${p}"
11259
         else
11260
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11261
         fi
11262
       fi
11263
       ;;
11264
 
11265
    *.$objext)
11266
       # This assumes that the test object file only shows up
11267
       # once in the compiler output.
11268
       if test "$p" = "conftest.$objext"; then
11269
         pre_test_object_deps_done=yes
11270
         continue
11271
       fi
11272
 
11273
       if test "$pre_test_object_deps_done" = no; then
11274
         if test -z "$predep_objects_CXX"; then
11275
           predep_objects_CXX="$p"
11276
         else
11277
           predep_objects_CXX="$predep_objects_CXX $p"
11278
         fi
11279
       else
11280
         if test -z "$postdep_objects_CXX"; then
11281
           postdep_objects_CXX="$p"
11282
         else
11283
           postdep_objects_CXX="$postdep_objects_CXX $p"
11284
         fi
11285
       fi
11286
       ;;
11287
 
11288
    *) ;; # Ignore the rest.
11289
 
11290
    esac
11291
  done
11292
 
11293
  # Clean up.
11294
  rm -f a.out a.exe
11295
else
11296
  echo "libtool.m4: error: problem compiling CXX test program"
11297
fi
11298
 
11299
$rm -f confest.$objext
11300
 
11301
# PORTME: override above test on systems where it is broken
11302
case $host_os in
11303
interix[3-9]*)
11304
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11305
  # hack all around it, let's just trust "g++" to DTRT.
11306
  predep_objects_CXX=
11307
  postdep_objects_CXX=
11308
  postdeps_CXX=
11309
  ;;
11310
 
11311
linux*)
11312
  case `$CC -V 2>&1 | sed 5q` in
11313
  *Sun\ C*)
11314
    # Sun C++ 5.9
11315
    #
11316
    # The more standards-conforming stlport4 library is
11317
    # incompatible with the Cstd library. Avoid specifying
11318
    # it if it's in CXXFLAGS. Ignore libCrun as
11319
    # -library=stlport4 depends on it.
11320
    case " $CXX $CXXFLAGS " in
11321
    *" -library=stlport4 "*)
11322
      solaris_use_stlport4=yes
11323
      ;;
11324
    esac
11325
    if test "$solaris_use_stlport4" != yes; then
11326
      postdeps_CXX='-library=Cstd -library=Crun'
11327
    fi
11328
    ;;
11329
  esac
11330
  ;;
11331
 
11332
solaris*)
11333
  case $cc_basename in
11334
  CC*)
11335
    # The more standards-conforming stlport4 library is
11336
    # incompatible with the Cstd library. Avoid specifying
11337
    # it if it's in CXXFLAGS. Ignore libCrun as
11338
    # -library=stlport4 depends on it.
11339
    case " $CXX $CXXFLAGS " in
11340
    *" -library=stlport4 "*)
11341
      solaris_use_stlport4=yes
11342
      ;;
11343
    esac
11344
 
11345
    # Adding this requires a known-good setup of shared libraries for
11346
    # Sun compiler versions before 5.6, else PIC objects from an old
11347
    # archive will be linked into the output, leading to subtle bugs.
11348
    if test "$solaris_use_stlport4" != yes; then
11349
      postdeps_CXX='-library=Cstd -library=Crun'
11350
    fi
11351
    ;;
11352
  esac
11353
  ;;
11354
esac
11355
 
11356
 
11357
case " $postdeps_CXX " in
11358
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11359
esac
11360
 
11361
lt_prog_compiler_wl_CXX=
11362
lt_prog_compiler_pic_CXX=
11363
lt_prog_compiler_static_CXX=
11364
 
11365
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11366
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11367
 
11368
  # C++ specific cases for pic, static, wl, etc.
11369
  if test "$GXX" = yes; then
11370
    lt_prog_compiler_wl_CXX='-Wl,'
11371
    lt_prog_compiler_static_CXX='-static'
11372
 
11373
    case $host_os in
11374
    aix*)
11375
      # All AIX code is PIC.
11376
      if test "$host_cpu" = ia64; then
11377
        # AIX 5 now supports IA64 processor
11378
        lt_prog_compiler_static_CXX='-Bstatic'
11379
      fi
11380
      ;;
11381
    amigaos*)
11382
      # FIXME: we need at least 68020 code to build shared libraries, but
11383
      # adding the `-m68020' flag to GCC prevents building anything better,
11384
      # like `-m68040'.
11385
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11386
      ;;
11387
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11388
      # PIC is the default for these OSes.
11389
      ;;
11390
    mingw* | cygwin* | os2* | pw32*)
11391
      # This hack is so that the source file can tell whether it is being
11392
      # built for inclusion in a dll (and should export symbols for example).
11393
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11394
      # (--disable-auto-import) libraries
11395
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11396
      ;;
11397
    darwin* | rhapsody*)
11398
      # PIC is the default on this platform
11399
      # Common symbols not allowed in MH_DYLIB files
11400
      lt_prog_compiler_pic_CXX='-fno-common'
11401
      ;;
11402
    *djgpp*)
11403
      # DJGPP does not support shared libraries at all
11404
      lt_prog_compiler_pic_CXX=
11405
      ;;
11406
    interix[3-9]*)
11407
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11408
      # Instead, we relocate shared libraries at runtime.
11409
      ;;
11410
    sysv4*MP*)
11411
      if test -d /usr/nec; then
11412
        lt_prog_compiler_pic_CXX=-Kconform_pic
11413
      fi
11414
      ;;
11415
    hpux*)
11416
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11417
      # not for PA HP-UX.
11418
      case $host_cpu in
11419
      hppa*64*|ia64*)
11420
        ;;
11421
      *)
11422
        lt_prog_compiler_pic_CXX='-fPIC'
11423
        ;;
11424
      esac
11425
      ;;
11426
    *)
11427
      lt_prog_compiler_pic_CXX='-fPIC'
11428
      ;;
11429
    esac
11430
  else
11431
    case $host_os in
11432
      aix4* | aix5*)
11433
        # All AIX code is PIC.
11434
        if test "$host_cpu" = ia64; then
11435
          # AIX 5 now supports IA64 processor
11436
          lt_prog_compiler_static_CXX='-Bstatic'
11437
        else
11438
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11439
        fi
11440
        ;;
11441
      chorus*)
11442
        case $cc_basename in
11443
        cxch68*)
11444
          # Green Hills C++ Compiler
11445
          # _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"
11446
          ;;
11447
        esac
11448
        ;;
11449
       darwin*)
11450
         # PIC is the default on this platform
11451
         # Common symbols not allowed in MH_DYLIB files
11452
         case $cc_basename in
11453
           xlc*)
11454
           lt_prog_compiler_pic_CXX='-qnocommon'
11455
           lt_prog_compiler_wl_CXX='-Wl,'
11456
           ;;
11457
         esac
11458
       ;;
11459
      dgux*)
11460
        case $cc_basename in
11461
          ec++*)
11462
            lt_prog_compiler_pic_CXX='-KPIC'
11463
            ;;
11464
          ghcx*)
11465
            # Green Hills C++ Compiler
11466
            lt_prog_compiler_pic_CXX='-pic'
11467
            ;;
11468
          *)
11469
            ;;
11470
        esac
11471
        ;;
11472
      freebsd* | dragonfly*)
11473
        # FreeBSD uses GNU C++
11474
        ;;
11475
      hpux9* | hpux10* | hpux11*)
11476
        case $cc_basename in
11477
          CC*)
11478
            lt_prog_compiler_wl_CXX='-Wl,'
11479
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11480
            if test "$host_cpu" != ia64; then
11481
              lt_prog_compiler_pic_CXX='+Z'
11482
            fi
11483
            ;;
11484
          aCC*)
11485
            lt_prog_compiler_wl_CXX='-Wl,'
11486
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11487
            case $host_cpu in
11488
            hppa*64*|ia64*)
11489
              # +Z the default
11490
              ;;
11491
            *)
11492
              lt_prog_compiler_pic_CXX='+Z'
11493
              ;;
11494
            esac
11495
            ;;
11496
          *)
11497
            ;;
11498
        esac
11499
        ;;
11500
      interix*)
11501
        # This is c89, which is MS Visual C++ (no shared libs)
11502
        # Anyone wants to do a port?
11503
        ;;
11504
      irix5* | irix6* | nonstopux*)
11505
        case $cc_basename in
11506
          CC*)
11507
            lt_prog_compiler_wl_CXX='-Wl,'
11508
            lt_prog_compiler_static_CXX='-non_shared'
11509
            # CC pic flag -KPIC is the default.
11510
            ;;
11511
          *)
11512
            ;;
11513
        esac
11514
        ;;
11515
      linux* | k*bsd*-gnu)
11516
        case $cc_basename in
11517
          KCC*)
11518
            # KAI C++ Compiler
11519
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11520
            lt_prog_compiler_pic_CXX='-fPIC'
11521
            ;;
11522
          icpc* | ecpc*)
11523
            # Intel C++
11524
            lt_prog_compiler_wl_CXX='-Wl,'
11525
            lt_prog_compiler_pic_CXX='-KPIC'
11526
            lt_prog_compiler_static_CXX='-static'
11527
            ;;
11528
          pgCC*)
11529
            # Portland Group C++ compiler.
11530
            lt_prog_compiler_wl_CXX='-Wl,'
11531
            lt_prog_compiler_pic_CXX='-fpic'
11532
            lt_prog_compiler_static_CXX='-Bstatic'
11533
            ;;
11534
          cxx*)
11535
            # Compaq C++
11536
            # Make sure the PIC flag is empty.  It appears that all Alpha
11537
            # Linux and Compaq Tru64 Unix objects are PIC.
11538
            lt_prog_compiler_pic_CXX=
11539
            lt_prog_compiler_static_CXX='-non_shared'
11540
            ;;
11541
          *)
11542
            case `$CC -V 2>&1 | sed 5q` in
11543
            *Sun\ C*)
11544
              # Sun C++ 5.9
11545
              lt_prog_compiler_pic_CXX='-KPIC'
11546
              lt_prog_compiler_static_CXX='-Bstatic'
11547
              lt_prog_compiler_wl_CXX='-Qoption ld '
11548
              ;;
11549
            esac
11550
            ;;
11551
        esac
11552
        ;;
11553
      lynxos*)
11554
        ;;
11555
      m88k*)
11556
        ;;
11557
      mvs*)
11558
        case $cc_basename in
11559
          cxx*)
11560
            lt_prog_compiler_pic_CXX='-W c,exportall'
11561
            ;;
11562
          *)
11563
            ;;
11564
        esac
11565
        ;;
11566
      netbsd*)
11567
        ;;
11568
      osf3* | osf4* | osf5*)
11569
        case $cc_basename in
11570
          KCC*)
11571
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11572
            ;;
11573
          RCC*)
11574
            # Rational C++ 2.4.1
11575
            lt_prog_compiler_pic_CXX='-pic'
11576
            ;;
11577
          cxx*)
11578
            # Digital/Compaq C++
11579
            lt_prog_compiler_wl_CXX='-Wl,'
11580
            # Make sure the PIC flag is empty.  It appears that all Alpha
11581
            # Linux and Compaq Tru64 Unix objects are PIC.
11582
            lt_prog_compiler_pic_CXX=
11583
            lt_prog_compiler_static_CXX='-non_shared'
11584
            ;;
11585
          *)
11586
            ;;
11587
        esac
11588
        ;;
11589
      psos*)
11590
        ;;
11591
      solaris*)
11592
        case $cc_basename in
11593
          CC*)
11594
            # Sun C++ 4.2, 5.x and Centerline C++
11595
            lt_prog_compiler_pic_CXX='-KPIC'
11596
            lt_prog_compiler_static_CXX='-Bstatic'
11597
            lt_prog_compiler_wl_CXX='-Qoption ld '
11598
            ;;
11599
          gcx*)
11600
            # Green Hills C++ Compiler
11601
            lt_prog_compiler_pic_CXX='-PIC'
11602
            ;;
11603
          *)
11604
            ;;
11605
        esac
11606
        ;;
11607
      sunos4*)
11608
        case $cc_basename in
11609
          CC*)
11610
            # Sun C++ 4.x
11611
            lt_prog_compiler_pic_CXX='-pic'
11612
            lt_prog_compiler_static_CXX='-Bstatic'
11613
            ;;
11614
          lcc*)
11615
            # Lucid
11616
            lt_prog_compiler_pic_CXX='-pic'
11617
            ;;
11618
          *)
11619
            ;;
11620
        esac
11621
        ;;
11622
      tandem*)
11623
        case $cc_basename in
11624
          NCC*)
11625
            # NonStop-UX NCC 3.20
11626
            lt_prog_compiler_pic_CXX='-KPIC'
11627
            ;;
11628
          *)
11629
            ;;
11630
        esac
11631
        ;;
11632
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11633
        case $cc_basename in
11634
          CC*)
11635
            lt_prog_compiler_wl_CXX='-Wl,'
11636
            lt_prog_compiler_pic_CXX='-KPIC'
11637
            lt_prog_compiler_static_CXX='-Bstatic'
11638
            ;;
11639
        esac
11640
        ;;
11641
      vxworks*)
11642
        ;;
11643
      *)
11644
        lt_prog_compiler_can_build_shared_CXX=no
11645
        ;;
11646
    esac
11647
  fi
11648
 
11649
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11650
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11651
 
11652
#
11653
# Check to make sure the PIC flag actually works.
11654
#
11655
if test -n "$lt_prog_compiler_pic_CXX"; then
11656
 
11657
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11658
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11659
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11660
  echo $ECHO_N "(cached) $ECHO_C" >&6
11661
else
11662
  lt_prog_compiler_pic_works_CXX=no
11663
  ac_outfile=conftest.$ac_objext
11664
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11665
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11666
   # Insert the option either (1) after the last *FLAGS variable, or
11667
   # (2) before a word containing "conftest.", or (3) at the end.
11668
   # Note that $ac_compile itself does not contain backslashes and begins
11669
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11670
   # The option is referenced via a variable to avoid confusing sed.
11671
   lt_compile=`echo "$ac_compile" | $SED \
11672
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11673
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11674
   -e 's:$: $lt_compiler_flag:'`
11675
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11676
   (eval "$lt_compile" 2>conftest.err)
11677
   ac_status=$?
11678
   cat conftest.err >&5
11679
   echo "$as_me:__oline__: \$? = $ac_status" >&5
11680
   if (exit $ac_status) && test -s "$ac_outfile"; then
11681
     # The compiler can only warn and ignore the option if not recognized
11682
     # So say no if there are warnings other than the usual output.
11683
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11684
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11685
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11686
       lt_prog_compiler_pic_works_CXX=yes
11687
     fi
11688
   fi
11689
   $rm conftest*
11690
 
11691
fi
11692
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11693
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11694
 
11695
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11696
    case $lt_prog_compiler_pic_CXX in
11697
     "" | " "*) ;;
11698
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11699
     esac
11700
else
11701
    lt_prog_compiler_pic_CXX=
11702
     lt_prog_compiler_can_build_shared_CXX=no
11703
fi
11704
 
11705
fi
11706
case $host_os in
11707
  # For platforms which do not support PIC, -DPIC is meaningless:
11708
  *djgpp*)
11709
    lt_prog_compiler_pic_CXX=
11710
    ;;
11711
  *)
11712
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11713
    ;;
11714
esac
11715
 
11716
#
11717
# Check to make sure the static flag actually works.
11718
#
11719
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11720
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11721
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11722
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11723
  echo $ECHO_N "(cached) $ECHO_C" >&6
11724
else
11725
  lt_prog_compiler_static_works_CXX=no
11726
   save_LDFLAGS="$LDFLAGS"
11727
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11728
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11729
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11730
     # The linker can only warn and ignore the option if not recognized
11731
     # So say no if there are warnings
11732
     if test -s conftest.err; then
11733
       # Append any errors to the config.log.
11734
       cat conftest.err 1>&5
11735
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11736
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11737
       if diff conftest.exp conftest.er2 >/dev/null; then
11738
         lt_prog_compiler_static_works_CXX=yes
11739
       fi
11740
     else
11741
       lt_prog_compiler_static_works_CXX=yes
11742
     fi
11743
   fi
11744
   $rm conftest*
11745
   LDFLAGS="$save_LDFLAGS"
11746
 
11747
fi
11748
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11749
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11750
 
11751
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11752
    :
11753
else
11754
    lt_prog_compiler_static_CXX=
11755
fi
11756
 
11757
 
11758
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11759
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11760
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11761
  echo $ECHO_N "(cached) $ECHO_C" >&6
11762
else
11763
  lt_cv_prog_compiler_c_o_CXX=no
11764
   $rm -r conftest 2>/dev/null
11765
   mkdir conftest
11766
   cd conftest
11767
   mkdir out
11768
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11769
 
11770
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11771
   # Insert the option either (1) after the last *FLAGS variable, or
11772
   # (2) before a word containing "conftest.", or (3) at the end.
11773
   # Note that $ac_compile itself does not contain backslashes and begins
11774
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11775
   lt_compile=`echo "$ac_compile" | $SED \
11776
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11777
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11778
   -e 's:$: $lt_compiler_flag:'`
11779
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11780
   (eval "$lt_compile" 2>out/conftest.err)
11781
   ac_status=$?
11782
   cat out/conftest.err >&5
11783
   echo "$as_me:__oline__: \$? = $ac_status" >&5
11784
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11785
   then
11786
     # The compiler can only warn and ignore the option if not recognized
11787
     # So say no if there are warnings
11788
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11789
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11790
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11791
       lt_cv_prog_compiler_c_o_CXX=yes
11792
     fi
11793
   fi
11794
   chmod u+w . 2>&5
11795
   $rm conftest*
11796
   # SGI C++ compiler will create directory out/ii_files/ for
11797
   # template instantiation
11798
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11799
   $rm out/* && rmdir out
11800
   cd ..
11801
   rmdir conftest
11802
   $rm conftest*
11803
 
11804
fi
11805
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11806
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11807
 
11808
 
11809
hard_links="nottested"
11810
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11811
  # do not overwrite the value of need_locks provided by the user
11812
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11813
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11814
  hard_links=yes
11815
  $rm conftest*
11816
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11817
  touch conftest.a
11818
  ln conftest.a conftest.b 2>&5 || hard_links=no
11819
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11820
  { echo "$as_me:$LINENO: result: $hard_links" >&5
11821
echo "${ECHO_T}$hard_links" >&6; }
11822
  if test "$hard_links" = no; then
11823
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11824
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11825
    need_locks=warn
11826
  fi
11827
else
11828
  need_locks=no
11829
fi
11830
 
11831
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11832
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11833
 
11834
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11835
  case $host_os in
11836
  aix4* | aix5*)
11837
    # If we're using GNU nm, then we don't want the "-C" option.
11838
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11839
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11840
      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'
11841
    else
11842
      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'
11843
    fi
11844
    ;;
11845
  pw32*)
11846
    export_symbols_cmds_CXX="$ltdll_cmds"
11847
  ;;
11848
  cygwin* | mingw*)
11849
    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'
11850
  ;;
11851
  *)
11852
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11853
  ;;
11854
  esac
11855
 
11856
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11857
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11858
test "$ld_shlibs_CXX" = no && can_build_shared=no
11859
 
11860
#
11861
# Do we need to explicitly link libc?
11862
#
11863
case "x$archive_cmds_need_lc_CXX" in
11864
x|xyes)
11865
  # Assume -lc should be added
11866
  archive_cmds_need_lc_CXX=yes
11867
 
11868
  if test "$enable_shared" = yes && test "$GCC" = yes; then
11869
    case $archive_cmds_CXX in
11870
    *'~'*)
11871
      # FIXME: we may have to deal with multi-command sequences.
11872
      ;;
11873
    '$CC '*)
11874
      # Test whether the compiler implicitly links with -lc since on some
11875
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11876
      # to ld, don't add -lc before -lgcc.
11877
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11878
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11879
      $rm conftest*
11880
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11881
 
11882
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11883
  (eval $ac_compile) 2>&5
11884
  ac_status=$?
11885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886
  (exit $ac_status); } 2>conftest.err; then
11887
        soname=conftest
11888
        lib=conftest
11889
        libobjs=conftest.$ac_objext
11890
        deplibs=
11891
        wl=$lt_prog_compiler_wl_CXX
11892
        pic_flag=$lt_prog_compiler_pic_CXX
11893
        compiler_flags=-v
11894
        linker_flags=-v
11895
        verstring=
11896
        output_objdir=.
11897
        libname=conftest
11898
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11899
        allow_undefined_flag_CXX=
11900
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11901
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11902
  ac_status=$?
11903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904
  (exit $ac_status); }
11905
        then
11906
          archive_cmds_need_lc_CXX=no
11907
        else
11908
          archive_cmds_need_lc_CXX=yes
11909
        fi
11910
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11911
      else
11912
        cat conftest.err 1>&5
11913
      fi
11914
      $rm conftest*
11915
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11916
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11917
      ;;
11918
    esac
11919
  fi
11920
  ;;
11921
esac
11922
 
11923
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11924
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11925
library_names_spec=
11926
libname_spec='lib$name'
11927
soname_spec=
11928
shrext_cmds=".so"
11929
postinstall_cmds=
11930
postuninstall_cmds=
11931
finish_cmds=
11932
finish_eval=
11933
shlibpath_var=
11934
shlibpath_overrides_runpath=unknown
11935
version_type=none
11936
dynamic_linker="$host_os ld.so"
11937
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11938
 
11939
need_lib_prefix=unknown
11940
hardcode_into_libs=no
11941
 
11942
# when you set need_version to no, make sure it does not cause -set_version
11943
# flags to be left without arguments
11944
need_version=unknown
11945
 
11946
case $host_os in
11947
aix3*)
11948
  version_type=linux
11949
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11950
  shlibpath_var=LIBPATH
11951
 
11952
  # AIX 3 has no versioning support, so we append a major version to the name.
11953
  soname_spec='${libname}${release}${shared_ext}$major'
11954
  ;;
11955
 
11956
aix4* | aix5*)
11957
  version_type=linux
11958
  need_lib_prefix=no
11959
  need_version=no
11960
  hardcode_into_libs=yes
11961
  if test "$host_cpu" = ia64; then
11962
    # AIX 5 supports IA64
11963
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11964
    shlibpath_var=LD_LIBRARY_PATH
11965
  else
11966
    # With GCC up to 2.95.x, collect2 would create an import file
11967
    # for dependence libraries.  The import file would start with
11968
    # the line `#! .'.  This would cause the generated library to
11969
    # depend on `.', always an invalid library.  This was fixed in
11970
    # development snapshots of GCC prior to 3.0.
11971
    case $host_os in
11972
      aix4 | aix4.[01] | aix4.[01].*)
11973
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11974
           echo ' yes '
11975
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11976
        :
11977
      else
11978
        can_build_shared=no
11979
      fi
11980
      ;;
11981
    esac
11982
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11983
    # soname into executable. Probably we can add versioning support to
11984
    # collect2, so additional links can be useful in future.
11985
    if test "$aix_use_runtimelinking" = yes; then
11986
      # If using run time linking (on AIX 4.2 or later) use lib.so
11987
      # instead of lib.a to let people know that these are not
11988
      # typical AIX shared libraries.
11989
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11990
    else
11991
      # We preserve .a as extension for shared libraries through AIX4.2
11992
      # and later when we are not doing run time linking.
11993
      library_names_spec='${libname}${release}.a $libname.a'
11994
      soname_spec='${libname}${release}${shared_ext}$major'
11995
    fi
11996
    shlibpath_var=LIBPATH
11997
  fi
11998
  ;;
11999
 
12000
amigaos*)
12001
  library_names_spec='$libname.ixlibrary $libname.a'
12002
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12003
  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'
12004
  ;;
12005
 
12006
beos*)
12007
  library_names_spec='${libname}${shared_ext}'
12008
  dynamic_linker="$host_os ld.so"
12009
  shlibpath_var=LIBRARY_PATH
12010
  ;;
12011
 
12012
bsdi[45]*)
12013
  version_type=linux
12014
  need_version=no
12015
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12016
  soname_spec='${libname}${release}${shared_ext}$major'
12017
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12018
  shlibpath_var=LD_LIBRARY_PATH
12019
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12020
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12021
  # the default ld.so.conf also contains /usr/contrib/lib and
12022
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12023
  # libtool to hard-code these into programs
12024
  ;;
12025
 
12026
cygwin* | mingw* | pw32*)
12027
  version_type=windows
12028
  shrext_cmds=".dll"
12029
  need_version=no
12030
  need_lib_prefix=no
12031
 
12032
  case $GCC,$host_os in
12033
  yes,cygwin* | yes,mingw* | yes,pw32*)
12034
    library_names_spec='$libname.dll.a'
12035
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12036
    postinstall_cmds='base_file=`basename \${file}`~
12037
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12038
      dldir=$destdir/`dirname \$dlpath`~
12039
      test -d \$dldir || mkdir -p \$dldir~
12040
      $install_prog $dir/$dlname \$dldir/$dlname~
12041
      chmod a+x \$dldir/$dlname'
12042
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12043
      dlpath=$dir/\$dldll~
12044
       $rm \$dlpath'
12045
    shlibpath_overrides_runpath=yes
12046
 
12047
    case $host_os in
12048
    cygwin*)
12049
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12050
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12051
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12052
      ;;
12053
    mingw*)
12054
      # MinGW DLLs use traditional 'lib' prefix
12055
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12056
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12057
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12058
        # It is most probably a Windows format PATH printed by
12059
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12060
        # path with ; separators, and with drive letters. We can handle the
12061
        # drive letters (cygwin fileutils understands them), so leave them,
12062
        # especially as we might pass files found there to a mingw objdump,
12063
        # which wouldn't understand a cygwinified path. Ahh.
12064
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12065
      else
12066
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12067
      fi
12068
      ;;
12069
    pw32*)
12070
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12071
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12072
      ;;
12073
    esac
12074
    ;;
12075
 
12076
  *)
12077
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12078
    ;;
12079
  esac
12080
  dynamic_linker='Win32 ld.exe'
12081
  # FIXME: first we should search . and the directory the executable is in
12082
  shlibpath_var=PATH
12083
  ;;
12084
 
12085
darwin* | rhapsody*)
12086
  dynamic_linker="$host_os dyld"
12087
  version_type=darwin
12088
  need_lib_prefix=no
12089
  need_version=no
12090
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12091
  soname_spec='${libname}${release}${major}$shared_ext'
12092
  shlibpath_overrides_runpath=yes
12093
  shlibpath_var=DYLD_LIBRARY_PATH
12094
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12095
 
12096
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12097
  ;;
12098
 
12099
dgux*)
12100
  version_type=linux
12101
  need_lib_prefix=no
12102
  need_version=no
12103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12104
  soname_spec='${libname}${release}${shared_ext}$major'
12105
  shlibpath_var=LD_LIBRARY_PATH
12106
  ;;
12107
 
12108
freebsd1*)
12109
  dynamic_linker=no
12110
  ;;
12111
 
12112
freebsd* | dragonfly*)
12113
  # DragonFly does not have aout.  When/if they implement a new
12114
  # versioning mechanism, adjust this.
12115
  if test -x /usr/bin/objformat; then
12116
    objformat=`/usr/bin/objformat`
12117
  else
12118
    case $host_os in
12119
    freebsd[123]*) objformat=aout ;;
12120
    *) objformat=elf ;;
12121
    esac
12122
  fi
12123
  version_type=freebsd-$objformat
12124
  case $version_type in
12125
    freebsd-elf*)
12126
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12127
      need_version=no
12128
      need_lib_prefix=no
12129
      ;;
12130
    freebsd-*)
12131
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12132
      need_version=yes
12133
      ;;
12134
  esac
12135
  shlibpath_var=LD_LIBRARY_PATH
12136
  case $host_os in
12137
  freebsd2*)
12138
    shlibpath_overrides_runpath=yes
12139
    ;;
12140
  freebsd3.[01]* | freebsdelf3.[01]*)
12141
    shlibpath_overrides_runpath=yes
12142
    hardcode_into_libs=yes
12143
    ;;
12144
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12145
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12146
    shlibpath_overrides_runpath=no
12147
    hardcode_into_libs=yes
12148
    ;;
12149
  *) # from 4.6 on, and DragonFly
12150
    shlibpath_overrides_runpath=yes
12151
    hardcode_into_libs=yes
12152
    ;;
12153
  esac
12154
  ;;
12155
 
12156
gnu*)
12157
  version_type=linux
12158
  need_lib_prefix=no
12159
  need_version=no
12160
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12161
  soname_spec='${libname}${release}${shared_ext}$major'
12162
  shlibpath_var=LD_LIBRARY_PATH
12163
  hardcode_into_libs=yes
12164
  ;;
12165
 
12166
hpux9* | hpux10* | hpux11*)
12167
  # Give a soname corresponding to the major version so that dld.sl refuses to
12168
  # link against other versions.
12169
  version_type=sunos
12170
  need_lib_prefix=no
12171
  need_version=no
12172
  case $host_cpu in
12173
  ia64*)
12174
    shrext_cmds='.so'
12175
    hardcode_into_libs=yes
12176
    dynamic_linker="$host_os dld.so"
12177
    shlibpath_var=LD_LIBRARY_PATH
12178
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12179
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12180
    soname_spec='${libname}${release}${shared_ext}$major'
12181
    if test "X$HPUX_IA64_MODE" = X32; then
12182
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12183
    else
12184
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12185
    fi
12186
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12187
    ;;
12188
   hppa*64*)
12189
     shrext_cmds='.sl'
12190
     hardcode_into_libs=yes
12191
     dynamic_linker="$host_os dld.sl"
12192
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12193
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12194
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195
     soname_spec='${libname}${release}${shared_ext}$major'
12196
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12197
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12198
     ;;
12199
   *)
12200
    shrext_cmds='.sl'
12201
    dynamic_linker="$host_os dld.sl"
12202
    shlibpath_var=SHLIB_PATH
12203
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12204
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12205
    soname_spec='${libname}${release}${shared_ext}$major'
12206
    ;;
12207
  esac
12208
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12209
  postinstall_cmds='chmod 555 $lib'
12210
  ;;
12211
 
12212
interix[3-9]*)
12213
  version_type=linux
12214
  need_lib_prefix=no
12215
  need_version=no
12216
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12217
  soname_spec='${libname}${release}${shared_ext}$major'
12218
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12219
  shlibpath_var=LD_LIBRARY_PATH
12220
  shlibpath_overrides_runpath=no
12221
  hardcode_into_libs=yes
12222
  ;;
12223
 
12224
irix5* | irix6* | nonstopux*)
12225
  case $host_os in
12226
    nonstopux*) version_type=nonstopux ;;
12227
    *)
12228
        if test "$lt_cv_prog_gnu_ld" = yes; then
12229
                version_type=linux
12230
        else
12231
                version_type=irix
12232
        fi ;;
12233
  esac
12234
  need_lib_prefix=no
12235
  need_version=no
12236
  soname_spec='${libname}${release}${shared_ext}$major'
12237
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12238
  case $host_os in
12239
  irix5* | nonstopux*)
12240
    libsuff= shlibsuff=
12241
    ;;
12242
  *)
12243
    case $LD in # libtool.m4 will add one of these switches to LD
12244
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12245
      libsuff= shlibsuff= libmagic=32-bit;;
12246
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12247
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12248
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12249
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12250
    *) libsuff= shlibsuff= libmagic=never-match;;
12251
    esac
12252
    ;;
12253
  esac
12254
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12255
  shlibpath_overrides_runpath=no
12256
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12257
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12258
  hardcode_into_libs=yes
12259
  ;;
12260
 
12261
# No shared lib support for Linux oldld, aout, or coff.
12262
linux*oldld* | linux*aout* | linux*coff*)
12263
  dynamic_linker=no
12264
  ;;
12265
 
12266
# This must be Linux ELF.
12267
linux* | k*bsd*-gnu)
12268
  version_type=linux
12269
  need_lib_prefix=no
12270
  need_version=no
12271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12272
  soname_spec='${libname}${release}${shared_ext}$major'
12273
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12274
  shlibpath_var=LD_LIBRARY_PATH
12275
  shlibpath_overrides_runpath=no
12276
  # This implies no fast_install, which is unacceptable.
12277
  # Some rework will be needed to allow for fast_install
12278
  # before this can be enabled.
12279
  hardcode_into_libs=yes
12280
 
12281
  # Append ld.so.conf contents to the search path
12282
  if test -f /etc/ld.so.conf; then
12283
    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' ' '`
12284 60 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12285 19 jeremybenn
  fi
12286
 
12287
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12288
  # powerpc, because MkLinux only supported shared libraries with the
12289
  # GNU dynamic linker.  Since this was broken with cross compilers,
12290
  # most powerpc-linux boxes support dynamic linking these days and
12291
  # people can always --disable-shared, the test was removed, and we
12292
  # assume the GNU/Linux dynamic linker is in use.
12293
  dynamic_linker='GNU/Linux ld.so'
12294
  ;;
12295
 
12296
netbsd*)
12297
  version_type=sunos
12298
  need_lib_prefix=no
12299
  need_version=no
12300
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12301
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12302
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12303
    dynamic_linker='NetBSD (a.out) ld.so'
12304
  else
12305
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12306
    soname_spec='${libname}${release}${shared_ext}$major'
12307
    dynamic_linker='NetBSD ld.elf_so'
12308
  fi
12309
  shlibpath_var=LD_LIBRARY_PATH
12310
  shlibpath_overrides_runpath=yes
12311
  hardcode_into_libs=yes
12312
  ;;
12313
 
12314
newsos6)
12315
  version_type=linux
12316
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12317
  shlibpath_var=LD_LIBRARY_PATH
12318
  shlibpath_overrides_runpath=yes
12319
  ;;
12320
 
12321
nto-qnx*)
12322
  version_type=linux
12323
  need_lib_prefix=no
12324
  need_version=no
12325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12326
  soname_spec='${libname}${release}${shared_ext}$major'
12327
  shlibpath_var=LD_LIBRARY_PATH
12328
  shlibpath_overrides_runpath=yes
12329
  ;;
12330
 
12331
openbsd*)
12332
  version_type=sunos
12333
  sys_lib_dlsearch_path_spec="/usr/lib"
12334
  need_lib_prefix=no
12335
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12336
  case $host_os in
12337
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12338
    *)                         need_version=no  ;;
12339
  esac
12340
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12341
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12342
  shlibpath_var=LD_LIBRARY_PATH
12343
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12344
    case $host_os in
12345
      openbsd2.[89] | openbsd2.[89].*)
12346
        shlibpath_overrides_runpath=no
12347
        ;;
12348
      *)
12349
        shlibpath_overrides_runpath=yes
12350
        ;;
12351
      esac
12352
  else
12353
    shlibpath_overrides_runpath=yes
12354
  fi
12355
  ;;
12356
 
12357
os2*)
12358
  libname_spec='$name'
12359
  shrext_cmds=".dll"
12360
  need_lib_prefix=no
12361
  library_names_spec='$libname${shared_ext} $libname.a'
12362
  dynamic_linker='OS/2 ld.exe'
12363
  shlibpath_var=LIBPATH
12364
  ;;
12365
 
12366
osf3* | osf4* | osf5*)
12367
  version_type=osf
12368
  need_lib_prefix=no
12369
  need_version=no
12370
  soname_spec='${libname}${release}${shared_ext}$major'
12371
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12372
  shlibpath_var=LD_LIBRARY_PATH
12373
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12374
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12375
  ;;
12376
 
12377
rdos*)
12378
  dynamic_linker=no
12379
  ;;
12380
 
12381
solaris*)
12382
  version_type=linux
12383
  need_lib_prefix=no
12384
  need_version=no
12385
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386
  soname_spec='${libname}${release}${shared_ext}$major'
12387
  shlibpath_var=LD_LIBRARY_PATH
12388
  shlibpath_overrides_runpath=yes
12389
  hardcode_into_libs=yes
12390
  # ldd complains unless libraries are executable
12391
  postinstall_cmds='chmod +x $lib'
12392
  ;;
12393
 
12394
sunos4*)
12395
  version_type=sunos
12396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12397
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12398
  shlibpath_var=LD_LIBRARY_PATH
12399
  shlibpath_overrides_runpath=yes
12400
  if test "$with_gnu_ld" = yes; then
12401
    need_lib_prefix=no
12402
  fi
12403
  need_version=yes
12404
  ;;
12405
 
12406
sysv4 | sysv4.3*)
12407
  version_type=linux
12408
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12409
  soname_spec='${libname}${release}${shared_ext}$major'
12410
  shlibpath_var=LD_LIBRARY_PATH
12411
  case $host_vendor in
12412
    sni)
12413
      shlibpath_overrides_runpath=no
12414
      need_lib_prefix=no
12415
      export_dynamic_flag_spec='${wl}-Blargedynsym'
12416
      runpath_var=LD_RUN_PATH
12417
      ;;
12418
    siemens)
12419
      need_lib_prefix=no
12420
      ;;
12421
    motorola)
12422
      need_lib_prefix=no
12423
      need_version=no
12424
      shlibpath_overrides_runpath=no
12425
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12426
      ;;
12427
  esac
12428
  ;;
12429
 
12430
sysv4*MP*)
12431
  if test -d /usr/nec ;then
12432
    version_type=linux
12433
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12434
    soname_spec='$libname${shared_ext}.$major'
12435
    shlibpath_var=LD_LIBRARY_PATH
12436
  fi
12437
  ;;
12438
 
12439
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12440
  version_type=freebsd-elf
12441
  need_lib_prefix=no
12442
  need_version=no
12443
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12444
  soname_spec='${libname}${release}${shared_ext}$major'
12445
  shlibpath_var=LD_LIBRARY_PATH
12446
  hardcode_into_libs=yes
12447
  if test "$with_gnu_ld" = yes; then
12448
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12449
    shlibpath_overrides_runpath=no
12450
  else
12451
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12452
    shlibpath_overrides_runpath=yes
12453
    case $host_os in
12454
      sco3.2v5*)
12455
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12456
        ;;
12457
    esac
12458
  fi
12459
  sys_lib_dlsearch_path_spec='/usr/lib'
12460
  ;;
12461
 
12462
uts4*)
12463
  version_type=linux
12464
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12465
  soname_spec='${libname}${release}${shared_ext}$major'
12466
  shlibpath_var=LD_LIBRARY_PATH
12467
  ;;
12468
 
12469
*)
12470
  dynamic_linker=no
12471
  ;;
12472
esac
12473
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12474
echo "${ECHO_T}$dynamic_linker" >&6; }
12475
test "$dynamic_linker" = no && can_build_shared=no
12476
 
12477
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12478
if test "$GCC" = yes; then
12479
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12480
fi
12481
 
12482
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12483
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12484
hardcode_action_CXX=
12485
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12486
   test -n "$runpath_var_CXX" || \
12487
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12488
 
12489
  # We can hardcode non-existant directories.
12490
  if test "$hardcode_direct_CXX" != no &&
12491
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12492
     # have to relink, otherwise we might link with an installed library
12493
     # when we should be linking with a yet-to-be-installed one
12494
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12495
     test "$hardcode_minus_L_CXX" != no; then
12496
    # Linking always hardcodes the temporary library directory.
12497
    hardcode_action_CXX=relink
12498
  else
12499
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12500
    hardcode_action_CXX=immediate
12501
  fi
12502
else
12503
  # We cannot hardcode anything, or else we can only hardcode existing
12504
  # directories.
12505
  hardcode_action_CXX=unsupported
12506
fi
12507
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12508
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12509
 
12510
if test "$hardcode_action_CXX" = relink; then
12511
  # Fast installation is not supported
12512
  enable_fast_install=no
12513
elif test "$shlibpath_overrides_runpath" = yes ||
12514
     test "$enable_shared" = no; then
12515
  # Fast installation is not necessary
12516
  enable_fast_install=needless
12517
fi
12518
 
12519
 
12520
# The else clause should only fire when bootstrapping the
12521
# libtool distribution, otherwise you forgot to ship ltmain.sh
12522
# with your package, and you will get complaints that there are
12523
# no rules to generate ltmain.sh.
12524
if test -f "$ltmain"; then
12525
  # See if we are running on zsh, and set the options which allow our commands through
12526
  # without removal of \ escapes.
12527
  if test -n "${ZSH_VERSION+set}" ; then
12528
    setopt NO_GLOB_SUBST
12529
  fi
12530
  # Now quote all the things that may contain metacharacters while being
12531
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12532
  # variables and quote the copies for generation of the libtool script.
12533
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12534
    SED SHELL STRIP \
12535
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12536
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12537
    deplibs_check_method reload_flag reload_cmds need_locks \
12538
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12539
    lt_cv_sys_global_symbol_to_c_name_address \
12540
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12541
    old_postinstall_cmds old_postuninstall_cmds \
12542
    compiler_CXX \
12543
    CC_CXX \
12544
    LD_CXX \
12545
    lt_prog_compiler_wl_CXX \
12546
    lt_prog_compiler_pic_CXX \
12547
    lt_prog_compiler_static_CXX \
12548
    lt_prog_compiler_no_builtin_flag_CXX \
12549
    export_dynamic_flag_spec_CXX \
12550
    thread_safe_flag_spec_CXX \
12551
    whole_archive_flag_spec_CXX \
12552
    enable_shared_with_static_runtimes_CXX \
12553
    old_archive_cmds_CXX \
12554
    old_archive_from_new_cmds_CXX \
12555
    predep_objects_CXX \
12556
    postdep_objects_CXX \
12557
    predeps_CXX \
12558
    postdeps_CXX \
12559
    compiler_lib_search_path_CXX \
12560
    archive_cmds_CXX \
12561
    archive_expsym_cmds_CXX \
12562
    postinstall_cmds_CXX \
12563
    postuninstall_cmds_CXX \
12564
    old_archive_from_expsyms_cmds_CXX \
12565
    allow_undefined_flag_CXX \
12566
    no_undefined_flag_CXX \
12567
    export_symbols_cmds_CXX \
12568
    hardcode_libdir_flag_spec_CXX \
12569
    hardcode_libdir_flag_spec_ld_CXX \
12570
    hardcode_libdir_separator_CXX \
12571
    hardcode_automatic_CXX \
12572
    module_cmds_CXX \
12573
    module_expsym_cmds_CXX \
12574
    lt_cv_prog_compiler_c_o_CXX \
12575
    fix_srcfile_path_CXX \
12576
    exclude_expsyms_CXX \
12577
    include_expsyms_CXX; do
12578
 
12579
    case $var in
12580
    old_archive_cmds_CXX | \
12581
    old_archive_from_new_cmds_CXX | \
12582
    archive_cmds_CXX | \
12583
    archive_expsym_cmds_CXX | \
12584
    module_cmds_CXX | \
12585
    module_expsym_cmds_CXX | \
12586
    old_archive_from_expsyms_cmds_CXX | \
12587
    export_symbols_cmds_CXX | \
12588
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12589
    postinstall_cmds | postuninstall_cmds | \
12590
    old_postinstall_cmds | old_postuninstall_cmds | \
12591
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12592
      # Double-quote double-evaled strings.
12593
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12594
      ;;
12595
    *)
12596
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12597
      ;;
12598
    esac
12599
  done
12600
 
12601
  case $lt_echo in
12602
  *'\$0 --fallback-echo"')
12603
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12604
    ;;
12605
  esac
12606
 
12607
cfgfile="$ofile"
12608
 
12609
  cat <<__EOF__ >> "$cfgfile"
12610
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12611
 
12612
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12613
 
12614
# Shell to use when invoking shell scripts.
12615
SHELL=$lt_SHELL
12616
 
12617
# Whether or not to build shared libraries.
12618
build_libtool_libs=$enable_shared
12619
 
12620
# Whether or not to build static libraries.
12621
build_old_libs=$enable_static
12622
 
12623
# Whether or not to add -lc for building shared libraries.
12624
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12625
 
12626
# Whether or not to disallow shared libs when runtime libs are static
12627
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12628
 
12629
# Whether or not to optimize for fast installation.
12630
fast_install=$enable_fast_install
12631
 
12632
# The host system.
12633
host_alias=$host_alias
12634
host=$host
12635
host_os=$host_os
12636
 
12637
# The build system.
12638
build_alias=$build_alias
12639
build=$build
12640
build_os=$build_os
12641
 
12642
# An echo program that does not interpret backslashes.
12643
echo=$lt_echo
12644
 
12645
# The archiver.
12646
AR=$lt_AR
12647
AR_FLAGS=$lt_AR_FLAGS
12648
 
12649
# A C compiler.
12650
LTCC=$lt_LTCC
12651
 
12652
# LTCC compiler flags.
12653
LTCFLAGS=$lt_LTCFLAGS
12654
 
12655
# A language-specific compiler.
12656
CC=$lt_compiler_CXX
12657
 
12658
# Is the compiler the GNU C compiler?
12659
with_gcc=$GCC_CXX
12660
 
12661
# An ERE matcher.
12662
EGREP=$lt_EGREP
12663
 
12664
# The linker used to build libraries.
12665
LD=$lt_LD_CXX
12666
 
12667
# Whether we need hard or soft links.
12668
LN_S=$lt_LN_S
12669
 
12670
# A BSD-compatible nm program.
12671
NM=$lt_NM
12672
 
12673
# A symbol stripping program
12674
STRIP=$lt_STRIP
12675
 
12676
# Used to examine libraries when file_magic_cmd begins "file"
12677
MAGIC_CMD=$MAGIC_CMD
12678
 
12679
# Used on cygwin: DLL creation program.
12680
DLLTOOL="$DLLTOOL"
12681
 
12682
# Used on cygwin: object dumper.
12683
OBJDUMP="$OBJDUMP"
12684
 
12685
# Used on cygwin: assembler.
12686
AS="$AS"
12687
 
12688
# The name of the directory that contains temporary libtool files.
12689
objdir=$objdir
12690
 
12691
# How to create reloadable object files.
12692
reload_flag=$lt_reload_flag
12693
reload_cmds=$lt_reload_cmds
12694
 
12695
# How to pass a linker flag through the compiler.
12696
wl=$lt_lt_prog_compiler_wl_CXX
12697
 
12698
# Object file suffix (normally "o").
12699
objext="$ac_objext"
12700
 
12701
# Old archive suffix (normally "a").
12702
libext="$libext"
12703
 
12704
# Shared library suffix (normally ".so").
12705
shrext_cmds='$shrext_cmds'
12706
 
12707
# Executable file suffix (normally "").
12708
exeext="$exeext"
12709
 
12710
# Additional compiler flags for building library objects.
12711
pic_flag=$lt_lt_prog_compiler_pic_CXX
12712
pic_mode=$pic_mode
12713
 
12714
# What is the maximum length of a command?
12715
max_cmd_len=$lt_cv_sys_max_cmd_len
12716
 
12717
# Does compiler simultaneously support -c and -o options?
12718
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12719
 
12720
# Must we lock files when doing compilation?
12721
need_locks=$lt_need_locks
12722
 
12723
# Do we need the lib prefix for modules?
12724
need_lib_prefix=$need_lib_prefix
12725
 
12726
# Do we need a version for libraries?
12727
need_version=$need_version
12728
 
12729
# Whether dlopen is supported.
12730
dlopen_support=$enable_dlopen
12731
 
12732
# Whether dlopen of programs is supported.
12733
dlopen_self=$enable_dlopen_self
12734
 
12735
# Whether dlopen of statically linked programs is supported.
12736
dlopen_self_static=$enable_dlopen_self_static
12737
 
12738
# Compiler flag to prevent dynamic linking.
12739
link_static_flag=$lt_lt_prog_compiler_static_CXX
12740
 
12741
# Compiler flag to turn off builtin functions.
12742
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12743
 
12744
# Compiler flag to allow reflexive dlopens.
12745
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12746
 
12747
# Compiler flag to generate shared objects directly from archives.
12748
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12749
 
12750
# Compiler flag to generate thread-safe objects.
12751
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12752
 
12753
# Library versioning type.
12754
version_type=$version_type
12755
 
12756
# Format of library name prefix.
12757
libname_spec=$lt_libname_spec
12758
 
12759
# List of archive names.  First name is the real one, the rest are links.
12760
# The last name is the one that the linker finds with -lNAME.
12761
library_names_spec=$lt_library_names_spec
12762
 
12763
# The coded name of the library, if different from the real name.
12764
soname_spec=$lt_soname_spec
12765
 
12766
# Commands used to build and install an old-style archive.
12767
RANLIB=$lt_RANLIB
12768
old_archive_cmds=$lt_old_archive_cmds_CXX
12769
old_postinstall_cmds=$lt_old_postinstall_cmds
12770
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12771
 
12772
# Create an old-style archive from a shared archive.
12773
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12774
 
12775
# Create a temporary old-style archive to link instead of a shared archive.
12776
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12777
 
12778
# Commands used to build and install a shared archive.
12779
archive_cmds=$lt_archive_cmds_CXX
12780
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12781
postinstall_cmds=$lt_postinstall_cmds
12782
postuninstall_cmds=$lt_postuninstall_cmds
12783
 
12784
# Commands used to build a loadable module (assumed same as above if empty)
12785
module_cmds=$lt_module_cmds_CXX
12786
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12787
 
12788
# Commands to strip libraries.
12789
old_striplib=$lt_old_striplib
12790
striplib=$lt_striplib
12791
 
12792
# Dependencies to place before the objects being linked to create a
12793
# shared library.
12794
predep_objects=$lt_predep_objects_CXX
12795
 
12796
# Dependencies to place after the objects being linked to create a
12797
# shared library.
12798
postdep_objects=$lt_postdep_objects_CXX
12799
 
12800
# Dependencies to place before the objects being linked to create a
12801
# shared library.
12802
predeps=$lt_predeps_CXX
12803
 
12804
# Dependencies to place after the objects being linked to create a
12805
# shared library.
12806
postdeps=$lt_postdeps_CXX
12807
 
12808
# The library search path used internally by the compiler when linking
12809
# a shared library.
12810
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12811
 
12812
# Method to check whether dependent libraries are shared objects.
12813
deplibs_check_method=$lt_deplibs_check_method
12814
 
12815
# Command to use when deplibs_check_method == file_magic.
12816
file_magic_cmd=$lt_file_magic_cmd
12817
 
12818
# Flag that allows shared libraries with undefined symbols to be built.
12819
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12820
 
12821
# Flag that forces no undefined symbols.
12822
no_undefined_flag=$lt_no_undefined_flag_CXX
12823
 
12824
# Commands used to finish a libtool library installation in a directory.
12825
finish_cmds=$lt_finish_cmds
12826
 
12827
# Same as above, but a single script fragment to be evaled but not shown.
12828
finish_eval=$lt_finish_eval
12829
 
12830
# Take the output of nm and produce a listing of raw symbols and C names.
12831
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12832
 
12833
# Transform the output of nm in a proper C declaration
12834
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12835
 
12836
# Transform the output of nm in a C name address pair
12837
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12838
 
12839
# This is the shared library runtime path variable.
12840
runpath_var=$runpath_var
12841
 
12842
# This is the shared library path variable.
12843
shlibpath_var=$shlibpath_var
12844
 
12845
# Is shlibpath searched before the hard-coded library search path?
12846
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12847
 
12848
# How to hardcode a shared library path into an executable.
12849
hardcode_action=$hardcode_action_CXX
12850
 
12851
# Whether we should hardcode library paths into libraries.
12852
hardcode_into_libs=$hardcode_into_libs
12853
 
12854
# Flag to hardcode \$libdir into a binary during linking.
12855
# This must work even if \$libdir does not exist.
12856
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12857
 
12858
# If ld is used when linking, flag to hardcode \$libdir into
12859
# a binary during linking. This must work even if \$libdir does
12860
# not exist.
12861
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12862
 
12863
# Whether we need a single -rpath flag with a separated argument.
12864
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12865
 
12866
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12867
# resulting binary.
12868
hardcode_direct=$hardcode_direct_CXX
12869
 
12870
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12871
# resulting binary.
12872
hardcode_minus_L=$hardcode_minus_L_CXX
12873
 
12874
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12875
# the resulting binary.
12876
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12877
 
12878
# Set to yes if building a shared library automatically hardcodes DIR into the library
12879
# and all subsequent libraries and executables linked against it.
12880
hardcode_automatic=$hardcode_automatic_CXX
12881
 
12882
# Variables whose values should be saved in libtool wrapper scripts and
12883
# restored at relink time.
12884
variables_saved_for_relink="$variables_saved_for_relink"
12885
 
12886
# Whether libtool must link a program against all its dependency libraries.
12887
link_all_deplibs=$link_all_deplibs_CXX
12888
 
12889
# Compile-time system search path for libraries
12890
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12891
 
12892
# Run-time system search path for libraries
12893
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12894
 
12895
# Fix the shell variable \$srcfile for the compiler.
12896
fix_srcfile_path=$lt_fix_srcfile_path
12897
 
12898
# Set to yes if exported symbols are required.
12899
always_export_symbols=$always_export_symbols_CXX
12900
 
12901
# The commands to list exported symbols.
12902
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12903
 
12904
# The commands to extract the exported symbol list from a shared archive.
12905
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12906
 
12907
# Symbols that should not be listed in the preloaded symbols.
12908
exclude_expsyms=$lt_exclude_expsyms_CXX
12909
 
12910
# Symbols that must always be exported.
12911
include_expsyms=$lt_include_expsyms_CXX
12912
 
12913
# ### END LIBTOOL TAG CONFIG: $tagname
12914
 
12915
__EOF__
12916
 
12917
 
12918
else
12919
  # If there is no Makefile yet, we rely on a make rule to execute
12920
  # `config.status --recheck' to rerun these tests and create the
12921
  # libtool script then.
12922
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12923
  if test -f "$ltmain_in"; then
12924
    test -f Makefile && make "$ltmain"
12925
  fi
12926
fi
12927
 
12928
 
12929
ac_ext=c
12930
ac_cpp='$CPP $CPPFLAGS'
12931
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12932
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12934
 
12935
CC=$lt_save_CC
12936
LDCXX=$LD
12937
LD=$lt_save_LD
12938
GCC=$lt_save_GCC
12939
with_gnu_ldcxx=$with_gnu_ld
12940
with_gnu_ld=$lt_save_with_gnu_ld
12941
lt_cv_path_LDCXX=$lt_cv_path_LD
12942
lt_cv_path_LD=$lt_save_path_LD
12943
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12944
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12945
 
12946
        else
12947
          tagname=""
12948
        fi
12949
        ;;
12950
 
12951
      F77)
12952
        if test -n "$F77" && test "X$F77" != "Xno"; then
12953
 
12954
ac_ext=f
12955
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12956
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12958
 
12959
 
12960
archive_cmds_need_lc_F77=no
12961
allow_undefined_flag_F77=
12962
always_export_symbols_F77=no
12963
archive_expsym_cmds_F77=
12964
export_dynamic_flag_spec_F77=
12965
hardcode_direct_F77=no
12966
hardcode_libdir_flag_spec_F77=
12967
hardcode_libdir_flag_spec_ld_F77=
12968
hardcode_libdir_separator_F77=
12969
hardcode_minus_L_F77=no
12970
hardcode_automatic_F77=no
12971
module_cmds_F77=
12972
module_expsym_cmds_F77=
12973
link_all_deplibs_F77=unknown
12974
old_archive_cmds_F77=$old_archive_cmds
12975
no_undefined_flag_F77=
12976
whole_archive_flag_spec_F77=
12977
enable_shared_with_static_runtimes_F77=no
12978
 
12979
# Source file extension for f77 test sources.
12980
ac_ext=f
12981
 
12982
# Object file extension for compiled f77 test sources.
12983
objext=o
12984
objext_F77=$objext
12985
 
12986
# Code to be used in simple compile tests
12987
lt_simple_compile_test_code="\
12988
      subroutine t
12989
      return
12990
      end
12991
"
12992
 
12993
# Code to be used in simple link tests
12994
lt_simple_link_test_code="\
12995
      program t
12996
      end
12997
"
12998
 
12999
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13000
 
13001
# If no C compiler was specified, use CC.
13002
LTCC=${LTCC-"$CC"}
13003
 
13004
# If no C compiler flags were specified, use CFLAGS.
13005
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13006
 
13007
# Allow CC to be a program name with arguments.
13008
compiler=$CC
13009
 
13010
 
13011
# save warnings/boilerplate of simple test code
13012
ac_outfile=conftest.$ac_objext
13013
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13014
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13015
_lt_compiler_boilerplate=`cat conftest.err`
13016
$rm conftest*
13017
 
13018
ac_outfile=conftest.$ac_objext
13019
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13020
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13021
_lt_linker_boilerplate=`cat conftest.err`
13022
$rm conftest*
13023
 
13024
 
13025
# Allow CC to be a program name with arguments.
13026
lt_save_CC="$CC"
13027
CC=${F77-"f77"}
13028
compiler=$CC
13029
compiler_F77=$CC
13030
for cc_temp in $compiler""; do
13031
  case $cc_temp in
13032
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13033
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13034
    \-*) ;;
13035
    *) break;;
13036
  esac
13037
done
13038
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13039
 
13040
 
13041
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13042
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13043
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13044
echo "${ECHO_T}$can_build_shared" >&6; }
13045
 
13046
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13047
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13048
test "$can_build_shared" = "no" && enable_shared=no
13049
 
13050
# On AIX, shared libraries and static libraries use the same namespace, and
13051
# are all built from PIC.
13052
case $host_os in
13053
aix3*)
13054
  test "$enable_shared" = yes && enable_static=no
13055
  if test -n "$RANLIB"; then
13056
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13057
    postinstall_cmds='$RANLIB $lib'
13058
  fi
13059
  ;;
13060
aix4* | aix5*)
13061
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13062
    test "$enable_shared" = yes && enable_static=no
13063
  fi
13064
  ;;
13065
esac
13066
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13067
echo "${ECHO_T}$enable_shared" >&6; }
13068
 
13069
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13070
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13071
# Make sure either enable_shared or enable_static is yes.
13072
test "$enable_shared" = yes || enable_static=yes
13073
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13074
echo "${ECHO_T}$enable_static" >&6; }
13075
 
13076
GCC_F77="$G77"
13077
LD_F77="$LD"
13078
 
13079
lt_prog_compiler_wl_F77=
13080
lt_prog_compiler_pic_F77=
13081
lt_prog_compiler_static_F77=
13082
 
13083
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13084
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13085
 
13086
  if test "$GCC" = yes; then
13087
    lt_prog_compiler_wl_F77='-Wl,'
13088
    lt_prog_compiler_static_F77='-static'
13089
 
13090
    case $host_os in
13091
      aix*)
13092
      # All AIX code is PIC.
13093
      if test "$host_cpu" = ia64; then
13094
        # AIX 5 now supports IA64 processor
13095
        lt_prog_compiler_static_F77='-Bstatic'
13096
      fi
13097
      ;;
13098
 
13099
    amigaos*)
13100
      # FIXME: we need at least 68020 code to build shared libraries, but
13101
      # adding the `-m68020' flag to GCC prevents building anything better,
13102
      # like `-m68040'.
13103
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13104
      ;;
13105
 
13106
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13107
      # PIC is the default for these OSes.
13108
      ;;
13109
 
13110
    mingw* | cygwin* | pw32* | os2*)
13111
      # This hack is so that the source file can tell whether it is being
13112
      # built for inclusion in a dll (and should export symbols for example).
13113
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13114
      # (--disable-auto-import) libraries
13115
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13116
      ;;
13117
 
13118
    darwin* | rhapsody*)
13119
      # PIC is the default on this platform
13120
      # Common symbols not allowed in MH_DYLIB files
13121
      lt_prog_compiler_pic_F77='-fno-common'
13122
      ;;
13123
 
13124
    interix[3-9]*)
13125
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13126
      # Instead, we relocate shared libraries at runtime.
13127
      ;;
13128
 
13129
    msdosdjgpp*)
13130
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13131
      # on systems that don't support them.
13132
      lt_prog_compiler_can_build_shared_F77=no
13133
      enable_shared=no
13134
      ;;
13135
 
13136
    sysv4*MP*)
13137
      if test -d /usr/nec; then
13138
        lt_prog_compiler_pic_F77=-Kconform_pic
13139
      fi
13140
      ;;
13141
 
13142
    hpux*)
13143
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13144
      # not for PA HP-UX.
13145
      case $host_cpu in
13146
      hppa*64*|ia64*)
13147
        # +Z the default
13148
        ;;
13149
      *)
13150
        lt_prog_compiler_pic_F77='-fPIC'
13151
        ;;
13152
      esac
13153
      ;;
13154
 
13155
    *)
13156
      lt_prog_compiler_pic_F77='-fPIC'
13157
      ;;
13158
    esac
13159
  else
13160
    # PORTME Check for flag to pass linker flags through the system compiler.
13161
    case $host_os in
13162
    aix*)
13163
      lt_prog_compiler_wl_F77='-Wl,'
13164
      if test "$host_cpu" = ia64; then
13165
        # AIX 5 now supports IA64 processor
13166
        lt_prog_compiler_static_F77='-Bstatic'
13167
      else
13168
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13169
      fi
13170
      ;;
13171
      darwin*)
13172
        # PIC is the default on this platform
13173
        # Common symbols not allowed in MH_DYLIB files
13174
       case $cc_basename in
13175
         xlc*)
13176
         lt_prog_compiler_pic_F77='-qnocommon'
13177
         lt_prog_compiler_wl_F77='-Wl,'
13178
         ;;
13179
       esac
13180
       ;;
13181
 
13182
    mingw* | cygwin* | pw32* | os2*)
13183
      # This hack is so that the source file can tell whether it is being
13184
      # built for inclusion in a dll (and should export symbols for example).
13185
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13186
      ;;
13187
 
13188
    hpux9* | hpux10* | hpux11*)
13189
      lt_prog_compiler_wl_F77='-Wl,'
13190
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13191
      # not for PA HP-UX.
13192
      case $host_cpu in
13193
      hppa*64*|ia64*)
13194
        # +Z the default
13195
        ;;
13196
      *)
13197
        lt_prog_compiler_pic_F77='+Z'
13198
        ;;
13199
      esac
13200
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13201
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13202
      ;;
13203
 
13204
    irix5* | irix6* | nonstopux*)
13205
      lt_prog_compiler_wl_F77='-Wl,'
13206
      # PIC (with -KPIC) is the default.
13207
      lt_prog_compiler_static_F77='-non_shared'
13208
      ;;
13209
 
13210
    newsos6)
13211
      lt_prog_compiler_pic_F77='-KPIC'
13212
      lt_prog_compiler_static_F77='-Bstatic'
13213
      ;;
13214
 
13215
    linux* | k*bsd*-gnu)
13216
      case $cc_basename in
13217
      icc* | ecc*)
13218
        lt_prog_compiler_wl_F77='-Wl,'
13219
        lt_prog_compiler_pic_F77='-KPIC'
13220
        lt_prog_compiler_static_F77='-static'
13221
        ;;
13222
      pgcc* | pgf77* | pgf90* | pgf95*)
13223
        # Portland Group compilers (*not* the Pentium gcc compiler,
13224
        # which looks to be a dead project)
13225
        lt_prog_compiler_wl_F77='-Wl,'
13226
        lt_prog_compiler_pic_F77='-fpic'
13227
        lt_prog_compiler_static_F77='-Bstatic'
13228
        ;;
13229
      ccc*)
13230
        lt_prog_compiler_wl_F77='-Wl,'
13231
        # All Alpha code is PIC.
13232
        lt_prog_compiler_static_F77='-non_shared'
13233
        ;;
13234
      *)
13235
        case `$CC -V 2>&1 | sed 5q` in
13236
        *Sun\ C*)
13237
          # Sun C 5.9
13238
          lt_prog_compiler_pic_F77='-KPIC'
13239
          lt_prog_compiler_static_F77='-Bstatic'
13240
          lt_prog_compiler_wl_F77='-Wl,'
13241
          ;;
13242
        *Sun\ F*)
13243
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
13244
          lt_prog_compiler_pic_F77='-KPIC'
13245
          lt_prog_compiler_static_F77='-Bstatic'
13246
          lt_prog_compiler_wl_F77=''
13247
          ;;
13248
        esac
13249
        ;;
13250
      esac
13251
      ;;
13252
 
13253
    osf3* | osf4* | osf5*)
13254
      lt_prog_compiler_wl_F77='-Wl,'
13255
      # All OSF/1 code is PIC.
13256
      lt_prog_compiler_static_F77='-non_shared'
13257
      ;;
13258
 
13259
    rdos*)
13260
      lt_prog_compiler_static_F77='-non_shared'
13261
      ;;
13262
 
13263
    solaris*)
13264
      lt_prog_compiler_pic_F77='-KPIC'
13265
      lt_prog_compiler_static_F77='-Bstatic'
13266
      case $cc_basename in
13267
      f77* | f90* | f95*)
13268
        lt_prog_compiler_wl_F77='-Qoption ld ';;
13269
      *)
13270
        lt_prog_compiler_wl_F77='-Wl,';;
13271
      esac
13272
      ;;
13273
 
13274
    sunos4*)
13275
      lt_prog_compiler_wl_F77='-Qoption ld '
13276
      lt_prog_compiler_pic_F77='-PIC'
13277
      lt_prog_compiler_static_F77='-Bstatic'
13278
      ;;
13279
 
13280
    sysv4 | sysv4.2uw2* | sysv4.3*)
13281
      lt_prog_compiler_wl_F77='-Wl,'
13282
      lt_prog_compiler_pic_F77='-KPIC'
13283
      lt_prog_compiler_static_F77='-Bstatic'
13284
      ;;
13285
 
13286
    sysv4*MP*)
13287
      if test -d /usr/nec ;then
13288
        lt_prog_compiler_pic_F77='-Kconform_pic'
13289
        lt_prog_compiler_static_F77='-Bstatic'
13290
      fi
13291
      ;;
13292
 
13293
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13294
      lt_prog_compiler_wl_F77='-Wl,'
13295
      lt_prog_compiler_pic_F77='-KPIC'
13296
      lt_prog_compiler_static_F77='-Bstatic'
13297
      ;;
13298
 
13299
    unicos*)
13300
      lt_prog_compiler_wl_F77='-Wl,'
13301
      lt_prog_compiler_can_build_shared_F77=no
13302
      ;;
13303
 
13304
    uts4*)
13305
      lt_prog_compiler_pic_F77='-pic'
13306
      lt_prog_compiler_static_F77='-Bstatic'
13307
      ;;
13308
 
13309
    *)
13310
      lt_prog_compiler_can_build_shared_F77=no
13311
      ;;
13312
    esac
13313
  fi
13314
 
13315
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13316
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13317
 
13318
#
13319
# Check to make sure the PIC flag actually works.
13320
#
13321
if test -n "$lt_prog_compiler_pic_F77"; then
13322
 
13323
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13324
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13325
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13326
  echo $ECHO_N "(cached) $ECHO_C" >&6
13327
else
13328
  lt_prog_compiler_pic_works_F77=no
13329
  ac_outfile=conftest.$ac_objext
13330
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13331
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13332
   # Insert the option either (1) after the last *FLAGS variable, or
13333
   # (2) before a word containing "conftest.", or (3) at the end.
13334
   # Note that $ac_compile itself does not contain backslashes and begins
13335
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13336
   # The option is referenced via a variable to avoid confusing sed.
13337
   lt_compile=`echo "$ac_compile" | $SED \
13338
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13339
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13340
   -e 's:$: $lt_compiler_flag:'`
13341
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13342
   (eval "$lt_compile" 2>conftest.err)
13343
   ac_status=$?
13344
   cat conftest.err >&5
13345
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13346
   if (exit $ac_status) && test -s "$ac_outfile"; then
13347
     # The compiler can only warn and ignore the option if not recognized
13348
     # So say no if there are warnings other than the usual output.
13349
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13350
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13351
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13352
       lt_prog_compiler_pic_works_F77=yes
13353
     fi
13354
   fi
13355
   $rm conftest*
13356
 
13357
fi
13358
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13359
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13360
 
13361
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13362
    case $lt_prog_compiler_pic_F77 in
13363
     "" | " "*) ;;
13364
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13365
     esac
13366
else
13367
    lt_prog_compiler_pic_F77=
13368
     lt_prog_compiler_can_build_shared_F77=no
13369
fi
13370
 
13371
fi
13372
case $host_os in
13373
  # For platforms which do not support PIC, -DPIC is meaningless:
13374
  *djgpp*)
13375
    lt_prog_compiler_pic_F77=
13376
    ;;
13377
  *)
13378
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13379
    ;;
13380
esac
13381
 
13382
#
13383
# Check to make sure the static flag actually works.
13384
#
13385
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13386
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13387
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13388
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13389
  echo $ECHO_N "(cached) $ECHO_C" >&6
13390
else
13391
  lt_prog_compiler_static_works_F77=no
13392
   save_LDFLAGS="$LDFLAGS"
13393
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13394
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13395
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13396
     # The linker can only warn and ignore the option if not recognized
13397
     # So say no if there are warnings
13398
     if test -s conftest.err; then
13399
       # Append any errors to the config.log.
13400
       cat conftest.err 1>&5
13401
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13402
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13403
       if diff conftest.exp conftest.er2 >/dev/null; then
13404
         lt_prog_compiler_static_works_F77=yes
13405
       fi
13406
     else
13407
       lt_prog_compiler_static_works_F77=yes
13408
     fi
13409
   fi
13410
   $rm conftest*
13411
   LDFLAGS="$save_LDFLAGS"
13412
 
13413
fi
13414
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13415
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13416
 
13417
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13418
    :
13419
else
13420
    lt_prog_compiler_static_F77=
13421
fi
13422
 
13423
 
13424
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13425
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13426
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13427
  echo $ECHO_N "(cached) $ECHO_C" >&6
13428
else
13429
  lt_cv_prog_compiler_c_o_F77=no
13430
   $rm -r conftest 2>/dev/null
13431
   mkdir conftest
13432
   cd conftest
13433
   mkdir out
13434
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13435
 
13436
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13437
   # Insert the option either (1) after the last *FLAGS variable, or
13438
   # (2) before a word containing "conftest.", or (3) at the end.
13439
   # Note that $ac_compile itself does not contain backslashes and begins
13440
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13441
   lt_compile=`echo "$ac_compile" | $SED \
13442
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13443
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13444
   -e 's:$: $lt_compiler_flag:'`
13445
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13446
   (eval "$lt_compile" 2>out/conftest.err)
13447
   ac_status=$?
13448
   cat out/conftest.err >&5
13449
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13450
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13451
   then
13452
     # The compiler can only warn and ignore the option if not recognized
13453
     # So say no if there are warnings
13454
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13455
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13456
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13457
       lt_cv_prog_compiler_c_o_F77=yes
13458
     fi
13459
   fi
13460
   chmod u+w . 2>&5
13461
   $rm conftest*
13462
   # SGI C++ compiler will create directory out/ii_files/ for
13463
   # template instantiation
13464
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13465
   $rm out/* && rmdir out
13466
   cd ..
13467
   rmdir conftest
13468
   $rm conftest*
13469
 
13470
fi
13471
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13472
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13473
 
13474
 
13475
hard_links="nottested"
13476
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13477
  # do not overwrite the value of need_locks provided by the user
13478
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13479
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13480
  hard_links=yes
13481
  $rm conftest*
13482
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13483
  touch conftest.a
13484
  ln conftest.a conftest.b 2>&5 || hard_links=no
13485
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13486
  { echo "$as_me:$LINENO: result: $hard_links" >&5
13487
echo "${ECHO_T}$hard_links" >&6; }
13488
  if test "$hard_links" = no; then
13489
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13490
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13491
    need_locks=warn
13492
  fi
13493
else
13494
  need_locks=no
13495
fi
13496
 
13497
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13498
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13499
 
13500
  runpath_var=
13501
  allow_undefined_flag_F77=
13502
  enable_shared_with_static_runtimes_F77=no
13503
  archive_cmds_F77=
13504
  archive_expsym_cmds_F77=
13505
  old_archive_From_new_cmds_F77=
13506
  old_archive_from_expsyms_cmds_F77=
13507
  export_dynamic_flag_spec_F77=
13508
  whole_archive_flag_spec_F77=
13509
  thread_safe_flag_spec_F77=
13510
  hardcode_libdir_flag_spec_F77=
13511
  hardcode_libdir_flag_spec_ld_F77=
13512
  hardcode_libdir_separator_F77=
13513
  hardcode_direct_F77=no
13514
  hardcode_minus_L_F77=no
13515
  hardcode_shlibpath_var_F77=unsupported
13516
  link_all_deplibs_F77=unknown
13517
  hardcode_automatic_F77=no
13518
  module_cmds_F77=
13519
  module_expsym_cmds_F77=
13520
  always_export_symbols_F77=no
13521
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13522
  # include_expsyms should be a list of space-separated symbols to be *always*
13523
  # included in the symbol list
13524
  include_expsyms_F77=
13525
  # exclude_expsyms can be an extended regexp of symbols to exclude
13526
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13527
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13528
  # as well as any symbol that contains `d'.
13529
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13530
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13531
  # platforms (ab)use it in PIC code, but their linkers get confused if
13532
  # the symbol is explicitly referenced.  Since portable code cannot
13533
  # rely on this symbol name, it's probably fine to never include it in
13534
  # preloaded symbol tables.
13535
  extract_expsyms_cmds=
13536
  # Just being paranoid about ensuring that cc_basename is set.
13537
  for cc_temp in $compiler""; do
13538
  case $cc_temp in
13539
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13540
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13541
    \-*) ;;
13542
    *) break;;
13543
  esac
13544
done
13545
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13546
 
13547
  case $host_os in
13548
  cygwin* | mingw* | pw32*)
13549
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13550
    # When not using gcc, we currently assume that we are using
13551
    # Microsoft Visual C++.
13552
    if test "$GCC" != yes; then
13553
      with_gnu_ld=no
13554
    fi
13555
    ;;
13556
  interix*)
13557
    # we just hope/assume this is gcc and not c89 (= MSVC++)
13558
    with_gnu_ld=yes
13559
    ;;
13560
  openbsd*)
13561
    with_gnu_ld=no
13562
    ;;
13563
  esac
13564
 
13565
  ld_shlibs_F77=yes
13566
  if test "$with_gnu_ld" = yes; then
13567
    # If archive_cmds runs LD, not CC, wlarc should be empty
13568
    wlarc='${wl}'
13569
 
13570
    # Set some defaults for GNU ld with shared library support. These
13571
    # are reset later if shared libraries are not supported. Putting them
13572
    # here allows them to be overridden if necessary.
13573
    runpath_var=LD_RUN_PATH
13574
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13575
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13576
    # ancient GNU ld didn't support --whole-archive et. al.
13577
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13578
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13579
      else
13580
        whole_archive_flag_spec_F77=
13581
    fi
13582
    supports_anon_versioning=no
13583
    case `$LD -v 2>/dev/null` in
13584
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13585
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13586
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13587
      *\ 2.11.*) ;; # other 2.11 versions
13588
      *) supports_anon_versioning=yes ;;
13589
    esac
13590
 
13591
    # See if GNU ld supports shared libraries.
13592
    case $host_os in
13593
    aix3* | aix4* | aix5*)
13594
      # On AIX/PPC, the GNU linker is very broken
13595
      if test "$host_cpu" != ia64; then
13596
        ld_shlibs_F77=no
13597
        cat <&2
13598
 
13599
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13600
*** to be unable to reliably create shared libraries on AIX.
13601
*** Therefore, libtool is disabling shared libraries support.  If you
13602
*** really care for shared libraries, you may want to modify your PATH
13603
*** so that a non-GNU linker is found, and then restart.
13604
 
13605
EOF
13606
      fi
13607
      ;;
13608
 
13609
    amigaos*)
13610
      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)'
13611
      hardcode_libdir_flag_spec_F77='-L$libdir'
13612
      hardcode_minus_L_F77=yes
13613
 
13614
      # Samuel A. Falvo II  reports
13615
      # that the semantics of dynamic libraries on AmigaOS, at least up
13616
      # to version 4, is to share data among multiple programs linked
13617
      # with the same dynamic library.  Since this doesn't match the
13618
      # behavior of shared libraries on other platforms, we can't use
13619
      # them.
13620
      ld_shlibs_F77=no
13621
      ;;
13622
 
13623
    beos*)
13624
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13625
        allow_undefined_flag_F77=unsupported
13626
        # Joseph Beckenbach  says some releases of gcc
13627
        # support --undefined.  This deserves some investigation.  FIXME
13628
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13629
      else
13630
        ld_shlibs_F77=no
13631
      fi
13632
      ;;
13633
 
13634
    cygwin* | mingw* | pw32*)
13635
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13636
      # as there is no search path for DLLs.
13637
      hardcode_libdir_flag_spec_F77='-L$libdir'
13638
      allow_undefined_flag_F77=unsupported
13639
      always_export_symbols_F77=no
13640
      enable_shared_with_static_runtimes_F77=yes
13641
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13642
 
13643
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13644
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13645
        # If the export-symbols file already is a .def file (1st line
13646
        # is EXPORTS), use it as is; otherwise, prepend...
13647
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13648
          cp $export_symbols $output_objdir/$soname.def;
13649
        else
13650
          echo EXPORTS > $output_objdir/$soname.def;
13651
          cat $export_symbols >> $output_objdir/$soname.def;
13652
        fi~
13653
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13654
      else
13655
        ld_shlibs_F77=no
13656
      fi
13657
      ;;
13658
 
13659
    interix[3-9]*)
13660
      hardcode_direct_F77=no
13661
      hardcode_shlibpath_var_F77=no
13662
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13663
      export_dynamic_flag_spec_F77='${wl}-E'
13664
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13665
      # Instead, shared libraries are loaded at an image base (0x10000000 by
13666
      # default) and relocated if they conflict, which is a slow very memory
13667
      # consuming and fragmenting process.  To avoid this, we pick a random,
13668
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13669
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13670
      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'
13671
      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'
13672
      ;;
13673
 
13674
    gnu* | linux* | k*bsd*-gnu)
13675
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13676
        tmp_addflag=
13677
        case $cc_basename,$host_cpu in
13678
        pgcc*)                          # Portland Group C compiler
13679
          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'
13680
          tmp_addflag=' $pic_flag'
13681
          ;;
13682
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13683
          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'
13684
          tmp_addflag=' $pic_flag -Mnomain' ;;
13685
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13686
          tmp_addflag=' -i_dynamic' ;;
13687
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13688
          tmp_addflag=' -i_dynamic -nofor_main' ;;
13689
        ifc* | ifort*)                  # Intel Fortran compiler
13690
          tmp_addflag=' -nofor_main' ;;
13691
        esac
13692
        case `$CC -V 2>&1 | sed 5q` in
13693
        *Sun\ C*)                       # Sun C 5.9
13694
          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'
13695
          tmp_sharedflag='-G' ;;
13696
        *Sun\ F*)                       # Sun Fortran 8.3
13697
          tmp_sharedflag='-G' ;;
13698
        *)
13699
          tmp_sharedflag='-shared' ;;
13700
        esac
13701
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13702
 
13703
        if test $supports_anon_versioning = yes; then
13704
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13705
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13706
  $echo "local: *; };" >> $output_objdir/$libname.ver~
13707
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13708
        fi
13709
      else
13710
        ld_shlibs_F77=no
13711
      fi
13712
      ;;
13713
 
13714
    netbsd*)
13715
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13716
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13717
        wlarc=
13718
      else
13719
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13720
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13721
      fi
13722
      ;;
13723
 
13724
    solaris*)
13725
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13726
        ld_shlibs_F77=no
13727
        cat <&2
13728
 
13729
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13730
*** create shared libraries on Solaris systems.  Therefore, libtool
13731
*** is disabling shared libraries support.  We urge you to upgrade GNU
13732
*** binutils to release 2.9.1 or newer.  Another option is to modify
13733
*** your PATH or compiler configuration so that the native linker is
13734
*** used, and then restart.
13735
 
13736
EOF
13737
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13738
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13739
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13740
      else
13741
        ld_shlibs_F77=no
13742
      fi
13743
      ;;
13744
 
13745
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13746
      case `$LD -v 2>&1` in
13747
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13748
        ld_shlibs_F77=no
13749
        cat <<_LT_EOF 1>&2
13750
 
13751
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13752
*** reliably create shared libraries on SCO systems.  Therefore, libtool
13753
*** is disabling shared libraries support.  We urge you to upgrade GNU
13754
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13755
*** your PATH or compiler configuration so that the native linker is
13756
*** used, and then restart.
13757
 
13758
_LT_EOF
13759
        ;;
13760
        *)
13761
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13762
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13763
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13764
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13765
          else
13766
            ld_shlibs_F77=no
13767
          fi
13768
        ;;
13769
      esac
13770
      ;;
13771
 
13772
    sunos4*)
13773
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13774
      wlarc=
13775
      hardcode_direct_F77=yes
13776
      hardcode_shlibpath_var_F77=no
13777
      ;;
13778
 
13779
    *)
13780
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13781
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13782
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13783
      else
13784
        ld_shlibs_F77=no
13785
      fi
13786
      ;;
13787
    esac
13788
 
13789
    if test "$ld_shlibs_F77" = no; then
13790
      runpath_var=
13791
      hardcode_libdir_flag_spec_F77=
13792
      export_dynamic_flag_spec_F77=
13793
      whole_archive_flag_spec_F77=
13794
    fi
13795
  else
13796
    # PORTME fill in a description of your system's linker (not GNU ld)
13797
    case $host_os in
13798
    aix3*)
13799
      allow_undefined_flag_F77=unsupported
13800
      always_export_symbols_F77=yes
13801
      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'
13802
      # Note: this linker hardcodes the directories in LIBPATH if there
13803
      # are no directories specified by -L.
13804
      hardcode_minus_L_F77=yes
13805
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13806
        # Neither direct hardcoding nor static linking is supported with a
13807
        # broken collect2.
13808
        hardcode_direct_F77=unsupported
13809
      fi
13810
      ;;
13811
 
13812
    aix4* | aix5*)
13813
      if test "$host_cpu" = ia64; then
13814
        # On IA64, the linker does run time linking by default, so we don't
13815
        # have to do anything special.
13816
        aix_use_runtimelinking=no
13817
        exp_sym_flag='-Bexport'
13818
        no_entry_flag=""
13819
      else
13820
        # If we're using GNU nm, then we don't want the "-C" option.
13821
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
13822
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13823
          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'
13824
        else
13825
          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'
13826
        fi
13827
        aix_use_runtimelinking=no
13828
 
13829
        # Test if we are trying to use run time linking or normal
13830
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13831
        # need to do runtime linking.
13832
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13833
          for ld_flag in $LDFLAGS; do
13834
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13835
            aix_use_runtimelinking=yes
13836
            break
13837
          fi
13838
          done
13839
          ;;
13840
        esac
13841
 
13842
        exp_sym_flag='-bexport'
13843
        no_entry_flag='-bnoentry'
13844
      fi
13845
 
13846
      # When large executables or shared objects are built, AIX ld can
13847
      # have problems creating the table of contents.  If linking a library
13848
      # or program results in "error TOC overflow" add -mminimal-toc to
13849
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13850
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13851
 
13852
      archive_cmds_F77=''
13853
      hardcode_direct_F77=yes
13854
      hardcode_libdir_separator_F77=':'
13855
      link_all_deplibs_F77=yes
13856
 
13857
      if test "$GCC" = yes; then
13858
        case $host_os in aix4.[012]|aix4.[012].*)
13859
        # We only want to do this on AIX 4.2 and lower, the check
13860
        # below for broken collect2 doesn't work under 4.3+
13861
          collect2name=`${CC} -print-prog-name=collect2`
13862
          if test -f "$collect2name" && \
13863
           strings "$collect2name" | grep resolve_lib_name >/dev/null
13864
          then
13865
          # We have reworked collect2
13866
          :
13867
          else
13868
          # We have old collect2
13869
          hardcode_direct_F77=unsupported
13870
          # It fails to find uninstalled libraries when the uninstalled
13871
          # path is not listed in the libpath.  Setting hardcode_minus_L
13872
          # to unsupported forces relinking
13873
          hardcode_minus_L_F77=yes
13874
          hardcode_libdir_flag_spec_F77='-L$libdir'
13875
          hardcode_libdir_separator_F77=
13876
          fi
13877
          ;;
13878
        esac
13879
        shared_flag='-shared'
13880
        if test "$aix_use_runtimelinking" = yes; then
13881
          shared_flag="$shared_flag "'${wl}-G'
13882
        fi
13883
      else
13884
        # not using gcc
13885
        if test "$host_cpu" = ia64; then
13886
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13887
        # chokes on -Wl,-G. The following line is correct:
13888
          shared_flag='-G'
13889
        else
13890
          if test "$aix_use_runtimelinking" = yes; then
13891
            shared_flag='${wl}-G'
13892
          else
13893
            shared_flag='${wl}-bM:SRE'
13894
          fi
13895
        fi
13896
      fi
13897
 
13898
      # It seems that -bexpall does not export symbols beginning with
13899
      # underscore (_), so it is better to generate a list of symbols to export.
13900
      always_export_symbols_F77=yes
13901
      if test "$aix_use_runtimelinking" = yes; then
13902
        # Warning - without using the other runtime loading flags (-brtl),
13903
        # -berok will link without error, but may produce a broken library.
13904
        allow_undefined_flag_F77='-berok'
13905
       # Determine the default libpath from the value encoded in an empty executable.
13906
       cat >conftest.$ac_ext <<_ACEOF
13907
      program main
13908
 
13909
      end
13910
_ACEOF
13911
rm -f conftest.$ac_objext conftest$ac_exeext
13912
if { (ac_try="$ac_link"
13913
case "(($ac_try" in
13914
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915
  *) ac_try_echo=$ac_try;;
13916
esac
13917
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918
  (eval "$ac_link") 2>conftest.er1
13919
  ac_status=$?
13920
  grep -v '^ *+' conftest.er1 >conftest.err
13921
  rm -f conftest.er1
13922
  cat conftest.err >&5
13923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924
  (exit $ac_status); } && {
13925
         test -z "$ac_f77_werror_flag" ||
13926
         test ! -s conftest.err
13927
       } && test -s conftest$ac_exeext &&
13928
       $as_test_x conftest$ac_exeext; then
13929
 
13930
lt_aix_libpath_sed='
13931
    /Import File Strings/,/^$/ {
13932
        /^0/ {
13933
            s/^0  *\(.*\)$/\1/
13934
            p
13935
        }
13936
    }'
13937
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13938
# Check for a 64-bit object if we didn't find anything.
13939
if test -z "$aix_libpath"; then
13940
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13941
fi
13942
else
13943
  echo "$as_me: failed program was:" >&5
13944
sed 's/^/| /' conftest.$ac_ext >&5
13945
 
13946
 
13947
fi
13948
 
13949
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13950
      conftest$ac_exeext conftest.$ac_ext
13951
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13952
 
13953
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13954
        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"
13955
       else
13956
        if test "$host_cpu" = ia64; then
13957
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13958
          allow_undefined_flag_F77="-z nodefs"
13959
          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"
13960
        else
13961
         # Determine the default libpath from the value encoded in an empty executable.
13962
         cat >conftest.$ac_ext <<_ACEOF
13963
      program main
13964
 
13965
      end
13966
_ACEOF
13967
rm -f conftest.$ac_objext conftest$ac_exeext
13968
if { (ac_try="$ac_link"
13969
case "(($ac_try" in
13970
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971
  *) ac_try_echo=$ac_try;;
13972
esac
13973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974
  (eval "$ac_link") 2>conftest.er1
13975
  ac_status=$?
13976
  grep -v '^ *+' conftest.er1 >conftest.err
13977
  rm -f conftest.er1
13978
  cat conftest.err >&5
13979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980
  (exit $ac_status); } && {
13981
         test -z "$ac_f77_werror_flag" ||
13982
         test ! -s conftest.err
13983
       } && test -s conftest$ac_exeext &&
13984
       $as_test_x conftest$ac_exeext; then
13985
 
13986
lt_aix_libpath_sed='
13987
    /Import File Strings/,/^$/ {
13988
        /^0/ {
13989
            s/^0  *\(.*\)$/\1/
13990
            p
13991
        }
13992
    }'
13993
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13994
# Check for a 64-bit object if we didn't find anything.
13995
if test -z "$aix_libpath"; then
13996
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13997
fi
13998
else
13999
  echo "$as_me: failed program was:" >&5
14000
sed 's/^/| /' conftest.$ac_ext >&5
14001
 
14002
 
14003
fi
14004
 
14005
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14006
      conftest$ac_exeext conftest.$ac_ext
14007
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14008
 
14009
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14010
          # Warning - without using the other run time loading flags,
14011
          # -berok will link without error, but may produce a broken library.
14012
          no_undefined_flag_F77=' ${wl}-bernotok'
14013
          allow_undefined_flag_F77=' ${wl}-berok'
14014
          # Exported symbols can be pulled into shared objects from archives
14015
          whole_archive_flag_spec_F77='$convenience'
14016
          archive_cmds_need_lc_F77=yes
14017
          # This is similar to how AIX traditionally builds its shared libraries.
14018
          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'
14019
        fi
14020
      fi
14021
      ;;
14022
 
14023
    amigaos*)
14024
      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)'
14025
      hardcode_libdir_flag_spec_F77='-L$libdir'
14026
      hardcode_minus_L_F77=yes
14027
      # see comment about different semantics on the GNU ld section
14028
      ld_shlibs_F77=no
14029
      ;;
14030
 
14031
    bsdi[45]*)
14032
      export_dynamic_flag_spec_F77=-rdynamic
14033
      ;;
14034
 
14035
    cygwin* | mingw* | pw32*)
14036
      # When not using gcc, we currently assume that we are using
14037
      # Microsoft Visual C++.
14038
      # hardcode_libdir_flag_spec is actually meaningless, as there is
14039
      # no search path for DLLs.
14040
      hardcode_libdir_flag_spec_F77=' '
14041
      allow_undefined_flag_F77=unsupported
14042
      # Tell ltmain to make .lib files, not .a files.
14043
      libext=lib
14044
      # Tell ltmain to make .dll files, not .so files.
14045
      shrext_cmds=".dll"
14046
      # FIXME: Setting linknames here is a bad hack.
14047
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14048
      # The linker will automatically build a .lib file if we build a DLL.
14049
      old_archive_From_new_cmds_F77='true'
14050
      # FIXME: Should let the user specify the lib program.
14051
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14052
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14053
      enable_shared_with_static_runtimes_F77=yes
14054
      ;;
14055
 
14056
    darwin* | rhapsody*)
14057
      case $host_os in
14058
        rhapsody* | darwin1.[012])
14059
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14060
         ;;
14061
       *) # Darwin 1.3 on
14062
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14063
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14064
         else
14065
           case ${MACOSX_DEPLOYMENT_TARGET} in
14066
             10.[012])
14067
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14068
               ;;
14069
             10.*)
14070
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14071
               ;;
14072
           esac
14073
         fi
14074
         ;;
14075
      esac
14076
      archive_cmds_need_lc_F77=no
14077
      hardcode_direct_F77=no
14078
      hardcode_automatic_F77=yes
14079
      hardcode_shlibpath_var_F77=unsupported
14080
      whole_archive_flag_spec_F77=''
14081
      link_all_deplibs_F77=yes
14082
    if test "$GCC" = yes ; then
14083
        output_verbose_link_cmd='echo'
14084
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14085
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14086
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14087
      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}'
14088
      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}'
14089
    else
14090
      case $cc_basename in
14091
        xlc*)
14092
         output_verbose_link_cmd='echo'
14093
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14094
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14095
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14096
         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}'
14097
          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}'
14098
          ;;
14099
       *)
14100
         ld_shlibs_F77=no
14101
          ;;
14102
      esac
14103
    fi
14104
      ;;
14105
 
14106
    dgux*)
14107
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14108
      hardcode_libdir_flag_spec_F77='-L$libdir'
14109
      hardcode_shlibpath_var_F77=no
14110
      ;;
14111
 
14112
    freebsd1*)
14113
      ld_shlibs_F77=no
14114
      ;;
14115
 
14116
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14117
    # support.  Future versions do this automatically, but an explicit c++rt0.o
14118
    # does not break anything, and helps significantly (at the cost of a little
14119
    # extra space).
14120
    freebsd2.2*)
14121
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14122
      hardcode_libdir_flag_spec_F77='-R$libdir'
14123
      hardcode_direct_F77=yes
14124
      hardcode_shlibpath_var_F77=no
14125
      ;;
14126
 
14127
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14128
    freebsd2*)
14129
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14130
      hardcode_direct_F77=yes
14131
      hardcode_minus_L_F77=yes
14132
      hardcode_shlibpath_var_F77=no
14133
      ;;
14134
 
14135
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14136
    freebsd* | dragonfly*)
14137
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14138
      hardcode_libdir_flag_spec_F77='-R$libdir'
14139
      hardcode_direct_F77=yes
14140
      hardcode_shlibpath_var_F77=no
14141
      ;;
14142
 
14143
    hpux9*)
14144
      if test "$GCC" = yes; then
14145
        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'
14146
      else
14147
        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'
14148
      fi
14149
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14150
      hardcode_libdir_separator_F77=:
14151
      hardcode_direct_F77=yes
14152
 
14153
      # hardcode_minus_L: Not really in the search PATH,
14154
      # but as the default location of the library.
14155
      hardcode_minus_L_F77=yes
14156
      export_dynamic_flag_spec_F77='${wl}-E'
14157
      ;;
14158
 
14159
    hpux10*)
14160
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14161
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14162
      else
14163
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14164
      fi
14165
      if test "$with_gnu_ld" = no; then
14166
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14167
        hardcode_libdir_separator_F77=:
14168
 
14169
        hardcode_direct_F77=yes
14170
        export_dynamic_flag_spec_F77='${wl}-E'
14171
 
14172
        # hardcode_minus_L: Not really in the search PATH,
14173
        # but as the default location of the library.
14174
        hardcode_minus_L_F77=yes
14175
      fi
14176
      ;;
14177
 
14178
    hpux11*)
14179
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14180
        case $host_cpu in
14181
        hppa*64*)
14182
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14183
          ;;
14184
        ia64*)
14185
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14186
          ;;
14187
        *)
14188
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14189
          ;;
14190
        esac
14191
      else
14192
        case $host_cpu in
14193
        hppa*64*)
14194
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14195
          ;;
14196
        ia64*)
14197
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14198
          ;;
14199
        *)
14200
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14201
          ;;
14202
        esac
14203
      fi
14204
      if test "$with_gnu_ld" = no; then
14205
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14206
        hardcode_libdir_separator_F77=:
14207
 
14208
        case $host_cpu in
14209
        hppa*64*|ia64*)
14210
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14211
          hardcode_direct_F77=no
14212
          hardcode_shlibpath_var_F77=no
14213
          ;;
14214
        *)
14215
          hardcode_direct_F77=yes
14216
          export_dynamic_flag_spec_F77='${wl}-E'
14217
 
14218
          # hardcode_minus_L: Not really in the search PATH,
14219
          # but as the default location of the library.
14220
          hardcode_minus_L_F77=yes
14221
          ;;
14222
        esac
14223
      fi
14224
      ;;
14225
 
14226
    irix5* | irix6* | nonstopux*)
14227
      if test "$GCC" = yes; then
14228
        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'
14229
      else
14230
        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'
14231
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14232
      fi
14233
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14234
      hardcode_libdir_separator_F77=:
14235
      link_all_deplibs_F77=yes
14236
      ;;
14237
 
14238
    netbsd*)
14239
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14240
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14241
      else
14242
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14243
      fi
14244
      hardcode_libdir_flag_spec_F77='-R$libdir'
14245
      hardcode_direct_F77=yes
14246
      hardcode_shlibpath_var_F77=no
14247
      ;;
14248
 
14249
    newsos6)
14250
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14251
      hardcode_direct_F77=yes
14252
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14253
      hardcode_libdir_separator_F77=:
14254
      hardcode_shlibpath_var_F77=no
14255
      ;;
14256
 
14257
    openbsd*)
14258
      if test -f /usr/libexec/ld.so; then
14259
        hardcode_direct_F77=yes
14260
        hardcode_shlibpath_var_F77=no
14261
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14262
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14263
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14264
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14265
          export_dynamic_flag_spec_F77='${wl}-E'
14266
        else
14267
          case $host_os in
14268
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14269
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14270
             hardcode_libdir_flag_spec_F77='-R$libdir'
14271
             ;;
14272
           *)
14273
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14274
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14275
             ;;
14276
          esac
14277
        fi
14278
      else
14279
        ld_shlibs_F77=no
14280
      fi
14281
      ;;
14282
 
14283
    os2*)
14284
      hardcode_libdir_flag_spec_F77='-L$libdir'
14285
      hardcode_minus_L_F77=yes
14286
      allow_undefined_flag_F77=unsupported
14287
      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'
14288
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14289
      ;;
14290
 
14291
    osf3*)
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14295
      else
14296
        allow_undefined_flag_F77=' -expect_unresolved \*'
14297
        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'
14298
      fi
14299
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14300
      hardcode_libdir_separator_F77=:
14301
      ;;
14302
 
14303
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14304
      if test "$GCC" = yes; then
14305
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14306
        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'
14307
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14308
      else
14309
        allow_undefined_flag_F77=' -expect_unresolved \*'
14310
        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'
14311
        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~
14312
        $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'
14313
 
14314
        # Both c and cxx compiler support -rpath directly
14315
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14316
      fi
14317
      hardcode_libdir_separator_F77=:
14318
      ;;
14319
 
14320
    solaris*)
14321
      no_undefined_flag_F77=' -z text'
14322
      if test "$GCC" = yes; then
14323
        wlarc='${wl}'
14324
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14325
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14326
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14327
      else
14328
        wlarc=''
14329
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14330
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14331
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14332
      fi
14333
      hardcode_libdir_flag_spec_F77='-R$libdir'
14334
      hardcode_shlibpath_var_F77=no
14335
      case $host_os in
14336
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14337
      *)
14338
        # The compiler driver will combine and reorder linker options,
14339
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
14340
        # but is careful enough not to reorder.
14341
        # Supported since Solaris 2.6 (maybe 2.5.1?)
14342
        if test "$GCC" = yes; then
14343
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14344
        else
14345
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14346
        fi
14347
        ;;
14348
      esac
14349
      link_all_deplibs_F77=yes
14350
      ;;
14351
 
14352
    sunos4*)
14353
      if test "x$host_vendor" = xsequent; then
14354
        # Use $CC to link under sequent, because it throws in some extra .o
14355
        # files that make .init and .fini sections work.
14356
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14357
      else
14358
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14359
      fi
14360
      hardcode_libdir_flag_spec_F77='-L$libdir'
14361
      hardcode_direct_F77=yes
14362
      hardcode_minus_L_F77=yes
14363
      hardcode_shlibpath_var_F77=no
14364
      ;;
14365
 
14366
    sysv4)
14367
      case $host_vendor in
14368
        sni)
14369
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14370
          hardcode_direct_F77=yes # is this really true???
14371
        ;;
14372
        siemens)
14373
          ## LD is ld it makes a PLAMLIB
14374
          ## CC just makes a GrossModule.
14375
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14376
          reload_cmds_F77='$CC -r -o $output$reload_objs'
14377
          hardcode_direct_F77=no
14378
        ;;
14379
        motorola)
14380
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14381
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14382
        ;;
14383
      esac
14384
      runpath_var='LD_RUN_PATH'
14385
      hardcode_shlibpath_var_F77=no
14386
      ;;
14387
 
14388
    sysv4.3*)
14389
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14390
      hardcode_shlibpath_var_F77=no
14391
      export_dynamic_flag_spec_F77='-Bexport'
14392
      ;;
14393
 
14394
    sysv4*MP*)
14395
      if test -d /usr/nec; then
14396
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14397
        hardcode_shlibpath_var_F77=no
14398
        runpath_var=LD_RUN_PATH
14399
        hardcode_runpath_var=yes
14400
        ld_shlibs_F77=yes
14401
      fi
14402
      ;;
14403
 
14404
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14405
      no_undefined_flag_F77='${wl}-z,text'
14406
      archive_cmds_need_lc_F77=no
14407
      hardcode_shlibpath_var_F77=no
14408
      runpath_var='LD_RUN_PATH'
14409
 
14410
      if test "$GCC" = yes; then
14411
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14412
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14413
      else
14414
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14415
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14416
      fi
14417
      ;;
14418
 
14419
    sysv5* | sco3.2v5* | sco5v6*)
14420
      # Note: We can NOT use -z defs as we might desire, because we do not
14421
      # link with -lc, and that would cause any symbols used from libc to
14422
      # always be unresolved, which means just about no library would
14423
      # ever link correctly.  If we're not using GNU ld we use -z text
14424
      # though, which does catch some bad symbols but isn't as heavy-handed
14425
      # as -z defs.
14426
      no_undefined_flag_F77='${wl}-z,text'
14427
      allow_undefined_flag_F77='${wl}-z,nodefs'
14428
      archive_cmds_need_lc_F77=no
14429
      hardcode_shlibpath_var_F77=no
14430
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14431
      hardcode_libdir_separator_F77=':'
14432
      link_all_deplibs_F77=yes
14433
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14434
      runpath_var='LD_RUN_PATH'
14435
 
14436
      if test "$GCC" = yes; then
14437
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14438
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14439
      else
14440
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14441
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14442
      fi
14443
      ;;
14444
 
14445
    uts4*)
14446
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14447
      hardcode_libdir_flag_spec_F77='-L$libdir'
14448
      hardcode_shlibpath_var_F77=no
14449
      ;;
14450
 
14451
    *)
14452
      ld_shlibs_F77=no
14453
      ;;
14454
    esac
14455
  fi
14456
 
14457
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14458
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14459
test "$ld_shlibs_F77" = no && can_build_shared=no
14460
 
14461
#
14462
# Do we need to explicitly link libc?
14463
#
14464
case "x$archive_cmds_need_lc_F77" in
14465
x|xyes)
14466
  # Assume -lc should be added
14467
  archive_cmds_need_lc_F77=yes
14468
 
14469
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14470
    case $archive_cmds_F77 in
14471
    *'~'*)
14472
      # FIXME: we may have to deal with multi-command sequences.
14473
      ;;
14474
    '$CC '*)
14475
      # Test whether the compiler implicitly links with -lc since on some
14476
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14477
      # to ld, don't add -lc before -lgcc.
14478
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14479
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14480
      $rm conftest*
14481
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14482
 
14483
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14484
  (eval $ac_compile) 2>&5
14485
  ac_status=$?
14486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487
  (exit $ac_status); } 2>conftest.err; then
14488
        soname=conftest
14489
        lib=conftest
14490
        libobjs=conftest.$ac_objext
14491
        deplibs=
14492
        wl=$lt_prog_compiler_wl_F77
14493
        pic_flag=$lt_prog_compiler_pic_F77
14494
        compiler_flags=-v
14495
        linker_flags=-v
14496
        verstring=
14497
        output_objdir=.
14498
        libname=conftest
14499
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14500
        allow_undefined_flag_F77=
14501
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14502
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14503
  ac_status=$?
14504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505
  (exit $ac_status); }
14506
        then
14507
          archive_cmds_need_lc_F77=no
14508
        else
14509
          archive_cmds_need_lc_F77=yes
14510
        fi
14511
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14512
      else
14513
        cat conftest.err 1>&5
14514
      fi
14515
      $rm conftest*
14516
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14517
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14518
      ;;
14519
    esac
14520
  fi
14521
  ;;
14522
esac
14523
 
14524
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14525
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14526
library_names_spec=
14527
libname_spec='lib$name'
14528
soname_spec=
14529
shrext_cmds=".so"
14530
postinstall_cmds=
14531
postuninstall_cmds=
14532
finish_cmds=
14533
finish_eval=
14534
shlibpath_var=
14535
shlibpath_overrides_runpath=unknown
14536
version_type=none
14537
dynamic_linker="$host_os ld.so"
14538
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14539
 
14540
need_lib_prefix=unknown
14541
hardcode_into_libs=no
14542
 
14543
# when you set need_version to no, make sure it does not cause -set_version
14544
# flags to be left without arguments
14545
need_version=unknown
14546
 
14547
case $host_os in
14548
aix3*)
14549
  version_type=linux
14550
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14551
  shlibpath_var=LIBPATH
14552
 
14553
  # AIX 3 has no versioning support, so we append a major version to the name.
14554
  soname_spec='${libname}${release}${shared_ext}$major'
14555
  ;;
14556
 
14557
aix4* | aix5*)
14558
  version_type=linux
14559
  need_lib_prefix=no
14560
  need_version=no
14561
  hardcode_into_libs=yes
14562
  if test "$host_cpu" = ia64; then
14563
    # AIX 5 supports IA64
14564
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14565
    shlibpath_var=LD_LIBRARY_PATH
14566
  else
14567
    # With GCC up to 2.95.x, collect2 would create an import file
14568
    # for dependence libraries.  The import file would start with
14569
    # the line `#! .'.  This would cause the generated library to
14570
    # depend on `.', always an invalid library.  This was fixed in
14571
    # development snapshots of GCC prior to 3.0.
14572
    case $host_os in
14573
      aix4 | aix4.[01] | aix4.[01].*)
14574
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14575
           echo ' yes '
14576
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14577
        :
14578
      else
14579
        can_build_shared=no
14580
      fi
14581
      ;;
14582
    esac
14583
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14584
    # soname into executable. Probably we can add versioning support to
14585
    # collect2, so additional links can be useful in future.
14586
    if test "$aix_use_runtimelinking" = yes; then
14587
      # If using run time linking (on AIX 4.2 or later) use lib.so
14588
      # instead of lib.a to let people know that these are not
14589
      # typical AIX shared libraries.
14590
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591
    else
14592
      # We preserve .a as extension for shared libraries through AIX4.2
14593
      # and later when we are not doing run time linking.
14594
      library_names_spec='${libname}${release}.a $libname.a'
14595
      soname_spec='${libname}${release}${shared_ext}$major'
14596
    fi
14597
    shlibpath_var=LIBPATH
14598
  fi
14599
  ;;
14600
 
14601
amigaos*)
14602
  library_names_spec='$libname.ixlibrary $libname.a'
14603
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14604
  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'
14605
  ;;
14606
 
14607
beos*)
14608
  library_names_spec='${libname}${shared_ext}'
14609
  dynamic_linker="$host_os ld.so"
14610
  shlibpath_var=LIBRARY_PATH
14611
  ;;
14612
 
14613
bsdi[45]*)
14614
  version_type=linux
14615
  need_version=no
14616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617
  soname_spec='${libname}${release}${shared_ext}$major'
14618
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14619
  shlibpath_var=LD_LIBRARY_PATH
14620
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14621
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14622
  # the default ld.so.conf also contains /usr/contrib/lib and
14623
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14624
  # libtool to hard-code these into programs
14625
  ;;
14626
 
14627
cygwin* | mingw* | pw32*)
14628
  version_type=windows
14629
  shrext_cmds=".dll"
14630
  need_version=no
14631
  need_lib_prefix=no
14632
 
14633
  case $GCC,$host_os in
14634
  yes,cygwin* | yes,mingw* | yes,pw32*)
14635
    library_names_spec='$libname.dll.a'
14636
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14637
    postinstall_cmds='base_file=`basename \${file}`~
14638
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14639
      dldir=$destdir/`dirname \$dlpath`~
14640
      test -d \$dldir || mkdir -p \$dldir~
14641
      $install_prog $dir/$dlname \$dldir/$dlname~
14642
      chmod a+x \$dldir/$dlname'
14643
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14644
      dlpath=$dir/\$dldll~
14645
       $rm \$dlpath'
14646
    shlibpath_overrides_runpath=yes
14647
 
14648
    case $host_os in
14649
    cygwin*)
14650
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14651
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14652
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14653
      ;;
14654
    mingw*)
14655
      # MinGW DLLs use traditional 'lib' prefix
14656
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14657
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14658
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14659
        # It is most probably a Windows format PATH printed by
14660
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14661
        # path with ; separators, and with drive letters. We can handle the
14662
        # drive letters (cygwin fileutils understands them), so leave them,
14663
        # especially as we might pass files found there to a mingw objdump,
14664
        # which wouldn't understand a cygwinified path. Ahh.
14665
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14666
      else
14667
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14668
      fi
14669
      ;;
14670
    pw32*)
14671
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14672
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14673
      ;;
14674
    esac
14675
    ;;
14676
 
14677
  *)
14678
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14679
    ;;
14680
  esac
14681
  dynamic_linker='Win32 ld.exe'
14682
  # FIXME: first we should search . and the directory the executable is in
14683
  shlibpath_var=PATH
14684
  ;;
14685
 
14686
darwin* | rhapsody*)
14687
  dynamic_linker="$host_os dyld"
14688
  version_type=darwin
14689
  need_lib_prefix=no
14690
  need_version=no
14691
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14692
  soname_spec='${libname}${release}${major}$shared_ext'
14693
  shlibpath_overrides_runpath=yes
14694
  shlibpath_var=DYLD_LIBRARY_PATH
14695
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14696
 
14697
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14698
  ;;
14699
 
14700
dgux*)
14701
  version_type=linux
14702
  need_lib_prefix=no
14703
  need_version=no
14704
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14705
  soname_spec='${libname}${release}${shared_ext}$major'
14706
  shlibpath_var=LD_LIBRARY_PATH
14707
  ;;
14708
 
14709
freebsd1*)
14710
  dynamic_linker=no
14711
  ;;
14712
 
14713
freebsd* | dragonfly*)
14714
  # DragonFly does not have aout.  When/if they implement a new
14715
  # versioning mechanism, adjust this.
14716
  if test -x /usr/bin/objformat; then
14717
    objformat=`/usr/bin/objformat`
14718
  else
14719
    case $host_os in
14720
    freebsd[123]*) objformat=aout ;;
14721
    *) objformat=elf ;;
14722
    esac
14723
  fi
14724
  version_type=freebsd-$objformat
14725
  case $version_type in
14726
    freebsd-elf*)
14727
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14728
      need_version=no
14729
      need_lib_prefix=no
14730
      ;;
14731
    freebsd-*)
14732
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14733
      need_version=yes
14734
      ;;
14735
  esac
14736
  shlibpath_var=LD_LIBRARY_PATH
14737
  case $host_os in
14738
  freebsd2*)
14739
    shlibpath_overrides_runpath=yes
14740
    ;;
14741
  freebsd3.[01]* | freebsdelf3.[01]*)
14742
    shlibpath_overrides_runpath=yes
14743
    hardcode_into_libs=yes
14744
    ;;
14745
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14746
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14747
    shlibpath_overrides_runpath=no
14748
    hardcode_into_libs=yes
14749
    ;;
14750
  *) # from 4.6 on, and DragonFly
14751
    shlibpath_overrides_runpath=yes
14752
    hardcode_into_libs=yes
14753
    ;;
14754
  esac
14755
  ;;
14756
 
14757
gnu*)
14758
  version_type=linux
14759
  need_lib_prefix=no
14760
  need_version=no
14761
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14762
  soname_spec='${libname}${release}${shared_ext}$major'
14763
  shlibpath_var=LD_LIBRARY_PATH
14764
  hardcode_into_libs=yes
14765
  ;;
14766
 
14767
hpux9* | hpux10* | hpux11*)
14768
  # Give a soname corresponding to the major version so that dld.sl refuses to
14769
  # link against other versions.
14770
  version_type=sunos
14771
  need_lib_prefix=no
14772
  need_version=no
14773
  case $host_cpu in
14774
  ia64*)
14775
    shrext_cmds='.so'
14776
    hardcode_into_libs=yes
14777
    dynamic_linker="$host_os dld.so"
14778
    shlibpath_var=LD_LIBRARY_PATH
14779
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14780
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781
    soname_spec='${libname}${release}${shared_ext}$major'
14782
    if test "X$HPUX_IA64_MODE" = X32; then
14783
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14784
    else
14785
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14786
    fi
14787
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14788
    ;;
14789
   hppa*64*)
14790
     shrext_cmds='.sl'
14791
     hardcode_into_libs=yes
14792
     dynamic_linker="$host_os dld.sl"
14793
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14794
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14795
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796
     soname_spec='${libname}${release}${shared_ext}$major'
14797
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14798
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14799
     ;;
14800
   *)
14801
    shrext_cmds='.sl'
14802
    dynamic_linker="$host_os dld.sl"
14803
    shlibpath_var=SHLIB_PATH
14804
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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
    ;;
14808
  esac
14809
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14810
  postinstall_cmds='chmod 555 $lib'
14811
  ;;
14812
 
14813
interix[3-9]*)
14814
  version_type=linux
14815
  need_lib_prefix=no
14816
  need_version=no
14817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14818
  soname_spec='${libname}${release}${shared_ext}$major'
14819
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14820
  shlibpath_var=LD_LIBRARY_PATH
14821
  shlibpath_overrides_runpath=no
14822
  hardcode_into_libs=yes
14823
  ;;
14824
 
14825
irix5* | irix6* | nonstopux*)
14826
  case $host_os in
14827
    nonstopux*) version_type=nonstopux ;;
14828
    *)
14829
        if test "$lt_cv_prog_gnu_ld" = yes; then
14830
                version_type=linux
14831
        else
14832
                version_type=irix
14833
        fi ;;
14834
  esac
14835
  need_lib_prefix=no
14836
  need_version=no
14837
  soname_spec='${libname}${release}${shared_ext}$major'
14838
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14839
  case $host_os in
14840
  irix5* | nonstopux*)
14841
    libsuff= shlibsuff=
14842
    ;;
14843
  *)
14844
    case $LD in # libtool.m4 will add one of these switches to LD
14845
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14846
      libsuff= shlibsuff= libmagic=32-bit;;
14847
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14848
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14849
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14850
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14851
    *) libsuff= shlibsuff= libmagic=never-match;;
14852
    esac
14853
    ;;
14854
  esac
14855
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14856
  shlibpath_overrides_runpath=no
14857
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14858
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14859
  hardcode_into_libs=yes
14860
  ;;
14861
 
14862
# No shared lib support for Linux oldld, aout, or coff.
14863
linux*oldld* | linux*aout* | linux*coff*)
14864
  dynamic_linker=no
14865
  ;;
14866
 
14867
# This must be Linux ELF.
14868
linux* | k*bsd*-gnu)
14869
  version_type=linux
14870
  need_lib_prefix=no
14871
  need_version=no
14872
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873
  soname_spec='${libname}${release}${shared_ext}$major'
14874
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14875
  shlibpath_var=LD_LIBRARY_PATH
14876
  shlibpath_overrides_runpath=no
14877
  # This implies no fast_install, which is unacceptable.
14878
  # Some rework will be needed to allow for fast_install
14879
  # before this can be enabled.
14880
  hardcode_into_libs=yes
14881
 
14882
  # Append ld.so.conf contents to the search path
14883
  if test -f /etc/ld.so.conf; then
14884
    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' ' '`
14885 60 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14886 19 jeremybenn
  fi
14887
 
14888
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14889
  # powerpc, because MkLinux only supported shared libraries with the
14890
  # GNU dynamic linker.  Since this was broken with cross compilers,
14891
  # most powerpc-linux boxes support dynamic linking these days and
14892
  # people can always --disable-shared, the test was removed, and we
14893
  # assume the GNU/Linux dynamic linker is in use.
14894
  dynamic_linker='GNU/Linux ld.so'
14895
  ;;
14896
 
14897
netbsd*)
14898
  version_type=sunos
14899
  need_lib_prefix=no
14900
  need_version=no
14901
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14902
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14903
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14904
    dynamic_linker='NetBSD (a.out) ld.so'
14905
  else
14906
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14907
    soname_spec='${libname}${release}${shared_ext}$major'
14908
    dynamic_linker='NetBSD ld.elf_so'
14909
  fi
14910
  shlibpath_var=LD_LIBRARY_PATH
14911
  shlibpath_overrides_runpath=yes
14912
  hardcode_into_libs=yes
14913
  ;;
14914
 
14915
newsos6)
14916
  version_type=linux
14917
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918
  shlibpath_var=LD_LIBRARY_PATH
14919
  shlibpath_overrides_runpath=yes
14920
  ;;
14921
 
14922
nto-qnx*)
14923
  version_type=linux
14924
  need_lib_prefix=no
14925
  need_version=no
14926
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927
  soname_spec='${libname}${release}${shared_ext}$major'
14928
  shlibpath_var=LD_LIBRARY_PATH
14929
  shlibpath_overrides_runpath=yes
14930
  ;;
14931
 
14932
openbsd*)
14933
  version_type=sunos
14934
  sys_lib_dlsearch_path_spec="/usr/lib"
14935
  need_lib_prefix=no
14936
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14937
  case $host_os in
14938
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14939
    *)                         need_version=no  ;;
14940
  esac
14941
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14942
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14943
  shlibpath_var=LD_LIBRARY_PATH
14944
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14945
    case $host_os in
14946
      openbsd2.[89] | openbsd2.[89].*)
14947
        shlibpath_overrides_runpath=no
14948
        ;;
14949
      *)
14950
        shlibpath_overrides_runpath=yes
14951
        ;;
14952
      esac
14953
  else
14954
    shlibpath_overrides_runpath=yes
14955
  fi
14956
  ;;
14957
 
14958
os2*)
14959
  libname_spec='$name'
14960
  shrext_cmds=".dll"
14961
  need_lib_prefix=no
14962
  library_names_spec='$libname${shared_ext} $libname.a'
14963
  dynamic_linker='OS/2 ld.exe'
14964
  shlibpath_var=LIBPATH
14965
  ;;
14966
 
14967
osf3* | osf4* | osf5*)
14968
  version_type=osf
14969
  need_lib_prefix=no
14970
  need_version=no
14971
  soname_spec='${libname}${release}${shared_ext}$major'
14972
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973
  shlibpath_var=LD_LIBRARY_PATH
14974
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14975
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14976
  ;;
14977
 
14978
rdos*)
14979
  dynamic_linker=no
14980
  ;;
14981
 
14982
solaris*)
14983
  version_type=linux
14984
  need_lib_prefix=no
14985
  need_version=no
14986
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987
  soname_spec='${libname}${release}${shared_ext}$major'
14988
  shlibpath_var=LD_LIBRARY_PATH
14989
  shlibpath_overrides_runpath=yes
14990
  hardcode_into_libs=yes
14991
  # ldd complains unless libraries are executable
14992
  postinstall_cmds='chmod +x $lib'
14993
  ;;
14994
 
14995
sunos4*)
14996
  version_type=sunos
14997
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14998
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14999
  shlibpath_var=LD_LIBRARY_PATH
15000
  shlibpath_overrides_runpath=yes
15001
  if test "$with_gnu_ld" = yes; then
15002
    need_lib_prefix=no
15003
  fi
15004
  need_version=yes
15005
  ;;
15006
 
15007
sysv4 | sysv4.3*)
15008
  version_type=linux
15009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010
  soname_spec='${libname}${release}${shared_ext}$major'
15011
  shlibpath_var=LD_LIBRARY_PATH
15012
  case $host_vendor in
15013
    sni)
15014
      shlibpath_overrides_runpath=no
15015
      need_lib_prefix=no
15016
      export_dynamic_flag_spec='${wl}-Blargedynsym'
15017
      runpath_var=LD_RUN_PATH
15018
      ;;
15019
    siemens)
15020
      need_lib_prefix=no
15021
      ;;
15022
    motorola)
15023
      need_lib_prefix=no
15024
      need_version=no
15025
      shlibpath_overrides_runpath=no
15026
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15027
      ;;
15028
  esac
15029
  ;;
15030
 
15031
sysv4*MP*)
15032
  if test -d /usr/nec ;then
15033
    version_type=linux
15034
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15035
    soname_spec='$libname${shared_ext}.$major'
15036
    shlibpath_var=LD_LIBRARY_PATH
15037
  fi
15038
  ;;
15039
 
15040
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15041
  version_type=freebsd-elf
15042
  need_lib_prefix=no
15043
  need_version=no
15044
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15045
  soname_spec='${libname}${release}${shared_ext}$major'
15046
  shlibpath_var=LD_LIBRARY_PATH
15047
  hardcode_into_libs=yes
15048
  if test "$with_gnu_ld" = yes; then
15049
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15050
    shlibpath_overrides_runpath=no
15051
  else
15052
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15053
    shlibpath_overrides_runpath=yes
15054
    case $host_os in
15055
      sco3.2v5*)
15056
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15057
        ;;
15058
    esac
15059
  fi
15060
  sys_lib_dlsearch_path_spec='/usr/lib'
15061
  ;;
15062
 
15063
uts4*)
15064
  version_type=linux
15065
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15066
  soname_spec='${libname}${release}${shared_ext}$major'
15067
  shlibpath_var=LD_LIBRARY_PATH
15068
  ;;
15069
 
15070
*)
15071
  dynamic_linker=no
15072
  ;;
15073
esac
15074
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15075
echo "${ECHO_T}$dynamic_linker" >&6; }
15076
test "$dynamic_linker" = no && can_build_shared=no
15077
 
15078
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15079
if test "$GCC" = yes; then
15080
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15081
fi
15082
 
15083
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15084
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15085
hardcode_action_F77=
15086
if test -n "$hardcode_libdir_flag_spec_F77" || \
15087
   test -n "$runpath_var_F77" || \
15088
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15089
 
15090
  # We can hardcode non-existant directories.
15091
  if test "$hardcode_direct_F77" != no &&
15092
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15093
     # have to relink, otherwise we might link with an installed library
15094
     # when we should be linking with a yet-to-be-installed one
15095
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15096
     test "$hardcode_minus_L_F77" != no; then
15097
    # Linking always hardcodes the temporary library directory.
15098
    hardcode_action_F77=relink
15099
  else
15100
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15101
    hardcode_action_F77=immediate
15102
  fi
15103
else
15104
  # We cannot hardcode anything, or else we can only hardcode existing
15105
  # directories.
15106
  hardcode_action_F77=unsupported
15107
fi
15108
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15109
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15110
 
15111
if test "$hardcode_action_F77" = relink; then
15112
  # Fast installation is not supported
15113
  enable_fast_install=no
15114
elif test "$shlibpath_overrides_runpath" = yes ||
15115
     test "$enable_shared" = no; then
15116
  # Fast installation is not necessary
15117
  enable_fast_install=needless
15118
fi
15119
 
15120
 
15121
# The else clause should only fire when bootstrapping the
15122
# libtool distribution, otherwise you forgot to ship ltmain.sh
15123
# with your package, and you will get complaints that there are
15124
# no rules to generate ltmain.sh.
15125
if test -f "$ltmain"; then
15126
  # See if we are running on zsh, and set the options which allow our commands through
15127
  # without removal of \ escapes.
15128
  if test -n "${ZSH_VERSION+set}" ; then
15129
    setopt NO_GLOB_SUBST
15130
  fi
15131
  # Now quote all the things that may contain metacharacters while being
15132
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15133
  # variables and quote the copies for generation of the libtool script.
15134
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15135
    SED SHELL STRIP \
15136
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15137
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15138
    deplibs_check_method reload_flag reload_cmds need_locks \
15139
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15140
    lt_cv_sys_global_symbol_to_c_name_address \
15141
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15142
    old_postinstall_cmds old_postuninstall_cmds \
15143
    compiler_F77 \
15144
    CC_F77 \
15145
    LD_F77 \
15146
    lt_prog_compiler_wl_F77 \
15147
    lt_prog_compiler_pic_F77 \
15148
    lt_prog_compiler_static_F77 \
15149
    lt_prog_compiler_no_builtin_flag_F77 \
15150
    export_dynamic_flag_spec_F77 \
15151
    thread_safe_flag_spec_F77 \
15152
    whole_archive_flag_spec_F77 \
15153
    enable_shared_with_static_runtimes_F77 \
15154
    old_archive_cmds_F77 \
15155
    old_archive_from_new_cmds_F77 \
15156
    predep_objects_F77 \
15157
    postdep_objects_F77 \
15158
    predeps_F77 \
15159
    postdeps_F77 \
15160
    compiler_lib_search_path_F77 \
15161
    archive_cmds_F77 \
15162
    archive_expsym_cmds_F77 \
15163
    postinstall_cmds_F77 \
15164
    postuninstall_cmds_F77 \
15165
    old_archive_from_expsyms_cmds_F77 \
15166
    allow_undefined_flag_F77 \
15167
    no_undefined_flag_F77 \
15168
    export_symbols_cmds_F77 \
15169
    hardcode_libdir_flag_spec_F77 \
15170
    hardcode_libdir_flag_spec_ld_F77 \
15171
    hardcode_libdir_separator_F77 \
15172
    hardcode_automatic_F77 \
15173
    module_cmds_F77 \
15174
    module_expsym_cmds_F77 \
15175
    lt_cv_prog_compiler_c_o_F77 \
15176
    fix_srcfile_path_F77 \
15177
    exclude_expsyms_F77 \
15178
    include_expsyms_F77; do
15179
 
15180
    case $var in
15181
    old_archive_cmds_F77 | \
15182
    old_archive_from_new_cmds_F77 | \
15183
    archive_cmds_F77 | \
15184
    archive_expsym_cmds_F77 | \
15185
    module_cmds_F77 | \
15186
    module_expsym_cmds_F77 | \
15187
    old_archive_from_expsyms_cmds_F77 | \
15188
    export_symbols_cmds_F77 | \
15189
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15190
    postinstall_cmds | postuninstall_cmds | \
15191
    old_postinstall_cmds | old_postuninstall_cmds | \
15192
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15193
      # Double-quote double-evaled strings.
15194
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15195
      ;;
15196
    *)
15197
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15198
      ;;
15199
    esac
15200
  done
15201
 
15202
  case $lt_echo in
15203
  *'\$0 --fallback-echo"')
15204
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15205
    ;;
15206
  esac
15207
 
15208
cfgfile="$ofile"
15209
 
15210
  cat <<__EOF__ >> "$cfgfile"
15211
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15212
 
15213
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15214
 
15215
# Shell to use when invoking shell scripts.
15216
SHELL=$lt_SHELL
15217
 
15218
# Whether or not to build shared libraries.
15219
build_libtool_libs=$enable_shared
15220
 
15221
# Whether or not to build static libraries.
15222
build_old_libs=$enable_static
15223
 
15224
# Whether or not to add -lc for building shared libraries.
15225
build_libtool_need_lc=$archive_cmds_need_lc_F77
15226
 
15227
# Whether or not to disallow shared libs when runtime libs are static
15228
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15229
 
15230
# Whether or not to optimize for fast installation.
15231
fast_install=$enable_fast_install
15232
 
15233
# The host system.
15234
host_alias=$host_alias
15235
host=$host
15236
host_os=$host_os
15237
 
15238
# The build system.
15239
build_alias=$build_alias
15240
build=$build
15241
build_os=$build_os
15242
 
15243
# An echo program that does not interpret backslashes.
15244
echo=$lt_echo
15245
 
15246
# The archiver.
15247
AR=$lt_AR
15248
AR_FLAGS=$lt_AR_FLAGS
15249
 
15250
# A C compiler.
15251
LTCC=$lt_LTCC
15252
 
15253
# LTCC compiler flags.
15254
LTCFLAGS=$lt_LTCFLAGS
15255
 
15256
# A language-specific compiler.
15257
CC=$lt_compiler_F77
15258
 
15259
# Is the compiler the GNU C compiler?
15260
with_gcc=$GCC_F77
15261
 
15262
# An ERE matcher.
15263
EGREP=$lt_EGREP
15264
 
15265
# The linker used to build libraries.
15266
LD=$lt_LD_F77
15267
 
15268
# Whether we need hard or soft links.
15269
LN_S=$lt_LN_S
15270
 
15271
# A BSD-compatible nm program.
15272
NM=$lt_NM
15273
 
15274
# A symbol stripping program
15275
STRIP=$lt_STRIP
15276
 
15277
# Used to examine libraries when file_magic_cmd begins "file"
15278
MAGIC_CMD=$MAGIC_CMD
15279
 
15280
# Used on cygwin: DLL creation program.
15281
DLLTOOL="$DLLTOOL"
15282
 
15283
# Used on cygwin: object dumper.
15284
OBJDUMP="$OBJDUMP"
15285
 
15286
# Used on cygwin: assembler.
15287
AS="$AS"
15288
 
15289
# The name of the directory that contains temporary libtool files.
15290
objdir=$objdir
15291
 
15292
# How to create reloadable object files.
15293
reload_flag=$lt_reload_flag
15294
reload_cmds=$lt_reload_cmds
15295
 
15296
# How to pass a linker flag through the compiler.
15297
wl=$lt_lt_prog_compiler_wl_F77
15298
 
15299
# Object file suffix (normally "o").
15300
objext="$ac_objext"
15301
 
15302
# Old archive suffix (normally "a").
15303
libext="$libext"
15304
 
15305
# Shared library suffix (normally ".so").
15306
shrext_cmds='$shrext_cmds'
15307
 
15308
# Executable file suffix (normally "").
15309
exeext="$exeext"
15310
 
15311
# Additional compiler flags for building library objects.
15312
pic_flag=$lt_lt_prog_compiler_pic_F77
15313
pic_mode=$pic_mode
15314
 
15315
# What is the maximum length of a command?
15316
max_cmd_len=$lt_cv_sys_max_cmd_len
15317
 
15318
# Does compiler simultaneously support -c and -o options?
15319
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15320
 
15321
# Must we lock files when doing compilation?
15322
need_locks=$lt_need_locks
15323
 
15324
# Do we need the lib prefix for modules?
15325
need_lib_prefix=$need_lib_prefix
15326
 
15327
# Do we need a version for libraries?
15328
need_version=$need_version
15329
 
15330
# Whether dlopen is supported.
15331
dlopen_support=$enable_dlopen
15332
 
15333
# Whether dlopen of programs is supported.
15334
dlopen_self=$enable_dlopen_self
15335
 
15336
# Whether dlopen of statically linked programs is supported.
15337
dlopen_self_static=$enable_dlopen_self_static
15338
 
15339
# Compiler flag to prevent dynamic linking.
15340
link_static_flag=$lt_lt_prog_compiler_static_F77
15341
 
15342
# Compiler flag to turn off builtin functions.
15343
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15344
 
15345
# Compiler flag to allow reflexive dlopens.
15346
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15347
 
15348
# Compiler flag to generate shared objects directly from archives.
15349
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15350
 
15351
# Compiler flag to generate thread-safe objects.
15352
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15353
 
15354
# Library versioning type.
15355
version_type=$version_type
15356
 
15357
# Format of library name prefix.
15358
libname_spec=$lt_libname_spec
15359
 
15360
# List of archive names.  First name is the real one, the rest are links.
15361
# The last name is the one that the linker finds with -lNAME.
15362
library_names_spec=$lt_library_names_spec
15363
 
15364
# The coded name of the library, if different from the real name.
15365
soname_spec=$lt_soname_spec
15366
 
15367
# Commands used to build and install an old-style archive.
15368
RANLIB=$lt_RANLIB
15369
old_archive_cmds=$lt_old_archive_cmds_F77
15370
old_postinstall_cmds=$lt_old_postinstall_cmds
15371
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15372
 
15373
# Create an old-style archive from a shared archive.
15374
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15375
 
15376
# Create a temporary old-style archive to link instead of a shared archive.
15377
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15378
 
15379
# Commands used to build and install a shared archive.
15380
archive_cmds=$lt_archive_cmds_F77
15381
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15382
postinstall_cmds=$lt_postinstall_cmds
15383
postuninstall_cmds=$lt_postuninstall_cmds
15384
 
15385
# Commands used to build a loadable module (assumed same as above if empty)
15386
module_cmds=$lt_module_cmds_F77
15387
module_expsym_cmds=$lt_module_expsym_cmds_F77
15388
 
15389
# Commands to strip libraries.
15390
old_striplib=$lt_old_striplib
15391
striplib=$lt_striplib
15392
 
15393
# Dependencies to place before the objects being linked to create a
15394
# shared library.
15395
predep_objects=$lt_predep_objects_F77
15396
 
15397
# Dependencies to place after the objects being linked to create a
15398
# shared library.
15399
postdep_objects=$lt_postdep_objects_F77
15400
 
15401
# Dependencies to place before the objects being linked to create a
15402
# shared library.
15403
predeps=$lt_predeps_F77
15404
 
15405
# Dependencies to place after the objects being linked to create a
15406
# shared library.
15407
postdeps=$lt_postdeps_F77
15408
 
15409
# The library search path used internally by the compiler when linking
15410
# a shared library.
15411
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15412
 
15413
# Method to check whether dependent libraries are shared objects.
15414
deplibs_check_method=$lt_deplibs_check_method
15415
 
15416
# Command to use when deplibs_check_method == file_magic.
15417
file_magic_cmd=$lt_file_magic_cmd
15418
 
15419
# Flag that allows shared libraries with undefined symbols to be built.
15420
allow_undefined_flag=$lt_allow_undefined_flag_F77
15421
 
15422
# Flag that forces no undefined symbols.
15423
no_undefined_flag=$lt_no_undefined_flag_F77
15424
 
15425
# Commands used to finish a libtool library installation in a directory.
15426
finish_cmds=$lt_finish_cmds
15427
 
15428
# Same as above, but a single script fragment to be evaled but not shown.
15429
finish_eval=$lt_finish_eval
15430
 
15431
# Take the output of nm and produce a listing of raw symbols and C names.
15432
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15433
 
15434
# Transform the output of nm in a proper C declaration
15435
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15436
 
15437
# Transform the output of nm in a C name address pair
15438
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15439
 
15440
# This is the shared library runtime path variable.
15441
runpath_var=$runpath_var
15442
 
15443
# This is the shared library path variable.
15444
shlibpath_var=$shlibpath_var
15445
 
15446
# Is shlibpath searched before the hard-coded library search path?
15447
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15448
 
15449
# How to hardcode a shared library path into an executable.
15450
hardcode_action=$hardcode_action_F77
15451
 
15452
# Whether we should hardcode library paths into libraries.
15453
hardcode_into_libs=$hardcode_into_libs
15454
 
15455
# Flag to hardcode \$libdir into a binary during linking.
15456
# This must work even if \$libdir does not exist.
15457
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15458
 
15459
# If ld is used when linking, flag to hardcode \$libdir into
15460
# a binary during linking. This must work even if \$libdir does
15461
# not exist.
15462
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15463
 
15464
# Whether we need a single -rpath flag with a separated argument.
15465
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15466
 
15467
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15468
# resulting binary.
15469
hardcode_direct=$hardcode_direct_F77
15470
 
15471
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15472
# resulting binary.
15473
hardcode_minus_L=$hardcode_minus_L_F77
15474
 
15475
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15476
# the resulting binary.
15477
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15478
 
15479
# Set to yes if building a shared library automatically hardcodes DIR into the library
15480
# and all subsequent libraries and executables linked against it.
15481
hardcode_automatic=$hardcode_automatic_F77
15482
 
15483
# Variables whose values should be saved in libtool wrapper scripts and
15484
# restored at relink time.
15485
variables_saved_for_relink="$variables_saved_for_relink"
15486
 
15487
# Whether libtool must link a program against all its dependency libraries.
15488
link_all_deplibs=$link_all_deplibs_F77
15489
 
15490
# Compile-time system search path for libraries
15491
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15492
 
15493
# Run-time system search path for libraries
15494
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15495
 
15496
# Fix the shell variable \$srcfile for the compiler.
15497
fix_srcfile_path=$lt_fix_srcfile_path
15498
 
15499
# Set to yes if exported symbols are required.
15500
always_export_symbols=$always_export_symbols_F77
15501
 
15502
# The commands to list exported symbols.
15503
export_symbols_cmds=$lt_export_symbols_cmds_F77
15504
 
15505
# The commands to extract the exported symbol list from a shared archive.
15506
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15507
 
15508
# Symbols that should not be listed in the preloaded symbols.
15509
exclude_expsyms=$lt_exclude_expsyms_F77
15510
 
15511
# Symbols that must always be exported.
15512
include_expsyms=$lt_include_expsyms_F77
15513
 
15514
# ### END LIBTOOL TAG CONFIG: $tagname
15515
 
15516
__EOF__
15517
 
15518
 
15519
else
15520
  # If there is no Makefile yet, we rely on a make rule to execute
15521
  # `config.status --recheck' to rerun these tests and create the
15522
  # libtool script then.
15523
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15524
  if test -f "$ltmain_in"; then
15525
    test -f Makefile && make "$ltmain"
15526
  fi
15527
fi
15528
 
15529
 
15530
ac_ext=c
15531
ac_cpp='$CPP $CPPFLAGS'
15532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15535
 
15536
CC="$lt_save_CC"
15537
 
15538
        else
15539
          tagname=""
15540
        fi
15541
        ;;
15542
 
15543
      GCJ)
15544
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15545
 
15546
 
15547
# Source file extension for Java test sources.
15548
ac_ext=java
15549
 
15550
# Object file extension for compiled Java test sources.
15551
objext=o
15552
objext_GCJ=$objext
15553
 
15554
# Code to be used in simple compile tests
15555
lt_simple_compile_test_code="class foo {}"
15556
 
15557
# Code to be used in simple link tests
15558
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15559
 
15560
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15561
 
15562
# If no C compiler was specified, use CC.
15563
LTCC=${LTCC-"$CC"}
15564
 
15565
# If no C compiler flags were specified, use CFLAGS.
15566
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15567
 
15568
# Allow CC to be a program name with arguments.
15569
compiler=$CC
15570
 
15571
 
15572
# save warnings/boilerplate of simple test code
15573
ac_outfile=conftest.$ac_objext
15574
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15575
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15576
_lt_compiler_boilerplate=`cat conftest.err`
15577
$rm conftest*
15578
 
15579
ac_outfile=conftest.$ac_objext
15580
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15581
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15582
_lt_linker_boilerplate=`cat conftest.err`
15583
$rm conftest*
15584
 
15585
 
15586
# Allow CC to be a program name with arguments.
15587
lt_save_CC="$CC"
15588
CC=${GCJ-"gcj"}
15589
compiler=$CC
15590
compiler_GCJ=$CC
15591
for cc_temp in $compiler""; do
15592
  case $cc_temp in
15593
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15594
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15595
    \-*) ;;
15596
    *) break;;
15597
  esac
15598
done
15599
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15600
 
15601
 
15602
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15603
archive_cmds_need_lc_GCJ=no
15604
 
15605
old_archive_cmds_GCJ=$old_archive_cmds
15606
 
15607
## CAVEAT EMPTOR:
15608
## There is no encapsulation within the following macros, do not change
15609
## the running order or otherwise move them around unless you know exactly
15610
## what you are doing...
15611
 
15612
lt_prog_compiler_no_builtin_flag_GCJ=
15613
 
15614
if test "$GCC" = yes; then
15615
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15616
 
15617
 
15618
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15619
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15620
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15621
  echo $ECHO_N "(cached) $ECHO_C" >&6
15622
else
15623
  lt_cv_prog_compiler_rtti_exceptions=no
15624
  ac_outfile=conftest.$ac_objext
15625
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15626
   lt_compiler_flag="-fno-rtti -fno-exceptions"
15627
   # Insert the option either (1) after the last *FLAGS variable, or
15628
   # (2) before a word containing "conftest.", or (3) at the end.
15629
   # Note that $ac_compile itself does not contain backslashes and begins
15630
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15631
   # The option is referenced via a variable to avoid confusing sed.
15632
   lt_compile=`echo "$ac_compile" | $SED \
15633
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15634
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15635
   -e 's:$: $lt_compiler_flag:'`
15636
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15637
   (eval "$lt_compile" 2>conftest.err)
15638
   ac_status=$?
15639
   cat conftest.err >&5
15640
   echo "$as_me:__oline__: \$? = $ac_status" >&5
15641
   if (exit $ac_status) && test -s "$ac_outfile"; then
15642
     # The compiler can only warn and ignore the option if not recognized
15643
     # So say no if there are warnings other than the usual output.
15644
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15645
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15646
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15647
       lt_cv_prog_compiler_rtti_exceptions=yes
15648
     fi
15649
   fi
15650
   $rm conftest*
15651
 
15652
fi
15653
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15654
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15655
 
15656
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15657
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15658
else
15659
    :
15660
fi
15661
 
15662
fi
15663
 
15664
lt_prog_compiler_wl_GCJ=
15665
lt_prog_compiler_pic_GCJ=
15666
lt_prog_compiler_static_GCJ=
15667
 
15668
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15669
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15670
 
15671
  if test "$GCC" = yes; then
15672
    lt_prog_compiler_wl_GCJ='-Wl,'
15673
    lt_prog_compiler_static_GCJ='-static'
15674
 
15675
    case $host_os in
15676
      aix*)
15677
      # All AIX code is PIC.
15678
      if test "$host_cpu" = ia64; then
15679
        # AIX 5 now supports IA64 processor
15680
        lt_prog_compiler_static_GCJ='-Bstatic'
15681
      fi
15682
      ;;
15683
 
15684
    amigaos*)
15685
      # FIXME: we need at least 68020 code to build shared libraries, but
15686
      # adding the `-m68020' flag to GCC prevents building anything better,
15687
      # like `-m68040'.
15688
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15689
      ;;
15690
 
15691
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15692
      # PIC is the default for these OSes.
15693
      ;;
15694
 
15695
    mingw* | cygwin* | pw32* | os2*)
15696
      # This hack is so that the source file can tell whether it is being
15697
      # built for inclusion in a dll (and should export symbols for example).
15698
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15699
      # (--disable-auto-import) libraries
15700
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15701
      ;;
15702
 
15703
    darwin* | rhapsody*)
15704
      # PIC is the default on this platform
15705
      # Common symbols not allowed in MH_DYLIB files
15706
      lt_prog_compiler_pic_GCJ='-fno-common'
15707
      ;;
15708
 
15709
    interix[3-9]*)
15710
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15711
      # Instead, we relocate shared libraries at runtime.
15712
      ;;
15713
 
15714
    msdosdjgpp*)
15715
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15716
      # on systems that don't support them.
15717
      lt_prog_compiler_can_build_shared_GCJ=no
15718
      enable_shared=no
15719
      ;;
15720
 
15721
    sysv4*MP*)
15722
      if test -d /usr/nec; then
15723
        lt_prog_compiler_pic_GCJ=-Kconform_pic
15724
      fi
15725
      ;;
15726
 
15727
    hpux*)
15728
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15729
      # not for PA HP-UX.
15730
      case $host_cpu in
15731
      hppa*64*|ia64*)
15732
        # +Z the default
15733
        ;;
15734
      *)
15735
        lt_prog_compiler_pic_GCJ='-fPIC'
15736
        ;;
15737
      esac
15738
      ;;
15739
 
15740
    *)
15741
      lt_prog_compiler_pic_GCJ='-fPIC'
15742
      ;;
15743
    esac
15744
  else
15745
    # PORTME Check for flag to pass linker flags through the system compiler.
15746
    case $host_os in
15747
    aix*)
15748
      lt_prog_compiler_wl_GCJ='-Wl,'
15749
      if test "$host_cpu" = ia64; then
15750
        # AIX 5 now supports IA64 processor
15751
        lt_prog_compiler_static_GCJ='-Bstatic'
15752
      else
15753
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15754
      fi
15755
      ;;
15756
      darwin*)
15757
        # PIC is the default on this platform
15758
        # Common symbols not allowed in MH_DYLIB files
15759
       case $cc_basename in
15760
         xlc*)
15761
         lt_prog_compiler_pic_GCJ='-qnocommon'
15762
         lt_prog_compiler_wl_GCJ='-Wl,'
15763
         ;;
15764
       esac
15765
       ;;
15766
 
15767
    mingw* | cygwin* | pw32* | os2*)
15768
      # This hack is so that the source file can tell whether it is being
15769
      # built for inclusion in a dll (and should export symbols for example).
15770
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15771
      ;;
15772
 
15773
    hpux9* | hpux10* | hpux11*)
15774
      lt_prog_compiler_wl_GCJ='-Wl,'
15775
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15776
      # not for PA HP-UX.
15777
      case $host_cpu in
15778
      hppa*64*|ia64*)
15779
        # +Z the default
15780
        ;;
15781
      *)
15782
        lt_prog_compiler_pic_GCJ='+Z'
15783
        ;;
15784
      esac
15785
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15786
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15787
      ;;
15788
 
15789
    irix5* | irix6* | nonstopux*)
15790
      lt_prog_compiler_wl_GCJ='-Wl,'
15791
      # PIC (with -KPIC) is the default.
15792
      lt_prog_compiler_static_GCJ='-non_shared'
15793
      ;;
15794
 
15795
    newsos6)
15796
      lt_prog_compiler_pic_GCJ='-KPIC'
15797
      lt_prog_compiler_static_GCJ='-Bstatic'
15798
      ;;
15799
 
15800
    linux* | k*bsd*-gnu)
15801
      case $cc_basename in
15802
      icc* | ecc*)
15803
        lt_prog_compiler_wl_GCJ='-Wl,'
15804
        lt_prog_compiler_pic_GCJ='-KPIC'
15805
        lt_prog_compiler_static_GCJ='-static'
15806
        ;;
15807
      pgcc* | pgf77* | pgf90* | pgf95*)
15808
        # Portland Group compilers (*not* the Pentium gcc compiler,
15809
        # which looks to be a dead project)
15810
        lt_prog_compiler_wl_GCJ='-Wl,'
15811
        lt_prog_compiler_pic_GCJ='-fpic'
15812
        lt_prog_compiler_static_GCJ='-Bstatic'
15813
        ;;
15814
      ccc*)
15815
        lt_prog_compiler_wl_GCJ='-Wl,'
15816
        # All Alpha code is PIC.
15817
        lt_prog_compiler_static_GCJ='-non_shared'
15818
        ;;
15819
      *)
15820
        case `$CC -V 2>&1 | sed 5q` in
15821
        *Sun\ C*)
15822
          # Sun C 5.9
15823
          lt_prog_compiler_pic_GCJ='-KPIC'
15824
          lt_prog_compiler_static_GCJ='-Bstatic'
15825
          lt_prog_compiler_wl_GCJ='-Wl,'
15826
          ;;
15827
        *Sun\ F*)
15828
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
15829
          lt_prog_compiler_pic_GCJ='-KPIC'
15830
          lt_prog_compiler_static_GCJ='-Bstatic'
15831
          lt_prog_compiler_wl_GCJ=''
15832
          ;;
15833
        esac
15834
        ;;
15835
      esac
15836
      ;;
15837
 
15838
    osf3* | osf4* | osf5*)
15839
      lt_prog_compiler_wl_GCJ='-Wl,'
15840
      # All OSF/1 code is PIC.
15841
      lt_prog_compiler_static_GCJ='-non_shared'
15842
      ;;
15843
 
15844
    rdos*)
15845
      lt_prog_compiler_static_GCJ='-non_shared'
15846
      ;;
15847
 
15848
    solaris*)
15849
      lt_prog_compiler_pic_GCJ='-KPIC'
15850
      lt_prog_compiler_static_GCJ='-Bstatic'
15851
      case $cc_basename in
15852
      f77* | f90* | f95*)
15853
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15854
      *)
15855
        lt_prog_compiler_wl_GCJ='-Wl,';;
15856
      esac
15857
      ;;
15858
 
15859
    sunos4*)
15860
      lt_prog_compiler_wl_GCJ='-Qoption ld '
15861
      lt_prog_compiler_pic_GCJ='-PIC'
15862
      lt_prog_compiler_static_GCJ='-Bstatic'
15863
      ;;
15864
 
15865
    sysv4 | sysv4.2uw2* | sysv4.3*)
15866
      lt_prog_compiler_wl_GCJ='-Wl,'
15867
      lt_prog_compiler_pic_GCJ='-KPIC'
15868
      lt_prog_compiler_static_GCJ='-Bstatic'
15869
      ;;
15870
 
15871
    sysv4*MP*)
15872
      if test -d /usr/nec ;then
15873
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
15874
        lt_prog_compiler_static_GCJ='-Bstatic'
15875
      fi
15876
      ;;
15877
 
15878
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15879
      lt_prog_compiler_wl_GCJ='-Wl,'
15880
      lt_prog_compiler_pic_GCJ='-KPIC'
15881
      lt_prog_compiler_static_GCJ='-Bstatic'
15882
      ;;
15883
 
15884
    unicos*)
15885
      lt_prog_compiler_wl_GCJ='-Wl,'
15886
      lt_prog_compiler_can_build_shared_GCJ=no
15887
      ;;
15888
 
15889
    uts4*)
15890
      lt_prog_compiler_pic_GCJ='-pic'
15891
      lt_prog_compiler_static_GCJ='-Bstatic'
15892
      ;;
15893
 
15894
    *)
15895
      lt_prog_compiler_can_build_shared_GCJ=no
15896
      ;;
15897
    esac
15898
  fi
15899
 
15900
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15901
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15902
 
15903
#
15904
# Check to make sure the PIC flag actually works.
15905
#
15906
if test -n "$lt_prog_compiler_pic_GCJ"; then
15907
 
15908
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15909
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15910
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15911
  echo $ECHO_N "(cached) $ECHO_C" >&6
15912
else
15913
  lt_prog_compiler_pic_works_GCJ=no
15914
  ac_outfile=conftest.$ac_objext
15915
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15916
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15917
   # Insert the option either (1) after the last *FLAGS variable, or
15918
   # (2) before a word containing "conftest.", or (3) at the end.
15919
   # Note that $ac_compile itself does not contain backslashes and begins
15920
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15921
   # The option is referenced via a variable to avoid confusing sed.
15922
   lt_compile=`echo "$ac_compile" | $SED \
15923
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15924
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15925
   -e 's:$: $lt_compiler_flag:'`
15926
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15927
   (eval "$lt_compile" 2>conftest.err)
15928
   ac_status=$?
15929
   cat conftest.err >&5
15930
   echo "$as_me:__oline__: \$? = $ac_status" >&5
15931
   if (exit $ac_status) && test -s "$ac_outfile"; then
15932
     # The compiler can only warn and ignore the option if not recognized
15933
     # So say no if there are warnings other than the usual output.
15934
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15935
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15936
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15937
       lt_prog_compiler_pic_works_GCJ=yes
15938
     fi
15939
   fi
15940
   $rm conftest*
15941
 
15942
fi
15943
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15944
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15945
 
15946
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15947
    case $lt_prog_compiler_pic_GCJ in
15948
     "" | " "*) ;;
15949
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15950
     esac
15951
else
15952
    lt_prog_compiler_pic_GCJ=
15953
     lt_prog_compiler_can_build_shared_GCJ=no
15954
fi
15955
 
15956
fi
15957
case $host_os in
15958
  # For platforms which do not support PIC, -DPIC is meaningless:
15959
  *djgpp*)
15960
    lt_prog_compiler_pic_GCJ=
15961
    ;;
15962
  *)
15963
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15964
    ;;
15965
esac
15966
 
15967
#
15968
# Check to make sure the static flag actually works.
15969
#
15970
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15971
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15972
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15973
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15974
  echo $ECHO_N "(cached) $ECHO_C" >&6
15975
else
15976
  lt_prog_compiler_static_works_GCJ=no
15977
   save_LDFLAGS="$LDFLAGS"
15978
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15979
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15980
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15981
     # The linker can only warn and ignore the option if not recognized
15982
     # So say no if there are warnings
15983
     if test -s conftest.err; then
15984
       # Append any errors to the config.log.
15985
       cat conftest.err 1>&5
15986
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15987
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15988
       if diff conftest.exp conftest.er2 >/dev/null; then
15989
         lt_prog_compiler_static_works_GCJ=yes
15990
       fi
15991
     else
15992
       lt_prog_compiler_static_works_GCJ=yes
15993
     fi
15994
   fi
15995
   $rm conftest*
15996
   LDFLAGS="$save_LDFLAGS"
15997
 
15998
fi
15999
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16000
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16001
 
16002
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16003
    :
16004
else
16005
    lt_prog_compiler_static_GCJ=
16006
fi
16007
 
16008
 
16009
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16010
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16011
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16012
  echo $ECHO_N "(cached) $ECHO_C" >&6
16013
else
16014
  lt_cv_prog_compiler_c_o_GCJ=no
16015
   $rm -r conftest 2>/dev/null
16016
   mkdir conftest
16017
   cd conftest
16018
   mkdir out
16019
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16020
 
16021
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16022
   # Insert the option either (1) after the last *FLAGS variable, or
16023
   # (2) before a word containing "conftest.", or (3) at the end.
16024
   # Note that $ac_compile itself does not contain backslashes and begins
16025
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16026
   lt_compile=`echo "$ac_compile" | $SED \
16027
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16028
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16029
   -e 's:$: $lt_compiler_flag:'`
16030
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16031
   (eval "$lt_compile" 2>out/conftest.err)
16032
   ac_status=$?
16033
   cat out/conftest.err >&5
16034
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16035
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16036
   then
16037
     # The compiler can only warn and ignore the option if not recognized
16038
     # So say no if there are warnings
16039
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16040
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16041
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16042
       lt_cv_prog_compiler_c_o_GCJ=yes
16043
     fi
16044
   fi
16045
   chmod u+w . 2>&5
16046
   $rm conftest*
16047
   # SGI C++ compiler will create directory out/ii_files/ for
16048
   # template instantiation
16049
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16050
   $rm out/* && rmdir out
16051
   cd ..
16052
   rmdir conftest
16053
   $rm conftest*
16054
 
16055
fi
16056
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16057
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16058
 
16059
 
16060
hard_links="nottested"
16061
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16062
  # do not overwrite the value of need_locks provided by the user
16063
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16064
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16065
  hard_links=yes
16066
  $rm conftest*
16067
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16068
  touch conftest.a
16069
  ln conftest.a conftest.b 2>&5 || hard_links=no
16070
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16071
  { echo "$as_me:$LINENO: result: $hard_links" >&5
16072
echo "${ECHO_T}$hard_links" >&6; }
16073
  if test "$hard_links" = no; then
16074
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16075
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16076
    need_locks=warn
16077
  fi
16078
else
16079
  need_locks=no
16080
fi
16081
 
16082
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16083
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16084
 
16085
  runpath_var=
16086
  allow_undefined_flag_GCJ=
16087
  enable_shared_with_static_runtimes_GCJ=no
16088
  archive_cmds_GCJ=
16089
  archive_expsym_cmds_GCJ=
16090
  old_archive_From_new_cmds_GCJ=
16091
  old_archive_from_expsyms_cmds_GCJ=
16092
  export_dynamic_flag_spec_GCJ=
16093
  whole_archive_flag_spec_GCJ=
16094
  thread_safe_flag_spec_GCJ=
16095
  hardcode_libdir_flag_spec_GCJ=
16096
  hardcode_libdir_flag_spec_ld_GCJ=
16097
  hardcode_libdir_separator_GCJ=
16098
  hardcode_direct_GCJ=no
16099
  hardcode_minus_L_GCJ=no
16100
  hardcode_shlibpath_var_GCJ=unsupported
16101
  link_all_deplibs_GCJ=unknown
16102
  hardcode_automatic_GCJ=no
16103
  module_cmds_GCJ=
16104
  module_expsym_cmds_GCJ=
16105
  always_export_symbols_GCJ=no
16106
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16107
  # include_expsyms should be a list of space-separated symbols to be *always*
16108
  # included in the symbol list
16109
  include_expsyms_GCJ=
16110
  # exclude_expsyms can be an extended regexp of symbols to exclude
16111
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16112
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16113
  # as well as any symbol that contains `d'.
16114
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16115
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16116
  # platforms (ab)use it in PIC code, but their linkers get confused if
16117
  # the symbol is explicitly referenced.  Since portable code cannot
16118
  # rely on this symbol name, it's probably fine to never include it in
16119
  # preloaded symbol tables.
16120
  extract_expsyms_cmds=
16121
  # Just being paranoid about ensuring that cc_basename is set.
16122
  for cc_temp in $compiler""; do
16123
  case $cc_temp in
16124
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16125
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16126
    \-*) ;;
16127
    *) break;;
16128
  esac
16129
done
16130
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16131
 
16132
  case $host_os in
16133
  cygwin* | mingw* | pw32*)
16134
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16135
    # When not using gcc, we currently assume that we are using
16136
    # Microsoft Visual C++.
16137
    if test "$GCC" != yes; then
16138
      with_gnu_ld=no
16139
    fi
16140
    ;;
16141
  interix*)
16142
    # we just hope/assume this is gcc and not c89 (= MSVC++)
16143
    with_gnu_ld=yes
16144
    ;;
16145
  openbsd*)
16146
    with_gnu_ld=no
16147
    ;;
16148
  esac
16149
 
16150
  ld_shlibs_GCJ=yes
16151
  if test "$with_gnu_ld" = yes; then
16152
    # If archive_cmds runs LD, not CC, wlarc should be empty
16153
    wlarc='${wl}'
16154
 
16155
    # Set some defaults for GNU ld with shared library support. These
16156
    # are reset later if shared libraries are not supported. Putting them
16157
    # here allows them to be overridden if necessary.
16158
    runpath_var=LD_RUN_PATH
16159
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16160
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16161
    # ancient GNU ld didn't support --whole-archive et. al.
16162
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16163
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16164
      else
16165
        whole_archive_flag_spec_GCJ=
16166
    fi
16167
    supports_anon_versioning=no
16168
    case `$LD -v 2>/dev/null` in
16169
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16170
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16171
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16172
      *\ 2.11.*) ;; # other 2.11 versions
16173
      *) supports_anon_versioning=yes ;;
16174
    esac
16175
 
16176
    # See if GNU ld supports shared libraries.
16177
    case $host_os in
16178
    aix3* | aix4* | aix5*)
16179
      # On AIX/PPC, the GNU linker is very broken
16180
      if test "$host_cpu" != ia64; then
16181
        ld_shlibs_GCJ=no
16182
        cat <&2
16183
 
16184
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16185
*** to be unable to reliably create shared libraries on AIX.
16186
*** Therefore, libtool is disabling shared libraries support.  If you
16187
*** really care for shared libraries, you may want to modify your PATH
16188
*** so that a non-GNU linker is found, and then restart.
16189
 
16190
EOF
16191
      fi
16192
      ;;
16193
 
16194
    amigaos*)
16195
      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)'
16196
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16197
      hardcode_minus_L_GCJ=yes
16198
 
16199
      # Samuel A. Falvo II  reports
16200
      # that the semantics of dynamic libraries on AmigaOS, at least up
16201
      # to version 4, is to share data among multiple programs linked
16202
      # with the same dynamic library.  Since this doesn't match the
16203
      # behavior of shared libraries on other platforms, we can't use
16204
      # them.
16205
      ld_shlibs_GCJ=no
16206
      ;;
16207
 
16208
    beos*)
16209
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16210
        allow_undefined_flag_GCJ=unsupported
16211
        # Joseph Beckenbach  says some releases of gcc
16212
        # support --undefined.  This deserves some investigation.  FIXME
16213
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16214
      else
16215
        ld_shlibs_GCJ=no
16216
      fi
16217
      ;;
16218
 
16219
    cygwin* | mingw* | pw32*)
16220
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16221
      # as there is no search path for DLLs.
16222
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16223
      allow_undefined_flag_GCJ=unsupported
16224
      always_export_symbols_GCJ=no
16225
      enable_shared_with_static_runtimes_GCJ=yes
16226
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16227
 
16228
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16229
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16230
        # If the export-symbols file already is a .def file (1st line
16231
        # is EXPORTS), use it as is; otherwise, prepend...
16232
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16233
          cp $export_symbols $output_objdir/$soname.def;
16234
        else
16235
          echo EXPORTS > $output_objdir/$soname.def;
16236
          cat $export_symbols >> $output_objdir/$soname.def;
16237
        fi~
16238
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16239
      else
16240
        ld_shlibs_GCJ=no
16241
      fi
16242
      ;;
16243
 
16244
    interix[3-9]*)
16245
      hardcode_direct_GCJ=no
16246
      hardcode_shlibpath_var_GCJ=no
16247
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16248
      export_dynamic_flag_spec_GCJ='${wl}-E'
16249
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16250
      # Instead, shared libraries are loaded at an image base (0x10000000 by
16251
      # default) and relocated if they conflict, which is a slow very memory
16252
      # consuming and fragmenting process.  To avoid this, we pick a random,
16253
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16254
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16255
      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'
16256
      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'
16257
      ;;
16258
 
16259
    gnu* | linux* | k*bsd*-gnu)
16260
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16261
        tmp_addflag=
16262
        case $cc_basename,$host_cpu in
16263
        pgcc*)                          # Portland Group C compiler
16264
          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'
16265
          tmp_addflag=' $pic_flag'
16266
          ;;
16267
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16268
          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'
16269
          tmp_addflag=' $pic_flag -Mnomain' ;;
16270
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16271
          tmp_addflag=' -i_dynamic' ;;
16272
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16273
          tmp_addflag=' -i_dynamic -nofor_main' ;;
16274
        ifc* | ifort*)                  # Intel Fortran compiler
16275
          tmp_addflag=' -nofor_main' ;;
16276
        esac
16277
        case `$CC -V 2>&1 | sed 5q` in
16278
        *Sun\ C*)                       # Sun C 5.9
16279
          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'
16280
          tmp_sharedflag='-G' ;;
16281
        *Sun\ F*)                       # Sun Fortran 8.3
16282
          tmp_sharedflag='-G' ;;
16283
        *)
16284
          tmp_sharedflag='-shared' ;;
16285
        esac
16286
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16287
 
16288
        if test $supports_anon_versioning = yes; then
16289
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16290
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16291
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16292
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16293
        fi
16294
      else
16295
        ld_shlibs_GCJ=no
16296
      fi
16297
      ;;
16298
 
16299
    netbsd*)
16300
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16301
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16302
        wlarc=
16303
      else
16304
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16305
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16306
      fi
16307
      ;;
16308
 
16309
    solaris*)
16310
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16311
        ld_shlibs_GCJ=no
16312
        cat <&2
16313
 
16314
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16315
*** create shared libraries on Solaris systems.  Therefore, libtool
16316
*** is disabling shared libraries support.  We urge you to upgrade GNU
16317
*** binutils to release 2.9.1 or newer.  Another option is to modify
16318
*** your PATH or compiler configuration so that the native linker is
16319
*** used, and then restart.
16320
 
16321
EOF
16322
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16323
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16324
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16325
      else
16326
        ld_shlibs_GCJ=no
16327
      fi
16328
      ;;
16329
 
16330
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16331
      case `$LD -v 2>&1` in
16332
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16333
        ld_shlibs_GCJ=no
16334
        cat <<_LT_EOF 1>&2
16335
 
16336
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16337
*** reliably create shared libraries on SCO systems.  Therefore, libtool
16338
*** is disabling shared libraries support.  We urge you to upgrade GNU
16339
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16340
*** your PATH or compiler configuration so that the native linker is
16341
*** used, and then restart.
16342
 
16343
_LT_EOF
16344
        ;;
16345
        *)
16346
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16347
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16348
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16349
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16350
          else
16351
            ld_shlibs_GCJ=no
16352
          fi
16353
        ;;
16354
      esac
16355
      ;;
16356
 
16357
    sunos4*)
16358
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16359
      wlarc=
16360
      hardcode_direct_GCJ=yes
16361
      hardcode_shlibpath_var_GCJ=no
16362
      ;;
16363
 
16364
    *)
16365
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16366
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16367
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16368
      else
16369
        ld_shlibs_GCJ=no
16370
      fi
16371
      ;;
16372
    esac
16373
 
16374
    if test "$ld_shlibs_GCJ" = no; then
16375
      runpath_var=
16376
      hardcode_libdir_flag_spec_GCJ=
16377
      export_dynamic_flag_spec_GCJ=
16378
      whole_archive_flag_spec_GCJ=
16379
    fi
16380
  else
16381
    # PORTME fill in a description of your system's linker (not GNU ld)
16382
    case $host_os in
16383
    aix3*)
16384
      allow_undefined_flag_GCJ=unsupported
16385
      always_export_symbols_GCJ=yes
16386
      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'
16387
      # Note: this linker hardcodes the directories in LIBPATH if there
16388
      # are no directories specified by -L.
16389
      hardcode_minus_L_GCJ=yes
16390
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16391
        # Neither direct hardcoding nor static linking is supported with a
16392
        # broken collect2.
16393
        hardcode_direct_GCJ=unsupported
16394
      fi
16395
      ;;
16396
 
16397
    aix4* | aix5*)
16398
      if test "$host_cpu" = ia64; then
16399
        # On IA64, the linker does run time linking by default, so we don't
16400
        # have to do anything special.
16401
        aix_use_runtimelinking=no
16402
        exp_sym_flag='-Bexport'
16403
        no_entry_flag=""
16404
      else
16405
        # If we're using GNU nm, then we don't want the "-C" option.
16406
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16407
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16408
          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'
16409
        else
16410
          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'
16411
        fi
16412
        aix_use_runtimelinking=no
16413
 
16414
        # Test if we are trying to use run time linking or normal
16415
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16416
        # need to do runtime linking.
16417
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16418
          for ld_flag in $LDFLAGS; do
16419
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16420
            aix_use_runtimelinking=yes
16421
            break
16422
          fi
16423
          done
16424
          ;;
16425
        esac
16426
 
16427
        exp_sym_flag='-bexport'
16428
        no_entry_flag='-bnoentry'
16429
      fi
16430
 
16431
      # When large executables or shared objects are built, AIX ld can
16432
      # have problems creating the table of contents.  If linking a library
16433
      # or program results in "error TOC overflow" add -mminimal-toc to
16434
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16435
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16436
 
16437
      archive_cmds_GCJ=''
16438
      hardcode_direct_GCJ=yes
16439
      hardcode_libdir_separator_GCJ=':'
16440
      link_all_deplibs_GCJ=yes
16441
 
16442
      if test "$GCC" = yes; then
16443
        case $host_os in aix4.[012]|aix4.[012].*)
16444
        # We only want to do this on AIX 4.2 and lower, the check
16445
        # below for broken collect2 doesn't work under 4.3+
16446
          collect2name=`${CC} -print-prog-name=collect2`
16447
          if test -f "$collect2name" && \
16448
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16449
          then
16450
          # We have reworked collect2
16451
          :
16452
          else
16453
          # We have old collect2
16454
          hardcode_direct_GCJ=unsupported
16455
          # It fails to find uninstalled libraries when the uninstalled
16456
          # path is not listed in the libpath.  Setting hardcode_minus_L
16457
          # to unsupported forces relinking
16458
          hardcode_minus_L_GCJ=yes
16459
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16460
          hardcode_libdir_separator_GCJ=
16461
          fi
16462
          ;;
16463
        esac
16464
        shared_flag='-shared'
16465
        if test "$aix_use_runtimelinking" = yes; then
16466
          shared_flag="$shared_flag "'${wl}-G'
16467
        fi
16468
      else
16469
        # not using gcc
16470
        if test "$host_cpu" = ia64; then
16471
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16472
        # chokes on -Wl,-G. The following line is correct:
16473
          shared_flag='-G'
16474
        else
16475
          if test "$aix_use_runtimelinking" = yes; then
16476
            shared_flag='${wl}-G'
16477
          else
16478
            shared_flag='${wl}-bM:SRE'
16479
          fi
16480
        fi
16481
      fi
16482
 
16483
      # It seems that -bexpall does not export symbols beginning with
16484
      # underscore (_), so it is better to generate a list of symbols to export.
16485
      always_export_symbols_GCJ=yes
16486
      if test "$aix_use_runtimelinking" = yes; then
16487
        # Warning - without using the other runtime loading flags (-brtl),
16488
        # -berok will link without error, but may produce a broken library.
16489
        allow_undefined_flag_GCJ='-berok'
16490
       # Determine the default libpath from the value encoded in an empty executable.
16491
       cat >conftest.$ac_ext <<_ACEOF
16492
/* confdefs.h.  */
16493
_ACEOF
16494
cat confdefs.h >>conftest.$ac_ext
16495
cat >>conftest.$ac_ext <<_ACEOF
16496
/* end confdefs.h.  */
16497
 
16498
int
16499
main ()
16500
{
16501
 
16502
  ;
16503
  return 0;
16504
}
16505
_ACEOF
16506
rm -f conftest.$ac_objext conftest$ac_exeext
16507
if { (ac_try="$ac_link"
16508
case "(($ac_try" in
16509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510
  *) ac_try_echo=$ac_try;;
16511
esac
16512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513
  (eval "$ac_link") 2>conftest.er1
16514
  ac_status=$?
16515
  grep -v '^ *+' conftest.er1 >conftest.err
16516
  rm -f conftest.er1
16517
  cat conftest.err >&5
16518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519
  (exit $ac_status); } && {
16520
         test -z "$ac_c_werror_flag" ||
16521
         test ! -s conftest.err
16522
       } && test -s conftest$ac_exeext &&
16523
       $as_test_x conftest$ac_exeext; then
16524
 
16525
lt_aix_libpath_sed='
16526
    /Import File Strings/,/^$/ {
16527
        /^0/ {
16528
            s/^0  *\(.*\)$/\1/
16529
            p
16530
        }
16531
    }'
16532
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16533
# Check for a 64-bit object if we didn't find anything.
16534
if test -z "$aix_libpath"; then
16535
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16536
fi
16537
else
16538
  echo "$as_me: failed program was:" >&5
16539
sed 's/^/| /' conftest.$ac_ext >&5
16540
 
16541
 
16542
fi
16543
 
16544
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16545
      conftest$ac_exeext conftest.$ac_ext
16546
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16547
 
16548
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16549
        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"
16550
       else
16551
        if test "$host_cpu" = ia64; then
16552
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16553
          allow_undefined_flag_GCJ="-z nodefs"
16554
          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"
16555
        else
16556
         # Determine the default libpath from the value encoded in an empty executable.
16557
         cat >conftest.$ac_ext <<_ACEOF
16558
/* confdefs.h.  */
16559
_ACEOF
16560
cat confdefs.h >>conftest.$ac_ext
16561
cat >>conftest.$ac_ext <<_ACEOF
16562
/* end confdefs.h.  */
16563
 
16564
int
16565
main ()
16566
{
16567
 
16568
  ;
16569
  return 0;
16570
}
16571
_ACEOF
16572
rm -f conftest.$ac_objext conftest$ac_exeext
16573
if { (ac_try="$ac_link"
16574
case "(($ac_try" in
16575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576
  *) ac_try_echo=$ac_try;;
16577
esac
16578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579
  (eval "$ac_link") 2>conftest.er1
16580
  ac_status=$?
16581
  grep -v '^ *+' conftest.er1 >conftest.err
16582
  rm -f conftest.er1
16583
  cat conftest.err >&5
16584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585
  (exit $ac_status); } && {
16586
         test -z "$ac_c_werror_flag" ||
16587
         test ! -s conftest.err
16588
       } && test -s conftest$ac_exeext &&
16589
       $as_test_x conftest$ac_exeext; then
16590
 
16591
lt_aix_libpath_sed='
16592
    /Import File Strings/,/^$/ {
16593
        /^0/ {
16594
            s/^0  *\(.*\)$/\1/
16595
            p
16596
        }
16597
    }'
16598
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16599
# Check for a 64-bit object if we didn't find anything.
16600
if test -z "$aix_libpath"; then
16601
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16602
fi
16603
else
16604
  echo "$as_me: failed program was:" >&5
16605
sed 's/^/| /' conftest.$ac_ext >&5
16606
 
16607
 
16608
fi
16609
 
16610
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16611
      conftest$ac_exeext conftest.$ac_ext
16612
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16613
 
16614
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16615
          # Warning - without using the other run time loading flags,
16616
          # -berok will link without error, but may produce a broken library.
16617
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16618
          allow_undefined_flag_GCJ=' ${wl}-berok'
16619
          # Exported symbols can be pulled into shared objects from archives
16620
          whole_archive_flag_spec_GCJ='$convenience'
16621
          archive_cmds_need_lc_GCJ=yes
16622
          # This is similar to how AIX traditionally builds its shared libraries.
16623
          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'
16624
        fi
16625
      fi
16626
      ;;
16627
 
16628
    amigaos*)
16629
      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)'
16630
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16631
      hardcode_minus_L_GCJ=yes
16632
      # see comment about different semantics on the GNU ld section
16633
      ld_shlibs_GCJ=no
16634
      ;;
16635
 
16636
    bsdi[45]*)
16637
      export_dynamic_flag_spec_GCJ=-rdynamic
16638
      ;;
16639
 
16640
    cygwin* | mingw* | pw32*)
16641
      # When not using gcc, we currently assume that we are using
16642
      # Microsoft Visual C++.
16643
      # hardcode_libdir_flag_spec is actually meaningless, as there is
16644
      # no search path for DLLs.
16645
      hardcode_libdir_flag_spec_GCJ=' '
16646
      allow_undefined_flag_GCJ=unsupported
16647
      # Tell ltmain to make .lib files, not .a files.
16648
      libext=lib
16649
      # Tell ltmain to make .dll files, not .so files.
16650
      shrext_cmds=".dll"
16651
      # FIXME: Setting linknames here is a bad hack.
16652
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16653
      # The linker will automatically build a .lib file if we build a DLL.
16654
      old_archive_From_new_cmds_GCJ='true'
16655
      # FIXME: Should let the user specify the lib program.
16656
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16657
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16658
      enable_shared_with_static_runtimes_GCJ=yes
16659
      ;;
16660
 
16661
    darwin* | rhapsody*)
16662
      case $host_os in
16663
        rhapsody* | darwin1.[012])
16664
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16665
         ;;
16666
       *) # Darwin 1.3 on
16667
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16668
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16669
         else
16670
           case ${MACOSX_DEPLOYMENT_TARGET} in
16671
             10.[012])
16672
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16673
               ;;
16674
             10.*)
16675
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16676
               ;;
16677
           esac
16678
         fi
16679
         ;;
16680
      esac
16681
      archive_cmds_need_lc_GCJ=no
16682
      hardcode_direct_GCJ=no
16683
      hardcode_automatic_GCJ=yes
16684
      hardcode_shlibpath_var_GCJ=unsupported
16685
      whole_archive_flag_spec_GCJ=''
16686
      link_all_deplibs_GCJ=yes
16687
    if test "$GCC" = yes ; then
16688
        output_verbose_link_cmd='echo'
16689
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16690
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16691
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16692
      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}'
16693
      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}'
16694
    else
16695
      case $cc_basename in
16696
        xlc*)
16697
         output_verbose_link_cmd='echo'
16698
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16699
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16700
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16701
         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}'
16702
          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}'
16703
          ;;
16704
       *)
16705
         ld_shlibs_GCJ=no
16706
          ;;
16707
      esac
16708
    fi
16709
      ;;
16710
 
16711
    dgux*)
16712
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16713
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16714
      hardcode_shlibpath_var_GCJ=no
16715
      ;;
16716
 
16717
    freebsd1*)
16718
      ld_shlibs_GCJ=no
16719
      ;;
16720
 
16721
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16722
    # support.  Future versions do this automatically, but an explicit c++rt0.o
16723
    # does not break anything, and helps significantly (at the cost of a little
16724
    # extra space).
16725
    freebsd2.2*)
16726
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16727
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16728
      hardcode_direct_GCJ=yes
16729
      hardcode_shlibpath_var_GCJ=no
16730
      ;;
16731
 
16732
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16733
    freebsd2*)
16734
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16735
      hardcode_direct_GCJ=yes
16736
      hardcode_minus_L_GCJ=yes
16737
      hardcode_shlibpath_var_GCJ=no
16738
      ;;
16739
 
16740
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16741
    freebsd* | dragonfly*)
16742
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16743
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16744
      hardcode_direct_GCJ=yes
16745
      hardcode_shlibpath_var_GCJ=no
16746
      ;;
16747
 
16748
    hpux9*)
16749
      if test "$GCC" = yes; then
16750
        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'
16751
      else
16752
        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'
16753
      fi
16754
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16755
      hardcode_libdir_separator_GCJ=:
16756
      hardcode_direct_GCJ=yes
16757
 
16758
      # hardcode_minus_L: Not really in the search PATH,
16759
      # but as the default location of the library.
16760
      hardcode_minus_L_GCJ=yes
16761
      export_dynamic_flag_spec_GCJ='${wl}-E'
16762
      ;;
16763
 
16764
    hpux10*)
16765
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16766
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16767
      else
16768
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16769
      fi
16770
      if test "$with_gnu_ld" = no; then
16771
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16772
        hardcode_libdir_separator_GCJ=:
16773
 
16774
        hardcode_direct_GCJ=yes
16775
        export_dynamic_flag_spec_GCJ='${wl}-E'
16776
 
16777
        # hardcode_minus_L: Not really in the search PATH,
16778
        # but as the default location of the library.
16779
        hardcode_minus_L_GCJ=yes
16780
      fi
16781
      ;;
16782
 
16783
    hpux11*)
16784
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16785
        case $host_cpu in
16786
        hppa*64*)
16787
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16788
          ;;
16789
        ia64*)
16790
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16791
          ;;
16792
        *)
16793
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16794
          ;;
16795
        esac
16796
      else
16797
        case $host_cpu in
16798
        hppa*64*)
16799
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16800
          ;;
16801
        ia64*)
16802
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16803
          ;;
16804
        *)
16805
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16806
          ;;
16807
        esac
16808
      fi
16809
      if test "$with_gnu_ld" = no; then
16810
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16811
        hardcode_libdir_separator_GCJ=:
16812
 
16813
        case $host_cpu in
16814
        hppa*64*|ia64*)
16815
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16816
          hardcode_direct_GCJ=no
16817
          hardcode_shlibpath_var_GCJ=no
16818
          ;;
16819
        *)
16820
          hardcode_direct_GCJ=yes
16821
          export_dynamic_flag_spec_GCJ='${wl}-E'
16822
 
16823
          # hardcode_minus_L: Not really in the search PATH,
16824
          # but as the default location of the library.
16825
          hardcode_minus_L_GCJ=yes
16826
          ;;
16827
        esac
16828
      fi
16829
      ;;
16830
 
16831
    irix5* | irix6* | nonstopux*)
16832
      if test "$GCC" = yes; then
16833
        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'
16834
      else
16835
        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'
16836
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16837
      fi
16838
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16839
      hardcode_libdir_separator_GCJ=:
16840
      link_all_deplibs_GCJ=yes
16841
      ;;
16842
 
16843
    netbsd*)
16844
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16845
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16846
      else
16847
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16848
      fi
16849
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16850
      hardcode_direct_GCJ=yes
16851
      hardcode_shlibpath_var_GCJ=no
16852
      ;;
16853
 
16854
    newsos6)
16855
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16856
      hardcode_direct_GCJ=yes
16857
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16858
      hardcode_libdir_separator_GCJ=:
16859
      hardcode_shlibpath_var_GCJ=no
16860
      ;;
16861
 
16862
    openbsd*)
16863
      if test -f /usr/libexec/ld.so; then
16864
        hardcode_direct_GCJ=yes
16865
        hardcode_shlibpath_var_GCJ=no
16866
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16867
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16868
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16869
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16870
          export_dynamic_flag_spec_GCJ='${wl}-E'
16871
        else
16872
          case $host_os in
16873
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16874
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16875
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
16876
             ;;
16877
           *)
16878
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16879
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16880
             ;;
16881
          esac
16882
        fi
16883
      else
16884
        ld_shlibs_GCJ=no
16885
      fi
16886
      ;;
16887
 
16888
    os2*)
16889
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16890
      hardcode_minus_L_GCJ=yes
16891
      allow_undefined_flag_GCJ=unsupported
16892
      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'
16893
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16894
      ;;
16895
 
16896
    osf3*)
16897
      if test "$GCC" = yes; then
16898
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16899
        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'
16900
      else
16901
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16902
        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'
16903
      fi
16904
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16905
      hardcode_libdir_separator_GCJ=:
16906
      ;;
16907
 
16908
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16909
      if test "$GCC" = yes; then
16910
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16911
        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'
16912
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16913
      else
16914
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16915
        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'
16916
        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~
16917
        $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'
16918
 
16919
        # Both c and cxx compiler support -rpath directly
16920
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16921
      fi
16922
      hardcode_libdir_separator_GCJ=:
16923
      ;;
16924
 
16925
    solaris*)
16926
      no_undefined_flag_GCJ=' -z text'
16927
      if test "$GCC" = yes; then
16928
        wlarc='${wl}'
16929
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16930
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16931
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16932
      else
16933
        wlarc=''
16934
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16935
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16936
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16937
      fi
16938
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16939
      hardcode_shlibpath_var_GCJ=no
16940
      case $host_os in
16941
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16942
      *)
16943
        # The compiler driver will combine and reorder linker options,
16944
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
16945
        # but is careful enough not to reorder.
16946
        # Supported since Solaris 2.6 (maybe 2.5.1?)
16947
        if test "$GCC" = yes; then
16948
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16949
        else
16950
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
16951
        fi
16952
        ;;
16953
      esac
16954
      link_all_deplibs_GCJ=yes
16955
      ;;
16956
 
16957
    sunos4*)
16958
      if test "x$host_vendor" = xsequent; then
16959
        # Use $CC to link under sequent, because it throws in some extra .o
16960
        # files that make .init and .fini sections work.
16961
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16962
      else
16963
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16964
      fi
16965
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16966
      hardcode_direct_GCJ=yes
16967
      hardcode_minus_L_GCJ=yes
16968
      hardcode_shlibpath_var_GCJ=no
16969
      ;;
16970
 
16971
    sysv4)
16972
      case $host_vendor in
16973
        sni)
16974
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16975
          hardcode_direct_GCJ=yes # is this really true???
16976
        ;;
16977
        siemens)
16978
          ## LD is ld it makes a PLAMLIB
16979
          ## CC just makes a GrossModule.
16980
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16981
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16982
          hardcode_direct_GCJ=no
16983
        ;;
16984
        motorola)
16985
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16986
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16987
        ;;
16988
      esac
16989
      runpath_var='LD_RUN_PATH'
16990
      hardcode_shlibpath_var_GCJ=no
16991
      ;;
16992
 
16993
    sysv4.3*)
16994
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16995
      hardcode_shlibpath_var_GCJ=no
16996
      export_dynamic_flag_spec_GCJ='-Bexport'
16997
      ;;
16998
 
16999
    sysv4*MP*)
17000
      if test -d /usr/nec; then
17001
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17002
        hardcode_shlibpath_var_GCJ=no
17003
        runpath_var=LD_RUN_PATH
17004
        hardcode_runpath_var=yes
17005
        ld_shlibs_GCJ=yes
17006
      fi
17007
      ;;
17008
 
17009
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17010
      no_undefined_flag_GCJ='${wl}-z,text'
17011
      archive_cmds_need_lc_GCJ=no
17012
      hardcode_shlibpath_var_GCJ=no
17013
      runpath_var='LD_RUN_PATH'
17014
 
17015
      if test "$GCC" = yes; then
17016
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17017
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17018
      else
17019
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17020
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17021
      fi
17022
      ;;
17023
 
17024
    sysv5* | sco3.2v5* | sco5v6*)
17025
      # Note: We can NOT use -z defs as we might desire, because we do not
17026
      # link with -lc, and that would cause any symbols used from libc to
17027
      # always be unresolved, which means just about no library would
17028
      # ever link correctly.  If we're not using GNU ld we use -z text
17029
      # though, which does catch some bad symbols but isn't as heavy-handed
17030
      # as -z defs.
17031
      no_undefined_flag_GCJ='${wl}-z,text'
17032
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17033
      archive_cmds_need_lc_GCJ=no
17034
      hardcode_shlibpath_var_GCJ=no
17035
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17036
      hardcode_libdir_separator_GCJ=':'
17037
      link_all_deplibs_GCJ=yes
17038
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17039
      runpath_var='LD_RUN_PATH'
17040
 
17041
      if test "$GCC" = yes; then
17042
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17043
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17044
      else
17045
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17046
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17047
      fi
17048
      ;;
17049
 
17050
    uts4*)
17051
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17052
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17053
      hardcode_shlibpath_var_GCJ=no
17054
      ;;
17055
 
17056
    *)
17057
      ld_shlibs_GCJ=no
17058
      ;;
17059
    esac
17060
  fi
17061
 
17062
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17063
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17064
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17065
 
17066
#
17067
# Do we need to explicitly link libc?
17068
#
17069
case "x$archive_cmds_need_lc_GCJ" in
17070
x|xyes)
17071
  # Assume -lc should be added
17072
  archive_cmds_need_lc_GCJ=yes
17073
 
17074
  if test "$enable_shared" = yes && test "$GCC" = yes; then
17075
    case $archive_cmds_GCJ in
17076
    *'~'*)
17077
      # FIXME: we may have to deal with multi-command sequences.
17078
      ;;
17079
    '$CC '*)
17080
      # Test whether the compiler implicitly links with -lc since on some
17081
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17082
      # to ld, don't add -lc before -lgcc.
17083
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17084
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17085
      $rm conftest*
17086
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17087
 
17088
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17089
  (eval $ac_compile) 2>&5
17090
  ac_status=$?
17091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092
  (exit $ac_status); } 2>conftest.err; then
17093
        soname=conftest
17094
        lib=conftest
17095
        libobjs=conftest.$ac_objext
17096
        deplibs=
17097
        wl=$lt_prog_compiler_wl_GCJ
17098
        pic_flag=$lt_prog_compiler_pic_GCJ
17099
        compiler_flags=-v
17100
        linker_flags=-v
17101
        verstring=
17102
        output_objdir=.
17103
        libname=conftest
17104
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17105
        allow_undefined_flag_GCJ=
17106
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17107
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17108
  ac_status=$?
17109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110
  (exit $ac_status); }
17111
        then
17112
          archive_cmds_need_lc_GCJ=no
17113
        else
17114
          archive_cmds_need_lc_GCJ=yes
17115
        fi
17116
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17117
      else
17118
        cat conftest.err 1>&5
17119
      fi
17120
      $rm conftest*
17121
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17122
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17123
      ;;
17124
    esac
17125
  fi
17126
  ;;
17127
esac
17128
 
17129
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17130
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17131
library_names_spec=
17132
libname_spec='lib$name'
17133
soname_spec=
17134
shrext_cmds=".so"
17135
postinstall_cmds=
17136
postuninstall_cmds=
17137
finish_cmds=
17138
finish_eval=
17139
shlibpath_var=
17140
shlibpath_overrides_runpath=unknown
17141
version_type=none
17142
dynamic_linker="$host_os ld.so"
17143
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17144
 
17145
need_lib_prefix=unknown
17146
hardcode_into_libs=no
17147
 
17148
# when you set need_version to no, make sure it does not cause -set_version
17149
# flags to be left without arguments
17150
need_version=unknown
17151
 
17152
case $host_os in
17153
aix3*)
17154
  version_type=linux
17155
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17156
  shlibpath_var=LIBPATH
17157
 
17158
  # AIX 3 has no versioning support, so we append a major version to the name.
17159
  soname_spec='${libname}${release}${shared_ext}$major'
17160
  ;;
17161
 
17162
aix4* | aix5*)
17163
  version_type=linux
17164
  need_lib_prefix=no
17165
  need_version=no
17166
  hardcode_into_libs=yes
17167
  if test "$host_cpu" = ia64; then
17168
    # AIX 5 supports IA64
17169
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17170
    shlibpath_var=LD_LIBRARY_PATH
17171
  else
17172
    # With GCC up to 2.95.x, collect2 would create an import file
17173
    # for dependence libraries.  The import file would start with
17174
    # the line `#! .'.  This would cause the generated library to
17175
    # depend on `.', always an invalid library.  This was fixed in
17176
    # development snapshots of GCC prior to 3.0.
17177
    case $host_os in
17178
      aix4 | aix4.[01] | aix4.[01].*)
17179
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17180
           echo ' yes '
17181
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17182
        :
17183
      else
17184
        can_build_shared=no
17185
      fi
17186
      ;;
17187
    esac
17188
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17189
    # soname into executable. Probably we can add versioning support to
17190
    # collect2, so additional links can be useful in future.
17191
    if test "$aix_use_runtimelinking" = yes; then
17192
      # If using run time linking (on AIX 4.2 or later) use lib.so
17193
      # instead of lib.a to let people know that these are not
17194
      # typical AIX shared libraries.
17195
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196
    else
17197
      # We preserve .a as extension for shared libraries through AIX4.2
17198
      # and later when we are not doing run time linking.
17199
      library_names_spec='${libname}${release}.a $libname.a'
17200
      soname_spec='${libname}${release}${shared_ext}$major'
17201
    fi
17202
    shlibpath_var=LIBPATH
17203
  fi
17204
  ;;
17205
 
17206
amigaos*)
17207
  library_names_spec='$libname.ixlibrary $libname.a'
17208
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17209
  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'
17210
  ;;
17211
 
17212
beos*)
17213
  library_names_spec='${libname}${shared_ext}'
17214
  dynamic_linker="$host_os ld.so"
17215
  shlibpath_var=LIBRARY_PATH
17216
  ;;
17217
 
17218
bsdi[45]*)
17219
  version_type=linux
17220
  need_version=no
17221
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222
  soname_spec='${libname}${release}${shared_ext}$major'
17223
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17224
  shlibpath_var=LD_LIBRARY_PATH
17225
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17226
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17227
  # the default ld.so.conf also contains /usr/contrib/lib and
17228
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17229
  # libtool to hard-code these into programs
17230
  ;;
17231
 
17232
cygwin* | mingw* | pw32*)
17233
  version_type=windows
17234
  shrext_cmds=".dll"
17235
  need_version=no
17236
  need_lib_prefix=no
17237
 
17238
  case $GCC,$host_os in
17239
  yes,cygwin* | yes,mingw* | yes,pw32*)
17240
    library_names_spec='$libname.dll.a'
17241
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17242
    postinstall_cmds='base_file=`basename \${file}`~
17243
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17244
      dldir=$destdir/`dirname \$dlpath`~
17245
      test -d \$dldir || mkdir -p \$dldir~
17246
      $install_prog $dir/$dlname \$dldir/$dlname~
17247
      chmod a+x \$dldir/$dlname'
17248
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17249
      dlpath=$dir/\$dldll~
17250
       $rm \$dlpath'
17251
    shlibpath_overrides_runpath=yes
17252
 
17253
    case $host_os in
17254
    cygwin*)
17255
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17256
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17257
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17258
      ;;
17259
    mingw*)
17260
      # MinGW DLLs use traditional 'lib' prefix
17261
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17262
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17263
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17264
        # It is most probably a Windows format PATH printed by
17265
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17266
        # path with ; separators, and with drive letters. We can handle the
17267
        # drive letters (cygwin fileutils understands them), so leave them,
17268
        # especially as we might pass files found there to a mingw objdump,
17269
        # which wouldn't understand a cygwinified path. Ahh.
17270
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17271
      else
17272
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17273
      fi
17274
      ;;
17275
    pw32*)
17276
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17277
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17278
      ;;
17279
    esac
17280
    ;;
17281
 
17282
  *)
17283
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17284
    ;;
17285
  esac
17286
  dynamic_linker='Win32 ld.exe'
17287
  # FIXME: first we should search . and the directory the executable is in
17288
  shlibpath_var=PATH
17289
  ;;
17290
 
17291
darwin* | rhapsody*)
17292
  dynamic_linker="$host_os dyld"
17293
  version_type=darwin
17294
  need_lib_prefix=no
17295
  need_version=no
17296
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17297
  soname_spec='${libname}${release}${major}$shared_ext'
17298
  shlibpath_overrides_runpath=yes
17299
  shlibpath_var=DYLD_LIBRARY_PATH
17300
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17301
 
17302
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17303
  ;;
17304
 
17305
dgux*)
17306
  version_type=linux
17307
  need_lib_prefix=no
17308
  need_version=no
17309
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17310
  soname_spec='${libname}${release}${shared_ext}$major'
17311
  shlibpath_var=LD_LIBRARY_PATH
17312
  ;;
17313
 
17314
freebsd1*)
17315
  dynamic_linker=no
17316
  ;;
17317
 
17318
freebsd* | dragonfly*)
17319
  # DragonFly does not have aout.  When/if they implement a new
17320
  # versioning mechanism, adjust this.
17321
  if test -x /usr/bin/objformat; then
17322
    objformat=`/usr/bin/objformat`
17323
  else
17324
    case $host_os in
17325
    freebsd[123]*) objformat=aout ;;
17326
    *) objformat=elf ;;
17327
    esac
17328
  fi
17329
  version_type=freebsd-$objformat
17330
  case $version_type in
17331
    freebsd-elf*)
17332
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17333
      need_version=no
17334
      need_lib_prefix=no
17335
      ;;
17336
    freebsd-*)
17337
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17338
      need_version=yes
17339
      ;;
17340
  esac
17341
  shlibpath_var=LD_LIBRARY_PATH
17342
  case $host_os in
17343
  freebsd2*)
17344
    shlibpath_overrides_runpath=yes
17345
    ;;
17346
  freebsd3.[01]* | freebsdelf3.[01]*)
17347
    shlibpath_overrides_runpath=yes
17348
    hardcode_into_libs=yes
17349
    ;;
17350
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17351
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17352
    shlibpath_overrides_runpath=no
17353
    hardcode_into_libs=yes
17354
    ;;
17355
  *) # from 4.6 on, and DragonFly
17356
    shlibpath_overrides_runpath=yes
17357
    hardcode_into_libs=yes
17358
    ;;
17359
  esac
17360
  ;;
17361
 
17362
gnu*)
17363
  version_type=linux
17364
  need_lib_prefix=no
17365
  need_version=no
17366
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17367
  soname_spec='${libname}${release}${shared_ext}$major'
17368
  shlibpath_var=LD_LIBRARY_PATH
17369
  hardcode_into_libs=yes
17370
  ;;
17371
 
17372
hpux9* | hpux10* | hpux11*)
17373
  # Give a soname corresponding to the major version so that dld.sl refuses to
17374
  # link against other versions.
17375
  version_type=sunos
17376
  need_lib_prefix=no
17377
  need_version=no
17378
  case $host_cpu in
17379
  ia64*)
17380
    shrext_cmds='.so'
17381
    hardcode_into_libs=yes
17382
    dynamic_linker="$host_os dld.so"
17383
    shlibpath_var=LD_LIBRARY_PATH
17384
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17385
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386
    soname_spec='${libname}${release}${shared_ext}$major'
17387
    if test "X$HPUX_IA64_MODE" = X32; then
17388
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17389
    else
17390
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17391
    fi
17392
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17393
    ;;
17394
   hppa*64*)
17395
     shrext_cmds='.sl'
17396
     hardcode_into_libs=yes
17397
     dynamic_linker="$host_os dld.sl"
17398
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17399
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17400
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17401
     soname_spec='${libname}${release}${shared_ext}$major'
17402
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17403
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17404
     ;;
17405
   *)
17406
    shrext_cmds='.sl'
17407
    dynamic_linker="$host_os dld.sl"
17408
    shlibpath_var=SHLIB_PATH
17409
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17410
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17411
    soname_spec='${libname}${release}${shared_ext}$major'
17412
    ;;
17413
  esac
17414
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17415
  postinstall_cmds='chmod 555 $lib'
17416
  ;;
17417
 
17418
interix[3-9]*)
17419
  version_type=linux
17420
  need_lib_prefix=no
17421
  need_version=no
17422
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17423
  soname_spec='${libname}${release}${shared_ext}$major'
17424
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17425
  shlibpath_var=LD_LIBRARY_PATH
17426
  shlibpath_overrides_runpath=no
17427
  hardcode_into_libs=yes
17428
  ;;
17429
 
17430
irix5* | irix6* | nonstopux*)
17431
  case $host_os in
17432
    nonstopux*) version_type=nonstopux ;;
17433
    *)
17434
        if test "$lt_cv_prog_gnu_ld" = yes; then
17435
                version_type=linux
17436
        else
17437
                version_type=irix
17438
        fi ;;
17439
  esac
17440
  need_lib_prefix=no
17441
  need_version=no
17442
  soname_spec='${libname}${release}${shared_ext}$major'
17443
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17444
  case $host_os in
17445
  irix5* | nonstopux*)
17446
    libsuff= shlibsuff=
17447
    ;;
17448
  *)
17449
    case $LD in # libtool.m4 will add one of these switches to LD
17450
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17451
      libsuff= shlibsuff= libmagic=32-bit;;
17452
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17453
      libsuff=32 shlibsuff=N32 libmagic=N32;;
17454
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17455
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17456
    *) libsuff= shlibsuff= libmagic=never-match;;
17457
    esac
17458
    ;;
17459
  esac
17460
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17461
  shlibpath_overrides_runpath=no
17462
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17463
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17464
  hardcode_into_libs=yes
17465
  ;;
17466
 
17467
# No shared lib support for Linux oldld, aout, or coff.
17468
linux*oldld* | linux*aout* | linux*coff*)
17469
  dynamic_linker=no
17470
  ;;
17471
 
17472
# This must be Linux ELF.
17473
linux* | k*bsd*-gnu)
17474
  version_type=linux
17475
  need_lib_prefix=no
17476
  need_version=no
17477
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17478
  soname_spec='${libname}${release}${shared_ext}$major'
17479
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17480
  shlibpath_var=LD_LIBRARY_PATH
17481
  shlibpath_overrides_runpath=no
17482
  # This implies no fast_install, which is unacceptable.
17483
  # Some rework will be needed to allow for fast_install
17484
  # before this can be enabled.
17485
  hardcode_into_libs=yes
17486
 
17487
  # Append ld.so.conf contents to the search path
17488
  if test -f /etc/ld.so.conf; then
17489
    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' ' '`
17490 60 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17491 19 jeremybenn
  fi
17492
 
17493
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17494
  # powerpc, because MkLinux only supported shared libraries with the
17495
  # GNU dynamic linker.  Since this was broken with cross compilers,
17496
  # most powerpc-linux boxes support dynamic linking these days and
17497
  # people can always --disable-shared, the test was removed, and we
17498
  # assume the GNU/Linux dynamic linker is in use.
17499
  dynamic_linker='GNU/Linux ld.so'
17500
  ;;
17501
 
17502
netbsd*)
17503
  version_type=sunos
17504
  need_lib_prefix=no
17505
  need_version=no
17506
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17507
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17508
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17509
    dynamic_linker='NetBSD (a.out) ld.so'
17510
  else
17511
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17512
    soname_spec='${libname}${release}${shared_ext}$major'
17513
    dynamic_linker='NetBSD ld.elf_so'
17514
  fi
17515
  shlibpath_var=LD_LIBRARY_PATH
17516
  shlibpath_overrides_runpath=yes
17517
  hardcode_into_libs=yes
17518
  ;;
17519
 
17520
newsos6)
17521
  version_type=linux
17522
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17523
  shlibpath_var=LD_LIBRARY_PATH
17524
  shlibpath_overrides_runpath=yes
17525
  ;;
17526
 
17527
nto-qnx*)
17528
  version_type=linux
17529
  need_lib_prefix=no
17530
  need_version=no
17531
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17532
  soname_spec='${libname}${release}${shared_ext}$major'
17533
  shlibpath_var=LD_LIBRARY_PATH
17534
  shlibpath_overrides_runpath=yes
17535
  ;;
17536
 
17537
openbsd*)
17538
  version_type=sunos
17539
  sys_lib_dlsearch_path_spec="/usr/lib"
17540
  need_lib_prefix=no
17541
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17542
  case $host_os in
17543
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17544
    *)                         need_version=no  ;;
17545
  esac
17546
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17547
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17548
  shlibpath_var=LD_LIBRARY_PATH
17549
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17550
    case $host_os in
17551
      openbsd2.[89] | openbsd2.[89].*)
17552
        shlibpath_overrides_runpath=no
17553
        ;;
17554
      *)
17555
        shlibpath_overrides_runpath=yes
17556
        ;;
17557
      esac
17558
  else
17559
    shlibpath_overrides_runpath=yes
17560
  fi
17561
  ;;
17562
 
17563
os2*)
17564
  libname_spec='$name'
17565
  shrext_cmds=".dll"
17566
  need_lib_prefix=no
17567
  library_names_spec='$libname${shared_ext} $libname.a'
17568
  dynamic_linker='OS/2 ld.exe'
17569
  shlibpath_var=LIBPATH
17570
  ;;
17571
 
17572
osf3* | osf4* | osf5*)
17573
  version_type=osf
17574
  need_lib_prefix=no
17575
  need_version=no
17576
  soname_spec='${libname}${release}${shared_ext}$major'
17577
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17578
  shlibpath_var=LD_LIBRARY_PATH
17579
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17580
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17581
  ;;
17582
 
17583
rdos*)
17584
  dynamic_linker=no
17585
  ;;
17586
 
17587
solaris*)
17588
  version_type=linux
17589
  need_lib_prefix=no
17590
  need_version=no
17591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17592
  soname_spec='${libname}${release}${shared_ext}$major'
17593
  shlibpath_var=LD_LIBRARY_PATH
17594
  shlibpath_overrides_runpath=yes
17595
  hardcode_into_libs=yes
17596
  # ldd complains unless libraries are executable
17597
  postinstall_cmds='chmod +x $lib'
17598
  ;;
17599
 
17600
sunos4*)
17601
  version_type=sunos
17602
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17603
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17604
  shlibpath_var=LD_LIBRARY_PATH
17605
  shlibpath_overrides_runpath=yes
17606
  if test "$with_gnu_ld" = yes; then
17607
    need_lib_prefix=no
17608
  fi
17609
  need_version=yes
17610
  ;;
17611
 
17612
sysv4 | sysv4.3*)
17613
  version_type=linux
17614
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17615
  soname_spec='${libname}${release}${shared_ext}$major'
17616
  shlibpath_var=LD_LIBRARY_PATH
17617
  case $host_vendor in
17618
    sni)
17619
      shlibpath_overrides_runpath=no
17620
      need_lib_prefix=no
17621
      export_dynamic_flag_spec='${wl}-Blargedynsym'
17622
      runpath_var=LD_RUN_PATH
17623
      ;;
17624
    siemens)
17625
      need_lib_prefix=no
17626
      ;;
17627
    motorola)
17628
      need_lib_prefix=no
17629
      need_version=no
17630
      shlibpath_overrides_runpath=no
17631
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17632
      ;;
17633
  esac
17634
  ;;
17635
 
17636
sysv4*MP*)
17637
  if test -d /usr/nec ;then
17638
    version_type=linux
17639
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17640
    soname_spec='$libname${shared_ext}.$major'
17641
    shlibpath_var=LD_LIBRARY_PATH
17642
  fi
17643
  ;;
17644
 
17645
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17646
  version_type=freebsd-elf
17647
  need_lib_prefix=no
17648
  need_version=no
17649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17650
  soname_spec='${libname}${release}${shared_ext}$major'
17651
  shlibpath_var=LD_LIBRARY_PATH
17652
  hardcode_into_libs=yes
17653
  if test "$with_gnu_ld" = yes; then
17654
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17655
    shlibpath_overrides_runpath=no
17656
  else
17657
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17658
    shlibpath_overrides_runpath=yes
17659
    case $host_os in
17660
      sco3.2v5*)
17661
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17662
        ;;
17663
    esac
17664
  fi
17665
  sys_lib_dlsearch_path_spec='/usr/lib'
17666
  ;;
17667
 
17668
uts4*)
17669
  version_type=linux
17670
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17671
  soname_spec='${libname}${release}${shared_ext}$major'
17672
  shlibpath_var=LD_LIBRARY_PATH
17673
  ;;
17674
 
17675
*)
17676
  dynamic_linker=no
17677
  ;;
17678
esac
17679
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17680
echo "${ECHO_T}$dynamic_linker" >&6; }
17681
test "$dynamic_linker" = no && can_build_shared=no
17682
 
17683
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17684
if test "$GCC" = yes; then
17685
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17686
fi
17687
 
17688
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17689
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17690
hardcode_action_GCJ=
17691
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17692
   test -n "$runpath_var_GCJ" || \
17693
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17694
 
17695
  # We can hardcode non-existant directories.
17696
  if test "$hardcode_direct_GCJ" != no &&
17697
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17698
     # have to relink, otherwise we might link with an installed library
17699
     # when we should be linking with a yet-to-be-installed one
17700
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17701
     test "$hardcode_minus_L_GCJ" != no; then
17702
    # Linking always hardcodes the temporary library directory.
17703
    hardcode_action_GCJ=relink
17704
  else
17705
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17706
    hardcode_action_GCJ=immediate
17707
  fi
17708
else
17709
  # We cannot hardcode anything, or else we can only hardcode existing
17710
  # directories.
17711
  hardcode_action_GCJ=unsupported
17712
fi
17713
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17714
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17715
 
17716
if test "$hardcode_action_GCJ" = relink; then
17717
  # Fast installation is not supported
17718
  enable_fast_install=no
17719
elif test "$shlibpath_overrides_runpath" = yes ||
17720
     test "$enable_shared" = no; then
17721
  # Fast installation is not necessary
17722
  enable_fast_install=needless
17723
fi
17724
 
17725
 
17726
# The else clause should only fire when bootstrapping the
17727
# libtool distribution, otherwise you forgot to ship ltmain.sh
17728
# with your package, and you will get complaints that there are
17729
# no rules to generate ltmain.sh.
17730
if test -f "$ltmain"; then
17731
  # See if we are running on zsh, and set the options which allow our commands through
17732
  # without removal of \ escapes.
17733
  if test -n "${ZSH_VERSION+set}" ; then
17734
    setopt NO_GLOB_SUBST
17735
  fi
17736
  # Now quote all the things that may contain metacharacters while being
17737
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17738
  # variables and quote the copies for generation of the libtool script.
17739
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17740
    SED SHELL STRIP \
17741
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17742
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17743
    deplibs_check_method reload_flag reload_cmds need_locks \
17744
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17745
    lt_cv_sys_global_symbol_to_c_name_address \
17746
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17747
    old_postinstall_cmds old_postuninstall_cmds \
17748
    compiler_GCJ \
17749
    CC_GCJ \
17750
    LD_GCJ \
17751
    lt_prog_compiler_wl_GCJ \
17752
    lt_prog_compiler_pic_GCJ \
17753
    lt_prog_compiler_static_GCJ \
17754
    lt_prog_compiler_no_builtin_flag_GCJ \
17755
    export_dynamic_flag_spec_GCJ \
17756
    thread_safe_flag_spec_GCJ \
17757
    whole_archive_flag_spec_GCJ \
17758
    enable_shared_with_static_runtimes_GCJ \
17759
    old_archive_cmds_GCJ \
17760
    old_archive_from_new_cmds_GCJ \
17761
    predep_objects_GCJ \
17762
    postdep_objects_GCJ \
17763
    predeps_GCJ \
17764
    postdeps_GCJ \
17765
    compiler_lib_search_path_GCJ \
17766
    archive_cmds_GCJ \
17767
    archive_expsym_cmds_GCJ \
17768
    postinstall_cmds_GCJ \
17769
    postuninstall_cmds_GCJ \
17770
    old_archive_from_expsyms_cmds_GCJ \
17771
    allow_undefined_flag_GCJ \
17772
    no_undefined_flag_GCJ \
17773
    export_symbols_cmds_GCJ \
17774
    hardcode_libdir_flag_spec_GCJ \
17775
    hardcode_libdir_flag_spec_ld_GCJ \
17776
    hardcode_libdir_separator_GCJ \
17777
    hardcode_automatic_GCJ \
17778
    module_cmds_GCJ \
17779
    module_expsym_cmds_GCJ \
17780
    lt_cv_prog_compiler_c_o_GCJ \
17781
    fix_srcfile_path_GCJ \
17782
    exclude_expsyms_GCJ \
17783
    include_expsyms_GCJ; do
17784
 
17785
    case $var in
17786
    old_archive_cmds_GCJ | \
17787
    old_archive_from_new_cmds_GCJ | \
17788
    archive_cmds_GCJ | \
17789
    archive_expsym_cmds_GCJ | \
17790
    module_cmds_GCJ | \
17791
    module_expsym_cmds_GCJ | \
17792
    old_archive_from_expsyms_cmds_GCJ | \
17793
    export_symbols_cmds_GCJ | \
17794
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17795
    postinstall_cmds | postuninstall_cmds | \
17796
    old_postinstall_cmds | old_postuninstall_cmds | \
17797
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17798
      # Double-quote double-evaled strings.
17799
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17800
      ;;
17801
    *)
17802
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17803
      ;;
17804
    esac
17805
  done
17806
 
17807
  case $lt_echo in
17808
  *'\$0 --fallback-echo"')
17809
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17810
    ;;
17811
  esac
17812
 
17813
cfgfile="$ofile"
17814
 
17815
  cat <<__EOF__ >> "$cfgfile"
17816
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17817
 
17818
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17819
 
17820
# Shell to use when invoking shell scripts.
17821
SHELL=$lt_SHELL
17822
 
17823
# Whether or not to build shared libraries.
17824
build_libtool_libs=$enable_shared
17825
 
17826
# Whether or not to build static libraries.
17827
build_old_libs=$enable_static
17828
 
17829
# Whether or not to add -lc for building shared libraries.
17830
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17831
 
17832
# Whether or not to disallow shared libs when runtime libs are static
17833
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17834
 
17835
# Whether or not to optimize for fast installation.
17836
fast_install=$enable_fast_install
17837
 
17838
# The host system.
17839
host_alias=$host_alias
17840
host=$host
17841
host_os=$host_os
17842
 
17843
# The build system.
17844
build_alias=$build_alias
17845
build=$build
17846
build_os=$build_os
17847
 
17848
# An echo program that does not interpret backslashes.
17849
echo=$lt_echo
17850
 
17851
# The archiver.
17852
AR=$lt_AR
17853
AR_FLAGS=$lt_AR_FLAGS
17854
 
17855
# A C compiler.
17856
LTCC=$lt_LTCC
17857
 
17858
# LTCC compiler flags.
17859
LTCFLAGS=$lt_LTCFLAGS
17860
 
17861
# A language-specific compiler.
17862
CC=$lt_compiler_GCJ
17863
 
17864
# Is the compiler the GNU C compiler?
17865
with_gcc=$GCC_GCJ
17866
 
17867
# An ERE matcher.
17868
EGREP=$lt_EGREP
17869
 
17870
# The linker used to build libraries.
17871
LD=$lt_LD_GCJ
17872
 
17873
# Whether we need hard or soft links.
17874
LN_S=$lt_LN_S
17875
 
17876
# A BSD-compatible nm program.
17877
NM=$lt_NM
17878
 
17879
# A symbol stripping program
17880
STRIP=$lt_STRIP
17881
 
17882
# Used to examine libraries when file_magic_cmd begins "file"
17883
MAGIC_CMD=$MAGIC_CMD
17884
 
17885
# Used on cygwin: DLL creation program.
17886
DLLTOOL="$DLLTOOL"
17887
 
17888
# Used on cygwin: object dumper.
17889
OBJDUMP="$OBJDUMP"
17890
 
17891
# Used on cygwin: assembler.
17892
AS="$AS"
17893
 
17894
# The name of the directory that contains temporary libtool files.
17895
objdir=$objdir
17896
 
17897
# How to create reloadable object files.
17898
reload_flag=$lt_reload_flag
17899
reload_cmds=$lt_reload_cmds
17900
 
17901
# How to pass a linker flag through the compiler.
17902
wl=$lt_lt_prog_compiler_wl_GCJ
17903
 
17904
# Object file suffix (normally "o").
17905
objext="$ac_objext"
17906
 
17907
# Old archive suffix (normally "a").
17908
libext="$libext"
17909
 
17910
# Shared library suffix (normally ".so").
17911
shrext_cmds='$shrext_cmds'
17912
 
17913
# Executable file suffix (normally "").
17914
exeext="$exeext"
17915
 
17916
# Additional compiler flags for building library objects.
17917
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17918
pic_mode=$pic_mode
17919
 
17920
# What is the maximum length of a command?
17921
max_cmd_len=$lt_cv_sys_max_cmd_len
17922
 
17923
# Does compiler simultaneously support -c and -o options?
17924
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17925
 
17926
# Must we lock files when doing compilation?
17927
need_locks=$lt_need_locks
17928
 
17929
# Do we need the lib prefix for modules?
17930
need_lib_prefix=$need_lib_prefix
17931
 
17932
# Do we need a version for libraries?
17933
need_version=$need_version
17934
 
17935
# Whether dlopen is supported.
17936
dlopen_support=$enable_dlopen
17937
 
17938
# Whether dlopen of programs is supported.
17939
dlopen_self=$enable_dlopen_self
17940
 
17941
# Whether dlopen of statically linked programs is supported.
17942
dlopen_self_static=$enable_dlopen_self_static
17943
 
17944
# Compiler flag to prevent dynamic linking.
17945
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17946
 
17947
# Compiler flag to turn off builtin functions.
17948
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17949
 
17950
# Compiler flag to allow reflexive dlopens.
17951
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17952
 
17953
# Compiler flag to generate shared objects directly from archives.
17954
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17955
 
17956
# Compiler flag to generate thread-safe objects.
17957
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17958
 
17959
# Library versioning type.
17960
version_type=$version_type
17961
 
17962
# Format of library name prefix.
17963
libname_spec=$lt_libname_spec
17964
 
17965
# List of archive names.  First name is the real one, the rest are links.
17966
# The last name is the one that the linker finds with -lNAME.
17967
library_names_spec=$lt_library_names_spec
17968
 
17969
# The coded name of the library, if different from the real name.
17970
soname_spec=$lt_soname_spec
17971
 
17972
# Commands used to build and install an old-style archive.
17973
RANLIB=$lt_RANLIB
17974
old_archive_cmds=$lt_old_archive_cmds_GCJ
17975
old_postinstall_cmds=$lt_old_postinstall_cmds
17976
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17977
 
17978
# Create an old-style archive from a shared archive.
17979
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17980
 
17981
# Create a temporary old-style archive to link instead of a shared archive.
17982
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17983
 
17984
# Commands used to build and install a shared archive.
17985
archive_cmds=$lt_archive_cmds_GCJ
17986
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17987
postinstall_cmds=$lt_postinstall_cmds
17988
postuninstall_cmds=$lt_postuninstall_cmds
17989
 
17990
# Commands used to build a loadable module (assumed same as above if empty)
17991
module_cmds=$lt_module_cmds_GCJ
17992
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17993
 
17994
# Commands to strip libraries.
17995
old_striplib=$lt_old_striplib
17996
striplib=$lt_striplib
17997
 
17998
# Dependencies to place before the objects being linked to create a
17999
# shared library.
18000
predep_objects=$lt_predep_objects_GCJ
18001
 
18002
# Dependencies to place after the objects being linked to create a
18003
# shared library.
18004
postdep_objects=$lt_postdep_objects_GCJ
18005
 
18006
# Dependencies to place before the objects being linked to create a
18007
# shared library.
18008
predeps=$lt_predeps_GCJ
18009
 
18010
# Dependencies to place after the objects being linked to create a
18011
# shared library.
18012
postdeps=$lt_postdeps_GCJ
18013
 
18014
# The library search path used internally by the compiler when linking
18015
# a shared library.
18016
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18017
 
18018
# Method to check whether dependent libraries are shared objects.
18019
deplibs_check_method=$lt_deplibs_check_method
18020
 
18021
# Command to use when deplibs_check_method == file_magic.
18022
file_magic_cmd=$lt_file_magic_cmd
18023
 
18024
# Flag that allows shared libraries with undefined symbols to be built.
18025
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18026
 
18027
# Flag that forces no undefined symbols.
18028
no_undefined_flag=$lt_no_undefined_flag_GCJ
18029
 
18030
# Commands used to finish a libtool library installation in a directory.
18031
finish_cmds=$lt_finish_cmds
18032
 
18033
# Same as above, but a single script fragment to be evaled but not shown.
18034
finish_eval=$lt_finish_eval
18035
 
18036
# Take the output of nm and produce a listing of raw symbols and C names.
18037
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18038
 
18039
# Transform the output of nm in a proper C declaration
18040
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18041
 
18042
# Transform the output of nm in a C name address pair
18043
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18044
 
18045
# This is the shared library runtime path variable.
18046
runpath_var=$runpath_var
18047
 
18048
# This is the shared library path variable.
18049
shlibpath_var=$shlibpath_var
18050
 
18051
# Is shlibpath searched before the hard-coded library search path?
18052
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18053
 
18054
# How to hardcode a shared library path into an executable.
18055
hardcode_action=$hardcode_action_GCJ
18056
 
18057
# Whether we should hardcode library paths into libraries.
18058
hardcode_into_libs=$hardcode_into_libs
18059
 
18060
# Flag to hardcode \$libdir into a binary during linking.
18061
# This must work even if \$libdir does not exist.
18062
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18063
 
18064
# If ld is used when linking, flag to hardcode \$libdir into
18065
# a binary during linking. This must work even if \$libdir does
18066
# not exist.
18067
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18068
 
18069
# Whether we need a single -rpath flag with a separated argument.
18070
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18071
 
18072
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18073
# resulting binary.
18074
hardcode_direct=$hardcode_direct_GCJ
18075
 
18076
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18077
# resulting binary.
18078
hardcode_minus_L=$hardcode_minus_L_GCJ
18079
 
18080
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18081
# the resulting binary.
18082
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18083
 
18084
# Set to yes if building a shared library automatically hardcodes DIR into the library
18085
# and all subsequent libraries and executables linked against it.
18086
hardcode_automatic=$hardcode_automatic_GCJ
18087
 
18088
# Variables whose values should be saved in libtool wrapper scripts and
18089
# restored at relink time.
18090
variables_saved_for_relink="$variables_saved_for_relink"
18091
 
18092
# Whether libtool must link a program against all its dependency libraries.
18093
link_all_deplibs=$link_all_deplibs_GCJ
18094
 
18095
# Compile-time system search path for libraries
18096
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18097
 
18098
# Run-time system search path for libraries
18099
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18100
 
18101
# Fix the shell variable \$srcfile for the compiler.
18102
fix_srcfile_path=$lt_fix_srcfile_path
18103
 
18104
# Set to yes if exported symbols are required.
18105
always_export_symbols=$always_export_symbols_GCJ
18106
 
18107
# The commands to list exported symbols.
18108
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18109
 
18110
# The commands to extract the exported symbol list from a shared archive.
18111
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18112
 
18113
# Symbols that should not be listed in the preloaded symbols.
18114
exclude_expsyms=$lt_exclude_expsyms_GCJ
18115
 
18116
# Symbols that must always be exported.
18117
include_expsyms=$lt_include_expsyms_GCJ
18118
 
18119
# ### END LIBTOOL TAG CONFIG: $tagname
18120
 
18121
__EOF__
18122
 
18123
 
18124
else
18125
  # If there is no Makefile yet, we rely on a make rule to execute
18126
  # `config.status --recheck' to rerun these tests and create the
18127
  # libtool script then.
18128
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18129
  if test -f "$ltmain_in"; then
18130
    test -f Makefile && make "$ltmain"
18131
  fi
18132
fi
18133
 
18134
 
18135
ac_ext=c
18136
ac_cpp='$CPP $CPPFLAGS'
18137
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18138
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18139
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18140
 
18141
CC="$lt_save_CC"
18142
 
18143
        else
18144
          tagname=""
18145
        fi
18146
        ;;
18147
 
18148
      RC)
18149
 
18150
 
18151
# Source file extension for RC test sources.
18152
ac_ext=rc
18153
 
18154
# Object file extension for compiled RC test sources.
18155
objext=o
18156
objext_RC=$objext
18157
 
18158
# Code to be used in simple compile tests
18159
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18160
 
18161
# Code to be used in simple link tests
18162
lt_simple_link_test_code="$lt_simple_compile_test_code"
18163
 
18164
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18165
 
18166
# If no C compiler was specified, use CC.
18167
LTCC=${LTCC-"$CC"}
18168
 
18169
# If no C compiler flags were specified, use CFLAGS.
18170
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18171
 
18172
# Allow CC to be a program name with arguments.
18173
compiler=$CC
18174
 
18175
 
18176
# save warnings/boilerplate of simple test code
18177
ac_outfile=conftest.$ac_objext
18178
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18179
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18180
_lt_compiler_boilerplate=`cat conftest.err`
18181
$rm conftest*
18182
 
18183
ac_outfile=conftest.$ac_objext
18184
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18185
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18186
_lt_linker_boilerplate=`cat conftest.err`
18187
$rm conftest*
18188
 
18189
 
18190
# Allow CC to be a program name with arguments.
18191
lt_save_CC="$CC"
18192
CC=${RC-"windres"}
18193
compiler=$CC
18194
compiler_RC=$CC
18195
for cc_temp in $compiler""; do
18196
  case $cc_temp in
18197
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18198
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18199
    \-*) ;;
18200
    *) break;;
18201
  esac
18202
done
18203
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18204
 
18205
lt_cv_prog_compiler_c_o_RC=yes
18206
 
18207
# The else clause should only fire when bootstrapping the
18208
# libtool distribution, otherwise you forgot to ship ltmain.sh
18209
# with your package, and you will get complaints that there are
18210
# no rules to generate ltmain.sh.
18211
if test -f "$ltmain"; then
18212
  # See if we are running on zsh, and set the options which allow our commands through
18213
  # without removal of \ escapes.
18214
  if test -n "${ZSH_VERSION+set}" ; then
18215
    setopt NO_GLOB_SUBST
18216
  fi
18217
  # Now quote all the things that may contain metacharacters while being
18218
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18219
  # variables and quote the copies for generation of the libtool script.
18220
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18221
    SED SHELL STRIP \
18222
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18223
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18224
    deplibs_check_method reload_flag reload_cmds need_locks \
18225
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18226
    lt_cv_sys_global_symbol_to_c_name_address \
18227
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18228
    old_postinstall_cmds old_postuninstall_cmds \
18229
    compiler_RC \
18230
    CC_RC \
18231
    LD_RC \
18232
    lt_prog_compiler_wl_RC \
18233
    lt_prog_compiler_pic_RC \
18234
    lt_prog_compiler_static_RC \
18235
    lt_prog_compiler_no_builtin_flag_RC \
18236
    export_dynamic_flag_spec_RC \
18237
    thread_safe_flag_spec_RC \
18238
    whole_archive_flag_spec_RC \
18239
    enable_shared_with_static_runtimes_RC \
18240
    old_archive_cmds_RC \
18241
    old_archive_from_new_cmds_RC \
18242
    predep_objects_RC \
18243
    postdep_objects_RC \
18244
    predeps_RC \
18245
    postdeps_RC \
18246
    compiler_lib_search_path_RC \
18247
    archive_cmds_RC \
18248
    archive_expsym_cmds_RC \
18249
    postinstall_cmds_RC \
18250
    postuninstall_cmds_RC \
18251
    old_archive_from_expsyms_cmds_RC \
18252
    allow_undefined_flag_RC \
18253
    no_undefined_flag_RC \
18254
    export_symbols_cmds_RC \
18255
    hardcode_libdir_flag_spec_RC \
18256
    hardcode_libdir_flag_spec_ld_RC \
18257
    hardcode_libdir_separator_RC \
18258
    hardcode_automatic_RC \
18259
    module_cmds_RC \
18260
    module_expsym_cmds_RC \
18261
    lt_cv_prog_compiler_c_o_RC \
18262
    fix_srcfile_path_RC \
18263
    exclude_expsyms_RC \
18264
    include_expsyms_RC; do
18265
 
18266
    case $var in
18267
    old_archive_cmds_RC | \
18268
    old_archive_from_new_cmds_RC | \
18269
    archive_cmds_RC | \
18270
    archive_expsym_cmds_RC | \
18271
    module_cmds_RC | \
18272
    module_expsym_cmds_RC | \
18273
    old_archive_from_expsyms_cmds_RC | \
18274
    export_symbols_cmds_RC | \
18275
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18276
    postinstall_cmds | postuninstall_cmds | \
18277
    old_postinstall_cmds | old_postuninstall_cmds | \
18278
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18279
      # Double-quote double-evaled strings.
18280
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18281
      ;;
18282
    *)
18283
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18284
      ;;
18285
    esac
18286
  done
18287
 
18288
  case $lt_echo in
18289
  *'\$0 --fallback-echo"')
18290
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18291
    ;;
18292
  esac
18293
 
18294
cfgfile="$ofile"
18295
 
18296
  cat <<__EOF__ >> "$cfgfile"
18297
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18298
 
18299
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18300
 
18301
# Shell to use when invoking shell scripts.
18302
SHELL=$lt_SHELL
18303
 
18304
# Whether or not to build shared libraries.
18305
build_libtool_libs=$enable_shared
18306
 
18307
# Whether or not to build static libraries.
18308
build_old_libs=$enable_static
18309
 
18310
# Whether or not to add -lc for building shared libraries.
18311
build_libtool_need_lc=$archive_cmds_need_lc_RC
18312
 
18313
# Whether or not to disallow shared libs when runtime libs are static
18314
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18315
 
18316
# Whether or not to optimize for fast installation.
18317
fast_install=$enable_fast_install
18318
 
18319
# The host system.
18320
host_alias=$host_alias
18321
host=$host
18322
host_os=$host_os
18323
 
18324
# The build system.
18325
build_alias=$build_alias
18326
build=$build
18327
build_os=$build_os
18328
 
18329
# An echo program that does not interpret backslashes.
18330
echo=$lt_echo
18331
 
18332
# The archiver.
18333
AR=$lt_AR
18334
AR_FLAGS=$lt_AR_FLAGS
18335
 
18336
# A C compiler.
18337
LTCC=$lt_LTCC
18338
 
18339
# LTCC compiler flags.
18340
LTCFLAGS=$lt_LTCFLAGS
18341
 
18342
# A language-specific compiler.
18343
CC=$lt_compiler_RC
18344
 
18345
# Is the compiler the GNU C compiler?
18346
with_gcc=$GCC_RC
18347
 
18348
# An ERE matcher.
18349
EGREP=$lt_EGREP
18350
 
18351
# The linker used to build libraries.
18352
LD=$lt_LD_RC
18353
 
18354
# Whether we need hard or soft links.
18355
LN_S=$lt_LN_S
18356
 
18357
# A BSD-compatible nm program.
18358
NM=$lt_NM
18359
 
18360
# A symbol stripping program
18361
STRIP=$lt_STRIP
18362
 
18363
# Used to examine libraries when file_magic_cmd begins "file"
18364
MAGIC_CMD=$MAGIC_CMD
18365
 
18366
# Used on cygwin: DLL creation program.
18367
DLLTOOL="$DLLTOOL"
18368
 
18369
# Used on cygwin: object dumper.
18370
OBJDUMP="$OBJDUMP"
18371
 
18372
# Used on cygwin: assembler.
18373
AS="$AS"
18374
 
18375
# The name of the directory that contains temporary libtool files.
18376
objdir=$objdir
18377
 
18378
# How to create reloadable object files.
18379
reload_flag=$lt_reload_flag
18380
reload_cmds=$lt_reload_cmds
18381
 
18382
# How to pass a linker flag through the compiler.
18383
wl=$lt_lt_prog_compiler_wl_RC
18384
 
18385
# Object file suffix (normally "o").
18386
objext="$ac_objext"
18387
 
18388
# Old archive suffix (normally "a").
18389
libext="$libext"
18390
 
18391
# Shared library suffix (normally ".so").
18392
shrext_cmds='$shrext_cmds'
18393
 
18394
# Executable file suffix (normally "").
18395
exeext="$exeext"
18396
 
18397
# Additional compiler flags for building library objects.
18398
pic_flag=$lt_lt_prog_compiler_pic_RC
18399
pic_mode=$pic_mode
18400
 
18401
# What is the maximum length of a command?
18402
max_cmd_len=$lt_cv_sys_max_cmd_len
18403
 
18404
# Does compiler simultaneously support -c and -o options?
18405
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18406
 
18407
# Must we lock files when doing compilation?
18408
need_locks=$lt_need_locks
18409
 
18410
# Do we need the lib prefix for modules?
18411
need_lib_prefix=$need_lib_prefix
18412
 
18413
# Do we need a version for libraries?
18414
need_version=$need_version
18415
 
18416
# Whether dlopen is supported.
18417
dlopen_support=$enable_dlopen
18418
 
18419
# Whether dlopen of programs is supported.
18420
dlopen_self=$enable_dlopen_self
18421
 
18422
# Whether dlopen of statically linked programs is supported.
18423
dlopen_self_static=$enable_dlopen_self_static
18424
 
18425
# Compiler flag to prevent dynamic linking.
18426
link_static_flag=$lt_lt_prog_compiler_static_RC
18427
 
18428
# Compiler flag to turn off builtin functions.
18429
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18430
 
18431
# Compiler flag to allow reflexive dlopens.
18432
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18433
 
18434
# Compiler flag to generate shared objects directly from archives.
18435
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18436
 
18437
# Compiler flag to generate thread-safe objects.
18438
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18439
 
18440
# Library versioning type.
18441
version_type=$version_type
18442
 
18443
# Format of library name prefix.
18444
libname_spec=$lt_libname_spec
18445
 
18446
# List of archive names.  First name is the real one, the rest are links.
18447
# The last name is the one that the linker finds with -lNAME.
18448
library_names_spec=$lt_library_names_spec
18449
 
18450
# The coded name of the library, if different from the real name.
18451
soname_spec=$lt_soname_spec
18452
 
18453
# Commands used to build and install an old-style archive.
18454
RANLIB=$lt_RANLIB
18455
old_archive_cmds=$lt_old_archive_cmds_RC
18456
old_postinstall_cmds=$lt_old_postinstall_cmds
18457
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18458
 
18459
# Create an old-style archive from a shared archive.
18460
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18461
 
18462
# Create a temporary old-style archive to link instead of a shared archive.
18463
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18464
 
18465
# Commands used to build and install a shared archive.
18466
archive_cmds=$lt_archive_cmds_RC
18467
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18468
postinstall_cmds=$lt_postinstall_cmds
18469
postuninstall_cmds=$lt_postuninstall_cmds
18470
 
18471
# Commands used to build a loadable module (assumed same as above if empty)
18472
module_cmds=$lt_module_cmds_RC
18473
module_expsym_cmds=$lt_module_expsym_cmds_RC
18474
 
18475
# Commands to strip libraries.
18476
old_striplib=$lt_old_striplib
18477
striplib=$lt_striplib
18478
 
18479
# Dependencies to place before the objects being linked to create a
18480
# shared library.
18481
predep_objects=$lt_predep_objects_RC
18482
 
18483
# Dependencies to place after the objects being linked to create a
18484
# shared library.
18485
postdep_objects=$lt_postdep_objects_RC
18486
 
18487
# Dependencies to place before the objects being linked to create a
18488
# shared library.
18489
predeps=$lt_predeps_RC
18490
 
18491
# Dependencies to place after the objects being linked to create a
18492
# shared library.
18493
postdeps=$lt_postdeps_RC
18494
 
18495
# The library search path used internally by the compiler when linking
18496
# a shared library.
18497
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18498
 
18499
# Method to check whether dependent libraries are shared objects.
18500
deplibs_check_method=$lt_deplibs_check_method
18501
 
18502
# Command to use when deplibs_check_method == file_magic.
18503
file_magic_cmd=$lt_file_magic_cmd
18504
 
18505
# Flag that allows shared libraries with undefined symbols to be built.
18506
allow_undefined_flag=$lt_allow_undefined_flag_RC
18507
 
18508
# Flag that forces no undefined symbols.
18509
no_undefined_flag=$lt_no_undefined_flag_RC
18510
 
18511
# Commands used to finish a libtool library installation in a directory.
18512
finish_cmds=$lt_finish_cmds
18513
 
18514
# Same as above, but a single script fragment to be evaled but not shown.
18515
finish_eval=$lt_finish_eval
18516
 
18517
# Take the output of nm and produce a listing of raw symbols and C names.
18518
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18519
 
18520
# Transform the output of nm in a proper C declaration
18521
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18522
 
18523
# Transform the output of nm in a C name address pair
18524
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18525
 
18526
# This is the shared library runtime path variable.
18527
runpath_var=$runpath_var
18528
 
18529
# This is the shared library path variable.
18530
shlibpath_var=$shlibpath_var
18531
 
18532
# Is shlibpath searched before the hard-coded library search path?
18533
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18534
 
18535
# How to hardcode a shared library path into an executable.
18536
hardcode_action=$hardcode_action_RC
18537
 
18538
# Whether we should hardcode library paths into libraries.
18539
hardcode_into_libs=$hardcode_into_libs
18540
 
18541
# Flag to hardcode \$libdir into a binary during linking.
18542
# This must work even if \$libdir does not exist.
18543
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18544
 
18545
# If ld is used when linking, flag to hardcode \$libdir into
18546
# a binary during linking. This must work even if \$libdir does
18547
# not exist.
18548
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18549
 
18550
# Whether we need a single -rpath flag with a separated argument.
18551
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18552
 
18553
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18554
# resulting binary.
18555
hardcode_direct=$hardcode_direct_RC
18556
 
18557
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18558
# resulting binary.
18559
hardcode_minus_L=$hardcode_minus_L_RC
18560
 
18561
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18562
# the resulting binary.
18563
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18564
 
18565
# Set to yes if building a shared library automatically hardcodes DIR into the library
18566
# and all subsequent libraries and executables linked against it.
18567
hardcode_automatic=$hardcode_automatic_RC
18568
 
18569
# Variables whose values should be saved in libtool wrapper scripts and
18570
# restored at relink time.
18571
variables_saved_for_relink="$variables_saved_for_relink"
18572
 
18573
# Whether libtool must link a program against all its dependency libraries.
18574
link_all_deplibs=$link_all_deplibs_RC
18575
 
18576
# Compile-time system search path for libraries
18577
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18578
 
18579
# Run-time system search path for libraries
18580
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18581
 
18582
# Fix the shell variable \$srcfile for the compiler.
18583
fix_srcfile_path=$lt_fix_srcfile_path
18584
 
18585
# Set to yes if exported symbols are required.
18586
always_export_symbols=$always_export_symbols_RC
18587
 
18588
# The commands to list exported symbols.
18589
export_symbols_cmds=$lt_export_symbols_cmds_RC
18590
 
18591
# The commands to extract the exported symbol list from a shared archive.
18592
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18593
 
18594
# Symbols that should not be listed in the preloaded symbols.
18595
exclude_expsyms=$lt_exclude_expsyms_RC
18596
 
18597
# Symbols that must always be exported.
18598
include_expsyms=$lt_include_expsyms_RC
18599
 
18600
# ### END LIBTOOL TAG CONFIG: $tagname
18601
 
18602
__EOF__
18603
 
18604
 
18605
else
18606
  # If there is no Makefile yet, we rely on a make rule to execute
18607
  # `config.status --recheck' to rerun these tests and create the
18608
  # libtool script then.
18609
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18610
  if test -f "$ltmain_in"; then
18611
    test -f Makefile && make "$ltmain"
18612
  fi
18613
fi
18614
 
18615
 
18616
ac_ext=c
18617
ac_cpp='$CPP $CPPFLAGS'
18618
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18619
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18620
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18621
 
18622
CC="$lt_save_CC"
18623
 
18624
        ;;
18625
 
18626
      *)
18627
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18628
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18629
   { (exit 1); exit 1; }; }
18630
        ;;
18631
      esac
18632
 
18633
      # Append the new tag name to the list of available tags.
18634
      if test -n "$tagname" ; then
18635
      available_tags="$available_tags $tagname"
18636
    fi
18637
    fi
18638
  done
18639
  IFS="$lt_save_ifs"
18640
 
18641
  # Now substitute the updated list of available tags.
18642
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18643
    mv "${ofile}T" "$ofile"
18644
    chmod +x "$ofile"
18645
  else
18646
    rm -f "${ofile}T"
18647
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18648
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18649
   { (exit 1); exit 1; }; }
18650
  fi
18651
fi
18652
 
18653
 
18654
 
18655
# This can be used to rebuild libtool when needed
18656
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18657
 
18658
# Always use our own libtool.
18659
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18660
 
18661
# Prevent multiple expansion
18662
 
18663
 
18664
 
18665
 
18666
 
18667
 
18668
 
18669
 
18670
 
18671
 
18672
 
18673
 
18674
 
18675
 
18676
 
18677
 
18678
 
18679
 
18680
 
18681
 
18682
am__api_version='1.10'
18683
 
18684
# Find a good install program.  We prefer a C program (faster),
18685
# so one script is as good as another.  But avoid the broken or
18686
# incompatible versions:
18687
# SysV /etc/install, /usr/sbin/install
18688
# SunOS /usr/etc/install
18689
# IRIX /sbin/install
18690
# AIX /bin/install
18691
# AmigaOS /C/install, which installs bootblocks on floppy discs
18692
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18693
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18694
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18695
# OS/2's system install, which has a completely different semantic
18696
# ./install, which can be erroneously created by make from ./install.sh.
18697
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18698
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
18699
if test -z "$INSTALL"; then
18700
if test "${ac_cv_path_install+set}" = set; then
18701
  echo $ECHO_N "(cached) $ECHO_C" >&6
18702
else
18703
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18704
for as_dir in $PATH
18705
do
18706
  IFS=$as_save_IFS
18707
  test -z "$as_dir" && as_dir=.
18708
  # Account for people who put trailing slashes in PATH elements.
18709
case $as_dir/ in
18710
  ./ | .// | /cC/* | \
18711
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18712
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18713
  /usr/ucb/* ) ;;
18714
  *)
18715
    # OSF1 and SCO ODT 3.0 have their own names for install.
18716
    # Don't use installbsd from OSF since it installs stuff as root
18717
    # by default.
18718
    for ac_prog in ginstall scoinst install; do
18719
      for ac_exec_ext in '' $ac_executable_extensions; do
18720
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18721
          if test $ac_prog = install &&
18722
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18723
            # AIX install.  It has an incompatible calling convention.
18724
            :
18725
          elif test $ac_prog = install &&
18726
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18727
            # program-specific install script used by HP pwplus--don't use.
18728
            :
18729
          else
18730
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18731
            break 3
18732
          fi
18733
        fi
18734
      done
18735
    done
18736
    ;;
18737
esac
18738
done
18739
IFS=$as_save_IFS
18740
 
18741
 
18742
fi
18743
  if test "${ac_cv_path_install+set}" = set; then
18744
    INSTALL=$ac_cv_path_install
18745
  else
18746
    # As a last resort, use the slow shell script.  Don't cache a
18747
    # value for INSTALL within a source directory, because that will
18748
    # break other packages using the cache if that directory is
18749
    # removed, or if the value is a relative name.
18750
    INSTALL=$ac_install_sh
18751
  fi
18752
fi
18753
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
18754
echo "${ECHO_T}$INSTALL" >&6; }
18755
 
18756
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18757
# It thinks the first close brace ends the variable substitution.
18758
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18759
 
18760
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18761
 
18762
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18763
 
18764
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18765
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
18766
# Just in case
18767
sleep 1
18768
echo timestamp > conftest.file
18769
# Do `set' in a subshell so we don't clobber the current shell's
18770
# arguments.  Must try -L first in case configure is actually a
18771
# symlink; some systems play weird games with the mod time of symlinks
18772
# (eg FreeBSD returns the mod time of the symlink's containing
18773
# directory).
18774
if (
18775
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18776
   if test "$*" = "X"; then
18777
      # -L didn't work.
18778
      set X `ls -t $srcdir/configure conftest.file`
18779
   fi
18780
   rm -f conftest.file
18781
   if test "$*" != "X $srcdir/configure conftest.file" \
18782
      && test "$*" != "X conftest.file $srcdir/configure"; then
18783
 
18784
      # If neither matched, then we have a broken ls.  This can happen
18785
      # if, for instance, CONFIG_SHELL is bash and it inherits a
18786
      # broken ls alias from the environment.  This has actually
18787
      # happened.  Such a system could not be considered "sane".
18788
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
18789
alias in your environment" >&5
18790
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
18791
alias in your environment" >&2;}
18792
   { (exit 1); exit 1; }; }
18793
   fi
18794
 
18795
   test "$2" = conftest.file
18796
   )
18797
then
18798
   # Ok.
18799
   :
18800
else
18801
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18802
Check your system clock" >&5
18803
echo "$as_me: error: newly created file is older than distributed files!
18804
Check your system clock" >&2;}
18805
   { (exit 1); exit 1; }; }
18806
fi
18807
{ echo "$as_me:$LINENO: result: yes" >&5
18808
echo "${ECHO_T}yes" >&6; }
18809
test "$program_prefix" != NONE &&
18810
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
18811
# Use a double $ so make ignores it.
18812
test "$program_suffix" != NONE &&
18813
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18814
# Double any \ or $.  echo might interpret backslashes.
18815
# By default was `s,x,x', remove it if useless.
18816
cat <<\_ACEOF >conftest.sed
18817
s/[\\$]/&&/g;s/;s,x,x,$//
18818
_ACEOF
18819
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18820
rm -f conftest.sed
18821
 
18822
# expand $ac_aux_dir to an absolute path
18823
am_aux_dir=`cd $ac_aux_dir && pwd`
18824
 
18825
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18826
# Use eval to expand $SHELL
18827
if eval "$MISSING --run true"; then
18828
  am_missing_run="$MISSING --run "
18829
else
18830
  am_missing_run=
18831
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18832
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18833
fi
18834
 
18835
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18836
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
18837
if test -z "$MKDIR_P"; then
18838
  if test "${ac_cv_path_mkdir+set}" = set; then
18839
  echo $ECHO_N "(cached) $ECHO_C" >&6
18840
else
18841
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18842
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18843
do
18844
  IFS=$as_save_IFS
18845
  test -z "$as_dir" && as_dir=.
18846
  for ac_prog in mkdir gmkdir; do
18847
         for ac_exec_ext in '' $ac_executable_extensions; do
18848
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18849
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18850
             'mkdir (GNU coreutils) '* | \
18851
             'mkdir (coreutils) '* | \
18852
             'mkdir (fileutils) '4.1*)
18853
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18854
               break 3;;
18855
           esac
18856
         done
18857
       done
18858
done
18859
IFS=$as_save_IFS
18860
 
18861
fi
18862
 
18863
  if test "${ac_cv_path_mkdir+set}" = set; then
18864
    MKDIR_P="$ac_cv_path_mkdir -p"
18865
  else
18866
    # As a last resort, use the slow shell script.  Don't cache a
18867
    # value for MKDIR_P within a source directory, because that will
18868
    # break other packages using the cache if that directory is
18869
    # removed, or if the value is a relative name.
18870
    test -d ./--version && rmdir ./--version
18871
    MKDIR_P="$ac_install_sh -d"
18872
  fi
18873
fi
18874
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18875
echo "${ECHO_T}$MKDIR_P" >&6; }
18876
 
18877
mkdir_p="$MKDIR_P"
18878
case $mkdir_p in
18879
  [\\/$]* | ?:[\\/]*) ;;
18880
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18881
esac
18882
 
18883
for ac_prog in gawk mawk nawk awk
18884
do
18885
  # Extract the first word of "$ac_prog", so it can be a program name with args.
18886
set dummy $ac_prog; ac_word=$2
18887
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18888
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18889
if test "${ac_cv_prog_AWK+set}" = set; then
18890
  echo $ECHO_N "(cached) $ECHO_C" >&6
18891
else
18892
  if test -n "$AWK"; then
18893
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
18894
else
18895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18896
for as_dir in $PATH
18897
do
18898
  IFS=$as_save_IFS
18899
  test -z "$as_dir" && as_dir=.
18900
  for ac_exec_ext in '' $ac_executable_extensions; do
18901
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18902
    ac_cv_prog_AWK="$ac_prog"
18903
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18904
    break 2
18905
  fi
18906
done
18907
done
18908
IFS=$as_save_IFS
18909
 
18910
fi
18911
fi
18912
AWK=$ac_cv_prog_AWK
18913
if test -n "$AWK"; then
18914
  { echo "$as_me:$LINENO: result: $AWK" >&5
18915
echo "${ECHO_T}$AWK" >&6; }
18916
else
18917
  { echo "$as_me:$LINENO: result: no" >&5
18918
echo "${ECHO_T}no" >&6; }
18919
fi
18920
 
18921
 
18922
  test -n "$AWK" && break
18923
done
18924
 
18925
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18926
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
18927
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18928
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18929
  echo $ECHO_N "(cached) $ECHO_C" >&6
18930
else
18931
  cat >conftest.make <<\_ACEOF
18932
SHELL = /bin/sh
18933
all:
18934
        @echo '@@@%%%=$(MAKE)=@@@%%%'
18935
_ACEOF
18936
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18937
case `${MAKE-make} -f conftest.make 2>/dev/null` in
18938
  *@@@%%%=?*=@@@%%%*)
18939
    eval ac_cv_prog_make_${ac_make}_set=yes;;
18940
  *)
18941
    eval ac_cv_prog_make_${ac_make}_set=no;;
18942
esac
18943
rm -f conftest.make
18944
fi
18945
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18946
  { echo "$as_me:$LINENO: result: yes" >&5
18947
echo "${ECHO_T}yes" >&6; }
18948
  SET_MAKE=
18949
else
18950
  { echo "$as_me:$LINENO: result: no" >&5
18951
echo "${ECHO_T}no" >&6; }
18952
  SET_MAKE="MAKE=${MAKE-make}"
18953
fi
18954
 
18955
rm -rf .tst 2>/dev/null
18956
mkdir .tst 2>/dev/null
18957
if test -d .tst; then
18958
  am__leading_dot=.
18959
else
18960
  am__leading_dot=_
18961
fi
18962
rmdir .tst 2>/dev/null
18963
 
18964
DEPDIR="${am__leading_dot}deps"
18965
 
18966
ac_config_commands="$ac_config_commands depfiles"
18967
 
18968
 
18969
am_make=${MAKE-make}
18970
cat > confinc << 'END'
18971
am__doit:
18972
        @echo done
18973
.PHONY: am__doit
18974
END
18975
# If we don't find an include directive, just comment out the code.
18976
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
18977
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
18978
am__include="#"
18979
am__quote=
18980
_am_result=none
18981
# First try GNU make style include.
18982
echo "include confinc" > confmf
18983
# We grep out `Entering directory' and `Leaving directory'
18984
# messages which can occur if `w' ends up in MAKEFLAGS.
18985
# In particular we don't look at `^make:' because GNU make might
18986
# be invoked under some other name (usually "gmake"), in which
18987
# case it prints its new name instead of `make'.
18988
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
18989
   am__include=include
18990
   am__quote=
18991
   _am_result=GNU
18992
fi
18993
# Now try BSD make style include.
18994
if test "$am__include" = "#"; then
18995
   echo '.include "confinc"' > confmf
18996
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
18997
      am__include=.include
18998
      am__quote="\""
18999
      _am_result=BSD
19000
   fi
19001
fi
19002
 
19003
 
19004
{ echo "$as_me:$LINENO: result: $_am_result" >&5
19005
echo "${ECHO_T}$_am_result" >&6; }
19006
rm -f confinc confmf
19007
 
19008
# Check whether --enable-dependency-tracking was given.
19009
if test "${enable_dependency_tracking+set}" = set; then
19010
  enableval=$enable_dependency_tracking;
19011
fi
19012
 
19013
if test "x$enable_dependency_tracking" != xno; then
19014
  am_depcomp="$ac_aux_dir/depcomp"
19015
  AMDEPBACKSLASH='\'
19016
fi
19017
 if test "x$enable_dependency_tracking" != xno; then
19018
  AMDEP_TRUE=
19019
  AMDEP_FALSE='#'
19020
else
19021
  AMDEP_TRUE='#'
19022
  AMDEP_FALSE=
19023
fi
19024
 
19025
 
19026
if test "`cd $srcdir && pwd`" != "`pwd`"; then
19027
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19028
  # is not polluted with repeated "-I."
19029
  am__isrc=' -I$(srcdir)'
19030
  # test to see if srcdir already configured
19031
  if test -f $srcdir/config.status; then
19032
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19033
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19034
   { (exit 1); exit 1; }; }
19035
  fi
19036
fi
19037
 
19038
# test whether we have cygpath
19039
if test -z "$CYGPATH_W"; then
19040
  if (cygpath --version) >/dev/null 2>/dev/null; then
19041
    CYGPATH_W='cygpath -w'
19042
  else
19043
    CYGPATH_W=echo
19044
  fi
19045
fi
19046
 
19047
 
19048
# Define the identity of the package.
19049
 PACKAGE='or1ksim'
19050
 VERSION='0.3.0'
19051
 
19052
 
19053
cat >>confdefs.h <<_ACEOF
19054
@%:@define PACKAGE "$PACKAGE"
19055
_ACEOF
19056
 
19057
 
19058
cat >>confdefs.h <<_ACEOF
19059
@%:@define VERSION "$VERSION"
19060
_ACEOF
19061
 
19062
# Some tools Automake needs.
19063
 
19064
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19065
 
19066
 
19067
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19068
 
19069
 
19070
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19071
 
19072
 
19073
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19074
 
19075
 
19076
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19077
 
19078
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19079
 
19080
# Installed binaries are usually stripped using `strip' when the user
19081
# run `make install-strip'.  However `strip' might not be the right
19082
# tool to use in cross-compilation environments, therefore Automake
19083
# will honor the `STRIP' environment variable to overrule this program.
19084
if test "$cross_compiling" != no; then
19085
  if test -n "$ac_tool_prefix"; then
19086
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19087
set dummy ${ac_tool_prefix}strip; ac_word=$2
19088
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19089
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19090
if test "${ac_cv_prog_STRIP+set}" = set; then
19091
  echo $ECHO_N "(cached) $ECHO_C" >&6
19092
else
19093
  if test -n "$STRIP"; then
19094
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19095
else
19096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19097
for as_dir in $PATH
19098
do
19099
  IFS=$as_save_IFS
19100
  test -z "$as_dir" && as_dir=.
19101
  for ac_exec_ext in '' $ac_executable_extensions; do
19102
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19103
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19104
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19105
    break 2
19106
  fi
19107
done
19108
done
19109
IFS=$as_save_IFS
19110
 
19111
fi
19112
fi
19113
STRIP=$ac_cv_prog_STRIP
19114
if test -n "$STRIP"; then
19115
  { echo "$as_me:$LINENO: result: $STRIP" >&5
19116
echo "${ECHO_T}$STRIP" >&6; }
19117
else
19118
  { echo "$as_me:$LINENO: result: no" >&5
19119
echo "${ECHO_T}no" >&6; }
19120
fi
19121
 
19122
 
19123
fi
19124
if test -z "$ac_cv_prog_STRIP"; then
19125
  ac_ct_STRIP=$STRIP
19126
  # Extract the first word of "strip", so it can be a program name with args.
19127
set dummy strip; ac_word=$2
19128
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19129
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19130
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19131
  echo $ECHO_N "(cached) $ECHO_C" >&6
19132
else
19133
  if test -n "$ac_ct_STRIP"; then
19134
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19135
else
19136
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19137
for as_dir in $PATH
19138
do
19139
  IFS=$as_save_IFS
19140
  test -z "$as_dir" && as_dir=.
19141
  for ac_exec_ext in '' $ac_executable_extensions; do
19142
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19143
    ac_cv_prog_ac_ct_STRIP="strip"
19144
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19145
    break 2
19146
  fi
19147
done
19148
done
19149
IFS=$as_save_IFS
19150
 
19151
fi
19152
fi
19153
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19154
if test -n "$ac_ct_STRIP"; then
19155
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19156
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19157
else
19158
  { echo "$as_me:$LINENO: result: no" >&5
19159
echo "${ECHO_T}no" >&6; }
19160
fi
19161
 
19162
  if test "x$ac_ct_STRIP" = x; then
19163
    STRIP=":"
19164
  else
19165
    case $cross_compiling:$ac_tool_warned in
19166
yes:)
19167
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19168
whose name does not start with the host triplet.  If you think this
19169
configuration is useful to you, please write to autoconf@gnu.org." >&5
19170
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19171
whose name does not start with the host triplet.  If you think this
19172
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19173
ac_tool_warned=yes ;;
19174
esac
19175
    STRIP=$ac_ct_STRIP
19176
  fi
19177
else
19178
  STRIP="$ac_cv_prog_STRIP"
19179
fi
19180
 
19181
fi
19182
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19183
 
19184
# We need awk for the "check" target.  The system "awk" is bad on
19185
# some platforms.
19186
# Always define AMTAR for backward compatibility.
19187
 
19188
AMTAR=${AMTAR-"${am_missing_run}tar"}
19189
 
19190
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19191
 
19192
 
19193
 
19194
 
19195
depcc="$CC"   am_compiler_list=
19196
 
19197
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19198
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19199
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19200
  echo $ECHO_N "(cached) $ECHO_C" >&6
19201
else
19202
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19203
  # We make a subdir and do the tests there.  Otherwise we can end up
19204
  # making bogus files that we don't know about and never remove.  For
19205
  # instance it was reported that on HP-UX the gcc test will end up
19206
  # making a dummy file named `D' -- because `-MD' means `put the output
19207
  # in D'.
19208
  mkdir conftest.dir
19209
  # Copy depcomp to subdir because otherwise we won't find it if we're
19210
  # using a relative directory.
19211
  cp "$am_depcomp" conftest.dir
19212
  cd conftest.dir
19213
  # We will build objects and dependencies in a subdirectory because
19214
  # it helps to detect inapplicable dependency modes.  For instance
19215
  # both Tru64's cc and ICC support -MD to output dependencies as a
19216
  # side effect of compilation, but ICC will put the dependencies in
19217
  # the current directory while Tru64 will put them in the object
19218
  # directory.
19219
  mkdir sub
19220
 
19221
  am_cv_CC_dependencies_compiler_type=none
19222
  if test "$am_compiler_list" = ""; then
19223
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19224
  fi
19225
  for depmode in $am_compiler_list; do
19226
    # Setup a source with many dependencies, because some compilers
19227
    # like to wrap large dependency lists on column 80 (with \), and
19228
    # we should not choose a depcomp mode which is confused by this.
19229
    #
19230
    # We need to recreate these files for each test, as the compiler may
19231
    # overwrite some of them when testing with obscure command lines.
19232
    # This happens at least with the AIX C compiler.
19233
    : > sub/conftest.c
19234
    for i in 1 2 3 4 5 6; do
19235
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19236
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19237
      # Solaris 8's {/usr,}/bin/sh.
19238
      touch sub/conftst$i.h
19239
    done
19240
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19241
 
19242
    case $depmode in
19243
    nosideeffect)
19244
      # after this tag, mechanisms are not by side-effect, so they'll
19245
      # only be used when explicitly requested
19246
      if test "x$enable_dependency_tracking" = xyes; then
19247
        continue
19248
      else
19249
        break
19250
      fi
19251
      ;;
19252
    none) break ;;
19253
    esac
19254
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19255
    # mode.  It turns out that the SunPro C++ compiler does not properly
19256
    # handle `-M -o', and we need to detect this.
19257
    if depmode=$depmode \
19258
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19259
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19260
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19261
         >/dev/null 2>conftest.err &&
19262
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19263
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19264
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19265
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19266
      # icc doesn't choke on unknown options, it will just issue warnings
19267
      # or remarks (even with -Werror).  So we grep stderr for any message
19268
      # that says an option was ignored or not supported.
19269
      # When given -MP, icc 7.0 and 7.1 complain thusly:
19270
      #   icc: Command line warning: ignoring option '-M'; no argument required
19271
      # The diagnosis changed in icc 8.0:
19272
      #   icc: Command line remark: option '-MP' not supported
19273
      if (grep 'ignoring option' conftest.err ||
19274
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19275
        am_cv_CC_dependencies_compiler_type=$depmode
19276
        break
19277
      fi
19278
    fi
19279
  done
19280
 
19281
  cd ..
19282
  rm -rf conftest.dir
19283
else
19284
  am_cv_CC_dependencies_compiler_type=none
19285
fi
19286
 
19287
fi
19288
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19289
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19290
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19291
 
19292
 if
19293
  test "x$enable_dependency_tracking" != xno \
19294
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19295
  am__fastdepCC_TRUE=
19296
  am__fastdepCC_FALSE='#'
19297
else
19298
  am__fastdepCC_TRUE='#'
19299
  am__fastdepCC_FALSE=
19300
fi
19301
 
19302
 
19303
depcc="$CXX"  am_compiler_list=
19304
 
19305
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19306
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19307
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19308
  echo $ECHO_N "(cached) $ECHO_C" >&6
19309
else
19310
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19311
  # We make a subdir and do the tests there.  Otherwise we can end up
19312
  # making bogus files that we don't know about and never remove.  For
19313
  # instance it was reported that on HP-UX the gcc test will end up
19314
  # making a dummy file named `D' -- because `-MD' means `put the output
19315
  # in D'.
19316
  mkdir conftest.dir
19317
  # Copy depcomp to subdir because otherwise we won't find it if we're
19318
  # using a relative directory.
19319
  cp "$am_depcomp" conftest.dir
19320
  cd conftest.dir
19321
  # We will build objects and dependencies in a subdirectory because
19322
  # it helps to detect inapplicable dependency modes.  For instance
19323
  # both Tru64's cc and ICC support -MD to output dependencies as a
19324
  # side effect of compilation, but ICC will put the dependencies in
19325
  # the current directory while Tru64 will put them in the object
19326
  # directory.
19327
  mkdir sub
19328
 
19329
  am_cv_CXX_dependencies_compiler_type=none
19330
  if test "$am_compiler_list" = ""; then
19331
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19332
  fi
19333
  for depmode in $am_compiler_list; do
19334
    # Setup a source with many dependencies, because some compilers
19335
    # like to wrap large dependency lists on column 80 (with \), and
19336
    # we should not choose a depcomp mode which is confused by this.
19337
    #
19338
    # We need to recreate these files for each test, as the compiler may
19339
    # overwrite some of them when testing with obscure command lines.
19340
    # This happens at least with the AIX C compiler.
19341
    : > sub/conftest.c
19342
    for i in 1 2 3 4 5 6; do
19343
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19344
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19345
      # Solaris 8's {/usr,}/bin/sh.
19346
      touch sub/conftst$i.h
19347
    done
19348
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19349
 
19350
    case $depmode in
19351
    nosideeffect)
19352
      # after this tag, mechanisms are not by side-effect, so they'll
19353
      # only be used when explicitly requested
19354
      if test "x$enable_dependency_tracking" = xyes; then
19355
        continue
19356
      else
19357
        break
19358
      fi
19359
      ;;
19360
    none) break ;;
19361
    esac
19362
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19363
    # mode.  It turns out that the SunPro C++ compiler does not properly
19364
    # handle `-M -o', and we need to detect this.
19365
    if depmode=$depmode \
19366
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19367
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19368
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19369
         >/dev/null 2>conftest.err &&
19370
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19371
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19372
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19373
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19374
      # icc doesn't choke on unknown options, it will just issue warnings
19375
      # or remarks (even with -Werror).  So we grep stderr for any message
19376
      # that says an option was ignored or not supported.
19377
      # When given -MP, icc 7.0 and 7.1 complain thusly:
19378
      #   icc: Command line warning: ignoring option '-M'; no argument required
19379
      # The diagnosis changed in icc 8.0:
19380
      #   icc: Command line remark: option '-MP' not supported
19381
      if (grep 'ignoring option' conftest.err ||
19382
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19383
        am_cv_CXX_dependencies_compiler_type=$depmode
19384
        break
19385
      fi
19386
    fi
19387
  done
19388
 
19389
  cd ..
19390
  rm -rf conftest.dir
19391
else
19392
  am_cv_CXX_dependencies_compiler_type=none
19393
fi
19394
 
19395
fi
19396
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19397
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
19398
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19399
 
19400
 if
19401
  test "x$enable_dependency_tracking" != xno \
19402
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19403
  am__fastdepCXX_TRUE=
19404
  am__fastdepCXX_FALSE='#'
19405
else
19406
  am__fastdepCXX_TRUE='#'
19407
  am__fastdepCXX_FALSE=
19408
fi
19409
 
19410
 
19411
 
19412
ac_config_headers="$ac_config_headers config.h"
19413
 
19414
 
19415
 
19416
 
19417
# make sure we are using a recent autoconf version
19418
 
19419
 
19420 60 jeremybenn
# yuck.
19421 19 jeremybenn
case "$target_cpu" in
19422
or32*)  CPU_ARCH=or32;
19423 60 jeremybenn
        ARCH_ISA=OR32;
19424
 
19425
cat >>confdefs.h <<\_ACEOF
19426
@%:@define OR32_TYPES 1
19427
_ACEOF
19428
;;
19429 19 jeremybenn
dlx*)   CPU_ARCH=dlx;
19430
        ARCH_ISA=DLX;;
19431 60 jeremybenn
*)      { echo "$as_me:$LINENO: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
19432
echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
19433
        CPU_ARCH=or32;
19434
        ARCH_ISA=OR32;
19435
 
19436
cat >>confdefs.h <<\_ACEOF
19437
@%:@define OR32_TYPES 1
19438
_ACEOF
19439
;;
19440 19 jeremybenn
esac
19441
 
19442 60 jeremybenn
# determine endianism from target CPU name. If it has "little" in the name,
19443
# then its litte endian, otherwise its big endian (default for OR1K)
19444
case "$target_cpu" in
19445
*little*)
19446
cat >>confdefs.h <<\_ACEOF
19447
@%:@define OR32_LITTLE_ENDIAN 1
19448
_ACEOF
19449
;;
19450
       *)
19451
cat >>confdefs.h <<\_ACEOF
19452
@%:@define OR32_BIG_ENDIAN 1
19453
_ACEOF
19454
;;
19455
esac
19456 19 jeremybenn
 
19457 60 jeremybenn
 
19458
 
19459 19 jeremybenn
# We want these before the checks, so the checks can modify their values.
19460
test -z "$CFLAGS" && CFLAGS="-g -Wall" auto_cflags=1
19461
 
19462
ac_ext=c
19463
ac_cpp='$CPP $CPPFLAGS'
19464
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19467
if test -n "$ac_tool_prefix"; then
19468
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19469
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19470
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19471
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19472
if test "${ac_cv_prog_CC+set}" = set; then
19473
  echo $ECHO_N "(cached) $ECHO_C" >&6
19474
else
19475
  if test -n "$CC"; then
19476
  ac_cv_prog_CC="$CC" # Let the user override the test.
19477
else
19478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19479
for as_dir in $PATH
19480
do
19481
  IFS=$as_save_IFS
19482
  test -z "$as_dir" && as_dir=.
19483
  for ac_exec_ext in '' $ac_executable_extensions; do
19484
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19485
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19486
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19487
    break 2
19488
  fi
19489
done
19490
done
19491
IFS=$as_save_IFS
19492
 
19493
fi
19494
fi
19495
CC=$ac_cv_prog_CC
19496
if test -n "$CC"; then
19497
  { echo "$as_me:$LINENO: result: $CC" >&5
19498
echo "${ECHO_T}$CC" >&6; }
19499
else
19500
  { echo "$as_me:$LINENO: result: no" >&5
19501
echo "${ECHO_T}no" >&6; }
19502
fi
19503
 
19504
 
19505
fi
19506
if test -z "$ac_cv_prog_CC"; then
19507
  ac_ct_CC=$CC
19508
  # Extract the first word of "gcc", so it can be a program name with args.
19509
set dummy gcc; ac_word=$2
19510
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19511
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19512
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19513
  echo $ECHO_N "(cached) $ECHO_C" >&6
19514
else
19515
  if test -n "$ac_ct_CC"; then
19516
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19517
else
19518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19519
for as_dir in $PATH
19520
do
19521
  IFS=$as_save_IFS
19522
  test -z "$as_dir" && as_dir=.
19523
  for ac_exec_ext in '' $ac_executable_extensions; do
19524
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19525
    ac_cv_prog_ac_ct_CC="gcc"
19526
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19527
    break 2
19528
  fi
19529
done
19530
done
19531
IFS=$as_save_IFS
19532
 
19533
fi
19534
fi
19535
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19536
if test -n "$ac_ct_CC"; then
19537
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19538
echo "${ECHO_T}$ac_ct_CC" >&6; }
19539
else
19540
  { echo "$as_me:$LINENO: result: no" >&5
19541
echo "${ECHO_T}no" >&6; }
19542
fi
19543
 
19544
  if test "x$ac_ct_CC" = x; then
19545
    CC=""
19546
  else
19547
    case $cross_compiling:$ac_tool_warned in
19548
yes:)
19549
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19550
whose name does not start with the host triplet.  If you think this
19551
configuration is useful to you, please write to autoconf@gnu.org." >&5
19552
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19553
whose name does not start with the host triplet.  If you think this
19554
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19555
ac_tool_warned=yes ;;
19556
esac
19557
    CC=$ac_ct_CC
19558
  fi
19559
else
19560
  CC="$ac_cv_prog_CC"
19561
fi
19562
 
19563
if test -z "$CC"; then
19564
          if test -n "$ac_tool_prefix"; then
19565
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19566
set dummy ${ac_tool_prefix}cc; ac_word=$2
19567
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19568
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19569
if test "${ac_cv_prog_CC+set}" = set; then
19570
  echo $ECHO_N "(cached) $ECHO_C" >&6
19571
else
19572
  if test -n "$CC"; then
19573
  ac_cv_prog_CC="$CC" # Let the user override the test.
19574
else
19575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19576
for as_dir in $PATH
19577
do
19578
  IFS=$as_save_IFS
19579
  test -z "$as_dir" && as_dir=.
19580
  for ac_exec_ext in '' $ac_executable_extensions; do
19581
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19582
    ac_cv_prog_CC="${ac_tool_prefix}cc"
19583
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19584
    break 2
19585
  fi
19586
done
19587
done
19588
IFS=$as_save_IFS
19589
 
19590
fi
19591
fi
19592
CC=$ac_cv_prog_CC
19593
if test -n "$CC"; then
19594
  { echo "$as_me:$LINENO: result: $CC" >&5
19595
echo "${ECHO_T}$CC" >&6; }
19596
else
19597
  { echo "$as_me:$LINENO: result: no" >&5
19598
echo "${ECHO_T}no" >&6; }
19599
fi
19600
 
19601
 
19602
  fi
19603
fi
19604
if test -z "$CC"; then
19605
  # Extract the first word of "cc", so it can be a program name with args.
19606
set dummy cc; ac_word=$2
19607
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19608
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19609
if test "${ac_cv_prog_CC+set}" = set; then
19610
  echo $ECHO_N "(cached) $ECHO_C" >&6
19611
else
19612
  if test -n "$CC"; then
19613
  ac_cv_prog_CC="$CC" # Let the user override the test.
19614
else
19615
  ac_prog_rejected=no
19616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19617
for as_dir in $PATH
19618
do
19619
  IFS=$as_save_IFS
19620
  test -z "$as_dir" && as_dir=.
19621
  for ac_exec_ext in '' $ac_executable_extensions; do
19622
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19623
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19624
       ac_prog_rejected=yes
19625
       continue
19626
     fi
19627
    ac_cv_prog_CC="cc"
19628
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19629
    break 2
19630
  fi
19631
done
19632
done
19633
IFS=$as_save_IFS
19634
 
19635
if test $ac_prog_rejected = yes; then
19636
  # We found a bogon in the path, so make sure we never use it.
19637
  set dummy $ac_cv_prog_CC
19638
  shift
19639
  if test $@%:@ != 0; then
19640
    # We chose a different compiler from the bogus one.
19641
    # However, it has the same basename, so the bogon will be chosen
19642
    # first if we set CC to just the basename; use the full file name.
19643
    shift
19644
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19645
  fi
19646
fi
19647
fi
19648
fi
19649
CC=$ac_cv_prog_CC
19650
if test -n "$CC"; then
19651
  { echo "$as_me:$LINENO: result: $CC" >&5
19652
echo "${ECHO_T}$CC" >&6; }
19653
else
19654
  { echo "$as_me:$LINENO: result: no" >&5
19655
echo "${ECHO_T}no" >&6; }
19656
fi
19657
 
19658
 
19659
fi
19660
if test -z "$CC"; then
19661
  if test -n "$ac_tool_prefix"; then
19662
  for ac_prog in cl.exe
19663
  do
19664
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19665
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19666
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19667
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19668
if test "${ac_cv_prog_CC+set}" = set; then
19669
  echo $ECHO_N "(cached) $ECHO_C" >&6
19670
else
19671
  if test -n "$CC"; then
19672
  ac_cv_prog_CC="$CC" # Let the user override the test.
19673
else
19674
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19675
for as_dir in $PATH
19676
do
19677
  IFS=$as_save_IFS
19678
  test -z "$as_dir" && as_dir=.
19679
  for ac_exec_ext in '' $ac_executable_extensions; do
19680
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19681
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19682
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19683
    break 2
19684
  fi
19685
done
19686
done
19687
IFS=$as_save_IFS
19688
 
19689
fi
19690
fi
19691
CC=$ac_cv_prog_CC
19692
if test -n "$CC"; then
19693
  { echo "$as_me:$LINENO: result: $CC" >&5
19694
echo "${ECHO_T}$CC" >&6; }
19695
else
19696
  { echo "$as_me:$LINENO: result: no" >&5
19697
echo "${ECHO_T}no" >&6; }
19698
fi
19699
 
19700
 
19701
    test -n "$CC" && break
19702
  done
19703
fi
19704
if test -z "$CC"; then
19705
  ac_ct_CC=$CC
19706
  for ac_prog in cl.exe
19707
do
19708
  # Extract the first word of "$ac_prog", so it can be a program name with args.
19709
set dummy $ac_prog; ac_word=$2
19710
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19711
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19712
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19713
  echo $ECHO_N "(cached) $ECHO_C" >&6
19714
else
19715
  if test -n "$ac_ct_CC"; then
19716
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19717
else
19718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19719
for as_dir in $PATH
19720
do
19721
  IFS=$as_save_IFS
19722
  test -z "$as_dir" && as_dir=.
19723
  for ac_exec_ext in '' $ac_executable_extensions; do
19724
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19725
    ac_cv_prog_ac_ct_CC="$ac_prog"
19726
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19727
    break 2
19728
  fi
19729
done
19730
done
19731
IFS=$as_save_IFS
19732
 
19733
fi
19734
fi
19735
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19736
if test -n "$ac_ct_CC"; then
19737
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19738
echo "${ECHO_T}$ac_ct_CC" >&6; }
19739
else
19740
  { echo "$as_me:$LINENO: result: no" >&5
19741
echo "${ECHO_T}no" >&6; }
19742
fi
19743
 
19744
 
19745
  test -n "$ac_ct_CC" && break
19746
done
19747
 
19748
  if test "x$ac_ct_CC" = x; then
19749
    CC=""
19750
  else
19751
    case $cross_compiling:$ac_tool_warned in
19752
yes:)
19753
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19754
whose name does not start with the host triplet.  If you think this
19755
configuration is useful to you, please write to autoconf@gnu.org." >&5
19756
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19757
whose name does not start with the host triplet.  If you think this
19758
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19759
ac_tool_warned=yes ;;
19760
esac
19761
    CC=$ac_ct_CC
19762
  fi
19763
fi
19764
 
19765
fi
19766
 
19767
 
19768
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19769
See \`config.log' for more details." >&5
19770
echo "$as_me: error: no acceptable C compiler found in \$PATH
19771
See \`config.log' for more details." >&2;}
19772
   { (exit 1); exit 1; }; }
19773
 
19774
# Provide some information about the compiler.
19775
echo "$as_me:$LINENO: checking for C compiler version" >&5
19776
ac_compiler=`set X $ac_compile; echo $2`
19777
{ (ac_try="$ac_compiler --version >&5"
19778
case "(($ac_try" in
19779
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780
  *) ac_try_echo=$ac_try;;
19781
esac
19782
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783
  (eval "$ac_compiler --version >&5") 2>&5
19784
  ac_status=$?
19785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786
  (exit $ac_status); }
19787
{ (ac_try="$ac_compiler -v >&5"
19788
case "(($ac_try" in
19789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790
  *) ac_try_echo=$ac_try;;
19791
esac
19792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793
  (eval "$ac_compiler -v >&5") 2>&5
19794
  ac_status=$?
19795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796
  (exit $ac_status); }
19797
{ (ac_try="$ac_compiler -V >&5"
19798
case "(($ac_try" in
19799
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800
  *) ac_try_echo=$ac_try;;
19801
esac
19802
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803
  (eval "$ac_compiler -V >&5") 2>&5
19804
  ac_status=$?
19805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806
  (exit $ac_status); }
19807
 
19808
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19809
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19810
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19811
  echo $ECHO_N "(cached) $ECHO_C" >&6
19812
else
19813
  cat >conftest.$ac_ext <<_ACEOF
19814
/* confdefs.h.  */
19815
_ACEOF
19816
cat confdefs.h >>conftest.$ac_ext
19817
cat >>conftest.$ac_ext <<_ACEOF
19818
/* end confdefs.h.  */
19819
 
19820
int
19821
main ()
19822
{
19823
#ifndef __GNUC__
19824
       choke me
19825
#endif
19826
 
19827
  ;
19828
  return 0;
19829
}
19830
_ACEOF
19831
rm -f conftest.$ac_objext
19832
if { (ac_try="$ac_compile"
19833
case "(($ac_try" in
19834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835
  *) ac_try_echo=$ac_try;;
19836
esac
19837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838
  (eval "$ac_compile") 2>conftest.er1
19839
  ac_status=$?
19840
  grep -v '^ *+' conftest.er1 >conftest.err
19841
  rm -f conftest.er1
19842
  cat conftest.err >&5
19843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844
  (exit $ac_status); } && {
19845
         test -z "$ac_c_werror_flag" ||
19846
         test ! -s conftest.err
19847
       } && test -s conftest.$ac_objext; then
19848
  ac_compiler_gnu=yes
19849
else
19850
  echo "$as_me: failed program was:" >&5
19851
sed 's/^/| /' conftest.$ac_ext >&5
19852
 
19853
        ac_compiler_gnu=no
19854
fi
19855
 
19856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19858
 
19859
fi
19860
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19861
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19862
GCC=`test $ac_compiler_gnu = yes && echo yes`
19863
ac_test_CFLAGS=${CFLAGS+set}
19864
ac_save_CFLAGS=$CFLAGS
19865
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19866
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19867
if test "${ac_cv_prog_cc_g+set}" = set; then
19868
  echo $ECHO_N "(cached) $ECHO_C" >&6
19869
else
19870
  ac_save_c_werror_flag=$ac_c_werror_flag
19871
   ac_c_werror_flag=yes
19872
   ac_cv_prog_cc_g=no
19873
   CFLAGS="-g"
19874
   cat >conftest.$ac_ext <<_ACEOF
19875
/* confdefs.h.  */
19876
_ACEOF
19877
cat confdefs.h >>conftest.$ac_ext
19878
cat >>conftest.$ac_ext <<_ACEOF
19879
/* end confdefs.h.  */
19880
 
19881
int
19882
main ()
19883
{
19884
 
19885
  ;
19886
  return 0;
19887
}
19888
_ACEOF
19889
rm -f conftest.$ac_objext
19890
if { (ac_try="$ac_compile"
19891
case "(($ac_try" in
19892
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893
  *) ac_try_echo=$ac_try;;
19894
esac
19895
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896
  (eval "$ac_compile") 2>conftest.er1
19897
  ac_status=$?
19898
  grep -v '^ *+' conftest.er1 >conftest.err
19899
  rm -f conftest.er1
19900
  cat conftest.err >&5
19901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902
  (exit $ac_status); } && {
19903
         test -z "$ac_c_werror_flag" ||
19904
         test ! -s conftest.err
19905
       } && test -s conftest.$ac_objext; then
19906
  ac_cv_prog_cc_g=yes
19907
else
19908
  echo "$as_me: failed program was:" >&5
19909
sed 's/^/| /' conftest.$ac_ext >&5
19910
 
19911
        CFLAGS=""
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
  :
19945
else
19946
  echo "$as_me: failed program was:" >&5
19947
sed 's/^/| /' conftest.$ac_ext >&5
19948
 
19949
        ac_c_werror_flag=$ac_save_c_werror_flag
19950
         CFLAGS="-g"
19951
         cat >conftest.$ac_ext <<_ACEOF
19952
/* confdefs.h.  */
19953
_ACEOF
19954
cat confdefs.h >>conftest.$ac_ext
19955
cat >>conftest.$ac_ext <<_ACEOF
19956
/* end confdefs.h.  */
19957
 
19958
int
19959
main ()
19960
{
19961
 
19962
  ;
19963
  return 0;
19964
}
19965
_ACEOF
19966
rm -f conftest.$ac_objext
19967
if { (ac_try="$ac_compile"
19968
case "(($ac_try" in
19969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970
  *) ac_try_echo=$ac_try;;
19971
esac
19972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973
  (eval "$ac_compile") 2>conftest.er1
19974
  ac_status=$?
19975
  grep -v '^ *+' conftest.er1 >conftest.err
19976
  rm -f conftest.er1
19977
  cat conftest.err >&5
19978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979
  (exit $ac_status); } && {
19980
         test -z "$ac_c_werror_flag" ||
19981
         test ! -s conftest.err
19982
       } && test -s conftest.$ac_objext; then
19983
  ac_cv_prog_cc_g=yes
19984
else
19985
  echo "$as_me: failed program was:" >&5
19986
sed 's/^/| /' conftest.$ac_ext >&5
19987
 
19988
 
19989
fi
19990
 
19991
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19992
fi
19993
 
19994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19995
fi
19996
 
19997
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19998
   ac_c_werror_flag=$ac_save_c_werror_flag
19999
fi
20000
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20001
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20002
if test "$ac_test_CFLAGS" = set; then
20003
  CFLAGS=$ac_save_CFLAGS
20004
elif test $ac_cv_prog_cc_g = yes; then
20005
  if test "$GCC" = yes; then
20006
    CFLAGS="-g -O2"
20007
  else
20008
    CFLAGS="-g"
20009
  fi
20010
else
20011
  if test "$GCC" = yes; then
20012
    CFLAGS="-O2"
20013
  else
20014
    CFLAGS=
20015
  fi
20016
fi
20017
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20018
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20019
if test "${ac_cv_prog_cc_c89+set}" = set; then
20020
  echo $ECHO_N "(cached) $ECHO_C" >&6
20021
else
20022
  ac_cv_prog_cc_c89=no
20023
ac_save_CC=$CC
20024
cat >conftest.$ac_ext <<_ACEOF
20025
/* confdefs.h.  */
20026
_ACEOF
20027
cat confdefs.h >>conftest.$ac_ext
20028
cat >>conftest.$ac_ext <<_ACEOF
20029
/* end confdefs.h.  */
20030
#include 
20031
#include 
20032
#include 
20033
#include 
20034
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20035
struct buf { int x; };
20036
FILE * (*rcsopen) (struct buf *, struct stat *, int);
20037
static char *e (p, i)
20038
     char **p;
20039
     int i;
20040
{
20041
  return p[i];
20042
}
20043
static char *f (char * (*g) (char **, int), char **p, ...)
20044
{
20045
  char *s;
20046
  va_list v;
20047
  va_start (v,p);
20048
  s = g (p, va_arg (v,int));
20049
  va_end (v);
20050
  return s;
20051
}
20052
 
20053
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20054
   function prototypes and stuff, but not '\xHH' hex character constants.
20055
   These don't provoke an error unfortunately, instead are silently treated
20056
   as 'x'.  The following induces an error, until -std is added to get
20057
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20058
   array size at least.  It's necessary to write '\x00'==0 to get something
20059
   that's true only with -std.  */
20060
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20061
 
20062
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20063
   inside strings and character constants.  */
20064
#define FOO(x) 'x'
20065
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20066
 
20067
int test (int i, double x);
20068
struct s1 {int (*f) (int a);};
20069
struct s2 {int (*f) (double a);};
20070
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20071
int argc;
20072
char **argv;
20073
int
20074
main ()
20075
{
20076
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20077
  ;
20078
  return 0;
20079
}
20080
_ACEOF
20081
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20082
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20083
do
20084
  CC="$ac_save_CC $ac_arg"
20085
  rm -f conftest.$ac_objext
20086
if { (ac_try="$ac_compile"
20087
case "(($ac_try" in
20088
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089
  *) ac_try_echo=$ac_try;;
20090
esac
20091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092
  (eval "$ac_compile") 2>conftest.er1
20093
  ac_status=$?
20094
  grep -v '^ *+' conftest.er1 >conftest.err
20095
  rm -f conftest.er1
20096
  cat conftest.err >&5
20097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098
  (exit $ac_status); } && {
20099
         test -z "$ac_c_werror_flag" ||
20100
         test ! -s conftest.err
20101
       } && test -s conftest.$ac_objext; then
20102
  ac_cv_prog_cc_c89=$ac_arg
20103
else
20104
  echo "$as_me: failed program was:" >&5
20105
sed 's/^/| /' conftest.$ac_ext >&5
20106
 
20107
 
20108
fi
20109
 
20110
rm -f core conftest.err conftest.$ac_objext
20111
  test "x$ac_cv_prog_cc_c89" != "xno" && break
20112
done
20113
rm -f conftest.$ac_ext
20114
CC=$ac_save_CC
20115
 
20116
fi
20117
# AC_CACHE_VAL
20118
case "x$ac_cv_prog_cc_c89" in
20119
  x)
20120
    { echo "$as_me:$LINENO: result: none needed" >&5
20121
echo "${ECHO_T}none needed" >&6; } ;;
20122
  xno)
20123
    { echo "$as_me:$LINENO: result: unsupported" >&5
20124
echo "${ECHO_T}unsupported" >&6; } ;;
20125
  *)
20126
    CC="$CC $ac_cv_prog_cc_c89"
20127
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20128
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20129
esac
20130
 
20131
 
20132
ac_ext=c
20133
ac_cpp='$CPP $CPPFLAGS'
20134
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20135
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20136
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20137
 
20138
if test "x$CC" != xcc; then
20139
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20140
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20141
else
20142
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20143
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20144
fi
20145
set dummy $CC; ac_cc=`echo $2 |
20146
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20147
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20148
  echo $ECHO_N "(cached) $ECHO_C" >&6
20149
else
20150
  cat >conftest.$ac_ext <<_ACEOF
20151
/* confdefs.h.  */
20152
_ACEOF
20153
cat confdefs.h >>conftest.$ac_ext
20154
cat >>conftest.$ac_ext <<_ACEOF
20155
/* end confdefs.h.  */
20156
 
20157
int
20158
main ()
20159
{
20160
 
20161
  ;
20162
  return 0;
20163
}
20164
_ACEOF
20165
# Make sure it works both with $CC and with simple cc.
20166
# We do the test twice because some compilers refuse to overwrite an
20167
# existing .o file with -o, though they will create one.
20168
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20169
rm -f conftest2.*
20170
if { (case "(($ac_try" in
20171
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172
  *) ac_try_echo=$ac_try;;
20173
esac
20174
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175
  (eval "$ac_try") 2>&5
20176
  ac_status=$?
20177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178
  (exit $ac_status); } &&
20179
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
20180
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181
  *) ac_try_echo=$ac_try;;
20182
esac
20183
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184
  (eval "$ac_try") 2>&5
20185
  ac_status=$?
20186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187
  (exit $ac_status); };
20188
then
20189
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20190
  if test "x$CC" != xcc; then
20191
    # Test first that cc exists at all.
20192
    if { ac_try='cc -c conftest.$ac_ext >&5'
20193
  { (case "(($ac_try" in
20194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195
  *) ac_try_echo=$ac_try;;
20196
esac
20197
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198
  (eval "$ac_try") 2>&5
20199
  ac_status=$?
20200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201
  (exit $ac_status); }; }; then
20202
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20203
      rm -f conftest2.*
20204
      if { (case "(($ac_try" in
20205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206
  *) ac_try_echo=$ac_try;;
20207
esac
20208
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209
  (eval "$ac_try") 2>&5
20210
  ac_status=$?
20211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212
  (exit $ac_status); } &&
20213
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
20214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215
  *) ac_try_echo=$ac_try;;
20216
esac
20217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20218
  (eval "$ac_try") 2>&5
20219
  ac_status=$?
20220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221
  (exit $ac_status); };
20222
      then
20223
        # cc works too.
20224
        :
20225
      else
20226
        # cc exists but doesn't like -o.
20227
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
20228
      fi
20229
    fi
20230
  fi
20231
else
20232
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
20233
fi
20234
rm -f core conftest*
20235
 
20236
fi
20237
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20238
  { echo "$as_me:$LINENO: result: yes" >&5
20239
echo "${ECHO_T}yes" >&6; }
20240
else
20241
  { echo "$as_me:$LINENO: result: no" >&5
20242
echo "${ECHO_T}no" >&6; }
20243
 
20244
cat >>confdefs.h <<\_ACEOF
20245
@%:@define NO_MINUS_C_MINUS_O 1
20246
_ACEOF
20247
 
20248
fi
20249
 
20250
# FIXME: we rely on the cache variable name because
20251
# there is no other way.
20252
set dummy $CC
20253
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20254
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20255
   # Losing compiler, so override with the script.
20256
   # FIXME: It is wrong to rewrite CC.
20257
   # But if we don't then we get into trouble of one sort or another.
20258
   # A longer-term fix would be to have automake use am__CC in this case,
20259
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20260
   CC="$am_aux_dir/compile $CC"
20261
fi
20262
 
20263
 
20264
 
20265
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20266
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20267
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20268
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20269
  echo $ECHO_N "(cached) $ECHO_C" >&6
20270
else
20271
  cat >conftest.make <<\_ACEOF
20272
SHELL = /bin/sh
20273
all:
20274
        @echo '@@@%%%=$(MAKE)=@@@%%%'
20275
_ACEOF
20276
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20277
case `${MAKE-make} -f conftest.make 2>/dev/null` in
20278
  *@@@%%%=?*=@@@%%%*)
20279
    eval ac_cv_prog_make_${ac_make}_set=yes;;
20280
  *)
20281
    eval ac_cv_prog_make_${ac_make}_set=no;;
20282
esac
20283
rm -f conftest.make
20284
fi
20285
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20286
  { echo "$as_me:$LINENO: result: yes" >&5
20287
echo "${ECHO_T}yes" >&6; }
20288
  SET_MAKE=
20289
else
20290
  { echo "$as_me:$LINENO: result: no" >&5
20291
echo "${ECHO_T}no" >&6; }
20292
  SET_MAKE="MAKE=${MAKE-make}"
20293
fi
20294
 
20295
 
20296
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
20297
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2 -D$ARCH_ISA"
20298
 
20299
if test $ac_cv_c_compiler_gnu = yes; then
20300
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20301
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
20302
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20303
  echo $ECHO_N "(cached) $ECHO_C" >&6
20304
else
20305
    ac_pattern="Autoconf.*'x'"
20306
  cat >conftest.$ac_ext <<_ACEOF
20307
/* confdefs.h.  */
20308
_ACEOF
20309
cat confdefs.h >>conftest.$ac_ext
20310
cat >>conftest.$ac_ext <<_ACEOF
20311
/* end confdefs.h.  */
20312
#include 
20313
Autoconf TIOCGETP
20314
_ACEOF
20315
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20316
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
20317
  ac_cv_prog_gcc_traditional=yes
20318
else
20319
  ac_cv_prog_gcc_traditional=no
20320
fi
20321
rm -f conftest*
20322
 
20323
 
20324
  if test $ac_cv_prog_gcc_traditional = no; then
20325
    cat >conftest.$ac_ext <<_ACEOF
20326
/* confdefs.h.  */
20327
_ACEOF
20328
cat confdefs.h >>conftest.$ac_ext
20329
cat >>conftest.$ac_ext <<_ACEOF
20330
/* end confdefs.h.  */
20331
#include 
20332
Autoconf TCGETA
20333
_ACEOF
20334
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20335
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
20336
  ac_cv_prog_gcc_traditional=yes
20337
fi
20338
rm -f conftest*
20339
 
20340
  fi
20341
fi
20342
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20343
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
20344
  if test $ac_cv_prog_gcc_traditional = yes; then
20345
    CC="$CC -traditional"
20346
  fi
20347
fi
20348
 
20349
# Find a good install program.  We prefer a C program (faster),
20350
# so one script is as good as another.  But avoid the broken or
20351
# incompatible versions:
20352
# SysV /etc/install, /usr/sbin/install
20353
# SunOS /usr/etc/install
20354
# IRIX /sbin/install
20355
# AIX /bin/install
20356
# AmigaOS /C/install, which installs bootblocks on floppy discs
20357
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20358
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20359
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20360
# OS/2's system install, which has a completely different semantic
20361
# ./install, which can be erroneously created by make from ./install.sh.
20362
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20363
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20364
if test -z "$INSTALL"; then
20365
if test "${ac_cv_path_install+set}" = set; then
20366
  echo $ECHO_N "(cached) $ECHO_C" >&6
20367
else
20368
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20369
for as_dir in $PATH
20370
do
20371
  IFS=$as_save_IFS
20372
  test -z "$as_dir" && as_dir=.
20373
  # Account for people who put trailing slashes in PATH elements.
20374
case $as_dir/ in
20375
  ./ | .// | /cC/* | \
20376
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20377
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20378
  /usr/ucb/* ) ;;
20379
  *)
20380
    # OSF1 and SCO ODT 3.0 have their own names for install.
20381
    # Don't use installbsd from OSF since it installs stuff as root
20382
    # by default.
20383
    for ac_prog in ginstall scoinst install; do
20384
      for ac_exec_ext in '' $ac_executable_extensions; do
20385
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20386
          if test $ac_prog = install &&
20387
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20388
            # AIX install.  It has an incompatible calling convention.
20389
            :
20390
          elif test $ac_prog = install &&
20391
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20392
            # program-specific install script used by HP pwplus--don't use.
20393
            :
20394
          else
20395
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20396
            break 3
20397
          fi
20398
        fi
20399
      done
20400
    done
20401
    ;;
20402
esac
20403
done
20404
IFS=$as_save_IFS
20405
 
20406
 
20407
fi
20408
  if test "${ac_cv_path_install+set}" = set; then
20409
    INSTALL=$ac_cv_path_install
20410
  else
20411
    # As a last resort, use the slow shell script.  Don't cache a
20412
    # value for INSTALL within a source directory, because that will
20413
    # break other packages using the cache if that directory is
20414
    # removed, or if the value is a relative name.
20415
    INSTALL=$ac_install_sh
20416
  fi
20417
fi
20418
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
20419
echo "${ECHO_T}$INSTALL" >&6; }
20420
 
20421
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20422
# It thinks the first close brace ends the variable substitution.
20423
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20424
 
20425
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20426
 
20427
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20428
 
20429
# Extract the first word of "ar", so it can be a program name with args.
20430
set dummy ar; ac_word=$2
20431
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20432
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20433
if test "${ac_cv_prog_AR+set}" = set; then
20434
  echo $ECHO_N "(cached) $ECHO_C" >&6
20435
else
20436
  if test -n "$AR"; then
20437
  ac_cv_prog_AR="$AR" # Let the user override the test.
20438
else
20439
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20440
for as_dir in $PATH
20441
do
20442
  IFS=$as_save_IFS
20443
  test -z "$as_dir" && as_dir=.
20444
  for ac_exec_ext in '' $ac_executable_extensions; do
20445
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20446
    ac_cv_prog_AR="ar"
20447
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20448
    break 2
20449
  fi
20450
done
20451
done
20452
IFS=$as_save_IFS
20453
 
20454
fi
20455
fi
20456
AR=$ac_cv_prog_AR
20457
if test -n "$AR"; then
20458
  { echo "$as_me:$LINENO: result: $AR" >&5
20459
echo "${ECHO_T}$AR" >&6; }
20460
else
20461
  { echo "$as_me:$LINENO: result: no" >&5
20462
echo "${ECHO_T}no" >&6; }
20463
fi
20464
 
20465
 
20466 60 jeremybenn
 
20467
# This is GNU compliant source and uses GNU libraries
20468
 
20469
cat >>confdefs.h <<\_ACEOF
20470
@%:@define _GNU_SOURCE 1
20471
_ACEOF
20472
 
20473
 
20474 19 jeremybenn
# Set default for ARFLAGS, since autoconf does not have a macro for it.
20475
# This allows people to set it when running configure or make
20476
test -n "$ARFLAGS" || ARFLAGS="cr"
20477
 
20478
MAKE_SHELL=/bin/sh
20479
 
20480
 
20481
 
20482
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20483
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
20484
if test "${ac_cv_type_signal+set}" = set; then
20485
  echo $ECHO_N "(cached) $ECHO_C" >&6
20486
else
20487
  cat >conftest.$ac_ext <<_ACEOF
20488
/* confdefs.h.  */
20489
_ACEOF
20490
cat confdefs.h >>conftest.$ac_ext
20491
cat >>conftest.$ac_ext <<_ACEOF
20492
/* end confdefs.h.  */
20493
#include 
20494
#include 
20495
 
20496
int
20497
main ()
20498
{
20499
return *(signal (0, 0)) (0) == 1;
20500
  ;
20501
  return 0;
20502
}
20503
_ACEOF
20504
rm -f conftest.$ac_objext
20505
if { (ac_try="$ac_compile"
20506
case "(($ac_try" in
20507
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508
  *) ac_try_echo=$ac_try;;
20509
esac
20510
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511
  (eval "$ac_compile") 2>conftest.er1
20512
  ac_status=$?
20513
  grep -v '^ *+' conftest.er1 >conftest.err
20514
  rm -f conftest.er1
20515
  cat conftest.err >&5
20516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517
  (exit $ac_status); } && {
20518
         test -z "$ac_c_werror_flag" ||
20519
         test ! -s conftest.err
20520
       } && test -s conftest.$ac_objext; then
20521
  ac_cv_type_signal=int
20522
else
20523
  echo "$as_me: failed program was:" >&5
20524
sed 's/^/| /' conftest.$ac_ext >&5
20525
 
20526
        ac_cv_type_signal=void
20527
fi
20528
 
20529
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20530
fi
20531
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20532
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
20533
 
20534
cat >>confdefs.h <<_ACEOF
20535
@%:@define RETSIGTYPE $ac_cv_type_signal
20536
_ACEOF
20537
 
20538
 
20539
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20540
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20541
if test "${ac_cv_header_stat_broken+set}" = set; then
20542
  echo $ECHO_N "(cached) $ECHO_C" >&6
20543
else
20544
  cat >conftest.$ac_ext <<_ACEOF
20545
/* confdefs.h.  */
20546
_ACEOF
20547
cat confdefs.h >>conftest.$ac_ext
20548
cat >>conftest.$ac_ext <<_ACEOF
20549
/* end confdefs.h.  */
20550
#include 
20551
#include 
20552
 
20553
#if defined S_ISBLK && defined S_IFDIR
20554
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20555
#endif
20556
 
20557
#if defined S_ISBLK && defined S_IFCHR
20558
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20559
#endif
20560
 
20561
#if defined S_ISLNK && defined S_IFREG
20562
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20563
#endif
20564
 
20565
#if defined S_ISSOCK && defined S_IFREG
20566
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20567
#endif
20568
 
20569
_ACEOF
20570
rm -f conftest.$ac_objext
20571
if { (ac_try="$ac_compile"
20572
case "(($ac_try" in
20573
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574
  *) ac_try_echo=$ac_try;;
20575
esac
20576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577
  (eval "$ac_compile") 2>conftest.er1
20578
  ac_status=$?
20579
  grep -v '^ *+' conftest.er1 >conftest.err
20580
  rm -f conftest.er1
20581
  cat conftest.err >&5
20582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583
  (exit $ac_status); } && {
20584
         test -z "$ac_c_werror_flag" ||
20585
         test ! -s conftest.err
20586
       } && test -s conftest.$ac_objext; then
20587
  ac_cv_header_stat_broken=no
20588
else
20589
  echo "$as_me: failed program was:" >&5
20590
sed 's/^/| /' conftest.$ac_ext >&5
20591
 
20592
        ac_cv_header_stat_broken=yes
20593
fi
20594
 
20595
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596
fi
20597
{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20598
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20599
if test $ac_cv_header_stat_broken = yes; then
20600
 
20601
cat >>confdefs.h <<\_ACEOF
20602
@%:@define STAT_MACROS_BROKEN 1
20603
_ACEOF
20604
 
20605
fi
20606
 
20607
 
20608
 
20609
 
20610
 
20611
 
20612
ac_header_dirent=no
20613
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20614
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20615
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20616
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20617
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20618
  echo $ECHO_N "(cached) $ECHO_C" >&6
20619
else
20620
  cat >conftest.$ac_ext <<_ACEOF
20621
/* confdefs.h.  */
20622
_ACEOF
20623
cat confdefs.h >>conftest.$ac_ext
20624
cat >>conftest.$ac_ext <<_ACEOF
20625
/* end confdefs.h.  */
20626
#include 
20627
#include <$ac_hdr>
20628
 
20629
int
20630
main ()
20631
{
20632
if ((DIR *) 0)
20633
return 0;
20634
  ;
20635
  return 0;
20636
}
20637
_ACEOF
20638
rm -f conftest.$ac_objext
20639
if { (ac_try="$ac_compile"
20640
case "(($ac_try" in
20641
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642
  *) ac_try_echo=$ac_try;;
20643
esac
20644
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645
  (eval "$ac_compile") 2>conftest.er1
20646
  ac_status=$?
20647
  grep -v '^ *+' conftest.er1 >conftest.err
20648
  rm -f conftest.er1
20649
  cat conftest.err >&5
20650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651
  (exit $ac_status); } && {
20652
         test -z "$ac_c_werror_flag" ||
20653
         test ! -s conftest.err
20654
       } && test -s conftest.$ac_objext; then
20655
  eval "$as_ac_Header=yes"
20656
else
20657
  echo "$as_me: failed program was:" >&5
20658
sed 's/^/| /' conftest.$ac_ext >&5
20659
 
20660
        eval "$as_ac_Header=no"
20661
fi
20662
 
20663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664
fi
20665
ac_res=`eval echo '${'$as_ac_Header'}'`
20666
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20667
echo "${ECHO_T}$ac_res" >&6; }
20668
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20669
  cat >>confdefs.h <<_ACEOF
20670
@%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20671
_ACEOF
20672
 
20673
ac_header_dirent=$ac_hdr; break
20674
fi
20675
 
20676
done
20677
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20678
if test $ac_header_dirent = dirent.h; then
20679
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20680
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20681
if test "${ac_cv_search_opendir+set}" = set; then
20682
  echo $ECHO_N "(cached) $ECHO_C" >&6
20683
else
20684
  ac_func_search_save_LIBS=$LIBS
20685
cat >conftest.$ac_ext <<_ACEOF
20686
/* confdefs.h.  */
20687
_ACEOF
20688
cat confdefs.h >>conftest.$ac_ext
20689
cat >>conftest.$ac_ext <<_ACEOF
20690
/* end confdefs.h.  */
20691
 
20692
/* Override any GCC internal prototype to avoid an error.
20693
   Use char because int might match the return type of a GCC
20694
   builtin and then its argument prototype would still apply.  */
20695
#ifdef __cplusplus
20696
extern "C"
20697
#endif
20698
char opendir ();
20699
int
20700
main ()
20701
{
20702
return opendir ();
20703
  ;
20704
  return 0;
20705
}
20706
_ACEOF
20707
for ac_lib in '' dir; do
20708
  if test -z "$ac_lib"; then
20709
    ac_res="none required"
20710
  else
20711
    ac_res=-l$ac_lib
20712
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20713
  fi
20714
  rm -f conftest.$ac_objext conftest$ac_exeext
20715
if { (ac_try="$ac_link"
20716
case "(($ac_try" in
20717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718
  *) ac_try_echo=$ac_try;;
20719
esac
20720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721
  (eval "$ac_link") 2>conftest.er1
20722
  ac_status=$?
20723
  grep -v '^ *+' conftest.er1 >conftest.err
20724
  rm -f conftest.er1
20725
  cat conftest.err >&5
20726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727
  (exit $ac_status); } && {
20728
         test -z "$ac_c_werror_flag" ||
20729
         test ! -s conftest.err
20730
       } && test -s conftest$ac_exeext &&
20731
       $as_test_x conftest$ac_exeext; then
20732
  ac_cv_search_opendir=$ac_res
20733
else
20734
  echo "$as_me: failed program was:" >&5
20735
sed 's/^/| /' conftest.$ac_ext >&5
20736
 
20737
 
20738
fi
20739
 
20740
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20741
      conftest$ac_exeext
20742
  if test "${ac_cv_search_opendir+set}" = set; then
20743
  break
20744
fi
20745
done
20746
if test "${ac_cv_search_opendir+set}" = set; then
20747
  :
20748
else
20749
  ac_cv_search_opendir=no
20750
fi
20751
rm conftest.$ac_ext
20752
LIBS=$ac_func_search_save_LIBS
20753
fi
20754
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20755
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20756
ac_res=$ac_cv_search_opendir
20757
if test "$ac_res" != no; then
20758
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20759
 
20760
fi
20761
 
20762
else
20763
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20764
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20765
if test "${ac_cv_search_opendir+set}" = set; then
20766
  echo $ECHO_N "(cached) $ECHO_C" >&6
20767
else
20768
  ac_func_search_save_LIBS=$LIBS
20769
cat >conftest.$ac_ext <<_ACEOF
20770
/* confdefs.h.  */
20771
_ACEOF
20772
cat confdefs.h >>conftest.$ac_ext
20773
cat >>conftest.$ac_ext <<_ACEOF
20774
/* end confdefs.h.  */
20775
 
20776
/* Override any GCC internal prototype to avoid an error.
20777
   Use char because int might match the return type of a GCC
20778
   builtin and then its argument prototype would still apply.  */
20779
#ifdef __cplusplus
20780
extern "C"
20781
#endif
20782
char opendir ();
20783
int
20784
main ()
20785
{
20786
return opendir ();
20787
  ;
20788
  return 0;
20789
}
20790
_ACEOF
20791
for ac_lib in '' x; do
20792
  if test -z "$ac_lib"; then
20793
    ac_res="none required"
20794
  else
20795
    ac_res=-l$ac_lib
20796
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20797
  fi
20798
  rm -f conftest.$ac_objext conftest$ac_exeext
20799
if { (ac_try="$ac_link"
20800
case "(($ac_try" in
20801
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802
  *) ac_try_echo=$ac_try;;
20803
esac
20804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805
  (eval "$ac_link") 2>conftest.er1
20806
  ac_status=$?
20807
  grep -v '^ *+' conftest.er1 >conftest.err
20808
  rm -f conftest.er1
20809
  cat conftest.err >&5
20810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811
  (exit $ac_status); } && {
20812
         test -z "$ac_c_werror_flag" ||
20813
         test ! -s conftest.err
20814
       } && test -s conftest$ac_exeext &&
20815
       $as_test_x conftest$ac_exeext; then
20816
  ac_cv_search_opendir=$ac_res
20817
else
20818
  echo "$as_me: failed program was:" >&5
20819
sed 's/^/| /' conftest.$ac_ext >&5
20820
 
20821
 
20822
fi
20823
 
20824
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20825
      conftest$ac_exeext
20826
  if test "${ac_cv_search_opendir+set}" = set; then
20827
  break
20828
fi
20829
done
20830
if test "${ac_cv_search_opendir+set}" = set; then
20831
  :
20832
else
20833
  ac_cv_search_opendir=no
20834
fi
20835
rm conftest.$ac_ext
20836
LIBS=$ac_func_search_save_LIBS
20837
fi
20838
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20839
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20840
ac_res=$ac_cv_search_opendir
20841
if test "$ac_res" != no; then
20842
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20843
 
20844
fi
20845
 
20846
fi
20847
 
20848
 
20849
 
20850
 
20851
 
20852
 
20853
 
20854
 
20855
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
20856
do
20857
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20858
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20859
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20860
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20861
  echo $ECHO_N "(cached) $ECHO_C" >&6
20862
else
20863
  cat >conftest.$ac_ext <<_ACEOF
20864
/* confdefs.h.  */
20865
_ACEOF
20866
cat confdefs.h >>conftest.$ac_ext
20867
cat >>conftest.$ac_ext <<_ACEOF
20868
/* end confdefs.h.  */
20869
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20870
   For example, HP-UX 11i  declares gettimeofday.  */
20871
#define $ac_func innocuous_$ac_func
20872
 
20873
/* System header to define __stub macros and hopefully few prototypes,
20874
    which can conflict with char $ac_func (); below.
20875
    Prefer  to  if __STDC__ is defined, since
20876
     exists even on freestanding compilers.  */
20877
 
20878
#ifdef __STDC__
20879
# include 
20880
#else
20881
# include 
20882
#endif
20883
 
20884
#undef $ac_func
20885
 
20886
/* Override any GCC internal prototype to avoid an error.
20887
   Use char because int might match the return type of a GCC
20888
   builtin and then its argument prototype would still apply.  */
20889
#ifdef __cplusplus
20890
extern "C"
20891
#endif
20892
char $ac_func ();
20893
/* The GNU C library defines this for functions which it implements
20894
    to always fail with ENOSYS.  Some functions are actually named
20895
    something starting with __ and the normal name is an alias.  */
20896
#if defined __stub_$ac_func || defined __stub___$ac_func
20897
choke me
20898
#endif
20899
 
20900
int
20901
main ()
20902
{
20903
return $ac_func ();
20904
  ;
20905
  return 0;
20906
}
20907
_ACEOF
20908
rm -f conftest.$ac_objext conftest$ac_exeext
20909
if { (ac_try="$ac_link"
20910
case "(($ac_try" in
20911
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912
  *) ac_try_echo=$ac_try;;
20913
esac
20914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915
  (eval "$ac_link") 2>conftest.er1
20916
  ac_status=$?
20917
  grep -v '^ *+' conftest.er1 >conftest.err
20918
  rm -f conftest.er1
20919
  cat conftest.err >&5
20920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921
  (exit $ac_status); } && {
20922
         test -z "$ac_c_werror_flag" ||
20923
         test ! -s conftest.err
20924
       } && test -s conftest$ac_exeext &&
20925
       $as_test_x conftest$ac_exeext; then
20926
  eval "$as_ac_var=yes"
20927
else
20928
  echo "$as_me: failed program was:" >&5
20929
sed 's/^/| /' conftest.$ac_ext >&5
20930
 
20931
        eval "$as_ac_var=no"
20932
fi
20933
 
20934
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20935
      conftest$ac_exeext conftest.$ac_ext
20936
fi
20937
ac_res=`eval echo '${'$as_ac_var'}'`
20938
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20939
echo "${ECHO_T}$ac_res" >&6; }
20940
if test `eval echo '${'$as_ac_var'}'` = yes; then
20941
  cat >>confdefs.h <<_ACEOF
20942
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20943
_ACEOF
20944
 
20945
fi
20946
done
20947
 
20948
 
20949
 
20950
 
20951
 
20952
 
20953
 
20954
for ac_func in strndup grantpt unlockpt ptsname on_exit isblank
20955
do
20956
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20957
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20958
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20959
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20960
  echo $ECHO_N "(cached) $ECHO_C" >&6
20961
else
20962
  cat >conftest.$ac_ext <<_ACEOF
20963
/* confdefs.h.  */
20964
_ACEOF
20965
cat confdefs.h >>conftest.$ac_ext
20966
cat >>conftest.$ac_ext <<_ACEOF
20967
/* end confdefs.h.  */
20968
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20969
   For example, HP-UX 11i  declares gettimeofday.  */
20970
#define $ac_func innocuous_$ac_func
20971
 
20972
/* System header to define __stub macros and hopefully few prototypes,
20973
    which can conflict with char $ac_func (); below.
20974
    Prefer  to  if __STDC__ is defined, since
20975
     exists even on freestanding compilers.  */
20976
 
20977
#ifdef __STDC__
20978
# include 
20979
#else
20980
# include 
20981
#endif
20982
 
20983
#undef $ac_func
20984
 
20985
/* Override any GCC internal prototype to avoid an error.
20986
   Use char because int might match the return type of a GCC
20987
   builtin and then its argument prototype would still apply.  */
20988
#ifdef __cplusplus
20989
extern "C"
20990
#endif
20991
char $ac_func ();
20992
/* The GNU C library defines this for functions which it implements
20993
    to always fail with ENOSYS.  Some functions are actually named
20994
    something starting with __ and the normal name is an alias.  */
20995
#if defined __stub_$ac_func || defined __stub___$ac_func
20996
choke me
20997
#endif
20998
 
20999
int
21000
main ()
21001
{
21002
return $ac_func ();
21003
  ;
21004
  return 0;
21005
}
21006
_ACEOF
21007
rm -f conftest.$ac_objext conftest$ac_exeext
21008
if { (ac_try="$ac_link"
21009
case "(($ac_try" in
21010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011
  *) ac_try_echo=$ac_try;;
21012
esac
21013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014
  (eval "$ac_link") 2>conftest.er1
21015
  ac_status=$?
21016
  grep -v '^ *+' conftest.er1 >conftest.err
21017
  rm -f conftest.er1
21018
  cat conftest.err >&5
21019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020
  (exit $ac_status); } && {
21021
         test -z "$ac_c_werror_flag" ||
21022
         test ! -s conftest.err
21023
       } && test -s conftest$ac_exeext &&
21024
       $as_test_x conftest$ac_exeext; then
21025
  eval "$as_ac_var=yes"
21026
else
21027
  echo "$as_me: failed program was:" >&5
21028
sed 's/^/| /' conftest.$ac_ext >&5
21029
 
21030
        eval "$as_ac_var=no"
21031
fi
21032
 
21033
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21034
      conftest$ac_exeext conftest.$ac_ext
21035
fi
21036
ac_res=`eval echo '${'$as_ac_var'}'`
21037
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21038
echo "${ECHO_T}$ac_res" >&6; }
21039
if test `eval echo '${'$as_ac_var'}'` = yes; then
21040
  cat >>confdefs.h <<_ACEOF
21041
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21042
_ACEOF
21043
 
21044
fi
21045
done
21046
 
21047 60 jeremybenn
 
21048
for ac_func in basename
21049
do
21050
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21051
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21052
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21053
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21054
  echo $ECHO_N "(cached) $ECHO_C" >&6
21055
else
21056
  cat >conftest.$ac_ext <<_ACEOF
21057
/* confdefs.h.  */
21058
_ACEOF
21059
cat confdefs.h >>conftest.$ac_ext
21060
cat >>conftest.$ac_ext <<_ACEOF
21061
/* end confdefs.h.  */
21062
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
21063
   For example, HP-UX 11i  declares gettimeofday.  */
21064
#define $ac_func innocuous_$ac_func
21065
 
21066
/* System header to define __stub macros and hopefully few prototypes,
21067
    which can conflict with char $ac_func (); below.
21068
    Prefer  to  if __STDC__ is defined, since
21069
     exists even on freestanding compilers.  */
21070
 
21071
#ifdef __STDC__
21072
# include 
21073
#else
21074
# include 
21075
#endif
21076
 
21077
#undef $ac_func
21078
 
21079
/* Override any GCC internal prototype to avoid an error.
21080
   Use char because int might match the return type of a GCC
21081
   builtin and then its argument prototype would still apply.  */
21082
#ifdef __cplusplus
21083
extern "C"
21084
#endif
21085
char $ac_func ();
21086
/* The GNU C library defines this for functions which it implements
21087
    to always fail with ENOSYS.  Some functions are actually named
21088
    something starting with __ and the normal name is an alias.  */
21089
#if defined __stub_$ac_func || defined __stub___$ac_func
21090
choke me
21091
#endif
21092
 
21093
int
21094
main ()
21095
{
21096
return $ac_func ();
21097
  ;
21098
  return 0;
21099
}
21100
_ACEOF
21101
rm -f conftest.$ac_objext conftest$ac_exeext
21102
if { (ac_try="$ac_link"
21103
case "(($ac_try" in
21104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105
  *) ac_try_echo=$ac_try;;
21106
esac
21107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108
  (eval "$ac_link") 2>conftest.er1
21109
  ac_status=$?
21110
  grep -v '^ *+' conftest.er1 >conftest.err
21111
  rm -f conftest.er1
21112
  cat conftest.err >&5
21113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114
  (exit $ac_status); } && {
21115
         test -z "$ac_c_werror_flag" ||
21116
         test ! -s conftest.err
21117
       } && test -s conftest$ac_exeext &&
21118
       $as_test_x conftest$ac_exeext; then
21119
  eval "$as_ac_var=yes"
21120
else
21121
  echo "$as_me: failed program was:" >&5
21122
sed 's/^/| /' conftest.$ac_ext >&5
21123
 
21124
        eval "$as_ac_var=no"
21125
fi
21126
 
21127
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21128
      conftest$ac_exeext conftest.$ac_ext
21129
fi
21130
ac_res=`eval echo '${'$as_ac_var'}'`
21131
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21132
echo "${ECHO_T}$ac_res" >&6; }
21133
if test `eval echo '${'$as_ac_var'}'` = yes; then
21134
  cat >>confdefs.h <<_ACEOF
21135
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21136
_ACEOF
21137
 
21138
fi
21139
done
21140
 
21141 19 jeremybenn
{ echo "$as_me:$LINENO: checking for working strcoll" >&5
21142
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
21143
if test "${ac_cv_func_strcoll_works+set}" = set; then
21144
  echo $ECHO_N "(cached) $ECHO_C" >&6
21145
else
21146
  if test "$cross_compiling" = yes; then
21147
  ac_cv_func_strcoll_works=no
21148
else
21149
  cat >conftest.$ac_ext <<_ACEOF
21150
/* confdefs.h.  */
21151
_ACEOF
21152
cat confdefs.h >>conftest.$ac_ext
21153
cat >>conftest.$ac_ext <<_ACEOF
21154
/* end confdefs.h.  */
21155
$ac_includes_default
21156
int
21157
main ()
21158
{
21159
return (strcoll ("abc", "def") >= 0 ||
21160
         strcoll ("ABC", "DEF") >= 0 ||
21161
         strcoll ("123", "456") >= 0)
21162
  ;
21163
  return 0;
21164
}
21165
_ACEOF
21166
rm -f conftest$ac_exeext
21167
if { (ac_try="$ac_link"
21168
case "(($ac_try" in
21169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170
  *) ac_try_echo=$ac_try;;
21171
esac
21172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21173
  (eval "$ac_link") 2>&5
21174
  ac_status=$?
21175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21177
  { (case "(($ac_try" in
21178
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21179
  *) ac_try_echo=$ac_try;;
21180
esac
21181
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21182
  (eval "$ac_try") 2>&5
21183
  ac_status=$?
21184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185
  (exit $ac_status); }; }; then
21186
  ac_cv_func_strcoll_works=yes
21187
else
21188
  echo "$as_me: program exited with status $ac_status" >&5
21189
echo "$as_me: failed program was:" >&5
21190
sed 's/^/| /' conftest.$ac_ext >&5
21191
 
21192
( exit $ac_status )
21193
ac_cv_func_strcoll_works=no
21194
fi
21195
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21196
fi
21197
 
21198
 
21199
fi
21200
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
21201
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
21202
if test $ac_cv_func_strcoll_works = yes; then
21203
 
21204
cat >>confdefs.h <<\_ACEOF
21205
@%:@define HAVE_STRCOLL 1
21206
_ACEOF
21207
 
21208
fi
21209
 
21210 60 jeremybenn
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21211
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21212
if test "${ac_cv_header_stdc+set}" = set; then
21213
  echo $ECHO_N "(cached) $ECHO_C" >&6
21214
else
21215
  cat >conftest.$ac_ext <<_ACEOF
21216
/* confdefs.h.  */
21217
_ACEOF
21218
cat confdefs.h >>conftest.$ac_ext
21219
cat >>conftest.$ac_ext <<_ACEOF
21220
/* end confdefs.h.  */
21221
#include 
21222
#include 
21223
#include 
21224
#include 
21225 19 jeremybenn
 
21226 60 jeremybenn
int
21227
main ()
21228
{
21229 19 jeremybenn
 
21230 60 jeremybenn
  ;
21231
  return 0;
21232
}
21233
_ACEOF
21234
rm -f conftest.$ac_objext
21235
if { (ac_try="$ac_compile"
21236
case "(($ac_try" in
21237
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238
  *) ac_try_echo=$ac_try;;
21239
esac
21240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241
  (eval "$ac_compile") 2>conftest.er1
21242
  ac_status=$?
21243
  grep -v '^ *+' conftest.er1 >conftest.err
21244
  rm -f conftest.er1
21245
  cat conftest.err >&5
21246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247
  (exit $ac_status); } && {
21248
         test -z "$ac_c_werror_flag" ||
21249
         test ! -s conftest.err
21250
       } && test -s conftest.$ac_objext; then
21251
  ac_cv_header_stdc=yes
21252
else
21253
  echo "$as_me: failed program was:" >&5
21254
sed 's/^/| /' conftest.$ac_ext >&5
21255 19 jeremybenn
 
21256 60 jeremybenn
        ac_cv_header_stdc=no
21257
fi
21258 19 jeremybenn
 
21259 60 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 19 jeremybenn
 
21261 60 jeremybenn
if test $ac_cv_header_stdc = yes; then
21262
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21263
  cat >conftest.$ac_ext <<_ACEOF
21264
/* confdefs.h.  */
21265
_ACEOF
21266
cat confdefs.h >>conftest.$ac_ext
21267
cat >>conftest.$ac_ext <<_ACEOF
21268
/* end confdefs.h.  */
21269
#include 
21270 19 jeremybenn
 
21271 60 jeremybenn
_ACEOF
21272
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21273
  $EGREP "memchr" >/dev/null 2>&1; then
21274
  :
21275
else
21276
  ac_cv_header_stdc=no
21277
fi
21278
rm -f conftest*
21279 19 jeremybenn
 
21280 60 jeremybenn
fi
21281 19 jeremybenn
 
21282 60 jeremybenn
if test $ac_cv_header_stdc = yes; then
21283
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21284
  cat >conftest.$ac_ext <<_ACEOF
21285
/* confdefs.h.  */
21286
_ACEOF
21287
cat confdefs.h >>conftest.$ac_ext
21288
cat >>conftest.$ac_ext <<_ACEOF
21289
/* end confdefs.h.  */
21290
#include 
21291 19 jeremybenn
 
21292 60 jeremybenn
_ACEOF
21293
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21294
  $EGREP "free" >/dev/null 2>&1; then
21295
  :
21296
else
21297
  ac_cv_header_stdc=no
21298
fi
21299
rm -f conftest*
21300 19 jeremybenn
 
21301 60 jeremybenn
fi
21302 19 jeremybenn
 
21303 60 jeremybenn
if test $ac_cv_header_stdc = yes; then
21304
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21305
  if test "$cross_compiling" = yes; then
21306
  :
21307
else
21308
  cat >conftest.$ac_ext <<_ACEOF
21309
/* confdefs.h.  */
21310
_ACEOF
21311
cat confdefs.h >>conftest.$ac_ext
21312
cat >>conftest.$ac_ext <<_ACEOF
21313
/* end confdefs.h.  */
21314
#include 
21315
#include 
21316
#if ((' ' & 0x0FF) == 0x020)
21317
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21318
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21319
#else
21320
# define ISLOWER(c) \
21321
                   (('a' <= (c) && (c) <= 'i') \
21322
                     || ('j' <= (c) && (c) <= 'r') \
21323
                     || ('s' <= (c) && (c) <= 'z'))
21324
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21325
#endif
21326 19 jeremybenn
 
21327 60 jeremybenn
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21328
int
21329
main ()
21330
{
21331
  int i;
21332
  for (i = 0; i < 256; i++)
21333
    if (XOR (islower (i), ISLOWER (i))
21334
        || toupper (i) != TOUPPER (i))
21335
      return 2;
21336
  return 0;
21337
}
21338
_ACEOF
21339
rm -f conftest$ac_exeext
21340
if { (ac_try="$ac_link"
21341
case "(($ac_try" in
21342
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343
  *) ac_try_echo=$ac_try;;
21344
esac
21345
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21346
  (eval "$ac_link") 2>&5
21347
  ac_status=$?
21348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21350
  { (case "(($ac_try" in
21351
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352
  *) ac_try_echo=$ac_try;;
21353
esac
21354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355
  (eval "$ac_try") 2>&5
21356
  ac_status=$?
21357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358
  (exit $ac_status); }; }; then
21359
  :
21360
else
21361
  echo "$as_me: program exited with status $ac_status" >&5
21362
echo "$as_me: failed program was:" >&5
21363
sed 's/^/| /' conftest.$ac_ext >&5
21364 19 jeremybenn
 
21365 60 jeremybenn
( exit $ac_status )
21366
ac_cv_header_stdc=no
21367
fi
21368
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21369
fi
21370 19 jeremybenn
 
21371
 
21372 60 jeremybenn
fi
21373
fi
21374
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21375
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21376
if test $ac_cv_header_stdc = yes; then
21377
 
21378
cat >>confdefs.h <<\_ACEOF
21379
@%:@define STDC_HEADERS 1
21380
_ACEOF
21381 19 jeremybenn
 
21382 60 jeremybenn
fi
21383 19 jeremybenn
 
21384
 
21385
 
21386 60 jeremybenn
 
21387
 
21388
 
21389
 
21390
 
21391
 
21392
 
21393
 
21394
 
21395
 
21396
 
21397
 
21398
 
21399
 
21400
 
21401
 
21402
 
21403
 
21404
 
21405
 
21406
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
21407 19 jeremybenn
                sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
21408 60 jeremybenn
                termcap.h termios.h termio.h sys/file.h locale.h getopt.h \
21409
                net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h
21410 19 jeremybenn
do
21411
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21412
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21413
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21414
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21415
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21416
  echo $ECHO_N "(cached) $ECHO_C" >&6
21417
fi
21418
ac_res=`eval echo '${'$as_ac_Header'}'`
21419
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21420
echo "${ECHO_T}$ac_res" >&6; }
21421
else
21422
  # Is the header compilable?
21423
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21424
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21425
cat >conftest.$ac_ext <<_ACEOF
21426
/* confdefs.h.  */
21427
_ACEOF
21428
cat confdefs.h >>conftest.$ac_ext
21429
cat >>conftest.$ac_ext <<_ACEOF
21430
/* end confdefs.h.  */
21431
$ac_includes_default
21432
@%:@include <$ac_header>
21433
_ACEOF
21434
rm -f conftest.$ac_objext
21435
if { (ac_try="$ac_compile"
21436
case "(($ac_try" in
21437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438
  *) ac_try_echo=$ac_try;;
21439
esac
21440
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441
  (eval "$ac_compile") 2>conftest.er1
21442
  ac_status=$?
21443
  grep -v '^ *+' conftest.er1 >conftest.err
21444
  rm -f conftest.er1
21445
  cat conftest.err >&5
21446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447
  (exit $ac_status); } && {
21448
         test -z "$ac_c_werror_flag" ||
21449
         test ! -s conftest.err
21450
       } && test -s conftest.$ac_objext; then
21451
  ac_header_compiler=yes
21452
else
21453
  echo "$as_me: failed program was:" >&5
21454
sed 's/^/| /' conftest.$ac_ext >&5
21455
 
21456
        ac_header_compiler=no
21457
fi
21458
 
21459
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21460
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21461
echo "${ECHO_T}$ac_header_compiler" >&6; }
21462
 
21463
# Is the header present?
21464
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21465
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21466
cat >conftest.$ac_ext <<_ACEOF
21467
/* confdefs.h.  */
21468
_ACEOF
21469
cat confdefs.h >>conftest.$ac_ext
21470
cat >>conftest.$ac_ext <<_ACEOF
21471
/* end confdefs.h.  */
21472
@%:@include <$ac_header>
21473
_ACEOF
21474
if { (ac_try="$ac_cpp conftest.$ac_ext"
21475
case "(($ac_try" in
21476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477
  *) ac_try_echo=$ac_try;;
21478
esac
21479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21481
  ac_status=$?
21482
  grep -v '^ *+' conftest.er1 >conftest.err
21483
  rm -f conftest.er1
21484
  cat conftest.err >&5
21485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486
  (exit $ac_status); } >/dev/null && {
21487
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21488
         test ! -s conftest.err
21489
       }; then
21490
  ac_header_preproc=yes
21491
else
21492
  echo "$as_me: failed program was:" >&5
21493
sed 's/^/| /' conftest.$ac_ext >&5
21494
 
21495
  ac_header_preproc=no
21496
fi
21497
 
21498
rm -f conftest.err conftest.$ac_ext
21499
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21500
echo "${ECHO_T}$ac_header_preproc" >&6; }
21501
 
21502
# So?  What about this header?
21503
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21504
  yes:no: )
21505
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21506
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21507
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21508
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21509
    ac_header_preproc=yes
21510
    ;;
21511
  no:yes:* )
21512
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21513
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21514
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21515
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21516
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21517
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21518
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21519
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21520
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21521
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21522
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21523
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21524
    ( cat <<\_ASBOX
21525
@%:@@%:@ ------------------------------------- @%:@@%:@
21526
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
21527
@%:@@%:@ ------------------------------------- @%:@@%:@
21528
_ASBOX
21529
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21530
    ;;
21531
esac
21532
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21533
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21534
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21535
  echo $ECHO_N "(cached) $ECHO_C" >&6
21536
else
21537
  eval "$as_ac_Header=\$ac_header_preproc"
21538
fi
21539
ac_res=`eval echo '${'$as_ac_Header'}'`
21540
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21541
echo "${ECHO_T}$ac_res" >&6; }
21542
 
21543
fi
21544
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21545
  cat >>confdefs.h <<_ACEOF
21546
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21547
_ACEOF
21548
 
21549
fi
21550
 
21551
done
21552
 
21553 60 jeremybenn
{ echo "$as_me:$LINENO: checking whether I_PUSH is declared" >&5
21554
echo $ECHO_N "checking whether I_PUSH is declared... $ECHO_C" >&6; }
21555
if test "${ac_cv_have_decl_I_PUSH+set}" = set; then
21556
  echo $ECHO_N "(cached) $ECHO_C" >&6
21557
else
21558
  cat >conftest.$ac_ext <<_ACEOF
21559
/* confdefs.h.  */
21560
_ACEOF
21561
cat confdefs.h >>conftest.$ac_ext
21562
cat >>conftest.$ac_ext <<_ACEOF
21563
/* end confdefs.h.  */
21564
$ac_includes_default
21565
int
21566
main ()
21567
{
21568
#ifndef I_PUSH
21569
  (void) I_PUSH;
21570
#endif
21571
 
21572
  ;
21573
  return 0;
21574
}
21575
_ACEOF
21576
rm -f conftest.$ac_objext
21577
if { (ac_try="$ac_compile"
21578
case "(($ac_try" in
21579
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580
  *) ac_try_echo=$ac_try;;
21581
esac
21582
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583
  (eval "$ac_compile") 2>conftest.er1
21584
  ac_status=$?
21585
  grep -v '^ *+' conftest.er1 >conftest.err
21586
  rm -f conftest.er1
21587
  cat conftest.err >&5
21588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589
  (exit $ac_status); } && {
21590
         test -z "$ac_c_werror_flag" ||
21591
         test ! -s conftest.err
21592
       } && test -s conftest.$ac_objext; then
21593
  ac_cv_have_decl_I_PUSH=yes
21594
else
21595
  echo "$as_me: failed program was:" >&5
21596
sed 's/^/| /' conftest.$ac_ext >&5
21597
 
21598
        ac_cv_have_decl_I_PUSH=no
21599
fi
21600
 
21601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602
fi
21603
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_I_PUSH" >&5
21604
echo "${ECHO_T}$ac_cv_have_decl_I_PUSH" >&6; }
21605
if test $ac_cv_have_decl_I_PUSH = yes; then
21606
 
21607
cat >>confdefs.h <<_ACEOF
21608
@%:@define HAVE_DECL_I_PUSH 1
21609
_ACEOF
21610
 
21611
 
21612
else
21613
  cat >>confdefs.h <<_ACEOF
21614
@%:@define HAVE_DECL_I_PUSH 0
21615
_ACEOF
21616
 
21617
 
21618
fi
21619
 
21620
 
21621 19 jeremybenn
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21622
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21623
if test "${ac_cv_c_bigendian+set}" = set; then
21624
  echo $ECHO_N "(cached) $ECHO_C" >&6
21625
else
21626
  # See if sys/param.h defines the BYTE_ORDER macro.
21627
cat >conftest.$ac_ext <<_ACEOF
21628
/* confdefs.h.  */
21629
_ACEOF
21630
cat confdefs.h >>conftest.$ac_ext
21631
cat >>conftest.$ac_ext <<_ACEOF
21632
/* end confdefs.h.  */
21633
#include 
21634
#include 
21635
 
21636
int
21637
main ()
21638
{
21639
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21640
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21641
 bogus endian macros
21642
#endif
21643
 
21644
  ;
21645
  return 0;
21646
}
21647
_ACEOF
21648
rm -f conftest.$ac_objext
21649
if { (ac_try="$ac_compile"
21650
case "(($ac_try" in
21651
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652
  *) ac_try_echo=$ac_try;;
21653
esac
21654
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21655
  (eval "$ac_compile") 2>conftest.er1
21656
  ac_status=$?
21657
  grep -v '^ *+' conftest.er1 >conftest.err
21658
  rm -f conftest.er1
21659
  cat conftest.err >&5
21660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661
  (exit $ac_status); } && {
21662
         test -z "$ac_c_werror_flag" ||
21663
         test ! -s conftest.err
21664
       } && test -s conftest.$ac_objext; then
21665
  # It does; now see whether it defined to BIG_ENDIAN or not.
21666
cat >conftest.$ac_ext <<_ACEOF
21667
/* confdefs.h.  */
21668
_ACEOF
21669
cat confdefs.h >>conftest.$ac_ext
21670
cat >>conftest.$ac_ext <<_ACEOF
21671
/* end confdefs.h.  */
21672
#include 
21673
#include 
21674
 
21675
int
21676
main ()
21677
{
21678
#if BYTE_ORDER != BIG_ENDIAN
21679
 not big endian
21680
#endif
21681
 
21682
  ;
21683
  return 0;
21684
}
21685
_ACEOF
21686
rm -f conftest.$ac_objext
21687
if { (ac_try="$ac_compile"
21688
case "(($ac_try" in
21689
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690
  *) ac_try_echo=$ac_try;;
21691
esac
21692
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693
  (eval "$ac_compile") 2>conftest.er1
21694
  ac_status=$?
21695
  grep -v '^ *+' conftest.er1 >conftest.err
21696
  rm -f conftest.er1
21697
  cat conftest.err >&5
21698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699
  (exit $ac_status); } && {
21700
         test -z "$ac_c_werror_flag" ||
21701
         test ! -s conftest.err
21702
       } && test -s conftest.$ac_objext; then
21703
  ac_cv_c_bigendian=yes
21704
else
21705
  echo "$as_me: failed program was:" >&5
21706
sed 's/^/| /' conftest.$ac_ext >&5
21707
 
21708
        ac_cv_c_bigendian=no
21709
fi
21710
 
21711
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21712
else
21713
  echo "$as_me: failed program was:" >&5
21714
sed 's/^/| /' conftest.$ac_ext >&5
21715
 
21716
        # It does not; compile a test program.
21717
if test "$cross_compiling" = yes; then
21718
  # try to guess the endianness by grepping values into an object file
21719
  ac_cv_c_bigendian=unknown
21720
  cat >conftest.$ac_ext <<_ACEOF
21721
/* confdefs.h.  */
21722
_ACEOF
21723
cat confdefs.h >>conftest.$ac_ext
21724
cat >>conftest.$ac_ext <<_ACEOF
21725
/* end confdefs.h.  */
21726
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21727
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21728
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21729
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21730
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21731
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21732
int
21733
main ()
21734
{
21735
 _ascii (); _ebcdic ();
21736
  ;
21737
  return 0;
21738
}
21739
_ACEOF
21740
rm -f conftest.$ac_objext
21741
if { (ac_try="$ac_compile"
21742
case "(($ac_try" in
21743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744
  *) ac_try_echo=$ac_try;;
21745
esac
21746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21747
  (eval "$ac_compile") 2>conftest.er1
21748
  ac_status=$?
21749
  grep -v '^ *+' conftest.er1 >conftest.err
21750
  rm -f conftest.er1
21751
  cat conftest.err >&5
21752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753
  (exit $ac_status); } && {
21754
         test -z "$ac_c_werror_flag" ||
21755
         test ! -s conftest.err
21756
       } && test -s conftest.$ac_objext; then
21757
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21758
  ac_cv_c_bigendian=yes
21759
fi
21760
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21761
  if test "$ac_cv_c_bigendian" = unknown; then
21762
    ac_cv_c_bigendian=no
21763
  else
21764
    # finding both strings is unlikely to happen, but who knows?
21765
    ac_cv_c_bigendian=unknown
21766
  fi
21767
fi
21768
else
21769
  echo "$as_me: failed program was:" >&5
21770
sed 's/^/| /' conftest.$ac_ext >&5
21771
 
21772
 
21773
fi
21774
 
21775
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21776
else
21777
  cat >conftest.$ac_ext <<_ACEOF
21778
/* confdefs.h.  */
21779
_ACEOF
21780
cat confdefs.h >>conftest.$ac_ext
21781
cat >>conftest.$ac_ext <<_ACEOF
21782
/* end confdefs.h.  */
21783
$ac_includes_default
21784
int
21785
main ()
21786
{
21787
 
21788
  /* Are we little or big endian?  From Harbison&Steele.  */
21789
  union
21790
  {
21791
    long int l;
21792
    char c[sizeof (long int)];
21793
  } u;
21794
  u.l = 1;
21795
  return u.c[sizeof (long int) - 1] == 1;
21796
 
21797
  ;
21798
  return 0;
21799
}
21800
_ACEOF
21801
rm -f conftest$ac_exeext
21802
if { (ac_try="$ac_link"
21803
case "(($ac_try" in
21804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805
  *) ac_try_echo=$ac_try;;
21806
esac
21807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21808
  (eval "$ac_link") 2>&5
21809
  ac_status=$?
21810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21812
  { (case "(($ac_try" in
21813
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814
  *) ac_try_echo=$ac_try;;
21815
esac
21816
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817
  (eval "$ac_try") 2>&5
21818
  ac_status=$?
21819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820
  (exit $ac_status); }; }; then
21821
  ac_cv_c_bigendian=no
21822
else
21823
  echo "$as_me: program exited with status $ac_status" >&5
21824
echo "$as_me: failed program was:" >&5
21825
sed 's/^/| /' conftest.$ac_ext >&5
21826
 
21827
( exit $ac_status )
21828
ac_cv_c_bigendian=yes
21829
fi
21830
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21831
fi
21832
 
21833
 
21834
fi
21835
 
21836
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21837
fi
21838
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21839
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21840
case $ac_cv_c_bigendian in
21841
  yes)
21842
 
21843
cat >>confdefs.h <<\_ACEOF
21844
@%:@define WORDS_BIGENDIAN 1
21845
_ACEOF
21846
 ;;
21847
  no)
21848
     ;;
21849
  *)
21850
    { { echo "$as_me:$LINENO: error: unknown endianness
21851
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21852
echo "$as_me: error: unknown endianness
21853
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21854
   { (exit 1); exit 1; }; } ;;
21855
esac
21856
 
21857
 
21858 60 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
21859
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21860
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21861
if test "${ac_cv_c_const+set}" = set; then
21862
  echo $ECHO_N "(cached) $ECHO_C" >&6
21863
else
21864
  cat >conftest.$ac_ext <<_ACEOF
21865
/* confdefs.h.  */
21866
_ACEOF
21867
cat confdefs.h >>conftest.$ac_ext
21868
cat >>conftest.$ac_ext <<_ACEOF
21869
/* end confdefs.h.  */
21870
 
21871
int
21872
main ()
21873
{
21874
/* FIXME: Include the comments suggested by Paul. */
21875
#ifndef __cplusplus
21876
  /* Ultrix mips cc rejects this.  */
21877
  typedef int charset[2];
21878
  const charset cs;
21879
  /* SunOS 4.1.1 cc rejects this.  */
21880
  char const *const *pcpcc;
21881
  char **ppc;
21882
  /* NEC SVR4.0.2 mips cc rejects this.  */
21883
  struct point {int x, y;};
21884
  static struct point const zero = {0,0};
21885
  /* AIX XL C 1.02.0.0 rejects this.
21886
     It does not let you subtract one const X* pointer from another in
21887
     an arm of an if-expression whose if-part is not a constant
21888
     expression */
21889
  const char *g = "string";
21890
  pcpcc = &g + (g ? g-g : 0);
21891
  /* HPUX 7.0 cc rejects these. */
21892
  ++pcpcc;
21893
  ppc = (char**) pcpcc;
21894
  pcpcc = (char const *const *) ppc;
21895
  { /* SCO 3.2v4 cc rejects this.  */
21896
    char *t;
21897
    char const *s = 0 ? (char *) 0 : (char const *) 0;
21898
 
21899
    *t++ = 0;
21900
    if (s) return 0;
21901
  }
21902
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21903
    int x[] = {25, 17};
21904
    const int *foo = &x[0];
21905
    ++foo;
21906
  }
21907
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21908
    typedef const int *iptr;
21909
    iptr p = 0;
21910
    ++p;
21911
  }
21912
  { /* AIX XL C 1.02.0.0 rejects this saying
21913
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21914
    struct s { int j; const int *ap[3]; };
21915
    struct s *b; b->j = 5;
21916
  }
21917
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21918
    const int foo = 10;
21919
    if (!foo) return 0;
21920
  }
21921
  return !cs[0] && !zero.x;
21922
#endif
21923
 
21924
  ;
21925
  return 0;
21926
}
21927
_ACEOF
21928
rm -f conftest.$ac_objext
21929
if { (ac_try="$ac_compile"
21930
case "(($ac_try" in
21931
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21932
  *) ac_try_echo=$ac_try;;
21933
esac
21934
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21935
  (eval "$ac_compile") 2>conftest.er1
21936
  ac_status=$?
21937
  grep -v '^ *+' conftest.er1 >conftest.err
21938
  rm -f conftest.er1
21939
  cat conftest.err >&5
21940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941
  (exit $ac_status); } && {
21942
         test -z "$ac_c_werror_flag" ||
21943
         test ! -s conftest.err
21944
       } && test -s conftest.$ac_objext; then
21945
  ac_cv_c_const=yes
21946
else
21947
  echo "$as_me: failed program was:" >&5
21948
sed 's/^/| /' conftest.$ac_ext >&5
21949
 
21950
        ac_cv_c_const=no
21951
fi
21952
 
21953
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21954
fi
21955
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21956
echo "${ECHO_T}$ac_cv_c_const" >&6; }
21957
if test $ac_cv_c_const = no; then
21958
 
21959
cat >>confdefs.h <<\_ACEOF
21960
@%:@define const
21961
_ACEOF
21962
 
21963
fi
21964
 
21965
{ echo "$as_me:$LINENO: checking for size_t" >&5
21966
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21967
if test "${ac_cv_type_size_t+set}" = set; then
21968
  echo $ECHO_N "(cached) $ECHO_C" >&6
21969
else
21970
  cat >conftest.$ac_ext <<_ACEOF
21971
/* confdefs.h.  */
21972
_ACEOF
21973
cat confdefs.h >>conftest.$ac_ext
21974
cat >>conftest.$ac_ext <<_ACEOF
21975
/* end confdefs.h.  */
21976
$ac_includes_default
21977
typedef size_t ac__type_new_;
21978
int
21979
main ()
21980
{
21981
if ((ac__type_new_ *) 0)
21982
  return 0;
21983
if (sizeof (ac__type_new_))
21984
  return 0;
21985
  ;
21986
  return 0;
21987
}
21988
_ACEOF
21989
rm -f conftest.$ac_objext
21990
if { (ac_try="$ac_compile"
21991
case "(($ac_try" in
21992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993
  *) ac_try_echo=$ac_try;;
21994
esac
21995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996
  (eval "$ac_compile") 2>conftest.er1
21997
  ac_status=$?
21998
  grep -v '^ *+' conftest.er1 >conftest.err
21999
  rm -f conftest.er1
22000
  cat conftest.err >&5
22001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002
  (exit $ac_status); } && {
22003
         test -z "$ac_c_werror_flag" ||
22004
         test ! -s conftest.err
22005
       } && test -s conftest.$ac_objext; then
22006
  ac_cv_type_size_t=yes
22007
else
22008
  echo "$as_me: failed program was:" >&5
22009
sed 's/^/| /' conftest.$ac_ext >&5
22010
 
22011
        ac_cv_type_size_t=no
22012
fi
22013
 
22014
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22015
fi
22016
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22017
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22018
if test $ac_cv_type_size_t = yes; then
22019
  :
22020
else
22021
 
22022
cat >>confdefs.h <<_ACEOF
22023
@%:@define size_t unsigned int
22024
_ACEOF
22025
 
22026
fi
22027
 
22028
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22029
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22030
if test "${ac_cv_struct_tm+set}" = set; then
22031
  echo $ECHO_N "(cached) $ECHO_C" >&6
22032
else
22033
  cat >conftest.$ac_ext <<_ACEOF
22034
/* confdefs.h.  */
22035
_ACEOF
22036
cat confdefs.h >>conftest.$ac_ext
22037
cat >>conftest.$ac_ext <<_ACEOF
22038
/* end confdefs.h.  */
22039
#include 
22040
#include 
22041
 
22042
int
22043
main ()
22044
{
22045
struct tm tm;
22046
                                     int *p = &tm.tm_sec;
22047
                                     return !p;
22048
  ;
22049
  return 0;
22050
}
22051
_ACEOF
22052
rm -f conftest.$ac_objext
22053
if { (ac_try="$ac_compile"
22054
case "(($ac_try" in
22055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056
  *) ac_try_echo=$ac_try;;
22057
esac
22058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059
  (eval "$ac_compile") 2>conftest.er1
22060
  ac_status=$?
22061
  grep -v '^ *+' conftest.er1 >conftest.err
22062
  rm -f conftest.er1
22063
  cat conftest.err >&5
22064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065
  (exit $ac_status); } && {
22066
         test -z "$ac_c_werror_flag" ||
22067
         test ! -s conftest.err
22068
       } && test -s conftest.$ac_objext; then
22069
  ac_cv_struct_tm=time.h
22070
else
22071
  echo "$as_me: failed program was:" >&5
22072
sed 's/^/| /' conftest.$ac_ext >&5
22073
 
22074
        ac_cv_struct_tm=sys/time.h
22075
fi
22076
 
22077
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22078
fi
22079
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22080
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22081
if test $ac_cv_struct_tm = sys/time.h; then
22082
 
22083
cat >>confdefs.h <<\_ACEOF
22084
@%:@define TM_IN_SYS_TIME 1
22085
_ACEOF
22086
 
22087
fi
22088
 
22089
 
22090
# Checks for library functions (for argtable2).
22091
 
22092
for ac_header in stdlib.h
22093
do
22094
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22095
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22096
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22097
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22098
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22099
  echo $ECHO_N "(cached) $ECHO_C" >&6
22100
fi
22101
ac_res=`eval echo '${'$as_ac_Header'}'`
22102
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22103
echo "${ECHO_T}$ac_res" >&6; }
22104
else
22105
  # Is the header compilable?
22106
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22107
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22108
cat >conftest.$ac_ext <<_ACEOF
22109
/* confdefs.h.  */
22110
_ACEOF
22111
cat confdefs.h >>conftest.$ac_ext
22112
cat >>conftest.$ac_ext <<_ACEOF
22113
/* end confdefs.h.  */
22114
$ac_includes_default
22115
@%:@include <$ac_header>
22116
_ACEOF
22117
rm -f conftest.$ac_objext
22118
if { (ac_try="$ac_compile"
22119
case "(($ac_try" in
22120
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121
  *) ac_try_echo=$ac_try;;
22122
esac
22123
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124
  (eval "$ac_compile") 2>conftest.er1
22125
  ac_status=$?
22126
  grep -v '^ *+' conftest.er1 >conftest.err
22127
  rm -f conftest.er1
22128
  cat conftest.err >&5
22129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130
  (exit $ac_status); } && {
22131
         test -z "$ac_c_werror_flag" ||
22132
         test ! -s conftest.err
22133
       } && test -s conftest.$ac_objext; then
22134
  ac_header_compiler=yes
22135
else
22136
  echo "$as_me: failed program was:" >&5
22137
sed 's/^/| /' conftest.$ac_ext >&5
22138
 
22139
        ac_header_compiler=no
22140
fi
22141
 
22142
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22144
echo "${ECHO_T}$ac_header_compiler" >&6; }
22145
 
22146
# Is the header present?
22147
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22148
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22149
cat >conftest.$ac_ext <<_ACEOF
22150
/* confdefs.h.  */
22151
_ACEOF
22152
cat confdefs.h >>conftest.$ac_ext
22153
cat >>conftest.$ac_ext <<_ACEOF
22154
/* end confdefs.h.  */
22155
@%:@include <$ac_header>
22156
_ACEOF
22157
if { (ac_try="$ac_cpp conftest.$ac_ext"
22158
case "(($ac_try" in
22159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160
  *) ac_try_echo=$ac_try;;
22161
esac
22162
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22164
  ac_status=$?
22165
  grep -v '^ *+' conftest.er1 >conftest.err
22166
  rm -f conftest.er1
22167
  cat conftest.err >&5
22168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169
  (exit $ac_status); } >/dev/null && {
22170
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22171
         test ! -s conftest.err
22172
       }; then
22173
  ac_header_preproc=yes
22174
else
22175
  echo "$as_me: failed program was:" >&5
22176
sed 's/^/| /' conftest.$ac_ext >&5
22177
 
22178
  ac_header_preproc=no
22179
fi
22180
 
22181
rm -f conftest.err conftest.$ac_ext
22182
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22183
echo "${ECHO_T}$ac_header_preproc" >&6; }
22184
 
22185
# So?  What about this header?
22186
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22187
  yes:no: )
22188
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22189
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22190
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22191
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22192
    ac_header_preproc=yes
22193
    ;;
22194
  no:yes:* )
22195
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22196
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22197
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22198
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22199
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22200
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22201
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22202
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22203
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22204
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22205
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22206
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22207
    ( cat <<\_ASBOX
22208
@%:@@%:@ ------------------------------------- @%:@@%:@
22209
@%:@@%:@ Report this to openrisc@opencores.org @%:@@%:@
22210
@%:@@%:@ ------------------------------------- @%:@@%:@
22211
_ASBOX
22212
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22213
    ;;
22214
esac
22215
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22216
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22217
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22218
  echo $ECHO_N "(cached) $ECHO_C" >&6
22219
else
22220
  eval "$as_ac_Header=\$ac_header_preproc"
22221
fi
22222
ac_res=`eval echo '${'$as_ac_Header'}'`
22223
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22224
echo "${ECHO_T}$ac_res" >&6; }
22225
 
22226
fi
22227
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22228
  cat >>confdefs.h <<_ACEOF
22229
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22230
_ACEOF
22231
 
22232
fi
22233
 
22234
done
22235
 
22236
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22237
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
22238
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22239
  echo $ECHO_N "(cached) $ECHO_C" >&6
22240
else
22241
  if test "$cross_compiling" = yes; then
22242
  ac_cv_func_malloc_0_nonnull=no
22243
else
22244
  cat >conftest.$ac_ext <<_ACEOF
22245
/* confdefs.h.  */
22246
_ACEOF
22247
cat confdefs.h >>conftest.$ac_ext
22248
cat >>conftest.$ac_ext <<_ACEOF
22249
/* end confdefs.h.  */
22250
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
22251
# include 
22252
#else
22253
char *malloc ();
22254
#endif
22255
 
22256
int
22257
main ()
22258
{
22259
return ! malloc (0);
22260
  ;
22261
  return 0;
22262
}
22263
_ACEOF
22264
rm -f conftest$ac_exeext
22265
if { (ac_try="$ac_link"
22266
case "(($ac_try" in
22267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268
  *) ac_try_echo=$ac_try;;
22269
esac
22270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271
  (eval "$ac_link") 2>&5
22272
  ac_status=$?
22273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22275
  { (case "(($ac_try" in
22276
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22277
  *) ac_try_echo=$ac_try;;
22278
esac
22279
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280
  (eval "$ac_try") 2>&5
22281
  ac_status=$?
22282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283
  (exit $ac_status); }; }; then
22284
  ac_cv_func_malloc_0_nonnull=yes
22285
else
22286
  echo "$as_me: program exited with status $ac_status" >&5
22287
echo "$as_me: failed program was:" >&5
22288
sed 's/^/| /' conftest.$ac_ext >&5
22289
 
22290
( exit $ac_status )
22291
ac_cv_func_malloc_0_nonnull=no
22292
fi
22293
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22294
fi
22295
 
22296
 
22297
fi
22298
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22299
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22300
if test $ac_cv_func_malloc_0_nonnull = yes; then
22301
 
22302
cat >>confdefs.h <<\_ACEOF
22303
@%:@define HAVE_MALLOC 1
22304
_ACEOF
22305
 
22306
else
22307
  cat >>confdefs.h <<\_ACEOF
22308
@%:@define HAVE_MALLOC 0
22309
_ACEOF
22310
 
22311
   case " $LIB@&t@OBJS " in
22312
  *" malloc.$ac_objext "* ) ;;
22313
  *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
22314
 ;;
22315
esac
22316
 
22317
 
22318
cat >>confdefs.h <<\_ACEOF
22319
@%:@define malloc rpl_malloc
22320
_ACEOF
22321
 
22322
fi
22323
 
22324
 
22325
 
22326
 
22327
for ac_func in strftime
22328
do
22329
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22330
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22331
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22332
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22333
  echo $ECHO_N "(cached) $ECHO_C" >&6
22334
else
22335
  cat >conftest.$ac_ext <<_ACEOF
22336
/* confdefs.h.  */
22337
_ACEOF
22338
cat confdefs.h >>conftest.$ac_ext
22339
cat >>conftest.$ac_ext <<_ACEOF
22340
/* end confdefs.h.  */
22341
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
22342
   For example, HP-UX 11i  declares gettimeofday.  */
22343
#define $ac_func innocuous_$ac_func
22344
 
22345
/* System header to define __stub macros and hopefully few prototypes,
22346
    which can conflict with char $ac_func (); below.
22347
    Prefer  to  if __STDC__ is defined, since
22348
     exists even on freestanding compilers.  */
22349
 
22350
#ifdef __STDC__
22351
# include 
22352
#else
22353
# include 
22354
#endif
22355
 
22356
#undef $ac_func
22357
 
22358
/* Override any GCC internal prototype to avoid an error.
22359
   Use char because int might match the return type of a GCC
22360
   builtin and then its argument prototype would still apply.  */
22361
#ifdef __cplusplus
22362
extern "C"
22363
#endif
22364
char $ac_func ();
22365
/* The GNU C library defines this for functions which it implements
22366
    to always fail with ENOSYS.  Some functions are actually named
22367
    something starting with __ and the normal name is an alias.  */
22368
#if defined __stub_$ac_func || defined __stub___$ac_func
22369
choke me
22370
#endif
22371
 
22372
int
22373
main ()
22374
{
22375
return $ac_func ();
22376
  ;
22377
  return 0;
22378
}
22379
_ACEOF
22380
rm -f conftest.$ac_objext conftest$ac_exeext
22381
if { (ac_try="$ac_link"
22382
case "(($ac_try" in
22383
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384
  *) ac_try_echo=$ac_try;;
22385
esac
22386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387
  (eval "$ac_link") 2>conftest.er1
22388
  ac_status=$?
22389
  grep -v '^ *+' conftest.er1 >conftest.err
22390
  rm -f conftest.er1
22391
  cat conftest.err >&5
22392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393
  (exit $ac_status); } && {
22394
         test -z "$ac_c_werror_flag" ||
22395
         test ! -s conftest.err
22396
       } && test -s conftest$ac_exeext &&
22397
       $as_test_x conftest$ac_exeext; then
22398
  eval "$as_ac_var=yes"
22399
else
22400
  echo "$as_me: failed program was:" >&5
22401
sed 's/^/| /' conftest.$ac_ext >&5
22402
 
22403
        eval "$as_ac_var=no"
22404
fi
22405
 
22406
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22407
      conftest$ac_exeext conftest.$ac_ext
22408
fi
22409
ac_res=`eval echo '${'$as_ac_var'}'`
22410
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22411
echo "${ECHO_T}$ac_res" >&6; }
22412
if test `eval echo '${'$as_ac_var'}'` = yes; then
22413
  cat >>confdefs.h <<_ACEOF
22414
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22415
_ACEOF
22416
 
22417
else
22418
  # strftime is in -lintl on SCO UNIX.
22419
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22420
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22421
if test "${ac_cv_lib_intl_strftime+set}" = set; then
22422
  echo $ECHO_N "(cached) $ECHO_C" >&6
22423
else
22424
  ac_check_lib_save_LIBS=$LIBS
22425
LIBS="-lintl  $LIBS"
22426
cat >conftest.$ac_ext <<_ACEOF
22427
/* confdefs.h.  */
22428
_ACEOF
22429
cat confdefs.h >>conftest.$ac_ext
22430
cat >>conftest.$ac_ext <<_ACEOF
22431
/* end confdefs.h.  */
22432
 
22433
/* Override any GCC internal prototype to avoid an error.
22434
   Use char because int might match the return type of a GCC
22435
   builtin and then its argument prototype would still apply.  */
22436
#ifdef __cplusplus
22437
extern "C"
22438
#endif
22439
char strftime ();
22440
int
22441
main ()
22442
{
22443
return strftime ();
22444
  ;
22445
  return 0;
22446
}
22447
_ACEOF
22448
rm -f conftest.$ac_objext conftest$ac_exeext
22449
if { (ac_try="$ac_link"
22450
case "(($ac_try" in
22451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452
  *) ac_try_echo=$ac_try;;
22453
esac
22454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22455
  (eval "$ac_link") 2>conftest.er1
22456
  ac_status=$?
22457
  grep -v '^ *+' conftest.er1 >conftest.err
22458
  rm -f conftest.er1
22459
  cat conftest.err >&5
22460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461
  (exit $ac_status); } && {
22462
         test -z "$ac_c_werror_flag" ||
22463
         test ! -s conftest.err
22464
       } && test -s conftest$ac_exeext &&
22465
       $as_test_x conftest$ac_exeext; then
22466
  ac_cv_lib_intl_strftime=yes
22467
else
22468
  echo "$as_me: failed program was:" >&5
22469
sed 's/^/| /' conftest.$ac_ext >&5
22470
 
22471
        ac_cv_lib_intl_strftime=no
22472
fi
22473
 
22474
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22475
      conftest$ac_exeext conftest.$ac_ext
22476
LIBS=$ac_check_lib_save_LIBS
22477
fi
22478
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22479
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22480
if test $ac_cv_lib_intl_strftime = yes; then
22481
  cat >>confdefs.h <<\_ACEOF
22482
@%:@define HAVE_STRFTIME 1
22483
_ACEOF
22484
 
22485
LIBS="-lintl $LIBS"
22486
fi
22487
 
22488
fi
22489
done
22490
 
22491
{ echo "$as_me:$LINENO: checking for working strtod" >&5
22492
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
22493
if test "${ac_cv_func_strtod+set}" = set; then
22494
  echo $ECHO_N "(cached) $ECHO_C" >&6
22495
else
22496
  if test "$cross_compiling" = yes; then
22497
  ac_cv_func_strtod=no
22498
else
22499
  cat >conftest.$ac_ext <<_ACEOF
22500
/* confdefs.h.  */
22501
_ACEOF
22502
cat confdefs.h >>conftest.$ac_ext
22503
cat >>conftest.$ac_ext <<_ACEOF
22504
/* end confdefs.h.  */
22505
 
22506
$ac_includes_default
22507
#ifndef strtod
22508
double strtod ();
22509
#endif
22510
int
22511
main()
22512
{
22513
  {
22514
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
22515
    char *string = " +69";
22516
    char *term;
22517
    double value;
22518
    value = strtod (string, &term);
22519
    if (value != 69 || term != (string + 4))
22520
      return 1;
22521
  }
22522
 
22523
  {
22524
    /* Under Solaris 2.4, strtod returns the wrong value for the
22525
       terminating character under some conditions.  */
22526
    char *string = "NaN";
22527
    char *term;
22528
    strtod (string, &term);
22529
    if (term != string && *(term - 1) == 0)
22530
      return 1;
22531
  }
22532
  return 0;
22533
}
22534
 
22535
_ACEOF
22536
rm -f conftest$ac_exeext
22537
if { (ac_try="$ac_link"
22538
case "(($ac_try" in
22539
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540
  *) ac_try_echo=$ac_try;;
22541
esac
22542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543
  (eval "$ac_link") 2>&5
22544
  ac_status=$?
22545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22547
  { (case "(($ac_try" in
22548
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549
  *) ac_try_echo=$ac_try;;
22550
esac
22551
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552
  (eval "$ac_try") 2>&5
22553
  ac_status=$?
22554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555
  (exit $ac_status); }; }; then
22556
  ac_cv_func_strtod=yes
22557
else
22558
  echo "$as_me: program exited with status $ac_status" >&5
22559
echo "$as_me: failed program was:" >&5
22560
sed 's/^/| /' conftest.$ac_ext >&5
22561
 
22562
( exit $ac_status )
22563
ac_cv_func_strtod=no
22564
fi
22565
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22566
fi
22567
 
22568
 
22569
fi
22570
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
22571
echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
22572
if test $ac_cv_func_strtod = no; then
22573
  case " $LIB@&t@OBJS " in
22574
  *" strtod.$ac_objext "* ) ;;
22575
  *) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext"
22576
 ;;
22577
esac
22578
 
22579
{ echo "$as_me:$LINENO: checking for pow" >&5
22580
echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
22581
if test "${ac_cv_func_pow+set}" = set; then
22582
  echo $ECHO_N "(cached) $ECHO_C" >&6
22583
else
22584
  cat >conftest.$ac_ext <<_ACEOF
22585
/* confdefs.h.  */
22586
_ACEOF
22587
cat confdefs.h >>conftest.$ac_ext
22588
cat >>conftest.$ac_ext <<_ACEOF
22589
/* end confdefs.h.  */
22590
/* Define pow to an innocuous variant, in case  declares pow.
22591
   For example, HP-UX 11i  declares gettimeofday.  */
22592
#define pow innocuous_pow
22593
 
22594
/* System header to define __stub macros and hopefully few prototypes,
22595
    which can conflict with char pow (); below.
22596
    Prefer  to  if __STDC__ is defined, since
22597
     exists even on freestanding compilers.  */
22598
 
22599
#ifdef __STDC__
22600
# include 
22601
#else
22602
# include 
22603
#endif
22604
 
22605
#undef pow
22606
 
22607
/* Override any GCC internal prototype to avoid an error.
22608
   Use char because int might match the return type of a GCC
22609
   builtin and then its argument prototype would still apply.  */
22610
#ifdef __cplusplus
22611
extern "C"
22612
#endif
22613
char pow ();
22614
/* The GNU C library defines this for functions which it implements
22615
    to always fail with ENOSYS.  Some functions are actually named
22616
    something starting with __ and the normal name is an alias.  */
22617
#if defined __stub_pow || defined __stub___pow
22618
choke me
22619
#endif
22620
 
22621
int
22622
main ()
22623
{
22624
return pow ();
22625
  ;
22626
  return 0;
22627
}
22628
_ACEOF
22629
rm -f conftest.$ac_objext conftest$ac_exeext
22630
if { (ac_try="$ac_link"
22631
case "(($ac_try" in
22632
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633
  *) ac_try_echo=$ac_try;;
22634
esac
22635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636
  (eval "$ac_link") 2>conftest.er1
22637
  ac_status=$?
22638
  grep -v '^ *+' conftest.er1 >conftest.err
22639
  rm -f conftest.er1
22640
  cat conftest.err >&5
22641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642
  (exit $ac_status); } && {
22643
         test -z "$ac_c_werror_flag" ||
22644
         test ! -s conftest.err
22645
       } && test -s conftest$ac_exeext &&
22646
       $as_test_x conftest$ac_exeext; then
22647
  ac_cv_func_pow=yes
22648
else
22649
  echo "$as_me: failed program was:" >&5
22650
sed 's/^/| /' conftest.$ac_ext >&5
22651
 
22652
        ac_cv_func_pow=no
22653
fi
22654
 
22655
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22656
      conftest$ac_exeext conftest.$ac_ext
22657
fi
22658
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
22659
echo "${ECHO_T}$ac_cv_func_pow" >&6; }
22660
 
22661
if test $ac_cv_func_pow = no; then
22662
  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
22663
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
22664
if test "${ac_cv_lib_m_pow+set}" = set; then
22665
  echo $ECHO_N "(cached) $ECHO_C" >&6
22666
else
22667
  ac_check_lib_save_LIBS=$LIBS
22668
LIBS="-lm  $LIBS"
22669
cat >conftest.$ac_ext <<_ACEOF
22670
/* confdefs.h.  */
22671
_ACEOF
22672
cat confdefs.h >>conftest.$ac_ext
22673
cat >>conftest.$ac_ext <<_ACEOF
22674
/* end confdefs.h.  */
22675
 
22676
/* Override any GCC internal prototype to avoid an error.
22677
   Use char because int might match the return type of a GCC
22678
   builtin and then its argument prototype would still apply.  */
22679
#ifdef __cplusplus
22680
extern "C"
22681
#endif
22682
char pow ();
22683
int
22684
main ()
22685
{
22686
return pow ();
22687
  ;
22688
  return 0;
22689
}
22690
_ACEOF
22691
rm -f conftest.$ac_objext conftest$ac_exeext
22692
if { (ac_try="$ac_link"
22693
case "(($ac_try" in
22694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22695
  *) ac_try_echo=$ac_try;;
22696
esac
22697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22698
  (eval "$ac_link") 2>conftest.er1
22699
  ac_status=$?
22700
  grep -v '^ *+' conftest.er1 >conftest.err
22701
  rm -f conftest.er1
22702
  cat conftest.err >&5
22703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704
  (exit $ac_status); } && {
22705
         test -z "$ac_c_werror_flag" ||
22706
         test ! -s conftest.err
22707
       } && test -s conftest$ac_exeext &&
22708
       $as_test_x conftest$ac_exeext; then
22709
  ac_cv_lib_m_pow=yes
22710
else
22711
  echo "$as_me: failed program was:" >&5
22712
sed 's/^/| /' conftest.$ac_ext >&5
22713
 
22714
        ac_cv_lib_m_pow=no
22715
fi
22716
 
22717
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22718
      conftest$ac_exeext conftest.$ac_ext
22719
LIBS=$ac_check_lib_save_LIBS
22720
fi
22721
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
22722
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
22723
if test $ac_cv_lib_m_pow = yes; then
22724
  POW_LIB=-lm
22725
else
22726
  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
22727
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22728
fi
22729
 
22730
fi
22731
 
22732
fi
22733
 
22734
 
22735
 
22736
 
22737
 
22738
 
22739
for ac_func in bzero strchr strcspn strrchr strtol
22740
do
22741
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22742
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22743
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22744
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22745
  echo $ECHO_N "(cached) $ECHO_C" >&6
22746
else
22747
  cat >conftest.$ac_ext <<_ACEOF
22748
/* confdefs.h.  */
22749
_ACEOF
22750
cat confdefs.h >>conftest.$ac_ext
22751
cat >>conftest.$ac_ext <<_ACEOF
22752
/* end confdefs.h.  */
22753
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
22754
   For example, HP-UX 11i  declares gettimeofday.  */
22755
#define $ac_func innocuous_$ac_func
22756
 
22757
/* System header to define __stub macros and hopefully few prototypes,
22758
    which can conflict with char $ac_func (); below.
22759
    Prefer  to  if __STDC__ is defined, since
22760
     exists even on freestanding compilers.  */
22761
 
22762
#ifdef __STDC__
22763
# include 
22764
#else
22765
# include 
22766
#endif
22767
 
22768
#undef $ac_func
22769
 
22770
/* Override any GCC internal prototype to avoid an error.
22771
   Use char because int might match the return type of a GCC
22772
   builtin and then its argument prototype would still apply.  */
22773
#ifdef __cplusplus
22774
extern "C"
22775
#endif
22776
char $ac_func ();
22777
/* The GNU C library defines this for functions which it implements
22778
    to always fail with ENOSYS.  Some functions are actually named
22779
    something starting with __ and the normal name is an alias.  */
22780
#if defined __stub_$ac_func || defined __stub___$ac_func
22781
choke me
22782
#endif
22783
 
22784
int
22785
main ()
22786
{
22787
return $ac_func ();
22788
  ;
22789
  return 0;
22790
}
22791
_ACEOF
22792
rm -f conftest.$ac_objext conftest$ac_exeext
22793
if { (ac_try="$ac_link"
22794
case "(($ac_try" in
22795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22796
  *) ac_try_echo=$ac_try;;
22797
esac
22798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22799
  (eval "$ac_link") 2>conftest.er1
22800
  ac_status=$?
22801
  grep -v '^ *+' conftest.er1 >conftest.err
22802
  rm -f conftest.er1
22803
  cat conftest.err >&5
22804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805
  (exit $ac_status); } && {
22806
         test -z "$ac_c_werror_flag" ||
22807
         test ! -s conftest.err
22808
       } && test -s conftest$ac_exeext &&
22809
       $as_test_x conftest$ac_exeext; then
22810
  eval "$as_ac_var=yes"
22811
else
22812
  echo "$as_me: failed program was:" >&5
22813
sed 's/^/| /' conftest.$ac_ext >&5
22814
 
22815
        eval "$as_ac_var=no"
22816
fi
22817
 
22818
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22819
      conftest$ac_exeext conftest.$ac_ext
22820
fi
22821
ac_res=`eval echo '${'$as_ac_var'}'`
22822
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22823
echo "${ECHO_T}$ac_res" >&6; }
22824
if test `eval echo '${'$as_ac_var'}'` = yes; then
22825
  cat >>confdefs.h <<_ACEOF
22826
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22827
_ACEOF
22828
 
22829
fi
22830
done
22831
 
22832
{ echo "$as_me:$LINENO: checking for getopt_long" >&5
22833
echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
22834
if test "${ac_cv_func_getopt_long+set}" = set; then
22835
  echo $ECHO_N "(cached) $ECHO_C" >&6
22836
else
22837
  cat >conftest.$ac_ext <<_ACEOF
22838
/* confdefs.h.  */
22839
_ACEOF
22840
cat confdefs.h >>conftest.$ac_ext
22841
cat >>conftest.$ac_ext <<_ACEOF
22842
/* end confdefs.h.  */
22843
/* Define getopt_long to an innocuous variant, in case  declares getopt_long.
22844
   For example, HP-UX 11i  declares gettimeofday.  */
22845
#define getopt_long innocuous_getopt_long
22846
 
22847
/* System header to define __stub macros and hopefully few prototypes,
22848
    which can conflict with char getopt_long (); below.
22849
    Prefer  to  if __STDC__ is defined, since
22850
     exists even on freestanding compilers.  */
22851
 
22852
#ifdef __STDC__
22853
# include 
22854
#else
22855
# include 
22856
#endif
22857
 
22858
#undef getopt_long
22859
 
22860
/* Override any GCC internal prototype to avoid an error.
22861
   Use char because int might match the return type of a GCC
22862
   builtin and then its argument prototype would still apply.  */
22863
#ifdef __cplusplus
22864
extern "C"
22865
#endif
22866
char getopt_long ();
22867
/* The GNU C library defines this for functions which it implements
22868
    to always fail with ENOSYS.  Some functions are actually named
22869
    something starting with __ and the normal name is an alias.  */
22870
#if defined __stub_getopt_long || defined __stub___getopt_long
22871
choke me
22872
#endif
22873
 
22874
int
22875
main ()
22876
{
22877
return getopt_long ();
22878
  ;
22879
  return 0;
22880
}
22881
_ACEOF
22882
rm -f conftest.$ac_objext conftest$ac_exeext
22883
if { (ac_try="$ac_link"
22884
case "(($ac_try" in
22885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886
  *) ac_try_echo=$ac_try;;
22887
esac
22888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889
  (eval "$ac_link") 2>conftest.er1
22890
  ac_status=$?
22891
  grep -v '^ *+' conftest.er1 >conftest.err
22892
  rm -f conftest.er1
22893
  cat conftest.err >&5
22894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895
  (exit $ac_status); } && {
22896
         test -z "$ac_c_werror_flag" ||
22897
         test ! -s conftest.err
22898
       } && test -s conftest$ac_exeext &&
22899
       $as_test_x conftest$ac_exeext; then
22900
  ac_cv_func_getopt_long=yes
22901
else
22902
  echo "$as_me: failed program was:" >&5
22903
sed 's/^/| /' conftest.$ac_ext >&5
22904
 
22905
        ac_cv_func_getopt_long=no
22906
fi
22907
 
22908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22909
      conftest$ac_exeext conftest.$ac_ext
22910
fi
22911
{ echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
22912
echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
22913
if test $ac_cv_func_getopt_long = yes; then
22914
  SYS_GETOPTLONG=1
22915
else
22916
  SYS_GETOPTLONG=0
22917
fi
22918
 
22919
{ echo "$as_me:$LINENO: checking for regcomp" >&5
22920
echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
22921
if test "${ac_cv_func_regcomp+set}" = set; then
22922
  echo $ECHO_N "(cached) $ECHO_C" >&6
22923
else
22924
  cat >conftest.$ac_ext <<_ACEOF
22925
/* confdefs.h.  */
22926
_ACEOF
22927
cat confdefs.h >>conftest.$ac_ext
22928
cat >>conftest.$ac_ext <<_ACEOF
22929
/* end confdefs.h.  */
22930
/* Define regcomp to an innocuous variant, in case  declares regcomp.
22931
   For example, HP-UX 11i  declares gettimeofday.  */
22932
#define regcomp innocuous_regcomp
22933
 
22934
/* System header to define __stub macros and hopefully few prototypes,
22935
    which can conflict with char regcomp (); below.
22936
    Prefer  to  if __STDC__ is defined, since
22937
     exists even on freestanding compilers.  */
22938
 
22939
#ifdef __STDC__
22940
# include 
22941
#else
22942
# include 
22943
#endif
22944
 
22945
#undef regcomp
22946
 
22947
/* Override any GCC internal prototype to avoid an error.
22948
   Use char because int might match the return type of a GCC
22949
   builtin and then its argument prototype would still apply.  */
22950
#ifdef __cplusplus
22951
extern "C"
22952
#endif
22953
char regcomp ();
22954
/* The GNU C library defines this for functions which it implements
22955
    to always fail with ENOSYS.  Some functions are actually named
22956
    something starting with __ and the normal name is an alias.  */
22957
#if defined __stub_regcomp || defined __stub___regcomp
22958
choke me
22959
#endif
22960
 
22961
int
22962
main ()
22963
{
22964
return regcomp ();
22965
  ;
22966
  return 0;
22967
}
22968
_ACEOF
22969
rm -f conftest.$ac_objext conftest$ac_exeext
22970
if { (ac_try="$ac_link"
22971
case "(($ac_try" in
22972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973
  *) ac_try_echo=$ac_try;;
22974
esac
22975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976
  (eval "$ac_link") 2>conftest.er1
22977
  ac_status=$?
22978
  grep -v '^ *+' conftest.er1 >conftest.err
22979
  rm -f conftest.er1
22980
  cat conftest.err >&5
22981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982
  (exit $ac_status); } && {
22983
         test -z "$ac_c_werror_flag" ||
22984
         test ! -s conftest.err
22985
       } && test -s conftest$ac_exeext &&
22986
       $as_test_x conftest$ac_exeext; then
22987
  ac_cv_func_regcomp=yes
22988
else
22989
  echo "$as_me: failed program was:" >&5
22990
sed 's/^/| /' conftest.$ac_ext >&5
22991
 
22992
        ac_cv_func_regcomp=no
22993
fi
22994
 
22995
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22996
      conftest$ac_exeext conftest.$ac_ext
22997
fi
22998
{ echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
22999
echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
23000
if test $ac_cv_func_regcomp = yes; then
23001
  SYS_REGEX=1
23002
else
23003
  SYS_REGEX=0
23004
fi
23005
 
23006
{ echo "$as_me:$LINENO: checking for strptime" >&5
23007
echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
23008
if test "${ac_cv_func_strptime+set}" = set; then
23009
  echo $ECHO_N "(cached) $ECHO_C" >&6
23010
else
23011
  cat >conftest.$ac_ext <<_ACEOF
23012
/* confdefs.h.  */
23013
_ACEOF
23014
cat confdefs.h >>conftest.$ac_ext
23015
cat >>conftest.$ac_ext <<_ACEOF
23016
/* end confdefs.h.  */
23017
/* Define strptime to an innocuous variant, in case  declares strptime.
23018
   For example, HP-UX 11i  declares gettimeofday.  */
23019
#define strptime innocuous_strptime
23020
 
23021
/* System header to define __stub macros and hopefully few prototypes,
23022
    which can conflict with char strptime (); below.
23023
    Prefer  to  if __STDC__ is defined, since
23024
     exists even on freestanding compilers.  */
23025
 
23026
#ifdef __STDC__
23027
# include 
23028
#else
23029
# include 
23030
#endif
23031
 
23032
#undef strptime
23033
 
23034
/* Override any GCC internal prototype to avoid an error.
23035
   Use char because int might match the return type of a GCC
23036
   builtin and then its argument prototype would still apply.  */
23037
#ifdef __cplusplus
23038
extern "C"
23039
#endif
23040
char strptime ();
23041
/* The GNU C library defines this for functions which it implements
23042
    to always fail with ENOSYS.  Some functions are actually named
23043
    something starting with __ and the normal name is an alias.  */
23044
#if defined __stub_strptime || defined __stub___strptime
23045
choke me
23046
#endif
23047
 
23048
int
23049
main ()
23050
{
23051
return strptime ();
23052
  ;
23053
  return 0;
23054
}
23055
_ACEOF
23056
rm -f conftest.$ac_objext conftest$ac_exeext
23057
if { (ac_try="$ac_link"
23058
case "(($ac_try" in
23059
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23060
  *) ac_try_echo=$ac_try;;
23061
esac
23062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23063
  (eval "$ac_link") 2>conftest.er1
23064
  ac_status=$?
23065
  grep -v '^ *+' conftest.er1 >conftest.err
23066
  rm -f conftest.er1
23067
  cat conftest.err >&5
23068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069
  (exit $ac_status); } && {
23070
         test -z "$ac_c_werror_flag" ||
23071
         test ! -s conftest.err
23072
       } && test -s conftest$ac_exeext &&
23073
       $as_test_x conftest$ac_exeext; then
23074
  ac_cv_func_strptime=yes
23075
else
23076
  echo "$as_me: failed program was:" >&5
23077
sed 's/^/| /' conftest.$ac_ext >&5
23078
 
23079
        ac_cv_func_strptime=no
23080
fi
23081
 
23082
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23083
      conftest$ac_exeext conftest.$ac_ext
23084
fi
23085
{ echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
23086
echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
23087
if test $ac_cv_func_strptime = yes; then
23088
  SYS_STRPTIME=1
23089
else
23090
  SYS_STRPTIME=0
23091
fi
23092
 
23093
 
23094
# Define automake conditionals (for argtable2)
23095
 if test "$SYS_GETOPTLONG" = "1"; then
23096
  USE_SYS_GETOPTLONG_TRUE=
23097
  USE_SYS_GETOPTLONG_FALSE='#'
23098
else
23099
  USE_SYS_GETOPTLONG_TRUE='#'
23100
  USE_SYS_GETOPTLONG_FALSE=
23101
fi
23102
 
23103
 if test "$SYS_REGEX" = "1"; then
23104
  USE_ARGREX_TRUE=
23105
  USE_ARGREX_FALSE='#'
23106
else
23107
  USE_ARGREX_TRUE='#'
23108
  USE_ARGREX_FALSE=
23109
fi
23110
 
23111
 if test "$SYS_STRPTIME" = "1"; then
23112
  USE_ARGDATE_TRUE=
23113
  USE_ARGDATE_FALSE='#'
23114
else
23115
  USE_ARGDATE_TRUE='#'
23116
  USE_ARGDATE_FALSE=
23117
fi
23118
 
23119
 
23120 19 jeremybenn
# check for "long long" (added by Erez)
23121
cat >conftest.$ac_ext <<_ACEOF
23122
/* confdefs.h.  */
23123
_ACEOF
23124
cat confdefs.h >>conftest.$ac_ext
23125
cat >>conftest.$ac_ext <<_ACEOF
23126
/* end confdefs.h.  */
23127
 
23128
int
23129
main ()
23130
{
23131
long long ll; unsigned long long ull;
23132
  ;
23133
  return 0;
23134
}
23135
_ACEOF
23136
rm -f conftest.$ac_objext
23137
if { (ac_try="$ac_compile"
23138
case "(($ac_try" in
23139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140
  *) ac_try_echo=$ac_try;;
23141
esac
23142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143
  (eval "$ac_compile") 2>conftest.er1
23144
  ac_status=$?
23145
  grep -v '^ *+' conftest.er1 >conftest.err
23146
  rm -f conftest.er1
23147
  cat conftest.err >&5
23148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149
  (exit $ac_status); } && {
23150
         test -z "$ac_c_werror_flag" ||
23151
         test ! -s conftest.err
23152
       } && test -s conftest.$ac_objext; then
23153
 
23154
cat >>confdefs.h <<\_ACEOF
23155
@%:@define CC_HAS_LONG_LONG 1
23156
_ACEOF
23157
 
23158
else
23159
  echo "$as_me: failed program was:" >&5
23160
sed 's/^/| /' conftest.$ac_ext >&5
23161
 
23162
 
23163
fi
23164
 
23165
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23166
 
23167 60 jeremybenn
# check for {u,}int{8,16,32}_t in inttypes.h.
23168 19 jeremybenn
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
23169
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23170
if test "${ac_cv_type_uint8_t+set}" = set; then
23171
  echo $ECHO_N "(cached) $ECHO_C" >&6
23172
else
23173
  cat >conftest.$ac_ext <<_ACEOF
23174
/* confdefs.h.  */
23175
_ACEOF
23176
cat confdefs.h >>conftest.$ac_ext
23177
cat >>conftest.$ac_ext <<_ACEOF
23178
/* end confdefs.h.  */
23179
#include 
23180
 
23181
typedef uint8_t ac__type_new_;
23182
int
23183
main ()
23184
{
23185
if ((ac__type_new_ *) 0)
23186
  return 0;
23187
if (sizeof (ac__type_new_))
23188
  return 0;
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_cv_type_uint8_t=yes
23211
else
23212
  echo "$as_me: failed program was:" >&5
23213
sed 's/^/| /' conftest.$ac_ext >&5
23214
 
23215
        ac_cv_type_uint8_t=no
23216
fi
23217
 
23218
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23219
fi
23220
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23221
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23222
if test $ac_cv_type_uint8_t = yes; then
23223
 
23224
cat >>confdefs.h <<_ACEOF
23225
@%:@define HAVE_UINT8_T 1
23226
_ACEOF
23227
 
23228
 
23229
fi
23230
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
23231
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23232
if test "${ac_cv_type_uint16_t+set}" = set; then
23233
  echo $ECHO_N "(cached) $ECHO_C" >&6
23234
else
23235
  cat >conftest.$ac_ext <<_ACEOF
23236
/* confdefs.h.  */
23237
_ACEOF
23238
cat confdefs.h >>conftest.$ac_ext
23239
cat >>conftest.$ac_ext <<_ACEOF
23240
/* end confdefs.h.  */
23241
#include 
23242
 
23243
typedef uint16_t ac__type_new_;
23244
int
23245
main ()
23246
{
23247
if ((ac__type_new_ *) 0)
23248
  return 0;
23249
if (sizeof (ac__type_new_))
23250
  return 0;
23251
  ;
23252
  return 0;
23253
}
23254
_ACEOF
23255
rm -f conftest.$ac_objext
23256
if { (ac_try="$ac_compile"
23257
case "(($ac_try" in
23258
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259
  *) ac_try_echo=$ac_try;;
23260
esac
23261
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262
  (eval "$ac_compile") 2>conftest.er1
23263
  ac_status=$?
23264
  grep -v '^ *+' conftest.er1 >conftest.err
23265
  rm -f conftest.er1
23266
  cat conftest.err >&5
23267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268
  (exit $ac_status); } && {
23269
         test -z "$ac_c_werror_flag" ||
23270
         test ! -s conftest.err
23271
       } && test -s conftest.$ac_objext; then
23272
  ac_cv_type_uint16_t=yes
23273
else
23274
  echo "$as_me: failed program was:" >&5
23275
sed 's/^/| /' conftest.$ac_ext >&5
23276
 
23277
        ac_cv_type_uint16_t=no
23278
fi
23279
 
23280
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23281
fi
23282
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23283
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23284
if test $ac_cv_type_uint16_t = yes; then
23285
 
23286
cat >>confdefs.h <<_ACEOF
23287
@%:@define HAVE_UINT16_T 1
23288
_ACEOF
23289
 
23290
 
23291
fi
23292
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
23293
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23294
if test "${ac_cv_type_uint32_t+set}" = set; then
23295
  echo $ECHO_N "(cached) $ECHO_C" >&6
23296
else
23297
  cat >conftest.$ac_ext <<_ACEOF
23298
/* confdefs.h.  */
23299
_ACEOF
23300
cat confdefs.h >>conftest.$ac_ext
23301
cat >>conftest.$ac_ext <<_ACEOF
23302
/* end confdefs.h.  */
23303
#include 
23304
 
23305
typedef uint32_t ac__type_new_;
23306
int
23307
main ()
23308
{
23309
if ((ac__type_new_ *) 0)
23310
  return 0;
23311
if (sizeof (ac__type_new_))
23312
  return 0;
23313
  ;
23314
  return 0;
23315
}
23316
_ACEOF
23317
rm -f conftest.$ac_objext
23318
if { (ac_try="$ac_compile"
23319
case "(($ac_try" in
23320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23321
  *) ac_try_echo=$ac_try;;
23322
esac
23323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23324
  (eval "$ac_compile") 2>conftest.er1
23325
  ac_status=$?
23326
  grep -v '^ *+' conftest.er1 >conftest.err
23327
  rm -f conftest.er1
23328
  cat conftest.err >&5
23329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330
  (exit $ac_status); } && {
23331
         test -z "$ac_c_werror_flag" ||
23332
         test ! -s conftest.err
23333
       } && test -s conftest.$ac_objext; then
23334
  ac_cv_type_uint32_t=yes
23335
else
23336
  echo "$as_me: failed program was:" >&5
23337
sed 's/^/| /' conftest.$ac_ext >&5
23338
 
23339
        ac_cv_type_uint32_t=no
23340
fi
23341
 
23342
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23343
fi
23344
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23345
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23346
if test $ac_cv_type_uint32_t = yes; then
23347
 
23348
cat >>confdefs.h <<_ACEOF
23349
@%:@define HAVE_UINT32_T 1
23350
_ACEOF
23351
 
23352
 
23353
fi
23354
 
23355
{ echo "$as_me:$LINENO: checking for int8_t" >&5
23356
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
23357
if test "${ac_cv_type_int8_t+set}" = set; then
23358
  echo $ECHO_N "(cached) $ECHO_C" >&6
23359
else
23360
  cat >conftest.$ac_ext <<_ACEOF
23361
/* confdefs.h.  */
23362
_ACEOF
23363
cat confdefs.h >>conftest.$ac_ext
23364
cat >>conftest.$ac_ext <<_ACEOF
23365
/* end confdefs.h.  */
23366
#include 
23367
 
23368
typedef int8_t ac__type_new_;
23369
int
23370
main ()
23371
{
23372
if ((ac__type_new_ *) 0)
23373
  return 0;
23374
if (sizeof (ac__type_new_))
23375
  return 0;
23376
  ;
23377
  return 0;
23378
}
23379
_ACEOF
23380
rm -f conftest.$ac_objext
23381
if { (ac_try="$ac_compile"
23382
case "(($ac_try" in
23383
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384
  *) ac_try_echo=$ac_try;;
23385
esac
23386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23387
  (eval "$ac_compile") 2>conftest.er1
23388
  ac_status=$?
23389
  grep -v '^ *+' conftest.er1 >conftest.err
23390
  rm -f conftest.er1
23391
  cat conftest.err >&5
23392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393
  (exit $ac_status); } && {
23394
         test -z "$ac_c_werror_flag" ||
23395
         test ! -s conftest.err
23396
       } && test -s conftest.$ac_objext; then
23397
  ac_cv_type_int8_t=yes
23398
else
23399
  echo "$as_me: failed program was:" >&5
23400
sed 's/^/| /' conftest.$ac_ext >&5
23401
 
23402
        ac_cv_type_int8_t=no
23403
fi
23404
 
23405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23406
fi
23407
{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
23408
echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
23409
if test $ac_cv_type_int8_t = yes; then
23410
 
23411
cat >>confdefs.h <<_ACEOF
23412
@%:@define HAVE_INT8_T 1
23413
_ACEOF
23414
 
23415
 
23416
fi
23417
{ echo "$as_me:$LINENO: checking for int16_t" >&5
23418
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
23419
if test "${ac_cv_type_int16_t+set}" = set; then
23420
  echo $ECHO_N "(cached) $ECHO_C" >&6
23421
else
23422
  cat >conftest.$ac_ext <<_ACEOF
23423
/* confdefs.h.  */
23424
_ACEOF
23425
cat confdefs.h >>conftest.$ac_ext
23426
cat >>conftest.$ac_ext <<_ACEOF
23427
/* end confdefs.h.  */
23428
#include 
23429
 
23430
typedef int16_t ac__type_new_;
23431
int
23432
main ()
23433
{
23434
if ((ac__type_new_ *) 0)
23435
  return 0;
23436
if (sizeof (ac__type_new_))
23437
  return 0;
23438
  ;
23439
  return 0;
23440
}
23441
_ACEOF
23442
rm -f conftest.$ac_objext
23443
if { (ac_try="$ac_compile"
23444
case "(($ac_try" in
23445
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446
  *) ac_try_echo=$ac_try;;
23447
esac
23448
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449
  (eval "$ac_compile") 2>conftest.er1
23450
  ac_status=$?
23451
  grep -v '^ *+' conftest.er1 >conftest.err
23452
  rm -f conftest.er1
23453
  cat conftest.err >&5
23454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455
  (exit $ac_status); } && {
23456
         test -z "$ac_c_werror_flag" ||
23457
         test ! -s conftest.err
23458
       } && test -s conftest.$ac_objext; then
23459
  ac_cv_type_int16_t=yes
23460
else
23461
  echo "$as_me: failed program was:" >&5
23462
sed 's/^/| /' conftest.$ac_ext >&5
23463
 
23464
        ac_cv_type_int16_t=no
23465
fi
23466
 
23467
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468
fi
23469
{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
23470
echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
23471
if test $ac_cv_type_int16_t = yes; then
23472
 
23473
cat >>confdefs.h <<_ACEOF
23474
@%:@define HAVE_INT16_T 1
23475
_ACEOF
23476
 
23477
 
23478
fi
23479
{ echo "$as_me:$LINENO: checking for int32_t" >&5
23480
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
23481
if test "${ac_cv_type_int32_t+set}" = set; then
23482
  echo $ECHO_N "(cached) $ECHO_C" >&6
23483
else
23484
  cat >conftest.$ac_ext <<_ACEOF
23485
/* confdefs.h.  */
23486
_ACEOF
23487
cat confdefs.h >>conftest.$ac_ext
23488
cat >>conftest.$ac_ext <<_ACEOF
23489
/* end confdefs.h.  */
23490
#include 
23491
 
23492
typedef int32_t ac__type_new_;
23493
int
23494
main ()
23495
{
23496
if ((ac__type_new_ *) 0)
23497
  return 0;
23498
if (sizeof (ac__type_new_))
23499
  return 0;
23500
  ;
23501
  return 0;
23502
}
23503
_ACEOF
23504
rm -f conftest.$ac_objext
23505
if { (ac_try="$ac_compile"
23506
case "(($ac_try" in
23507
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508
  *) ac_try_echo=$ac_try;;
23509
esac
23510
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23511
  (eval "$ac_compile") 2>conftest.er1
23512
  ac_status=$?
23513
  grep -v '^ *+' conftest.er1 >conftest.err
23514
  rm -f conftest.er1
23515
  cat conftest.err >&5
23516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517
  (exit $ac_status); } && {
23518
         test -z "$ac_c_werror_flag" ||
23519
         test ! -s conftest.err
23520
       } && test -s conftest.$ac_objext; then
23521
  ac_cv_type_int32_t=yes
23522
else
23523
  echo "$as_me: failed program was:" >&5
23524
sed 's/^/| /' conftest.$ac_ext >&5
23525
 
23526
        ac_cv_type_int32_t=no
23527
fi
23528
 
23529
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23530
fi
23531
{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
23532
echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
23533
if test $ac_cv_type_int32_t = yes; then
23534
 
23535
cat >>confdefs.h <<_ACEOF
23536
@%:@define HAVE_INT32_T 1
23537
_ACEOF
23538
 
23539
 
23540
fi
23541
 
23542
 
23543
{ echo "$as_me:$LINENO: checking for char" >&5
23544
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23545
if test "${ac_cv_type_char+set}" = set; then
23546
  echo $ECHO_N "(cached) $ECHO_C" >&6
23547
else
23548
  cat >conftest.$ac_ext <<_ACEOF
23549
/* confdefs.h.  */
23550
_ACEOF
23551
cat confdefs.h >>conftest.$ac_ext
23552
cat >>conftest.$ac_ext <<_ACEOF
23553
/* end confdefs.h.  */
23554
$ac_includes_default
23555
typedef char ac__type_new_;
23556
int
23557
main ()
23558
{
23559
if ((ac__type_new_ *) 0)
23560
  return 0;
23561
if (sizeof (ac__type_new_))
23562
  return 0;
23563
  ;
23564
  return 0;
23565
}
23566
_ACEOF
23567
rm -f conftest.$ac_objext
23568
if { (ac_try="$ac_compile"
23569
case "(($ac_try" in
23570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571
  *) ac_try_echo=$ac_try;;
23572
esac
23573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23574
  (eval "$ac_compile") 2>conftest.er1
23575
  ac_status=$?
23576
  grep -v '^ *+' conftest.er1 >conftest.err
23577
  rm -f conftest.er1
23578
  cat conftest.err >&5
23579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580
  (exit $ac_status); } && {
23581
         test -z "$ac_c_werror_flag" ||
23582
         test ! -s conftest.err
23583
       } && test -s conftest.$ac_objext; then
23584
  ac_cv_type_char=yes
23585
else
23586
  echo "$as_me: failed program was:" >&5
23587
sed 's/^/| /' conftest.$ac_ext >&5
23588
 
23589
        ac_cv_type_char=no
23590
fi
23591
 
23592
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593
fi
23594
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23595
echo "${ECHO_T}$ac_cv_type_char" >&6; }
23596
 
23597
# The cast to long int works around a bug in the HP C Compiler
23598
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23599
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23600
# This bug is HP SR number 8606223364.
23601
{ echo "$as_me:$LINENO: checking size of char" >&5
23602
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23603
if test "${ac_cv_sizeof_char+set}" = set; then
23604
  echo $ECHO_N "(cached) $ECHO_C" >&6
23605
else
23606
  if test "$cross_compiling" = yes; then
23607
  # Depending upon the size, compute the lo and hi bounds.
23608
cat >conftest.$ac_ext <<_ACEOF
23609
/* confdefs.h.  */
23610
_ACEOF
23611
cat confdefs.h >>conftest.$ac_ext
23612
cat >>conftest.$ac_ext <<_ACEOF
23613
/* end confdefs.h.  */
23614
$ac_includes_default
23615
   typedef char ac__type_sizeof_;
23616
int
23617
main ()
23618
{
23619
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
23620
test_array @<:@0@:>@ = 0
23621
 
23622
  ;
23623
  return 0;
23624
}
23625
_ACEOF
23626
rm -f conftest.$ac_objext
23627
if { (ac_try="$ac_compile"
23628
case "(($ac_try" in
23629
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23630
  *) ac_try_echo=$ac_try;;
23631
esac
23632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23633
  (eval "$ac_compile") 2>conftest.er1
23634
  ac_status=$?
23635
  grep -v '^ *+' conftest.er1 >conftest.err
23636
  rm -f conftest.er1
23637
  cat conftest.err >&5
23638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639
  (exit $ac_status); } && {
23640
         test -z "$ac_c_werror_flag" ||
23641
         test ! -s conftest.err
23642
       } && test -s conftest.$ac_objext; then
23643
  ac_lo=0 ac_mid=0
23644
  while :; do
23645
    cat >conftest.$ac_ext <<_ACEOF
23646
/* confdefs.h.  */
23647
_ACEOF
23648
cat confdefs.h >>conftest.$ac_ext
23649
cat >>conftest.$ac_ext <<_ACEOF
23650
/* end confdefs.h.  */
23651
$ac_includes_default
23652
   typedef char ac__type_sizeof_;
23653
int
23654
main ()
23655
{
23656
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23657
test_array @<:@0@:>@ = 0
23658
 
23659
  ;
23660
  return 0;
23661
}
23662
_ACEOF
23663
rm -f conftest.$ac_objext
23664
if { (ac_try="$ac_compile"
23665
case "(($ac_try" in
23666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667
  *) ac_try_echo=$ac_try;;
23668
esac
23669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23670
  (eval "$ac_compile") 2>conftest.er1
23671
  ac_status=$?
23672
  grep -v '^ *+' conftest.er1 >conftest.err
23673
  rm -f conftest.er1
23674
  cat conftest.err >&5
23675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676
  (exit $ac_status); } && {
23677
         test -z "$ac_c_werror_flag" ||
23678
         test ! -s conftest.err
23679
       } && test -s conftest.$ac_objext; then
23680
  ac_hi=$ac_mid; break
23681
else
23682
  echo "$as_me: failed program was:" >&5
23683
sed 's/^/| /' conftest.$ac_ext >&5
23684
 
23685
        ac_lo=`expr $ac_mid + 1`
23686
                        if test $ac_lo -le $ac_mid; then
23687
                          ac_lo= ac_hi=
23688
                          break
23689
                        fi
23690
                        ac_mid=`expr 2 '*' $ac_mid + 1`
23691
fi
23692
 
23693
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23694
  done
23695
else
23696
  echo "$as_me: failed program was:" >&5
23697
sed 's/^/| /' conftest.$ac_ext >&5
23698
 
23699
        cat >conftest.$ac_ext <<_ACEOF
23700
/* confdefs.h.  */
23701
_ACEOF
23702
cat confdefs.h >>conftest.$ac_ext
23703
cat >>conftest.$ac_ext <<_ACEOF
23704
/* end confdefs.h.  */
23705
$ac_includes_default
23706
   typedef char ac__type_sizeof_;
23707
int
23708
main ()
23709
{
23710
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
23711
test_array @<:@0@:>@ = 0
23712
 
23713
  ;
23714
  return 0;
23715
}
23716
_ACEOF
23717
rm -f conftest.$ac_objext
23718
if { (ac_try="$ac_compile"
23719
case "(($ac_try" in
23720
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721
  *) ac_try_echo=$ac_try;;
23722
esac
23723
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23724
  (eval "$ac_compile") 2>conftest.er1
23725
  ac_status=$?
23726
  grep -v '^ *+' conftest.er1 >conftest.err
23727
  rm -f conftest.er1
23728
  cat conftest.err >&5
23729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730
  (exit $ac_status); } && {
23731
         test -z "$ac_c_werror_flag" ||
23732
         test ! -s conftest.err
23733
       } && test -s conftest.$ac_objext; then
23734
  ac_hi=-1 ac_mid=-1
23735
  while :; do
23736
    cat >conftest.$ac_ext <<_ACEOF
23737
/* confdefs.h.  */
23738
_ACEOF
23739
cat confdefs.h >>conftest.$ac_ext
23740
cat >>conftest.$ac_ext <<_ACEOF
23741
/* end confdefs.h.  */
23742
$ac_includes_default
23743
   typedef char ac__type_sizeof_;
23744
int
23745
main ()
23746
{
23747
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
23748
test_array @<:@0@:>@ = 0
23749
 
23750
  ;
23751
  return 0;
23752
}
23753
_ACEOF
23754
rm -f conftest.$ac_objext
23755
if { (ac_try="$ac_compile"
23756
case "(($ac_try" in
23757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758
  *) ac_try_echo=$ac_try;;
23759
esac
23760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761
  (eval "$ac_compile") 2>conftest.er1
23762
  ac_status=$?
23763
  grep -v '^ *+' conftest.er1 >conftest.err
23764
  rm -f conftest.er1
23765
  cat conftest.err >&5
23766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767
  (exit $ac_status); } && {
23768
         test -z "$ac_c_werror_flag" ||
23769
         test ! -s conftest.err
23770
       } && test -s conftest.$ac_objext; then
23771
  ac_lo=$ac_mid; break
23772
else
23773
  echo "$as_me: failed program was:" >&5
23774
sed 's/^/| /' conftest.$ac_ext >&5
23775
 
23776
        ac_hi=`expr '(' $ac_mid ')' - 1`
23777
                        if test $ac_mid -le $ac_hi; then
23778
                          ac_lo= ac_hi=
23779
                          break
23780
                        fi
23781
                        ac_mid=`expr 2 '*' $ac_mid`
23782
fi
23783
 
23784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23785
  done
23786
else
23787
  echo "$as_me: failed program was:" >&5
23788
sed 's/^/| /' conftest.$ac_ext >&5
23789
 
23790
        ac_lo= ac_hi=
23791
fi
23792
 
23793
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23794
fi
23795
 
23796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23797
# Binary search between lo and hi bounds.
23798
while test "x$ac_lo" != "x$ac_hi"; do
23799
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23800
  cat >conftest.$ac_ext <<_ACEOF
23801
/* confdefs.h.  */
23802
_ACEOF
23803
cat confdefs.h >>conftest.$ac_ext
23804
cat >>conftest.$ac_ext <<_ACEOF
23805
/* end confdefs.h.  */
23806
$ac_includes_default
23807
   typedef char ac__type_sizeof_;
23808
int
23809
main ()
23810
{
23811
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
23812
test_array @<:@0@:>@ = 0
23813
 
23814
  ;
23815
  return 0;
23816
}
23817
_ACEOF
23818
rm -f conftest.$ac_objext
23819
if { (ac_try="$ac_compile"
23820
case "(($ac_try" in
23821
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822
  *) ac_try_echo=$ac_try;;
23823
esac
23824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23825
  (eval "$ac_compile") 2>conftest.er1
23826
  ac_status=$?
23827
  grep -v '^ *+' conftest.er1 >conftest.err
23828
  rm -f conftest.er1
23829
  cat conftest.err >&5
23830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831
  (exit $ac_status); } && {
23832
         test -z "$ac_c_werror_flag" ||
23833
         test ! -s conftest.err
23834
       } && test -s conftest.$ac_objext; then
23835
  ac_hi=$ac_mid
23836
else
23837
  echo "$as_me: failed program was:" >&5
23838
sed 's/^/| /' conftest.$ac_ext >&5
23839
 
23840
        ac_lo=`expr '(' $ac_mid ')' + 1`
23841
fi
23842
 
23843
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23844
done
23845
case $ac_lo in
23846
?*) ac_cv_sizeof_char=$ac_lo;;
23847
'') if test "$ac_cv_type_char" = yes; then
23848
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23849
See \`config.log' for more details." >&5
23850
echo "$as_me: error: cannot compute sizeof (char)
23851
See \`config.log' for more details." >&2;}
23852
   { (exit 77); exit 77; }; }
23853
   else
23854
     ac_cv_sizeof_char=0
23855
   fi ;;
23856
esac
23857
else
23858
  cat >conftest.$ac_ext <<_ACEOF
23859
/* confdefs.h.  */
23860
_ACEOF
23861
cat confdefs.h >>conftest.$ac_ext
23862
cat >>conftest.$ac_ext <<_ACEOF
23863
/* end confdefs.h.  */
23864
$ac_includes_default
23865
   typedef char ac__type_sizeof_;
23866
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23867
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23868
@%:@include 
23869
@%:@include 
23870
int
23871
main ()
23872
{
23873
 
23874
  FILE *f = fopen ("conftest.val", "w");
23875
  if (! f)
23876
    return 1;
23877
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23878
    {
23879
      long int i = longval ();
23880
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23881
        return 1;
23882
      fprintf (f, "%ld\n", i);
23883
    }
23884
  else
23885
    {
23886
      unsigned long int i = ulongval ();
23887
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23888
        return 1;
23889
      fprintf (f, "%lu\n", i);
23890
    }
23891
  return ferror (f) || fclose (f) != 0;
23892
 
23893
  ;
23894
  return 0;
23895
}
23896
_ACEOF
23897
rm -f conftest$ac_exeext
23898
if { (ac_try="$ac_link"
23899
case "(($ac_try" in
23900
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901
  *) ac_try_echo=$ac_try;;
23902
esac
23903
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23904
  (eval "$ac_link") 2>&5
23905
  ac_status=$?
23906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23908
  { (case "(($ac_try" in
23909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23910
  *) ac_try_echo=$ac_try;;
23911
esac
23912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913
  (eval "$ac_try") 2>&5
23914
  ac_status=$?
23915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916
  (exit $ac_status); }; }; then
23917
  ac_cv_sizeof_char=`cat conftest.val`
23918
else
23919
  echo "$as_me: program exited with status $ac_status" >&5
23920
echo "$as_me: failed program was:" >&5
23921
sed 's/^/| /' conftest.$ac_ext >&5
23922
 
23923
( exit $ac_status )
23924
if test "$ac_cv_type_char" = yes; then
23925
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23926
See \`config.log' for more details." >&5
23927
echo "$as_me: error: cannot compute sizeof (char)
23928
See \`config.log' for more details." >&2;}
23929
   { (exit 77); exit 77; }; }
23930
   else
23931
     ac_cv_sizeof_char=0
23932
   fi
23933
fi
23934
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23935
fi
23936
rm -f conftest.val
23937
fi
23938
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23939
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23940
 
23941
 
23942
 
23943
cat >>confdefs.h <<_ACEOF
23944
@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
23945
_ACEOF
23946
 
23947
 
23948
{ echo "$as_me:$LINENO: checking for short" >&5
23949
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
23950
if test "${ac_cv_type_short+set}" = set; then
23951
  echo $ECHO_N "(cached) $ECHO_C" >&6
23952
else
23953
  cat >conftest.$ac_ext <<_ACEOF
23954
/* confdefs.h.  */
23955
_ACEOF
23956
cat confdefs.h >>conftest.$ac_ext
23957
cat >>conftest.$ac_ext <<_ACEOF
23958
/* end confdefs.h.  */
23959
$ac_includes_default
23960
typedef short ac__type_new_;
23961
int
23962
main ()
23963
{
23964
if ((ac__type_new_ *) 0)
23965
  return 0;
23966
if (sizeof (ac__type_new_))
23967
  return 0;
23968
  ;
23969
  return 0;
23970
}
23971
_ACEOF
23972
rm -f conftest.$ac_objext
23973
if { (ac_try="$ac_compile"
23974
case "(($ac_try" in
23975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976
  *) ac_try_echo=$ac_try;;
23977
esac
23978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23979
  (eval "$ac_compile") 2>conftest.er1
23980
  ac_status=$?
23981
  grep -v '^ *+' conftest.er1 >conftest.err
23982
  rm -f conftest.er1
23983
  cat conftest.err >&5
23984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985
  (exit $ac_status); } && {
23986
         test -z "$ac_c_werror_flag" ||
23987
         test ! -s conftest.err
23988
       } && test -s conftest.$ac_objext; then
23989
  ac_cv_type_short=yes
23990
else
23991
  echo "$as_me: failed program was:" >&5
23992
sed 's/^/| /' conftest.$ac_ext >&5
23993
 
23994
        ac_cv_type_short=no
23995
fi
23996
 
23997
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23998
fi
23999
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
24000
echo "${ECHO_T}$ac_cv_type_short" >&6; }
24001
 
24002
# The cast to long int works around a bug in the HP C Compiler
24003
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24004
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24005
# This bug is HP SR number 8606223364.
24006
{ echo "$as_me:$LINENO: checking size of short" >&5
24007
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
24008
if test "${ac_cv_sizeof_short+set}" = set; then
24009
  echo $ECHO_N "(cached) $ECHO_C" >&6
24010
else
24011
  if test "$cross_compiling" = yes; then
24012
  # Depending upon the size, compute the lo and hi bounds.
24013
cat >conftest.$ac_ext <<_ACEOF
24014
/* confdefs.h.  */
24015
_ACEOF
24016
cat confdefs.h >>conftest.$ac_ext
24017
cat >>conftest.$ac_ext <<_ACEOF
24018
/* end confdefs.h.  */
24019
$ac_includes_default
24020
   typedef short ac__type_sizeof_;
24021
int
24022
main ()
24023
{
24024
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24025
test_array @<:@0@:>@ = 0
24026
 
24027
  ;
24028
  return 0;
24029
}
24030
_ACEOF
24031
rm -f conftest.$ac_objext
24032
if { (ac_try="$ac_compile"
24033
case "(($ac_try" in
24034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035
  *) ac_try_echo=$ac_try;;
24036
esac
24037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24038
  (eval "$ac_compile") 2>conftest.er1
24039
  ac_status=$?
24040
  grep -v '^ *+' conftest.er1 >conftest.err
24041
  rm -f conftest.er1
24042
  cat conftest.err >&5
24043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044
  (exit $ac_status); } && {
24045
         test -z "$ac_c_werror_flag" ||
24046
         test ! -s conftest.err
24047
       } && test -s conftest.$ac_objext; then
24048
  ac_lo=0 ac_mid=0
24049
  while :; do
24050
    cat >conftest.$ac_ext <<_ACEOF
24051
/* confdefs.h.  */
24052
_ACEOF
24053
cat confdefs.h >>conftest.$ac_ext
24054
cat >>conftest.$ac_ext <<_ACEOF
24055
/* end confdefs.h.  */
24056
$ac_includes_default
24057
   typedef short ac__type_sizeof_;
24058
int
24059
main ()
24060
{
24061
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24062
test_array @<:@0@:>@ = 0
24063
 
24064
  ;
24065
  return 0;
24066
}
24067
_ACEOF
24068
rm -f conftest.$ac_objext
24069
if { (ac_try="$ac_compile"
24070
case "(($ac_try" in
24071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24072
  *) ac_try_echo=$ac_try;;
24073
esac
24074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24075
  (eval "$ac_compile") 2>conftest.er1
24076
  ac_status=$?
24077
  grep -v '^ *+' conftest.er1 >conftest.err
24078
  rm -f conftest.er1
24079
  cat conftest.err >&5
24080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081
  (exit $ac_status); } && {
24082
         test -z "$ac_c_werror_flag" ||
24083
         test ! -s conftest.err
24084
       } && test -s conftest.$ac_objext; then
24085
  ac_hi=$ac_mid; break
24086
else
24087
  echo "$as_me: failed program was:" >&5
24088
sed 's/^/| /' conftest.$ac_ext >&5
24089
 
24090
        ac_lo=`expr $ac_mid + 1`
24091
                        if test $ac_lo -le $ac_mid; then
24092
                          ac_lo= ac_hi=
24093
                          break
24094
                        fi
24095
                        ac_mid=`expr 2 '*' $ac_mid + 1`
24096
fi
24097
 
24098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24099
  done
24100
else
24101
  echo "$as_me: failed program was:" >&5
24102
sed 's/^/| /' conftest.$ac_ext >&5
24103
 
24104
        cat >conftest.$ac_ext <<_ACEOF
24105
/* confdefs.h.  */
24106
_ACEOF
24107
cat confdefs.h >>conftest.$ac_ext
24108
cat >>conftest.$ac_ext <<_ACEOF
24109
/* end confdefs.h.  */
24110
$ac_includes_default
24111
   typedef short ac__type_sizeof_;
24112
int
24113
main ()
24114
{
24115
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24116
test_array @<:@0@:>@ = 0
24117
 
24118
  ;
24119
  return 0;
24120
}
24121
_ACEOF
24122
rm -f conftest.$ac_objext
24123
if { (ac_try="$ac_compile"
24124
case "(($ac_try" in
24125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24126
  *) ac_try_echo=$ac_try;;
24127
esac
24128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24129
  (eval "$ac_compile") 2>conftest.er1
24130
  ac_status=$?
24131
  grep -v '^ *+' conftest.er1 >conftest.err
24132
  rm -f conftest.er1
24133
  cat conftest.err >&5
24134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135
  (exit $ac_status); } && {
24136
         test -z "$ac_c_werror_flag" ||
24137
         test ! -s conftest.err
24138
       } && test -s conftest.$ac_objext; then
24139
  ac_hi=-1 ac_mid=-1
24140
  while :; do
24141
    cat >conftest.$ac_ext <<_ACEOF
24142
/* confdefs.h.  */
24143
_ACEOF
24144
cat confdefs.h >>conftest.$ac_ext
24145
cat >>conftest.$ac_ext <<_ACEOF
24146
/* end confdefs.h.  */
24147
$ac_includes_default
24148
   typedef short ac__type_sizeof_;
24149
int
24150
main ()
24151
{
24152
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24153
test_array @<:@0@:>@ = 0
24154
 
24155
  ;
24156
  return 0;
24157
}
24158
_ACEOF
24159
rm -f conftest.$ac_objext
24160
if { (ac_try="$ac_compile"
24161
case "(($ac_try" in
24162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24163
  *) ac_try_echo=$ac_try;;
24164
esac
24165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24166
  (eval "$ac_compile") 2>conftest.er1
24167
  ac_status=$?
24168
  grep -v '^ *+' conftest.er1 >conftest.err
24169
  rm -f conftest.er1
24170
  cat conftest.err >&5
24171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172
  (exit $ac_status); } && {
24173
         test -z "$ac_c_werror_flag" ||
24174
         test ! -s conftest.err
24175
       } && test -s conftest.$ac_objext; then
24176
  ac_lo=$ac_mid; break
24177
else
24178
  echo "$as_me: failed program was:" >&5
24179
sed 's/^/| /' conftest.$ac_ext >&5
24180
 
24181
        ac_hi=`expr '(' $ac_mid ')' - 1`
24182
                        if test $ac_mid -le $ac_hi; then
24183
                          ac_lo= ac_hi=
24184
                          break
24185
                        fi
24186
                        ac_mid=`expr 2 '*' $ac_mid`
24187
fi
24188
 
24189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24190
  done
24191
else
24192
  echo "$as_me: failed program was:" >&5
24193
sed 's/^/| /' conftest.$ac_ext >&5
24194
 
24195
        ac_lo= ac_hi=
24196
fi
24197
 
24198
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24199
fi
24200
 
24201
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24202
# Binary search between lo and hi bounds.
24203
while test "x$ac_lo" != "x$ac_hi"; do
24204
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24205
  cat >conftest.$ac_ext <<_ACEOF
24206
/* confdefs.h.  */
24207
_ACEOF
24208
cat confdefs.h >>conftest.$ac_ext
24209
cat >>conftest.$ac_ext <<_ACEOF
24210
/* end confdefs.h.  */
24211
$ac_includes_default
24212
   typedef short ac__type_sizeof_;
24213
int
24214
main ()
24215
{
24216
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24217
test_array @<:@0@:>@ = 0
24218
 
24219
  ;
24220
  return 0;
24221
}
24222
_ACEOF
24223
rm -f conftest.$ac_objext
24224
if { (ac_try="$ac_compile"
24225
case "(($ac_try" in
24226
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227
  *) ac_try_echo=$ac_try;;
24228
esac
24229
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24230
  (eval "$ac_compile") 2>conftest.er1
24231
  ac_status=$?
24232
  grep -v '^ *+' conftest.er1 >conftest.err
24233
  rm -f conftest.er1
24234
  cat conftest.err >&5
24235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236
  (exit $ac_status); } && {
24237
         test -z "$ac_c_werror_flag" ||
24238
         test ! -s conftest.err
24239
       } && test -s conftest.$ac_objext; then
24240
  ac_hi=$ac_mid
24241
else
24242
  echo "$as_me: failed program was:" >&5
24243
sed 's/^/| /' conftest.$ac_ext >&5
24244
 
24245
        ac_lo=`expr '(' $ac_mid ')' + 1`
24246
fi
24247
 
24248
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24249
done
24250
case $ac_lo in
24251
?*) ac_cv_sizeof_short=$ac_lo;;
24252
'') if test "$ac_cv_type_short" = yes; then
24253
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
24254
See \`config.log' for more details." >&5
24255
echo "$as_me: error: cannot compute sizeof (short)
24256
See \`config.log' for more details." >&2;}
24257
   { (exit 77); exit 77; }; }
24258
   else
24259
     ac_cv_sizeof_short=0
24260
   fi ;;
24261
esac
24262
else
24263
  cat >conftest.$ac_ext <<_ACEOF
24264
/* confdefs.h.  */
24265
_ACEOF
24266
cat confdefs.h >>conftest.$ac_ext
24267
cat >>conftest.$ac_ext <<_ACEOF
24268
/* end confdefs.h.  */
24269
$ac_includes_default
24270
   typedef short ac__type_sizeof_;
24271
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24272
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24273
@%:@include 
24274
@%:@include 
24275
int
24276
main ()
24277
{
24278
 
24279
  FILE *f = fopen ("conftest.val", "w");
24280
  if (! f)
24281
    return 1;
24282
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24283
    {
24284
      long int i = longval ();
24285
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24286
        return 1;
24287
      fprintf (f, "%ld\n", i);
24288
    }
24289
  else
24290
    {
24291
      unsigned long int i = ulongval ();
24292
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24293
        return 1;
24294
      fprintf (f, "%lu\n", i);
24295
    }
24296
  return ferror (f) || fclose (f) != 0;
24297
 
24298
  ;
24299
  return 0;
24300
}
24301
_ACEOF
24302
rm -f conftest$ac_exeext
24303
if { (ac_try="$ac_link"
24304
case "(($ac_try" in
24305
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24306
  *) ac_try_echo=$ac_try;;
24307
esac
24308
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24309
  (eval "$ac_link") 2>&5
24310
  ac_status=$?
24311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24313
  { (case "(($ac_try" in
24314
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24315
  *) ac_try_echo=$ac_try;;
24316
esac
24317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24318
  (eval "$ac_try") 2>&5
24319
  ac_status=$?
24320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321
  (exit $ac_status); }; }; then
24322
  ac_cv_sizeof_short=`cat conftest.val`
24323
else
24324
  echo "$as_me: program exited with status $ac_status" >&5
24325
echo "$as_me: failed program was:" >&5
24326
sed 's/^/| /' conftest.$ac_ext >&5
24327
 
24328
( exit $ac_status )
24329
if test "$ac_cv_type_short" = yes; then
24330
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
24331
See \`config.log' for more details." >&5
24332
echo "$as_me: error: cannot compute sizeof (short)
24333
See \`config.log' for more details." >&2;}
24334
   { (exit 77); exit 77; }; }
24335
   else
24336
     ac_cv_sizeof_short=0
24337
   fi
24338
fi
24339
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24340
fi
24341
rm -f conftest.val
24342
fi
24343
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
24344
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
24345
 
24346
 
24347
 
24348
cat >>confdefs.h <<_ACEOF
24349
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
24350
_ACEOF
24351
 
24352
 
24353
{ echo "$as_me:$LINENO: checking for int" >&5
24354
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24355
if test "${ac_cv_type_int+set}" = set; then
24356
  echo $ECHO_N "(cached) $ECHO_C" >&6
24357
else
24358
  cat >conftest.$ac_ext <<_ACEOF
24359
/* confdefs.h.  */
24360
_ACEOF
24361
cat confdefs.h >>conftest.$ac_ext
24362
cat >>conftest.$ac_ext <<_ACEOF
24363
/* end confdefs.h.  */
24364
$ac_includes_default
24365
typedef int ac__type_new_;
24366
int
24367
main ()
24368
{
24369
if ((ac__type_new_ *) 0)
24370
  return 0;
24371
if (sizeof (ac__type_new_))
24372
  return 0;
24373
  ;
24374
  return 0;
24375
}
24376
_ACEOF
24377
rm -f conftest.$ac_objext
24378
if { (ac_try="$ac_compile"
24379
case "(($ac_try" in
24380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381
  *) ac_try_echo=$ac_try;;
24382
esac
24383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24384
  (eval "$ac_compile") 2>conftest.er1
24385
  ac_status=$?
24386
  grep -v '^ *+' conftest.er1 >conftest.err
24387
  rm -f conftest.er1
24388
  cat conftest.err >&5
24389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390
  (exit $ac_status); } && {
24391
         test -z "$ac_c_werror_flag" ||
24392
         test ! -s conftest.err
24393
       } && test -s conftest.$ac_objext; then
24394
  ac_cv_type_int=yes
24395
else
24396
  echo "$as_me: failed program was:" >&5
24397
sed 's/^/| /' conftest.$ac_ext >&5
24398
 
24399
        ac_cv_type_int=no
24400
fi
24401
 
24402
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24403
fi
24404
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24405
echo "${ECHO_T}$ac_cv_type_int" >&6; }
24406
 
24407
# The cast to long int works around a bug in the HP C Compiler
24408
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24409
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24410
# This bug is HP SR number 8606223364.
24411
{ echo "$as_me:$LINENO: checking size of int" >&5
24412
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24413
if test "${ac_cv_sizeof_int+set}" = set; then
24414
  echo $ECHO_N "(cached) $ECHO_C" >&6
24415
else
24416
  if test "$cross_compiling" = yes; then
24417
  # Depending upon the size, compute the lo and hi bounds.
24418
cat >conftest.$ac_ext <<_ACEOF
24419
/* confdefs.h.  */
24420
_ACEOF
24421
cat confdefs.h >>conftest.$ac_ext
24422
cat >>conftest.$ac_ext <<_ACEOF
24423
/* end confdefs.h.  */
24424
$ac_includes_default
24425
   typedef int ac__type_sizeof_;
24426
int
24427
main ()
24428
{
24429
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24430
test_array @<:@0@:>@ = 0
24431
 
24432
  ;
24433
  return 0;
24434
}
24435
_ACEOF
24436
rm -f conftest.$ac_objext
24437
if { (ac_try="$ac_compile"
24438
case "(($ac_try" in
24439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440
  *) ac_try_echo=$ac_try;;
24441
esac
24442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443
  (eval "$ac_compile") 2>conftest.er1
24444
  ac_status=$?
24445
  grep -v '^ *+' conftest.er1 >conftest.err
24446
  rm -f conftest.er1
24447
  cat conftest.err >&5
24448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449
  (exit $ac_status); } && {
24450
         test -z "$ac_c_werror_flag" ||
24451
         test ! -s conftest.err
24452
       } && test -s conftest.$ac_objext; then
24453
  ac_lo=0 ac_mid=0
24454
  while :; do
24455
    cat >conftest.$ac_ext <<_ACEOF
24456
/* confdefs.h.  */
24457
_ACEOF
24458
cat confdefs.h >>conftest.$ac_ext
24459
cat >>conftest.$ac_ext <<_ACEOF
24460
/* end confdefs.h.  */
24461
$ac_includes_default
24462
   typedef int ac__type_sizeof_;
24463
int
24464
main ()
24465
{
24466
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24467
test_array @<:@0@:>@ = 0
24468
 
24469
  ;
24470
  return 0;
24471
}
24472
_ACEOF
24473
rm -f conftest.$ac_objext
24474
if { (ac_try="$ac_compile"
24475
case "(($ac_try" in
24476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477
  *) ac_try_echo=$ac_try;;
24478
esac
24479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24480
  (eval "$ac_compile") 2>conftest.er1
24481
  ac_status=$?
24482
  grep -v '^ *+' conftest.er1 >conftest.err
24483
  rm -f conftest.er1
24484
  cat conftest.err >&5
24485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486
  (exit $ac_status); } && {
24487
         test -z "$ac_c_werror_flag" ||
24488
         test ! -s conftest.err
24489
       } && test -s conftest.$ac_objext; then
24490
  ac_hi=$ac_mid; break
24491
else
24492
  echo "$as_me: failed program was:" >&5
24493
sed 's/^/| /' conftest.$ac_ext >&5
24494
 
24495
        ac_lo=`expr $ac_mid + 1`
24496
                        if test $ac_lo -le $ac_mid; then
24497
                          ac_lo= ac_hi=
24498
                          break
24499
                        fi
24500
                        ac_mid=`expr 2 '*' $ac_mid + 1`
24501
fi
24502
 
24503
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24504
  done
24505
else
24506
  echo "$as_me: failed program was:" >&5
24507
sed 's/^/| /' conftest.$ac_ext >&5
24508
 
24509
        cat >conftest.$ac_ext <<_ACEOF
24510
/* confdefs.h.  */
24511
_ACEOF
24512
cat confdefs.h >>conftest.$ac_ext
24513
cat >>conftest.$ac_ext <<_ACEOF
24514
/* end confdefs.h.  */
24515
$ac_includes_default
24516
   typedef int ac__type_sizeof_;
24517
int
24518
main ()
24519
{
24520
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24521
test_array @<:@0@:>@ = 0
24522
 
24523
  ;
24524
  return 0;
24525
}
24526
_ACEOF
24527
rm -f conftest.$ac_objext
24528
if { (ac_try="$ac_compile"
24529
case "(($ac_try" in
24530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24531
  *) ac_try_echo=$ac_try;;
24532
esac
24533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24534
  (eval "$ac_compile") 2>conftest.er1
24535
  ac_status=$?
24536
  grep -v '^ *+' conftest.er1 >conftest.err
24537
  rm -f conftest.er1
24538
  cat conftest.err >&5
24539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540
  (exit $ac_status); } && {
24541
         test -z "$ac_c_werror_flag" ||
24542
         test ! -s conftest.err
24543
       } && test -s conftest.$ac_objext; then
24544
  ac_hi=-1 ac_mid=-1
24545
  while :; do
24546
    cat >conftest.$ac_ext <<_ACEOF
24547
/* confdefs.h.  */
24548
_ACEOF
24549
cat confdefs.h >>conftest.$ac_ext
24550
cat >>conftest.$ac_ext <<_ACEOF
24551
/* end confdefs.h.  */
24552
$ac_includes_default
24553
   typedef int ac__type_sizeof_;
24554
int
24555
main ()
24556
{
24557
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24558
test_array @<:@0@:>@ = 0
24559
 
24560
  ;
24561
  return 0;
24562
}
24563
_ACEOF
24564
rm -f conftest.$ac_objext
24565
if { (ac_try="$ac_compile"
24566
case "(($ac_try" in
24567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568
  *) ac_try_echo=$ac_try;;
24569
esac
24570
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571
  (eval "$ac_compile") 2>conftest.er1
24572
  ac_status=$?
24573
  grep -v '^ *+' conftest.er1 >conftest.err
24574
  rm -f conftest.er1
24575
  cat conftest.err >&5
24576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577
  (exit $ac_status); } && {
24578
         test -z "$ac_c_werror_flag" ||
24579
         test ! -s conftest.err
24580
       } && test -s conftest.$ac_objext; then
24581
  ac_lo=$ac_mid; break
24582
else
24583
  echo "$as_me: failed program was:" >&5
24584
sed 's/^/| /' conftest.$ac_ext >&5
24585
 
24586
        ac_hi=`expr '(' $ac_mid ')' - 1`
24587
                        if test $ac_mid -le $ac_hi; then
24588
                          ac_lo= ac_hi=
24589
                          break
24590
                        fi
24591
                        ac_mid=`expr 2 '*' $ac_mid`
24592
fi
24593
 
24594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24595
  done
24596
else
24597
  echo "$as_me: failed program was:" >&5
24598
sed 's/^/| /' conftest.$ac_ext >&5
24599
 
24600
        ac_lo= ac_hi=
24601
fi
24602
 
24603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24604
fi
24605
 
24606
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24607
# Binary search between lo and hi bounds.
24608
while test "x$ac_lo" != "x$ac_hi"; do
24609
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24610
  cat >conftest.$ac_ext <<_ACEOF
24611
/* confdefs.h.  */
24612
_ACEOF
24613
cat confdefs.h >>conftest.$ac_ext
24614
cat >>conftest.$ac_ext <<_ACEOF
24615
/* end confdefs.h.  */
24616
$ac_includes_default
24617
   typedef int ac__type_sizeof_;
24618
int
24619
main ()
24620
{
24621
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24622
test_array @<:@0@:>@ = 0
24623
 
24624
  ;
24625
  return 0;
24626
}
24627
_ACEOF
24628
rm -f conftest.$ac_objext
24629
if { (ac_try="$ac_compile"
24630
case "(($ac_try" in
24631
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632
  *) ac_try_echo=$ac_try;;
24633
esac
24634
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635
  (eval "$ac_compile") 2>conftest.er1
24636
  ac_status=$?
24637
  grep -v '^ *+' conftest.er1 >conftest.err
24638
  rm -f conftest.er1
24639
  cat conftest.err >&5
24640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641
  (exit $ac_status); } && {
24642
         test -z "$ac_c_werror_flag" ||
24643
         test ! -s conftest.err
24644
       } && test -s conftest.$ac_objext; then
24645
  ac_hi=$ac_mid
24646
else
24647
  echo "$as_me: failed program was:" >&5
24648
sed 's/^/| /' conftest.$ac_ext >&5
24649
 
24650
        ac_lo=`expr '(' $ac_mid ')' + 1`
24651
fi
24652
 
24653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24654
done
24655
case $ac_lo in
24656
?*) ac_cv_sizeof_int=$ac_lo;;
24657
'') if test "$ac_cv_type_int" = yes; then
24658
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24659
See \`config.log' for more details." >&5
24660
echo "$as_me: error: cannot compute sizeof (int)
24661
See \`config.log' for more details." >&2;}
24662
   { (exit 77); exit 77; }; }
24663
   else
24664
     ac_cv_sizeof_int=0
24665
   fi ;;
24666
esac
24667
else
24668
  cat >conftest.$ac_ext <<_ACEOF
24669
/* confdefs.h.  */
24670
_ACEOF
24671
cat confdefs.h >>conftest.$ac_ext
24672
cat >>conftest.$ac_ext <<_ACEOF
24673
/* end confdefs.h.  */
24674
$ac_includes_default
24675
   typedef int ac__type_sizeof_;
24676
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24677
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24678
@%:@include 
24679
@%:@include 
24680
int
24681
main ()
24682
{
24683
 
24684
  FILE *f = fopen ("conftest.val", "w");
24685
  if (! f)
24686
    return 1;
24687
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24688
    {
24689
      long int i = longval ();
24690
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24691
        return 1;
24692
      fprintf (f, "%ld\n", i);
24693
    }
24694
  else
24695
    {
24696
      unsigned long int i = ulongval ();
24697
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24698
        return 1;
24699
      fprintf (f, "%lu\n", i);
24700
    }
24701
  return ferror (f) || fclose (f) != 0;
24702
 
24703
  ;
24704
  return 0;
24705
}
24706
_ACEOF
24707
rm -f conftest$ac_exeext
24708
if { (ac_try="$ac_link"
24709
case "(($ac_try" in
24710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711
  *) ac_try_echo=$ac_try;;
24712
esac
24713
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24714
  (eval "$ac_link") 2>&5
24715
  ac_status=$?
24716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24718
  { (case "(($ac_try" in
24719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720
  *) ac_try_echo=$ac_try;;
24721
esac
24722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723
  (eval "$ac_try") 2>&5
24724
  ac_status=$?
24725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726
  (exit $ac_status); }; }; then
24727
  ac_cv_sizeof_int=`cat conftest.val`
24728
else
24729
  echo "$as_me: program exited with status $ac_status" >&5
24730
echo "$as_me: failed program was:" >&5
24731
sed 's/^/| /' conftest.$ac_ext >&5
24732
 
24733
( exit $ac_status )
24734
if test "$ac_cv_type_int" = yes; then
24735
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24736
See \`config.log' for more details." >&5
24737
echo "$as_me: error: cannot compute sizeof (int)
24738
See \`config.log' for more details." >&2;}
24739
   { (exit 77); exit 77; }; }
24740
   else
24741
     ac_cv_sizeof_int=0
24742
   fi
24743
fi
24744
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24745
fi
24746
rm -f conftest.val
24747
fi
24748
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24749
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24750
 
24751
 
24752
 
24753
cat >>confdefs.h <<_ACEOF
24754
@%:@define SIZEOF_INT $ac_cv_sizeof_int
24755
_ACEOF
24756
 
24757
 
24758
{ echo "$as_me:$LINENO: checking for long" >&5
24759
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
24760
if test "${ac_cv_type_long+set}" = set; then
24761
  echo $ECHO_N "(cached) $ECHO_C" >&6
24762
else
24763
  cat >conftest.$ac_ext <<_ACEOF
24764
/* confdefs.h.  */
24765
_ACEOF
24766
cat confdefs.h >>conftest.$ac_ext
24767
cat >>conftest.$ac_ext <<_ACEOF
24768
/* end confdefs.h.  */
24769
$ac_includes_default
24770
typedef long ac__type_new_;
24771
int
24772
main ()
24773
{
24774
if ((ac__type_new_ *) 0)
24775
  return 0;
24776
if (sizeof (ac__type_new_))
24777
  return 0;
24778
  ;
24779
  return 0;
24780
}
24781
_ACEOF
24782
rm -f conftest.$ac_objext
24783
if { (ac_try="$ac_compile"
24784
case "(($ac_try" in
24785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24786
  *) ac_try_echo=$ac_try;;
24787
esac
24788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24789
  (eval "$ac_compile") 2>conftest.er1
24790
  ac_status=$?
24791
  grep -v '^ *+' conftest.er1 >conftest.err
24792
  rm -f conftest.er1
24793
  cat conftest.err >&5
24794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795
  (exit $ac_status); } && {
24796
         test -z "$ac_c_werror_flag" ||
24797
         test ! -s conftest.err
24798
       } && test -s conftest.$ac_objext; then
24799
  ac_cv_type_long=yes
24800
else
24801
  echo "$as_me: failed program was:" >&5
24802
sed 's/^/| /' conftest.$ac_ext >&5
24803
 
24804
        ac_cv_type_long=no
24805
fi
24806
 
24807
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24808
fi
24809
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
24810
echo "${ECHO_T}$ac_cv_type_long" >&6; }
24811
 
24812
# The cast to long int works around a bug in the HP C Compiler
24813
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24814
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24815
# This bug is HP SR number 8606223364.
24816
{ echo "$as_me:$LINENO: checking size of long" >&5
24817
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
24818
if test "${ac_cv_sizeof_long+set}" = set; then
24819
  echo $ECHO_N "(cached) $ECHO_C" >&6
24820
else
24821
  if test "$cross_compiling" = yes; then
24822
  # Depending upon the size, compute the lo and hi bounds.
24823
cat >conftest.$ac_ext <<_ACEOF
24824
/* confdefs.h.  */
24825
_ACEOF
24826
cat confdefs.h >>conftest.$ac_ext
24827
cat >>conftest.$ac_ext <<_ACEOF
24828
/* end confdefs.h.  */
24829
$ac_includes_default
24830
   typedef long ac__type_sizeof_;
24831
int
24832
main ()
24833
{
24834
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
24835
test_array @<:@0@:>@ = 0
24836
 
24837
  ;
24838
  return 0;
24839
}
24840
_ACEOF
24841
rm -f conftest.$ac_objext
24842
if { (ac_try="$ac_compile"
24843
case "(($ac_try" in
24844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845
  *) ac_try_echo=$ac_try;;
24846
esac
24847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848
  (eval "$ac_compile") 2>conftest.er1
24849
  ac_status=$?
24850
  grep -v '^ *+' conftest.er1 >conftest.err
24851
  rm -f conftest.er1
24852
  cat conftest.err >&5
24853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854
  (exit $ac_status); } && {
24855
         test -z "$ac_c_werror_flag" ||
24856
         test ! -s conftest.err
24857
       } && test -s conftest.$ac_objext; then
24858
  ac_lo=0 ac_mid=0
24859
  while :; do
24860
    cat >conftest.$ac_ext <<_ACEOF
24861
/* confdefs.h.  */
24862
_ACEOF
24863
cat confdefs.h >>conftest.$ac_ext
24864
cat >>conftest.$ac_ext <<_ACEOF
24865
/* end confdefs.h.  */
24866
$ac_includes_default
24867
   typedef long ac__type_sizeof_;
24868
int
24869
main ()
24870
{
24871
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
24872
test_array @<:@0@:>@ = 0
24873
 
24874
  ;
24875
  return 0;
24876
}
24877
_ACEOF
24878
rm -f conftest.$ac_objext
24879
if { (ac_try="$ac_compile"
24880
case "(($ac_try" in
24881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24882
  *) ac_try_echo=$ac_try;;
24883
esac
24884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24885
  (eval "$ac_compile") 2>conftest.er1
24886
  ac_status=$?
24887
  grep -v '^ *+' conftest.er1 >conftest.err
24888
  rm -f conftest.er1
24889
  cat conftest.err >&5
24890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891
  (exit $ac_status); } && {
24892
         test -z "$ac_c_werror_flag" ||
24893
         test ! -s conftest.err
24894
       } && test -s conftest.$ac_objext; then
24895
  ac_hi=$ac_mid; break
24896
else
24897
  echo "$as_me: failed program was:" >&5
24898
sed 's/^/| /' conftest.$ac_ext >&5
24899
 
24900
        ac_lo=`expr $ac_mid + 1`
24901
                        if test $ac_lo -le $ac_mid; then
24902
                          ac_lo= ac_hi=
24903
                          break
24904
                        fi
24905
                        ac_mid=`expr 2 '*' $ac_mid + 1`
24906
fi
24907
 
24908
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24909
  done
24910
else
24911
  echo "$as_me: failed program was:" >&5
24912
sed 's/^/| /' conftest.$ac_ext >&5
24913
 
24914
        cat >conftest.$ac_ext <<_ACEOF
24915
/* confdefs.h.  */
24916
_ACEOF
24917
cat confdefs.h >>conftest.$ac_ext
24918
cat >>conftest.$ac_ext <<_ACEOF
24919
/* end confdefs.h.  */
24920
$ac_includes_default
24921
   typedef long ac__type_sizeof_;
24922
int
24923
main ()
24924
{
24925
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
24926
test_array @<:@0@:>@ = 0
24927
 
24928
  ;
24929
  return 0;
24930
}
24931
_ACEOF
24932
rm -f conftest.$ac_objext
24933
if { (ac_try="$ac_compile"
24934
case "(($ac_try" in
24935
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24936
  *) ac_try_echo=$ac_try;;
24937
esac
24938
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24939
  (eval "$ac_compile") 2>conftest.er1
24940
  ac_status=$?
24941
  grep -v '^ *+' conftest.er1 >conftest.err
24942
  rm -f conftest.er1
24943
  cat conftest.err >&5
24944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945
  (exit $ac_status); } && {
24946
         test -z "$ac_c_werror_flag" ||
24947
         test ! -s conftest.err
24948
       } && test -s conftest.$ac_objext; then
24949
  ac_hi=-1 ac_mid=-1
24950
  while :; do
24951
    cat >conftest.$ac_ext <<_ACEOF
24952
/* confdefs.h.  */
24953
_ACEOF
24954
cat confdefs.h >>conftest.$ac_ext
24955
cat >>conftest.$ac_ext <<_ACEOF
24956
/* end confdefs.h.  */
24957
$ac_includes_default
24958
   typedef long ac__type_sizeof_;
24959
int
24960
main ()
24961
{
24962
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
24963
test_array @<:@0@:>@ = 0
24964
 
24965
  ;
24966
  return 0;
24967
}
24968
_ACEOF
24969
rm -f conftest.$ac_objext
24970
if { (ac_try="$ac_compile"
24971
case "(($ac_try" in
24972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973
  *) ac_try_echo=$ac_try;;
24974
esac
24975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976
  (eval "$ac_compile") 2>conftest.er1
24977
  ac_status=$?
24978
  grep -v '^ *+' conftest.er1 >conftest.err
24979
  rm -f conftest.er1
24980
  cat conftest.err >&5
24981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982
  (exit $ac_status); } && {
24983
         test -z "$ac_c_werror_flag" ||
24984
         test ! -s conftest.err
24985
       } && test -s conftest.$ac_objext; then
24986
  ac_lo=$ac_mid; break
24987
else
24988
  echo "$as_me: failed program was:" >&5
24989
sed 's/^/| /' conftest.$ac_ext >&5
24990
 
24991
        ac_hi=`expr '(' $ac_mid ')' - 1`
24992
                        if test $ac_mid -le $ac_hi; then
24993
                          ac_lo= ac_hi=
24994
                          break
24995
                        fi
24996
                        ac_mid=`expr 2 '*' $ac_mid`
24997
fi
24998
 
24999
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25000
  done
25001
else
25002
  echo "$as_me: failed program was:" >&5
25003
sed 's/^/| /' conftest.$ac_ext >&5
25004
 
25005
        ac_lo= ac_hi=
25006
fi
25007
 
25008
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25009
fi
25010
 
25011
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25012
# Binary search between lo and hi bounds.
25013
while test "x$ac_lo" != "x$ac_hi"; do
25014
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25015
  cat >conftest.$ac_ext <<_ACEOF
25016
/* confdefs.h.  */
25017
_ACEOF
25018
cat confdefs.h >>conftest.$ac_ext
25019
cat >>conftest.$ac_ext <<_ACEOF
25020
/* end confdefs.h.  */
25021
$ac_includes_default
25022
   typedef long ac__type_sizeof_;
25023
int
25024
main ()
25025
{
25026
static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
25027
test_array @<:@0@:>@ = 0
25028
 
25029
  ;
25030
  return 0;
25031
}
25032
_ACEOF
25033
rm -f conftest.$ac_objext
25034
if { (ac_try="$ac_compile"
25035
case "(($ac_try" in
25036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037
  *) ac_try_echo=$ac_try;;
25038
esac
25039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040
  (eval "$ac_compile") 2>conftest.er1
25041
  ac_status=$?
25042
  grep -v '^ *+' conftest.er1 >conftest.err
25043
  rm -f conftest.er1
25044
  cat conftest.err >&5
25045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046
  (exit $ac_status); } && {
25047
         test -z "$ac_c_werror_flag" ||
25048
         test ! -s conftest.err
25049
       } && test -s conftest.$ac_objext; then
25050
  ac_hi=$ac_mid
25051
else
25052
  echo "$as_me: failed program was:" >&5
25053
sed 's/^/| /' conftest.$ac_ext >&5
25054
 
25055
        ac_lo=`expr '(' $ac_mid ')' + 1`
25056
fi
25057
 
25058
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25059
done
25060
case $ac_lo in
25061
?*) ac_cv_sizeof_long=$ac_lo;;
25062
'') if test "$ac_cv_type_long" = yes; then
25063
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25064
See \`config.log' for more details." >&5
25065
echo "$as_me: error: cannot compute sizeof (long)
25066
See \`config.log' for more details." >&2;}
25067
   { (exit 77); exit 77; }; }
25068
   else
25069
     ac_cv_sizeof_long=0
25070
   fi ;;
25071
esac
25072
else
25073
  cat >conftest.$ac_ext <<_ACEOF
25074
/* confdefs.h.  */
25075
_ACEOF
25076
cat confdefs.h >>conftest.$ac_ext
25077
cat >>conftest.$ac_ext <<_ACEOF
25078
/* end confdefs.h.  */
25079
$ac_includes_default
25080
   typedef long ac__type_sizeof_;
25081
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25082
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25083
@%:@include 
25084
@%:@include 
25085
int
25086
main ()
25087
{
25088
 
25089
  FILE *f = fopen ("conftest.val", "w");
25090
  if (! f)
25091
    return 1;
25092
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25093
    {
25094
      long int i = longval ();
25095
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25096
        return 1;
25097
      fprintf (f, "%ld\n", i);
25098
    }
25099
  else
25100
    {
25101
      unsigned long int i = ulongval ();
25102
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25103
        return 1;
25104
      fprintf (f, "%lu\n", i);
25105
    }
25106
  return ferror (f) || fclose (f) != 0;
25107
 
25108
  ;
25109
  return 0;
25110
}
25111
_ACEOF
25112
rm -f conftest$ac_exeext
25113
if { (ac_try="$ac_link"
25114
case "(($ac_try" in
25115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25116
  *) ac_try_echo=$ac_try;;
25117
esac
25118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25119
  (eval "$ac_link") 2>&5
25120
  ac_status=$?
25121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25123
  { (case "(($ac_try" in
25124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25125
  *) ac_try_echo=$ac_try;;
25126
esac
25127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25128
  (eval "$ac_try") 2>&5
25129
  ac_status=$?
25130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131
  (exit $ac_status); }; }; then
25132
  ac_cv_sizeof_long=`cat conftest.val`
25133
else
25134
  echo "$as_me: program exited with status $ac_status" >&5
25135
echo "$as_me: failed program was:" >&5
25136
sed 's/^/| /' conftest.$ac_ext >&5
25137
 
25138
( exit $ac_status )
25139
if test "$ac_cv_type_long" = yes; then
25140
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25141
See \`config.log' for more details." >&5
25142
echo "$as_me: error: cannot compute sizeof (long)
25143
See \`config.log' for more details." >&2;}
25144
   { (exit 77); exit 77; }; }
25145
   else
25146
     ac_cv_sizeof_long=0
25147
   fi
25148
fi
25149
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25150
fi
25151
rm -f conftest.val
25152
fi
25153
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25154
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
25155
 
25156
 
25157
 
25158
cat >>confdefs.h <<_ACEOF
25159
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
25160
_ACEOF
25161
 
25162
 
25163
 
25164 60 jeremybenn
#Check for compare function type for qsort (needed by some Linuxes)
25165
{ echo "$as_me:$LINENO: checking for __compar_fn_t" >&5
25166
echo $ECHO_N "checking for __compar_fn_t... $ECHO_C" >&6; }
25167
if test "${ac_cv_type___compar_fn_t+set}" = set; then
25168
  echo $ECHO_N "(cached) $ECHO_C" >&6
25169
else
25170
  cat >conftest.$ac_ext <<_ACEOF
25171
/* confdefs.h.  */
25172
_ACEOF
25173
cat confdefs.h >>conftest.$ac_ext
25174
cat >>conftest.$ac_ext <<_ACEOF
25175
/* end confdefs.h.  */
25176
$ac_includes_default
25177
typedef __compar_fn_t ac__type_new_;
25178
int
25179
main ()
25180
{
25181
if ((ac__type_new_ *) 0)
25182
  return 0;
25183
if (sizeof (ac__type_new_))
25184
  return 0;
25185
  ;
25186
  return 0;
25187
}
25188
_ACEOF
25189
rm -f conftest.$ac_objext
25190
if { (ac_try="$ac_compile"
25191
case "(($ac_try" in
25192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193
  *) ac_try_echo=$ac_try;;
25194
esac
25195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25196
  (eval "$ac_compile") 2>conftest.er1
25197
  ac_status=$?
25198
  grep -v '^ *+' conftest.er1 >conftest.err
25199
  rm -f conftest.er1
25200
  cat conftest.err >&5
25201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202
  (exit $ac_status); } && {
25203
         test -z "$ac_c_werror_flag" ||
25204
         test ! -s conftest.err
25205
       } && test -s conftest.$ac_objext; then
25206
  ac_cv_type___compar_fn_t=yes
25207
else
25208
  echo "$as_me: failed program was:" >&5
25209
sed 's/^/| /' conftest.$ac_ext >&5
25210
 
25211
        ac_cv_type___compar_fn_t=no
25212
fi
25213
 
25214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25215
fi
25216
{ echo "$as_me:$LINENO: result: $ac_cv_type___compar_fn_t" >&5
25217
echo "${ECHO_T}$ac_cv_type___compar_fn_t" >&6; }
25218
if test $ac_cv_type___compar_fn_t = yes; then
25219
 
25220
cat >>confdefs.h <<_ACEOF
25221
@%:@define HAVE___COMPAR_FN_T 1
25222
_ACEOF
25223
 
25224
 
25225
fi
25226
 
25227
 
25228 19 jeremybenn
# check for GNU readline
25229
 
25230
{ echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
25231
echo $ECHO_N "checking for add_history in -lreadline... $ECHO_C" >&6; }
25232
if test "${ac_cv_lib_readline_add_history+set}" = set; then
25233
  echo $ECHO_N "(cached) $ECHO_C" >&6
25234
else
25235
  ac_check_lib_save_LIBS=$LIBS
25236
LIBS="-lreadline  $LIBS"
25237
cat >conftest.$ac_ext <<_ACEOF
25238
/* confdefs.h.  */
25239
_ACEOF
25240
cat confdefs.h >>conftest.$ac_ext
25241
cat >>conftest.$ac_ext <<_ACEOF
25242
/* end confdefs.h.  */
25243
 
25244
/* Override any GCC internal prototype to avoid an error.
25245
   Use char because int might match the return type of a GCC
25246
   builtin and then its argument prototype would still apply.  */
25247
#ifdef __cplusplus
25248
extern "C"
25249
#endif
25250
char add_history ();
25251
int
25252
main ()
25253
{
25254
return add_history ();
25255
  ;
25256
  return 0;
25257
}
25258
_ACEOF
25259
rm -f conftest.$ac_objext conftest$ac_exeext
25260
if { (ac_try="$ac_link"
25261
case "(($ac_try" in
25262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25263
  *) ac_try_echo=$ac_try;;
25264
esac
25265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25266
  (eval "$ac_link") 2>conftest.er1
25267
  ac_status=$?
25268
  grep -v '^ *+' conftest.er1 >conftest.err
25269
  rm -f conftest.er1
25270
  cat conftest.err >&5
25271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272
  (exit $ac_status); } && {
25273
         test -z "$ac_c_werror_flag" ||
25274
         test ! -s conftest.err
25275
       } && test -s conftest$ac_exeext &&
25276
       $as_test_x conftest$ac_exeext; then
25277
  ac_cv_lib_readline_add_history=yes
25278
else
25279
  echo "$as_me: failed program was:" >&5
25280
sed 's/^/| /' conftest.$ac_ext >&5
25281
 
25282
        ac_cv_lib_readline_add_history=no
25283
fi
25284
 
25285
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25286
      conftest$ac_exeext conftest.$ac_ext
25287
LIBS=$ac_check_lib_save_LIBS
25288
fi
25289
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
25290
echo "${ECHO_T}$ac_cv_lib_readline_add_history" >&6; }
25291
if test $ac_cv_lib_readline_add_history = yes; then
25292
  cat >>confdefs.h <<_ACEOF
25293
@%:@define HAVE_LIBREADLINE 1
25294
_ACEOF
25295
 
25296
  LIBS="-lreadline $LIBS"
25297
 
25298
fi
25299
 
25300 60 jeremybenn
# Not all versions of readline have rl_event_hook (e.g., Mac OS X)
25301
{ echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
25302
echo $ECHO_N "checking whether rl_event_hook is declared... $ECHO_C" >&6; }
25303
if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
25304
  echo $ECHO_N "(cached) $ECHO_C" >&6
25305
else
25306
  cat >conftest.$ac_ext <<_ACEOF
25307
/* confdefs.h.  */
25308
_ACEOF
25309
cat confdefs.h >>conftest.$ac_ext
25310
cat >>conftest.$ac_ext <<_ACEOF
25311
/* end confdefs.h.  */
25312
#include 
25313 19 jeremybenn
 
25314 60 jeremybenn
int
25315
main ()
25316
{
25317
#ifndef rl_event_hook
25318
  (void) rl_event_hook;
25319
#endif
25320
 
25321
  ;
25322
  return 0;
25323
}
25324
_ACEOF
25325
rm -f conftest.$ac_objext
25326
if { (ac_try="$ac_compile"
25327
case "(($ac_try" in
25328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329
  *) ac_try_echo=$ac_try;;
25330
esac
25331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332
  (eval "$ac_compile") 2>conftest.er1
25333
  ac_status=$?
25334
  grep -v '^ *+' conftest.er1 >conftest.err
25335
  rm -f conftest.er1
25336
  cat conftest.err >&5
25337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338
  (exit $ac_status); } && {
25339
         test -z "$ac_c_werror_flag" ||
25340
         test ! -s conftest.err
25341
       } && test -s conftest.$ac_objext; then
25342
  ac_cv_have_decl_rl_event_hook=yes
25343
else
25344
  echo "$as_me: failed program was:" >&5
25345
sed 's/^/| /' conftest.$ac_ext >&5
25346
 
25347
        ac_cv_have_decl_rl_event_hook=no
25348
fi
25349
 
25350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25351
fi
25352
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
25353
echo "${ECHO_T}$ac_cv_have_decl_rl_event_hook" >&6; }
25354
if test $ac_cv_have_decl_rl_event_hook = yes; then
25355
 
25356
cat >>confdefs.h <<_ACEOF
25357
@%:@define HAVE_DECL_RL_EVENT_HOOK 1
25358
_ACEOF
25359
 
25360
 
25361
else
25362
  cat >>confdefs.h <<_ACEOF
25363
@%:@define HAVE_DECL_RL_EVENT_HOOK 0
25364
_ACEOF
25365
 
25366
 
25367
fi
25368
 
25369
 
25370
 
25371 19 jeremybenn
# yuck
25372
case "$host_os" in
25373
aix*)   prefer_curses=yes ;;
25374
esac
25375
 
25376
case "$host_cpu" in
25377
*cray*) LOCAL_CFLAGS=-DCRAY ;;
25378
esac
25379
 
25380
case "$host_os" in
25381
isc*)   LOCAL_CFLAGS=-Disc386 ;;
25382
esac
25383
 
25384
case "$host_os" in
25385
solaris*) LIBS="-lsocket -lnsl" ;;
25386
esac
25387
 
25388
# define options
25389
 
25390
{ echo "$as_me:$LINENO: checking whether to enable profiling" >&5
25391
echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6; }
25392
# Check whether --enable-profiling was given.
25393
if test "${enable_profiling+set}" = set; then
25394
  enableval=$enable_profiling;
25395
    case "$enableval" in
25396 60 jeremybenn
        yes) profile="-pg" ;;
25397 19 jeremybenn
    esac
25398
 
25399
fi
25400
 
25401
{ echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
25402
echo "${ECHO_T}${enable_profiling-no}" >&6; }
25403
 
25404
execution="1"
25405
 
25406
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
25407
{ echo "$as_me:$LINENO: checking which execution style to use" >&5
25408
echo $ECHO_N "checking which execution style to use... $ECHO_C" >&6; }
25409
# Check whether --enable-execution was given.
25410
if test "${enable_execution+set}" = set; then
25411
  enableval=$enable_execution;
25412
    case "$enableval" in
25413
    simple)
25414
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
25415
      execution="0"
25416
      { echo "$as_me:$LINENO: result: simple" >&5
25417
echo "${ECHO_T}simple" >&6; }
25418
      ;;
25419
    complex)
25420
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
25421
      execution="1"
25422
      { echo "$as_me:$LINENO: result: complex" >&5
25423
echo "${ECHO_T}complex" >&6; }
25424
      ;;
25425
    dynamic)
25426
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
25427
      execution="2"
25428
      { echo "$as_me:$LINENO: result: dynamic" >&5
25429
echo "${ECHO_T}dynamic" >&6; }
25430
      ;;
25431
    *)
25432
      { { echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
25433
echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
25434
   { (exit 1); exit 1; }; }
25435
      ;;
25436
    esac
25437
 
25438
else
25439
 
25440
      { echo "$as_me:$LINENO: result: complex" >&5
25441
echo "${ECHO_T}complex" >&6; }
25442
 
25443
fi
25444
 
25445
 
25446
eth_phy="0"
25447
{ echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
25448
echo $ECHO_N "checking whether to enable ethernet phy emulation... $ECHO_C" >&6; }
25449
# Check whether --enable-ethphy was given.
25450
if test "${enable_ethphy+set}" = set; then
25451
  enableval=$enable_ethphy;
25452
    case "$enableval" in
25453
  no)  eth_phy="0" ;;
25454
        yes) eth_phy="1" ;;
25455
    esac
25456
 
25457
fi
25458
 
25459
{ echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
25460
echo "${ECHO_T}${enable_eth_phy-no}" >&6; }
25461
 
25462
 
25463
raw_range_stats="0"
25464
{ echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
25465
echo $ECHO_N "checking whether to use raw range stats... $ECHO_C" >&6; }
25466
# Check whether --enable-range_stats was given.
25467
if test "${enable_range_stats+set}" = set; then
25468
  enableval=$enable_range_stats;
25469
    case "$enableval" in
25470
  no)  raw_range_stats="0" ;;
25471
        yes) raw_range_stats="1" simple_execution="1" ;;
25472
    esac
25473
 
25474
fi
25475
 
25476
{ echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
25477
echo "${ECHO_T}${enable_range_stats-no}" >&6; }
25478
 
25479
set_ov_flag="0"
25480
{ echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
25481
echo $ECHO_N "checking whether instructions set overflow flag... $ECHO_C" >&6; }
25482
# Check whether --enable-ov_flag was given.
25483
if test "${enable_ov_flag+set}" = set; then
25484
  enableval=$enable_ov_flag;
25485
    case "$enableval" in
25486 60 jeremybenn
    no)  set_ov_flag="0" ;;
25487
    yes) set_ov_flag="1" ;;
25488 19 jeremybenn
    esac
25489
 
25490
fi
25491
 
25492
{ echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
25493
echo "${ECHO_T}${enable_ov_flag-no}" >&6; }
25494
 
25495
set_arith_flag="0"
25496
{ echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
25497
echo $ECHO_N "checking whether arithmethic instructions set flag... $ECHO_C" >&6; }
25498
# Check whether --enable-arith_flag was given.
25499
if test "${enable_arith_flag+set}" = set; then
25500
  enableval=$enable_arith_flag;
25501
    case "$enableval" in
25502
  no)  set_arith_flag="0" ;;
25503
        yes) set_arith_flag="1" ;;
25504
    esac
25505
 
25506
fi
25507
 
25508
{ echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
25509
echo "${ECHO_T}${enable_arith_flag-no}" >&6; }
25510
 
25511 60 jeremybenn
# check for --enable-debug argument (for argtable2)
25512
# Check whether --enable-debug was given.
25513
if test "${enable_debug+set}" = set; then
25514
  enableval=$enable_debug;
25515
       case $enableval in
25516
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
25517
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
25518
          *)   echo "illegal argument to --enable-debug" & exit 1;;
25519
       esac
25520
 
25521
else
25522
  DEBUGFLAGS="-DNDEBUG"
25523
 
25524
fi
25525 19 jeremybenn
 
25526 60 jeremybenn
 
25527
 
25528
 
25529 19 jeremybenn
cat >>confdefs.h <<_ACEOF
25530
@%:@define RAW_RANGE_STATS $raw_range_stats
25531
_ACEOF
25532
 
25533
 
25534
cat >>confdefs.h <<_ACEOF
25535
@%:@define SET_OV_FLAG $set_ov_flag
25536
_ACEOF
25537
 
25538
 
25539
cat >>confdefs.h <<_ACEOF
25540
@%:@define ARITH_SET_FLAG $set_arith_flag
25541
_ACEOF
25542
 
25543
 
25544
cat >>confdefs.h <<_ACEOF
25545
@%:@define HAVE_ETH_PHY $eth_phy
25546
_ACEOF
25547
 
25548
 
25549
cat >>confdefs.h <<_ACEOF
25550
@%:@define SIMPLE_EXECUTION $execution == 0
25551
_ACEOF
25552
 
25553
 
25554
cat >>confdefs.h <<_ACEOF
25555
@%:@define COMPLEX_EXECUTION $execution == 1
25556
_ACEOF
25557
 
25558
 
25559
cat >>confdefs.h <<_ACEOF
25560
@%:@define DYNAMIC_EXECUTION $execution == 2
25561
_ACEOF
25562
 
25563
 if test x$execution = x1; then
25564
  GENERATE_NEEDED_TRUE=
25565
  GENERATE_NEEDED_FALSE='#'
25566
else
25567
  GENERATE_NEEDED_TRUE='#'
25568
  GENERATE_NEEDED_FALSE=
25569
fi
25570
 
25571
 if test x$execution = x2; then
25572
  DYNAMIC_EXECUTION_TRUE=
25573
  DYNAMIC_EXECUTION_FALSE='#'
25574
else
25575
  DYNAMIC_EXECUTION_TRUE='#'
25576
  DYNAMIC_EXECUTION_FALSE=
25577
fi
25578
 
25579
 
25580
 
25581
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
25582
# CFLAGS="$CFLAGS -O4"
25583
 
25584
BUILD_DIR=`pwd`
25585
 
25586
 
25587
 
25588
 
25589
 
25590
 
25591
 
25592
 
25593
 
25594
 
25595
 
25596
 
25597
 
25598
 
25599
 
25600
 
25601
 
25602
 
25603
cat >>confdefs.h <<\_ACEOF
25604 60 jeremybenn
@%:@define HAVE_EXECUTION 1
25605 19 jeremybenn
_ACEOF
25606
 
25607
 
25608
# yuck
25609
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
25610
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
25611
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
25612
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
25613
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
25614 60 jeremybenn
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
25615 19 jeremybenn
 
25616
 
25617 60 jeremybenn
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile debug/Makefile doc/Makefile support/Makefile mmu/Makefile peripheral/Makefile tick/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile vapi/Makefile port/Makefile"
25618 19 jeremybenn
 
25619
 
25620 60 jeremybenn
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
25621
case "$CPU_ARCH" in
25622
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
25623
;;
25624
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
25625
;;
25626
esac
25627
 
25628
# Makefile uses this timestamp file to record whether config.h is up to date.
25629
# AC_CONFIG_COMMANDS([default],[[
25630
# echo > stamp-h
25631
# ]],[[]])
25632 19 jeremybenn
cat >confcache <<\_ACEOF
25633
# This file is a shell script that caches the results of configure
25634
# tests run on this system so they can be shared between configure
25635
# scripts and configure runs, see configure's option --config-cache.
25636
# It is not useful on other systems.  If it contains results you don't
25637
# want to keep, you may remove or edit it.
25638
#
25639
# config.status only pays attention to the cache file if you give it
25640
# the --recheck option to rerun configure.
25641
#
25642
# `ac_cv_env_foo' variables (set or unset) will be overridden when
25643
# loading this file, other *unset* `ac_cv_foo' will be assigned the
25644
# following values.
25645
 
25646
_ACEOF
25647
 
25648
# The following way of writing the cache mishandles newlines in values,
25649
# but we know of no workaround that is simple, portable, and efficient.
25650
# So, we kill variables containing newlines.
25651
# Ultrix sh set writes to stderr and can't be redirected directly,
25652
# and sets the high bit in the cache file unless we assign to the vars.
25653
(
25654
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25655
    eval ac_val=\$$ac_var
25656
    case $ac_val in #(
25657
    *${as_nl}*)
25658
      case $ac_var in #(
25659
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25660
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25661
      esac
25662
      case $ac_var in #(
25663
      _ | IFS | as_nl) ;; #(
25664
      *) $as_unset $ac_var ;;
25665
      esac ;;
25666
    esac
25667
  done
25668
 
25669
  (set) 2>&1 |
25670
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25671
    *${as_nl}ac_space=\ *)
25672
      # `set' does not quote correctly, so add quotes (double-quote
25673
      # substitution turns \\\\ into \\, and sed turns \\ into \).
25674
      sed -n \
25675
        "s/'/'\\\\''/g;
25676
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25677
      ;; #(
25678
    *)
25679
      # `set' quotes correctly as required by POSIX, so do not add quotes.
25680
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25681
      ;;
25682
    esac |
25683
    sort
25684
) |
25685
  sed '
25686
     /^ac_cv_env_/b end
25687
     t clear
25688
     :clear
25689
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25690
     t end
25691
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25692
     :end' >>confcache
25693
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25694
  if test -w "$cache_file"; then
25695
    test "x$cache_file" != "x/dev/null" &&
25696
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25697
echo "$as_me: updating cache $cache_file" >&6;}
25698
    cat confcache >$cache_file
25699
  else
25700
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25701
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25702
  fi
25703
fi
25704
rm -f confcache
25705
 
25706
test "x$prefix" = xNONE && prefix=$ac_default_prefix
25707
# Let make expand exec_prefix.
25708
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25709
 
25710
DEFS=-DHAVE_CONFIG_H
25711
 
25712
ac_libobjs=
25713
ac_ltlibobjs=
25714
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
25715
  # 1. Remove the extension, and $U if already installed.
25716
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25717
  ac_i=`echo "$ac_i" | sed "$ac_script"`
25718
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25719
  #    will be set to the directory where LIBOBJS objects are built.
25720
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25721
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25722
done
25723
LIB@&t@OBJS=$ac_libobjs
25724
 
25725
LTLIBOBJS=$ac_ltlibobjs
25726
 
25727
 
25728
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25729
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25730
Usually this means the macro was only invoked conditionally." >&5
25731
echo "$as_me: error: conditional \"AMDEP\" was never defined.
25732
Usually this means the macro was only invoked conditionally." >&2;}
25733
   { (exit 1); exit 1; }; }
25734
fi
25735
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25736
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25737
Usually this means the macro was only invoked conditionally." >&5
25738
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25739
Usually this means the macro was only invoked conditionally." >&2;}
25740
   { (exit 1); exit 1; }; }
25741
fi
25742
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25743
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25744
Usually this means the macro was only invoked conditionally." >&5
25745
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25746
Usually this means the macro was only invoked conditionally." >&2;}
25747
   { (exit 1); exit 1; }; }
25748
fi
25749 60 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
25750
  { { echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
25751
Usually this means the macro was only invoked conditionally." >&5
25752
echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
25753
Usually this means the macro was only invoked conditionally." >&2;}
25754
   { (exit 1); exit 1; }; }
25755
fi
25756
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
25757
  { { echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
25758
Usually this means the macro was only invoked conditionally." >&5
25759
echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
25760
Usually this means the macro was only invoked conditionally." >&2;}
25761
   { (exit 1); exit 1; }; }
25762
fi
25763
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
25764
  { { echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
25765
Usually this means the macro was only invoked conditionally." >&5
25766
echo "$as_me: error: conditional \"USE_ARGDATE\" was never defined.
25767
Usually this means the macro was only invoked conditionally." >&2;}
25768
   { (exit 1); exit 1; }; }
25769
fi
25770 19 jeremybenn
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
25771
  { { echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
25772
Usually this means the macro was only invoked conditionally." >&5
25773
echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
25774
Usually this means the macro was only invoked conditionally." >&2;}
25775
   { (exit 1); exit 1; }; }
25776
fi
25777
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
25778
  { { echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
25779
Usually this means the macro was only invoked conditionally." >&5
25780
echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
25781
Usually this means the macro was only invoked conditionally." >&2;}
25782
   { (exit 1); exit 1; }; }
25783
fi
25784
 
25785
: ${CONFIG_STATUS=./config.status}
25786
ac_clean_files_save=$ac_clean_files
25787
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25788
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25789
echo "$as_me: creating $CONFIG_STATUS" >&6;}
25790
cat >$CONFIG_STATUS <<_ACEOF
25791
#! $SHELL
25792
# Generated by $as_me.
25793
# Run this file to recreate the current configuration.
25794
# Compiler output produced by configure, useful for debugging
25795
# configure, is in config.log if it exists.
25796
 
25797
debug=false
25798
ac_cs_recheck=false
25799
ac_cs_silent=false
25800
SHELL=\${CONFIG_SHELL-$SHELL}
25801
_ACEOF
25802
 
25803
cat >>$CONFIG_STATUS <<\_ACEOF
25804
## --------------------- ##
25805
## M4sh Initialization.  ##
25806
## --------------------- ##
25807
 
25808
# Be more Bourne compatible
25809
DUALCASE=1; export DUALCASE # for MKS sh
25810
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25811
  emulate sh
25812
  NULLCMD=:
25813
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25814
  # is contrary to our usage.  Disable this feature.
25815
  alias -g '${1+"$@"}'='"$@"'
25816
  setopt NO_GLOB_SUBST
25817
else
25818
  case `(set -o) 2>/dev/null` in
25819
  *posix*) set -o posix ;;
25820
esac
25821
 
25822
fi
25823
 
25824
 
25825
 
25826
 
25827
# PATH needs CR
25828
# Avoid depending upon Character Ranges.
25829
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25830
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25831
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25832
as_cr_digits='0123456789'
25833
as_cr_alnum=$as_cr_Letters$as_cr_digits
25834
 
25835
# The user is always right.
25836
if test "${PATH_SEPARATOR+set}" != set; then
25837
  echo "#! /bin/sh" >conf$$.sh
25838
  echo  "exit 0"   >>conf$$.sh
25839
  chmod +x conf$$.sh
25840
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25841
    PATH_SEPARATOR=';'
25842
  else
25843
    PATH_SEPARATOR=:
25844
  fi
25845
  rm -f conf$$.sh
25846
fi
25847
 
25848
# Support unset when possible.
25849
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25850
  as_unset=unset
25851
else
25852
  as_unset=false
25853
fi
25854
 
25855
 
25856
# IFS
25857
# We need space, tab and new line, in precisely that order.  Quoting is
25858
# there to prevent editors from complaining about space-tab.
25859
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25860
# splitting by setting IFS to empty value.)
25861
as_nl='
25862
'
25863
IFS=" ""        $as_nl"
25864
 
25865
# Find who we are.  Look in the path if we contain no directory separator.
25866
case $0 in
25867
  *[\\/]* ) as_myself=$0 ;;
25868
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25869
for as_dir in $PATH
25870
do
25871
  IFS=$as_save_IFS
25872
  test -z "$as_dir" && as_dir=.
25873
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25874
done
25875
IFS=$as_save_IFS
25876
 
25877
     ;;
25878
esac
25879
# We did not find ourselves, most probably we were run as `sh COMMAND'
25880
# in which case we are not to be found in the path.
25881
if test "x$as_myself" = x; then
25882
  as_myself=$0
25883
fi
25884
if test ! -f "$as_myself"; then
25885
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25886
  { (exit 1); exit 1; }
25887
fi
25888
 
25889
# Work around bugs in pre-3.0 UWIN ksh.
25890
for as_var in ENV MAIL MAILPATH
25891
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25892
done
25893
PS1='$ '
25894
PS2='> '
25895
PS4='+ '
25896
 
25897
# NLS nuisances.
25898
for as_var in \
25899
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25900
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25901
  LC_TELEPHONE LC_TIME
25902
do
25903
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25904
    eval $as_var=C; export $as_var
25905
  else
25906
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25907
  fi
25908
done
25909
 
25910
# Required to use basename.
25911
if expr a : '\(a\)' >/dev/null 2>&1 &&
25912
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25913
  as_expr=expr
25914
else
25915
  as_expr=false
25916
fi
25917
 
25918
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25919
  as_basename=basename
25920
else
25921
  as_basename=false
25922
fi
25923
 
25924
 
25925
# Name of the executable.
25926
as_me=`$as_basename -- "$0" ||
25927
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25928
         X"$0" : 'X\(//\)$' \| \
25929
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25930
echo X/"$0" |
25931
    sed '/^.*\/\([^/][^/]*\)\/*$/{
25932
            s//\1/
25933
            q
25934
          }
25935
          /^X\/\(\/\/\)$/{
25936
            s//\1/
25937
            q
25938
          }
25939
          /^X\/\(\/\).*/{
25940
            s//\1/
25941
            q
25942
          }
25943
          s/.*/./; q'`
25944
 
25945
# CDPATH.
25946
$as_unset CDPATH
25947
 
25948
 
25949
 
25950
  as_lineno_1=$LINENO
25951
  as_lineno_2=$LINENO
25952
  test "x$as_lineno_1" != "x$as_lineno_2" &&
25953
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25954
 
25955
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25956
  # uniformly replaced by the line number.  The first 'sed' inserts a
25957
  # line-number line after each line using $LINENO; the second 'sed'
25958
  # does the real work.  The second script uses 'N' to pair each
25959
  # line-number line with the line containing $LINENO, and appends
25960
  # trailing '-' during substitution so that $LINENO is not a special
25961
  # case at line end.
25962
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25963
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
25964
  # E. McMahon (1931-1989) for sed's syntax.  :-)
25965
  sed -n '
25966
    p
25967
    /[$]LINENO/=
25968
  ' <$as_myself |
25969
    sed '
25970
      s/[$]LINENO.*/&-/
25971
      t lineno
25972
      b
25973
      :lineno
25974
      N
25975
      :loop
25976
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25977
      t loop
25978
      s/-\n.*//
25979
    ' >$as_me.lineno &&
25980
  chmod +x "$as_me.lineno" ||
25981
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25982
   { (exit 1); exit 1; }; }
25983
 
25984
  # Don't try to exec as it changes $[0], causing all sort of problems
25985
  # (the dirname of $[0] is not the place where we might find the
25986
  # original and so on.  Autoconf is especially sensitive to this).
25987
  . "./$as_me.lineno"
25988
  # Exit status is that of the last command.
25989
  exit
25990
}
25991
 
25992
 
25993
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25994
  as_dirname=dirname
25995
else
25996
  as_dirname=false
25997
fi
25998
 
25999
ECHO_C= ECHO_N= ECHO_T=
26000
case `echo -n x` in
26001
-n*)
26002
  case `echo 'x\c'` in
26003
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26004
  *)   ECHO_C='\c';;
26005
  esac;;
26006
*)
26007
  ECHO_N='-n';;
26008
esac
26009
 
26010
if expr a : '\(a\)' >/dev/null 2>&1 &&
26011
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26012
  as_expr=expr
26013
else
26014
  as_expr=false
26015
fi
26016
 
26017
rm -f conf$$ conf$$.exe conf$$.file
26018
if test -d conf$$.dir; then
26019
  rm -f conf$$.dir/conf$$.file
26020
else
26021
  rm -f conf$$.dir
26022
  mkdir conf$$.dir
26023
fi
26024
echo >conf$$.file
26025
if ln -s conf$$.file conf$$ 2>/dev/null; then
26026
  as_ln_s='ln -s'
26027
  # ... but there are two gotchas:
26028
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26029
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26030
  # In both cases, we have to default to `cp -p'.
26031
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26032
    as_ln_s='cp -p'
26033
elif ln conf$$.file conf$$ 2>/dev/null; then
26034
  as_ln_s=ln
26035
else
26036
  as_ln_s='cp -p'
26037
fi
26038
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26039
rmdir conf$$.dir 2>/dev/null
26040
 
26041
if mkdir -p . 2>/dev/null; then
26042
  as_mkdir_p=:
26043
else
26044
  test -d ./-p && rmdir ./-p
26045
  as_mkdir_p=false
26046
fi
26047
 
26048
if test -x / >/dev/null 2>&1; then
26049
  as_test_x='test -x'
26050
else
26051
  if ls -dL / >/dev/null 2>&1; then
26052
    as_ls_L_option=L
26053
  else
26054
    as_ls_L_option=
26055
  fi
26056
  as_test_x='
26057
    eval sh -c '\''
26058
      if test -d "$1"; then
26059
        test -d "$1/.";
26060
      else
26061
        case $1 in
26062
        -*)set "./$1";;
26063
        esac;
26064
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26065
        ???[sx]*):;;*)false;;esac;fi
26066
    '\'' sh
26067
  '
26068
fi
26069
as_executable_p=$as_test_x
26070
 
26071
# Sed expression to map a string onto a valid CPP name.
26072
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26073
 
26074
# Sed expression to map a string onto a valid variable name.
26075
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26076
 
26077
 
26078
exec 6>&1
26079
 
26080
# Save the log message, to keep $[0] and so on meaningful, and to
26081
# report actual input values of CONFIG_FILES etc. instead of their
26082
# values after options handling.
26083
ac_log="
26084
This file was extended by or1ksim $as_me 0.3.0, which was
26085
generated by GNU Autoconf 2.61.  Invocation command line was
26086
 
26087
  CONFIG_FILES    = $CONFIG_FILES
26088
  CONFIG_HEADERS  = $CONFIG_HEADERS
26089
  CONFIG_LINKS    = $CONFIG_LINKS
26090
  CONFIG_COMMANDS = $CONFIG_COMMANDS
26091
  $ $0 $@
26092
 
26093
on `(hostname || uname -n) 2>/dev/null | sed 1q`
26094
"
26095
 
26096
_ACEOF
26097
 
26098
cat >>$CONFIG_STATUS <<_ACEOF
26099
# Files that config.status was made for.
26100
config_files="$ac_config_files"
26101
config_headers="$ac_config_headers"
26102
config_commands="$ac_config_commands"
26103
 
26104
_ACEOF
26105
 
26106
cat >>$CONFIG_STATUS <<\_ACEOF
26107
ac_cs_usage="\
26108
\`$as_me' instantiates files from templates according to the
26109
current configuration.
26110
 
26111
Usage: $0 [OPTIONS] [FILE]...
26112
 
26113
  -h, --help       print this help, then exit
26114
  -V, --version    print version number and configuration settings, then exit
26115
  -q, --quiet      do not print progress messages
26116
  -d, --debug      don't remove temporary files
26117
      --recheck    update $as_me by reconfiguring in the same conditions
26118
  --file=FILE[:TEMPLATE]
26119
                   instantiate the configuration file FILE
26120
  --header=FILE[:TEMPLATE]
26121
                   instantiate the configuration header FILE
26122
 
26123
Configuration files:
26124
$config_files
26125
 
26126
Configuration headers:
26127
$config_headers
26128
 
26129
Configuration commands:
26130
$config_commands
26131
 
26132
Report bugs to ."
26133
 
26134
_ACEOF
26135
cat >>$CONFIG_STATUS <<_ACEOF
26136
ac_cs_version="\\
26137
or1ksim config.status 0.3.0
26138
configured by $0, generated by GNU Autoconf 2.61,
26139
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26140
 
26141
Copyright (C) 2006 Free Software Foundation, Inc.
26142
This config.status script is free software; the Free Software Foundation
26143
gives unlimited permission to copy, distribute and modify it."
26144
 
26145
ac_pwd='$ac_pwd'
26146
srcdir='$srcdir'
26147
INSTALL='$INSTALL'
26148
MKDIR_P='$MKDIR_P'
26149
_ACEOF
26150
 
26151
cat >>$CONFIG_STATUS <<\_ACEOF
26152
# If no file are specified by the user, then we need to provide default
26153
# value.  By we need to know if files were specified by the user.
26154
ac_need_defaults=:
26155
while test $# != 0
26156
do
26157
  case $1 in
26158
  --*=*)
26159
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26160
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26161
    ac_shift=:
26162
    ;;
26163
  *)
26164
    ac_option=$1
26165
    ac_optarg=$2
26166
    ac_shift=shift
26167
    ;;
26168
  esac
26169
 
26170
  case $ac_option in
26171
  # Handling of the options.
26172
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26173
    ac_cs_recheck=: ;;
26174
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26175
    echo "$ac_cs_version"; exit ;;
26176
  --debug | --debu | --deb | --de | --d | -d )
26177
    debug=: ;;
26178
  --file | --fil | --fi | --f )
26179
    $ac_shift
26180
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26181
    ac_need_defaults=false;;
26182
  --header | --heade | --head | --hea )
26183
    $ac_shift
26184
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26185
    ac_need_defaults=false;;
26186
  --he | --h)
26187
    # Conflict between --help and --header
26188
    { echo "$as_me: error: ambiguous option: $1
26189
Try \`$0 --help' for more information." >&2
26190
   { (exit 1); exit 1; }; };;
26191
  --help | --hel | -h )
26192
    echo "$ac_cs_usage"; exit ;;
26193
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26194
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26195
    ac_cs_silent=: ;;
26196
 
26197
  # This is an error.
26198
  -*) { echo "$as_me: error: unrecognized option: $1
26199
Try \`$0 --help' for more information." >&2
26200
   { (exit 1); exit 1; }; } ;;
26201
 
26202
  *) ac_config_targets="$ac_config_targets $1"
26203
     ac_need_defaults=false ;;
26204
 
26205
  esac
26206
  shift
26207
done
26208
 
26209
ac_configure_extra_args=
26210
 
26211
if $ac_cs_silent; then
26212
  exec 6>/dev/null
26213
  ac_configure_extra_args="$ac_configure_extra_args --silent"
26214
fi
26215
 
26216
_ACEOF
26217
cat >>$CONFIG_STATUS <<_ACEOF
26218
if \$ac_cs_recheck; then
26219
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26220
  CONFIG_SHELL=$SHELL
26221
  export CONFIG_SHELL
26222
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26223
fi
26224
 
26225
_ACEOF
26226
cat >>$CONFIG_STATUS <<\_ACEOF
26227
exec 5>>config.log
26228
{
26229
  echo
26230
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
26231
@%:@@%:@ Running $as_me. @%:@@%:@
26232
_ASBOX
26233
  echo "$ac_log"
26234
} >&5
26235
 
26236
_ACEOF
26237
cat >>$CONFIG_STATUS <<_ACEOF
26238
#
26239
# INIT-COMMANDS
26240
#
26241
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26242
 
26243
_ACEOF
26244
 
26245
cat >>$CONFIG_STATUS <<\_ACEOF
26246
 
26247
# Handling of arguments.
26248
for ac_config_target in $ac_config_targets
26249
do
26250
  case $ac_config_target in
26251
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26252
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26253
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26254 60 jeremybenn
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
26255 19 jeremybenn
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
26256
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
26257
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
26258
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
26259 60 jeremybenn
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
26260 19 jeremybenn
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
26261
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
26262 60 jeremybenn
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26263 19 jeremybenn
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
26264
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
26265
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
26266
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
26267
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
26268
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
26269
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
26270
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
26271
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
26272 60 jeremybenn
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
26273
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
26274 19 jeremybenn
 
26275
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26276
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26277
   { (exit 1); exit 1; }; };;
26278
  esac
26279
done
26280
 
26281
 
26282
# If the user did not use the arguments to specify the items to instantiate,
26283
# then the envvar interface is used.  Set only those that are not.
26284
# We use the long form for the default assignment because of an extremely
26285
# bizarre bug on SunOS 4.1.3.
26286
if $ac_need_defaults; then
26287
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26288
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26289
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26290
fi
26291
 
26292
# Have a temporary directory for convenience.  Make it in the build tree
26293
# simply because there is no reason against having it here, and in addition,
26294
# creating and moving files from /tmp can sometimes cause problems.
26295
# Hook for its removal unless debugging.
26296
# Note that there is a small window in which the directory will not be cleaned:
26297
# after its creation but before its name has been assigned to `$tmp'.
26298
$debug ||
26299
{
26300
  tmp=
26301
  trap 'exit_status=$?
26302
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26303
' 0
26304
  trap '{ (exit 1); exit 1; }' 1 2 13 15
26305
}
26306
# Create a (secure) tmp directory for tmp files.
26307
 
26308
{
26309
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26310
  test -n "$tmp" && test -d "$tmp"
26311
}  ||
26312
{
26313
  tmp=./conf$$-$RANDOM
26314
  (umask 077 && mkdir "$tmp")
26315
} ||
26316
{
26317
   echo "$me: cannot create a temporary directory in ." >&2
26318
   { (exit 1); exit 1; }
26319
}
26320
 
26321
#
26322
# Set up the sed scripts for CONFIG_FILES section.
26323
#
26324
 
26325
# No need to generate the scripts if there are no CONFIG_FILES.
26326
# This happens for instance when ./config.status config.h
26327
if test -n "$CONFIG_FILES"; then
26328
 
26329
_ACEOF
26330
 
26331
 
26332
 
26333
ac_delim='%!_!# '
26334
for ac_last_try in false false false false false :; do
26335
  cat >conf$$subs.sed <<_ACEOF
26336
SHELL!$SHELL$ac_delim
26337
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26338
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26339
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26340
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26341
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26342
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26343
exec_prefix!$exec_prefix$ac_delim
26344
prefix!$prefix$ac_delim
26345
program_transform_name!$program_transform_name$ac_delim
26346
bindir!$bindir$ac_delim
26347
sbindir!$sbindir$ac_delim
26348
libexecdir!$libexecdir$ac_delim
26349
datarootdir!$datarootdir$ac_delim
26350
datadir!$datadir$ac_delim
26351
sysconfdir!$sysconfdir$ac_delim
26352
sharedstatedir!$sharedstatedir$ac_delim
26353
localstatedir!$localstatedir$ac_delim
26354
includedir!$includedir$ac_delim
26355
oldincludedir!$oldincludedir$ac_delim
26356
docdir!$docdir$ac_delim
26357
infodir!$infodir$ac_delim
26358
htmldir!$htmldir$ac_delim
26359
dvidir!$dvidir$ac_delim
26360
pdfdir!$pdfdir$ac_delim
26361
psdir!$psdir$ac_delim
26362
libdir!$libdir$ac_delim
26363
localedir!$localedir$ac_delim
26364
mandir!$mandir$ac_delim
26365
DEFS!$DEFS$ac_delim
26366
ECHO_C!$ECHO_C$ac_delim
26367
ECHO_N!$ECHO_N$ac_delim
26368
ECHO_T!$ECHO_T$ac_delim
26369
LIBS!$LIBS$ac_delim
26370
build_alias!$build_alias$ac_delim
26371
host_alias!$host_alias$ac_delim
26372
target_alias!$target_alias$ac_delim
26373
build!$build$ac_delim
26374
build_cpu!$build_cpu$ac_delim
26375
build_vendor!$build_vendor$ac_delim
26376
build_os!$build_os$ac_delim
26377
host!$host$ac_delim
26378
host_cpu!$host_cpu$ac_delim
26379
host_vendor!$host_vendor$ac_delim
26380
host_os!$host_os$ac_delim
26381
target!$target$ac_delim
26382
target_cpu!$target_cpu$ac_delim
26383
target_vendor!$target_vendor$ac_delim
26384
target_os!$target_os$ac_delim
26385
CC!$CC$ac_delim
26386
CFLAGS!$CFLAGS$ac_delim
26387
LDFLAGS!$LDFLAGS$ac_delim
26388
CPPFLAGS!$CPPFLAGS$ac_delim
26389
ac_ct_CC!$ac_ct_CC$ac_delim
26390
EXEEXT!$EXEEXT$ac_delim
26391
OBJEXT!$OBJEXT$ac_delim
26392
SED!$SED$ac_delim
26393
GREP!$GREP$ac_delim
26394
EGREP!$EGREP$ac_delim
26395
LN_S!$LN_S$ac_delim
26396
ECHO!$ECHO$ac_delim
26397
AR!$AR$ac_delim
26398
RANLIB!$RANLIB$ac_delim
26399
STRIP!$STRIP$ac_delim
26400
CPP!$CPP$ac_delim
26401
CXX!$CXX$ac_delim
26402
CXXFLAGS!$CXXFLAGS$ac_delim
26403
ac_ct_CXX!$ac_ct_CXX$ac_delim
26404
CXXCPP!$CXXCPP$ac_delim
26405
F77!$F77$ac_delim
26406
FFLAGS!$FFLAGS$ac_delim
26407
ac_ct_F77!$ac_ct_F77$ac_delim
26408
LIBTOOL!$LIBTOOL$ac_delim
26409
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26410
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26411
INSTALL_DATA!$INSTALL_DATA$ac_delim
26412
am__isrc!$am__isrc$ac_delim
26413
CYGPATH_W!$CYGPATH_W$ac_delim
26414
PACKAGE!$PACKAGE$ac_delim
26415
VERSION!$VERSION$ac_delim
26416
ACLOCAL!$ACLOCAL$ac_delim
26417
AUTOCONF!$AUTOCONF$ac_delim
26418
AUTOMAKE!$AUTOMAKE$ac_delim
26419
AUTOHEADER!$AUTOHEADER$ac_delim
26420
MAKEINFO!$MAKEINFO$ac_delim
26421
install_sh!$install_sh$ac_delim
26422
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26423
mkdir_p!$mkdir_p$ac_delim
26424
AWK!$AWK$ac_delim
26425
SET_MAKE!$SET_MAKE$ac_delim
26426
am__leading_dot!$am__leading_dot$ac_delim
26427
AMTAR!$AMTAR$ac_delim
26428
am__tar!$am__tar$ac_delim
26429
am__untar!$am__untar$ac_delim
26430
DEPDIR!$DEPDIR$ac_delim
26431
am__include!$am__include$ac_delim
26432
am__quote!$am__quote$ac_delim
26433
_ACEOF
26434
 
26435
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26436
    break
26437
  elif $ac_last_try; then
26438
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26439
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26440
   { (exit 1); exit 1; }; }
26441
  else
26442
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26443
  fi
26444
done
26445
 
26446
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26447
if test -n "$ac_eof"; then
26448
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26449
  ac_eof=`expr $ac_eof + 1`
26450
fi
26451
 
26452
cat >>$CONFIG_STATUS <<_ACEOF
26453
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26454
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26455
_ACEOF
26456
sed '
26457
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26458
s/^/s,@/; s/!/@,|#_!!_#|/
26459
:n
26460
t n
26461
s/'"$ac_delim"'$/,g/; t
26462
s/$/\\/; p
26463
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26464
' >>$CONFIG_STATUS 
26465
rm -f conf$$subs.sed
26466
cat >>$CONFIG_STATUS <<_ACEOF
26467
CEOF$ac_eof
26468
_ACEOF
26469
 
26470
 
26471
ac_delim='%!_!# '
26472
for ac_last_try in false false false false false :; do
26473
  cat >conf$$subs.sed <<_ACEOF
26474
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26475
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26476
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26477
CCDEPMODE!$CCDEPMODE$ac_delim
26478
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26479
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26480
CXXDEPMODE!$CXXDEPMODE$ac_delim
26481
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26482
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26483
CPU_ARCH!$CPU_ARCH$ac_delim
26484
MAKE_SHELL!$MAKE_SHELL$ac_delim
26485 60 jeremybenn
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
26486
POW_LIB!$POW_LIB$ac_delim
26487
USE_SYS_GETOPTLONG_TRUE!$USE_SYS_GETOPTLONG_TRUE$ac_delim
26488
USE_SYS_GETOPTLONG_FALSE!$USE_SYS_GETOPTLONG_FALSE$ac_delim
26489
USE_ARGREX_TRUE!$USE_ARGREX_TRUE$ac_delim
26490
USE_ARGREX_FALSE!$USE_ARGREX_FALSE$ac_delim
26491
USE_ARGDATE_TRUE!$USE_ARGDATE_TRUE$ac_delim
26492
USE_ARGDATE_FALSE!$USE_ARGDATE_FALSE$ac_delim
26493
DEBUGFLAGS!$DEBUGFLAGS$ac_delim
26494 19 jeremybenn
GENERATE_NEEDED_TRUE!$GENERATE_NEEDED_TRUE$ac_delim
26495
GENERATE_NEEDED_FALSE!$GENERATE_NEEDED_FALSE$ac_delim
26496
DYNAMIC_EXECUTION_TRUE!$DYNAMIC_EXECUTION_TRUE$ac_delim
26497
DYNAMIC_EXECUTION_FALSE!$DYNAMIC_EXECUTION_FALSE$ac_delim
26498
BUILD_DIR!$BUILD_DIR$ac_delim
26499
LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
26500
LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
26501
LOCAL_DEFS!$LOCAL_DEFS$ac_delim
26502
ARFLAGS!$ARFLAGS$ac_delim
26503
SUMVERSION!$SUMVERSION$ac_delim
26504
TERMCAP_LIB!$TERMCAP_LIB$ac_delim
26505
INCLUDES!$INCLUDES$ac_delim
26506
LTLIBOBJS!$LTLIBOBJS$ac_delim
26507
_ACEOF
26508
 
26509 60 jeremybenn
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
26510 19 jeremybenn
    break
26511
  elif $ac_last_try; then
26512
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26513
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26514
   { (exit 1); exit 1; }; }
26515
  else
26516
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26517
  fi
26518
done
26519
 
26520
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26521
if test -n "$ac_eof"; then
26522
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26523
  ac_eof=`expr $ac_eof + 1`
26524
fi
26525
 
26526
cat >>$CONFIG_STATUS <<_ACEOF
26527
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26528
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26529
_ACEOF
26530
sed '
26531
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26532
s/^/s,@/; s/!/@,|#_!!_#|/
26533
:n
26534
t n
26535
s/'"$ac_delim"'$/,g/; t
26536
s/$/\\/; p
26537
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26538
' >>$CONFIG_STATUS 
26539
rm -f conf$$subs.sed
26540
cat >>$CONFIG_STATUS <<_ACEOF
26541
:end
26542
s/|#_!!_#|//g
26543
CEOF$ac_eof
26544
_ACEOF
26545
 
26546
 
26547
# VPATH may cause trouble with some makes, so we remove $(srcdir),
26548
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26549
# trailing colons and then remove the whole line if VPATH becomes empty
26550
# (actually we leave an empty line to preserve line numbers).
26551
if test "x$srcdir" = x.; then
26552
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
26553
s/:*\$(srcdir):*/:/
26554
s/:*\${srcdir}:*/:/
26555
s/:*@srcdir@:*/:/
26556
s/^\([^=]*=[     ]*\):*/\1/
26557
s/:*$//
26558
s/^[^=]*=[       ]*$//
26559
}'
26560
fi
26561
 
26562
cat >>$CONFIG_STATUS <<\_ACEOF
26563
fi # test -n "$CONFIG_FILES"
26564
 
26565
 
26566
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26567
do
26568
  case $ac_tag in
26569
  :[FHLC]) ac_mode=$ac_tag; continue;;
26570
  esac
26571
  case $ac_mode$ac_tag in
26572
  :[FHL]*:*);;
26573
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26574
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26575
   { (exit 1); exit 1; }; };;
26576
  :[FH]-) ac_tag=-:-;;
26577
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26578
  esac
26579
  ac_save_IFS=$IFS
26580
  IFS=:
26581
  set x $ac_tag
26582
  IFS=$ac_save_IFS
26583
  shift
26584
  ac_file=$1
26585
  shift
26586
 
26587
  case $ac_mode in
26588
  :L) ac_source=$1;;
26589
  :[FH])
26590
    ac_file_inputs=
26591
    for ac_f
26592
    do
26593
      case $ac_f in
26594
      -) ac_f="$tmp/stdin";;
26595
      *) # Look for the file first in the build tree, then in the source tree
26596
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
26597
         # because $ac_f cannot contain `:'.
26598
         test -f "$ac_f" ||
26599
           case $ac_f in
26600
           [\\/$]*) false;;
26601
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26602
           esac ||
26603
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26604
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26605
   { (exit 1); exit 1; }; };;
26606
      esac
26607
      ac_file_inputs="$ac_file_inputs $ac_f"
26608
    done
26609
 
26610
    # Let's still pretend it is `configure' which instantiates (i.e., don't
26611
    # use $as_me), people would be surprised to read:
26612
    #    /* config.h.  Generated by config.status.  */
26613
    configure_input="Generated from "`IFS=:
26614
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26615
    if test x"$ac_file" != x-; then
26616
      configure_input="$ac_file.  $configure_input"
26617
      { echo "$as_me:$LINENO: creating $ac_file" >&5
26618
echo "$as_me: creating $ac_file" >&6;}
26619
    fi
26620
 
26621
    case $ac_tag in
26622
    *:-:* | *:-) cat >"$tmp/stdin";;
26623
    esac
26624
    ;;
26625
  esac
26626
 
26627
  ac_dir=`$as_dirname -- "$ac_file" ||
26628
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26629
         X"$ac_file" : 'X\(//\)[^/]' \| \
26630
         X"$ac_file" : 'X\(//\)$' \| \
26631
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26632
echo X"$ac_file" |
26633
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26634
            s//\1/
26635
            q
26636
          }
26637
          /^X\(\/\/\)[^/].*/{
26638
            s//\1/
26639
            q
26640
          }
26641
          /^X\(\/\/\)$/{
26642
            s//\1/
26643
            q
26644
          }
26645
          /^X\(\/\).*/{
26646
            s//\1/
26647
            q
26648
          }
26649
          s/.*/./; q'`
26650
  { as_dir="$ac_dir"
26651
  case $as_dir in #(
26652
  -*) as_dir=./$as_dir;;
26653
  esac
26654
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26655
    as_dirs=
26656
    while :; do
26657
      case $as_dir in #(
26658
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26659
      *) as_qdir=$as_dir;;
26660
      esac
26661
      as_dirs="'$as_qdir' $as_dirs"
26662
      as_dir=`$as_dirname -- "$as_dir" ||
26663
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26664
         X"$as_dir" : 'X\(//\)[^/]' \| \
26665
         X"$as_dir" : 'X\(//\)$' \| \
26666
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26667
echo X"$as_dir" |
26668
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26669
            s//\1/
26670
            q
26671
          }
26672
          /^X\(\/\/\)[^/].*/{
26673
            s//\1/
26674
            q
26675
          }
26676
          /^X\(\/\/\)$/{
26677
            s//\1/
26678
            q
26679
          }
26680
          /^X\(\/\).*/{
26681
            s//\1/
26682
            q
26683
          }
26684
          s/.*/./; q'`
26685
      test -d "$as_dir" && break
26686
    done
26687
    test -z "$as_dirs" || eval "mkdir $as_dirs"
26688
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26689
echo "$as_me: error: cannot create directory $as_dir" >&2;}
26690
   { (exit 1); exit 1; }; }; }
26691
  ac_builddir=.
26692
 
26693
case "$ac_dir" in
26694
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26695
*)
26696
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26697
  # A ".." for each directory in $ac_dir_suffix.
26698
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26699
  case $ac_top_builddir_sub in
26700
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26701
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26702
  esac ;;
26703
esac
26704
ac_abs_top_builddir=$ac_pwd
26705
ac_abs_builddir=$ac_pwd$ac_dir_suffix
26706
# for backward compatibility:
26707
ac_top_builddir=$ac_top_build_prefix
26708
 
26709
case $srcdir in
26710
  .)  # We are building in place.
26711
    ac_srcdir=.
26712
    ac_top_srcdir=$ac_top_builddir_sub
26713
    ac_abs_top_srcdir=$ac_pwd ;;
26714
  [\\/]* | ?:[\\/]* )  # Absolute name.
26715
    ac_srcdir=$srcdir$ac_dir_suffix;
26716
    ac_top_srcdir=$srcdir
26717
    ac_abs_top_srcdir=$srcdir ;;
26718
  *) # Relative name.
26719
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26720
    ac_top_srcdir=$ac_top_build_prefix$srcdir
26721
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26722
esac
26723
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26724
 
26725
 
26726
  case $ac_mode in
26727
  :F)
26728
  #
26729
  # CONFIG_FILE
26730
  #
26731
 
26732
  case $INSTALL in
26733
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26734
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26735
  esac
26736
  ac_MKDIR_P=$MKDIR_P
26737
  case $MKDIR_P in
26738
  [\\/$]* | ?:[\\/]* ) ;;
26739
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26740
  esac
26741
_ACEOF
26742
 
26743
cat >>$CONFIG_STATUS <<\_ACEOF
26744
# If the template does not know about datarootdir, expand it.
26745
# FIXME: This hack should be removed a few years after 2.60.
26746
ac_datarootdir_hack=; ac_datarootdir_seen=
26747
 
26748
case `sed -n '/datarootdir/ {
26749
  p
26750
  q
26751
}
26752
/@datadir@/p
26753
/@docdir@/p
26754
/@infodir@/p
26755
/@localedir@/p
26756
/@mandir@/p
26757
' $ac_file_inputs` in
26758
*datarootdir*) ac_datarootdir_seen=yes;;
26759
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26760
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26761
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26762
_ACEOF
26763
cat >>$CONFIG_STATUS <<_ACEOF
26764
  ac_datarootdir_hack='
26765
  s&@datadir@&$datadir&g
26766
  s&@docdir@&$docdir&g
26767
  s&@infodir@&$infodir&g
26768
  s&@localedir@&$localedir&g
26769
  s&@mandir@&$mandir&g
26770
    s&\\\${datarootdir}&$datarootdir&g' ;;
26771
esac
26772
_ACEOF
26773
 
26774
# Neutralize VPATH when `$srcdir' = `.'.
26775
# Shell code in configure.ac might set extrasub.
26776
# FIXME: do we really want to maintain this feature?
26777
cat >>$CONFIG_STATUS <<_ACEOF
26778
  sed "$ac_vpsub
26779
$extrasub
26780
_ACEOF
26781
cat >>$CONFIG_STATUS <<\_ACEOF
26782
:t
26783
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26784
s&@configure_input@&$configure_input&;t t
26785
s&@top_builddir@&$ac_top_builddir_sub&;t t
26786
s&@srcdir@&$ac_srcdir&;t t
26787
s&@abs_srcdir@&$ac_abs_srcdir&;t t
26788
s&@top_srcdir@&$ac_top_srcdir&;t t
26789
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26790
s&@builddir@&$ac_builddir&;t t
26791
s&@abs_builddir@&$ac_abs_builddir&;t t
26792
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26793
s&@INSTALL@&$ac_INSTALL&;t t
26794
s&@MKDIR_P@&$ac_MKDIR_P&;t t
26795
$ac_datarootdir_hack
26796
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26797
 
26798
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26799
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26800
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26801
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26802
which seems to be undefined.  Please make sure it is defined." >&5
26803
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26804
which seems to be undefined.  Please make sure it is defined." >&2;}
26805
 
26806
  rm -f "$tmp/stdin"
26807
  case $ac_file in
26808
  -) cat "$tmp/out"; rm -f "$tmp/out";;
26809
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26810
  esac
26811
 ;;
26812
  :H)
26813
  #
26814
  # CONFIG_HEADER
26815
  #
26816
_ACEOF
26817
 
26818
# Transform confdefs.h into a sed script `conftest.defines', that
26819
# substitutes the proper values into config.h.in to produce config.h.
26820
rm -f conftest.defines conftest.tail
26821
# First, append a space to every undef/define line, to ease matching.
26822
echo 's/$/ /' >conftest.defines
26823
# Then, protect against being on the right side of a sed subst, or in
26824
# an unquoted here document, in config.status.  If some macros were
26825
# called several times there might be several #defines for the same
26826
# symbol, which is useless.  But do not sort them, since the last
26827
# AC_DEFINE must be honored.
26828
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26829
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26830
# NAME is the cpp macro being defined, VALUE is the value it is being given.
26831
# PARAMS is the parameter list in the macro definition--in most cases, it's
26832
# just an empty string.
26833
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26834
ac_dB='\\)[      (].*,\\1define\\2'
26835
ac_dC=' '
26836
ac_dD=' ,'
26837
 
26838
uniq confdefs.h |
26839
  sed -n '
26840
        t rset
26841
        :rset
26842
        s/^[     ]*#[    ]*define[       ][      ]*//
26843
        t ok
26844
        d
26845
        :ok
26846
        s/[\\&,]/\\&/g
26847
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26848
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26849
  ' >>conftest.defines
26850
 
26851
# Remove the space that was appended to ease matching.
26852
# Then replace #undef with comments.  This is necessary, for
26853
# example, in the case of _POSIX_SOURCE, which is predefined and required
26854
# on some systems where configure will not decide to define it.
26855
# (The regexp can be short, since the line contains either #define or #undef.)
26856
echo 's/ $//
26857
s,^[     #]*u.*,/* & */,' >>conftest.defines
26858
 
26859
# Break up conftest.defines:
26860
ac_max_sed_lines=50
26861
 
26862
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26863
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26864
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26865
# et cetera.
26866
ac_in='$ac_file_inputs'
26867
ac_out='"$tmp/out1"'
26868
ac_nxt='"$tmp/out2"'
26869
 
26870
while :
26871
do
26872
  # Write a here document:
26873
    cat >>$CONFIG_STATUS <<_ACEOF
26874
    # First, check the format of the line:
26875
    cat >"\$tmp/defines.sed" <<\\CEOF
26876
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26877
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26878
b
26879
:def
26880
_ACEOF
26881
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26882
  echo 'CEOF
26883
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26884
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26885
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26886
  grep . conftest.tail >/dev/null || break
26887
  rm -f conftest.defines
26888
  mv conftest.tail conftest.defines
26889
done
26890
rm -f conftest.defines conftest.tail
26891
 
26892
echo "ac_result=$ac_in" >>$CONFIG_STATUS
26893
cat >>$CONFIG_STATUS <<\_ACEOF
26894
  if test x"$ac_file" != x-; then
26895
    echo "/* $configure_input  */" >"$tmp/config.h"
26896
    cat "$ac_result" >>"$tmp/config.h"
26897
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26898
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26899
echo "$as_me: $ac_file is unchanged" >&6;}
26900
    else
26901
      rm -f $ac_file
26902
      mv "$tmp/config.h" $ac_file
26903
    fi
26904
  else
26905
    echo "/* $configure_input  */"
26906
    cat "$ac_result"
26907
  fi
26908
  rm -f "$tmp/out12"
26909
# Compute $ac_file's index in $config_headers.
26910
_am_arg=$ac_file
26911
_am_stamp_count=1
26912
for _am_header in $config_headers :; do
26913
  case $_am_header in
26914
    $_am_arg | $_am_arg:* )
26915
      break ;;
26916
    * )
26917
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26918
  esac
26919
done
26920
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26921
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26922
         X"$_am_arg" : 'X\(//\)[^/]' \| \
26923
         X"$_am_arg" : 'X\(//\)$' \| \
26924
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26925
echo X"$_am_arg" |
26926
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26927
            s//\1/
26928
            q
26929
          }
26930
          /^X\(\/\/\)[^/].*/{
26931
            s//\1/
26932
            q
26933
          }
26934
          /^X\(\/\/\)$/{
26935
            s//\1/
26936
            q
26937
          }
26938
          /^X\(\/\).*/{
26939
            s//\1/
26940
            q
26941
          }
26942
          s/.*/./; q'`/stamp-h$_am_stamp_count
26943
 ;;
26944
 
26945
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26946
echo "$as_me: executing $ac_file commands" >&6;}
26947
 ;;
26948
  esac
26949
 
26950
 
26951
  case $ac_file$ac_mode in
26952
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26953
  # Strip MF so we end up with the name of the file.
26954
  mf=`echo "$mf" | sed -e 's/:.*$//'`
26955
  # Check whether this is an Automake generated Makefile or not.
26956
  # We used to match only the files named `Makefile.in', but
26957
  # some people rename them; so instead we look at the file content.
26958
  # Grep'ing the first line is not enough: some people post-process
26959
  # each Makefile.in and add a new line on top of each file to say so.
26960
  # Grep'ing the whole file is not good either: AIX grep has a line
26961
  # limit of 2048, but all sed's we know have understand at least 4000.
26962
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26963
    dirpart=`$as_dirname -- "$mf" ||
26964
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26965
         X"$mf" : 'X\(//\)[^/]' \| \
26966
         X"$mf" : 'X\(//\)$' \| \
26967
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26968
echo X"$mf" |
26969
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26970
            s//\1/
26971
            q
26972
          }
26973
          /^X\(\/\/\)[^/].*/{
26974
            s//\1/
26975
            q
26976
          }
26977
          /^X\(\/\/\)$/{
26978
            s//\1/
26979
            q
26980
          }
26981
          /^X\(\/\).*/{
26982
            s//\1/
26983
            q
26984
          }
26985
          s/.*/./; q'`
26986
  else
26987
    continue
26988
  fi
26989
  # Extract the definition of DEPDIR, am__include, and am__quote
26990
  # from the Makefile without running `make'.
26991
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26992
  test -z "$DEPDIR" && continue
26993
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
26994
  test -z "am__include" && continue
26995
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26996
  # When using ansi2knr, U may be empty or an underscore; expand it
26997
  U=`sed -n 's/^U = //p' < "$mf"`
26998
  # Find all dependency output files, they are included files with
26999
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
27000
  # simplest approach to changing $(DEPDIR) to its actual value in the
27001
  # expansion.
27002
  for file in `sed -n "
27003
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27004
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27005
    # Make sure the directory exists.
27006
    test -f "$dirpart/$file" && continue
27007
    fdir=`$as_dirname -- "$file" ||
27008
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27009
         X"$file" : 'X\(//\)[^/]' \| \
27010
         X"$file" : 'X\(//\)$' \| \
27011
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27012
echo X"$file" |
27013
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27014
            s//\1/
27015
            q
27016
          }
27017
          /^X\(\/\/\)[^/].*/{
27018
            s//\1/
27019
            q
27020
          }
27021
          /^X\(\/\/\)$/{
27022
            s//\1/
27023
            q
27024
          }
27025
          /^X\(\/\).*/{
27026
            s//\1/
27027
            q
27028
          }
27029
          s/.*/./; q'`
27030
    { as_dir=$dirpart/$fdir
27031
  case $as_dir in #(
27032
  -*) as_dir=./$as_dir;;
27033
  esac
27034
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27035
    as_dirs=
27036
    while :; do
27037
      case $as_dir in #(
27038
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27039
      *) as_qdir=$as_dir;;
27040
      esac
27041
      as_dirs="'$as_qdir' $as_dirs"
27042
      as_dir=`$as_dirname -- "$as_dir" ||
27043
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27044
         X"$as_dir" : 'X\(//\)[^/]' \| \
27045
         X"$as_dir" : 'X\(//\)$' \| \
27046
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27047
echo X"$as_dir" |
27048
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27049
            s//\1/
27050
            q
27051
          }
27052
          /^X\(\/\/\)[^/].*/{
27053
            s//\1/
27054
            q
27055
          }
27056
          /^X\(\/\/\)$/{
27057
            s//\1/
27058
            q
27059
          }
27060
          /^X\(\/\).*/{
27061
            s//\1/
27062
            q
27063
          }
27064
          s/.*/./; q'`
27065
      test -d "$as_dir" && break
27066
    done
27067
    test -z "$as_dirs" || eval "mkdir $as_dirs"
27068
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27069
echo "$as_me: error: cannot create directory $as_dir" >&2;}
27070
   { (exit 1); exit 1; }; }; }
27071
    # echo "creating $dirpart/$file"
27072
    echo '# dummy' > "$dirpart/$file"
27073
  done
27074
done
27075
 ;;
27076
 
27077
  esac
27078
done # for ac_tag
27079
 
27080
 
27081
{ (exit 0); exit 0; }
27082
_ACEOF
27083
chmod +x $CONFIG_STATUS
27084
ac_clean_files=$ac_clean_files_save
27085
 
27086
 
27087
# configure is writing to config.log, and then calls config.status.
27088
# config.status does its own redirection, appending to config.log.
27089
# Unfortunately, on DOS this fails, as config.log is still kept open
27090
# by configure, so config.status won't be able to write to it; its
27091
# output is simply discarded.  So we exec the FD to /dev/null,
27092
# effectively closing config.log, so it can be properly (re)opened and
27093
# appended to by config.status.  When coming back to configure, we
27094
# need to make the FD available again.
27095
if test "$no_create" != yes; then
27096
  ac_cs_success=:
27097
  ac_config_status_args=
27098
  test "$silent" = yes &&
27099
    ac_config_status_args="$ac_config_status_args --quiet"
27100
  exec 5>/dev/null
27101
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27102
  exec 5>>config.log
27103
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27104
  # would make configure fail if this is the last instruction.
27105
  $ac_cs_success || { (exit 1); exit 1; }
27106
fi
27107
 

powered by: WebSVN 2.1.0

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