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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [or1ksim/] [configure] - Blame information for rev 202

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 143 jeremybenn
# From configure.ac Id: configure.ac 1067 2010-06-28 18:27:28Z jeremy  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 143 jeremybenn
# Generated by GNU Autoconf 2.63 for or1ksim 2010-06-31.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 121 jeremybenn
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 19 jeremybenn
# This configure script is free software; the Free Software Foundation
11
# gives unlimited permission to copy, distribute and modify it.
12 82 jeremybenn
#
13
# Copyright (C) 1999-2008 OpenCores
14
# Copyright (C) 2008, 2010 Embecosm Limited
15
#
16
# Contributor Jeremy Bennett 
17
#
18
# This file is part of OpenRISC 1000 Architectural Simulator.
19
#
20
# This program is free software; you can redistribute it and/or modify it
21
# under the terms of the GNU General Public License as published by the Free
22
# Software Foundation; either version 3 of the License, or (at your option)
23
# any later version.
24
#
25
# This program is distributed in the hope that it will be useful, but WITHOUT
26
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
27
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
28
# more details.
29
#
30
# You should have received a copy of the GNU General Public License along
31
# with this program.  If not, see .
32 121 jeremybenn
## --------------------- ##
33
## M4sh Initialization.  ##
34
## --------------------- ##
35 19 jeremybenn
 
36
# Be more Bourne compatible
37
DUALCASE=1; export DUALCASE # for MKS sh
38 121 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39 19 jeremybenn
  emulate sh
40
  NULLCMD=:
41 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
43
  alias -g '${1+"$@"}'='"$@"'
44
  setopt NO_GLOB_SUBST
45
else
46 121 jeremybenn
  case `(set -o) 2>/dev/null` in
47
  *posix*) set -o posix ;;
48 19 jeremybenn
esac
49 121 jeremybenn
 
50 19 jeremybenn
fi
51
 
52
 
53 121 jeremybenn
 
54
 
55
# PATH needs CR
56
# Avoid depending upon Character Ranges.
57
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
58
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
59
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
60
as_cr_digits='0123456789'
61
as_cr_alnum=$as_cr_Letters$as_cr_digits
62
 
63 82 jeremybenn
as_nl='
64
'
65
export as_nl
66
# Printing a long string crashes Solaris 7 /usr/bin/printf.
67
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
68
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
69
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
70 121 jeremybenn
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
71 82 jeremybenn
  as_echo='printf %s\n'
72
  as_echo_n='printf %s'
73
else
74
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
75
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
76
    as_echo_n='/usr/ucb/echo -n'
77 19 jeremybenn
  else
78 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
79
    as_echo_n_body='eval
80
      arg=$1;
81 121 jeremybenn
      case $arg in
82 82 jeremybenn
      *"$as_nl"*)
83
        expr "X$arg" : "X\\(.*\\)$as_nl";
84
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
85
      esac;
86
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
87
    '
88
    export as_echo_n_body
89
    as_echo_n='sh -c $as_echo_n_body as_echo'
90 19 jeremybenn
  fi
91 82 jeremybenn
  export as_echo_body
92
  as_echo='sh -c $as_echo_body as_echo'
93 19 jeremybenn
fi
94
 
95 82 jeremybenn
# The user is always right.
96
if test "${PATH_SEPARATOR+set}" != set; then
97
  PATH_SEPARATOR=:
98
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
99
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
100
      PATH_SEPARATOR=';'
101
  }
102
fi
103
 
104 121 jeremybenn
# Support unset when possible.
105
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
106
  as_unset=unset
107
else
108
  as_unset=false
109
fi
110 19 jeremybenn
 
111 121 jeremybenn
 
112 19 jeremybenn
# IFS
113
# We need space, tab and new line, in precisely that order.  Quoting is
114
# there to prevent editors from complaining about space-tab.
115
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
116
# splitting by setting IFS to empty value.)
117
IFS=" ""        $as_nl"
118
 
119
# Find who we are.  Look in the path if we contain no directory separator.
120 121 jeremybenn
case $0 in
121 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
122
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
123
for as_dir in $PATH
124
do
125
  IFS=$as_save_IFS
126
  test -z "$as_dir" && as_dir=.
127 121 jeremybenn
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
128
done
129 19 jeremybenn
IFS=$as_save_IFS
130
 
131
     ;;
132
esac
133
# We did not find ourselves, most probably we were run as `sh COMMAND'
134
# in which case we are not to be found in the path.
135
if test "x$as_myself" = x; then
136
  as_myself=$0
137
fi
138
if test ! -f "$as_myself"; then
139 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
140 121 jeremybenn
  { (exit 1); exit 1; }
141 19 jeremybenn
fi
142
 
143 121 jeremybenn
# Work around bugs in pre-3.0 UWIN ksh.
144
for as_var in ENV MAIL MAILPATH
145
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
146 19 jeremybenn
done
147
PS1='$ '
148
PS2='> '
149
PS4='+ '
150
 
151
# NLS nuisances.
152 82 jeremybenn
LC_ALL=C
153
export LC_ALL
154
LANGUAGE=C
155
export LANGUAGE
156 19 jeremybenn
 
157 121 jeremybenn
# Required to use basename.
158
if expr a : '\(a\)' >/dev/null 2>&1 &&
159
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
160
  as_expr=expr
161
else
162
  as_expr=false
163
fi
164
 
165
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
166
  as_basename=basename
167
else
168
  as_basename=false
169
fi
170
 
171
 
172
# Name of the executable.
173
as_me=`$as_basename -- "$0" ||
174
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
175
         X"$0" : 'X\(//\)$' \| \
176
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
177
$as_echo X/"$0" |
178
    sed '/^.*\/\([^/][^/]*\)\/*$/{
179
            s//\1/
180
            q
181
          }
182
          /^X\/\(\/\/\)$/{
183
            s//\1/
184
            q
185
          }
186
          /^X\/\(\/\).*/{
187
            s//\1/
188
            q
189
          }
190
          s/.*/./; q'`
191
 
192 19 jeremybenn
# CDPATH.
193 121 jeremybenn
$as_unset CDPATH
194 19 jeremybenn
 
195 121 jeremybenn
 
196 19 jeremybenn
if test "x$CONFIG_SHELL" = x; then
197 121 jeremybenn
  if (eval ":") 2>/dev/null; then
198
  as_have_required=yes
199 19 jeremybenn
else
200 121 jeremybenn
  as_have_required=no
201 19 jeremybenn
fi
202
 
203 121 jeremybenn
  if test $as_have_required = yes &&     (eval ":
204
(as_func_return () {
205
  (exit \$1)
206
}
207
as_func_success () {
208
  as_func_return 0
209
}
210
as_func_failure () {
211
  as_func_return 1
212
}
213
as_func_ret_success () {
214
  return 0
215
}
216
as_func_ret_failure () {
217
  return 1
218
}
219
 
220 19 jeremybenn
exitcode=0
221 121 jeremybenn
if as_func_success; then
222
  :
223
else
224
  exitcode=1
225
  echo as_func_success failed.
226
fi
227 19 jeremybenn
 
228 121 jeremybenn
if as_func_failure; then
229
  exitcode=1
230
  echo as_func_failure succeeded.
231
fi
232
 
233
if as_func_ret_success; then
234
  :
235 19 jeremybenn
else
236 121 jeremybenn
  exitcode=1
237
  echo as_func_ret_success failed.
238 19 jeremybenn
fi
239 121 jeremybenn
 
240
if as_func_ret_failure; then
241
  exitcode=1
242
  echo as_func_ret_failure succeeded.
243
fi
244
 
245
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
246
  :
247 19 jeremybenn
else
248 121 jeremybenn
  exitcode=1
249
  echo positional parameters were not saved.
250 19 jeremybenn
fi
251
 
252 121 jeremybenn
test \$exitcode = 0) || { (exit 1); exit 1; }
253
 
254
(
255
  as_lineno_1=\$LINENO
256
  as_lineno_2=\$LINENO
257
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
258
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
259
") 2> /dev/null; then
260
  :
261 19 jeremybenn
else
262 121 jeremybenn
  as_candidate_shells=
263
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
264 19 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
265
do
266
  IFS=$as_save_IFS
267
  test -z "$as_dir" && as_dir=.
268 121 jeremybenn
  case $as_dir in
269 19 jeremybenn
         /*)
270
           for as_base in sh bash ksh sh5; do
271 121 jeremybenn
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
272 19 jeremybenn
           done;;
273
       esac
274
done
275
IFS=$as_save_IFS
276
 
277
 
278 121 jeremybenn
      for as_shell in $as_candidate_shells $SHELL; do
279
         # Try only shells that exist, to save several forks.
280
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
281
                { ("$as_shell") 2> /dev/null <<\_ASEOF
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
  emulate sh
284
  NULLCMD=:
285
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286
  # is contrary to our usage.  Disable this feature.
287
  alias -g '${1+"$@"}'='"$@"'
288
  setopt NO_GLOB_SUBST
289
else
290
  case `(set -o) 2>/dev/null` in
291
  *posix*) set -o posix ;;
292
esac
293
 
294 19 jeremybenn
fi
295
 
296 121 jeremybenn
 
297
:
298
_ASEOF
299
}; then
300
  CONFIG_SHELL=$as_shell
301
               as_have_required=yes
302
               if { "$as_shell" 2> /dev/null <<\_ASEOF
303
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
304
  emulate sh
305
  NULLCMD=:
306
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
307
  # is contrary to our usage.  Disable this feature.
308
  alias -g '${1+"$@"}'='"$@"'
309
  setopt NO_GLOB_SUBST
310
else
311
  case `(set -o) 2>/dev/null` in
312
  *posix*) set -o posix ;;
313
esac
314
 
315 19 jeremybenn
fi
316 121 jeremybenn
 
317
 
318
:
319
(as_func_return () {
320
  (exit $1)
321
}
322
as_func_success () {
323
  as_func_return 0
324
}
325
as_func_failure () {
326
  as_func_return 1
327
}
328
as_func_ret_success () {
329
  return 0
330
}
331
as_func_ret_failure () {
332
  return 1
333
}
334
 
335
exitcode=0
336
if as_func_success; then
337
  :
338
else
339
  exitcode=1
340
  echo as_func_success failed.
341 19 jeremybenn
fi
342 121 jeremybenn
 
343
if as_func_failure; then
344
  exitcode=1
345
  echo as_func_failure succeeded.
346 19 jeremybenn
fi
347
 
348 121 jeremybenn
if as_func_ret_success; then
349
  :
350
else
351
  exitcode=1
352
  echo as_func_ret_success failed.
353
fi
354 19 jeremybenn
 
355 121 jeremybenn
if as_func_ret_failure; then
356
  exitcode=1
357
  echo as_func_ret_failure succeeded.
358
fi
359 19 jeremybenn
 
360 121 jeremybenn
if ( set x; as_func_ret_success y && test x = "$1" ); then
361
  :
362
else
363
  exitcode=1
364
  echo positional parameters were not saved.
365
fi
366 19 jeremybenn
 
367 121 jeremybenn
test $exitcode = 0) || { (exit 1); exit 1; }
368 19 jeremybenn
 
369 121 jeremybenn
(
370
  as_lineno_1=$LINENO
371
  as_lineno_2=$LINENO
372
  test "x$as_lineno_1" != "x$as_lineno_2" &&
373
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
374 19 jeremybenn
 
375 121 jeremybenn
_ASEOF
376
}; then
377
  break
378
fi
379 19 jeremybenn
 
380 121 jeremybenn
fi
381 19 jeremybenn
 
382 121 jeremybenn
      done
383 19 jeremybenn
 
384 121 jeremybenn
      if test "x$CONFIG_SHELL" != x; then
385
  for as_var in BASH_ENV ENV
386
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
387
        done
388
        export CONFIG_SHELL
389
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
390
fi
391 19 jeremybenn
 
392
 
393 121 jeremybenn
    if test $as_have_required = no; then
394
  echo This script requires a shell more modern than all the
395
      echo shells that I found on your system.  Please install a
396
      echo modern shell, or manually run the script under such a
397
      echo shell if you do have one.
398
      { (exit 1); exit 1; }
399
fi
400
 
401
 
402
fi
403
 
404
fi
405
 
406
 
407
 
408
(eval "as_func_return () {
409
  (exit \$1)
410
}
411
as_func_success () {
412
  as_func_return 0
413
}
414
as_func_failure () {
415
  as_func_return 1
416
}
417
as_func_ret_success () {
418
  return 0
419
}
420
as_func_ret_failure () {
421
  return 1
422
}
423
 
424
exitcode=0
425
if as_func_success; then
426
  :
427 19 jeremybenn
else
428 121 jeremybenn
  exitcode=1
429
  echo as_func_success failed.
430 19 jeremybenn
fi
431
 
432 121 jeremybenn
if as_func_failure; then
433
  exitcode=1
434
  echo as_func_failure succeeded.
435
fi
436
 
437
if as_func_ret_success; then
438
  :
439 19 jeremybenn
else
440 121 jeremybenn
  exitcode=1
441
  echo as_func_ret_success failed.
442 19 jeremybenn
fi
443
 
444 121 jeremybenn
if as_func_ret_failure; then
445
  exitcode=1
446
  echo as_func_ret_failure succeeded.
447
fi
448
 
449
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
450
  :
451 19 jeremybenn
else
452 121 jeremybenn
  exitcode=1
453
  echo positional parameters were not saved.
454 19 jeremybenn
fi
455
 
456 121 jeremybenn
test \$exitcode = 0") || {
457
  echo No shell found that supports shell functions.
458
  echo Please tell bug-autoconf@gnu.org about your system,
459
  echo including any error possibly output before this message.
460
  echo This can help us improve future autoconf versions.
461
  echo Configuration will now proceed without shell functions.
462
}
463 19 jeremybenn
 
464
 
465
 
466 121 jeremybenn
  as_lineno_1=$LINENO
467
  as_lineno_2=$LINENO
468
  test "x$as_lineno_1" != "x$as_lineno_2" &&
469
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
470
 
471
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
472
  # uniformly replaced by the line number.  The first 'sed' inserts a
473
  # line-number line after each line using $LINENO; the second 'sed'
474
  # does the real work.  The second script uses 'N' to pair each
475
  # line-number line with the line containing $LINENO, and appends
476
  # trailing '-' during substitution so that $LINENO is not a special
477
  # case at line end.
478
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
479
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
480
  # E. McMahon (1931-1989) for sed's syntax.  :-)
481 19 jeremybenn
  sed -n '
482
    p
483
    /[$]LINENO/=
484
  ' <$as_myself |
485
    sed '
486
      s/[$]LINENO.*/&-/
487
      t lineno
488
      b
489
      :lineno
490
      N
491
      :loop
492
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493
      t loop
494
      s/-\n.*//
495
    ' >$as_me.lineno &&
496
  chmod +x "$as_me.lineno" ||
497 121 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
498
   { (exit 1); exit 1; }; }
499 19 jeremybenn
 
500
  # Don't try to exec as it changes $[0], causing all sort of problems
501
  # (the dirname of $[0] is not the place where we might find the
502
  # original and so on.  Autoconf is especially sensitive to this).
503
  . "./$as_me.lineno"
504
  # Exit status is that of the last command.
505
  exit
506
}
507
 
508 121 jeremybenn
 
509
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
510
  as_dirname=dirname
511
else
512
  as_dirname=false
513
fi
514
 
515 19 jeremybenn
ECHO_C= ECHO_N= ECHO_T=
516 121 jeremybenn
case `echo -n x` in
517 19 jeremybenn
-n*)
518 121 jeremybenn
  case `echo 'x\c'` in
519 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
520 121 jeremybenn
  *)   ECHO_C='\c';;
521 19 jeremybenn
  esac;;
522
*)
523
  ECHO_N='-n';;
524
esac
525 121 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
526
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
527
  as_expr=expr
528
else
529
  as_expr=false
530
fi
531 19 jeremybenn
 
532
rm -f conf$$ conf$$.exe conf$$.file
533
if test -d conf$$.dir; then
534
  rm -f conf$$.dir/conf$$.file
535
else
536
  rm -f conf$$.dir
537 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
538 19 jeremybenn
fi
539 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
540
  if ln -s conf$$.file conf$$ 2>/dev/null; then
541
    as_ln_s='ln -s'
542
    # ... but there are two gotchas:
543
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
544
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
545
    # In both cases, we have to default to `cp -p'.
546
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
547
      as_ln_s='cp -p'
548
  elif ln conf$$.file conf$$ 2>/dev/null; then
549
    as_ln_s=ln
550
  else
551 19 jeremybenn
    as_ln_s='cp -p'
552 82 jeremybenn
  fi
553 19 jeremybenn
else
554
  as_ln_s='cp -p'
555
fi
556
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
557
rmdir conf$$.dir 2>/dev/null
558
 
559
if mkdir -p . 2>/dev/null; then
560 121 jeremybenn
  as_mkdir_p=:
561 19 jeremybenn
else
562
  test -d ./-p && rmdir ./-p
563
  as_mkdir_p=false
564
fi
565
 
566
if test -x / >/dev/null 2>&1; then
567
  as_test_x='test -x'
568
else
569
  if ls -dL / >/dev/null 2>&1; then
570
    as_ls_L_option=L
571
  else
572
    as_ls_L_option=
573
  fi
574
  as_test_x='
575
    eval sh -c '\''
576
      if test -d "$1"; then
577 82 jeremybenn
        test -d "$1/.";
578 19 jeremybenn
      else
579 121 jeremybenn
        case $1 in
580 82 jeremybenn
        -*)set "./$1";;
581 19 jeremybenn
        esac;
582 121 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
583 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
584
    '\'' sh
585
  '
586
fi
587
as_executable_p=$as_test_x
588
 
589
# Sed expression to map a string onto a valid CPP name.
590
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
 
592
# Sed expression to map a string onto a valid variable name.
593
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
 
595
 
596
 
597 121 jeremybenn
 
598 19 jeremybenn
# Check that we are running under the correct shell.
599
SHELL=${CONFIG_SHELL-/bin/sh}
600
 
601 82 jeremybenn
case X$lt_ECHO in
602 19 jeremybenn
X*--fallback-echo)
603
  # Remove one level of quotation (which was required for Make).
604 82 jeremybenn
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
605 19 jeremybenn
  ;;
606
esac
607
 
608 82 jeremybenn
ECHO=${lt_ECHO-echo}
609 19 jeremybenn
if test "X$1" = X--no-reexec; then
610
  # Discard the --no-reexec flag, and continue.
611
  shift
612
elif test "X$1" = X--fallback-echo; then
613
  # Avoid inline document here, it may be left over
614
  :
615 82 jeremybenn
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
616
  # Yippee, $ECHO works!
617 19 jeremybenn
  :
618
else
619
  # Restart under the correct shell.
620
  exec $SHELL "$0" --no-reexec ${1+"$@"}
621
fi
622
 
623
if test "X$1" = X--fallback-echo; then
624
  # used as fallback echo
625
  shift
626 82 jeremybenn
  cat <<_LT_EOF
627 19 jeremybenn
$*
628 82 jeremybenn
_LT_EOF
629 19 jeremybenn
  exit 0
630
fi
631
 
632
# The HP-UX ksh and POSIX shell print the target directory to stdout
633
# if CDPATH is set.
634
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
635
 
636 82 jeremybenn
if test -z "$lt_ECHO"; then
637
  if test "X${echo_test_string+set}" != Xset; then
638
    # find a string as large as possible, as long as the shell can cope with it
639
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
640
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
641
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
642
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
643
      then
644
        break
645
      fi
646
    done
647
  fi
648 19 jeremybenn
 
649 82 jeremybenn
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
650
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
651
     test "X$echo_testing_string" = "X$echo_test_string"; then
652
    :
653
  else
654
    # The Solaris, AIX, and Digital Unix default echo programs unquote
655
    # backslashes.  This makes it impossible to quote backslashes using
656
    #   echo "$something" | sed 's/\\/\\\\/g'
657
    #
658
    # So, first we look for a working echo in the user's PATH.
659 19 jeremybenn
 
660 82 jeremybenn
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
661
    for dir in $PATH /usr/ucb; do
662
      IFS="$lt_save_ifs"
663
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
664
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
665
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
666
         test "X$echo_testing_string" = "X$echo_test_string"; then
667
        ECHO="$dir/echo"
668
        break
669
      fi
670
    done
671 19 jeremybenn
    IFS="$lt_save_ifs"
672
 
673 82 jeremybenn
    if test "X$ECHO" = Xecho; then
674
      # We didn't find a better echo, so look for alternatives.
675
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
676
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
677
         test "X$echo_testing_string" = "X$echo_test_string"; then
678
        # This shell has a builtin print -r that does the trick.
679
        ECHO='print -r'
680
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
681
           test "X$CONFIG_SHELL" != X/bin/ksh; then
682
        # If we have ksh, try running configure again with it.
683
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
684
        export ORIGINAL_CONFIG_SHELL
685
        CONFIG_SHELL=/bin/ksh
686
        export CONFIG_SHELL
687
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
688
      else
689
        # Try using printf.
690
        ECHO='printf %s\n'
691
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
692
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
693 19 jeremybenn
           test "X$echo_testing_string" = "X$echo_test_string"; then
694 82 jeremybenn
          # Cool, printf works
695
          :
696
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
697
             test "X$echo_testing_string" = 'X\t' &&
698
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
699
             test "X$echo_testing_string" = "X$echo_test_string"; then
700
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
701
          export CONFIG_SHELL
702
          SHELL="$CONFIG_SHELL"
703
          export SHELL
704
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
705
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
706
             test "X$echo_testing_string" = 'X\t' &&
707
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
708
             test "X$echo_testing_string" = "X$echo_test_string"; then
709
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
710
        else
711
          # maybe with a smaller string...
712
          prev=:
713 19 jeremybenn
 
714 82 jeremybenn
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
715
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
716
            then
717
              break
718
            fi
719
            prev="$cmd"
720
          done
721
 
722
          if test "$prev" != 'sed 50q "$0"'; then
723
            echo_test_string=`eval $prev`
724
            export echo_test_string
725
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
726
          else
727
            # Oops.  We lost completely, so just stick with echo.
728
            ECHO=echo
729 19 jeremybenn
          fi
730 82 jeremybenn
        fi
731 19 jeremybenn
      fi
732
    fi
733
  fi
734
fi
735
 
736
# Copy echo and quote the copy suitably for passing to libtool from
737
# the Makefile, instead of quoting the original, which is used later.
738 82 jeremybenn
lt_ECHO=$ECHO
739
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
740
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
741 19 jeremybenn
fi
742
 
743
 
744
 
745
 
746 121 jeremybenn
exec 7<&0 &1
747 19 jeremybenn
 
748
# Name of the host.
749
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
750
# so uname gets run too.
751
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
752
 
753
#
754
# Initializations.
755
#
756
ac_default_prefix=/usr/local
757
ac_clean_files=
758
ac_config_libobj_dir=.
759
LIBOBJS=
760
cross_compiling=no
761
subdirs=
762
MFLAGS=
763
MAKEFLAGS=
764 121 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
765 19 jeremybenn
 
766
# Identity of this package.
767
PACKAGE_NAME='or1ksim'
768
PACKAGE_TARNAME='or1ksim'
769 143 jeremybenn
PACKAGE_VERSION='2010-06-31'
770
PACKAGE_STRING='or1ksim 2010-06-31'
771 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
772
 
773
# Factoring default headers for most tests.
774
ac_includes_default="\
775
#include 
776
#ifdef HAVE_SYS_TYPES_H
777
# include 
778
#endif
779
#ifdef HAVE_SYS_STAT_H
780
# include 
781
#endif
782
#ifdef STDC_HEADERS
783
# include 
784
# include 
785
#else
786
# ifdef HAVE_STDLIB_H
787
#  include 
788
# endif
789
#endif
790
#ifdef HAVE_STRING_H
791
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
792
#  include 
793
# endif
794
# include 
795
#endif
796
#ifdef HAVE_STRINGS_H
797
# include 
798
#endif
799
#ifdef HAVE_INTTYPES_H
800
# include 
801
#endif
802
#ifdef HAVE_STDINT_H
803
# include 
804
#endif
805
#ifdef HAVE_UNISTD_H
806
# include 
807
#endif"
808
 
809 91 jeremybenn
ac_unique_file="cpu/or32/execute.c"
810
enable_option_checking=no
811 82 jeremybenn
ac_subst_vars='am__EXEEXT_FALSE
812
am__EXEEXT_TRUE
813
LTLIBOBJS
814
INCLUDES
815
TERMCAP_LIB
816
SUMVERSION
817
ARFLAGS
818
LOCAL_DEFS
819
LOCAL_LDFLAGS
820
LOCAL_CFLAGS
821
BUILD_DIR
822 96 jeremybenn
RUNTESTDEFAULTFLAGS
823 90 jeremybenn
DEJAGNU
824 82 jeremybenn
DYNAMIC_EXECUTION_FALSE
825
DYNAMIC_EXECUTION_TRUE
826
GENERATE_NEEDED_FALSE
827
GENERATE_NEEDED_TRUE
828
DEBUGFLAGS
829
USE_ARGDATE_FALSE
830
USE_ARGDATE_TRUE
831
USE_ARGREX_FALSE
832
USE_ARGREX_TRUE
833
USE_SYS_GETOPTLONG_FALSE
834
USE_SYS_GETOPTLONG_TRUE
835
POW_LIB
836
LIBOBJS
837
am__fastdepCCAS_FALSE
838
am__fastdepCCAS_TRUE
839
CCASDEPMODE
840
CCASFLAGS
841
CCAS
842
CPU_ARCH
843
am__fastdepCC_FALSE
844
am__fastdepCC_TRUE
845
CCDEPMODE
846
AMDEPBACKSLASH
847
AMDEP_FALSE
848
AMDEP_TRUE
849
am__quote
850
am__include
851
DEPDIR
852
am__untar
853
am__tar
854
AMTAR
855
am__leading_dot
856
SET_MAKE
857
AWK
858
mkdir_p
859
MKDIR_P
860
INSTALL_STRIP_PROGRAM
861
install_sh
862
MAKEINFO
863
AUTOHEADER
864
AUTOMAKE
865
AUTOCONF
866
ACLOCAL
867
VERSION
868
PACKAGE
869
CYGPATH_W
870
am__isrc
871
INSTALL_DATA
872
INSTALL_SCRIPT
873
INSTALL_PROGRAM
874
OTOOL64
875
OTOOL
876
LIPO
877
NMEDIT
878
DSYMUTIL
879
lt_ECHO
880 19 jeremybenn
RANLIB
881
STRIP
882 82 jeremybenn
AR
883
OBJDUMP
884
LN_S
885
NM
886
ac_ct_DUMPBIN
887
DUMPBIN
888
LD
889
FGREP
890
SED
891 19 jeremybenn
LIBTOOL
892 82 jeremybenn
target_os
893
target_vendor
894
target_cpu
895
target
896
host_os
897
host_vendor
898
host_cpu
899
host
900
build_os
901
build_vendor
902
build_cpu
903
build
904
subdirs
905 91 jeremybenn
EGREP
906
GREP
907
CPP
908
OBJEXT
909
EXEEXT
910
ac_ct_CC
911
CPPFLAGS
912
LDFLAGS
913
CFLAGS
914
CC
915 82 jeremybenn
target_alias
916
host_alias
917
build_alias
918
LIBS
919
ECHO_T
920
ECHO_N
921
ECHO_C
922
DEFS
923
mandir
924
localedir
925
libdir
926
psdir
927
pdfdir
928
dvidir
929
htmldir
930
infodir
931
docdir
932
oldincludedir
933
includedir
934
localstatedir
935
sharedstatedir
936
sysconfdir
937
datadir
938
datarootdir
939
libexecdir
940
sbindir
941
bindir
942
program_transform_name
943
prefix
944
exec_prefix
945
PACKAGE_BUGREPORT
946
PACKAGE_STRING
947
PACKAGE_VERSION
948
PACKAGE_TARNAME
949
PACKAGE_NAME
950
PATH_SEPARATOR
951
SHELL'
952 19 jeremybenn
ac_subst_files=''
953 82 jeremybenn
ac_user_opts='
954
enable_option_checking
955
enable_shared
956
enable_static
957
with_pic
958
enable_fast_install
959
with_gnu_ld
960
enable_libtool_lock
961
enable_dependency_tracking
962
enable_profiling
963
enable_execution
964
enable_ethphy
965 127 jeremybenn
enable_unsigned_xori
966 82 jeremybenn
enable_range_stats
967
enable_debug
968
'
969 19 jeremybenn
      ac_precious_vars='build_alias
970
host_alias
971
target_alias
972
CC
973
CFLAGS
974
LDFLAGS
975
LIBS
976
CPPFLAGS
977
CPP
978 82 jeremybenn
CCAS
979
CCASFLAGS'
980 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
981 19 jeremybenn
 
982
# Initialize some variables set by options.
983
ac_init_help=
984
ac_init_version=false
985 82 jeremybenn
ac_unrecognized_opts=
986
ac_unrecognized_sep=
987 19 jeremybenn
# The variables have the same names as the options, with
988
# dashes changed to underlines.
989
cache_file=/dev/null
990
exec_prefix=NONE
991
no_create=
992
no_recursion=
993
prefix=NONE
994
program_prefix=NONE
995
program_suffix=NONE
996
program_transform_name=s,x,x,
997
silent=
998
site=
999
srcdir=
1000
verbose=
1001
x_includes=NONE
1002
x_libraries=NONE
1003
 
1004
# Installation directory options.
1005
# These are left unexpanded so users can "make install exec_prefix=/foo"
1006
# and all the variables that are supposed to be based on exec_prefix
1007
# by default will actually change.
1008
# Use braces instead of parens because sh, perl, etc. also accept them.
1009
# (The list follows the same order as the GNU Coding Standards.)
1010
bindir='${exec_prefix}/bin'
1011
sbindir='${exec_prefix}/sbin'
1012
libexecdir='${exec_prefix}/libexec'
1013
datarootdir='${prefix}/share'
1014
datadir='${datarootdir}'
1015
sysconfdir='${prefix}/etc'
1016
sharedstatedir='${prefix}/com'
1017
localstatedir='${prefix}/var'
1018
includedir='${prefix}/include'
1019
oldincludedir='/usr/include'
1020
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1021
infodir='${datarootdir}/info'
1022
htmldir='${docdir}'
1023
dvidir='${docdir}'
1024
pdfdir='${docdir}'
1025
psdir='${docdir}'
1026
libdir='${exec_prefix}/lib'
1027
localedir='${datarootdir}/locale'
1028
mandir='${datarootdir}/man'
1029
 
1030
ac_prev=
1031
ac_dashdash=
1032
for ac_option
1033
do
1034
  # If the previous option needs an argument, assign it.
1035
  if test -n "$ac_prev"; then
1036
    eval $ac_prev=\$ac_option
1037
    ac_prev=
1038
    continue
1039
  fi
1040
 
1041
  case $ac_option in
1042
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1043
  *)    ac_optarg=yes ;;
1044
  esac
1045
 
1046
  # Accept the important Cygnus configure options, so we can diagnose typos.
1047
 
1048
  case $ac_dashdash$ac_option in
1049
  --)
1050
    ac_dashdash=yes ;;
1051
 
1052
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053
    ac_prev=bindir ;;
1054
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1055
    bindir=$ac_optarg ;;
1056
 
1057
  -build | --build | --buil | --bui | --bu)
1058
    ac_prev=build_alias ;;
1059
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1060
    build_alias=$ac_optarg ;;
1061
 
1062
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1063
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1064
    ac_prev=cache_file ;;
1065
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1066
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1067
    cache_file=$ac_optarg ;;
1068
 
1069
  --config-cache | -C)
1070
    cache_file=config.cache ;;
1071
 
1072
  -datadir | --datadir | --datadi | --datad)
1073
    ac_prev=datadir ;;
1074
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1075
    datadir=$ac_optarg ;;
1076
 
1077
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1078
  | --dataroo | --dataro | --datar)
1079
    ac_prev=datarootdir ;;
1080
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1081
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1082
    datarootdir=$ac_optarg ;;
1083
 
1084
  -disable-* | --disable-*)
1085 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086 19 jeremybenn
    # Reject names that are not valid shell variable names.
1087 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 121 jeremybenn
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1089
   { (exit 1); exit 1; }; }
1090 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1091
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092
    case $ac_user_opts in
1093
      *"
1094
"enable_$ac_useropt"
1095
"*) ;;
1096
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1097
         ac_unrecognized_sep=', ';;
1098
    esac
1099
    eval enable_$ac_useropt=no ;;
1100 19 jeremybenn
 
1101
  -docdir | --docdir | --docdi | --doc | --do)
1102
    ac_prev=docdir ;;
1103
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1104
    docdir=$ac_optarg ;;
1105
 
1106
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1107
    ac_prev=dvidir ;;
1108
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1109
    dvidir=$ac_optarg ;;
1110
 
1111
  -enable-* | --enable-*)
1112 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1113 19 jeremybenn
    # Reject names that are not valid shell variable names.
1114 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 121 jeremybenn
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1116
   { (exit 1); exit 1; }; }
1117 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1118
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119
    case $ac_user_opts in
1120
      *"
1121
"enable_$ac_useropt"
1122
"*) ;;
1123
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1124
         ac_unrecognized_sep=', ';;
1125
    esac
1126
    eval enable_$ac_useropt=\$ac_optarg ;;
1127 19 jeremybenn
 
1128
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1129
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1130
  | --exec | --exe | --ex)
1131
    ac_prev=exec_prefix ;;
1132
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1133
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1134
  | --exec=* | --exe=* | --ex=*)
1135
    exec_prefix=$ac_optarg ;;
1136
 
1137
  -gas | --gas | --ga | --g)
1138
    # Obsolete; use --with-gas.
1139
    with_gas=yes ;;
1140
 
1141
  -help | --help | --hel | --he | -h)
1142
    ac_init_help=long ;;
1143
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1144
    ac_init_help=recursive ;;
1145
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1146
    ac_init_help=short ;;
1147
 
1148
  -host | --host | --hos | --ho)
1149
    ac_prev=host_alias ;;
1150
  -host=* | --host=* | --hos=* | --ho=*)
1151
    host_alias=$ac_optarg ;;
1152
 
1153
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1154
    ac_prev=htmldir ;;
1155
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1156
  | --ht=*)
1157
    htmldir=$ac_optarg ;;
1158
 
1159
  -includedir | --includedir | --includedi | --included | --include \
1160
  | --includ | --inclu | --incl | --inc)
1161
    ac_prev=includedir ;;
1162
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1163
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1164
    includedir=$ac_optarg ;;
1165
 
1166
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1167
    ac_prev=infodir ;;
1168
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1169
    infodir=$ac_optarg ;;
1170
 
1171
  -libdir | --libdir | --libdi | --libd)
1172
    ac_prev=libdir ;;
1173
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1174
    libdir=$ac_optarg ;;
1175
 
1176
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1177
  | --libexe | --libex | --libe)
1178
    ac_prev=libexecdir ;;
1179
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1180
  | --libexe=* | --libex=* | --libe=*)
1181
    libexecdir=$ac_optarg ;;
1182
 
1183
  -localedir | --localedir | --localedi | --localed | --locale)
1184
    ac_prev=localedir ;;
1185
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1186
    localedir=$ac_optarg ;;
1187
 
1188
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1189
  | --localstate | --localstat | --localsta | --localst | --locals)
1190
    ac_prev=localstatedir ;;
1191
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1192
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1193
    localstatedir=$ac_optarg ;;
1194
 
1195
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1196
    ac_prev=mandir ;;
1197
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1198
    mandir=$ac_optarg ;;
1199
 
1200
  -nfp | --nfp | --nf)
1201
    # Obsolete; use --without-fp.
1202
    with_fp=no ;;
1203
 
1204
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205
  | --no-cr | --no-c | -n)
1206
    no_create=yes ;;
1207
 
1208
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1209
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210
    no_recursion=yes ;;
1211
 
1212
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1213
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1214
  | --oldin | --oldi | --old | --ol | --o)
1215
    ac_prev=oldincludedir ;;
1216
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1217
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1218
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1219
    oldincludedir=$ac_optarg ;;
1220
 
1221
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1222
    ac_prev=prefix ;;
1223
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1224
    prefix=$ac_optarg ;;
1225
 
1226
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1227
  | --program-pre | --program-pr | --program-p)
1228
    ac_prev=program_prefix ;;
1229
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1230
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1231
    program_prefix=$ac_optarg ;;
1232
 
1233
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1234
  | --program-suf | --program-su | --program-s)
1235
    ac_prev=program_suffix ;;
1236
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1237
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1238
    program_suffix=$ac_optarg ;;
1239
 
1240
  -program-transform-name | --program-transform-name \
1241
  | --program-transform-nam | --program-transform-na \
1242
  | --program-transform-n | --program-transform- \
1243
  | --program-transform | --program-transfor \
1244
  | --program-transfo | --program-transf \
1245
  | --program-trans | --program-tran \
1246
  | --progr-tra | --program-tr | --program-t)
1247
    ac_prev=program_transform_name ;;
1248
  -program-transform-name=* | --program-transform-name=* \
1249
  | --program-transform-nam=* | --program-transform-na=* \
1250
  | --program-transform-n=* | --program-transform-=* \
1251
  | --program-transform=* | --program-transfor=* \
1252
  | --program-transfo=* | --program-transf=* \
1253
  | --program-trans=* | --program-tran=* \
1254
  | --progr-tra=* | --program-tr=* | --program-t=*)
1255
    program_transform_name=$ac_optarg ;;
1256
 
1257
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1258
    ac_prev=pdfdir ;;
1259
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1260
    pdfdir=$ac_optarg ;;
1261
 
1262
  -psdir | --psdir | --psdi | --psd | --ps)
1263
    ac_prev=psdir ;;
1264
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265
    psdir=$ac_optarg ;;
1266
 
1267
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268
  | -silent | --silent | --silen | --sile | --sil)
1269
    silent=yes ;;
1270
 
1271
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1272
    ac_prev=sbindir ;;
1273
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1274
  | --sbi=* | --sb=*)
1275
    sbindir=$ac_optarg ;;
1276
 
1277
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1278
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1279
  | --sharedst | --shareds | --shared | --share | --shar \
1280
  | --sha | --sh)
1281
    ac_prev=sharedstatedir ;;
1282
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1283
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1284
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1285
  | --sha=* | --sh=*)
1286
    sharedstatedir=$ac_optarg ;;
1287
 
1288
  -site | --site | --sit)
1289
    ac_prev=site ;;
1290
  -site=* | --site=* | --sit=*)
1291
    site=$ac_optarg ;;
1292
 
1293
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1294
    ac_prev=srcdir ;;
1295
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1296
    srcdir=$ac_optarg ;;
1297
 
1298
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1299
  | --syscon | --sysco | --sysc | --sys | --sy)
1300
    ac_prev=sysconfdir ;;
1301
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1302
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1303
    sysconfdir=$ac_optarg ;;
1304
 
1305
  -target | --target | --targe | --targ | --tar | --ta | --t)
1306
    ac_prev=target_alias ;;
1307
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1308
    target_alias=$ac_optarg ;;
1309
 
1310
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1311
    verbose=yes ;;
1312
 
1313
  -version | --version | --versio | --versi | --vers | -V)
1314
    ac_init_version=: ;;
1315
 
1316
  -with-* | --with-*)
1317 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1318 19 jeremybenn
    # Reject names that are not valid shell variable names.
1319 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 121 jeremybenn
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1321
   { (exit 1); exit 1; }; }
1322 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1323
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324
    case $ac_user_opts in
1325
      *"
1326
"with_$ac_useropt"
1327
"*) ;;
1328
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1329
         ac_unrecognized_sep=', ';;
1330
    esac
1331
    eval with_$ac_useropt=\$ac_optarg ;;
1332 19 jeremybenn
 
1333
  -without-* | --without-*)
1334 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335 19 jeremybenn
    # Reject names that are not valid shell variable names.
1336 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 121 jeremybenn
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338
   { (exit 1); exit 1; }; }
1339 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1340
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341
    case $ac_user_opts in
1342
      *"
1343
"with_$ac_useropt"
1344
"*) ;;
1345
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1346
         ac_unrecognized_sep=', ';;
1347
    esac
1348
    eval with_$ac_useropt=no ;;
1349 19 jeremybenn
 
1350
  --x)
1351
    # Obsolete; use --with-x.
1352
    with_x=yes ;;
1353
 
1354
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355
  | --x-incl | --x-inc | --x-in | --x-i)
1356
    ac_prev=x_includes ;;
1357
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359
    x_includes=$ac_optarg ;;
1360
 
1361
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363
    ac_prev=x_libraries ;;
1364
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366
    x_libraries=$ac_optarg ;;
1367
 
1368 121 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1369
Try \`$0 --help' for more information." >&2
1370
   { (exit 1); exit 1; }; }
1371 19 jeremybenn
    ;;
1372
 
1373
  *=*)
1374
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1375
    # Reject names that are not valid shell variable names.
1376 121 jeremybenn
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1377
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1378
   { (exit 1); exit 1; }; }
1379 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1380
    export $ac_envvar ;;
1381
 
1382
  *)
1383
    # FIXME: should be removed in autoconf 3.0.
1384 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1388
    ;;
1389
 
1390
  esac
1391
done
1392
 
1393
if test -n "$ac_prev"; then
1394
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395 121 jeremybenn
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1396
   { (exit 1); exit 1; }; }
1397 19 jeremybenn
fi
1398
 
1399 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1400
  case $enable_option_checking in
1401
    no) ;;
1402 121 jeremybenn
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1403
   { (exit 1); exit 1; }; } ;;
1404 82 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1405
  esac
1406
fi
1407
 
1408
# Check all directory arguments for consistency.
1409 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1410
                datadir sysconfdir sharedstatedir localstatedir includedir \
1411
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1412
                libdir localedir mandir
1413
do
1414
  eval ac_val=\$$ac_var
1415 82 jeremybenn
  # Remove trailing slashes.
1416 19 jeremybenn
  case $ac_val in
1417 82 jeremybenn
    */ )
1418
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1419
      eval $ac_var=\$ac_val;;
1420
  esac
1421
  # Be sure to have absolute directory names.
1422
  case $ac_val in
1423 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1424
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1425
  esac
1426 121 jeremybenn
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1427
   { (exit 1); exit 1; }; }
1428 19 jeremybenn
done
1429
 
1430
# There might be people who depend on the old broken behavior: `$host'
1431
# used to hold the argument of --host etc.
1432
# FIXME: To remove some day.
1433
build=$build_alias
1434
host=$host_alias
1435
target=$target_alias
1436
 
1437
# FIXME: To remove some day.
1438
if test "x$host_alias" != x; then
1439
  if test "x$build_alias" = x; then
1440
    cross_compiling=maybe
1441 82 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1442 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1443
  elif test "x$build_alias" != "x$host_alias"; then
1444
    cross_compiling=yes
1445
  fi
1446
fi
1447
 
1448
ac_tool_prefix=
1449
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1450
 
1451
test "$silent" = yes && exec 6>/dev/null
1452
 
1453
 
1454
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1455
ac_ls_di=`ls -di .` &&
1456
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1457 121 jeremybenn
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1458
   { (exit 1); exit 1; }; }
1459 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460 121 jeremybenn
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1461
   { (exit 1); exit 1; }; }
1462 19 jeremybenn
 
1463
 
1464
# Find the source files, if location was not specified.
1465
if test -z "$srcdir"; then
1466
  ac_srcdir_defaulted=yes
1467
  # Try the directory containing this script, then the parent directory.
1468 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1469
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1470
         X"$as_myself" : 'X\(//\)[^/]' \| \
1471
         X"$as_myself" : 'X\(//\)$' \| \
1472
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1473
$as_echo X"$as_myself" |
1474 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475
            s//\1/
1476
            q
1477
          }
1478
          /^X\(\/\/\)[^/].*/{
1479
            s//\1/
1480
            q
1481
          }
1482
          /^X\(\/\/\)$/{
1483
            s//\1/
1484
            q
1485
          }
1486
          /^X\(\/\).*/{
1487
            s//\1/
1488
            q
1489
          }
1490
          s/.*/./; q'`
1491
  srcdir=$ac_confdir
1492
  if test ! -r "$srcdir/$ac_unique_file"; then
1493
    srcdir=..
1494
  fi
1495
else
1496
  ac_srcdir_defaulted=no
1497
fi
1498
if test ! -r "$srcdir/$ac_unique_file"; then
1499
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1500 121 jeremybenn
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1501
   { (exit 1); exit 1; }; }
1502 19 jeremybenn
fi
1503
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1504
ac_abs_confdir=`(
1505 121 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1506
   { (exit 1); exit 1; }; }
1507 19 jeremybenn
        pwd)`
1508
# When building in place, set srcdir=.
1509
if test "$ac_abs_confdir" = "$ac_pwd"; then
1510
  srcdir=.
1511
fi
1512
# Remove unnecessary trailing slashes from srcdir.
1513
# Double slashes in file names in object file debugging info
1514
# mess up M-x gdb in Emacs.
1515
case $srcdir in
1516
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517
esac
1518
for ac_var in $ac_precious_vars; do
1519
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520
  eval ac_env_${ac_var}_value=\$${ac_var}
1521
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523
done
1524
 
1525
#
1526
# Report the --help message.
1527
#
1528
if test "$ac_init_help" = "long"; then
1529
  # Omit some internal or obsolete options to make the list less imposing.
1530
  # This message is too long to be a string in the A/UX 3.1 sh.
1531
  cat <<_ACEOF
1532 143 jeremybenn
\`configure' configures or1ksim 2010-06-31 to adapt to many kinds of systems.
1533 19 jeremybenn
 
1534
Usage: $0 [OPTION]... [VAR=VALUE]...
1535
 
1536
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537
VAR=VALUE.  See below for descriptions of some of the useful variables.
1538
 
1539
Defaults for the options are specified in brackets.
1540
 
1541
Configuration:
1542
  -h, --help              display this help and exit
1543
      --help=short        display options specific to this package
1544
      --help=recursive    display the short help of all the included packages
1545
  -V, --version           display version information and exit
1546
  -q, --quiet, --silent   do not print \`checking...' messages
1547
      --cache-file=FILE   cache test results in FILE [disabled]
1548
  -C, --config-cache      alias for \`--cache-file=config.cache'
1549
  -n, --no-create         do not create output files
1550
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1551
 
1552
Installation directories:
1553
  --prefix=PREFIX         install architecture-independent files in PREFIX
1554 82 jeremybenn
                          [$ac_default_prefix]
1555 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1556 82 jeremybenn
                          [PREFIX]
1557 19 jeremybenn
 
1558
By default, \`make install' will install all the files in
1559
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1560
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561
for instance \`--prefix=\$HOME'.
1562
 
1563
For better control, use the options below.
1564
 
1565
Fine tuning of the installation directories:
1566 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1567
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1568
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1569
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1570
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1571
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1572
  --libdir=DIR            object code libraries [EPREFIX/lib]
1573
  --includedir=DIR        C header files [PREFIX/include]
1574
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1575
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1576
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1577
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1578
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1579
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1580
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1581
  --htmldir=DIR           html documentation [DOCDIR]
1582
  --dvidir=DIR            dvi documentation [DOCDIR]
1583
  --pdfdir=DIR            pdf documentation [DOCDIR]
1584
  --psdir=DIR             ps documentation [DOCDIR]
1585 19 jeremybenn
_ACEOF
1586
 
1587
  cat <<\_ACEOF
1588
 
1589
Program names:
1590
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1591
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1592
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1593
 
1594
System types:
1595
  --build=BUILD     configure for building on BUILD [guessed]
1596
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1597
  --target=TARGET   configure for building compilers for TARGET [HOST]
1598
_ACEOF
1599
fi
1600
 
1601
if test -n "$ac_init_help"; then
1602
  case $ac_init_help in
1603 143 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2010-06-31:";;
1604 19 jeremybenn
   esac
1605
  cat <<\_ACEOF
1606
 
1607
Optional Features:
1608 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1609 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1610
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1611
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1612
  --enable-static[=PKGS]  build static libraries [default=yes]
1613
  --enable-fast-install[=PKGS]
1614
                          optimize for fast installation [default=yes]
1615
  --disable-libtool-lock  avoid locking (might break parallel builds)
1616
  --disable-dependency-tracking  speeds up one-time build
1617
  --enable-dependency-tracking   do not reject slow dependency extractors
1618
  --enable-profiling      generate profiling code
1619
  --enable-execution Execution style to use (simple/complex/dynamic)
1620
  --enable-ethphy    compiles sim with ethernet phy support
1621 127 jeremybenn
  --enable-unsigned-xori    l.xori immediate operand treated as unsigned
1622 19 jeremybenn
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1623
  --enable-debug          enable library debugging symbols
1624
 
1625
Optional Packages:
1626
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1627
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1628
  --with-pic              try to use only PIC/non-PIC objects [default=use
1629
                          both]
1630 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1631 19 jeremybenn
 
1632
Some influential environment variables:
1633
  CC          C compiler command
1634
  CFLAGS      C compiler flags
1635
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1636
              nonstandard directory 
1637
  LIBS        libraries to pass to the linker, e.g. -l
1638 121 jeremybenn
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1639 19 jeremybenn
              you have headers in a nonstandard directory 
1640
  CPP         C preprocessor
1641 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1642
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1643 19 jeremybenn
 
1644
Use these variables to override the choices made by `configure' or to help
1645
it to find libraries and programs with nonstandard names/locations.
1646
 
1647
Report bugs to .
1648
_ACEOF
1649
ac_status=$?
1650
fi
1651
 
1652
if test "$ac_init_help" = "recursive"; then
1653
  # If there are subdirs, report their specific --help.
1654
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655 82 jeremybenn
    test -d "$ac_dir" ||
1656
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657
      continue
1658 19 jeremybenn
    ac_builddir=.
1659
 
1660
case "$ac_dir" in
1661
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662
*)
1663 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1664 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1665 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1666 19 jeremybenn
  case $ac_top_builddir_sub in
1667
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669
  esac ;;
1670
esac
1671
ac_abs_top_builddir=$ac_pwd
1672
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673
# for backward compatibility:
1674
ac_top_builddir=$ac_top_build_prefix
1675
 
1676
case $srcdir in
1677
  .)  # We are building in place.
1678
    ac_srcdir=.
1679
    ac_top_srcdir=$ac_top_builddir_sub
1680
    ac_abs_top_srcdir=$ac_pwd ;;
1681
  [\\/]* | ?:[\\/]* )  # Absolute name.
1682
    ac_srcdir=$srcdir$ac_dir_suffix;
1683
    ac_top_srcdir=$srcdir
1684
    ac_abs_top_srcdir=$srcdir ;;
1685
  *) # Relative name.
1686
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1688
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689
esac
1690
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
 
1692
    cd "$ac_dir" || { ac_status=$?; continue; }
1693
    # Check for guested configure.
1694
    if test -f "$ac_srcdir/configure.gnu"; then
1695
      echo &&
1696
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697
    elif test -f "$ac_srcdir/configure"; then
1698
      echo &&
1699
      $SHELL "$ac_srcdir/configure" --help=recursive
1700
    else
1701 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 19 jeremybenn
    fi || ac_status=$?
1703
    cd "$ac_pwd" || { ac_status=$?; break; }
1704
  done
1705
fi
1706
 
1707
test -n "$ac_init_help" && exit $ac_status
1708
if $ac_init_version; then
1709
  cat <<\_ACEOF
1710 143 jeremybenn
or1ksim configure 2010-06-31
1711 121 jeremybenn
generated by GNU Autoconf 2.63
1712 19 jeremybenn
 
1713 121 jeremybenn
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1714
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1715 19 jeremybenn
This configure script is free software; the Free Software Foundation
1716
gives unlimited permission to copy, distribute and modify it.
1717 82 jeremybenn
 
1718
Copyright (C) 1999-2008 OpenCores
1719
Copyright (C) 2008, 2010 Embecosm Limited
1720
 
1721
Contributor Jeremy Bennett 
1722
 
1723
This file is part of OpenRISC 1000 Architectural Simulator.
1724
 
1725
This program is free software; you can redistribute it and/or modify it
1726
under the terms of the GNU General Public License as published by the Free
1727
Software Foundation; either version 3 of the License, or (at your option)
1728
any later version.
1729
 
1730
This program is distributed in the hope that it will be useful, but WITHOUT
1731
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1732
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1733
more details.
1734
 
1735
You should have received a copy of the GNU General Public License along
1736
with this program.  If not, see .
1737 19 jeremybenn
_ACEOF
1738
  exit
1739
fi
1740
cat >config.log <<_ACEOF
1741
This file contains any messages produced by compilers while
1742
running configure, to aid debugging if configure makes a mistake.
1743
 
1744 143 jeremybenn
It was created by or1ksim $as_me 2010-06-31, which was
1745 121 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
1746 19 jeremybenn
 
1747
  $ $0 $@
1748
 
1749
_ACEOF
1750
exec 5>>config.log
1751
{
1752
cat <<_ASUNAME
1753
## --------- ##
1754
## Platform. ##
1755
## --------- ##
1756
 
1757
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1758
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1759
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1760
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1761
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1762
 
1763
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1764
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1765
 
1766
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1767
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1768
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1769
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1770
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1771
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1772
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1773
 
1774
_ASUNAME
1775
 
1776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777
for as_dir in $PATH
1778
do
1779
  IFS=$as_save_IFS
1780
  test -z "$as_dir" && as_dir=.
1781 121 jeremybenn
  $as_echo "PATH: $as_dir"
1782
done
1783 19 jeremybenn
IFS=$as_save_IFS
1784
 
1785
} >&5
1786
 
1787
cat >&5 <<_ACEOF
1788
 
1789
 
1790
## ----------- ##
1791
## Core tests. ##
1792
## ----------- ##
1793
 
1794
_ACEOF
1795
 
1796
 
1797
# Keep a trace of the command line.
1798
# Strip out --no-create and --no-recursion so they do not pile up.
1799
# Strip out --silent because we don't want to record it for future runs.
1800
# Also quote any args containing shell meta-characters.
1801
# Make two passes to allow for proper duplicate-argument suppression.
1802
ac_configure_args=
1803
ac_configure_args0=
1804
ac_configure_args1=
1805
ac_must_keep_next=false
1806
for ac_pass in 1 2
1807
do
1808
  for ac_arg
1809
  do
1810
    case $ac_arg in
1811
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1812
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1813
    | -silent | --silent | --silen | --sile | --sil)
1814
      continue ;;
1815
    *\'*)
1816 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 19 jeremybenn
    esac
1818
    case $ac_pass in
1819 121 jeremybenn
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1820 19 jeremybenn
    2)
1821 121 jeremybenn
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1822 19 jeremybenn
      if test $ac_must_keep_next = true; then
1823
        ac_must_keep_next=false # Got value, back to normal.
1824
      else
1825
        case $ac_arg in
1826
          *=* | --config-cache | -C | -disable-* | --disable-* \
1827
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1828
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1829
          | -with-* | --with-* | -without-* | --without-* | --x)
1830
            case "$ac_configure_args0 " in
1831
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1832
            esac
1833
            ;;
1834
          -* ) ac_must_keep_next=true ;;
1835
        esac
1836
      fi
1837 121 jeremybenn
      ac_configure_args="$ac_configure_args '$ac_arg'"
1838 19 jeremybenn
      ;;
1839
    esac
1840
  done
1841
done
1842 121 jeremybenn
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1843
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1844 19 jeremybenn
 
1845
# When interrupted or exit'd, cleanup temporary files, and complete
1846
# config.log.  We remove comments because anyway the quotes in there
1847
# would cause problems or look ugly.
1848
# WARNING: Use '\'' to represent an apostrophe within the trap.
1849
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1850
trap 'exit_status=$?
1851
  # Save into config.log some information that might help in debugging.
1852
  {
1853
    echo
1854
 
1855
    cat <<\_ASBOX
1856
## ---------------- ##
1857
## Cache variables. ##
1858
## ---------------- ##
1859
_ASBOX
1860
    echo
1861
    # The following way of writing the cache mishandles newlines in values,
1862
(
1863
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1864
    eval ac_val=\$$ac_var
1865
    case $ac_val in #(
1866
    *${as_nl}*)
1867
      case $ac_var in #(
1868 121 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1869 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1870 19 jeremybenn
      esac
1871
      case $ac_var in #(
1872
      _ | IFS | as_nl) ;; #(
1873 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1874 121 jeremybenn
      *) $as_unset $ac_var ;;
1875 19 jeremybenn
      esac ;;
1876
    esac
1877
  done
1878
  (set) 2>&1 |
1879
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1880
    *${as_nl}ac_space=\ *)
1881
      sed -n \
1882
        "s/'\''/'\''\\\\'\'''\''/g;
1883
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1884
      ;; #(
1885
    *)
1886
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1887
      ;;
1888
    esac |
1889
    sort
1890
)
1891
    echo
1892
 
1893
    cat <<\_ASBOX
1894
## ----------------- ##
1895
## Output variables. ##
1896
## ----------------- ##
1897
_ASBOX
1898
    echo
1899
    for ac_var in $ac_subst_vars
1900
    do
1901
      eval ac_val=\$$ac_var
1902
      case $ac_val in
1903 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904 19 jeremybenn
      esac
1905 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
1906 19 jeremybenn
    done | sort
1907
    echo
1908
 
1909
    if test -n "$ac_subst_files"; then
1910
      cat <<\_ASBOX
1911
## ------------------- ##
1912
## File substitutions. ##
1913
## ------------------- ##
1914
_ASBOX
1915
      echo
1916
      for ac_var in $ac_subst_files
1917
      do
1918
        eval ac_val=\$$ac_var
1919
        case $ac_val in
1920 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1921 19 jeremybenn
        esac
1922 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
1923 19 jeremybenn
      done | sort
1924
      echo
1925
    fi
1926
 
1927
    if test -s confdefs.h; then
1928
      cat <<\_ASBOX
1929
## ----------- ##
1930
## confdefs.h. ##
1931
## ----------- ##
1932
_ASBOX
1933
      echo
1934
      cat confdefs.h
1935
      echo
1936
    fi
1937
    test "$ac_signal" != 0 &&
1938 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
1939
    $as_echo "$as_me: exit $exit_status"
1940 19 jeremybenn
  } >&5
1941
  rm -f core *.core core.conftest.* &&
1942
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1943
    exit $exit_status
1944
' 0
1945
for ac_signal in 1 2 13 15; do
1946 121 jeremybenn
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1947 19 jeremybenn
done
1948
ac_signal=0
1949
 
1950
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1951
rm -f -r conftest* confdefs.h
1952
 
1953
# Predefined preprocessor variables.
1954
 
1955
cat >>confdefs.h <<_ACEOF
1956
#define PACKAGE_NAME "$PACKAGE_NAME"
1957
_ACEOF
1958
 
1959 121 jeremybenn
 
1960 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1961
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1962
_ACEOF
1963
 
1964 121 jeremybenn
 
1965 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1966
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1967
_ACEOF
1968
 
1969 121 jeremybenn
 
1970 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1971
#define PACKAGE_STRING "$PACKAGE_STRING"
1972
_ACEOF
1973
 
1974 121 jeremybenn
 
1975 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1976
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1977
_ACEOF
1978
 
1979
 
1980
# Let the site file select an alternate cache file if it wants to.
1981 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
1982
ac_site_file1=NONE
1983
ac_site_file2=NONE
1984 19 jeremybenn
if test -n "$CONFIG_SITE"; then
1985 82 jeremybenn
  ac_site_file1=$CONFIG_SITE
1986 19 jeremybenn
elif test "x$prefix" != xNONE; then
1987 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
1988
  ac_site_file2=$prefix/etc/config.site
1989 19 jeremybenn
else
1990 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
1991
  ac_site_file2=$ac_default_prefix/etc/config.site
1992 19 jeremybenn
fi
1993 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1994 19 jeremybenn
do
1995 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
1996 121 jeremybenn
  if test -r "$ac_site_file"; then
1997
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1998 82 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1999 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2000
    . "$ac_site_file"
2001
  fi
2002
done
2003
 
2004
if test -r "$cache_file"; then
2005 121 jeremybenn
  # Some versions of bash will fail to source /dev/null (special
2006
  # files actually), so we avoid doing that.
2007
  if test -f "$cache_file"; then
2008
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2009 82 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2010 19 jeremybenn
    case $cache_file in
2011
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2012
      *)                      . "./$cache_file";;
2013
    esac
2014
  fi
2015
else
2016 121 jeremybenn
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2017 82 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2018 19 jeremybenn
  >$cache_file
2019
fi
2020
 
2021
# Check that the precious variables saved in the cache have kept the same
2022
# value.
2023
ac_cache_corrupted=false
2024
for ac_var in $ac_precious_vars; do
2025
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2026
  eval ac_new_set=\$ac_env_${ac_var}_set
2027
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2028
  eval ac_new_val=\$ac_env_${ac_var}_value
2029
  case $ac_old_set,$ac_new_set in
2030
    set,)
2031 121 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2032 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2033 19 jeremybenn
      ac_cache_corrupted=: ;;
2034
    ,set)
2035 121 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2036 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2037 19 jeremybenn
      ac_cache_corrupted=: ;;
2038
    ,);;
2039
    *)
2040
      if test "x$ac_old_val" != "x$ac_new_val"; then
2041 82 jeremybenn
        # differences in whitespace do not lead to failure.
2042
        ac_old_val_w=`echo x $ac_old_val`
2043
        ac_new_val_w=`echo x $ac_new_val`
2044
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2045 121 jeremybenn
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2046 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2047
          ac_cache_corrupted=:
2048
        else
2049 121 jeremybenn
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2050 82 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2051
          eval $ac_var=\$ac_old_val
2052
        fi
2053 121 jeremybenn
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2054 82 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2055 121 jeremybenn
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2056 82 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2057 19 jeremybenn
      fi;;
2058
  esac
2059
  # Pass precious variables to config.status.
2060
  if test "$ac_new_set" = set; then
2061
    case $ac_new_val in
2062 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2064
    esac
2065
    case " $ac_configure_args " in
2066
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2067 121 jeremybenn
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2068 19 jeremybenn
    esac
2069
  fi
2070
done
2071
if $ac_cache_corrupted; then
2072 121 jeremybenn
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2073 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2074 121 jeremybenn
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2075 82 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2076 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2077
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2078
   { (exit 1); exit 1; }; }
2079 19 jeremybenn
fi
2080
 
2081 121 jeremybenn
 
2082
 
2083
 
2084
 
2085
 
2086
 
2087
 
2088
 
2089
 
2090
 
2091
 
2092
 
2093
 
2094
 
2095
 
2096
 
2097
 
2098
 
2099
 
2100
 
2101
 
2102
 
2103
 
2104
 
2105 19 jeremybenn
ac_ext=c
2106
ac_cpp='$CPP $CPPFLAGS'
2107
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110
 
2111
 
2112
 
2113 82 jeremybenn
 
2114 91 jeremybenn
# Generically use extensions such as _GNU_SOURCE if available.
2115 19 jeremybenn
ac_ext=c
2116
ac_cpp='$CPP $CPPFLAGS'
2117
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2118
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2119
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120
if test -n "$ac_tool_prefix"; then
2121
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2122
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2123 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2125 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2126 82 jeremybenn
  $as_echo_n "(cached) " >&6
2127 19 jeremybenn
else
2128
  if test -n "$CC"; then
2129
  ac_cv_prog_CC="$CC" # Let the user override the test.
2130
else
2131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132
for as_dir in $PATH
2133
do
2134
  IFS=$as_save_IFS
2135
  test -z "$as_dir" && as_dir=.
2136 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2137 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2138
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2139 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 19 jeremybenn
    break 2
2141
  fi
2142
done
2143 121 jeremybenn
done
2144 19 jeremybenn
IFS=$as_save_IFS
2145
 
2146
fi
2147
fi
2148
CC=$ac_cv_prog_CC
2149
if test -n "$CC"; then
2150 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2151 82 jeremybenn
$as_echo "$CC" >&6; }
2152 19 jeremybenn
else
2153 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2154 82 jeremybenn
$as_echo "no" >&6; }
2155 19 jeremybenn
fi
2156
 
2157
 
2158
fi
2159
if test -z "$ac_cv_prog_CC"; then
2160
  ac_ct_CC=$CC
2161
  # Extract the first word of "gcc", so it can be a program name with args.
2162
set dummy gcc; ac_word=$2
2163 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2165 121 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2166 82 jeremybenn
  $as_echo_n "(cached) " >&6
2167 19 jeremybenn
else
2168
  if test -n "$ac_ct_CC"; then
2169
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2170
else
2171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172
for as_dir in $PATH
2173
do
2174
  IFS=$as_save_IFS
2175
  test -z "$as_dir" && as_dir=.
2176 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2177 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2178
    ac_cv_prog_ac_ct_CC="gcc"
2179 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 19 jeremybenn
    break 2
2181
  fi
2182
done
2183 121 jeremybenn
done
2184 19 jeremybenn
IFS=$as_save_IFS
2185
 
2186
fi
2187
fi
2188
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2189
if test -n "$ac_ct_CC"; then
2190 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2191 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2192 19 jeremybenn
else
2193 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2194 82 jeremybenn
$as_echo "no" >&6; }
2195 19 jeremybenn
fi
2196
 
2197
  if test "x$ac_ct_CC" = x; then
2198
    CC=""
2199
  else
2200
    case $cross_compiling:$ac_tool_warned in
2201
yes:)
2202 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2203 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2204 19 jeremybenn
ac_tool_warned=yes ;;
2205
esac
2206
    CC=$ac_ct_CC
2207
  fi
2208
else
2209
  CC="$ac_cv_prog_CC"
2210
fi
2211
 
2212
if test -z "$CC"; then
2213
          if test -n "$ac_tool_prefix"; then
2214
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2215
set dummy ${ac_tool_prefix}cc; ac_word=$2
2216 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2218 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2219 82 jeremybenn
  $as_echo_n "(cached) " >&6
2220 19 jeremybenn
else
2221
  if test -n "$CC"; then
2222
  ac_cv_prog_CC="$CC" # Let the user override the test.
2223
else
2224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225
for as_dir in $PATH
2226
do
2227
  IFS=$as_save_IFS
2228
  test -z "$as_dir" && as_dir=.
2229 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2230 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2232 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 19 jeremybenn
    break 2
2234
  fi
2235
done
2236 121 jeremybenn
done
2237 19 jeremybenn
IFS=$as_save_IFS
2238
 
2239
fi
2240
fi
2241
CC=$ac_cv_prog_CC
2242
if test -n "$CC"; then
2243 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2244 82 jeremybenn
$as_echo "$CC" >&6; }
2245 19 jeremybenn
else
2246 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2247 82 jeremybenn
$as_echo "no" >&6; }
2248 19 jeremybenn
fi
2249
 
2250
 
2251
  fi
2252
fi
2253
if test -z "$CC"; then
2254
  # Extract the first word of "cc", so it can be a program name with args.
2255
set dummy cc; ac_word=$2
2256 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2258 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2259 82 jeremybenn
  $as_echo_n "(cached) " >&6
2260 19 jeremybenn
else
2261
  if test -n "$CC"; then
2262
  ac_cv_prog_CC="$CC" # Let the user override the test.
2263
else
2264
  ac_prog_rejected=no
2265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266
for as_dir in $PATH
2267
do
2268
  IFS=$as_save_IFS
2269
  test -z "$as_dir" && as_dir=.
2270 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2271 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2272
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2273
       ac_prog_rejected=yes
2274
       continue
2275
     fi
2276
    ac_cv_prog_CC="cc"
2277 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 19 jeremybenn
    break 2
2279
  fi
2280
done
2281 121 jeremybenn
done
2282 19 jeremybenn
IFS=$as_save_IFS
2283
 
2284
if test $ac_prog_rejected = yes; then
2285
  # We found a bogon in the path, so make sure we never use it.
2286
  set dummy $ac_cv_prog_CC
2287
  shift
2288
  if test $# != 0; then
2289
    # We chose a different compiler from the bogus one.
2290
    # However, it has the same basename, so the bogon will be chosen
2291
    # first if we set CC to just the basename; use the full file name.
2292
    shift
2293
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2294
  fi
2295
fi
2296
fi
2297
fi
2298
CC=$ac_cv_prog_CC
2299
if test -n "$CC"; then
2300 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2301 82 jeremybenn
$as_echo "$CC" >&6; }
2302 19 jeremybenn
else
2303 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2304 82 jeremybenn
$as_echo "no" >&6; }
2305 19 jeremybenn
fi
2306
 
2307
 
2308
fi
2309
if test -z "$CC"; then
2310
  if test -n "$ac_tool_prefix"; then
2311
  for ac_prog in cl.exe
2312
  do
2313
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2314
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2315 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2317 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2318 82 jeremybenn
  $as_echo_n "(cached) " >&6
2319 19 jeremybenn
else
2320
  if test -n "$CC"; then
2321
  ac_cv_prog_CC="$CC" # Let the user override the test.
2322
else
2323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324
for as_dir in $PATH
2325
do
2326
  IFS=$as_save_IFS
2327
  test -z "$as_dir" && as_dir=.
2328 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2329 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2330
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2331 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 19 jeremybenn
    break 2
2333
  fi
2334
done
2335 121 jeremybenn
done
2336 19 jeremybenn
IFS=$as_save_IFS
2337
 
2338
fi
2339
fi
2340
CC=$ac_cv_prog_CC
2341
if test -n "$CC"; then
2342 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2343 82 jeremybenn
$as_echo "$CC" >&6; }
2344 19 jeremybenn
else
2345 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2346 82 jeremybenn
$as_echo "no" >&6; }
2347 19 jeremybenn
fi
2348
 
2349
 
2350
    test -n "$CC" && break
2351
  done
2352
fi
2353
if test -z "$CC"; then
2354
  ac_ct_CC=$CC
2355
  for ac_prog in cl.exe
2356
do
2357
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2358
set dummy $ac_prog; ac_word=$2
2359 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2361 121 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2362 82 jeremybenn
  $as_echo_n "(cached) " >&6
2363 19 jeremybenn
else
2364
  if test -n "$ac_ct_CC"; then
2365
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2366
else
2367
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368
for as_dir in $PATH
2369
do
2370
  IFS=$as_save_IFS
2371
  test -z "$as_dir" && as_dir=.
2372 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2373 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374
    ac_cv_prog_ac_ct_CC="$ac_prog"
2375 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 19 jeremybenn
    break 2
2377
  fi
2378
done
2379 121 jeremybenn
done
2380 19 jeremybenn
IFS=$as_save_IFS
2381
 
2382
fi
2383
fi
2384
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2385
if test -n "$ac_ct_CC"; then
2386 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2387 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2388 19 jeremybenn
else
2389 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2390 82 jeremybenn
$as_echo "no" >&6; }
2391 19 jeremybenn
fi
2392
 
2393
 
2394
  test -n "$ac_ct_CC" && break
2395
done
2396
 
2397
  if test "x$ac_ct_CC" = x; then
2398
    CC=""
2399
  else
2400
    case $cross_compiling:$ac_tool_warned in
2401
yes:)
2402 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2403 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2404 19 jeremybenn
ac_tool_warned=yes ;;
2405
esac
2406
    CC=$ac_ct_CC
2407
  fi
2408
fi
2409
 
2410
fi
2411
 
2412
 
2413 121 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2414 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2416
See \`config.log' for more details." >&5
2417
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2418
See \`config.log' for more details." >&2;}
2419
   { (exit 1); exit 1; }; }; }
2420 19 jeremybenn
 
2421
# Provide some information about the compiler.
2422 121 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2423 82 jeremybenn
set X $ac_compile
2424
ac_compiler=$2
2425 121 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
2426 19 jeremybenn
case "(($ac_try" in
2427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2428
  *) ac_try_echo=$ac_try;;
2429
esac
2430 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2431
$as_echo "$ac_try_echo") >&5
2432
  (eval "$ac_compiler --version >&5") 2>&5
2433 19 jeremybenn
  ac_status=$?
2434 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435
  (exit $ac_status); }
2436
{ (ac_try="$ac_compiler -v >&5"
2437
case "(($ac_try" in
2438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439
  *) ac_try_echo=$ac_try;;
2440
esac
2441
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2442
$as_echo "$ac_try_echo") >&5
2443
  (eval "$ac_compiler -v >&5") 2>&5
2444
  ac_status=$?
2445
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446
  (exit $ac_status); }
2447
{ (ac_try="$ac_compiler -V >&5"
2448
case "(($ac_try" in
2449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450
  *) ac_try_echo=$ac_try;;
2451
esac
2452
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2453
$as_echo "$ac_try_echo") >&5
2454
  (eval "$ac_compiler -V >&5") 2>&5
2455
  ac_status=$?
2456
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457
  (exit $ac_status); }
2458 19 jeremybenn
 
2459 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
2460
/* confdefs.h.  */
2461
_ACEOF
2462
cat confdefs.h >>conftest.$ac_ext
2463
cat >>conftest.$ac_ext <<_ACEOF
2464 19 jeremybenn
/* end confdefs.h.  */
2465
 
2466
int
2467
main ()
2468
{
2469
 
2470
  ;
2471
  return 0;
2472
}
2473
_ACEOF
2474
ac_clean_files_save=$ac_clean_files
2475 82 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2476 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2477
# It will help us diagnose broken compilers, and finding out an intuition
2478
# of exeext.
2479 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2480
$as_echo_n "checking for C compiler default output file name... " >&6; }
2481 82 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2482
 
2483
# The possible output files:
2484
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2485
 
2486 19 jeremybenn
ac_rmfiles=
2487
for ac_file in $ac_files
2488
do
2489
  case $ac_file in
2490 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2491 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2492
  esac
2493
done
2494
rm -f $ac_rmfiles
2495
 
2496 121 jeremybenn
if { (ac_try="$ac_link_default"
2497 19 jeremybenn
case "(($ac_try" in
2498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499
  *) ac_try_echo=$ac_try;;
2500
esac
2501 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2502
$as_echo "$ac_try_echo") >&5
2503 19 jeremybenn
  (eval "$ac_link_default") 2>&5
2504
  ac_status=$?
2505 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506
  (exit $ac_status); }; then
2507 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2508
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2509
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2510
# so that the user can short-circuit this test for compilers unknown to
2511
# Autoconf.
2512
for ac_file in $ac_files ''
2513
do
2514
  test -f "$ac_file" || continue
2515
  case $ac_file in
2516 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2517 19 jeremybenn
        ;;
2518
    [ab].out )
2519
        # We found the default executable, but exeext='' is most
2520
        # certainly right.
2521
        break;;
2522
    *.* )
2523 121 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2524 19 jeremybenn
        then :; else
2525
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2526
        fi
2527
        # We set ac_cv_exeext here because the later test for it is not
2528
        # safe: cross compilers may not add the suffix if given an `-o'
2529
        # argument, so we may need to know it at that point already.
2530
        # Even if this section looks crufty: it has the advantage of
2531
        # actually working.
2532
        break;;
2533
    * )
2534
        break;;
2535
  esac
2536
done
2537
test "$ac_cv_exeext" = no && ac_cv_exeext=
2538
 
2539
else
2540
  ac_file=''
2541
fi
2542 121 jeremybenn
 
2543
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2544
$as_echo "$ac_file" >&6; }
2545
if test -z "$ac_file"; then
2546
  $as_echo "$as_me: failed program was:" >&5
2547 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2548
 
2549 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2550 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2552
See \`config.log' for more details." >&5
2553
$as_echo "$as_me: error: C compiler cannot create executables
2554
See \`config.log' for more details." >&2;}
2555
   { (exit 77); exit 77; }; }; }
2556 19 jeremybenn
fi
2557 121 jeremybenn
 
2558 19 jeremybenn
ac_exeext=$ac_cv_exeext
2559
 
2560 121 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2561
# the compiler is broken, or we cross compile.
2562
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2563
$as_echo_n "checking whether the C compiler works... " >&6; }
2564
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2565
# If not cross compiling, check that we can run a simple program.
2566
if test "$cross_compiling" != yes; then
2567
  if { ac_try='./$ac_file'
2568
  { (case "(($ac_try" in
2569
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570
  *) ac_try_echo=$ac_try;;
2571
esac
2572
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2573
$as_echo "$ac_try_echo") >&5
2574
  (eval "$ac_try") 2>&5
2575
  ac_status=$?
2576
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577
  (exit $ac_status); }; }; then
2578
    cross_compiling=no
2579
  else
2580
    if test "$cross_compiling" = maybe; then
2581
        cross_compiling=yes
2582
    else
2583
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2584
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2586
If you meant to cross compile, use \`--host'.
2587
See \`config.log' for more details." >&5
2588
$as_echo "$as_me: error: cannot run C compiled programs.
2589
If you meant to cross compile, use \`--host'.
2590
See \`config.log' for more details." >&2;}
2591
   { (exit 1); exit 1; }; }; }
2592
    fi
2593
  fi
2594
fi
2595
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2596
$as_echo "yes" >&6; }
2597
 
2598 82 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2599 19 jeremybenn
ac_clean_files=$ac_clean_files_save
2600 121 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2601
# the compiler is broken, or we cross compile.
2602
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2603
$as_echo_n "checking whether we are cross compiling... " >&6; }
2604
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2605
$as_echo "$cross_compiling" >&6; }
2606
 
2607
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2608 82 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
2609 121 jeremybenn
if { (ac_try="$ac_link"
2610 19 jeremybenn
case "(($ac_try" in
2611
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612
  *) ac_try_echo=$ac_try;;
2613
esac
2614 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2615
$as_echo "$ac_try_echo") >&5
2616 19 jeremybenn
  (eval "$ac_link") 2>&5
2617
  ac_status=$?
2618 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619
  (exit $ac_status); }; then
2620 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2621
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2622
# work properly (i.e., refer to `conftest.exe'), while it won't with
2623
# `rm'.
2624
for ac_file in conftest.exe conftest conftest.*; do
2625
  test -f "$ac_file" || continue
2626
  case $ac_file in
2627 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2628 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2629
          break;;
2630
    * ) break;;
2631
  esac
2632
done
2633
else
2634 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2635 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2637
See \`config.log' for more details." >&5
2638
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2639
See \`config.log' for more details." >&2;}
2640
   { (exit 1); exit 1; }; }; }
2641 19 jeremybenn
fi
2642 121 jeremybenn
 
2643
rm -f conftest$ac_cv_exeext
2644
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2645 82 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
2646 19 jeremybenn
 
2647
rm -f conftest.$ac_ext
2648
EXEEXT=$ac_cv_exeext
2649
ac_exeext=$EXEEXT
2650 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2651 82 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
2652 121 jeremybenn
if test "${ac_cv_objext+set}" = set; then
2653 82 jeremybenn
  $as_echo_n "(cached) " >&6
2654 19 jeremybenn
else
2655 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
2656
/* confdefs.h.  */
2657
_ACEOF
2658
cat confdefs.h >>conftest.$ac_ext
2659
cat >>conftest.$ac_ext <<_ACEOF
2660 19 jeremybenn
/* end confdefs.h.  */
2661
 
2662
int
2663
main ()
2664
{
2665
 
2666
  ;
2667
  return 0;
2668
}
2669
_ACEOF
2670
rm -f conftest.o conftest.obj
2671 121 jeremybenn
if { (ac_try="$ac_compile"
2672 19 jeremybenn
case "(($ac_try" in
2673
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674
  *) ac_try_echo=$ac_try;;
2675
esac
2676 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2677
$as_echo "$ac_try_echo") >&5
2678 19 jeremybenn
  (eval "$ac_compile") 2>&5
2679
  ac_status=$?
2680 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681
  (exit $ac_status); }; then
2682 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
2683
  test -f "$ac_file" || continue;
2684
  case $ac_file in
2685 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2686 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2687
       break;;
2688
  esac
2689
done
2690
else
2691 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2692 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2693
 
2694 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2695 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2697
See \`config.log' for more details." >&5
2698
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2699
See \`config.log' for more details." >&2;}
2700
   { (exit 1); exit 1; }; }; }
2701 19 jeremybenn
fi
2702 121 jeremybenn
 
2703 19 jeremybenn
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2704
fi
2705 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2706 82 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
2707 19 jeremybenn
OBJEXT=$ac_cv_objext
2708
ac_objext=$OBJEXT
2709 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2710 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2711 121 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2712 82 jeremybenn
  $as_echo_n "(cached) " >&6
2713 19 jeremybenn
else
2714 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
2715
/* confdefs.h.  */
2716
_ACEOF
2717
cat confdefs.h >>conftest.$ac_ext
2718
cat >>conftest.$ac_ext <<_ACEOF
2719 19 jeremybenn
/* end confdefs.h.  */
2720
 
2721
int
2722
main ()
2723
{
2724
#ifndef __GNUC__
2725
       choke me
2726
#endif
2727
 
2728
  ;
2729
  return 0;
2730
}
2731
_ACEOF
2732 121 jeremybenn
rm -f conftest.$ac_objext
2733
if { (ac_try="$ac_compile"
2734
case "(($ac_try" in
2735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736
  *) ac_try_echo=$ac_try;;
2737
esac
2738
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2739
$as_echo "$ac_try_echo") >&5
2740
  (eval "$ac_compile") 2>conftest.er1
2741
  ac_status=$?
2742
  grep -v '^ *+' conftest.er1 >conftest.err
2743
  rm -f conftest.er1
2744
  cat conftest.err >&5
2745
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746
  (exit $ac_status); } && {
2747
         test -z "$ac_c_werror_flag" ||
2748
         test ! -s conftest.err
2749
       } && test -s conftest.$ac_objext; then
2750 19 jeremybenn
  ac_compiler_gnu=yes
2751
else
2752 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2753
sed 's/^/| /' conftest.$ac_ext >&5
2754
 
2755
        ac_compiler_gnu=no
2756 19 jeremybenn
fi
2757 121 jeremybenn
 
2758 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2760
 
2761
fi
2762 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2763 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2764
if test $ac_compiler_gnu = yes; then
2765
  GCC=yes
2766
else
2767
  GCC=
2768
fi
2769 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
2770
ac_save_CFLAGS=$CFLAGS
2771 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2772 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2773 121 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
2774 82 jeremybenn
  $as_echo_n "(cached) " >&6
2775 19 jeremybenn
else
2776
  ac_save_c_werror_flag=$ac_c_werror_flag
2777
   ac_c_werror_flag=yes
2778
   ac_cv_prog_cc_g=no
2779
   CFLAGS="-g"
2780 121 jeremybenn
   cat >conftest.$ac_ext <<_ACEOF
2781
/* confdefs.h.  */
2782
_ACEOF
2783
cat confdefs.h >>conftest.$ac_ext
2784
cat >>conftest.$ac_ext <<_ACEOF
2785 19 jeremybenn
/* end confdefs.h.  */
2786
 
2787
int
2788
main ()
2789
{
2790
 
2791
  ;
2792
  return 0;
2793
}
2794
_ACEOF
2795 121 jeremybenn
rm -f conftest.$ac_objext
2796
if { (ac_try="$ac_compile"
2797
case "(($ac_try" in
2798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799
  *) ac_try_echo=$ac_try;;
2800
esac
2801
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2802
$as_echo "$ac_try_echo") >&5
2803
  (eval "$ac_compile") 2>conftest.er1
2804
  ac_status=$?
2805
  grep -v '^ *+' conftest.er1 >conftest.err
2806
  rm -f conftest.er1
2807
  cat conftest.err >&5
2808
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
  (exit $ac_status); } && {
2810
         test -z "$ac_c_werror_flag" ||
2811
         test ! -s conftest.err
2812
       } && test -s conftest.$ac_objext; then
2813 19 jeremybenn
  ac_cv_prog_cc_g=yes
2814
else
2815 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2816
sed 's/^/| /' conftest.$ac_ext >&5
2817
 
2818
        CFLAGS=""
2819
      cat >conftest.$ac_ext <<_ACEOF
2820
/* confdefs.h.  */
2821
_ACEOF
2822
cat confdefs.h >>conftest.$ac_ext
2823
cat >>conftest.$ac_ext <<_ACEOF
2824 19 jeremybenn
/* end confdefs.h.  */
2825
 
2826
int
2827
main ()
2828
{
2829
 
2830
  ;
2831
  return 0;
2832
}
2833
_ACEOF
2834 121 jeremybenn
rm -f conftest.$ac_objext
2835
if { (ac_try="$ac_compile"
2836
case "(($ac_try" in
2837
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838
  *) ac_try_echo=$ac_try;;
2839
esac
2840
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2841
$as_echo "$ac_try_echo") >&5
2842
  (eval "$ac_compile") 2>conftest.er1
2843
  ac_status=$?
2844
  grep -v '^ *+' conftest.er1 >conftest.err
2845
  rm -f conftest.er1
2846
  cat conftest.err >&5
2847
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
  (exit $ac_status); } && {
2849
         test -z "$ac_c_werror_flag" ||
2850
         test ! -s conftest.err
2851
       } && test -s conftest.$ac_objext; then
2852
  :
2853
else
2854
  $as_echo "$as_me: failed program was:" >&5
2855
sed 's/^/| /' conftest.$ac_ext >&5
2856 118 jeremybenn
 
2857 121 jeremybenn
        ac_c_werror_flag=$ac_save_c_werror_flag
2858 19 jeremybenn
         CFLAGS="-g"
2859 121 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
2860
/* confdefs.h.  */
2861
_ACEOF
2862
cat confdefs.h >>conftest.$ac_ext
2863
cat >>conftest.$ac_ext <<_ACEOF
2864 19 jeremybenn
/* end confdefs.h.  */
2865
 
2866
int
2867
main ()
2868
{
2869
 
2870
  ;
2871
  return 0;
2872
}
2873
_ACEOF
2874 121 jeremybenn
rm -f conftest.$ac_objext
2875
if { (ac_try="$ac_compile"
2876
case "(($ac_try" in
2877
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878
  *) ac_try_echo=$ac_try;;
2879
esac
2880
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2881
$as_echo "$ac_try_echo") >&5
2882
  (eval "$ac_compile") 2>conftest.er1
2883
  ac_status=$?
2884
  grep -v '^ *+' conftest.er1 >conftest.err
2885
  rm -f conftest.er1
2886
  cat conftest.err >&5
2887
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888
  (exit $ac_status); } && {
2889
         test -z "$ac_c_werror_flag" ||
2890
         test ! -s conftest.err
2891
       } && test -s conftest.$ac_objext; then
2892 19 jeremybenn
  ac_cv_prog_cc_g=yes
2893 121 jeremybenn
else
2894
  $as_echo "$as_me: failed program was:" >&5
2895
sed 's/^/| /' conftest.$ac_ext >&5
2896
 
2897
 
2898 19 jeremybenn
fi
2899 121 jeremybenn
 
2900 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901
fi
2902 121 jeremybenn
 
2903 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904
fi
2905 121 jeremybenn
 
2906 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907
   ac_c_werror_flag=$ac_save_c_werror_flag
2908
fi
2909 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2910 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
2911 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
2912
  CFLAGS=$ac_save_CFLAGS
2913
elif test $ac_cv_prog_cc_g = yes; then
2914
  if test "$GCC" = yes; then
2915
    CFLAGS="-g -O2"
2916
  else
2917
    CFLAGS="-g"
2918
  fi
2919
else
2920
  if test "$GCC" = yes; then
2921
    CFLAGS="-O2"
2922
  else
2923
    CFLAGS=
2924
  fi
2925
fi
2926 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2927 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2928 121 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
2929 82 jeremybenn
  $as_echo_n "(cached) " >&6
2930 19 jeremybenn
else
2931
  ac_cv_prog_cc_c89=no
2932
ac_save_CC=$CC
2933 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
2934
/* confdefs.h.  */
2935
_ACEOF
2936
cat confdefs.h >>conftest.$ac_ext
2937
cat >>conftest.$ac_ext <<_ACEOF
2938 19 jeremybenn
/* end confdefs.h.  */
2939
#include 
2940
#include 
2941
#include 
2942
#include 
2943
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2944
struct buf { int x; };
2945
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2946
static char *e (p, i)
2947
     char **p;
2948
     int i;
2949
{
2950
  return p[i];
2951
}
2952
static char *f (char * (*g) (char **, int), char **p, ...)
2953
{
2954
  char *s;
2955
  va_list v;
2956
  va_start (v,p);
2957
  s = g (p, va_arg (v,int));
2958
  va_end (v);
2959
  return s;
2960
}
2961
 
2962
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2963
   function prototypes and stuff, but not '\xHH' hex character constants.
2964
   These don't provoke an error unfortunately, instead are silently treated
2965
   as 'x'.  The following induces an error, until -std is added to get
2966
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2967
   array size at least.  It's necessary to write '\x00'==0 to get something
2968
   that's true only with -std.  */
2969
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2970
 
2971
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2972
   inside strings and character constants.  */
2973
#define FOO(x) 'x'
2974
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2975
 
2976
int test (int i, double x);
2977
struct s1 {int (*f) (int a);};
2978
struct s2 {int (*f) (double a);};
2979
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2980
int argc;
2981
char **argv;
2982
int
2983
main ()
2984
{
2985
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2986
  ;
2987
  return 0;
2988
}
2989
_ACEOF
2990
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2991
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2992
do
2993
  CC="$ac_save_CC $ac_arg"
2994 121 jeremybenn
  rm -f conftest.$ac_objext
2995
if { (ac_try="$ac_compile"
2996
case "(($ac_try" in
2997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998
  *) ac_try_echo=$ac_try;;
2999
esac
3000
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3001
$as_echo "$ac_try_echo") >&5
3002
  (eval "$ac_compile") 2>conftest.er1
3003
  ac_status=$?
3004
  grep -v '^ *+' conftest.er1 >conftest.err
3005
  rm -f conftest.er1
3006
  cat conftest.err >&5
3007
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008
  (exit $ac_status); } && {
3009
         test -z "$ac_c_werror_flag" ||
3010
         test ! -s conftest.err
3011
       } && test -s conftest.$ac_objext; then
3012 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3013 121 jeremybenn
else
3014
  $as_echo "$as_me: failed program was:" >&5
3015
sed 's/^/| /' conftest.$ac_ext >&5
3016
 
3017
 
3018 19 jeremybenn
fi
3019 121 jeremybenn
 
3020 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext
3021
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3022
done
3023
rm -f conftest.$ac_ext
3024
CC=$ac_save_CC
3025
 
3026
fi
3027
# AC_CACHE_VAL
3028
case "x$ac_cv_prog_cc_c89" in
3029
  x)
3030 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3031 82 jeremybenn
$as_echo "none needed" >&6; } ;;
3032 19 jeremybenn
  xno)
3033 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3034 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
3035 19 jeremybenn
  *)
3036
    CC="$CC $ac_cv_prog_cc_c89"
3037 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3038 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3039 19 jeremybenn
esac
3040
 
3041
 
3042
ac_ext=c
3043
ac_cpp='$CPP $CPPFLAGS'
3044
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
 
3048 91 jeremybenn
 
3049
ac_ext=c
3050
ac_cpp='$CPP $CPPFLAGS'
3051
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3055 91 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3056
# On Suns, sometimes $CPP names a directory.
3057
if test -n "$CPP" && test -d "$CPP"; then
3058
  CPP=
3059
fi
3060
if test -z "$CPP"; then
3061 121 jeremybenn
  if test "${ac_cv_prog_CPP+set}" = set; then
3062 82 jeremybenn
  $as_echo_n "(cached) " >&6
3063 19 jeremybenn
else
3064 91 jeremybenn
      # Double quotes because CPP needs to be expanded
3065
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3066
    do
3067
      ac_preproc_ok=false
3068
for ac_c_preproc_warn_flag in '' yes
3069 19 jeremybenn
do
3070 91 jeremybenn
  # Use a header file that comes with gcc, so configuring glibc
3071
  # with a fresh cross-compiler works.
3072
  # Prefer  to  if __STDC__ is defined, since
3073
  #  exists even on freestanding compilers.
3074
  # On the NeXT, cc -E runs the code through the compiler's parser,
3075
  # not just through cpp. "Syntax error" is here to catch this case.
3076 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3077
/* confdefs.h.  */
3078
_ACEOF
3079
cat confdefs.h >>conftest.$ac_ext
3080
cat >>conftest.$ac_ext <<_ACEOF
3081 91 jeremybenn
/* end confdefs.h.  */
3082
#ifdef __STDC__
3083
# include 
3084
#else
3085
# include 
3086
#endif
3087
                     Syntax error
3088
_ACEOF
3089 121 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3090
case "(($ac_try" in
3091
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092
  *) ac_try_echo=$ac_try;;
3093
esac
3094
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3095
$as_echo "$ac_try_echo") >&5
3096
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3097
  ac_status=$?
3098
  grep -v '^ *+' conftest.er1 >conftest.err
3099
  rm -f conftest.er1
3100
  cat conftest.err >&5
3101
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102
  (exit $ac_status); } >/dev/null && {
3103
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3104
         test ! -s conftest.err
3105
       }; then
3106
  :
3107
else
3108
  $as_echo "$as_me: failed program was:" >&5
3109
sed 's/^/| /' conftest.$ac_ext >&5
3110 118 jeremybenn
 
3111 91 jeremybenn
  # Broken: fails on valid input.
3112
continue
3113
fi
3114 121 jeremybenn
 
3115 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3116
 
3117
  # OK, works on sane cases.  Now check whether nonexistent headers
3118
  # can be detected and how.
3119 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3120
/* confdefs.h.  */
3121
_ACEOF
3122
cat confdefs.h >>conftest.$ac_ext
3123
cat >>conftest.$ac_ext <<_ACEOF
3124 91 jeremybenn
/* end confdefs.h.  */
3125
#include 
3126
_ACEOF
3127 121 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3128
case "(($ac_try" in
3129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130
  *) ac_try_echo=$ac_try;;
3131
esac
3132
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3133
$as_echo "$ac_try_echo") >&5
3134
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135
  ac_status=$?
3136
  grep -v '^ *+' conftest.er1 >conftest.err
3137
  rm -f conftest.er1
3138
  cat conftest.err >&5
3139
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140
  (exit $ac_status); } >/dev/null && {
3141
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142
         test ! -s conftest.err
3143
       }; then
3144 91 jeremybenn
  # Broken: success on invalid input.
3145
continue
3146 82 jeremybenn
else
3147 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3148
sed 's/^/| /' conftest.$ac_ext >&5
3149
 
3150 91 jeremybenn
  # Passes both tests.
3151
ac_preproc_ok=:
3152
break
3153 82 jeremybenn
fi
3154 121 jeremybenn
 
3155 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3156
 
3157
done
3158
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159
rm -f conftest.err conftest.$ac_ext
3160 121 jeremybenn
if $ac_preproc_ok; then
3161 91 jeremybenn
  break
3162 19 jeremybenn
fi
3163
 
3164 91 jeremybenn
    done
3165
    ac_cv_prog_CPP=$CPP
3166 19 jeremybenn
 
3167 91 jeremybenn
fi
3168
  CPP=$ac_cv_prog_CPP
3169
else
3170
  ac_cv_prog_CPP=$CPP
3171
fi
3172 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3173 91 jeremybenn
$as_echo "$CPP" >&6; }
3174
ac_preproc_ok=false
3175
for ac_c_preproc_warn_flag in '' yes
3176
do
3177
  # Use a header file that comes with gcc, so configuring glibc
3178
  # with a fresh cross-compiler works.
3179
  # Prefer  to  if __STDC__ is defined, since
3180
  #  exists even on freestanding compilers.
3181
  # On the NeXT, cc -E runs the code through the compiler's parser,
3182
  # not just through cpp. "Syntax error" is here to catch this case.
3183 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3184
/* confdefs.h.  */
3185
_ACEOF
3186
cat confdefs.h >>conftest.$ac_ext
3187
cat >>conftest.$ac_ext <<_ACEOF
3188 91 jeremybenn
/* end confdefs.h.  */
3189
#ifdef __STDC__
3190
# include 
3191
#else
3192
# include 
3193
#endif
3194
                     Syntax error
3195
_ACEOF
3196 121 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3197
case "(($ac_try" in
3198
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199
  *) ac_try_echo=$ac_try;;
3200
esac
3201
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202
$as_echo "$ac_try_echo") >&5
3203
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3204
  ac_status=$?
3205
  grep -v '^ *+' conftest.er1 >conftest.err
3206
  rm -f conftest.er1
3207
  cat conftest.err >&5
3208
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209
  (exit $ac_status); } >/dev/null && {
3210
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3211
         test ! -s conftest.err
3212
       }; then
3213
  :
3214
else
3215
  $as_echo "$as_me: failed program was:" >&5
3216
sed 's/^/| /' conftest.$ac_ext >&5
3217 118 jeremybenn
 
3218 91 jeremybenn
  # Broken: fails on valid input.
3219
continue
3220
fi
3221 121 jeremybenn
 
3222 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3223 82 jeremybenn
 
3224 91 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3225
  # can be detected and how.
3226 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3227
/* confdefs.h.  */
3228
_ACEOF
3229
cat confdefs.h >>conftest.$ac_ext
3230
cat >>conftest.$ac_ext <<_ACEOF
3231 91 jeremybenn
/* end confdefs.h.  */
3232
#include 
3233
_ACEOF
3234 121 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3235
case "(($ac_try" in
3236
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237
  *) ac_try_echo=$ac_try;;
3238
esac
3239
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3240
$as_echo "$ac_try_echo") >&5
3241
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242
  ac_status=$?
3243
  grep -v '^ *+' conftest.er1 >conftest.err
3244
  rm -f conftest.er1
3245
  cat conftest.err >&5
3246
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247
  (exit $ac_status); } >/dev/null && {
3248
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3249
         test ! -s conftest.err
3250
       }; then
3251 91 jeremybenn
  # Broken: success on invalid input.
3252
continue
3253
else
3254 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3255
sed 's/^/| /' conftest.$ac_ext >&5
3256
 
3257 91 jeremybenn
  # Passes both tests.
3258
ac_preproc_ok=:
3259
break
3260
fi
3261 121 jeremybenn
 
3262 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3263 82 jeremybenn
 
3264 91 jeremybenn
done
3265
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266
rm -f conftest.err conftest.$ac_ext
3267 121 jeremybenn
if $ac_preproc_ok; then
3268
  :
3269 91 jeremybenn
else
3270 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3271 91 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3273
See \`config.log' for more details." >&5
3274
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3275
See \`config.log' for more details." >&2;}
3276
   { (exit 1); exit 1; }; }; }
3277 91 jeremybenn
fi
3278 82 jeremybenn
 
3279 91 jeremybenn
ac_ext=c
3280
ac_cpp='$CPP $CPPFLAGS'
3281
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 82 jeremybenn
 
3285
 
3286 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3287 82 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3288 121 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then
3289 82 jeremybenn
  $as_echo_n "(cached) " >&6
3290 19 jeremybenn
else
3291 82 jeremybenn
  if test -z "$GREP"; then
3292 19 jeremybenn
  ac_path_GREP_found=false
3293 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3294
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3296
do
3297
  IFS=$as_save_IFS
3298
  test -z "$as_dir" && as_dir=.
3299 121 jeremybenn
  for ac_prog in grep ggrep; do
3300 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3301
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3302
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3303
# Check for GNU ac_path_GREP and select it if it is found.
3304 19 jeremybenn
  # Check for GNU $ac_path_GREP
3305
case `"$ac_path_GREP" --version 2>&1` in
3306
*GNU*)
3307
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3308
*)
3309
  ac_count=0
3310 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3311 19 jeremybenn
  while :
3312
  do
3313
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3314
    mv "conftest.tmp" "conftest.in"
3315
    cp "conftest.in" "conftest.nl"
3316 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3317 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3318
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3319 121 jeremybenn
    ac_count=`expr $ac_count + 1`
3320 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3321
      # Best one so far, save it but keep looking for a better one
3322
      ac_cv_path_GREP="$ac_path_GREP"
3323
      ac_path_GREP_max=$ac_count
3324
    fi
3325
    # 10*(2^10) chars as input seems more than enough
3326
    test $ac_count -gt 10 && break
3327
  done
3328
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3329
esac
3330
 
3331 82 jeremybenn
      $ac_path_GREP_found && break 3
3332
    done
3333 19 jeremybenn
  done
3334 121 jeremybenn
done
3335 19 jeremybenn
IFS=$as_save_IFS
3336 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3337 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3338
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3339
   { (exit 1); exit 1; }; }
3340 82 jeremybenn
  fi
3341 19 jeremybenn
else
3342
  ac_cv_path_GREP=$GREP
3343
fi
3344
 
3345
fi
3346 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3347 82 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3348 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3349
 
3350
 
3351 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3352 82 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3353 121 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then
3354 82 jeremybenn
  $as_echo_n "(cached) " >&6
3355 19 jeremybenn
else
3356
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3357
   then ac_cv_path_EGREP="$GREP -E"
3358
   else
3359 82 jeremybenn
     if test -z "$EGREP"; then
3360 19 jeremybenn
  ac_path_EGREP_found=false
3361 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3362
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3364
do
3365
  IFS=$as_save_IFS
3366
  test -z "$as_dir" && as_dir=.
3367 121 jeremybenn
  for ac_prog in egrep; do
3368 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3369
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3370
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3371
# Check for GNU ac_path_EGREP and select it if it is found.
3372 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3373
case `"$ac_path_EGREP" --version 2>&1` in
3374
*GNU*)
3375
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3376
*)
3377
  ac_count=0
3378 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3379 19 jeremybenn
  while :
3380
  do
3381
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3382
    mv "conftest.tmp" "conftest.in"
3383
    cp "conftest.in" "conftest.nl"
3384 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3385 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3386
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3387 121 jeremybenn
    ac_count=`expr $ac_count + 1`
3388 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3389
      # Best one so far, save it but keep looking for a better one
3390
      ac_cv_path_EGREP="$ac_path_EGREP"
3391
      ac_path_EGREP_max=$ac_count
3392
    fi
3393
    # 10*(2^10) chars as input seems more than enough
3394
    test $ac_count -gt 10 && break
3395
  done
3396
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3397
esac
3398
 
3399 82 jeremybenn
      $ac_path_EGREP_found && break 3
3400
    done
3401 19 jeremybenn
  done
3402 121 jeremybenn
done
3403 19 jeremybenn
IFS=$as_save_IFS
3404 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3405 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3406
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3407
   { (exit 1); exit 1; }; }
3408 82 jeremybenn
  fi
3409
else
3410
  ac_cv_path_EGREP=$EGREP
3411 19 jeremybenn
fi
3412
 
3413 82 jeremybenn
   fi
3414 19 jeremybenn
fi
3415 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3416 82 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3417
 EGREP="$ac_cv_path_EGREP"
3418 19 jeremybenn
 
3419 82 jeremybenn
 
3420 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3421 91 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
3422 121 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then
3423 91 jeremybenn
  $as_echo_n "(cached) " >&6
3424
else
3425 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3426
/* confdefs.h.  */
3427
_ACEOF
3428
cat confdefs.h >>conftest.$ac_ext
3429
cat >>conftest.$ac_ext <<_ACEOF
3430 91 jeremybenn
/* end confdefs.h.  */
3431
#include 
3432
#include 
3433
#include 
3434
#include 
3435
 
3436
int
3437
main ()
3438
{
3439
 
3440
  ;
3441
  return 0;
3442
}
3443
_ACEOF
3444 121 jeremybenn
rm -f conftest.$ac_objext
3445
if { (ac_try="$ac_compile"
3446
case "(($ac_try" in
3447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448
  *) ac_try_echo=$ac_try;;
3449
esac
3450
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3451
$as_echo "$ac_try_echo") >&5
3452
  (eval "$ac_compile") 2>conftest.er1
3453
  ac_status=$?
3454
  grep -v '^ *+' conftest.er1 >conftest.err
3455
  rm -f conftest.er1
3456
  cat conftest.err >&5
3457
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458
  (exit $ac_status); } && {
3459
         test -z "$ac_c_werror_flag" ||
3460
         test ! -s conftest.err
3461
       } && test -s conftest.$ac_objext; then
3462 91 jeremybenn
  ac_cv_header_stdc=yes
3463
else
3464 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3465
sed 's/^/| /' conftest.$ac_ext >&5
3466
 
3467
        ac_cv_header_stdc=no
3468 91 jeremybenn
fi
3469 121 jeremybenn
 
3470 91 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471
 
3472
if test $ac_cv_header_stdc = yes; then
3473
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3474 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3475
/* confdefs.h.  */
3476
_ACEOF
3477
cat confdefs.h >>conftest.$ac_ext
3478
cat >>conftest.$ac_ext <<_ACEOF
3479 91 jeremybenn
/* end confdefs.h.  */
3480
#include 
3481
 
3482
_ACEOF
3483
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3484 121 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then
3485
  :
3486 91 jeremybenn
else
3487
  ac_cv_header_stdc=no
3488
fi
3489
rm -f conftest*
3490
 
3491
fi
3492
 
3493
if test $ac_cv_header_stdc = yes; then
3494
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3495 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3496
/* confdefs.h.  */
3497
_ACEOF
3498
cat confdefs.h >>conftest.$ac_ext
3499
cat >>conftest.$ac_ext <<_ACEOF
3500 91 jeremybenn
/* end confdefs.h.  */
3501
#include 
3502
 
3503
_ACEOF
3504
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3505 121 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then
3506
  :
3507 91 jeremybenn
else
3508
  ac_cv_header_stdc=no
3509
fi
3510
rm -f conftest*
3511
 
3512
fi
3513
 
3514
if test $ac_cv_header_stdc = yes; then
3515
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3516 121 jeremybenn
  if test "$cross_compiling" = yes; then
3517 91 jeremybenn
  :
3518
else
3519 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3520
/* confdefs.h.  */
3521
_ACEOF
3522
cat confdefs.h >>conftest.$ac_ext
3523
cat >>conftest.$ac_ext <<_ACEOF
3524 91 jeremybenn
/* end confdefs.h.  */
3525
#include 
3526
#include 
3527
#if ((' ' & 0x0FF) == 0x020)
3528
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3529
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3530
#else
3531
# define ISLOWER(c) \
3532
                   (('a' <= (c) && (c) <= 'i') \
3533
                     || ('j' <= (c) && (c) <= 'r') \
3534
                     || ('s' <= (c) && (c) <= 'z'))
3535
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3536
#endif
3537
 
3538
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3539
int
3540
main ()
3541
{
3542
  int i;
3543
  for (i = 0; i < 256; i++)
3544
    if (XOR (islower (i), ISLOWER (i))
3545
        || toupper (i) != TOUPPER (i))
3546
      return 2;
3547
  return 0;
3548
}
3549
_ACEOF
3550 121 jeremybenn
rm -f conftest$ac_exeext
3551
if { (ac_try="$ac_link"
3552
case "(($ac_try" in
3553
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554
  *) ac_try_echo=$ac_try;;
3555
esac
3556
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557
$as_echo "$ac_try_echo") >&5
3558
  (eval "$ac_link") 2>&5
3559
  ac_status=$?
3560
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3562
  { (case "(($ac_try" in
3563
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564
  *) ac_try_echo=$ac_try;;
3565
esac
3566
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3567
$as_echo "$ac_try_echo") >&5
3568
  (eval "$ac_try") 2>&5
3569
  ac_status=$?
3570
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571
  (exit $ac_status); }; }; then
3572
  :
3573
else
3574
  $as_echo "$as_me: program exited with status $ac_status" >&5
3575
$as_echo "$as_me: failed program was:" >&5
3576
sed 's/^/| /' conftest.$ac_ext >&5
3577 118 jeremybenn
 
3578 121 jeremybenn
( exit $ac_status )
3579
ac_cv_header_stdc=no
3580 91 jeremybenn
fi
3581 121 jeremybenn
rm -rf conftest.dSYM
3582
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3583 91 jeremybenn
fi
3584
 
3585 121 jeremybenn
 
3586 91 jeremybenn
fi
3587
fi
3588 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3589 91 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
3590
if test $ac_cv_header_stdc = yes; then
3591
 
3592 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
3593
#define STDC_HEADERS 1
3594
_ACEOF
3595 91 jeremybenn
 
3596
fi
3597
 
3598
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3599 121 jeremybenn
 
3600
 
3601
 
3602
 
3603
 
3604
 
3605
 
3606
 
3607
 
3608 91 jeremybenn
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3609
                  inttypes.h stdint.h unistd.h
3610 121 jeremybenn
do
3611
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3612
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3613
$as_echo_n "checking for $ac_header... " >&6; }
3614
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3615
  $as_echo_n "(cached) " >&6
3616
else
3617
  cat >conftest.$ac_ext <<_ACEOF
3618
/* confdefs.h.  */
3619
_ACEOF
3620
cat confdefs.h >>conftest.$ac_ext
3621
cat >>conftest.$ac_ext <<_ACEOF
3622
/* end confdefs.h.  */
3623
$ac_includes_default
3624
 
3625
#include <$ac_header>
3626
_ACEOF
3627
rm -f conftest.$ac_objext
3628
if { (ac_try="$ac_compile"
3629
case "(($ac_try" in
3630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631
  *) ac_try_echo=$ac_try;;
3632
esac
3633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3634
$as_echo "$ac_try_echo") >&5
3635
  (eval "$ac_compile") 2>conftest.er1
3636
  ac_status=$?
3637
  grep -v '^ *+' conftest.er1 >conftest.err
3638
  rm -f conftest.er1
3639
  cat conftest.err >&5
3640
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641
  (exit $ac_status); } && {
3642
         test -z "$ac_c_werror_flag" ||
3643
         test ! -s conftest.err
3644
       } && test -s conftest.$ac_objext; then
3645
  eval "$as_ac_Header=yes"
3646
else
3647
  $as_echo "$as_me: failed program was:" >&5
3648
sed 's/^/| /' conftest.$ac_ext >&5
3649
 
3650
        eval "$as_ac_Header=no"
3651
fi
3652
 
3653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654
fi
3655
ac_res=`eval 'as_val=${'$as_ac_Header'}
3656
                 $as_echo "$as_val"'`
3657
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3658
$as_echo "$ac_res" >&6; }
3659
as_val=`eval 'as_val=${'$as_ac_Header'}
3660
                 $as_echo "$as_val"'`
3661
   if test "x$as_val" = x""yes; then
3662 91 jeremybenn
  cat >>confdefs.h <<_ACEOF
3663
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3664
_ACEOF
3665
 
3666
fi
3667
 
3668
done
3669
 
3670
 
3671
 
3672 121 jeremybenn
  if test "${ac_cv_header_minix_config_h+set}" = set; then
3673
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3674
$as_echo_n "checking for minix/config.h... " >&6; }
3675
if test "${ac_cv_header_minix_config_h+set}" = set; then
3676
  $as_echo_n "(cached) " >&6
3677
fi
3678
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3679
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3680
else
3681
  # Is the header compilable?
3682
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3683
$as_echo_n "checking minix/config.h usability... " >&6; }
3684
cat >conftest.$ac_ext <<_ACEOF
3685
/* confdefs.h.  */
3686
_ACEOF
3687
cat confdefs.h >>conftest.$ac_ext
3688
cat >>conftest.$ac_ext <<_ACEOF
3689
/* end confdefs.h.  */
3690
$ac_includes_default
3691
#include 
3692
_ACEOF
3693
rm -f conftest.$ac_objext
3694
if { (ac_try="$ac_compile"
3695
case "(($ac_try" in
3696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697
  *) ac_try_echo=$ac_try;;
3698
esac
3699
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3700
$as_echo "$ac_try_echo") >&5
3701
  (eval "$ac_compile") 2>conftest.er1
3702
  ac_status=$?
3703
  grep -v '^ *+' conftest.er1 >conftest.err
3704
  rm -f conftest.er1
3705
  cat conftest.err >&5
3706
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707
  (exit $ac_status); } && {
3708
         test -z "$ac_c_werror_flag" ||
3709
         test ! -s conftest.err
3710
       } && test -s conftest.$ac_objext; then
3711
  ac_header_compiler=yes
3712
else
3713
  $as_echo "$as_me: failed program was:" >&5
3714
sed 's/^/| /' conftest.$ac_ext >&5
3715
 
3716
        ac_header_compiler=no
3717
fi
3718
 
3719
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3721
$as_echo "$ac_header_compiler" >&6; }
3722
 
3723
# Is the header present?
3724
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3725
$as_echo_n "checking minix/config.h presence... " >&6; }
3726
cat >conftest.$ac_ext <<_ACEOF
3727
/* confdefs.h.  */
3728
_ACEOF
3729
cat confdefs.h >>conftest.$ac_ext
3730
cat >>conftest.$ac_ext <<_ACEOF
3731
/* end confdefs.h.  */
3732
#include 
3733
_ACEOF
3734
if { (ac_try="$ac_cpp conftest.$ac_ext"
3735
case "(($ac_try" in
3736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737
  *) ac_try_echo=$ac_try;;
3738
esac
3739
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3740
$as_echo "$ac_try_echo") >&5
3741
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3742
  ac_status=$?
3743
  grep -v '^ *+' conftest.er1 >conftest.err
3744
  rm -f conftest.er1
3745
  cat conftest.err >&5
3746
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
  (exit $ac_status); } >/dev/null && {
3748
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3749
         test ! -s conftest.err
3750
       }; then
3751
  ac_header_preproc=yes
3752
else
3753
  $as_echo "$as_me: failed program was:" >&5
3754
sed 's/^/| /' conftest.$ac_ext >&5
3755
 
3756
  ac_header_preproc=no
3757
fi
3758
 
3759
rm -f conftest.err conftest.$ac_ext
3760
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3761
$as_echo "$ac_header_preproc" >&6; }
3762
 
3763
# So?  What about this header?
3764
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3765
  yes:no: )
3766
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3767
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3768
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3769
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3770
    ac_header_preproc=yes
3771
    ;;
3772
  no:yes:* )
3773
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3774
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3775
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3776
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3777
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3778
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3779
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3780
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3781
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3782
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3783
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3784
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3785
    ( cat <<\_ASBOX
3786
## ------------------------------------- ##
3787
## Report this to openrisc@opencores.org ##
3788
## ------------------------------------- ##
3789
_ASBOX
3790
     ) | sed "s/^/$as_me: WARNING:     /" >&2
3791
    ;;
3792
esac
3793
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3794
$as_echo_n "checking for minix/config.h... " >&6; }
3795
if test "${ac_cv_header_minix_config_h+set}" = set; then
3796
  $as_echo_n "(cached) " >&6
3797
else
3798
  ac_cv_header_minix_config_h=$ac_header_preproc
3799
fi
3800
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3801
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3802
 
3803
fi
3804
if test "x$ac_cv_header_minix_config_h" = x""yes; then
3805 91 jeremybenn
  MINIX=yes
3806
else
3807
  MINIX=
3808
fi
3809
 
3810
 
3811
  if test "$MINIX" = yes; then
3812
 
3813 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
3814
#define _POSIX_SOURCE 1
3815
_ACEOF
3816 91 jeremybenn
 
3817
 
3818 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
3819
#define _POSIX_1_SOURCE 2
3820
_ACEOF
3821 91 jeremybenn
 
3822
 
3823 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
3824
#define _MINIX 1
3825
_ACEOF
3826 91 jeremybenn
 
3827
  fi
3828
 
3829
 
3830 121 jeremybenn
 
3831
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3832 91 jeremybenn
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3833 121 jeremybenn
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3834 91 jeremybenn
  $as_echo_n "(cached) " >&6
3835
else
3836 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3837
/* confdefs.h.  */
3838
_ACEOF
3839
cat confdefs.h >>conftest.$ac_ext
3840
cat >>conftest.$ac_ext <<_ACEOF
3841 91 jeremybenn
/* end confdefs.h.  */
3842
 
3843
#         define __EXTENSIONS__ 1
3844
          $ac_includes_default
3845
int
3846
main ()
3847
{
3848
 
3849
  ;
3850
  return 0;
3851
}
3852
_ACEOF
3853 121 jeremybenn
rm -f conftest.$ac_objext
3854
if { (ac_try="$ac_compile"
3855
case "(($ac_try" in
3856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857
  *) ac_try_echo=$ac_try;;
3858
esac
3859
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3860
$as_echo "$ac_try_echo") >&5
3861
  (eval "$ac_compile") 2>conftest.er1
3862
  ac_status=$?
3863
  grep -v '^ *+' conftest.er1 >conftest.err
3864
  rm -f conftest.er1
3865
  cat conftest.err >&5
3866
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867
  (exit $ac_status); } && {
3868
         test -z "$ac_c_werror_flag" ||
3869
         test ! -s conftest.err
3870
       } && test -s conftest.$ac_objext; then
3871 91 jeremybenn
  ac_cv_safe_to_define___extensions__=yes
3872
else
3873 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3874
sed 's/^/| /' conftest.$ac_ext >&5
3875
 
3876
        ac_cv_safe_to_define___extensions__=no
3877 91 jeremybenn
fi
3878 121 jeremybenn
 
3879 91 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880
fi
3881 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3882 91 jeremybenn
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3883
  test $ac_cv_safe_to_define___extensions__ = yes &&
3884 121 jeremybenn
    cat >>confdefs.h <<\_ACEOF
3885
#define __EXTENSIONS__ 1
3886
_ACEOF
3887 91 jeremybenn
 
3888 121 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3889
#define _ALL_SOURCE 1
3890
_ACEOF
3891 91 jeremybenn
 
3892 121 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3893
#define _GNU_SOURCE 1
3894
_ACEOF
3895 91 jeremybenn
 
3896 121 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3897
#define _POSIX_PTHREAD_SEMANTICS 1
3898
_ACEOF
3899 91 jeremybenn
 
3900 121 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3901
#define _TANDEM_SOURCE 1
3902
_ACEOF
3903 91 jeremybenn
 
3904
 
3905
 
3906
# Check we have the execute source file present for sanity. Specify a separate
3907
# config for the testsuite OR1K specific programs, since we'll need different
3908
# tool chain there (the OpenRISC one, rather than the native one).
3909
 
3910
ac_aux_dir=
3911
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3912 121 jeremybenn
  if test -f "$ac_dir/install-sh"; then
3913
    ac_aux_dir=$ac_dir
3914
    ac_install_sh="$ac_aux_dir/install-sh -c"
3915
    break
3916
  elif test -f "$ac_dir/install.sh"; then
3917
    ac_aux_dir=$ac_dir
3918
    ac_install_sh="$ac_aux_dir/install.sh -c"
3919
    break
3920
  elif test -f "$ac_dir/shtool"; then
3921
    ac_aux_dir=$ac_dir
3922
    ac_install_sh="$ac_aux_dir/shtool install -c"
3923
    break
3924
  fi
3925 91 jeremybenn
done
3926
if test -z "$ac_aux_dir"; then
3927 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3928
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3929
   { (exit 1); exit 1; }; }
3930 91 jeremybenn
fi
3931
 
3932
# These three variables are undocumented and unsupported,
3933
# and are intended to be withdrawn in a future Autoconf release.
3934
# They can cause serious problems if a builder's source tree is in a directory
3935
# whose full name contains unusual characters.
3936
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3937
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3938
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3939
 
3940
 
3941
 
3942
 
3943
subdirs="$subdirs testsuite/test-code-or1k"
3944
 
3945
 
3946
# Make sure we can run config.sub.
3947
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3948 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3949
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3950
   { (exit 1); exit 1; }; }
3951 91 jeremybenn
 
3952 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3953 91 jeremybenn
$as_echo_n "checking build system type... " >&6; }
3954 121 jeremybenn
if test "${ac_cv_build+set}" = set; then
3955 91 jeremybenn
  $as_echo_n "(cached) " >&6
3956
else
3957
  ac_build_alias=$build_alias
3958
test "x$ac_build_alias" = x &&
3959
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3960
test "x$ac_build_alias" = x &&
3961 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3962
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3963
   { (exit 1); exit 1; }; }
3964 91 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3965 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3966
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3967
   { (exit 1); exit 1; }; }
3968 91 jeremybenn
 
3969
fi
3970 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3971 91 jeremybenn
$as_echo "$ac_cv_build" >&6; }
3972
case $ac_cv_build in
3973
*-*-*) ;;
3974 121 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3975
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3976
   { (exit 1); exit 1; }; };;
3977 91 jeremybenn
esac
3978
build=$ac_cv_build
3979
ac_save_IFS=$IFS; IFS='-'
3980
set x $ac_cv_build
3981
shift
3982
build_cpu=$1
3983
build_vendor=$2
3984
shift; shift
3985
# Remember, the first character of IFS is used to create $*,
3986
# except with old shells:
3987
build_os=$*
3988
IFS=$ac_save_IFS
3989
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3990
 
3991
 
3992 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3993 91 jeremybenn
$as_echo_n "checking host system type... " >&6; }
3994 121 jeremybenn
if test "${ac_cv_host+set}" = set; then
3995 91 jeremybenn
  $as_echo_n "(cached) " >&6
3996
else
3997
  if test "x$host_alias" = x; then
3998
  ac_cv_host=$ac_cv_build
3999
else
4000
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4001 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4002
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4003
   { (exit 1); exit 1; }; }
4004 91 jeremybenn
fi
4005
 
4006
fi
4007 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4008 91 jeremybenn
$as_echo "$ac_cv_host" >&6; }
4009
case $ac_cv_host in
4010
*-*-*) ;;
4011 121 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4012
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4013
   { (exit 1); exit 1; }; };;
4014 91 jeremybenn
esac
4015
host=$ac_cv_host
4016
ac_save_IFS=$IFS; IFS='-'
4017
set x $ac_cv_host
4018
shift
4019
host_cpu=$1
4020
host_vendor=$2
4021
shift; shift
4022
# Remember, the first character of IFS is used to create $*,
4023
# except with old shells:
4024
host_os=$*
4025
IFS=$ac_save_IFS
4026
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4027
 
4028
 
4029 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
4030 91 jeremybenn
$as_echo_n "checking target system type... " >&6; }
4031 121 jeremybenn
if test "${ac_cv_target+set}" = set; then
4032 91 jeremybenn
  $as_echo_n "(cached) " >&6
4033
else
4034
  if test "x$target_alias" = x; then
4035
  ac_cv_target=$ac_cv_host
4036
else
4037
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4038 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4039
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4040
   { (exit 1); exit 1; }; }
4041 91 jeremybenn
fi
4042
 
4043
fi
4044 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4045 91 jeremybenn
$as_echo "$ac_cv_target" >&6; }
4046
case $ac_cv_target in
4047
*-*-*) ;;
4048 121 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4049
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
4050
   { (exit 1); exit 1; }; };;
4051 91 jeremybenn
esac
4052
target=$ac_cv_target
4053
ac_save_IFS=$IFS; IFS='-'
4054
set x $ac_cv_target
4055
shift
4056
target_cpu=$1
4057
target_vendor=$2
4058
shift; shift
4059
# Remember, the first character of IFS is used to create $*,
4060
# except with old shells:
4061
target_os=$*
4062
IFS=$ac_save_IFS
4063
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4064
 
4065
 
4066
# The aliases save the names the user supplied, while $host etc.
4067
# will get canonicalized.
4068
test -n "$target_alias" &&
4069
  test "$program_prefix$program_suffix$program_transform_name" = \
4070
    NONENONEs,x,x, &&
4071
  program_prefix=${target_alias}-
4072
case `pwd` in
4073
  *\ * | *\     *)
4074 121 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4075 91 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4076
esac
4077
 
4078
 
4079
 
4080 96 jeremybenn
macro_version='2.2.6b'
4081
macro_revision='1.3017'
4082 91 jeremybenn
 
4083
 
4084
 
4085
 
4086
 
4087
 
4088
 
4089
 
4090
 
4091
 
4092
 
4093
 
4094
 
4095
ltmain="$ac_aux_dir/ltmain.sh"
4096
 
4097 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4098 91 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4099 121 jeremybenn
if test "${ac_cv_path_SED+set}" = set; then
4100 91 jeremybenn
  $as_echo_n "(cached) " >&6
4101
else
4102
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4103
     for ac_i in 1 2 3 4 5 6 7; do
4104
       ac_script="$ac_script$as_nl$ac_script"
4105
     done
4106
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4107 121 jeremybenn
     $as_unset ac_script || ac_script=
4108 91 jeremybenn
     if test -z "$SED"; then
4109
  ac_path_SED_found=false
4110
  # Loop through the user's path and test for each of PROGNAME-LIST
4111
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112
for as_dir in $PATH
4113
do
4114
  IFS=$as_save_IFS
4115
  test -z "$as_dir" && as_dir=.
4116 121 jeremybenn
  for ac_prog in sed gsed; do
4117 91 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4118
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4119
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4120
# Check for GNU ac_path_SED and select it if it is found.
4121
  # Check for GNU $ac_path_SED
4122
case `"$ac_path_SED" --version 2>&1` in
4123
*GNU*)
4124
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4125
*)
4126
  ac_count=0
4127
  $as_echo_n 0123456789 >"conftest.in"
4128
  while :
4129
  do
4130
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4131
    mv "conftest.tmp" "conftest.in"
4132
    cp "conftest.in" "conftest.nl"
4133
    $as_echo '' >> "conftest.nl"
4134
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4135
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4136 121 jeremybenn
    ac_count=`expr $ac_count + 1`
4137 91 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4138
      # Best one so far, save it but keep looking for a better one
4139
      ac_cv_path_SED="$ac_path_SED"
4140
      ac_path_SED_max=$ac_count
4141
    fi
4142
    # 10*(2^10) chars as input seems more than enough
4143
    test $ac_count -gt 10 && break
4144
  done
4145
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146
esac
4147
 
4148
      $ac_path_SED_found && break 3
4149
    done
4150
  done
4151 121 jeremybenn
done
4152 91 jeremybenn
IFS=$as_save_IFS
4153
  if test -z "$ac_cv_path_SED"; then
4154 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4155
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4156
   { (exit 1); exit 1; }; }
4157 91 jeremybenn
  fi
4158
else
4159
  ac_cv_path_SED=$SED
4160
fi
4161
 
4162
fi
4163 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4164 91 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
4165
 SED="$ac_cv_path_SED"
4166
  rm -f conftest.sed
4167
 
4168
test -z "$SED" && SED=sed
4169
Xsed="$SED -e 1s/^X//"
4170
 
4171
 
4172
 
4173
 
4174
 
4175
 
4176
 
4177
 
4178
 
4179
 
4180
 
4181 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4182 82 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
4183 121 jeremybenn
if test "${ac_cv_path_FGREP+set}" = set; then
4184 82 jeremybenn
  $as_echo_n "(cached) " >&6
4185 19 jeremybenn
else
4186 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4187
   then ac_cv_path_FGREP="$GREP -F"
4188
   else
4189
     if test -z "$FGREP"; then
4190
  ac_path_FGREP_found=false
4191
  # Loop through the user's path and test for each of PROGNAME-LIST
4192
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4194
do
4195
  IFS=$as_save_IFS
4196
  test -z "$as_dir" && as_dir=.
4197 121 jeremybenn
  for ac_prog in fgrep; do
4198 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4199
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4200
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4201
# Check for GNU ac_path_FGREP and select it if it is found.
4202
  # Check for GNU $ac_path_FGREP
4203
case `"$ac_path_FGREP" --version 2>&1` in
4204
*GNU*)
4205
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4206
*)
4207
  ac_count=0
4208
  $as_echo_n 0123456789 >"conftest.in"
4209
  while :
4210
  do
4211
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4212
    mv "conftest.tmp" "conftest.in"
4213
    cp "conftest.in" "conftest.nl"
4214
    $as_echo 'FGREP' >> "conftest.nl"
4215
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4216
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4217 121 jeremybenn
    ac_count=`expr $ac_count + 1`
4218 82 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4219
      # Best one so far, save it but keep looking for a better one
4220
      ac_cv_path_FGREP="$ac_path_FGREP"
4221
      ac_path_FGREP_max=$ac_count
4222
    fi
4223
    # 10*(2^10) chars as input seems more than enough
4224
    test $ac_count -gt 10 && break
4225
  done
4226
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227
esac
4228
 
4229
      $ac_path_FGREP_found && break 3
4230
    done
4231
  done
4232 121 jeremybenn
done
4233 82 jeremybenn
IFS=$as_save_IFS
4234
  if test -z "$ac_cv_path_FGREP"; then
4235 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4236
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4237
   { (exit 1); exit 1; }; }
4238 82 jeremybenn
  fi
4239
else
4240
  ac_cv_path_FGREP=$FGREP
4241 19 jeremybenn
fi
4242
 
4243
   fi
4244
fi
4245 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4246 82 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
4247
 FGREP="$ac_cv_path_FGREP"
4248 19 jeremybenn
 
4249
 
4250 82 jeremybenn
test -z "$GREP" && GREP=grep
4251 19 jeremybenn
 
4252 82 jeremybenn
 
4253
 
4254
 
4255
 
4256
 
4257
 
4258
 
4259
 
4260
 
4261
 
4262
 
4263
 
4264
 
4265
 
4266
 
4267
 
4268
 
4269
 
4270 19 jeremybenn
# Check whether --with-gnu-ld was given.
4271 121 jeremybenn
if test "${with_gnu_ld+set}" = set; then
4272 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4273
else
4274
  with_gnu_ld=no
4275
fi
4276
 
4277
ac_prog=ld
4278
if test "$GCC" = yes; then
4279
  # Check if gcc -print-prog-name=ld gives a path.
4280 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4281 82 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
4282 19 jeremybenn
  case $host in
4283
  *-*-mingw*)
4284
    # gcc leaves a trailing carriage return which upsets mingw
4285
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4286
  *)
4287
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4288
  esac
4289
  case $ac_prog in
4290
    # Accept absolute paths.
4291
    [\\/]* | ?:[\\/]*)
4292
      re_direlt='/[^/][^/]*/\.\./'
4293
      # Canonicalize the pathname of ld
4294 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4295
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4296
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4297 19 jeremybenn
      done
4298
      test -z "$LD" && LD="$ac_prog"
4299
      ;;
4300
  "")
4301
    # If it fails, then pretend we aren't using GCC.
4302
    ac_prog=ld
4303
    ;;
4304
  *)
4305
    # If it is relative, then search for the first ld in PATH.
4306
    with_gnu_ld=unknown
4307
    ;;
4308
  esac
4309
elif test "$with_gnu_ld" = yes; then
4310 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4311 82 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
4312 19 jeremybenn
else
4313 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4314 82 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
4315 19 jeremybenn
fi
4316 121 jeremybenn
if test "${lt_cv_path_LD+set}" = set; then
4317 82 jeremybenn
  $as_echo_n "(cached) " >&6
4318 19 jeremybenn
else
4319
  if test -z "$LD"; then
4320
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4321
  for ac_dir in $PATH; do
4322
    IFS="$lt_save_ifs"
4323
    test -z "$ac_dir" && ac_dir=.
4324
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4325
      lt_cv_path_LD="$ac_dir/$ac_prog"
4326
      # Check to see if the program is GNU ld.  I'd rather use --version,
4327
      # but apparently some variants of GNU ld only accept -v.
4328
      # Break only if it was the GNU/non-GNU ld that we prefer.
4329
      case `"$lt_cv_path_LD" -v 2>&1 
4330
      *GNU* | *'with BFD'*)
4331
        test "$with_gnu_ld" != no && break
4332
        ;;
4333
      *)
4334
        test "$with_gnu_ld" != yes && break
4335
        ;;
4336
      esac
4337
    fi
4338
  done
4339
  IFS="$lt_save_ifs"
4340
else
4341
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4342
fi
4343
fi
4344
 
4345
LD="$lt_cv_path_LD"
4346
if test -n "$LD"; then
4347 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4348 82 jeremybenn
$as_echo "$LD" >&6; }
4349 19 jeremybenn
else
4350 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4351 82 jeremybenn
$as_echo "no" >&6; }
4352 19 jeremybenn
fi
4353 121 jeremybenn
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4354
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4355
   { (exit 1); exit 1; }; }
4356
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4357 82 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4358 121 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4359 82 jeremybenn
  $as_echo_n "(cached) " >&6
4360 19 jeremybenn
else
4361
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4362
case `$LD -v 2>&1 
4363
*GNU* | *'with BFD'*)
4364
  lt_cv_prog_gnu_ld=yes
4365
  ;;
4366
*)
4367
  lt_cv_prog_gnu_ld=no
4368
  ;;
4369
esac
4370
fi
4371 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4372 82 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4373 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4374
 
4375
 
4376
 
4377 82 jeremybenn
 
4378
 
4379
 
4380
 
4381
 
4382
 
4383 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4384 82 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4385 121 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then
4386 82 jeremybenn
  $as_echo_n "(cached) " >&6
4387 19 jeremybenn
else
4388
  if test -n "$NM"; then
4389
  # Let the user override the test.
4390
  lt_cv_path_NM="$NM"
4391
else
4392
  lt_nm_to_check="${ac_tool_prefix}nm"
4393
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4394
    lt_nm_to_check="$lt_nm_to_check nm"
4395
  fi
4396
  for lt_tmp_nm in $lt_nm_to_check; do
4397
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4398
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4399
      IFS="$lt_save_ifs"
4400
      test -z "$ac_dir" && ac_dir=.
4401
      tmp_nm="$ac_dir/$lt_tmp_nm"
4402
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4403
        # Check to see if the nm accepts a BSD-compat flag.
4404
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4405
        #   nm: unknown option "B" ignored
4406
        # Tru64's nm complains that /dev/null is an invalid object file
4407
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4408
        */dev/null* | *'Invalid file or object type'*)
4409
          lt_cv_path_NM="$tmp_nm -B"
4410
          break
4411
          ;;
4412
        *)
4413
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4414
          */dev/null*)
4415
            lt_cv_path_NM="$tmp_nm -p"
4416
            break
4417
            ;;
4418
          *)
4419
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4420
            continue # so that we can try to find one that supports BSD flags
4421
            ;;
4422
          esac
4423
          ;;
4424
        esac
4425
      fi
4426
    done
4427
    IFS="$lt_save_ifs"
4428
  done
4429 82 jeremybenn
  : ${lt_cv_path_NM=no}
4430 19 jeremybenn
fi
4431
fi
4432 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4433 82 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
4434
if test "$lt_cv_path_NM" != "no"; then
4435
  NM="$lt_cv_path_NM"
4436
else
4437
  # Didn't find any BSD compatible name lister, look for dumpbin.
4438
  if test -n "$ac_tool_prefix"; then
4439
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4440
  do
4441
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4442
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4443 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4445 121 jeremybenn
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4446 82 jeremybenn
  $as_echo_n "(cached) " >&6
4447
else
4448
  if test -n "$DUMPBIN"; then
4449
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4450
else
4451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452
for as_dir in $PATH
4453
do
4454
  IFS=$as_save_IFS
4455
  test -z "$as_dir" && as_dir=.
4456 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4457 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4459 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 82 jeremybenn
    break 2
4461
  fi
4462
done
4463 121 jeremybenn
done
4464 82 jeremybenn
IFS=$as_save_IFS
4465 19 jeremybenn
 
4466 82 jeremybenn
fi
4467
fi
4468
DUMPBIN=$ac_cv_prog_DUMPBIN
4469
if test -n "$DUMPBIN"; then
4470 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4471 82 jeremybenn
$as_echo "$DUMPBIN" >&6; }
4472
else
4473 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4474 82 jeremybenn
$as_echo "no" >&6; }
4475
fi
4476
 
4477
 
4478
    test -n "$DUMPBIN" && break
4479
  done
4480
fi
4481
if test -z "$DUMPBIN"; then
4482
  ac_ct_DUMPBIN=$DUMPBIN
4483
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4484
do
4485
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4486
set dummy $ac_prog; ac_word=$2
4487 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4489 121 jeremybenn
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4490 82 jeremybenn
  $as_echo_n "(cached) " >&6
4491
else
4492
  if test -n "$ac_ct_DUMPBIN"; then
4493
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4494
else
4495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496
for as_dir in $PATH
4497
do
4498
  IFS=$as_save_IFS
4499
  test -z "$as_dir" && as_dir=.
4500 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4501 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4503 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 82 jeremybenn
    break 2
4505
  fi
4506
done
4507 121 jeremybenn
done
4508 82 jeremybenn
IFS=$as_save_IFS
4509
 
4510
fi
4511
fi
4512
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4513
if test -n "$ac_ct_DUMPBIN"; then
4514 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4515 82 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
4516
else
4517 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4518 82 jeremybenn
$as_echo "no" >&6; }
4519
fi
4520
 
4521
 
4522
  test -n "$ac_ct_DUMPBIN" && break
4523
done
4524
 
4525
  if test "x$ac_ct_DUMPBIN" = x; then
4526
    DUMPBIN=":"
4527
  else
4528
    case $cross_compiling:$ac_tool_warned in
4529
yes:)
4530 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4531 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4532
ac_tool_warned=yes ;;
4533
esac
4534
    DUMPBIN=$ac_ct_DUMPBIN
4535
  fi
4536
fi
4537
 
4538
 
4539
  if test "$DUMPBIN" != ":"; then
4540
    NM="$DUMPBIN"
4541
  fi
4542
fi
4543
test -z "$NM" && NM=nm
4544
 
4545
 
4546
 
4547
 
4548
 
4549
 
4550 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4551 82 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4552 121 jeremybenn
if test "${lt_cv_nm_interface+set}" = set; then
4553 82 jeremybenn
  $as_echo_n "(cached) " >&6
4554
else
4555
  lt_cv_nm_interface="BSD nm"
4556
  echo "int some_variable = 0;" > conftest.$ac_ext
4557 127 jeremybenn
  (eval echo "\"\$as_me:4557: $ac_compile\"" >&5)
4558 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4559
  cat conftest.err >&5
4560 127 jeremybenn
  (eval echo "\"\$as_me:4560: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4561 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4562
  cat conftest.err >&5
4563 127 jeremybenn
  (eval echo "\"\$as_me:4563: output\"" >&5)
4564 82 jeremybenn
  cat conftest.out >&5
4565
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4566
    lt_cv_nm_interface="MS dumpbin"
4567
  fi
4568
  rm -f conftest*
4569
fi
4570 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4571 82 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
4572
 
4573 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4574 82 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
4575 19 jeremybenn
LN_S=$as_ln_s
4576
if test "$LN_S" = "ln -s"; then
4577 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
4578 82 jeremybenn
$as_echo "yes" >&6; }
4579 19 jeremybenn
else
4580 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4581 82 jeremybenn
$as_echo "no, using $LN_S" >&6; }
4582 19 jeremybenn
fi
4583
 
4584 82 jeremybenn
# find the maximum length of command line arguments
4585 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4586 82 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4587 121 jeremybenn
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4588 82 jeremybenn
  $as_echo_n "(cached) " >&6
4589
else
4590
    i=0
4591
  teststring="ABCD"
4592
 
4593
  case $build_os in
4594
  msdosdjgpp*)
4595
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4596
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4597
    # during glob expansion).  Even if it were fixed, the result of this
4598
    # check would be larger than it should be.
4599
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4600
    ;;
4601
 
4602
  gnu*)
4603
    # Under GNU Hurd, this test is not required because there is
4604
    # no limit to the length of command line arguments.
4605
    # Libtool will interpret -1 as no limit whatsoever
4606
    lt_cv_sys_max_cmd_len=-1;
4607
    ;;
4608
 
4609
  cygwin* | mingw* | cegcc*)
4610
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4611
    # about 5 minutes as the teststring grows exponentially.
4612
    # Worse, since 9x/ME are not pre-emptively multitasking,
4613
    # you end up with a "frozen" computer, even though with patience
4614
    # the test eventually succeeds (with a max line length of 256k).
4615
    # Instead, let's just punt: use the minimum linelength reported by
4616
    # all of the supported platforms: 8192 (on NT/2K/XP).
4617
    lt_cv_sys_max_cmd_len=8192;
4618
    ;;
4619
 
4620
  amigaos*)
4621
    # On AmigaOS with pdksh, this test takes hours, literally.
4622
    # So we just punt and use a minimum line length of 8192.
4623
    lt_cv_sys_max_cmd_len=8192;
4624
    ;;
4625
 
4626
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4627
    # This has been around since 386BSD, at least.  Likely further.
4628
    if test -x /sbin/sysctl; then
4629
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4630
    elif test -x /usr/sbin/sysctl; then
4631
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4632
    else
4633
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4634
    fi
4635
    # And add a safety zone
4636
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4637
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4638
    ;;
4639
 
4640
  interix*)
4641
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4642
    lt_cv_sys_max_cmd_len=196608
4643
    ;;
4644
 
4645
  osf*)
4646
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4647
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4648
    # nice to cause kernel panics so lets avoid the loop below.
4649
    # First set a reasonable default.
4650
    lt_cv_sys_max_cmd_len=16384
4651
    #
4652
    if test -x /sbin/sysconfig; then
4653
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4654
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4655
      esac
4656
    fi
4657
    ;;
4658
  sco3.2v5*)
4659
    lt_cv_sys_max_cmd_len=102400
4660
    ;;
4661
  sysv5* | sco5v6* | sysv4.2uw2*)
4662
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4663
    if test -n "$kargmax"; then
4664
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4665
    else
4666
      lt_cv_sys_max_cmd_len=32768
4667
    fi
4668
    ;;
4669
  *)
4670
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4671
    if test -n "$lt_cv_sys_max_cmd_len"; then
4672
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4673
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4674
    else
4675
      # Make teststring a little bigger before we do anything with it.
4676
      # a 1K string should be a reasonable start.
4677
      for i in 1 2 3 4 5 6 7 8 ; do
4678
        teststring=$teststring$teststring
4679
      done
4680
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4681
      # If test is not a shell built-in, we'll probably end up computing a
4682
      # maximum length that is only half of the actual maximum length, but
4683
      # we can't tell.
4684
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4685
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4686
              test $i != 17 # 1/2 MB should be enough
4687
      do
4688
        i=`expr $i + 1`
4689
        teststring=$teststring$teststring
4690
      done
4691
      # Only check the string length outside the loop.
4692
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4693
      teststring=
4694
      # Add a significant safety factor because C++ compilers can tack on
4695
      # massive amounts of additional arguments before passing them to the
4696
      # linker.  It appears as though 1/2 is a usable value.
4697
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4698
    fi
4699
    ;;
4700
  esac
4701
 
4702
fi
4703
 
4704
if test -n $lt_cv_sys_max_cmd_len ; then
4705 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4706 82 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4707
else
4708 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: none" >&5
4709 82 jeremybenn
$as_echo "none" >&6; }
4710
fi
4711
max_cmd_len=$lt_cv_sys_max_cmd_len
4712
 
4713
 
4714
 
4715
 
4716
 
4717
 
4718
: ${CP="cp -f"}
4719
: ${MV="mv -f"}
4720
: ${RM="rm -f"}
4721
 
4722 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4723 82 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4724
# Try some XSI features
4725
xsi_shell=no
4726
( _lt_dummy="a/b/c"
4727
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4728
      = c,a/b,, \
4729
    && eval 'test $(( 1 + 1 )) -eq 2 \
4730
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4731
  && xsi_shell=yes
4732 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4733 82 jeremybenn
$as_echo "$xsi_shell" >&6; }
4734
 
4735
 
4736 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4737 82 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4738
lt_shell_append=no
4739
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4740
    >/dev/null 2>&1 \
4741
  && lt_shell_append=yes
4742 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4743 82 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4744
 
4745
 
4746
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4747
  lt_unset=unset
4748
else
4749
  lt_unset=false
4750
fi
4751
 
4752
 
4753
 
4754
 
4755
 
4756
# test EBCDIC or ASCII
4757
case `echo X|tr X '\101'` in
4758
 A) # ASCII based system
4759
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4760
  lt_SP2NL='tr \040 \012'
4761
  lt_NL2SP='tr \015\012 \040\040'
4762
  ;;
4763
 *) # EBCDIC based system
4764
  lt_SP2NL='tr \100 \n'
4765
  lt_NL2SP='tr \r\n \100\100'
4766
  ;;
4767
esac
4768
 
4769
 
4770
 
4771
 
4772
 
4773
 
4774
 
4775
 
4776
 
4777 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4778 82 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4779 121 jeremybenn
if test "${lt_cv_ld_reload_flag+set}" = set; then
4780 82 jeremybenn
  $as_echo_n "(cached) " >&6
4781
else
4782
  lt_cv_ld_reload_flag='-r'
4783
fi
4784 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4785 82 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4786
reload_flag=$lt_cv_ld_reload_flag
4787
case $reload_flag in
4788
"" | " "*) ;;
4789
*) reload_flag=" $reload_flag" ;;
4790
esac
4791
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4792
case $host_os in
4793
  darwin*)
4794
    if test "$GCC" = yes; then
4795
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4796
    else
4797
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4798
    fi
4799
    ;;
4800
esac
4801
 
4802
 
4803
 
4804
 
4805
 
4806
 
4807
 
4808
 
4809
 
4810
if test -n "$ac_tool_prefix"; then
4811
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4812
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4813 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4815 121 jeremybenn
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4816 82 jeremybenn
  $as_echo_n "(cached) " >&6
4817
else
4818
  if test -n "$OBJDUMP"; then
4819
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4820
else
4821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822
for as_dir in $PATH
4823
do
4824
  IFS=$as_save_IFS
4825
  test -z "$as_dir" && as_dir=.
4826 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4827 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4829 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 82 jeremybenn
    break 2
4831
  fi
4832
done
4833 121 jeremybenn
done
4834 82 jeremybenn
IFS=$as_save_IFS
4835
 
4836
fi
4837
fi
4838
OBJDUMP=$ac_cv_prog_OBJDUMP
4839
if test -n "$OBJDUMP"; then
4840 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4841 82 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4842
else
4843 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4844 82 jeremybenn
$as_echo "no" >&6; }
4845
fi
4846
 
4847
 
4848
fi
4849
if test -z "$ac_cv_prog_OBJDUMP"; then
4850
  ac_ct_OBJDUMP=$OBJDUMP
4851
  # Extract the first word of "objdump", so it can be a program name with args.
4852
set dummy objdump; ac_word=$2
4853 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4855 121 jeremybenn
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4856 82 jeremybenn
  $as_echo_n "(cached) " >&6
4857
else
4858
  if test -n "$ac_ct_OBJDUMP"; then
4859
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4860
else
4861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862
for as_dir in $PATH
4863
do
4864
  IFS=$as_save_IFS
4865
  test -z "$as_dir" && as_dir=.
4866 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4867 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4869 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 82 jeremybenn
    break 2
4871
  fi
4872
done
4873 121 jeremybenn
done
4874 82 jeremybenn
IFS=$as_save_IFS
4875
 
4876
fi
4877
fi
4878
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4879
if test -n "$ac_ct_OBJDUMP"; then
4880 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4881 82 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4882
else
4883 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4884 82 jeremybenn
$as_echo "no" >&6; }
4885
fi
4886
 
4887
  if test "x$ac_ct_OBJDUMP" = x; then
4888
    OBJDUMP="false"
4889
  else
4890
    case $cross_compiling:$ac_tool_warned in
4891
yes:)
4892 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4893 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894
ac_tool_warned=yes ;;
4895
esac
4896
    OBJDUMP=$ac_ct_OBJDUMP
4897
  fi
4898
else
4899
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4900
fi
4901
 
4902
test -z "$OBJDUMP" && OBJDUMP=objdump
4903
 
4904
 
4905
 
4906
 
4907
 
4908
 
4909
 
4910
 
4911
 
4912 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4913 82 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4914 121 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then
4915 82 jeremybenn
  $as_echo_n "(cached) " >&6
4916 19 jeremybenn
else
4917
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4918
lt_cv_file_magic_test_file=
4919
lt_cv_deplibs_check_method='unknown'
4920
# Need to set the preceding variable on all platforms that support
4921
# interlibrary dependencies.
4922
# 'none' -- dependencies not supported.
4923
# `unknown' -- same as none, but documents that we really don't know.
4924
# 'pass_all' -- all dependencies passed with no checks.
4925
# 'test_compile' -- check by making test program.
4926
# 'file_magic [[regex]]' -- check by looking for files in library path
4927
# which responds to the $file_magic_cmd with a given extended regex.
4928
# If you have `file' or equivalent on your system and you're not sure
4929
# whether `pass_all' will *always* work, you probably want this one.
4930
 
4931
case $host_os in
4932 82 jeremybenn
aix[4-9]*)
4933 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4934
  ;;
4935
 
4936
beos*)
4937
  lt_cv_deplibs_check_method=pass_all
4938
  ;;
4939
 
4940
bsdi[45]*)
4941
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4942
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4943
  lt_cv_file_magic_test_file=/shlib/libc.so
4944
  ;;
4945
 
4946
cygwin*)
4947
  # func_win32_libid is a shell function defined in ltmain.sh
4948
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4949
  lt_cv_file_magic_cmd='func_win32_libid'
4950
  ;;
4951
 
4952
mingw* | pw32*)
4953
  # Base MSYS/MinGW do not provide the 'file' command needed by
4954
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4955
  # unless we find 'file', for example because we are cross-compiling.
4956
  if ( file / ) >/dev/null 2>&1; then
4957
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4958
    lt_cv_file_magic_cmd='func_win32_libid'
4959
  else
4960
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4961
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4962
  fi
4963
  ;;
4964
 
4965 82 jeremybenn
cegcc)
4966
  # use the weaker test based on 'objdump'. See mingw*.
4967
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4968
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4969
  ;;
4970
 
4971 19 jeremybenn
darwin* | rhapsody*)
4972
  lt_cv_deplibs_check_method=pass_all
4973
  ;;
4974
 
4975
freebsd* | dragonfly*)
4976 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4977 19 jeremybenn
    case $host_cpu in
4978
    i*86 )
4979
      # Not sure whether the presence of OpenBSD here was a mistake.
4980
      # Let's accept both of them until this is cleared up.
4981
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4982
      lt_cv_file_magic_cmd=/usr/bin/file
4983
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4984
      ;;
4985
    esac
4986
  else
4987
    lt_cv_deplibs_check_method=pass_all
4988
  fi
4989
  ;;
4990
 
4991
gnu*)
4992
  lt_cv_deplibs_check_method=pass_all
4993
  ;;
4994
 
4995
hpux10.20* | hpux11*)
4996
  lt_cv_file_magic_cmd=/usr/bin/file
4997
  case $host_cpu in
4998
  ia64*)
4999
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5000
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5001
    ;;
5002
  hppa*64*)
5003
    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]'
5004
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5005
    ;;
5006
  *)
5007
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5008
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5009
    ;;
5010
  esac
5011
  ;;
5012
 
5013
interix[3-9]*)
5014
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5015
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5016
  ;;
5017
 
5018
irix5* | irix6* | nonstopux*)
5019
  case $LD in
5020
  *-32|*"-32 ") libmagic=32-bit;;
5021
  *-n32|*"-n32 ") libmagic=N32;;
5022
  *-64|*"-64 ") libmagic=64-bit;;
5023
  *) libmagic=never-match;;
5024
  esac
5025
  lt_cv_deplibs_check_method=pass_all
5026
  ;;
5027
 
5028
# This must be Linux ELF.
5029
linux* | k*bsd*-gnu)
5030
  lt_cv_deplibs_check_method=pass_all
5031
  ;;
5032
 
5033 93 jeremybenn
netbsd* | netbsdelf*-gnu)
5034 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5035 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5036
  else
5037
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5038
  fi
5039
  ;;
5040
 
5041
newos6*)
5042
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5043
  lt_cv_file_magic_cmd=/usr/bin/file
5044
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5045
  ;;
5046
 
5047 82 jeremybenn
*nto* | *qnx*)
5048
  lt_cv_deplibs_check_method=pass_all
5049 19 jeremybenn
  ;;
5050
 
5051
openbsd*)
5052 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5053 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5054
  else
5055
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5056
  fi
5057
  ;;
5058
 
5059
osf3* | osf4* | osf5*)
5060
  lt_cv_deplibs_check_method=pass_all
5061
  ;;
5062
 
5063
rdos*)
5064
  lt_cv_deplibs_check_method=pass_all
5065
  ;;
5066
 
5067
solaris*)
5068
  lt_cv_deplibs_check_method=pass_all
5069
  ;;
5070
 
5071 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5072
  lt_cv_deplibs_check_method=pass_all
5073
  ;;
5074
 
5075 19 jeremybenn
sysv4 | sysv4.3*)
5076
  case $host_vendor in
5077
  motorola)
5078
    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]'
5079
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5080
    ;;
5081
  ncr)
5082
    lt_cv_deplibs_check_method=pass_all
5083
    ;;
5084
  sequent)
5085
    lt_cv_file_magic_cmd='/bin/file'
5086
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5087
    ;;
5088
  sni)
5089
    lt_cv_file_magic_cmd='/bin/file'
5090
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5091
    lt_cv_file_magic_test_file=/lib/libc.so
5092
    ;;
5093
  siemens)
5094
    lt_cv_deplibs_check_method=pass_all
5095
    ;;
5096
  pc)
5097
    lt_cv_deplibs_check_method=pass_all
5098
    ;;
5099
  esac
5100
  ;;
5101
 
5102 82 jeremybenn
tpf*)
5103 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5104
  ;;
5105
esac
5106
 
5107
fi
5108 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5109 82 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5110 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5111
deplibs_check_method=$lt_cv_deplibs_check_method
5112
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5113
 
5114
 
5115
 
5116
 
5117 82 jeremybenn
 
5118
 
5119
 
5120
 
5121
 
5122
 
5123
 
5124
 
5125
if test -n "$ac_tool_prefix"; then
5126
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5127
set dummy ${ac_tool_prefix}ar; ac_word=$2
5128 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5130 121 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
5131 82 jeremybenn
  $as_echo_n "(cached) " >&6
5132
else
5133
  if test -n "$AR"; then
5134
  ac_cv_prog_AR="$AR" # Let the user override the test.
5135
else
5136
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137
for as_dir in $PATH
5138
do
5139
  IFS=$as_save_IFS
5140
  test -z "$as_dir" && as_dir=.
5141 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5142 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5144 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 82 jeremybenn
    break 2
5146
  fi
5147
done
5148 121 jeremybenn
done
5149 82 jeremybenn
IFS=$as_save_IFS
5150
 
5151
fi
5152
fi
5153
AR=$ac_cv_prog_AR
5154
if test -n "$AR"; then
5155 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5156 82 jeremybenn
$as_echo "$AR" >&6; }
5157
else
5158 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5159 82 jeremybenn
$as_echo "no" >&6; }
5160
fi
5161
 
5162
 
5163
fi
5164
if test -z "$ac_cv_prog_AR"; then
5165
  ac_ct_AR=$AR
5166
  # Extract the first word of "ar", so it can be a program name with args.
5167
set dummy ar; ac_word=$2
5168 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5169 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5170 121 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5171 82 jeremybenn
  $as_echo_n "(cached) " >&6
5172
else
5173
  if test -n "$ac_ct_AR"; then
5174
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5175
else
5176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177
for as_dir in $PATH
5178
do
5179
  IFS=$as_save_IFS
5180
  test -z "$as_dir" && as_dir=.
5181 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5182 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183
    ac_cv_prog_ac_ct_AR="ar"
5184 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 82 jeremybenn
    break 2
5186
  fi
5187
done
5188 121 jeremybenn
done
5189 82 jeremybenn
IFS=$as_save_IFS
5190
 
5191
fi
5192
fi
5193
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5194
if test -n "$ac_ct_AR"; then
5195 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5196 82 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
5197
else
5198 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5199 82 jeremybenn
$as_echo "no" >&6; }
5200
fi
5201
 
5202
  if test "x$ac_ct_AR" = x; then
5203
    AR="false"
5204
  else
5205
    case $cross_compiling:$ac_tool_warned in
5206
yes:)
5207 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5208 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5209
ac_tool_warned=yes ;;
5210
esac
5211
    AR=$ac_ct_AR
5212
  fi
5213
else
5214
  AR="$ac_cv_prog_AR"
5215
fi
5216
 
5217
test -z "$AR" && AR=ar
5218
test -z "$AR_FLAGS" && AR_FLAGS=cru
5219
 
5220
 
5221
 
5222
 
5223
 
5224
 
5225
 
5226
 
5227
 
5228
 
5229
 
5230
if test -n "$ac_tool_prefix"; then
5231
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5232
set dummy ${ac_tool_prefix}strip; ac_word=$2
5233 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5235 121 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then
5236 82 jeremybenn
  $as_echo_n "(cached) " >&6
5237
else
5238
  if test -n "$STRIP"; then
5239
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5240
else
5241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242
for as_dir in $PATH
5243
do
5244
  IFS=$as_save_IFS
5245
  test -z "$as_dir" && as_dir=.
5246 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5247 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5249 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 82 jeremybenn
    break 2
5251
  fi
5252
done
5253 121 jeremybenn
done
5254 82 jeremybenn
IFS=$as_save_IFS
5255
 
5256
fi
5257
fi
5258
STRIP=$ac_cv_prog_STRIP
5259
if test -n "$STRIP"; then
5260 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5261 82 jeremybenn
$as_echo "$STRIP" >&6; }
5262
else
5263 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5264 82 jeremybenn
$as_echo "no" >&6; }
5265
fi
5266
 
5267
 
5268
fi
5269
if test -z "$ac_cv_prog_STRIP"; then
5270
  ac_ct_STRIP=$STRIP
5271
  # Extract the first word of "strip", so it can be a program name with args.
5272
set dummy strip; ac_word=$2
5273 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5275 121 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5276 82 jeremybenn
  $as_echo_n "(cached) " >&6
5277
else
5278
  if test -n "$ac_ct_STRIP"; then
5279
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5280
else
5281
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282
for as_dir in $PATH
5283
do
5284
  IFS=$as_save_IFS
5285
  test -z "$as_dir" && as_dir=.
5286 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5287 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288
    ac_cv_prog_ac_ct_STRIP="strip"
5289 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 82 jeremybenn
    break 2
5291
  fi
5292
done
5293 121 jeremybenn
done
5294 82 jeremybenn
IFS=$as_save_IFS
5295
 
5296
fi
5297
fi
5298
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5299
if test -n "$ac_ct_STRIP"; then
5300 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5301 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
5302
else
5303 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5304 82 jeremybenn
$as_echo "no" >&6; }
5305
fi
5306
 
5307
  if test "x$ac_ct_STRIP" = x; then
5308
    STRIP=":"
5309
  else
5310
    case $cross_compiling:$ac_tool_warned in
5311
yes:)
5312 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5313 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314
ac_tool_warned=yes ;;
5315
esac
5316
    STRIP=$ac_ct_STRIP
5317
  fi
5318
else
5319
  STRIP="$ac_cv_prog_STRIP"
5320
fi
5321
 
5322
test -z "$STRIP" && STRIP=:
5323
 
5324
 
5325
 
5326
 
5327
 
5328
 
5329
if test -n "$ac_tool_prefix"; then
5330
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5331
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5332 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5333 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5334 121 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then
5335 82 jeremybenn
  $as_echo_n "(cached) " >&6
5336
else
5337
  if test -n "$RANLIB"; then
5338
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5339
else
5340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341
for as_dir in $PATH
5342
do
5343
  IFS=$as_save_IFS
5344
  test -z "$as_dir" && as_dir=.
5345 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5346 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5348 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 82 jeremybenn
    break 2
5350
  fi
5351
done
5352 121 jeremybenn
done
5353 82 jeremybenn
IFS=$as_save_IFS
5354
 
5355
fi
5356
fi
5357
RANLIB=$ac_cv_prog_RANLIB
5358
if test -n "$RANLIB"; then
5359 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5360 82 jeremybenn
$as_echo "$RANLIB" >&6; }
5361
else
5362 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5363 82 jeremybenn
$as_echo "no" >&6; }
5364
fi
5365
 
5366
 
5367
fi
5368
if test -z "$ac_cv_prog_RANLIB"; then
5369
  ac_ct_RANLIB=$RANLIB
5370
  # Extract the first word of "ranlib", so it can be a program name with args.
5371
set dummy ranlib; ac_word=$2
5372 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5373 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5374 121 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5375 82 jeremybenn
  $as_echo_n "(cached) " >&6
5376
else
5377
  if test -n "$ac_ct_RANLIB"; then
5378
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5379
else
5380
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381
for as_dir in $PATH
5382
do
5383
  IFS=$as_save_IFS
5384
  test -z "$as_dir" && as_dir=.
5385 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5386 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5388 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 82 jeremybenn
    break 2
5390
  fi
5391
done
5392 121 jeremybenn
done
5393 82 jeremybenn
IFS=$as_save_IFS
5394
 
5395
fi
5396
fi
5397
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5398
if test -n "$ac_ct_RANLIB"; then
5399 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5400 82 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5401
else
5402 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5403 82 jeremybenn
$as_echo "no" >&6; }
5404
fi
5405
 
5406
  if test "x$ac_ct_RANLIB" = x; then
5407
    RANLIB=":"
5408
  else
5409
    case $cross_compiling:$ac_tool_warned in
5410
yes:)
5411 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5412 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5413
ac_tool_warned=yes ;;
5414
esac
5415
    RANLIB=$ac_ct_RANLIB
5416
  fi
5417
else
5418
  RANLIB="$ac_cv_prog_RANLIB"
5419
fi
5420
 
5421
test -z "$RANLIB" && RANLIB=:
5422
 
5423
 
5424
 
5425
 
5426
 
5427
 
5428
# Determine commands to create old-style static archives.
5429
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5430
old_postinstall_cmds='chmod 644 $oldlib'
5431
old_postuninstall_cmds=
5432
 
5433
if test -n "$RANLIB"; then
5434
  case $host_os in
5435
  openbsd*)
5436
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5437
    ;;
5438
  *)
5439
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5440
    ;;
5441
  esac
5442
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5443
fi
5444
 
5445
 
5446
 
5447
 
5448
 
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
 
5460
 
5461
 
5462
 
5463
 
5464
 
5465
 
5466
 
5467
 
5468
 
5469
 
5470
 
5471
 
5472
 
5473
 
5474
 
5475
 
5476
 
5477
 
5478 19 jeremybenn
# If no C compiler was specified, use CC.
5479
LTCC=${LTCC-"$CC"}
5480
 
5481
# If no C compiler flags were specified, use CFLAGS.
5482
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5483
 
5484
# Allow CC to be a program name with arguments.
5485
compiler=$CC
5486
 
5487
 
5488 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
5489 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5490 82 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5491 121 jeremybenn
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5492 82 jeremybenn
  $as_echo_n "(cached) " >&6
5493
else
5494
 
5495
# These are sane defaults that work on at least a few old systems.
5496
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5497
 
5498
# Character class describing NM global symbol codes.
5499
symcode='[BCDEGRST]'
5500
 
5501
# Regexp to match symbols that can be accessed directly from C.
5502
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5503
 
5504
# Define system-specific variables.
5505
case $host_os in
5506
aix*)
5507
  symcode='[BCDT]'
5508
  ;;
5509
cygwin* | mingw* | pw32* | cegcc*)
5510
  symcode='[ABCDGISTW]'
5511
  ;;
5512
hpux*)
5513
  if test "$host_cpu" = ia64; then
5514
    symcode='[ABCDEGRST]'
5515
  fi
5516
  ;;
5517
irix* | nonstopux*)
5518
  symcode='[BCDEGRST]'
5519
  ;;
5520
osf*)
5521
  symcode='[BCDEGQRST]'
5522
  ;;
5523
solaris*)
5524
  symcode='[BDRT]'
5525
  ;;
5526
sco3.2v5*)
5527
  symcode='[DT]'
5528
  ;;
5529
sysv4.2uw2*)
5530
  symcode='[DT]'
5531
  ;;
5532
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5533
  symcode='[ABDT]'
5534
  ;;
5535
sysv4)
5536
  symcode='[DFNSTU]'
5537
  ;;
5538
esac
5539
 
5540
# If we're using GNU nm, then use its standard symbol codes.
5541
case `$NM -V 2>&1` in
5542
*GNU* | *'with BFD'*)
5543
  symcode='[ABCDGIRSTW]' ;;
5544
esac
5545
 
5546
# Transform an extracted symbol line into a proper C declaration.
5547
# Some systems (esp. on ia64) link data and code symbols differently,
5548
# so use this general approach.
5549
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5550
 
5551
# Transform an extracted symbol line into symbol name and symbol address
5552
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5553
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5554
 
5555
# Handle CRLF in mingw tool chain
5556
opt_cr=
5557
case $build_os in
5558
mingw*)
5559
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5560
  ;;
5561
esac
5562
 
5563
# Try without a prefix underscore, then with it.
5564
for ac_symprfx in "" "_"; do
5565
 
5566
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5567
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5568
 
5569
  # Write the raw and C identifiers.
5570
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5571
    # Fake it for dumpbin and say T for any non-static function
5572
    # and D for any global variable.
5573
    # Also find C++ and __fastcall symbols from MSVC++,
5574
    # which start with @ or ?.
5575
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5576
"     {last_section=section; section=\$ 3};"\
5577
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5578
"     \$ 0!~/External *\|/{next};"\
5579
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5580
"     {if(hide[section]) next};"\
5581
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5582
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5583
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5584
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5585
"     ' prfx=^$ac_symprfx"
5586
  else
5587
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5588
  fi
5589
 
5590
  # Check to see that the pipe works correctly.
5591
  pipe_works=no
5592
 
5593
  rm -f conftest*
5594
  cat > conftest.$ac_ext <<_LT_EOF
5595
#ifdef __cplusplus
5596
extern "C" {
5597
#endif
5598
char nm_test_var;
5599
void nm_test_func(void);
5600
void nm_test_func(void){}
5601
#ifdef __cplusplus
5602
}
5603
#endif
5604
int main(){nm_test_var='a';nm_test_func();return(0);}
5605
_LT_EOF
5606
 
5607 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 82 jeremybenn
  (eval $ac_compile) 2>&5
5609
  ac_status=$?
5610 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611
  (exit $ac_status); }; then
5612 82 jeremybenn
    # Now try to grab the symbols.
5613
    nlist=conftest.nm
5614 121 jeremybenn
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5615 82 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5616
  ac_status=$?
5617 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618
  (exit $ac_status); } && test -s "$nlist"; then
5619 82 jeremybenn
      # Try sorting and uniquifying the output.
5620
      if sort "$nlist" | uniq > "$nlist"T; then
5621
        mv -f "$nlist"T "$nlist"
5622
      else
5623
        rm -f "$nlist"T
5624
      fi
5625
 
5626
      # Make sure that we snagged all the symbols we need.
5627
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5628
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5629
          cat <<_LT_EOF > conftest.$ac_ext
5630
#ifdef __cplusplus
5631
extern "C" {
5632
#endif
5633
 
5634
_LT_EOF
5635
          # Now generate the symbol file.
5636
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5637
 
5638
          cat <<_LT_EOF >> conftest.$ac_ext
5639
 
5640
/* The mapping between symbol names and symbols.  */
5641
const struct {
5642
  const char *name;
5643
  void       *address;
5644
}
5645
lt__PROGRAM__LTX_preloaded_symbols[] =
5646
{
5647
  { "@PROGRAM@", (void *) 0 },
5648
_LT_EOF
5649
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5650
          cat <<\_LT_EOF >> conftest.$ac_ext
5651
  {0, (void *) 0}
5652
};
5653
 
5654
/* This works around a problem in FreeBSD linker */
5655
#ifdef FREEBSD_WORKAROUND
5656
static const void *lt_preloaded_setup() {
5657
  return lt__PROGRAM__LTX_preloaded_symbols;
5658
}
5659
#endif
5660
 
5661
#ifdef __cplusplus
5662
}
5663
#endif
5664
_LT_EOF
5665
          # Now try linking the two files.
5666
          mv conftest.$ac_objext conftstm.$ac_objext
5667
          lt_save_LIBS="$LIBS"
5668
          lt_save_CFLAGS="$CFLAGS"
5669
          LIBS="conftstm.$ac_objext"
5670
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5671 121 jeremybenn
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672 82 jeremybenn
  (eval $ac_link) 2>&5
5673
  ac_status=$?
5674 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5676 82 jeremybenn
            pipe_works=yes
5677
          fi
5678
          LIBS="$lt_save_LIBS"
5679
          CFLAGS="$lt_save_CFLAGS"
5680
        else
5681
          echo "cannot find nm_test_func in $nlist" >&5
5682
        fi
5683
      else
5684
        echo "cannot find nm_test_var in $nlist" >&5
5685
      fi
5686
    else
5687
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5688
    fi
5689
  else
5690
    echo "$progname: failed program was:" >&5
5691
    cat conftest.$ac_ext >&5
5692
  fi
5693
  rm -rf conftest* conftst*
5694
 
5695
  # Do not use the global_symbol_pipe unless it works.
5696
  if test "$pipe_works" = yes; then
5697
    break
5698
  else
5699
    lt_cv_sys_global_symbol_pipe=
5700
  fi
5701
done
5702
 
5703
fi
5704
 
5705
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5706
  lt_cv_sys_global_symbol_to_cdecl=
5707
fi
5708
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5709 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: failed" >&5
5710 82 jeremybenn
$as_echo "failed" >&6; }
5711
else
5712 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: ok" >&5
5713 82 jeremybenn
$as_echo "ok" >&6; }
5714
fi
5715
 
5716
 
5717
 
5718
 
5719
 
5720
 
5721
 
5722
 
5723
 
5724
 
5725
 
5726
 
5727
 
5728
 
5729
 
5730
 
5731
 
5732
 
5733
 
5734
 
5735
 
5736
 
5737 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5738 121 jeremybenn
if test "${enable_libtool_lock+set}" = set; then
5739 19 jeremybenn
  enableval=$enable_libtool_lock;
5740
fi
5741
 
5742
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5743
 
5744
# Some flags need to be propagated to the compiler or linker for good
5745
# libtool support.
5746
case $host in
5747
ia64-*-hpux*)
5748
  # Find out which ABI we are using.
5749
  echo 'int i;' > conftest.$ac_ext
5750 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 19 jeremybenn
  (eval $ac_compile) 2>&5
5752
  ac_status=$?
5753 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754
  (exit $ac_status); }; then
5755 19 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5756 82 jeremybenn
      *ELF-32*)
5757
        HPUX_IA64_MODE="32"
5758
        ;;
5759
      *ELF-64*)
5760
        HPUX_IA64_MODE="64"
5761
        ;;
5762 19 jeremybenn
    esac
5763
  fi
5764
  rm -rf conftest*
5765
  ;;
5766
*-*-irix6*)
5767
  # Find out which ABI we are using.
5768 127 jeremybenn
  echo '#line 5768 "configure"' > conftest.$ac_ext
5769 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 19 jeremybenn
  (eval $ac_compile) 2>&5
5771
  ac_status=$?
5772 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773
  (exit $ac_status); }; then
5774 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5775
      case `/usr/bin/file conftest.$ac_objext` in
5776
        *32-bit*)
5777
          LD="${LD-ld} -melf32bsmip"
5778
          ;;
5779
        *N32*)
5780
          LD="${LD-ld} -melf32bmipn32"
5781
          ;;
5782
        *64-bit*)
5783
          LD="${LD-ld} -melf64bmip"
5784
        ;;
5785
      esac
5786
    else
5787
      case `/usr/bin/file conftest.$ac_objext` in
5788
        *32-bit*)
5789
          LD="${LD-ld} -32"
5790
          ;;
5791
        *N32*)
5792
          LD="${LD-ld} -n32"
5793
          ;;
5794
        *64-bit*)
5795
          LD="${LD-ld} -64"
5796
          ;;
5797
      esac
5798
    fi
5799 19 jeremybenn
  fi
5800
  rm -rf conftest*
5801
  ;;
5802
 
5803
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5804 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5805 19 jeremybenn
  # Find out which ABI we are using.
5806
  echo 'int i;' > conftest.$ac_ext
5807 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 19 jeremybenn
  (eval $ac_compile) 2>&5
5809
  ac_status=$?
5810 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811
  (exit $ac_status); }; then
5812 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5813 82 jeremybenn
      *32-bit*)
5814
        case $host in
5815
          x86_64-*kfreebsd*-gnu)
5816
            LD="${LD-ld} -m elf_i386_fbsd"
5817
            ;;
5818
          x86_64-*linux*)
5819
            LD="${LD-ld} -m elf_i386"
5820
            ;;
5821
          ppc64-*linux*|powerpc64-*linux*)
5822
            LD="${LD-ld} -m elf32ppclinux"
5823
            ;;
5824
          s390x-*linux*)
5825
            LD="${LD-ld} -m elf_s390"
5826
            ;;
5827
          sparc64-*linux*)
5828
            LD="${LD-ld} -m elf32_sparc"
5829
            ;;
5830
        esac
5831
        ;;
5832
      *64-bit*)
5833
        case $host in
5834
          x86_64-*kfreebsd*-gnu)
5835
            LD="${LD-ld} -m elf_x86_64_fbsd"
5836
            ;;
5837
          x86_64-*linux*)
5838
            LD="${LD-ld} -m elf_x86_64"
5839
            ;;
5840
          ppc*-*linux*|powerpc*-*linux*)
5841
            LD="${LD-ld} -m elf64ppc"
5842
            ;;
5843
          s390*-*linux*|s390*-*tpf*)
5844
            LD="${LD-ld} -m elf64_s390"
5845
            ;;
5846
          sparc*-*linux*)
5847
            LD="${LD-ld} -m elf64_sparc"
5848
            ;;
5849
        esac
5850
        ;;
5851 19 jeremybenn
    esac
5852
  fi
5853
  rm -rf conftest*
5854
  ;;
5855
 
5856
*-*-sco3.2v5*)
5857
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5858
  SAVE_CFLAGS="$CFLAGS"
5859
  CFLAGS="$CFLAGS -belf"
5860 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5861 82 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5862 121 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then
5863 82 jeremybenn
  $as_echo_n "(cached) " >&6
5864 19 jeremybenn
else
5865
  ac_ext=c
5866
ac_cpp='$CPP $CPPFLAGS'
5867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870
 
5871 121 jeremybenn
     cat >conftest.$ac_ext <<_ACEOF
5872
/* confdefs.h.  */
5873
_ACEOF
5874
cat confdefs.h >>conftest.$ac_ext
5875
cat >>conftest.$ac_ext <<_ACEOF
5876 19 jeremybenn
/* end confdefs.h.  */
5877
 
5878
int
5879
main ()
5880
{
5881
 
5882
  ;
5883
  return 0;
5884
}
5885
_ACEOF
5886 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
5887
if { (ac_try="$ac_link"
5888
case "(($ac_try" in
5889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890
  *) ac_try_echo=$ac_try;;
5891
esac
5892
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5893
$as_echo "$ac_try_echo") >&5
5894
  (eval "$ac_link") 2>conftest.er1
5895
  ac_status=$?
5896
  grep -v '^ *+' conftest.er1 >conftest.err
5897
  rm -f conftest.er1
5898
  cat conftest.err >&5
5899
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900
  (exit $ac_status); } && {
5901
         test -z "$ac_c_werror_flag" ||
5902
         test ! -s conftest.err
5903
       } && test -s conftest$ac_exeext && {
5904
         test "$cross_compiling" = yes ||
5905
         $as_test_x conftest$ac_exeext
5906
       }; then
5907 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5908
else
5909 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5910
sed 's/^/| /' conftest.$ac_ext >&5
5911
 
5912
        lt_cv_cc_needs_belf=no
5913 19 jeremybenn
fi
5914 121 jeremybenn
 
5915
rm -rf conftest.dSYM
5916
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5917
      conftest$ac_exeext conftest.$ac_ext
5918 19 jeremybenn
     ac_ext=c
5919
ac_cpp='$CPP $CPPFLAGS'
5920
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5923
 
5924
fi
5925 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5926 82 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5927 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5928
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5929
    CFLAGS="$SAVE_CFLAGS"
5930
  fi
5931
  ;;
5932
sparc*-*solaris*)
5933
  # Find out which ABI we are using.
5934
  echo 'int i;' > conftest.$ac_ext
5935 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936 19 jeremybenn
  (eval $ac_compile) 2>&5
5937
  ac_status=$?
5938 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939
  (exit $ac_status); }; then
5940 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5941
    *64-bit*)
5942
      case $lt_cv_prog_gnu_ld in
5943
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5944 82 jeremybenn
      *)
5945
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5946
          LD="${LD-ld} -64"
5947
        fi
5948
        ;;
5949 19 jeremybenn
      esac
5950
      ;;
5951
    esac
5952
  fi
5953
  rm -rf conftest*
5954
  ;;
5955 82 jeremybenn
esac
5956 19 jeremybenn
 
5957 82 jeremybenn
need_locks="$enable_libtool_lock"
5958 19 jeremybenn
 
5959 82 jeremybenn
 
5960
  case $host_os in
5961
    rhapsody* | darwin*)
5962
    if test -n "$ac_tool_prefix"; then
5963
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5964
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5965 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5967 121 jeremybenn
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5968 82 jeremybenn
  $as_echo_n "(cached) " >&6
5969
else
5970
  if test -n "$DSYMUTIL"; then
5971
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5972
else
5973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974
for as_dir in $PATH
5975
do
5976
  IFS=$as_save_IFS
5977
  test -z "$as_dir" && as_dir=.
5978 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5979 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5980
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5981 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 82 jeremybenn
    break 2
5983
  fi
5984
done
5985 121 jeremybenn
done
5986 82 jeremybenn
IFS=$as_save_IFS
5987
 
5988
fi
5989
fi
5990
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5991
if test -n "$DSYMUTIL"; then
5992 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5993 82 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5994
else
5995 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5996 82 jeremybenn
$as_echo "no" >&6; }
5997
fi
5998
 
5999
 
6000
fi
6001
if test -z "$ac_cv_prog_DSYMUTIL"; then
6002
  ac_ct_DSYMUTIL=$DSYMUTIL
6003
  # Extract the first word of "dsymutil", so it can be a program name with args.
6004
set dummy dsymutil; ac_word=$2
6005 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6007 121 jeremybenn
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6008 82 jeremybenn
  $as_echo_n "(cached) " >&6
6009
else
6010
  if test -n "$ac_ct_DSYMUTIL"; then
6011
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6012
else
6013
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014
for as_dir in $PATH
6015
do
6016
  IFS=$as_save_IFS
6017
  test -z "$as_dir" && as_dir=.
6018 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6019 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6021 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 82 jeremybenn
    break 2
6023
  fi
6024
done
6025 121 jeremybenn
done
6026 82 jeremybenn
IFS=$as_save_IFS
6027
 
6028
fi
6029
fi
6030
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6031
if test -n "$ac_ct_DSYMUTIL"; then
6032 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6033 82 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6034
else
6035 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6036 82 jeremybenn
$as_echo "no" >&6; }
6037
fi
6038
 
6039
  if test "x$ac_ct_DSYMUTIL" = x; then
6040
    DSYMUTIL=":"
6041
  else
6042
    case $cross_compiling:$ac_tool_warned in
6043
yes:)
6044 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6045 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046
ac_tool_warned=yes ;;
6047 19 jeremybenn
esac
6048 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
6049
  fi
6050
else
6051
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6052
fi
6053 19 jeremybenn
 
6054 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
6055
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6056
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6057 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6059 121 jeremybenn
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6060 82 jeremybenn
  $as_echo_n "(cached) " >&6
6061
else
6062
  if test -n "$NMEDIT"; then
6063
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6064
else
6065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066
for as_dir in $PATH
6067
do
6068
  IFS=$as_save_IFS
6069
  test -z "$as_dir" && as_dir=.
6070 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6071 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6073 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 82 jeremybenn
    break 2
6075
  fi
6076
done
6077 121 jeremybenn
done
6078 82 jeremybenn
IFS=$as_save_IFS
6079 19 jeremybenn
 
6080 82 jeremybenn
fi
6081
fi
6082
NMEDIT=$ac_cv_prog_NMEDIT
6083
if test -n "$NMEDIT"; then
6084 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6085 82 jeremybenn
$as_echo "$NMEDIT" >&6; }
6086
else
6087 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6088 82 jeremybenn
$as_echo "no" >&6; }
6089
fi
6090 19 jeremybenn
 
6091 82 jeremybenn
 
6092
fi
6093
if test -z "$ac_cv_prog_NMEDIT"; then
6094
  ac_ct_NMEDIT=$NMEDIT
6095
  # Extract the first word of "nmedit", so it can be a program name with args.
6096
set dummy nmedit; ac_word=$2
6097 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6099 121 jeremybenn
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6100 82 jeremybenn
  $as_echo_n "(cached) " >&6
6101
else
6102
  if test -n "$ac_ct_NMEDIT"; then
6103
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6104
else
6105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106
for as_dir in $PATH
6107
do
6108
  IFS=$as_save_IFS
6109
  test -z "$as_dir" && as_dir=.
6110 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6111 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6113 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 82 jeremybenn
    break 2
6115
  fi
6116
done
6117 121 jeremybenn
done
6118 82 jeremybenn
IFS=$as_save_IFS
6119
 
6120
fi
6121
fi
6122
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6123
if test -n "$ac_ct_NMEDIT"; then
6124 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6125 82 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
6126
else
6127 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6128 82 jeremybenn
$as_echo "no" >&6; }
6129
fi
6130
 
6131
  if test "x$ac_ct_NMEDIT" = x; then
6132
    NMEDIT=":"
6133
  else
6134
    case $cross_compiling:$ac_tool_warned in
6135
yes:)
6136 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6137 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138
ac_tool_warned=yes ;;
6139
esac
6140
    NMEDIT=$ac_ct_NMEDIT
6141
  fi
6142
else
6143
  NMEDIT="$ac_cv_prog_NMEDIT"
6144
fi
6145
 
6146
    if test -n "$ac_tool_prefix"; then
6147
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6148
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6149 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6151 121 jeremybenn
if test "${ac_cv_prog_LIPO+set}" = set; then
6152 82 jeremybenn
  $as_echo_n "(cached) " >&6
6153
else
6154
  if test -n "$LIPO"; then
6155
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6156
else
6157
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158
for as_dir in $PATH
6159
do
6160
  IFS=$as_save_IFS
6161
  test -z "$as_dir" && as_dir=.
6162 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6163 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6165 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 82 jeremybenn
    break 2
6167
  fi
6168
done
6169 121 jeremybenn
done
6170 82 jeremybenn
IFS=$as_save_IFS
6171
 
6172
fi
6173
fi
6174
LIPO=$ac_cv_prog_LIPO
6175
if test -n "$LIPO"; then
6176 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6177 82 jeremybenn
$as_echo "$LIPO" >&6; }
6178
else
6179 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6180 82 jeremybenn
$as_echo "no" >&6; }
6181
fi
6182
 
6183
 
6184
fi
6185
if test -z "$ac_cv_prog_LIPO"; then
6186
  ac_ct_LIPO=$LIPO
6187
  # Extract the first word of "lipo", so it can be a program name with args.
6188
set dummy lipo; ac_word=$2
6189 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6191 121 jeremybenn
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6192 82 jeremybenn
  $as_echo_n "(cached) " >&6
6193
else
6194
  if test -n "$ac_ct_LIPO"; then
6195
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6196
else
6197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198
for as_dir in $PATH
6199
do
6200
  IFS=$as_save_IFS
6201
  test -z "$as_dir" && as_dir=.
6202 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6203 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204
    ac_cv_prog_ac_ct_LIPO="lipo"
6205 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 82 jeremybenn
    break 2
6207
  fi
6208
done
6209 121 jeremybenn
done
6210 82 jeremybenn
IFS=$as_save_IFS
6211
 
6212
fi
6213
fi
6214
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6215
if test -n "$ac_ct_LIPO"; then
6216 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6217 82 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6218
else
6219 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6220 82 jeremybenn
$as_echo "no" >&6; }
6221
fi
6222
 
6223
  if test "x$ac_ct_LIPO" = x; then
6224
    LIPO=":"
6225
  else
6226
    case $cross_compiling:$ac_tool_warned in
6227
yes:)
6228 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6229 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230
ac_tool_warned=yes ;;
6231
esac
6232
    LIPO=$ac_ct_LIPO
6233
  fi
6234
else
6235
  LIPO="$ac_cv_prog_LIPO"
6236
fi
6237
 
6238
    if test -n "$ac_tool_prefix"; then
6239
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6240
set dummy ${ac_tool_prefix}otool; ac_word=$2
6241 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6243 121 jeremybenn
if test "${ac_cv_prog_OTOOL+set}" = set; then
6244 82 jeremybenn
  $as_echo_n "(cached) " >&6
6245
else
6246
  if test -n "$OTOOL"; then
6247
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6248
else
6249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250
for as_dir in $PATH
6251
do
6252
  IFS=$as_save_IFS
6253
  test -z "$as_dir" && as_dir=.
6254 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6255 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6257 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 82 jeremybenn
    break 2
6259
  fi
6260
done
6261 121 jeremybenn
done
6262 82 jeremybenn
IFS=$as_save_IFS
6263
 
6264
fi
6265
fi
6266
OTOOL=$ac_cv_prog_OTOOL
6267
if test -n "$OTOOL"; then
6268 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6269 82 jeremybenn
$as_echo "$OTOOL" >&6; }
6270
else
6271 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6272 82 jeremybenn
$as_echo "no" >&6; }
6273
fi
6274
 
6275
 
6276
fi
6277
if test -z "$ac_cv_prog_OTOOL"; then
6278
  ac_ct_OTOOL=$OTOOL
6279
  # Extract the first word of "otool", so it can be a program name with args.
6280
set dummy otool; ac_word=$2
6281 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6283 121 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6284 82 jeremybenn
  $as_echo_n "(cached) " >&6
6285
else
6286
  if test -n "$ac_ct_OTOOL"; then
6287
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6288
else
6289
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290
for as_dir in $PATH
6291
do
6292
  IFS=$as_save_IFS
6293
  test -z "$as_dir" && as_dir=.
6294 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6295 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296
    ac_cv_prog_ac_ct_OTOOL="otool"
6297 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 82 jeremybenn
    break 2
6299
  fi
6300
done
6301 121 jeremybenn
done
6302 82 jeremybenn
IFS=$as_save_IFS
6303
 
6304
fi
6305
fi
6306
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6307
if test -n "$ac_ct_OTOOL"; then
6308 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6309 82 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6310
else
6311 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6312 82 jeremybenn
$as_echo "no" >&6; }
6313
fi
6314
 
6315
  if test "x$ac_ct_OTOOL" = x; then
6316
    OTOOL=":"
6317
  else
6318
    case $cross_compiling:$ac_tool_warned in
6319
yes:)
6320 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6321 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322
ac_tool_warned=yes ;;
6323
esac
6324
    OTOOL=$ac_ct_OTOOL
6325
  fi
6326
else
6327
  OTOOL="$ac_cv_prog_OTOOL"
6328
fi
6329
 
6330
    if test -n "$ac_tool_prefix"; then
6331
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6332
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6333 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6334 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6335 121 jeremybenn
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6336 82 jeremybenn
  $as_echo_n "(cached) " >&6
6337
else
6338
  if test -n "$OTOOL64"; then
6339
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6340
else
6341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342
for as_dir in $PATH
6343
do
6344
  IFS=$as_save_IFS
6345
  test -z "$as_dir" && as_dir=.
6346 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6347 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6349 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 82 jeremybenn
    break 2
6351
  fi
6352
done
6353 121 jeremybenn
done
6354 82 jeremybenn
IFS=$as_save_IFS
6355
 
6356
fi
6357
fi
6358
OTOOL64=$ac_cv_prog_OTOOL64
6359
if test -n "$OTOOL64"; then
6360 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6361 82 jeremybenn
$as_echo "$OTOOL64" >&6; }
6362
else
6363 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6364 82 jeremybenn
$as_echo "no" >&6; }
6365
fi
6366
 
6367
 
6368
fi
6369
if test -z "$ac_cv_prog_OTOOL64"; then
6370
  ac_ct_OTOOL64=$OTOOL64
6371
  # Extract the first word of "otool64", so it can be a program name with args.
6372
set dummy otool64; ac_word=$2
6373 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6374 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6375 121 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6376 82 jeremybenn
  $as_echo_n "(cached) " >&6
6377
else
6378
  if test -n "$ac_ct_OTOOL64"; then
6379
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6380
else
6381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382
for as_dir in $PATH
6383
do
6384
  IFS=$as_save_IFS
6385
  test -z "$as_dir" && as_dir=.
6386 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6387 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6389 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 82 jeremybenn
    break 2
6391
  fi
6392
done
6393 121 jeremybenn
done
6394 82 jeremybenn
IFS=$as_save_IFS
6395
 
6396
fi
6397
fi
6398
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6399
if test -n "$ac_ct_OTOOL64"; then
6400 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6401 82 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6402
else
6403 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6404 82 jeremybenn
$as_echo "no" >&6; }
6405
fi
6406
 
6407
  if test "x$ac_ct_OTOOL64" = x; then
6408
    OTOOL64=":"
6409
  else
6410
    case $cross_compiling:$ac_tool_warned in
6411
yes:)
6412 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6413 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6414
ac_tool_warned=yes ;;
6415
esac
6416
    OTOOL64=$ac_ct_OTOOL64
6417
  fi
6418
else
6419
  OTOOL64="$ac_cv_prog_OTOOL64"
6420
fi
6421
 
6422
 
6423
 
6424
 
6425
 
6426
 
6427
 
6428
 
6429
 
6430
 
6431
 
6432
 
6433
 
6434
 
6435
 
6436
 
6437
 
6438
 
6439
 
6440
 
6441
 
6442
 
6443
 
6444
 
6445
 
6446
 
6447
 
6448 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6449 82 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
6450 121 jeremybenn
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6451 82 jeremybenn
  $as_echo_n "(cached) " >&6
6452
else
6453
  lt_cv_apple_cc_single_mod=no
6454
      if test -z "${LT_MULTI_MODULE}"; then
6455
        # By default we will add the -single_module flag. You can override
6456
        # by either setting the environment variable LT_MULTI_MODULE
6457
        # non-empty at configure time, or by adding -multi_module to the
6458
        # link flags.
6459
        rm -rf libconftest.dylib*
6460
        echo "int foo(void){return 1;}" > conftest.c
6461
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6462
-dynamiclib -Wl,-single_module conftest.c" >&5
6463
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6464
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6465
        _lt_result=$?
6466
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6467
          lt_cv_apple_cc_single_mod=yes
6468
        else
6469
          cat conftest.err >&5
6470
        fi
6471
        rm -rf libconftest.dylib*
6472
        rm -f conftest.*
6473
      fi
6474
fi
6475 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6476 82 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6477 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6478 82 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6479 121 jeremybenn
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6480 82 jeremybenn
  $as_echo_n "(cached) " >&6
6481
else
6482
  lt_cv_ld_exported_symbols_list=no
6483
      save_LDFLAGS=$LDFLAGS
6484
      echo "_main" > conftest.sym
6485
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6486 121 jeremybenn
      cat >conftest.$ac_ext <<_ACEOF
6487
/* confdefs.h.  */
6488
_ACEOF
6489
cat confdefs.h >>conftest.$ac_ext
6490
cat >>conftest.$ac_ext <<_ACEOF
6491 82 jeremybenn
/* end confdefs.h.  */
6492
 
6493
int
6494
main ()
6495
{
6496
 
6497
  ;
6498
  return 0;
6499
}
6500
_ACEOF
6501 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
6502
if { (ac_try="$ac_link"
6503
case "(($ac_try" in
6504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505
  *) ac_try_echo=$ac_try;;
6506
esac
6507
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6508
$as_echo "$ac_try_echo") >&5
6509
  (eval "$ac_link") 2>conftest.er1
6510
  ac_status=$?
6511
  grep -v '^ *+' conftest.er1 >conftest.err
6512
  rm -f conftest.er1
6513
  cat conftest.err >&5
6514
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515
  (exit $ac_status); } && {
6516
         test -z "$ac_c_werror_flag" ||
6517
         test ! -s conftest.err
6518
       } && test -s conftest$ac_exeext && {
6519
         test "$cross_compiling" = yes ||
6520
         $as_test_x conftest$ac_exeext
6521
       }; then
6522 82 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6523
else
6524 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6525
sed 's/^/| /' conftest.$ac_ext >&5
6526
 
6527
        lt_cv_ld_exported_symbols_list=no
6528 82 jeremybenn
fi
6529 121 jeremybenn
 
6530
rm -rf conftest.dSYM
6531
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6532
      conftest$ac_exeext conftest.$ac_ext
6533 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
6534
 
6535
fi
6536 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6537 82 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6538
    case $host_os in
6539
    rhapsody* | darwin1.[012])
6540
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6541
    darwin1.*)
6542
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6543
    darwin*) # darwin 5.x on
6544
      # if running on 10.5 or later, the deployment target defaults
6545
      # to the OS version, if on x86, and 10.4, the deployment
6546
      # target defaults to 10.4. Don't you love it?
6547
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6548
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6549
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6550
        10.[012]*)
6551
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6552
        10.*)
6553
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6554
      esac
6555
    ;;
6556
  esac
6557
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6558
      _lt_dar_single_mod='$single_module'
6559
    fi
6560
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6561
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6562
    else
6563
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6564
    fi
6565
    if test "$DSYMUTIL" != ":"; then
6566
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6567
    else
6568
      _lt_dsymutil=
6569
    fi
6570
    ;;
6571
  esac
6572
 
6573 121 jeremybenn
 
6574 19 jeremybenn
for ac_header in dlfcn.h
6575 121 jeremybenn
do
6576
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6577
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6578
$as_echo_n "checking for $ac_header... " >&6; }
6579
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6580
  $as_echo_n "(cached) " >&6
6581
else
6582
  cat >conftest.$ac_ext <<_ACEOF
6583
/* confdefs.h.  */
6584
_ACEOF
6585
cat confdefs.h >>conftest.$ac_ext
6586
cat >>conftest.$ac_ext <<_ACEOF
6587
/* end confdefs.h.  */
6588
$ac_includes_default
6589
 
6590
#include <$ac_header>
6591
_ACEOF
6592
rm -f conftest.$ac_objext
6593
if { (ac_try="$ac_compile"
6594
case "(($ac_try" in
6595
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596
  *) ac_try_echo=$ac_try;;
6597
esac
6598
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6599
$as_echo "$ac_try_echo") >&5
6600
  (eval "$ac_compile") 2>conftest.er1
6601
  ac_status=$?
6602
  grep -v '^ *+' conftest.er1 >conftest.err
6603
  rm -f conftest.er1
6604
  cat conftest.err >&5
6605
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606
  (exit $ac_status); } && {
6607
         test -z "$ac_c_werror_flag" ||
6608
         test ! -s conftest.err
6609
       } && test -s conftest.$ac_objext; then
6610
  eval "$as_ac_Header=yes"
6611
else
6612
  $as_echo "$as_me: failed program was:" >&5
6613
sed 's/^/| /' conftest.$ac_ext >&5
6614
 
6615
        eval "$as_ac_Header=no"
6616
fi
6617
 
6618
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619
fi
6620
ac_res=`eval 'as_val=${'$as_ac_Header'}
6621
                 $as_echo "$as_val"'`
6622
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6623
$as_echo "$ac_res" >&6; }
6624
as_val=`eval 'as_val=${'$as_ac_Header'}
6625
                 $as_echo "$as_val"'`
6626
   if test "x$as_val" = x""yes; then
6627 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6628 121 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6629 19 jeremybenn
_ACEOF
6630
 
6631
fi
6632
 
6633
done
6634
 
6635
 
6636
 
6637 82 jeremybenn
# Set options
6638 19 jeremybenn
 
6639
 
6640
 
6641 82 jeremybenn
        enable_dlopen=no
6642 19 jeremybenn
 
6643
 
6644 82 jeremybenn
  enable_win32_dll=no
6645 19 jeremybenn
 
6646
 
6647 82 jeremybenn
            # Check whether --enable-shared was given.
6648 121 jeremybenn
if test "${enable_shared+set}" = set; then
6649 82 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6650
    case $enableval in
6651
    yes) enable_shared=yes ;;
6652
    no) enable_shared=no ;;
6653
    *)
6654
      enable_shared=no
6655
      # Look at the argument we got.  We use all the common list separators.
6656
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6657
      for pkg in $enableval; do
6658
        IFS="$lt_save_ifs"
6659
        if test "X$pkg" = "X$p"; then
6660
          enable_shared=yes
6661
        fi
6662
      done
6663
      IFS="$lt_save_ifs"
6664
      ;;
6665
    esac
6666 19 jeremybenn
else
6667 82 jeremybenn
  enable_shared=yes
6668 19 jeremybenn
fi
6669
 
6670
 
6671
 
6672
 
6673
 
6674
 
6675
 
6676
 
6677
 
6678 82 jeremybenn
  # Check whether --enable-static was given.
6679 121 jeremybenn
if test "${enable_static+set}" = set; then
6680 82 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6681
    case $enableval in
6682
    yes) enable_static=yes ;;
6683
    no) enable_static=no ;;
6684
    *)
6685
     enable_static=no
6686
      # Look at the argument we got.  We use all the common list separators.
6687
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6688
      for pkg in $enableval; do
6689
        IFS="$lt_save_ifs"
6690
        if test "X$pkg" = "X$p"; then
6691
          enable_static=yes
6692
        fi
6693
      done
6694
      IFS="$lt_save_ifs"
6695
      ;;
6696
    esac
6697 19 jeremybenn
else
6698 82 jeremybenn
  enable_static=yes
6699 19 jeremybenn
fi
6700
 
6701
 
6702
 
6703
 
6704
 
6705
 
6706
 
6707
 
6708
 
6709
 
6710 82 jeremybenn
# Check whether --with-pic was given.
6711 121 jeremybenn
if test "${with_pic+set}" = set; then
6712 82 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6713 19 jeremybenn
else
6714 82 jeremybenn
  pic_mode=default
6715 19 jeremybenn
fi
6716
 
6717
 
6718 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6719 19 jeremybenn
 
6720
 
6721
 
6722
 
6723
 
6724
 
6725
 
6726 82 jeremybenn
  # Check whether --enable-fast-install was given.
6727 121 jeremybenn
if test "${enable_fast_install+set}" = set; then
6728 82 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6729
    case $enableval in
6730
    yes) enable_fast_install=yes ;;
6731
    no) enable_fast_install=no ;;
6732
    *)
6733
      enable_fast_install=no
6734
      # Look at the argument we got.  We use all the common list separators.
6735
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6736
      for pkg in $enableval; do
6737
        IFS="$lt_save_ifs"
6738
        if test "X$pkg" = "X$p"; then
6739
          enable_fast_install=yes
6740
        fi
6741
      done
6742
      IFS="$lt_save_ifs"
6743
      ;;
6744
    esac
6745 19 jeremybenn
else
6746 82 jeremybenn
  enable_fast_install=yes
6747 19 jeremybenn
fi
6748
 
6749
 
6750
 
6751
 
6752
 
6753
 
6754
 
6755
 
6756
 
6757
 
6758
 
6759 82 jeremybenn
# This can be used to rebuild libtool when needed
6760
LIBTOOL_DEPS="$ltmain"
6761 19 jeremybenn
 
6762 82 jeremybenn
# Always use our own libtool.
6763
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6764 19 jeremybenn
 
6765
 
6766
 
6767
 
6768
 
6769
 
6770
 
6771
 
6772
 
6773
 
6774
 
6775
 
6776
 
6777
 
6778
 
6779
 
6780
 
6781
 
6782
 
6783
 
6784
 
6785
 
6786
 
6787
 
6788
 
6789 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6790 19 jeremybenn
 
6791
 
6792
 
6793
 
6794
 
6795
 
6796
 
6797
 
6798
 
6799
 
6800
 
6801
 
6802
 
6803
 
6804 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6805
   setopt NO_GLOB_SUBST
6806 19 jeremybenn
fi
6807
 
6808 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6809 82 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6810 121 jeremybenn
if test "${lt_cv_objdir+set}" = set; then
6811 82 jeremybenn
  $as_echo_n "(cached) " >&6
6812 19 jeremybenn
else
6813
  rm -f .libs 2>/dev/null
6814
mkdir .libs 2>/dev/null
6815
if test -d .libs; then
6816
  lt_cv_objdir=.libs
6817
else
6818
  # MS-DOS does not allow filenames that begin with a dot.
6819
  lt_cv_objdir=_libs
6820
fi
6821
rmdir .libs 2>/dev/null
6822
fi
6823 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6824 82 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6825 19 jeremybenn
objdir=$lt_cv_objdir
6826
 
6827
 
6828
 
6829
 
6830
 
6831 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6832
#define LT_OBJDIR "$lt_cv_objdir/"
6833
_ACEOF
6834
 
6835
 
6836
 
6837
 
6838
 
6839
 
6840
 
6841
 
6842
 
6843
 
6844
 
6845
 
6846
 
6847
 
6848
 
6849
 
6850
 
6851 19 jeremybenn
case $host_os in
6852
aix3*)
6853
  # AIX sometimes has problems with the GCC collect2 program.  For some
6854
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6855
  # vanish in a puff of smoke.
6856
  if test "X${COLLECT_NAMES+set}" != Xset; then
6857
    COLLECT_NAMES=
6858
    export COLLECT_NAMES
6859
  fi
6860
  ;;
6861
esac
6862
 
6863
# Sed substitution that helps us do robust quoting.  It backslashifies
6864
# metacharacters that are still active within double-quoted strings.
6865 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6866 19 jeremybenn
 
6867
# Same as above, but do not quote variable references.
6868 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6869 19 jeremybenn
 
6870
# Sed substitution to delay expansion of an escaped shell variable in a
6871
# double_quote_subst'ed string.
6872
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6873
 
6874 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6875
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6876
 
6877 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6878
no_glob_subst='s/\*/\\\*/g'
6879
 
6880
# Global variables:
6881 82 jeremybenn
ofile=libtool
6882 19 jeremybenn
can_build_shared=yes
6883
 
6884
# All known linkers require a `.a' archive for static linking (except MSVC,
6885
# which needs '.lib').
6886
libext=a
6887 82 jeremybenn
 
6888 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6889
 
6890
old_CC="$CC"
6891
old_CFLAGS="$CFLAGS"
6892
 
6893
# Set sane defaults for various variables
6894
test -z "$CC" && CC=cc
6895
test -z "$LTCC" && LTCC=$CC
6896
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6897
test -z "$LD" && LD=ld
6898
test -z "$ac_objext" && ac_objext=o
6899
 
6900
for cc_temp in $compiler""; do
6901
  case $cc_temp in
6902
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6903
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6904
    \-*) ;;
6905
    *) break;;
6906
  esac
6907
done
6908 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6909 19 jeremybenn
 
6910
 
6911
# Only perform the check for file, if the check method requires it
6912 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6913 19 jeremybenn
case $deplibs_check_method in
6914
file_magic*)
6915
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6916 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6917 82 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6918 121 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6919 82 jeremybenn
  $as_echo_n "(cached) " >&6
6920 19 jeremybenn
else
6921
  case $MAGIC_CMD in
6922
[\\/*] |  ?:[\\/]*)
6923
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6924
  ;;
6925
*)
6926
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6927
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6928
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6929
  for ac_dir in $ac_dummy; do
6930
    IFS="$lt_save_ifs"
6931
    test -z "$ac_dir" && ac_dir=.
6932
    if test -f $ac_dir/${ac_tool_prefix}file; then
6933
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6934
      if test -n "$file_magic_test_file"; then
6935
        case $deplibs_check_method in
6936
        "file_magic "*)
6937
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6938
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6939
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6940
            $EGREP "$file_magic_regex" > /dev/null; then
6941
            :
6942
          else
6943 82 jeremybenn
            cat <<_LT_EOF 1>&2
6944 19 jeremybenn
 
6945
*** Warning: the command libtool uses to detect shared libraries,
6946
*** $file_magic_cmd, produces output that libtool cannot recognize.
6947
*** The result is that libtool may fail to recognize shared libraries
6948
*** as such.  This will affect the creation of libtool libraries that
6949
*** depend on shared libraries, but programs linked with such libtool
6950
*** libraries will work regardless of this problem.  Nevertheless, you
6951
*** may want to report the problem to your system manager and/or to
6952
*** bug-libtool@gnu.org
6953
 
6954 82 jeremybenn
_LT_EOF
6955 19 jeremybenn
          fi ;;
6956
        esac
6957
      fi
6958
      break
6959
    fi
6960
  done
6961
  IFS="$lt_save_ifs"
6962
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6963
  ;;
6964
esac
6965
fi
6966
 
6967
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6968
if test -n "$MAGIC_CMD"; then
6969 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6970 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6971 19 jeremybenn
else
6972 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6973 82 jeremybenn
$as_echo "no" >&6; }
6974 19 jeremybenn
fi
6975
 
6976 82 jeremybenn
 
6977
 
6978
 
6979
 
6980 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6981
  if test -n "$ac_tool_prefix"; then
6982 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for file" >&5
6983 82 jeremybenn
$as_echo_n "checking for file... " >&6; }
6984 121 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6985 82 jeremybenn
  $as_echo_n "(cached) " >&6
6986 19 jeremybenn
else
6987
  case $MAGIC_CMD in
6988
[\\/*] |  ?:[\\/]*)
6989
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6990
  ;;
6991
*)
6992
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6993
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6994
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6995
  for ac_dir in $ac_dummy; do
6996
    IFS="$lt_save_ifs"
6997
    test -z "$ac_dir" && ac_dir=.
6998
    if test -f $ac_dir/file; then
6999
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7000
      if test -n "$file_magic_test_file"; then
7001
        case $deplibs_check_method in
7002
        "file_magic "*)
7003
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7004
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7005
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7006
            $EGREP "$file_magic_regex" > /dev/null; then
7007
            :
7008
          else
7009 82 jeremybenn
            cat <<_LT_EOF 1>&2
7010 19 jeremybenn
 
7011
*** Warning: the command libtool uses to detect shared libraries,
7012
*** $file_magic_cmd, produces output that libtool cannot recognize.
7013
*** The result is that libtool may fail to recognize shared libraries
7014
*** as such.  This will affect the creation of libtool libraries that
7015
*** depend on shared libraries, but programs linked with such libtool
7016
*** libraries will work regardless of this problem.  Nevertheless, you
7017
*** may want to report the problem to your system manager and/or to
7018
*** bug-libtool@gnu.org
7019
 
7020 82 jeremybenn
_LT_EOF
7021 19 jeremybenn
          fi ;;
7022
        esac
7023
      fi
7024
      break
7025
    fi
7026
  done
7027
  IFS="$lt_save_ifs"
7028
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7029
  ;;
7030
esac
7031
fi
7032
 
7033
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7034
if test -n "$MAGIC_CMD"; then
7035 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7036 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
7037 19 jeremybenn
else
7038 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
7039 82 jeremybenn
$as_echo "no" >&6; }
7040 19 jeremybenn
fi
7041
 
7042 82 jeremybenn
 
7043 19 jeremybenn
  else
7044
    MAGIC_CMD=:
7045
  fi
7046
fi
7047
 
7048
  fi
7049
  ;;
7050
esac
7051
 
7052 82 jeremybenn
# Use C for the default configuration in the libtool script
7053 19 jeremybenn
 
7054
lt_save_CC="$CC"
7055
ac_ext=c
7056
ac_cpp='$CPP $CPPFLAGS'
7057
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7058
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7059
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7060
 
7061
 
7062
# Source file extension for C test sources.
7063
ac_ext=c
7064
 
7065
# Object file extension for compiled C test sources.
7066
objext=o
7067
objext=$objext
7068
 
7069
# Code to be used in simple compile tests
7070
lt_simple_compile_test_code="int some_variable = 0;"
7071
 
7072
# Code to be used in simple link tests
7073
lt_simple_link_test_code='int main(){return(0);}'
7074
 
7075
 
7076 82 jeremybenn
 
7077
 
7078
 
7079
 
7080
 
7081 19 jeremybenn
# If no C compiler was specified, use CC.
7082
LTCC=${LTCC-"$CC"}
7083
 
7084
# If no C compiler flags were specified, use CFLAGS.
7085
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7086
 
7087
# Allow CC to be a program name with arguments.
7088
compiler=$CC
7089
 
7090 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
7091
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7092
compiler_DEFAULT=$CC
7093 19 jeremybenn
 
7094
# save warnings/boilerplate of simple test code
7095
ac_outfile=conftest.$ac_objext
7096
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7097
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7098
_lt_compiler_boilerplate=`cat conftest.err`
7099 82 jeremybenn
$RM conftest*
7100 19 jeremybenn
 
7101
ac_outfile=conftest.$ac_objext
7102
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7103
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7104
_lt_linker_boilerplate=`cat conftest.err`
7105 82 jeremybenn
$RM -r conftest*
7106 19 jeremybenn
 
7107
 
7108 82 jeremybenn
## CAVEAT EMPTOR:
7109
## There is no encapsulation within the following macros, do not change
7110
## the running order or otherwise move them around unless you know exactly
7111
## what you are doing...
7112
if test -n "$compiler"; then
7113 19 jeremybenn
 
7114
lt_prog_compiler_no_builtin_flag=
7115
 
7116
if test "$GCC" = yes; then
7117
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7118
 
7119 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7120 82 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7121 121 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7122 82 jeremybenn
  $as_echo_n "(cached) " >&6
7123 19 jeremybenn
else
7124
  lt_cv_prog_compiler_rtti_exceptions=no
7125 82 jeremybenn
   ac_outfile=conftest.$ac_objext
7126 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7127
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7128
   # Insert the option either (1) after the last *FLAGS variable, or
7129
   # (2) before a word containing "conftest.", or (3) at the end.
7130
   # Note that $ac_compile itself does not contain backslashes and begins
7131
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7132
   # The option is referenced via a variable to avoid confusing sed.
7133
   lt_compile=`echo "$ac_compile" | $SED \
7134
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7135
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7136
   -e 's:$: $lt_compiler_flag:'`
7137 127 jeremybenn
   (eval echo "\"\$as_me:7137: $lt_compile\"" >&5)
7138 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7139
   ac_status=$?
7140
   cat conftest.err >&5
7141 127 jeremybenn
   echo "$as_me:7141: \$? = $ac_status" >&5
7142 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7143
     # The compiler can only warn and ignore the option if not recognized
7144
     # So say no if there are warnings other than the usual output.
7145 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7146 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7147
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7148
       lt_cv_prog_compiler_rtti_exceptions=yes
7149
     fi
7150
   fi
7151 82 jeremybenn
   $RM conftest*
7152 19 jeremybenn
 
7153
fi
7154 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7155 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7156 19 jeremybenn
 
7157
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7158
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7159
else
7160
    :
7161
fi
7162
 
7163
fi
7164
 
7165 82 jeremybenn
 
7166
 
7167
 
7168
 
7169
 
7170
  lt_prog_compiler_wl=
7171 19 jeremybenn
lt_prog_compiler_pic=
7172
lt_prog_compiler_static=
7173
 
7174 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7175 82 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7176 19 jeremybenn
 
7177
  if test "$GCC" = yes; then
7178
    lt_prog_compiler_wl='-Wl,'
7179
    lt_prog_compiler_static='-static'
7180
 
7181
    case $host_os in
7182
      aix*)
7183
      # All AIX code is PIC.
7184
      if test "$host_cpu" = ia64; then
7185
        # AIX 5 now supports IA64 processor
7186
        lt_prog_compiler_static='-Bstatic'
7187
      fi
7188
      ;;
7189
 
7190
    amigaos*)
7191 82 jeremybenn
      case $host_cpu in
7192
      powerpc)
7193
            # see comment about AmigaOS4 .so support
7194
            lt_prog_compiler_pic='-fPIC'
7195
        ;;
7196
      m68k)
7197
            # FIXME: we need at least 68020 code to build shared libraries, but
7198
            # adding the `-m68020' flag to GCC prevents building anything better,
7199
            # like `-m68040'.
7200
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7201
        ;;
7202
      esac
7203 19 jeremybenn
      ;;
7204
 
7205
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7206
      # PIC is the default for these OSes.
7207
      ;;
7208
 
7209 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7210 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7211
      # built for inclusion in a dll (and should export symbols for example).
7212
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7213
      # (--disable-auto-import) libraries
7214
      lt_prog_compiler_pic='-DDLL_EXPORT'
7215
      ;;
7216
 
7217
    darwin* | rhapsody*)
7218
      # PIC is the default on this platform
7219
      # Common symbols not allowed in MH_DYLIB files
7220
      lt_prog_compiler_pic='-fno-common'
7221
      ;;
7222
 
7223 82 jeremybenn
    hpux*)
7224
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7225
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7226
      # sets the default TLS model and affects inlining.
7227
      case $host_cpu in
7228
      hppa*64*)
7229
        # +Z the default
7230
        ;;
7231
      *)
7232
        lt_prog_compiler_pic='-fPIC'
7233
        ;;
7234
      esac
7235
      ;;
7236
 
7237 19 jeremybenn
    interix[3-9]*)
7238
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7239
      # Instead, we relocate shared libraries at runtime.
7240
      ;;
7241
 
7242
    msdosdjgpp*)
7243
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7244
      # on systems that don't support them.
7245
      lt_prog_compiler_can_build_shared=no
7246
      enable_shared=no
7247
      ;;
7248
 
7249 82 jeremybenn
    *nto* | *qnx*)
7250
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7251
      # it will coredump.
7252
      lt_prog_compiler_pic='-fPIC -shared'
7253
      ;;
7254
 
7255 19 jeremybenn
    sysv4*MP*)
7256
      if test -d /usr/nec; then
7257
        lt_prog_compiler_pic=-Kconform_pic
7258
      fi
7259
      ;;
7260
 
7261
    *)
7262
      lt_prog_compiler_pic='-fPIC'
7263
      ;;
7264
    esac
7265
  else
7266
    # PORTME Check for flag to pass linker flags through the system compiler.
7267
    case $host_os in
7268
    aix*)
7269
      lt_prog_compiler_wl='-Wl,'
7270
      if test "$host_cpu" = ia64; then
7271
        # AIX 5 now supports IA64 processor
7272
        lt_prog_compiler_static='-Bstatic'
7273
      else
7274
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7275
      fi
7276
      ;;
7277
 
7278 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7279 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7280
      # built for inclusion in a dll (and should export symbols for example).
7281
      lt_prog_compiler_pic='-DDLL_EXPORT'
7282
      ;;
7283
 
7284
    hpux9* | hpux10* | hpux11*)
7285
      lt_prog_compiler_wl='-Wl,'
7286
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7287
      # not for PA HP-UX.
7288
      case $host_cpu in
7289
      hppa*64*|ia64*)
7290
        # +Z the default
7291
        ;;
7292
      *)
7293
        lt_prog_compiler_pic='+Z'
7294
        ;;
7295
      esac
7296
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7297
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7298
      ;;
7299
 
7300
    irix5* | irix6* | nonstopux*)
7301
      lt_prog_compiler_wl='-Wl,'
7302
      # PIC (with -KPIC) is the default.
7303
      lt_prog_compiler_static='-non_shared'
7304
      ;;
7305
 
7306
    linux* | k*bsd*-gnu)
7307
      case $cc_basename in
7308 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7309
      ecc*)
7310 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7311
        lt_prog_compiler_pic='-KPIC'
7312
        lt_prog_compiler_static='-static'
7313
        ;;
7314 82 jeremybenn
      # icc used to be incompatible with GCC.
7315
      # ICC 10 doesn't accept -KPIC any more.
7316
      icc* | ifort*)
7317
        lt_prog_compiler_wl='-Wl,'
7318
        lt_prog_compiler_pic='-fPIC'
7319
        lt_prog_compiler_static='-static'
7320
        ;;
7321
      # Lahey Fortran 8.1.
7322
      lf95*)
7323
        lt_prog_compiler_wl='-Wl,'
7324
        lt_prog_compiler_pic='--shared'
7325
        lt_prog_compiler_static='--static'
7326
        ;;
7327 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7328
        # Portland Group compilers (*not* the Pentium gcc compiler,
7329
        # which looks to be a dead project)
7330
        lt_prog_compiler_wl='-Wl,'
7331
        lt_prog_compiler_pic='-fpic'
7332
        lt_prog_compiler_static='-Bstatic'
7333
        ;;
7334
      ccc*)
7335
        lt_prog_compiler_wl='-Wl,'
7336
        # All Alpha code is PIC.
7337
        lt_prog_compiler_static='-non_shared'
7338
        ;;
7339 82 jeremybenn
      xl*)
7340
        # IBM XL C 8.0/Fortran 10.1 on PPC
7341
        lt_prog_compiler_wl='-Wl,'
7342
        lt_prog_compiler_pic='-qpic'
7343
        lt_prog_compiler_static='-qstaticlink'
7344
        ;;
7345 19 jeremybenn
      *)
7346 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7347 19 jeremybenn
        *Sun\ C*)
7348
          # Sun C 5.9
7349
          lt_prog_compiler_pic='-KPIC'
7350
          lt_prog_compiler_static='-Bstatic'
7351
          lt_prog_compiler_wl='-Wl,'
7352
          ;;
7353
        *Sun\ F*)
7354
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7355
          lt_prog_compiler_pic='-KPIC'
7356
          lt_prog_compiler_static='-Bstatic'
7357
          lt_prog_compiler_wl=''
7358
          ;;
7359
        esac
7360
        ;;
7361
      esac
7362
      ;;
7363
 
7364 82 jeremybenn
    newsos6)
7365
      lt_prog_compiler_pic='-KPIC'
7366
      lt_prog_compiler_static='-Bstatic'
7367
      ;;
7368
 
7369
    *nto* | *qnx*)
7370
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7371
      # it will coredump.
7372
      lt_prog_compiler_pic='-fPIC -shared'
7373
      ;;
7374
 
7375 19 jeremybenn
    osf3* | osf4* | osf5*)
7376
      lt_prog_compiler_wl='-Wl,'
7377
      # All OSF/1 code is PIC.
7378
      lt_prog_compiler_static='-non_shared'
7379
      ;;
7380
 
7381
    rdos*)
7382
      lt_prog_compiler_static='-non_shared'
7383
      ;;
7384
 
7385
    solaris*)
7386
      lt_prog_compiler_pic='-KPIC'
7387
      lt_prog_compiler_static='-Bstatic'
7388
      case $cc_basename in
7389
      f77* | f90* | f95*)
7390
        lt_prog_compiler_wl='-Qoption ld ';;
7391
      *)
7392
        lt_prog_compiler_wl='-Wl,';;
7393
      esac
7394
      ;;
7395
 
7396
    sunos4*)
7397
      lt_prog_compiler_wl='-Qoption ld '
7398
      lt_prog_compiler_pic='-PIC'
7399
      lt_prog_compiler_static='-Bstatic'
7400
      ;;
7401
 
7402
    sysv4 | sysv4.2uw2* | sysv4.3*)
7403
      lt_prog_compiler_wl='-Wl,'
7404
      lt_prog_compiler_pic='-KPIC'
7405
      lt_prog_compiler_static='-Bstatic'
7406
      ;;
7407
 
7408
    sysv4*MP*)
7409
      if test -d /usr/nec ;then
7410
        lt_prog_compiler_pic='-Kconform_pic'
7411
        lt_prog_compiler_static='-Bstatic'
7412
      fi
7413
      ;;
7414
 
7415
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7416
      lt_prog_compiler_wl='-Wl,'
7417
      lt_prog_compiler_pic='-KPIC'
7418
      lt_prog_compiler_static='-Bstatic'
7419
      ;;
7420
 
7421
    unicos*)
7422
      lt_prog_compiler_wl='-Wl,'
7423
      lt_prog_compiler_can_build_shared=no
7424
      ;;
7425
 
7426
    uts4*)
7427
      lt_prog_compiler_pic='-pic'
7428
      lt_prog_compiler_static='-Bstatic'
7429
      ;;
7430
 
7431
    *)
7432
      lt_prog_compiler_can_build_shared=no
7433
      ;;
7434
    esac
7435
  fi
7436
 
7437 82 jeremybenn
case $host_os in
7438
  # For platforms which do not support PIC, -DPIC is meaningless:
7439
  *djgpp*)
7440
    lt_prog_compiler_pic=
7441
    ;;
7442
  *)
7443
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7444
    ;;
7445
esac
7446 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7447 82 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
7448 19 jeremybenn
 
7449 82 jeremybenn
 
7450
 
7451
 
7452
 
7453
 
7454 19 jeremybenn
#
7455
# Check to make sure the PIC flag actually works.
7456
#
7457
if test -n "$lt_prog_compiler_pic"; then
7458 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7459 82 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7460 121 jeremybenn
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7461 82 jeremybenn
  $as_echo_n "(cached) " >&6
7462 19 jeremybenn
else
7463 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7464
   ac_outfile=conftest.$ac_objext
7465 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7466
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7467
   # Insert the option either (1) after the last *FLAGS variable, or
7468
   # (2) before a word containing "conftest.", or (3) at the end.
7469
   # Note that $ac_compile itself does not contain backslashes and begins
7470
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7471
   # The option is referenced via a variable to avoid confusing sed.
7472
   lt_compile=`echo "$ac_compile" | $SED \
7473
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7474
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7475
   -e 's:$: $lt_compiler_flag:'`
7476 127 jeremybenn
   (eval echo "\"\$as_me:7476: $lt_compile\"" >&5)
7477 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7478
   ac_status=$?
7479
   cat conftest.err >&5
7480 127 jeremybenn
   echo "$as_me:7480: \$? = $ac_status" >&5
7481 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7482
     # The compiler can only warn and ignore the option if not recognized
7483
     # So say no if there are warnings other than the usual output.
7484 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7485 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7486
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7487 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7488 19 jeremybenn
     fi
7489
   fi
7490 82 jeremybenn
   $RM conftest*
7491 19 jeremybenn
 
7492
fi
7493 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7494 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7495 19 jeremybenn
 
7496 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7497 19 jeremybenn
    case $lt_prog_compiler_pic in
7498
     "" | " "*) ;;
7499
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7500
     esac
7501
else
7502
    lt_prog_compiler_pic=
7503
     lt_prog_compiler_can_build_shared=no
7504
fi
7505
 
7506
fi
7507
 
7508 82 jeremybenn
 
7509
 
7510
 
7511
 
7512
 
7513 19 jeremybenn
#
7514
# Check to make sure the static flag actually works.
7515
#
7516
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7517 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7518 82 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7519 121 jeremybenn
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7520 82 jeremybenn
  $as_echo_n "(cached) " >&6
7521 19 jeremybenn
else
7522 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7523 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7524
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7525
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7526
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7527
     # The linker can only warn and ignore the option if not recognized
7528
     # So say no if there are warnings
7529
     if test -s conftest.err; then
7530
       # Append any errors to the config.log.
7531
       cat conftest.err 1>&5
7532 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7533 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7534
       if diff conftest.exp conftest.er2 >/dev/null; then
7535 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7536 19 jeremybenn
       fi
7537
     else
7538 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7539 19 jeremybenn
     fi
7540
   fi
7541 82 jeremybenn
   $RM -r conftest*
7542 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7543
 
7544
fi
7545 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7546 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7547 19 jeremybenn
 
7548 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7549 19 jeremybenn
    :
7550
else
7551
    lt_prog_compiler_static=
7552
fi
7553
 
7554
 
7555 82 jeremybenn
 
7556
 
7557
 
7558
 
7559
 
7560 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7561 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7562 121 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7563 82 jeremybenn
  $as_echo_n "(cached) " >&6
7564 19 jeremybenn
else
7565
  lt_cv_prog_compiler_c_o=no
7566 82 jeremybenn
   $RM -r conftest 2>/dev/null
7567 19 jeremybenn
   mkdir conftest
7568
   cd conftest
7569
   mkdir out
7570
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7571
 
7572
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7573
   # Insert the option either (1) after the last *FLAGS variable, or
7574
   # (2) before a word containing "conftest.", or (3) at the end.
7575
   # Note that $ac_compile itself does not contain backslashes and begins
7576
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7577
   lt_compile=`echo "$ac_compile" | $SED \
7578
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7579
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7580
   -e 's:$: $lt_compiler_flag:'`
7581 127 jeremybenn
   (eval echo "\"\$as_me:7581: $lt_compile\"" >&5)
7582 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7583
   ac_status=$?
7584
   cat out/conftest.err >&5
7585 127 jeremybenn
   echo "$as_me:7585: \$? = $ac_status" >&5
7586 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7587
   then
7588
     # The compiler can only warn and ignore the option if not recognized
7589
     # So say no if there are warnings
7590 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7591 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7592
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7593
       lt_cv_prog_compiler_c_o=yes
7594
     fi
7595
   fi
7596
   chmod u+w . 2>&5
7597 82 jeremybenn
   $RM conftest*
7598 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7599
   # template instantiation
7600 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7601
   $RM out/* && rmdir out
7602 19 jeremybenn
   cd ..
7603 82 jeremybenn
   $RM -r conftest
7604
   $RM conftest*
7605 19 jeremybenn
 
7606
fi
7607 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7608 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7609 19 jeremybenn
 
7610
 
7611 82 jeremybenn
 
7612
 
7613
 
7614
 
7615 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7616 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7617 121 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7618 82 jeremybenn
  $as_echo_n "(cached) " >&6
7619
else
7620
  lt_cv_prog_compiler_c_o=no
7621
   $RM -r conftest 2>/dev/null
7622
   mkdir conftest
7623
   cd conftest
7624
   mkdir out
7625
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7626
 
7627
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7628
   # Insert the option either (1) after the last *FLAGS variable, or
7629
   # (2) before a word containing "conftest.", or (3) at the end.
7630
   # Note that $ac_compile itself does not contain backslashes and begins
7631
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7632
   lt_compile=`echo "$ac_compile" | $SED \
7633
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7634
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7635
   -e 's:$: $lt_compiler_flag:'`
7636 127 jeremybenn
   (eval echo "\"\$as_me:7636: $lt_compile\"" >&5)
7637 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7638
   ac_status=$?
7639
   cat out/conftest.err >&5
7640 127 jeremybenn
   echo "$as_me:7640: \$? = $ac_status" >&5
7641 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7642
   then
7643
     # The compiler can only warn and ignore the option if not recognized
7644
     # So say no if there are warnings
7645
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7646
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7647
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7648
       lt_cv_prog_compiler_c_o=yes
7649
     fi
7650
   fi
7651
   chmod u+w . 2>&5
7652
   $RM conftest*
7653
   # SGI C++ compiler will create directory out/ii_files/ for
7654
   # template instantiation
7655
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7656
   $RM out/* && rmdir out
7657
   cd ..
7658
   $RM -r conftest
7659
   $RM conftest*
7660
 
7661
fi
7662 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7663 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7664
 
7665
 
7666
 
7667
 
7668 19 jeremybenn
hard_links="nottested"
7669
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7670
  # do not overwrite the value of need_locks provided by the user
7671 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7672 82 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7673 19 jeremybenn
  hard_links=yes
7674 82 jeremybenn
  $RM conftest*
7675 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7676
  touch conftest.a
7677
  ln conftest.a conftest.b 2>&5 || hard_links=no
7678
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7679 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7680 82 jeremybenn
$as_echo "$hard_links" >&6; }
7681 19 jeremybenn
  if test "$hard_links" = no; then
7682 121 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7683 82 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7684 19 jeremybenn
    need_locks=warn
7685
  fi
7686
else
7687
  need_locks=no
7688
fi
7689
 
7690
 
7691 82 jeremybenn
 
7692
 
7693
 
7694
 
7695 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7696 82 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7697
 
7698 19 jeremybenn
  runpath_var=
7699
  allow_undefined_flag=
7700 82 jeremybenn
  always_export_symbols=no
7701 19 jeremybenn
  archive_cmds=
7702
  archive_expsym_cmds=
7703 82 jeremybenn
  compiler_needs_object=no
7704
  enable_shared_with_static_runtimes=no
7705 19 jeremybenn
  export_dynamic_flag_spec=
7706 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7707
  hardcode_automatic=no
7708
  hardcode_direct=no
7709
  hardcode_direct_absolute=no
7710 19 jeremybenn
  hardcode_libdir_flag_spec=
7711
  hardcode_libdir_flag_spec_ld=
7712
  hardcode_libdir_separator=
7713
  hardcode_minus_L=no
7714
  hardcode_shlibpath_var=unsupported
7715 82 jeremybenn
  inherit_rpath=no
7716 19 jeremybenn
  link_all_deplibs=unknown
7717
  module_cmds=
7718
  module_expsym_cmds=
7719 82 jeremybenn
  old_archive_from_new_cmds=
7720
  old_archive_from_expsyms_cmds=
7721
  thread_safe_flag_spec=
7722
  whole_archive_flag_spec=
7723 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7724
  # included in the symbol list
7725
  include_expsyms=
7726
  # exclude_expsyms can be an extended regexp of symbols to exclude
7727
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7728
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7729
  # as well as any symbol that contains `d'.
7730 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7731 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7732
  # platforms (ab)use it in PIC code, but their linkers get confused if
7733
  # the symbol is explicitly referenced.  Since portable code cannot
7734
  # rely on this symbol name, it's probably fine to never include it in
7735
  # preloaded symbol tables.
7736 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7737 19 jeremybenn
  extract_expsyms_cmds=
7738
 
7739
  case $host_os in
7740 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7741 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7742
    # When not using gcc, we currently assume that we are using
7743
    # Microsoft Visual C++.
7744
    if test "$GCC" != yes; then
7745
      with_gnu_ld=no
7746
    fi
7747
    ;;
7748
  interix*)
7749
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7750
    with_gnu_ld=yes
7751
    ;;
7752
  openbsd*)
7753
    with_gnu_ld=no
7754
    ;;
7755 93 jeremybenn
  linux* | k*bsd*-gnu)
7756
    link_all_deplibs=no
7757
    ;;
7758 19 jeremybenn
  esac
7759
 
7760
  ld_shlibs=yes
7761
  if test "$with_gnu_ld" = yes; then
7762
    # If archive_cmds runs LD, not CC, wlarc should be empty
7763
    wlarc='${wl}'
7764
 
7765
    # Set some defaults for GNU ld with shared library support. These
7766
    # are reset later if shared libraries are not supported. Putting them
7767
    # here allows them to be overridden if necessary.
7768
    runpath_var=LD_RUN_PATH
7769 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7770 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7771
    # ancient GNU ld didn't support --whole-archive et. al.
7772 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7773
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7774
    else
7775
      whole_archive_flag_spec=
7776 19 jeremybenn
    fi
7777
    supports_anon_versioning=no
7778 82 jeremybenn
    case `$LD -v 2>&1` in
7779 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7780
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7781
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7782
      *\ 2.11.*) ;; # other 2.11 versions
7783
      *) supports_anon_versioning=yes ;;
7784
    esac
7785
 
7786
    # See if GNU ld supports shared libraries.
7787
    case $host_os in
7788 82 jeremybenn
    aix[3-9]*)
7789 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7790
      if test "$host_cpu" != ia64; then
7791
        ld_shlibs=no
7792 82 jeremybenn
        cat <<_LT_EOF 1>&2
7793 19 jeremybenn
 
7794
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7795
*** to be unable to reliably create shared libraries on AIX.
7796
*** Therefore, libtool is disabling shared libraries support.  If you
7797
*** really care for shared libraries, you may want to modify your PATH
7798
*** so that a non-GNU linker is found, and then restart.
7799
 
7800 82 jeremybenn
_LT_EOF
7801 19 jeremybenn
      fi
7802
      ;;
7803
 
7804
    amigaos*)
7805 82 jeremybenn
      case $host_cpu in
7806
      powerpc)
7807
            # see comment about AmigaOS4 .so support
7808
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7809
            archive_expsym_cmds=''
7810
        ;;
7811
      m68k)
7812
            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)'
7813
            hardcode_libdir_flag_spec='-L$libdir'
7814
            hardcode_minus_L=yes
7815
        ;;
7816
      esac
7817 19 jeremybenn
      ;;
7818
 
7819
    beos*)
7820 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7821 19 jeremybenn
        allow_undefined_flag=unsupported
7822
        # Joseph Beckenbach  says some releases of gcc
7823
        # support --undefined.  This deserves some investigation.  FIXME
7824
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7825
      else
7826
        ld_shlibs=no
7827
      fi
7828
      ;;
7829
 
7830 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7831
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7832 19 jeremybenn
      # as there is no search path for DLLs.
7833
      hardcode_libdir_flag_spec='-L$libdir'
7834
      allow_undefined_flag=unsupported
7835
      always_export_symbols=no
7836
      enable_shared_with_static_runtimes=yes
7837 82 jeremybenn
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7838 19 jeremybenn
 
7839 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7840 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7841
        # If the export-symbols file already is a .def file (1st line
7842
        # is EXPORTS), use it as is; otherwise, prepend...
7843
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7844
          cp $export_symbols $output_objdir/$soname.def;
7845
        else
7846
          echo EXPORTS > $output_objdir/$soname.def;
7847
          cat $export_symbols >> $output_objdir/$soname.def;
7848
        fi~
7849
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7850
      else
7851
        ld_shlibs=no
7852
      fi
7853
      ;;
7854
 
7855
    interix[3-9]*)
7856
      hardcode_direct=no
7857
      hardcode_shlibpath_var=no
7858
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7859
      export_dynamic_flag_spec='${wl}-E'
7860
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7861
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7862
      # default) and relocated if they conflict, which is a slow very memory
7863
      # consuming and fragmenting process.  To avoid this, we pick a random,
7864
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7865
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7866
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7867
      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'
7868
      ;;
7869
 
7870 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7871
      tmp_diet=no
7872
      if test "$host_os" = linux-dietlibc; then
7873
        case $cc_basename in
7874
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7875
        esac
7876
      fi
7877
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7878
         && test "$tmp_diet" = no
7879
      then
7880 19 jeremybenn
        tmp_addflag=
7881 82 jeremybenn
        tmp_sharedflag='-shared'
7882 19 jeremybenn
        case $cc_basename,$host_cpu in
7883 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7884
          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'
7885 19 jeremybenn
          tmp_addflag=' $pic_flag'
7886
          ;;
7887
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7888 82 jeremybenn
          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'
7889 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7890 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7891 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7892
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7893
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7894
        ifc* | ifort*)                  # Intel Fortran compiler
7895
          tmp_addflag=' -nofor_main' ;;
7896 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7897
          whole_archive_flag_spec=
7898
          tmp_sharedflag='--shared' ;;
7899
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7900
          tmp_sharedflag='-qmkshrobj'
7901
          tmp_addflag= ;;
7902 19 jeremybenn
        esac
7903
        case `$CC -V 2>&1 | sed 5q` in
7904
        *Sun\ C*)                       # Sun C 5.9
7905 82 jeremybenn
          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'
7906
          compiler_needs_object=yes
7907 19 jeremybenn
          tmp_sharedflag='-G' ;;
7908
        *Sun\ F*)                       # Sun Fortran 8.3
7909
          tmp_sharedflag='-G' ;;
7910
        esac
7911
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7912
 
7913 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7914
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7915
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7916
            echo "local: *; };" >> $output_objdir/$libname.ver~
7917
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7918
        fi
7919
 
7920
        case $cc_basename in
7921
        xlf*)
7922
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7923
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7924
          hardcode_libdir_flag_spec=
7925
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7926
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7927
          if test "x$supports_anon_versioning" = xyes; then
7928
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7929
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7930
              echo "local: *; };" >> $output_objdir/$libname.ver~
7931
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7932
          fi
7933
          ;;
7934
        esac
7935 19 jeremybenn
      else
7936 82 jeremybenn
        ld_shlibs=no
7937 19 jeremybenn
      fi
7938
      ;;
7939
 
7940 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7941 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7942 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7943
        wlarc=
7944
      else
7945
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7946
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7947
      fi
7948
      ;;
7949
 
7950
    solaris*)
7951 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7952 19 jeremybenn
        ld_shlibs=no
7953 82 jeremybenn
        cat <<_LT_EOF 1>&2
7954 19 jeremybenn
 
7955
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7956
*** create shared libraries on Solaris systems.  Therefore, libtool
7957
*** is disabling shared libraries support.  We urge you to upgrade GNU
7958
*** binutils to release 2.9.1 or newer.  Another option is to modify
7959
*** your PATH or compiler configuration so that the native linker is
7960
*** used, and then restart.
7961
 
7962 82 jeremybenn
_LT_EOF
7963
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7964 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7965
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7966
      else
7967
        ld_shlibs=no
7968
      fi
7969
      ;;
7970
 
7971
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7972
      case `$LD -v 2>&1` in
7973
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7974
        ld_shlibs=no
7975
        cat <<_LT_EOF 1>&2
7976
 
7977
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7978
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7979
*** is disabling shared libraries support.  We urge you to upgrade GNU
7980
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7981
*** your PATH or compiler configuration so that the native linker is
7982
*** used, and then restart.
7983
 
7984
_LT_EOF
7985
        ;;
7986
        *)
7987 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7988
          # use absolute paths for naming shared libraries, and exclude the
7989
          # DT_RUNPATH tag from executables and libraries.  But doing so
7990
          # requires that you compile everything twice, which is a pain.
7991
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7992
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7993
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7994
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7995 19 jeremybenn
          else
7996
            ld_shlibs=no
7997
          fi
7998
        ;;
7999
      esac
8000
      ;;
8001
 
8002
    sunos4*)
8003
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8004
      wlarc=
8005
      hardcode_direct=yes
8006
      hardcode_shlibpath_var=no
8007
      ;;
8008
 
8009
    *)
8010 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8011 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8012
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8013
      else
8014
        ld_shlibs=no
8015
      fi
8016
      ;;
8017
    esac
8018
 
8019
    if test "$ld_shlibs" = no; then
8020
      runpath_var=
8021
      hardcode_libdir_flag_spec=
8022
      export_dynamic_flag_spec=
8023
      whole_archive_flag_spec=
8024
    fi
8025
  else
8026
    # PORTME fill in a description of your system's linker (not GNU ld)
8027
    case $host_os in
8028
    aix3*)
8029
      allow_undefined_flag=unsupported
8030
      always_export_symbols=yes
8031
      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'
8032
      # Note: this linker hardcodes the directories in LIBPATH if there
8033
      # are no directories specified by -L.
8034
      hardcode_minus_L=yes
8035
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8036
        # Neither direct hardcoding nor static linking is supported with a
8037
        # broken collect2.
8038
        hardcode_direct=unsupported
8039
      fi
8040
      ;;
8041
 
8042 82 jeremybenn
    aix[4-9]*)
8043 19 jeremybenn
      if test "$host_cpu" = ia64; then
8044
        # On IA64, the linker does run time linking by default, so we don't
8045
        # have to do anything special.
8046
        aix_use_runtimelinking=no
8047
        exp_sym_flag='-Bexport'
8048
        no_entry_flag=""
8049
      else
8050
        # If we're using GNU nm, then we don't want the "-C" option.
8051
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8052 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8053
          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'
8054 19 jeremybenn
        else
8055 82 jeremybenn
          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'
8056 19 jeremybenn
        fi
8057
        aix_use_runtimelinking=no
8058
 
8059
        # Test if we are trying to use run time linking or normal
8060
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8061
        # need to do runtime linking.
8062 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8063 19 jeremybenn
          for ld_flag in $LDFLAGS; do
8064 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8065
            aix_use_runtimelinking=yes
8066
            break
8067
          fi
8068 19 jeremybenn
          done
8069
          ;;
8070
        esac
8071
 
8072
        exp_sym_flag='-bexport'
8073
        no_entry_flag='-bnoentry'
8074
      fi
8075
 
8076
      # When large executables or shared objects are built, AIX ld can
8077
      # have problems creating the table of contents.  If linking a library
8078
      # or program results in "error TOC overflow" add -mminimal-toc to
8079
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8080
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8081
 
8082
      archive_cmds=''
8083
      hardcode_direct=yes
8084 82 jeremybenn
      hardcode_direct_absolute=yes
8085 19 jeremybenn
      hardcode_libdir_separator=':'
8086
      link_all_deplibs=yes
8087 82 jeremybenn
      file_list_spec='${wl}-f,'
8088 19 jeremybenn
 
8089
      if test "$GCC" = yes; then
8090
        case $host_os in aix4.[012]|aix4.[012].*)
8091
        # We only want to do this on AIX 4.2 and lower, the check
8092
        # below for broken collect2 doesn't work under 4.3+
8093
          collect2name=`${CC} -print-prog-name=collect2`
8094 82 jeremybenn
          if test -f "$collect2name" &&
8095
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8096 19 jeremybenn
          then
8097 82 jeremybenn
          # We have reworked collect2
8098
          :
8099 19 jeremybenn
          else
8100 82 jeremybenn
          # We have old collect2
8101
          hardcode_direct=unsupported
8102
          # It fails to find uninstalled libraries when the uninstalled
8103
          # path is not listed in the libpath.  Setting hardcode_minus_L
8104
          # to unsupported forces relinking
8105
          hardcode_minus_L=yes
8106
          hardcode_libdir_flag_spec='-L$libdir'
8107
          hardcode_libdir_separator=
8108 19 jeremybenn
          fi
8109
          ;;
8110
        esac
8111
        shared_flag='-shared'
8112
        if test "$aix_use_runtimelinking" = yes; then
8113
          shared_flag="$shared_flag "'${wl}-G'
8114
        fi
8115 93 jeremybenn
        link_all_deplibs=no
8116 19 jeremybenn
      else
8117
        # not using gcc
8118
        if test "$host_cpu" = ia64; then
8119 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8120
        # chokes on -Wl,-G. The following line is correct:
8121 19 jeremybenn
          shared_flag='-G'
8122
        else
8123
          if test "$aix_use_runtimelinking" = yes; then
8124
            shared_flag='${wl}-G'
8125
          else
8126
            shared_flag='${wl}-bM:SRE'
8127
          fi
8128
        fi
8129
      fi
8130
 
8131 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
8132 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
8133
      # underscore (_), so it is better to generate a list of symbols to export.
8134
      always_export_symbols=yes
8135
      if test "$aix_use_runtimelinking" = yes; then
8136
        # Warning - without using the other runtime loading flags (-brtl),
8137
        # -berok will link without error, but may produce a broken library.
8138
        allow_undefined_flag='-berok'
8139 82 jeremybenn
        # Determine the default libpath from the value encoded in an
8140
        # empty executable.
8141 121 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
8142
/* confdefs.h.  */
8143
_ACEOF
8144
cat confdefs.h >>conftest.$ac_ext
8145
cat >>conftest.$ac_ext <<_ACEOF
8146 19 jeremybenn
/* end confdefs.h.  */
8147
 
8148
int
8149
main ()
8150
{
8151
 
8152
  ;
8153
  return 0;
8154
}
8155
_ACEOF
8156 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
8157
if { (ac_try="$ac_link"
8158
case "(($ac_try" in
8159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160
  *) ac_try_echo=$ac_try;;
8161
esac
8162
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8163
$as_echo "$ac_try_echo") >&5
8164
  (eval "$ac_link") 2>conftest.er1
8165
  ac_status=$?
8166
  grep -v '^ *+' conftest.er1 >conftest.err
8167
  rm -f conftest.er1
8168
  cat conftest.err >&5
8169
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170
  (exit $ac_status); } && {
8171
         test -z "$ac_c_werror_flag" ||
8172
         test ! -s conftest.err
8173
       } && test -s conftest$ac_exeext && {
8174
         test "$cross_compiling" = yes ||
8175
         $as_test_x conftest$ac_exeext
8176
       }; then
8177 19 jeremybenn
 
8178
lt_aix_libpath_sed='
8179
    /Import File Strings/,/^$/ {
8180
        /^0/ {
8181
            s/^0  *\(.*\)$/\1/
8182
            p
8183
        }
8184
    }'
8185
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8186
# Check for a 64-bit object if we didn't find anything.
8187
if test -z "$aix_libpath"; then
8188
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8189
fi
8190 121 jeremybenn
else
8191
  $as_echo "$as_me: failed program was:" >&5
8192
sed 's/^/| /' conftest.$ac_ext >&5
8193
 
8194
 
8195 19 jeremybenn
fi
8196 121 jeremybenn
 
8197
rm -rf conftest.dSYM
8198
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8199
      conftest$ac_exeext conftest.$ac_ext
8200 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8201
 
8202 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8203
        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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8204
      else
8205 19 jeremybenn
        if test "$host_cpu" = ia64; then
8206
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8207
          allow_undefined_flag="-z nodefs"
8208
          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"
8209
        else
8210 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8211
         # empty executable.
8212 121 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
8213
/* confdefs.h.  */
8214
_ACEOF
8215
cat confdefs.h >>conftest.$ac_ext
8216
cat >>conftest.$ac_ext <<_ACEOF
8217 19 jeremybenn
/* end confdefs.h.  */
8218
 
8219
int
8220
main ()
8221
{
8222
 
8223
  ;
8224
  return 0;
8225
}
8226
_ACEOF
8227 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
8228
if { (ac_try="$ac_link"
8229
case "(($ac_try" in
8230
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231
  *) ac_try_echo=$ac_try;;
8232
esac
8233
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8234
$as_echo "$ac_try_echo") >&5
8235
  (eval "$ac_link") 2>conftest.er1
8236
  ac_status=$?
8237
  grep -v '^ *+' conftest.er1 >conftest.err
8238
  rm -f conftest.er1
8239
  cat conftest.err >&5
8240
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241
  (exit $ac_status); } && {
8242
         test -z "$ac_c_werror_flag" ||
8243
         test ! -s conftest.err
8244
       } && test -s conftest$ac_exeext && {
8245
         test "$cross_compiling" = yes ||
8246
         $as_test_x conftest$ac_exeext
8247
       }; then
8248 19 jeremybenn
 
8249
lt_aix_libpath_sed='
8250
    /Import File Strings/,/^$/ {
8251
        /^0/ {
8252
            s/^0  *\(.*\)$/\1/
8253
            p
8254
        }
8255
    }'
8256
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8257
# Check for a 64-bit object if we didn't find anything.
8258
if test -z "$aix_libpath"; then
8259
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8260
fi
8261 121 jeremybenn
else
8262
  $as_echo "$as_me: failed program was:" >&5
8263
sed 's/^/| /' conftest.$ac_ext >&5
8264
 
8265
 
8266 19 jeremybenn
fi
8267 121 jeremybenn
 
8268
rm -rf conftest.dSYM
8269
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8270
      conftest$ac_exeext conftest.$ac_ext
8271 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8272
 
8273
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8274
          # Warning - without using the other run time loading flags,
8275
          # -berok will link without error, but may produce a broken library.
8276
          no_undefined_flag=' ${wl}-bernotok'
8277
          allow_undefined_flag=' ${wl}-berok'
8278
          # Exported symbols can be pulled into shared objects from archives
8279
          whole_archive_flag_spec='$convenience'
8280
          archive_cmds_need_lc=yes
8281
          # This is similar to how AIX traditionally builds its shared libraries.
8282
          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'
8283
        fi
8284
      fi
8285
      ;;
8286
 
8287
    amigaos*)
8288 82 jeremybenn
      case $host_cpu in
8289
      powerpc)
8290
            # see comment about AmigaOS4 .so support
8291
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8292
            archive_expsym_cmds=''
8293
        ;;
8294
      m68k)
8295
            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)'
8296
            hardcode_libdir_flag_spec='-L$libdir'
8297
            hardcode_minus_L=yes
8298
        ;;
8299
      esac
8300 19 jeremybenn
      ;;
8301
 
8302
    bsdi[45]*)
8303
      export_dynamic_flag_spec=-rdynamic
8304
      ;;
8305
 
8306 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8307 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8308
      # Microsoft Visual C++.
8309
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8310
      # no search path for DLLs.
8311
      hardcode_libdir_flag_spec=' '
8312
      allow_undefined_flag=unsupported
8313
      # Tell ltmain to make .lib files, not .a files.
8314
      libext=lib
8315
      # Tell ltmain to make .dll files, not .so files.
8316
      shrext_cmds=".dll"
8317
      # FIXME: Setting linknames here is a bad hack.
8318 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8319 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8320 82 jeremybenn
      old_archive_from_new_cmds='true'
8321 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8322
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8323
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8324
      enable_shared_with_static_runtimes=yes
8325
      ;;
8326
 
8327
    darwin* | rhapsody*)
8328 82 jeremybenn
 
8329
 
8330
  archive_cmds_need_lc=no
8331
  hardcode_direct=no
8332
  hardcode_automatic=yes
8333
  hardcode_shlibpath_var=unsupported
8334
  whole_archive_flag_spec=''
8335
  link_all_deplibs=yes
8336
  allow_undefined_flag="$_lt_dar_allow_undefined"
8337
  case $cc_basename in
8338
     ifort*) _lt_dar_can_shared=yes ;;
8339
     *) _lt_dar_can_shared=$GCC ;;
8340
  esac
8341
  if test "$_lt_dar_can_shared" = "yes"; then
8342
    output_verbose_link_cmd=echo
8343
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8344
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8345
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8346
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8347
 
8348
  else
8349
  ld_shlibs=no
8350
  fi
8351
 
8352 19 jeremybenn
      ;;
8353
 
8354
    dgux*)
8355
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356
      hardcode_libdir_flag_spec='-L$libdir'
8357
      hardcode_shlibpath_var=no
8358
      ;;
8359
 
8360
    freebsd1*)
8361
      ld_shlibs=no
8362
      ;;
8363
 
8364
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8365
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8366
    # does not break anything, and helps significantly (at the cost of a little
8367
    # extra space).
8368
    freebsd2.2*)
8369
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8370
      hardcode_libdir_flag_spec='-R$libdir'
8371
      hardcode_direct=yes
8372
      hardcode_shlibpath_var=no
8373
      ;;
8374
 
8375
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8376
    freebsd2*)
8377
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8378
      hardcode_direct=yes
8379
      hardcode_minus_L=yes
8380
      hardcode_shlibpath_var=no
8381
      ;;
8382
 
8383
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8384
    freebsd* | dragonfly*)
8385
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8386
      hardcode_libdir_flag_spec='-R$libdir'
8387
      hardcode_direct=yes
8388
      hardcode_shlibpath_var=no
8389
      ;;
8390
 
8391
    hpux9*)
8392
      if test "$GCC" = yes; then
8393 82 jeremybenn
        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'
8394 19 jeremybenn
      else
8395 82 jeremybenn
        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'
8396 19 jeremybenn
      fi
8397
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8398
      hardcode_libdir_separator=:
8399
      hardcode_direct=yes
8400
 
8401
      # hardcode_minus_L: Not really in the search PATH,
8402
      # but as the default location of the library.
8403
      hardcode_minus_L=yes
8404
      export_dynamic_flag_spec='${wl}-E'
8405
      ;;
8406
 
8407
    hpux10*)
8408
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8409
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8410
      else
8411
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8412
      fi
8413
      if test "$with_gnu_ld" = no; then
8414
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8415 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8416 19 jeremybenn
        hardcode_libdir_separator=:
8417
        hardcode_direct=yes
8418 82 jeremybenn
        hardcode_direct_absolute=yes
8419 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8420
        # hardcode_minus_L: Not really in the search PATH,
8421
        # but as the default location of the library.
8422
        hardcode_minus_L=yes
8423
      fi
8424
      ;;
8425
 
8426
    hpux11*)
8427
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8428
        case $host_cpu in
8429
        hppa*64*)
8430
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8431
          ;;
8432
        ia64*)
8433 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8434 19 jeremybenn
          ;;
8435
        *)
8436
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8437
          ;;
8438
        esac
8439
      else
8440
        case $host_cpu in
8441
        hppa*64*)
8442
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8443
          ;;
8444
        ia64*)
8445
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8446
          ;;
8447
        *)
8448
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8449
          ;;
8450
        esac
8451
      fi
8452
      if test "$with_gnu_ld" = no; then
8453
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8454
        hardcode_libdir_separator=:
8455
 
8456
        case $host_cpu in
8457
        hppa*64*|ia64*)
8458
          hardcode_direct=no
8459
          hardcode_shlibpath_var=no
8460
          ;;
8461
        *)
8462
          hardcode_direct=yes
8463 82 jeremybenn
          hardcode_direct_absolute=yes
8464 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8465
 
8466
          # hardcode_minus_L: Not really in the search PATH,
8467
          # but as the default location of the library.
8468
          hardcode_minus_L=yes
8469
          ;;
8470
        esac
8471
      fi
8472
      ;;
8473
 
8474
    irix5* | irix6* | nonstopux*)
8475
      if test "$GCC" = yes; then
8476 82 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8477
        # Try to use the -exported_symbol ld option, if it does not
8478
        # work, assume that -exports_file does not work either and
8479
        # implicitly export all symbols.
8480
        save_LDFLAGS="$LDFLAGS"
8481
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8482 121 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
8483 82 jeremybenn
int foo(void) {}
8484
_ACEOF
8485 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
8486
if { (ac_try="$ac_link"
8487
case "(($ac_try" in
8488
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489
  *) ac_try_echo=$ac_try;;
8490
esac
8491
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8492
$as_echo "$ac_try_echo") >&5
8493
  (eval "$ac_link") 2>conftest.er1
8494
  ac_status=$?
8495
  grep -v '^ *+' conftest.er1 >conftest.err
8496
  rm -f conftest.er1
8497
  cat conftest.err >&5
8498
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499
  (exit $ac_status); } && {
8500
         test -z "$ac_c_werror_flag" ||
8501
         test ! -s conftest.err
8502
       } && test -s conftest$ac_exeext && {
8503
         test "$cross_compiling" = yes ||
8504
         $as_test_x conftest$ac_exeext
8505
       }; then
8506 82 jeremybenn
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8507
 
8508 121 jeremybenn
else
8509
  $as_echo "$as_me: failed program was:" >&5
8510
sed 's/^/| /' conftest.$ac_ext >&5
8511
 
8512
 
8513 82 jeremybenn
fi
8514 121 jeremybenn
 
8515
rm -rf conftest.dSYM
8516
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8517
      conftest$ac_exeext conftest.$ac_ext
8518 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
8519 19 jeremybenn
      else
8520 82 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8521
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8522 19 jeremybenn
      fi
8523 82 jeremybenn
      archive_cmds_need_lc='no'
8524 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8525
      hardcode_libdir_separator=:
8526 82 jeremybenn
      inherit_rpath=yes
8527 19 jeremybenn
      link_all_deplibs=yes
8528
      ;;
8529
 
8530 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
8531 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8532 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8533
      else
8534
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8535
      fi
8536
      hardcode_libdir_flag_spec='-R$libdir'
8537
      hardcode_direct=yes
8538
      hardcode_shlibpath_var=no
8539
      ;;
8540
 
8541
    newsos6)
8542
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8543
      hardcode_direct=yes
8544
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545
      hardcode_libdir_separator=:
8546
      hardcode_shlibpath_var=no
8547
      ;;
8548
 
8549 82 jeremybenn
    *nto* | *qnx*)
8550
      ;;
8551
 
8552 19 jeremybenn
    openbsd*)
8553
      if test -f /usr/libexec/ld.so; then
8554
        hardcode_direct=yes
8555
        hardcode_shlibpath_var=no
8556 82 jeremybenn
        hardcode_direct_absolute=yes
8557
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8558 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8559
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8560
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8561
          export_dynamic_flag_spec='${wl}-E'
8562
        else
8563
          case $host_os in
8564
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8565
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8566
             hardcode_libdir_flag_spec='-R$libdir'
8567
             ;;
8568
           *)
8569
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8570
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8571
             ;;
8572
          esac
8573 82 jeremybenn
        fi
8574 19 jeremybenn
      else
8575
        ld_shlibs=no
8576
      fi
8577
      ;;
8578
 
8579
    os2*)
8580
      hardcode_libdir_flag_spec='-L$libdir'
8581
      hardcode_minus_L=yes
8582
      allow_undefined_flag=unsupported
8583 82 jeremybenn
      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'
8584
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8585 19 jeremybenn
      ;;
8586
 
8587
    osf3*)
8588
      if test "$GCC" = yes; then
8589
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8590 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8591 19 jeremybenn
      else
8592
        allow_undefined_flag=' -expect_unresolved \*'
8593 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8594 19 jeremybenn
      fi
8595 82 jeremybenn
      archive_cmds_need_lc='no'
8596 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8597
      hardcode_libdir_separator=:
8598
      ;;
8599
 
8600
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8601
      if test "$GCC" = yes; then
8602
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8603 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8604 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8605
      else
8606
        allow_undefined_flag=' -expect_unresolved \*'
8607 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8608
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8609
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8610 19 jeremybenn
 
8611
        # Both c and cxx compiler support -rpath directly
8612
        hardcode_libdir_flag_spec='-rpath $libdir'
8613
      fi
8614 82 jeremybenn
      archive_cmds_need_lc='no'
8615 19 jeremybenn
      hardcode_libdir_separator=:
8616
      ;;
8617
 
8618
    solaris*)
8619 82 jeremybenn
      no_undefined_flag=' -z defs'
8620 19 jeremybenn
      if test "$GCC" = yes; then
8621
        wlarc='${wl}'
8622 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8623
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8624
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8625 19 jeremybenn
      else
8626 82 jeremybenn
        case `$CC -V 2>&1` in
8627
        *"Compilers 5.0"*)
8628
          wlarc=''
8629
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8630
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8631
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8632
          ;;
8633
        *)
8634
          wlarc='${wl}'
8635
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8636
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8637
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8638
          ;;
8639
        esac
8640 19 jeremybenn
      fi
8641
      hardcode_libdir_flag_spec='-R$libdir'
8642
      hardcode_shlibpath_var=no
8643
      case $host_os in
8644
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8645
      *)
8646
        # The compiler driver will combine and reorder linker options,
8647
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8648
        # but is careful enough not to reorder.
8649 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8650 19 jeremybenn
        if test "$GCC" = yes; then
8651
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8652
        else
8653
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8654
        fi
8655
        ;;
8656
      esac
8657
      link_all_deplibs=yes
8658
      ;;
8659
 
8660
    sunos4*)
8661
      if test "x$host_vendor" = xsequent; then
8662
        # Use $CC to link under sequent, because it throws in some extra .o
8663
        # files that make .init and .fini sections work.
8664
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8665
      else
8666
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8667
      fi
8668
      hardcode_libdir_flag_spec='-L$libdir'
8669
      hardcode_direct=yes
8670
      hardcode_minus_L=yes
8671
      hardcode_shlibpath_var=no
8672
      ;;
8673
 
8674
    sysv4)
8675
      case $host_vendor in
8676
        sni)
8677
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8678
          hardcode_direct=yes # is this really true???
8679
        ;;
8680
        siemens)
8681
          ## LD is ld it makes a PLAMLIB
8682
          ## CC just makes a GrossModule.
8683
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8684
          reload_cmds='$CC -r -o $output$reload_objs'
8685
          hardcode_direct=no
8686
        ;;
8687
        motorola)
8688
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8690
        ;;
8691
      esac
8692
      runpath_var='LD_RUN_PATH'
8693
      hardcode_shlibpath_var=no
8694
      ;;
8695
 
8696
    sysv4.3*)
8697
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8698
      hardcode_shlibpath_var=no
8699
      export_dynamic_flag_spec='-Bexport'
8700
      ;;
8701
 
8702
    sysv4*MP*)
8703
      if test -d /usr/nec; then
8704
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8705
        hardcode_shlibpath_var=no
8706
        runpath_var=LD_RUN_PATH
8707
        hardcode_runpath_var=yes
8708
        ld_shlibs=yes
8709
      fi
8710
      ;;
8711
 
8712
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8713
      no_undefined_flag='${wl}-z,text'
8714
      archive_cmds_need_lc=no
8715
      hardcode_shlibpath_var=no
8716
      runpath_var='LD_RUN_PATH'
8717
 
8718
      if test "$GCC" = yes; then
8719
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8720
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8721
      else
8722
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8723
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8724
      fi
8725
      ;;
8726
 
8727
    sysv5* | sco3.2v5* | sco5v6*)
8728
      # Note: We can NOT use -z defs as we might desire, because we do not
8729
      # link with -lc, and that would cause any symbols used from libc to
8730
      # always be unresolved, which means just about no library would
8731
      # ever link correctly.  If we're not using GNU ld we use -z text
8732
      # though, which does catch some bad symbols but isn't as heavy-handed
8733
      # as -z defs.
8734
      no_undefined_flag='${wl}-z,text'
8735
      allow_undefined_flag='${wl}-z,nodefs'
8736
      archive_cmds_need_lc=no
8737
      hardcode_shlibpath_var=no
8738 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8739 19 jeremybenn
      hardcode_libdir_separator=':'
8740
      link_all_deplibs=yes
8741
      export_dynamic_flag_spec='${wl}-Bexport'
8742
      runpath_var='LD_RUN_PATH'
8743
 
8744
      if test "$GCC" = yes; then
8745 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8746
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747 19 jeremybenn
      else
8748 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8749
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750 19 jeremybenn
      fi
8751
      ;;
8752
 
8753
    uts4*)
8754
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755
      hardcode_libdir_flag_spec='-L$libdir'
8756
      hardcode_shlibpath_var=no
8757
      ;;
8758
 
8759
    *)
8760
      ld_shlibs=no
8761
      ;;
8762
    esac
8763 82 jeremybenn
 
8764
    if test x$host_vendor = xsni; then
8765
      case $host in
8766
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8767
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8768
        ;;
8769
      esac
8770
    fi
8771 19 jeremybenn
  fi
8772
 
8773 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8774 82 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8775 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8776
 
8777 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8778
 
8779
 
8780
 
8781
 
8782
 
8783
 
8784
 
8785
 
8786
 
8787
 
8788
 
8789
 
8790
 
8791
 
8792
 
8793 19 jeremybenn
#
8794
# Do we need to explicitly link libc?
8795
#
8796
case "x$archive_cmds_need_lc" in
8797
x|xyes)
8798
  # Assume -lc should be added
8799
  archive_cmds_need_lc=yes
8800
 
8801
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8802
    case $archive_cmds in
8803
    *'~'*)
8804
      # FIXME: we may have to deal with multi-command sequences.
8805
      ;;
8806
    '$CC '*)
8807
      # Test whether the compiler implicitly links with -lc since on some
8808
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8809
      # to ld, don't add -lc before -lgcc.
8810 121 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8811 82 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8812
      $RM conftest*
8813 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8814
 
8815 121 jeremybenn
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8816 19 jeremybenn
  (eval $ac_compile) 2>&5
8817
  ac_status=$?
8818 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819
  (exit $ac_status); } 2>conftest.err; then
8820 19 jeremybenn
        soname=conftest
8821
        lib=conftest
8822
        libobjs=conftest.$ac_objext
8823
        deplibs=
8824
        wl=$lt_prog_compiler_wl
8825
        pic_flag=$lt_prog_compiler_pic
8826
        compiler_flags=-v
8827
        linker_flags=-v
8828
        verstring=
8829
        output_objdir=.
8830
        libname=conftest
8831
        lt_save_allow_undefined_flag=$allow_undefined_flag
8832
        allow_undefined_flag=
8833 121 jeremybenn
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8834 82 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8835 19 jeremybenn
  ac_status=$?
8836 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837
  (exit $ac_status); }
8838 19 jeremybenn
        then
8839
          archive_cmds_need_lc=no
8840
        else
8841
          archive_cmds_need_lc=yes
8842
        fi
8843
        allow_undefined_flag=$lt_save_allow_undefined_flag
8844
      else
8845
        cat conftest.err 1>&5
8846
      fi
8847 82 jeremybenn
      $RM conftest*
8848 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8849 82 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8850 19 jeremybenn
      ;;
8851
    esac
8852
  fi
8853
  ;;
8854
esac
8855
 
8856
 
8857 82 jeremybenn
 
8858
 
8859
 
8860
 
8861
 
8862
 
8863
 
8864
 
8865
 
8866
 
8867
 
8868
 
8869
 
8870
 
8871
 
8872
 
8873
 
8874
 
8875
 
8876
 
8877
 
8878
 
8879
 
8880
 
8881
 
8882
 
8883
 
8884
 
8885
 
8886
 
8887
 
8888
 
8889
 
8890
 
8891
 
8892
 
8893
 
8894
 
8895
 
8896
 
8897
 
8898
 
8899
 
8900
 
8901
 
8902
 
8903
 
8904
 
8905
 
8906
 
8907
 
8908
 
8909
 
8910
 
8911
 
8912
 
8913
 
8914
 
8915
 
8916
 
8917
 
8918
 
8919
 
8920
 
8921
 
8922
 
8923
 
8924
 
8925
 
8926
 
8927
 
8928
 
8929
 
8930
 
8931
 
8932
 
8933
 
8934
 
8935
 
8936
 
8937
 
8938
 
8939
 
8940
 
8941
 
8942
 
8943
 
8944
 
8945
 
8946
 
8947
 
8948
 
8949
 
8950
 
8951
 
8952
 
8953
 
8954
 
8955
 
8956
 
8957
 
8958
 
8959
 
8960
 
8961
 
8962
 
8963
 
8964
 
8965
 
8966
 
8967
 
8968
 
8969
 
8970
 
8971
 
8972
 
8973
 
8974
 
8975
 
8976
 
8977
 
8978
 
8979
 
8980
 
8981
 
8982
 
8983
 
8984
 
8985
 
8986
 
8987
 
8988
 
8989
 
8990
 
8991
 
8992
 
8993
 
8994
 
8995
 
8996
 
8997
 
8998
 
8999
 
9000
 
9001
 
9002
 
9003
 
9004
 
9005
 
9006
 
9007
 
9008
 
9009
 
9010
 
9011
 
9012 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9013 82 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9014
 
9015 19 jeremybenn
if test "$GCC" = yes; then
9016
  case $host_os in
9017
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9018
    *) lt_awk_arg="/^libraries:/" ;;
9019
  esac
9020
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9021 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9022 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
9023
    # otherwise default to the standard path separator (i.e. ":") - it is
9024
    # assumed that no part of a normal pathname contains ";" but that should
9025
    # okay in the real world where ";" in dirpaths is itself problematic.
9026 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9027 19 jeremybenn
  else
9028 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9029 19 jeremybenn
  fi
9030
  # Ok, now we have the path, separated by spaces, we can step through it
9031
  # and add multilib dir if necessary.
9032
  lt_tmp_lt_search_path_spec=
9033
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9034
  for lt_sys_path in $lt_search_path_spec; do
9035
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9036
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9037
    else
9038
      test -d "$lt_sys_path" && \
9039
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9040
    fi
9041
  done
9042 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9043 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
9044
  lt_foo="";
9045
  lt_count=0;
9046
  for (lt_i = NF; lt_i > 0; lt_i--) {
9047
    if ($lt_i != "" && $lt_i != ".") {
9048
      if ($lt_i == "..") {
9049
        lt_count++;
9050
      } else {
9051
        if (lt_count == 0) {
9052
          lt_foo="/" $lt_i lt_foo;
9053
        } else {
9054
          lt_count--;
9055
        }
9056
      }
9057
    }
9058
  }
9059
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9060
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9061
}'`
9062 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9063 19 jeremybenn
else
9064
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9065
fi
9066 82 jeremybenn
library_names_spec=
9067
libname_spec='lib$name'
9068
soname_spec=
9069
shrext_cmds=".so"
9070
postinstall_cmds=
9071
postuninstall_cmds=
9072
finish_cmds=
9073
finish_eval=
9074
shlibpath_var=
9075
shlibpath_overrides_runpath=unknown
9076
version_type=none
9077
dynamic_linker="$host_os ld.so"
9078
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9079 19 jeremybenn
need_lib_prefix=unknown
9080
hardcode_into_libs=no
9081
 
9082
# when you set need_version to no, make sure it does not cause -set_version
9083
# flags to be left without arguments
9084
need_version=unknown
9085
 
9086
case $host_os in
9087
aix3*)
9088
  version_type=linux
9089
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9090
  shlibpath_var=LIBPATH
9091
 
9092
  # AIX 3 has no versioning support, so we append a major version to the name.
9093
  soname_spec='${libname}${release}${shared_ext}$major'
9094
  ;;
9095
 
9096 82 jeremybenn
aix[4-9]*)
9097 19 jeremybenn
  version_type=linux
9098
  need_lib_prefix=no
9099
  need_version=no
9100
  hardcode_into_libs=yes
9101
  if test "$host_cpu" = ia64; then
9102
    # AIX 5 supports IA64
9103
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9104
    shlibpath_var=LD_LIBRARY_PATH
9105
  else
9106
    # With GCC up to 2.95.x, collect2 would create an import file
9107
    # for dependence libraries.  The import file would start with
9108
    # the line `#! .'.  This would cause the generated library to
9109
    # depend on `.', always an invalid library.  This was fixed in
9110
    # development snapshots of GCC prior to 3.0.
9111
    case $host_os in
9112
      aix4 | aix4.[01] | aix4.[01].*)
9113
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9114
           echo ' yes '
9115 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9116 19 jeremybenn
        :
9117
      else
9118
        can_build_shared=no
9119
      fi
9120
      ;;
9121
    esac
9122
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9123
    # soname into executable. Probably we can add versioning support to
9124
    # collect2, so additional links can be useful in future.
9125
    if test "$aix_use_runtimelinking" = yes; then
9126
      # If using run time linking (on AIX 4.2 or later) use lib.so
9127
      # instead of lib.a to let people know that these are not
9128
      # typical AIX shared libraries.
9129
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130
    else
9131
      # We preserve .a as extension for shared libraries through AIX4.2
9132
      # and later when we are not doing run time linking.
9133
      library_names_spec='${libname}${release}.a $libname.a'
9134
      soname_spec='${libname}${release}${shared_ext}$major'
9135
    fi
9136
    shlibpath_var=LIBPATH
9137
  fi
9138
  ;;
9139
 
9140
amigaos*)
9141 82 jeremybenn
  case $host_cpu in
9142
  powerpc)
9143
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9144
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9145
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146
    ;;
9147
  m68k)
9148
    library_names_spec='$libname.ixlibrary $libname.a'
9149
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9150
    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'
9151
    ;;
9152
  esac
9153 19 jeremybenn
  ;;
9154
 
9155
beos*)
9156
  library_names_spec='${libname}${shared_ext}'
9157
  dynamic_linker="$host_os ld.so"
9158
  shlibpath_var=LIBRARY_PATH
9159
  ;;
9160
 
9161
bsdi[45]*)
9162
  version_type=linux
9163
  need_version=no
9164
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165
  soname_spec='${libname}${release}${shared_ext}$major'
9166
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9167
  shlibpath_var=LD_LIBRARY_PATH
9168
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9169
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9170
  # the default ld.so.conf also contains /usr/contrib/lib and
9171
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9172
  # libtool to hard-code these into programs
9173
  ;;
9174
 
9175 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
9176 19 jeremybenn
  version_type=windows
9177
  shrext_cmds=".dll"
9178
  need_version=no
9179
  need_lib_prefix=no
9180
 
9181
  case $GCC,$host_os in
9182 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9183 19 jeremybenn
    library_names_spec='$libname.dll.a'
9184
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9185
    postinstall_cmds='base_file=`basename \${file}`~
9186 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9187 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
9188
      test -d \$dldir || mkdir -p \$dldir~
9189
      $install_prog $dir/$dlname \$dldir/$dlname~
9190 82 jeremybenn
      chmod a+x \$dldir/$dlname~
9191
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9192
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9193
      fi'
9194 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9195
      dlpath=$dir/\$dldll~
9196 82 jeremybenn
       $RM \$dlpath'
9197 19 jeremybenn
    shlibpath_overrides_runpath=yes
9198
 
9199
    case $host_os in
9200
    cygwin*)
9201
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9202
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9203
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9204
      ;;
9205 82 jeremybenn
    mingw* | cegcc*)
9206 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
9207
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9208 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9209
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9210 19 jeremybenn
        # It is most probably a Windows format PATH printed by
9211
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9212
        # path with ; separators, and with drive letters. We can handle the
9213
        # drive letters (cygwin fileutils understands them), so leave them,
9214
        # especially as we might pass files found there to a mingw objdump,
9215
        # which wouldn't understand a cygwinified path. Ahh.
9216 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9217 19 jeremybenn
      else
9218 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9219 19 jeremybenn
      fi
9220
      ;;
9221
    pw32*)
9222
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9223
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9224
      ;;
9225
    esac
9226
    ;;
9227
 
9228
  *)
9229
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9230
    ;;
9231
  esac
9232
  dynamic_linker='Win32 ld.exe'
9233
  # FIXME: first we should search . and the directory the executable is in
9234
  shlibpath_var=PATH
9235
  ;;
9236
 
9237
darwin* | rhapsody*)
9238
  dynamic_linker="$host_os dyld"
9239
  version_type=darwin
9240
  need_lib_prefix=no
9241
  need_version=no
9242 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9243 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9244
  shlibpath_overrides_runpath=yes
9245
  shlibpath_var=DYLD_LIBRARY_PATH
9246
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9247
 
9248
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9249
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9250
  ;;
9251
 
9252
dgux*)
9253
  version_type=linux
9254
  need_lib_prefix=no
9255
  need_version=no
9256
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9257
  soname_spec='${libname}${release}${shared_ext}$major'
9258
  shlibpath_var=LD_LIBRARY_PATH
9259
  ;;
9260
 
9261
freebsd1*)
9262
  dynamic_linker=no
9263
  ;;
9264
 
9265
freebsd* | dragonfly*)
9266
  # DragonFly does not have aout.  When/if they implement a new
9267
  # versioning mechanism, adjust this.
9268
  if test -x /usr/bin/objformat; then
9269
    objformat=`/usr/bin/objformat`
9270
  else
9271
    case $host_os in
9272
    freebsd[123]*) objformat=aout ;;
9273
    *) objformat=elf ;;
9274
    esac
9275
  fi
9276
  version_type=freebsd-$objformat
9277
  case $version_type in
9278
    freebsd-elf*)
9279
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9280
      need_version=no
9281
      need_lib_prefix=no
9282
      ;;
9283
    freebsd-*)
9284
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9285
      need_version=yes
9286
      ;;
9287
  esac
9288
  shlibpath_var=LD_LIBRARY_PATH
9289
  case $host_os in
9290
  freebsd2*)
9291
    shlibpath_overrides_runpath=yes
9292
    ;;
9293
  freebsd3.[01]* | freebsdelf3.[01]*)
9294
    shlibpath_overrides_runpath=yes
9295
    hardcode_into_libs=yes
9296
    ;;
9297
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9298
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9299
    shlibpath_overrides_runpath=no
9300
    hardcode_into_libs=yes
9301
    ;;
9302
  *) # from 4.6 on, and DragonFly
9303
    shlibpath_overrides_runpath=yes
9304
    hardcode_into_libs=yes
9305
    ;;
9306
  esac
9307
  ;;
9308
 
9309
gnu*)
9310
  version_type=linux
9311
  need_lib_prefix=no
9312
  need_version=no
9313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9314
  soname_spec='${libname}${release}${shared_ext}$major'
9315
  shlibpath_var=LD_LIBRARY_PATH
9316
  hardcode_into_libs=yes
9317
  ;;
9318
 
9319
hpux9* | hpux10* | hpux11*)
9320
  # Give a soname corresponding to the major version so that dld.sl refuses to
9321
  # link against other versions.
9322
  version_type=sunos
9323
  need_lib_prefix=no
9324
  need_version=no
9325
  case $host_cpu in
9326
  ia64*)
9327
    shrext_cmds='.so'
9328
    hardcode_into_libs=yes
9329
    dynamic_linker="$host_os dld.so"
9330
    shlibpath_var=LD_LIBRARY_PATH
9331
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9332
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333
    soname_spec='${libname}${release}${shared_ext}$major'
9334
    if test "X$HPUX_IA64_MODE" = X32; then
9335
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9336
    else
9337
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9338
    fi
9339
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9340
    ;;
9341 82 jeremybenn
  hppa*64*)
9342 19 jeremybenn
    shrext_cmds='.sl'
9343 82 jeremybenn
    hardcode_into_libs=yes
9344 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9345 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9346
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9347
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348
    soname_spec='${libname}${release}${shared_ext}$major'
9349
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9350
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9351
    ;;
9352
  *)
9353
    shrext_cmds='.sl'
9354
    dynamic_linker="$host_os dld.sl"
9355 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9356
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9357
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358
    soname_spec='${libname}${release}${shared_ext}$major'
9359
    ;;
9360
  esac
9361
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9362
  postinstall_cmds='chmod 555 $lib'
9363
  ;;
9364
 
9365
interix[3-9]*)
9366
  version_type=linux
9367
  need_lib_prefix=no
9368
  need_version=no
9369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9370
  soname_spec='${libname}${release}${shared_ext}$major'
9371
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9372
  shlibpath_var=LD_LIBRARY_PATH
9373
  shlibpath_overrides_runpath=no
9374
  hardcode_into_libs=yes
9375
  ;;
9376
 
9377
irix5* | irix6* | nonstopux*)
9378
  case $host_os in
9379
    nonstopux*) version_type=nonstopux ;;
9380
    *)
9381
        if test "$lt_cv_prog_gnu_ld" = yes; then
9382
                version_type=linux
9383
        else
9384
                version_type=irix
9385
        fi ;;
9386
  esac
9387
  need_lib_prefix=no
9388
  need_version=no
9389
  soname_spec='${libname}${release}${shared_ext}$major'
9390
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9391
  case $host_os in
9392
  irix5* | nonstopux*)
9393
    libsuff= shlibsuff=
9394
    ;;
9395
  *)
9396
    case $LD in # libtool.m4 will add one of these switches to LD
9397
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9398
      libsuff= shlibsuff= libmagic=32-bit;;
9399
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9400
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9401
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9402
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9403
    *) libsuff= shlibsuff= libmagic=never-match;;
9404
    esac
9405
    ;;
9406
  esac
9407
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9408
  shlibpath_overrides_runpath=no
9409
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9410
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9411
  hardcode_into_libs=yes
9412
  ;;
9413
 
9414
# No shared lib support for Linux oldld, aout, or coff.
9415
linux*oldld* | linux*aout* | linux*coff*)
9416
  dynamic_linker=no
9417
  ;;
9418
 
9419
# This must be Linux ELF.
9420
linux* | k*bsd*-gnu)
9421
  version_type=linux
9422
  need_lib_prefix=no
9423
  need_version=no
9424
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9425
  soname_spec='${libname}${release}${shared_ext}$major'
9426
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9427
  shlibpath_var=LD_LIBRARY_PATH
9428
  shlibpath_overrides_runpath=no
9429 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9430
  save_LDFLAGS=$LDFLAGS
9431
  save_libdir=$libdir
9432
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9433
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9434 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
9435
/* confdefs.h.  */
9436
_ACEOF
9437
cat confdefs.h >>conftest.$ac_ext
9438
cat >>conftest.$ac_ext <<_ACEOF
9439 82 jeremybenn
/* end confdefs.h.  */
9440
 
9441
int
9442
main ()
9443
{
9444
 
9445
  ;
9446
  return 0;
9447
}
9448
_ACEOF
9449 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
9450
if { (ac_try="$ac_link"
9451
case "(($ac_try" in
9452
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453
  *) ac_try_echo=$ac_try;;
9454
esac
9455
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9456
$as_echo "$ac_try_echo") >&5
9457
  (eval "$ac_link") 2>conftest.er1
9458
  ac_status=$?
9459
  grep -v '^ *+' conftest.er1 >conftest.err
9460
  rm -f conftest.er1
9461
  cat conftest.err >&5
9462
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463
  (exit $ac_status); } && {
9464
         test -z "$ac_c_werror_flag" ||
9465
         test ! -s conftest.err
9466
       } && test -s conftest$ac_exeext && {
9467
         test "$cross_compiling" = yes ||
9468
         $as_test_x conftest$ac_exeext
9469
       }; then
9470
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9471 82 jeremybenn
  shlibpath_overrides_runpath=yes
9472
fi
9473 121 jeremybenn
 
9474
else
9475
  $as_echo "$as_me: failed program was:" >&5
9476
sed 's/^/| /' conftest.$ac_ext >&5
9477
 
9478
 
9479 82 jeremybenn
fi
9480 121 jeremybenn
 
9481
rm -rf conftest.dSYM
9482
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9483
      conftest$ac_exeext conftest.$ac_ext
9484 82 jeremybenn
  LDFLAGS=$save_LDFLAGS
9485
  libdir=$save_libdir
9486
 
9487 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9488
  # Some rework will be needed to allow for fast_install
9489
  # before this can be enabled.
9490
  hardcode_into_libs=yes
9491
 
9492
  # Append ld.so.conf contents to the search path
9493
  if test -f /etc/ld.so.conf; then
9494 82 jeremybenn
    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' ' '`
9495 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9496 19 jeremybenn
  fi
9497
 
9498
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9499
  # powerpc, because MkLinux only supported shared libraries with the
9500
  # GNU dynamic linker.  Since this was broken with cross compilers,
9501
  # most powerpc-linux boxes support dynamic linking these days and
9502
  # people can always --disable-shared, the test was removed, and we
9503
  # assume the GNU/Linux dynamic linker is in use.
9504
  dynamic_linker='GNU/Linux ld.so'
9505
  ;;
9506
 
9507 93 jeremybenn
netbsdelf*-gnu)
9508
  version_type=linux
9509
  need_lib_prefix=no
9510
  need_version=no
9511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9512
  soname_spec='${libname}${release}${shared_ext}$major'
9513
  shlibpath_var=LD_LIBRARY_PATH
9514
  shlibpath_overrides_runpath=no
9515
  hardcode_into_libs=yes
9516
  dynamic_linker='NetBSD ld.elf_so'
9517
  ;;
9518
 
9519 19 jeremybenn
netbsd*)
9520
  version_type=sunos
9521
  need_lib_prefix=no
9522
  need_version=no
9523 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9524 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9525
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9526
    dynamic_linker='NetBSD (a.out) ld.so'
9527
  else
9528
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9529
    soname_spec='${libname}${release}${shared_ext}$major'
9530
    dynamic_linker='NetBSD ld.elf_so'
9531
  fi
9532
  shlibpath_var=LD_LIBRARY_PATH
9533
  shlibpath_overrides_runpath=yes
9534
  hardcode_into_libs=yes
9535
  ;;
9536
 
9537
newsos6)
9538
  version_type=linux
9539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540
  shlibpath_var=LD_LIBRARY_PATH
9541
  shlibpath_overrides_runpath=yes
9542
  ;;
9543
 
9544 82 jeremybenn
*nto* | *qnx*)
9545
  version_type=qnx
9546 19 jeremybenn
  need_lib_prefix=no
9547
  need_version=no
9548
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549
  soname_spec='${libname}${release}${shared_ext}$major'
9550
  shlibpath_var=LD_LIBRARY_PATH
9551 82 jeremybenn
  shlibpath_overrides_runpath=no
9552
  hardcode_into_libs=yes
9553
  dynamic_linker='ldqnx.so'
9554 19 jeremybenn
  ;;
9555
 
9556
openbsd*)
9557
  version_type=sunos
9558
  sys_lib_dlsearch_path_spec="/usr/lib"
9559
  need_lib_prefix=no
9560
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9561
  case $host_os in
9562 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9563
    *)                          need_version=no  ;;
9564 19 jeremybenn
  esac
9565
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9566
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9567
  shlibpath_var=LD_LIBRARY_PATH
9568 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9569 19 jeremybenn
    case $host_os in
9570
      openbsd2.[89] | openbsd2.[89].*)
9571
        shlibpath_overrides_runpath=no
9572
        ;;
9573
      *)
9574
        shlibpath_overrides_runpath=yes
9575
        ;;
9576
      esac
9577
  else
9578
    shlibpath_overrides_runpath=yes
9579
  fi
9580
  ;;
9581
 
9582
os2*)
9583
  libname_spec='$name'
9584
  shrext_cmds=".dll"
9585
  need_lib_prefix=no
9586
  library_names_spec='$libname${shared_ext} $libname.a'
9587
  dynamic_linker='OS/2 ld.exe'
9588
  shlibpath_var=LIBPATH
9589
  ;;
9590
 
9591
osf3* | osf4* | osf5*)
9592
  version_type=osf
9593
  need_lib_prefix=no
9594
  need_version=no
9595
  soname_spec='${libname}${release}${shared_ext}$major'
9596
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597
  shlibpath_var=LD_LIBRARY_PATH
9598
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9599
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9600
  ;;
9601
 
9602
rdos*)
9603
  dynamic_linker=no
9604
  ;;
9605
 
9606
solaris*)
9607
  version_type=linux
9608
  need_lib_prefix=no
9609
  need_version=no
9610
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611
  soname_spec='${libname}${release}${shared_ext}$major'
9612
  shlibpath_var=LD_LIBRARY_PATH
9613
  shlibpath_overrides_runpath=yes
9614
  hardcode_into_libs=yes
9615
  # ldd complains unless libraries are executable
9616
  postinstall_cmds='chmod +x $lib'
9617
  ;;
9618
 
9619
sunos4*)
9620
  version_type=sunos
9621
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9622
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9623
  shlibpath_var=LD_LIBRARY_PATH
9624
  shlibpath_overrides_runpath=yes
9625
  if test "$with_gnu_ld" = yes; then
9626
    need_lib_prefix=no
9627
  fi
9628
  need_version=yes
9629
  ;;
9630
 
9631
sysv4 | sysv4.3*)
9632
  version_type=linux
9633
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634
  soname_spec='${libname}${release}${shared_ext}$major'
9635
  shlibpath_var=LD_LIBRARY_PATH
9636
  case $host_vendor in
9637
    sni)
9638
      shlibpath_overrides_runpath=no
9639
      need_lib_prefix=no
9640
      runpath_var=LD_RUN_PATH
9641
      ;;
9642
    siemens)
9643
      need_lib_prefix=no
9644
      ;;
9645
    motorola)
9646
      need_lib_prefix=no
9647
      need_version=no
9648
      shlibpath_overrides_runpath=no
9649
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9650
      ;;
9651
  esac
9652
  ;;
9653
 
9654
sysv4*MP*)
9655
  if test -d /usr/nec ;then
9656
    version_type=linux
9657
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9658
    soname_spec='$libname${shared_ext}.$major'
9659
    shlibpath_var=LD_LIBRARY_PATH
9660
  fi
9661
  ;;
9662
 
9663
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9664
  version_type=freebsd-elf
9665
  need_lib_prefix=no
9666
  need_version=no
9667
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9668
  soname_spec='${libname}${release}${shared_ext}$major'
9669
  shlibpath_var=LD_LIBRARY_PATH
9670 82 jeremybenn
  shlibpath_overrides_runpath=yes
9671 19 jeremybenn
  hardcode_into_libs=yes
9672
  if test "$with_gnu_ld" = yes; then
9673
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9674
  else
9675
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9676
    case $host_os in
9677
      sco3.2v5*)
9678
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9679
        ;;
9680
    esac
9681
  fi
9682
  sys_lib_dlsearch_path_spec='/usr/lib'
9683
  ;;
9684
 
9685 82 jeremybenn
tpf*)
9686
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9687
  version_type=linux
9688
  need_lib_prefix=no
9689
  need_version=no
9690
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691
  shlibpath_var=LD_LIBRARY_PATH
9692
  shlibpath_overrides_runpath=no
9693
  hardcode_into_libs=yes
9694
  ;;
9695
 
9696 19 jeremybenn
uts4*)
9697
  version_type=linux
9698
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699
  soname_spec='${libname}${release}${shared_ext}$major'
9700
  shlibpath_var=LD_LIBRARY_PATH
9701
  ;;
9702
 
9703
*)
9704
  dynamic_linker=no
9705
  ;;
9706
esac
9707 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9708 82 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9709 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9710
 
9711
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9712
if test "$GCC" = yes; then
9713
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9714
fi
9715
 
9716 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9717
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9718
fi
9719
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9720
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9721
fi
9722
 
9723
 
9724
 
9725
 
9726
 
9727
 
9728
 
9729
 
9730
 
9731
 
9732
 
9733
 
9734
 
9735
 
9736
 
9737
 
9738
 
9739
 
9740
 
9741
 
9742
 
9743
 
9744
 
9745
 
9746
 
9747
 
9748
 
9749
 
9750
 
9751
 
9752
 
9753
 
9754
 
9755
 
9756
 
9757
 
9758
 
9759
 
9760
 
9761
 
9762
 
9763
 
9764
 
9765
 
9766
 
9767
 
9768
 
9769
 
9770
 
9771
 
9772
 
9773
 
9774
 
9775
 
9776
 
9777
 
9778
 
9779
 
9780
 
9781
 
9782
 
9783
 
9784
 
9785
 
9786
 
9787
 
9788
 
9789
 
9790
 
9791
 
9792
 
9793
 
9794
 
9795
 
9796
 
9797
 
9798
 
9799
 
9800
 
9801
 
9802
 
9803
 
9804
 
9805
 
9806
 
9807
 
9808
 
9809 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9810 82 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9811 19 jeremybenn
hardcode_action=
9812 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9813
   test -n "$runpath_var" ||
9814 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9815
 
9816 82 jeremybenn
  # We can hardcode non-existent directories.
9817 19 jeremybenn
  if test "$hardcode_direct" != no &&
9818
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9819
     # have to relink, otherwise we might link with an installed library
9820
     # when we should be linking with a yet-to-be-installed one
9821 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9822 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9823
    # Linking always hardcodes the temporary library directory.
9824
    hardcode_action=relink
9825
  else
9826
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9827
    hardcode_action=immediate
9828
  fi
9829
else
9830
  # We cannot hardcode anything, or else we can only hardcode existing
9831
  # directories.
9832
  hardcode_action=unsupported
9833
fi
9834 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9835 82 jeremybenn
$as_echo "$hardcode_action" >&6; }
9836 19 jeremybenn
 
9837 82 jeremybenn
if test "$hardcode_action" = relink ||
9838
   test "$inherit_rpath" = yes; then
9839 19 jeremybenn
  # Fast installation is not supported
9840
  enable_fast_install=no
9841
elif test "$shlibpath_overrides_runpath" = yes ||
9842
     test "$enable_shared" = no; then
9843
  # Fast installation is not necessary
9844
  enable_fast_install=needless
9845
fi
9846
 
9847
 
9848 82 jeremybenn
 
9849
 
9850
 
9851
 
9852
  if test "x$enable_dlopen" != xyes; then
9853 19 jeremybenn
  enable_dlopen=unknown
9854
  enable_dlopen_self=unknown
9855
  enable_dlopen_self_static=unknown
9856
else
9857
  lt_cv_dlopen=no
9858
  lt_cv_dlopen_libs=
9859
 
9860
  case $host_os in
9861
  beos*)
9862
    lt_cv_dlopen="load_add_on"
9863
    lt_cv_dlopen_libs=
9864
    lt_cv_dlopen_self=yes
9865
    ;;
9866
 
9867 82 jeremybenn
  mingw* | pw32* | cegcc*)
9868 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9869
    lt_cv_dlopen_libs=
9870 82 jeremybenn
    ;;
9871 19 jeremybenn
 
9872
  cygwin*)
9873
    lt_cv_dlopen="dlopen"
9874
    lt_cv_dlopen_libs=
9875 82 jeremybenn
    ;;
9876 19 jeremybenn
 
9877
  darwin*)
9878
  # if libdl is installed we need to link against it
9879 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9880 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9881 121 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9882 82 jeremybenn
  $as_echo_n "(cached) " >&6
9883 19 jeremybenn
else
9884
  ac_check_lib_save_LIBS=$LIBS
9885
LIBS="-ldl  $LIBS"
9886 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9887
/* confdefs.h.  */
9888
_ACEOF
9889
cat confdefs.h >>conftest.$ac_ext
9890
cat >>conftest.$ac_ext <<_ACEOF
9891 19 jeremybenn
/* end confdefs.h.  */
9892
 
9893
/* Override any GCC internal prototype to avoid an error.
9894
   Use char because int might match the return type of a GCC
9895
   builtin and then its argument prototype would still apply.  */
9896
#ifdef __cplusplus
9897
extern "C"
9898
#endif
9899
char dlopen ();
9900
int
9901
main ()
9902
{
9903
return dlopen ();
9904
  ;
9905
  return 0;
9906
}
9907
_ACEOF
9908 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
9909
if { (ac_try="$ac_link"
9910
case "(($ac_try" in
9911
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912
  *) ac_try_echo=$ac_try;;
9913
esac
9914
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9915
$as_echo "$ac_try_echo") >&5
9916
  (eval "$ac_link") 2>conftest.er1
9917
  ac_status=$?
9918
  grep -v '^ *+' conftest.er1 >conftest.err
9919
  rm -f conftest.er1
9920
  cat conftest.err >&5
9921
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922
  (exit $ac_status); } && {
9923
         test -z "$ac_c_werror_flag" ||
9924
         test ! -s conftest.err
9925
       } && test -s conftest$ac_exeext && {
9926
         test "$cross_compiling" = yes ||
9927
         $as_test_x conftest$ac_exeext
9928
       }; then
9929 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9930
else
9931 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9932
sed 's/^/| /' conftest.$ac_ext >&5
9933
 
9934
        ac_cv_lib_dl_dlopen=no
9935 19 jeremybenn
fi
9936 121 jeremybenn
 
9937
rm -rf conftest.dSYM
9938
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9939
      conftest$ac_exeext conftest.$ac_ext
9940 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9941
fi
9942 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9943 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9944 121 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9945 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9946
else
9947
 
9948
    lt_cv_dlopen="dyld"
9949
    lt_cv_dlopen_libs=
9950
    lt_cv_dlopen_self=yes
9951
 
9952
fi
9953
 
9954 82 jeremybenn
    ;;
9955 19 jeremybenn
 
9956
  *)
9957 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9958
$as_echo_n "checking for shl_load... " >&6; }
9959
if test "${ac_cv_func_shl_load+set}" = set; then
9960
  $as_echo_n "(cached) " >&6
9961
else
9962
  cat >conftest.$ac_ext <<_ACEOF
9963
/* confdefs.h.  */
9964
_ACEOF
9965
cat confdefs.h >>conftest.$ac_ext
9966
cat >>conftest.$ac_ext <<_ACEOF
9967
/* end confdefs.h.  */
9968
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9969
   For example, HP-UX 11i  declares gettimeofday.  */
9970
#define shl_load innocuous_shl_load
9971
 
9972
/* System header to define __stub macros and hopefully few prototypes,
9973
    which can conflict with char shl_load (); below.
9974
    Prefer  to  if __STDC__ is defined, since
9975
     exists even on freestanding compilers.  */
9976
 
9977
#ifdef __STDC__
9978
# include 
9979
#else
9980
# include 
9981
#endif
9982
 
9983
#undef shl_load
9984
 
9985
/* Override any GCC internal prototype to avoid an error.
9986
   Use char because int might match the return type of a GCC
9987
   builtin and then its argument prototype would still apply.  */
9988
#ifdef __cplusplus
9989
extern "C"
9990
#endif
9991
char shl_load ();
9992
/* The GNU C library defines this for functions which it implements
9993
    to always fail with ENOSYS.  Some functions are actually named
9994
    something starting with __ and the normal name is an alias.  */
9995
#if defined __stub_shl_load || defined __stub___shl_load
9996
choke me
9997
#endif
9998
 
9999
int
10000
main ()
10001
{
10002
return shl_load ();
10003
  ;
10004
  return 0;
10005
}
10006
_ACEOF
10007
rm -f conftest.$ac_objext conftest$ac_exeext
10008
if { (ac_try="$ac_link"
10009
case "(($ac_try" in
10010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011
  *) ac_try_echo=$ac_try;;
10012
esac
10013
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10014
$as_echo "$ac_try_echo") >&5
10015
  (eval "$ac_link") 2>conftest.er1
10016
  ac_status=$?
10017
  grep -v '^ *+' conftest.er1 >conftest.err
10018
  rm -f conftest.er1
10019
  cat conftest.err >&5
10020
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021
  (exit $ac_status); } && {
10022
         test -z "$ac_c_werror_flag" ||
10023
         test ! -s conftest.err
10024
       } && test -s conftest$ac_exeext && {
10025
         test "$cross_compiling" = yes ||
10026
         $as_test_x conftest$ac_exeext
10027
       }; then
10028
  ac_cv_func_shl_load=yes
10029
else
10030
  $as_echo "$as_me: failed program was:" >&5
10031
sed 's/^/| /' conftest.$ac_ext >&5
10032
 
10033
        ac_cv_func_shl_load=no
10034
fi
10035
 
10036
rm -rf conftest.dSYM
10037
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10038
      conftest$ac_exeext conftest.$ac_ext
10039
fi
10040
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10041
$as_echo "$ac_cv_func_shl_load" >&6; }
10042
if test "x$ac_cv_func_shl_load" = x""yes; then
10043 19 jeremybenn
  lt_cv_dlopen="shl_load"
10044
else
10045 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10046 82 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10047 121 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10048 82 jeremybenn
  $as_echo_n "(cached) " >&6
10049 19 jeremybenn
else
10050
  ac_check_lib_save_LIBS=$LIBS
10051
LIBS="-ldld  $LIBS"
10052 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10053
/* confdefs.h.  */
10054
_ACEOF
10055
cat confdefs.h >>conftest.$ac_ext
10056
cat >>conftest.$ac_ext <<_ACEOF
10057 19 jeremybenn
/* end confdefs.h.  */
10058
 
10059
/* Override any GCC internal prototype to avoid an error.
10060
   Use char because int might match the return type of a GCC
10061
   builtin and then its argument prototype would still apply.  */
10062
#ifdef __cplusplus
10063
extern "C"
10064
#endif
10065
char shl_load ();
10066
int
10067
main ()
10068
{
10069
return shl_load ();
10070
  ;
10071
  return 0;
10072
}
10073
_ACEOF
10074 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10075
if { (ac_try="$ac_link"
10076
case "(($ac_try" in
10077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078
  *) ac_try_echo=$ac_try;;
10079
esac
10080
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10081
$as_echo "$ac_try_echo") >&5
10082
  (eval "$ac_link") 2>conftest.er1
10083
  ac_status=$?
10084
  grep -v '^ *+' conftest.er1 >conftest.err
10085
  rm -f conftest.er1
10086
  cat conftest.err >&5
10087
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088
  (exit $ac_status); } && {
10089
         test -z "$ac_c_werror_flag" ||
10090
         test ! -s conftest.err
10091
       } && test -s conftest$ac_exeext && {
10092
         test "$cross_compiling" = yes ||
10093
         $as_test_x conftest$ac_exeext
10094
       }; then
10095 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
10096
else
10097 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10098
sed 's/^/| /' conftest.$ac_ext >&5
10099
 
10100
        ac_cv_lib_dld_shl_load=no
10101 19 jeremybenn
fi
10102 121 jeremybenn
 
10103
rm -rf conftest.dSYM
10104
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10105
      conftest$ac_exeext conftest.$ac_ext
10106 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10107
fi
10108 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10109 82 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10110 121 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10111 82 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10112 19 jeremybenn
else
10113 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10114
$as_echo_n "checking for dlopen... " >&6; }
10115
if test "${ac_cv_func_dlopen+set}" = set; then
10116
  $as_echo_n "(cached) " >&6
10117
else
10118
  cat >conftest.$ac_ext <<_ACEOF
10119
/* confdefs.h.  */
10120
_ACEOF
10121
cat confdefs.h >>conftest.$ac_ext
10122
cat >>conftest.$ac_ext <<_ACEOF
10123
/* end confdefs.h.  */
10124
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10125
   For example, HP-UX 11i  declares gettimeofday.  */
10126
#define dlopen innocuous_dlopen
10127
 
10128
/* System header to define __stub macros and hopefully few prototypes,
10129
    which can conflict with char dlopen (); below.
10130
    Prefer  to  if __STDC__ is defined, since
10131
     exists even on freestanding compilers.  */
10132
 
10133
#ifdef __STDC__
10134
# include 
10135
#else
10136
# include 
10137
#endif
10138
 
10139
#undef dlopen
10140
 
10141
/* Override any GCC internal prototype to avoid an error.
10142
   Use char because int might match the return type of a GCC
10143
   builtin and then its argument prototype would still apply.  */
10144
#ifdef __cplusplus
10145
extern "C"
10146
#endif
10147
char dlopen ();
10148
/* The GNU C library defines this for functions which it implements
10149
    to always fail with ENOSYS.  Some functions are actually named
10150
    something starting with __ and the normal name is an alias.  */
10151
#if defined __stub_dlopen || defined __stub___dlopen
10152
choke me
10153
#endif
10154
 
10155
int
10156
main ()
10157
{
10158
return dlopen ();
10159
  ;
10160
  return 0;
10161
}
10162
_ACEOF
10163
rm -f conftest.$ac_objext conftest$ac_exeext
10164
if { (ac_try="$ac_link"
10165
case "(($ac_try" in
10166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167
  *) ac_try_echo=$ac_try;;
10168
esac
10169
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10170
$as_echo "$ac_try_echo") >&5
10171
  (eval "$ac_link") 2>conftest.er1
10172
  ac_status=$?
10173
  grep -v '^ *+' conftest.er1 >conftest.err
10174
  rm -f conftest.er1
10175
  cat conftest.err >&5
10176
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177
  (exit $ac_status); } && {
10178
         test -z "$ac_c_werror_flag" ||
10179
         test ! -s conftest.err
10180
       } && test -s conftest$ac_exeext && {
10181
         test "$cross_compiling" = yes ||
10182
         $as_test_x conftest$ac_exeext
10183
       }; then
10184
  ac_cv_func_dlopen=yes
10185
else
10186
  $as_echo "$as_me: failed program was:" >&5
10187
sed 's/^/| /' conftest.$ac_ext >&5
10188
 
10189
        ac_cv_func_dlopen=no
10190
fi
10191
 
10192
rm -rf conftest.dSYM
10193
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10194
      conftest$ac_exeext conftest.$ac_ext
10195
fi
10196
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10197
$as_echo "$ac_cv_func_dlopen" >&6; }
10198
if test "x$ac_cv_func_dlopen" = x""yes; then
10199 19 jeremybenn
  lt_cv_dlopen="dlopen"
10200
else
10201 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10202 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10203 121 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10204 82 jeremybenn
  $as_echo_n "(cached) " >&6
10205 19 jeremybenn
else
10206
  ac_check_lib_save_LIBS=$LIBS
10207
LIBS="-ldl  $LIBS"
10208 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10209
/* confdefs.h.  */
10210
_ACEOF
10211
cat confdefs.h >>conftest.$ac_ext
10212
cat >>conftest.$ac_ext <<_ACEOF
10213 19 jeremybenn
/* end confdefs.h.  */
10214
 
10215
/* Override any GCC internal prototype to avoid an error.
10216
   Use char because int might match the return type of a GCC
10217
   builtin and then its argument prototype would still apply.  */
10218
#ifdef __cplusplus
10219
extern "C"
10220
#endif
10221
char dlopen ();
10222
int
10223
main ()
10224
{
10225
return dlopen ();
10226
  ;
10227
  return 0;
10228
}
10229
_ACEOF
10230 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10231
if { (ac_try="$ac_link"
10232
case "(($ac_try" in
10233
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234
  *) ac_try_echo=$ac_try;;
10235
esac
10236
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10237
$as_echo "$ac_try_echo") >&5
10238
  (eval "$ac_link") 2>conftest.er1
10239
  ac_status=$?
10240
  grep -v '^ *+' conftest.er1 >conftest.err
10241
  rm -f conftest.er1
10242
  cat conftest.err >&5
10243
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244
  (exit $ac_status); } && {
10245
         test -z "$ac_c_werror_flag" ||
10246
         test ! -s conftest.err
10247
       } && test -s conftest$ac_exeext && {
10248
         test "$cross_compiling" = yes ||
10249
         $as_test_x conftest$ac_exeext
10250
       }; then
10251 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
10252
else
10253 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10254
sed 's/^/| /' conftest.$ac_ext >&5
10255
 
10256
        ac_cv_lib_dl_dlopen=no
10257 19 jeremybenn
fi
10258 121 jeremybenn
 
10259
rm -rf conftest.dSYM
10260
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10261
      conftest$ac_exeext conftest.$ac_ext
10262 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10263
fi
10264 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10265 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10266 121 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10267 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10268
else
10269 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10270 82 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10271 121 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10272 82 jeremybenn
  $as_echo_n "(cached) " >&6
10273 19 jeremybenn
else
10274
  ac_check_lib_save_LIBS=$LIBS
10275
LIBS="-lsvld  $LIBS"
10276 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10277
/* confdefs.h.  */
10278
_ACEOF
10279
cat confdefs.h >>conftest.$ac_ext
10280
cat >>conftest.$ac_ext <<_ACEOF
10281 19 jeremybenn
/* end confdefs.h.  */
10282
 
10283
/* Override any GCC internal prototype to avoid an error.
10284
   Use char because int might match the return type of a GCC
10285
   builtin and then its argument prototype would still apply.  */
10286
#ifdef __cplusplus
10287
extern "C"
10288
#endif
10289
char dlopen ();
10290
int
10291
main ()
10292
{
10293
return dlopen ();
10294
  ;
10295
  return 0;
10296
}
10297
_ACEOF
10298 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10299
if { (ac_try="$ac_link"
10300
case "(($ac_try" in
10301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302
  *) ac_try_echo=$ac_try;;
10303
esac
10304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10305
$as_echo "$ac_try_echo") >&5
10306
  (eval "$ac_link") 2>conftest.er1
10307
  ac_status=$?
10308
  grep -v '^ *+' conftest.er1 >conftest.err
10309
  rm -f conftest.er1
10310
  cat conftest.err >&5
10311
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312
  (exit $ac_status); } && {
10313
         test -z "$ac_c_werror_flag" ||
10314
         test ! -s conftest.err
10315
       } && test -s conftest$ac_exeext && {
10316
         test "$cross_compiling" = yes ||
10317
         $as_test_x conftest$ac_exeext
10318
       }; then
10319 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
10320
else
10321 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10322
sed 's/^/| /' conftest.$ac_ext >&5
10323
 
10324
        ac_cv_lib_svld_dlopen=no
10325 19 jeremybenn
fi
10326 121 jeremybenn
 
10327
rm -rf conftest.dSYM
10328
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10329
      conftest$ac_exeext conftest.$ac_ext
10330 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10331
fi
10332 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10333 82 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10334 121 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10335 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10336
else
10337 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10338 82 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10339 121 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10340 82 jeremybenn
  $as_echo_n "(cached) " >&6
10341 19 jeremybenn
else
10342
  ac_check_lib_save_LIBS=$LIBS
10343
LIBS="-ldld  $LIBS"
10344 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10345
/* confdefs.h.  */
10346
_ACEOF
10347
cat confdefs.h >>conftest.$ac_ext
10348
cat >>conftest.$ac_ext <<_ACEOF
10349 19 jeremybenn
/* end confdefs.h.  */
10350
 
10351
/* Override any GCC internal prototype to avoid an error.
10352
   Use char because int might match the return type of a GCC
10353
   builtin and then its argument prototype would still apply.  */
10354
#ifdef __cplusplus
10355
extern "C"
10356
#endif
10357
char dld_link ();
10358
int
10359
main ()
10360
{
10361
return dld_link ();
10362
  ;
10363
  return 0;
10364
}
10365
_ACEOF
10366 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10367
if { (ac_try="$ac_link"
10368
case "(($ac_try" in
10369
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370
  *) ac_try_echo=$ac_try;;
10371
esac
10372
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10373
$as_echo "$ac_try_echo") >&5
10374
  (eval "$ac_link") 2>conftest.er1
10375
  ac_status=$?
10376
  grep -v '^ *+' conftest.er1 >conftest.err
10377
  rm -f conftest.er1
10378
  cat conftest.err >&5
10379
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380
  (exit $ac_status); } && {
10381
         test -z "$ac_c_werror_flag" ||
10382
         test ! -s conftest.err
10383
       } && test -s conftest$ac_exeext && {
10384
         test "$cross_compiling" = yes ||
10385
         $as_test_x conftest$ac_exeext
10386
       }; then
10387 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
10388
else
10389 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10390
sed 's/^/| /' conftest.$ac_ext >&5
10391
 
10392
        ac_cv_lib_dld_dld_link=no
10393 19 jeremybenn
fi
10394 121 jeremybenn
 
10395
rm -rf conftest.dSYM
10396
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10397
      conftest$ac_exeext conftest.$ac_ext
10398 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10399
fi
10400 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10401 82 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10402 121 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10403 82 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10404 19 jeremybenn
fi
10405
 
10406
 
10407
fi
10408
 
10409
 
10410
fi
10411
 
10412
 
10413
fi
10414
 
10415
 
10416
fi
10417
 
10418
 
10419
fi
10420
 
10421
    ;;
10422
  esac
10423
 
10424
  if test "x$lt_cv_dlopen" != xno; then
10425
    enable_dlopen=yes
10426
  else
10427
    enable_dlopen=no
10428
  fi
10429
 
10430
  case $lt_cv_dlopen in
10431
  dlopen)
10432
    save_CPPFLAGS="$CPPFLAGS"
10433
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10434
 
10435
    save_LDFLAGS="$LDFLAGS"
10436
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10437
 
10438
    save_LIBS="$LIBS"
10439
    LIBS="$lt_cv_dlopen_libs $LIBS"
10440
 
10441 121 jeremybenn
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10442 82 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10443 121 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then
10444 82 jeremybenn
  $as_echo_n "(cached) " >&6
10445 19 jeremybenn
else
10446
          if test "$cross_compiling" = yes; then :
10447
  lt_cv_dlopen_self=cross
10448
else
10449
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10450
  lt_status=$lt_dlunknown
10451 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10452 127 jeremybenn
#line 10452 "configure"
10453 19 jeremybenn
#include "confdefs.h"
10454
 
10455
#if HAVE_DLFCN_H
10456
#include 
10457
#endif
10458
 
10459
#include 
10460
 
10461
#ifdef RTLD_GLOBAL
10462
#  define LT_DLGLOBAL           RTLD_GLOBAL
10463
#else
10464
#  ifdef DL_GLOBAL
10465
#    define LT_DLGLOBAL         DL_GLOBAL
10466
#  else
10467
#    define LT_DLGLOBAL         0
10468
#  endif
10469
#endif
10470
 
10471
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10472
   find out it does not work in some platform. */
10473
#ifndef LT_DLLAZY_OR_NOW
10474
#  ifdef RTLD_LAZY
10475
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10476
#  else
10477
#    ifdef DL_LAZY
10478
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10479
#    else
10480
#      ifdef RTLD_NOW
10481
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10482
#      else
10483
#        ifdef DL_NOW
10484
#          define LT_DLLAZY_OR_NOW      DL_NOW
10485
#        else
10486
#          define LT_DLLAZY_OR_NOW      0
10487
#        endif
10488
#      endif
10489
#    endif
10490
#  endif
10491
#endif
10492
 
10493
void fnord() { int i=42;}
10494
int main ()
10495
{
10496
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10497
  int status = $lt_dlunknown;
10498
 
10499
  if (self)
10500
    {
10501
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10502
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10503
      /* dlclose (self); */
10504
    }
10505
  else
10506
    puts (dlerror ());
10507
 
10508 82 jeremybenn
  return status;
10509 19 jeremybenn
}
10510 82 jeremybenn
_LT_EOF
10511 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10512 19 jeremybenn
  (eval $ac_link) 2>&5
10513
  ac_status=$?
10514 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10516 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10517
    lt_status=$?
10518
    case x$lt_status in
10519
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10520
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10521
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10522
    esac
10523
  else :
10524
    # compilation failed
10525
    lt_cv_dlopen_self=no
10526
  fi
10527
fi
10528
rm -fr conftest*
10529
 
10530
 
10531
fi
10532 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10533 82 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
10534 19 jeremybenn
 
10535
    if test "x$lt_cv_dlopen_self" = xyes; then
10536
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10537 121 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10538 82 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10539 121 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then
10540 82 jeremybenn
  $as_echo_n "(cached) " >&6
10541 19 jeremybenn
else
10542
          if test "$cross_compiling" = yes; then :
10543
  lt_cv_dlopen_self_static=cross
10544
else
10545
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10546
  lt_status=$lt_dlunknown
10547 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10548 127 jeremybenn
#line 10548 "configure"
10549 19 jeremybenn
#include "confdefs.h"
10550
 
10551
#if HAVE_DLFCN_H
10552
#include 
10553
#endif
10554
 
10555
#include 
10556
 
10557
#ifdef RTLD_GLOBAL
10558
#  define LT_DLGLOBAL           RTLD_GLOBAL
10559
#else
10560
#  ifdef DL_GLOBAL
10561
#    define LT_DLGLOBAL         DL_GLOBAL
10562
#  else
10563
#    define LT_DLGLOBAL         0
10564
#  endif
10565
#endif
10566
 
10567
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10568
   find out it does not work in some platform. */
10569
#ifndef LT_DLLAZY_OR_NOW
10570
#  ifdef RTLD_LAZY
10571
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10572
#  else
10573
#    ifdef DL_LAZY
10574
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10575
#    else
10576
#      ifdef RTLD_NOW
10577
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10578
#      else
10579
#        ifdef DL_NOW
10580
#          define LT_DLLAZY_OR_NOW      DL_NOW
10581
#        else
10582
#          define LT_DLLAZY_OR_NOW      0
10583
#        endif
10584
#      endif
10585
#    endif
10586
#  endif
10587
#endif
10588
 
10589
void fnord() { int i=42;}
10590
int main ()
10591
{
10592
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10593
  int status = $lt_dlunknown;
10594
 
10595
  if (self)
10596
    {
10597
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10598
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10599
      /* dlclose (self); */
10600
    }
10601
  else
10602
    puts (dlerror ());
10603
 
10604 82 jeremybenn
  return status;
10605 19 jeremybenn
}
10606 82 jeremybenn
_LT_EOF
10607 121 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608 19 jeremybenn
  (eval $ac_link) 2>&5
10609
  ac_status=$?
10610 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10612 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10613
    lt_status=$?
10614
    case x$lt_status in
10615
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10616
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10617
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10618
    esac
10619
  else :
10620
    # compilation failed
10621
    lt_cv_dlopen_self_static=no
10622
  fi
10623
fi
10624
rm -fr conftest*
10625
 
10626
 
10627
fi
10628 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10629 82 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10630 19 jeremybenn
    fi
10631
 
10632
    CPPFLAGS="$save_CPPFLAGS"
10633
    LDFLAGS="$save_LDFLAGS"
10634
    LIBS="$save_LIBS"
10635
    ;;
10636
  esac
10637
 
10638
  case $lt_cv_dlopen_self in
10639
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10640
  *) enable_dlopen_self=unknown ;;
10641
  esac
10642
 
10643
  case $lt_cv_dlopen_self_static in
10644
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10645
  *) enable_dlopen_self_static=unknown ;;
10646
  esac
10647
fi
10648
 
10649
 
10650
 
10651
 
10652
 
10653
 
10654
 
10655
 
10656
 
10657
 
10658
 
10659
 
10660
 
10661
 
10662
 
10663
 
10664
 
10665 82 jeremybenn
striplib=
10666
old_striplib=
10667 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10668 82 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10669
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10670
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10671
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10672 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10673 82 jeremybenn
$as_echo "yes" >&6; }
10674
else
10675
# FIXME - insert some real tests, host_os isn't really good enough
10676 19 jeremybenn
  case $host_os in
10677 82 jeremybenn
  darwin*)
10678
    if test -n "$STRIP" ; then
10679
      striplib="$STRIP -x"
10680
      old_striplib="$STRIP -S"
10681 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: yes" >&5
10682 82 jeremybenn
$as_echo "yes" >&6; }
10683 19 jeremybenn
    else
10684 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: no" >&5
10685 82 jeremybenn
$as_echo "no" >&6; }
10686 19 jeremybenn
    fi
10687
    ;;
10688
  *)
10689 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: no" >&5
10690 82 jeremybenn
$as_echo "no" >&6; }
10691 19 jeremybenn
    ;;
10692
  esac
10693
fi
10694
 
10695
 
10696
 
10697
 
10698
 
10699
 
10700
 
10701
 
10702
 
10703
 
10704
 
10705
 
10706 82 jeremybenn
  # Report which library types will actually be built
10707 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10708 82 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10709 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10710 82 jeremybenn
$as_echo "$can_build_shared" >&6; }
10711 19 jeremybenn
 
10712 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10713 82 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
10714
  test "$can_build_shared" = "no" && enable_shared=no
10715 19 jeremybenn
 
10716 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10717
  # are all built from PIC.
10718 19 jeremybenn
  case $host_os in
10719 82 jeremybenn
  aix3*)
10720 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10721 82 jeremybenn
    if test -n "$RANLIB"; then
10722
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10723
      postinstall_cmds='$RANLIB $lib'
10724 19 jeremybenn
    fi
10725
    ;;
10726
 
10727 82 jeremybenn
  aix[4-9]*)
10728
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10729
      test "$enable_shared" = yes && enable_static=no
10730 19 jeremybenn
    fi
10731
    ;;
10732
  esac
10733 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10734 82 jeremybenn
$as_echo "$enable_shared" >&6; }
10735 19 jeremybenn
 
10736 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10737 82 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
10738
  # Make sure either enable_shared or enable_static is yes.
10739
  test "$enable_shared" = yes || enable_static=yes
10740 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10741 82 jeremybenn
$as_echo "$enable_static" >&6; }
10742 19 jeremybenn
 
10743
 
10744
 
10745
 
10746
fi
10747
ac_ext=c
10748
ac_cpp='$CPP $CPPFLAGS'
10749
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10750
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10751
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10752
 
10753
CC="$lt_save_CC"
10754
 
10755
 
10756
 
10757
 
10758
 
10759
 
10760
 
10761
 
10762
 
10763
 
10764
 
10765
 
10766
 
10767 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10768 19 jeremybenn
 
10769
 
10770
 
10771
 
10772 82 jeremybenn
# Only expand once:
10773 19 jeremybenn
 
10774
 
10775 82 jeremybenn
am__api_version='1.11'
10776 19 jeremybenn
 
10777
# Find a good install program.  We prefer a C program (faster),
10778
# so one script is as good as another.  But avoid the broken or
10779
# incompatible versions:
10780
# SysV /etc/install, /usr/sbin/install
10781
# SunOS /usr/etc/install
10782
# IRIX /sbin/install
10783
# AIX /bin/install
10784
# AmigaOS /C/install, which installs bootblocks on floppy discs
10785
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10786
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10787
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10788
# OS/2's system install, which has a completely different semantic
10789
# ./install, which can be erroneously created by make from ./install.sh.
10790 82 jeremybenn
# Reject install programs that cannot install multiple files.
10791 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10792 82 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10793 19 jeremybenn
if test -z "$INSTALL"; then
10794 121 jeremybenn
if test "${ac_cv_path_install+set}" = set; then
10795 82 jeremybenn
  $as_echo_n "(cached) " >&6
10796 19 jeremybenn
else
10797
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798
for as_dir in $PATH
10799
do
10800
  IFS=$as_save_IFS
10801
  test -z "$as_dir" && as_dir=.
10802 121 jeremybenn
  # Account for people who put trailing slashes in PATH elements.
10803
case $as_dir/ in
10804
  ./ | .// | /cC/* | \
10805 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10806 121 jeremybenn
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10807 19 jeremybenn
  /usr/ucb/* ) ;;
10808
  *)
10809
    # OSF1 and SCO ODT 3.0 have their own names for install.
10810
    # Don't use installbsd from OSF since it installs stuff as root
10811
    # by default.
10812
    for ac_prog in ginstall scoinst install; do
10813
      for ac_exec_ext in '' $ac_executable_extensions; do
10814
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10815
          if test $ac_prog = install &&
10816
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10817
            # AIX install.  It has an incompatible calling convention.
10818
            :
10819
          elif test $ac_prog = install &&
10820
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10821
            # program-specific install script used by HP pwplus--don't use.
10822
            :
10823
          else
10824 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10825
            echo one > conftest.one
10826
            echo two > conftest.two
10827
            mkdir conftest.dir
10828
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10829
              test -s conftest.one && test -s conftest.two &&
10830
              test -s conftest.dir/conftest.one &&
10831
              test -s conftest.dir/conftest.two
10832
            then
10833
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10834
              break 3
10835
            fi
10836 19 jeremybenn
          fi
10837
        fi
10838
      done
10839
    done
10840
    ;;
10841
esac
10842 82 jeremybenn
 
10843 121 jeremybenn
done
10844 19 jeremybenn
IFS=$as_save_IFS
10845
 
10846 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10847 19 jeremybenn
 
10848
fi
10849
  if test "${ac_cv_path_install+set}" = set; then
10850
    INSTALL=$ac_cv_path_install
10851
  else
10852
    # As a last resort, use the slow shell script.  Don't cache a
10853
    # value for INSTALL within a source directory, because that will
10854
    # break other packages using the cache if that directory is
10855
    # removed, or if the value is a relative name.
10856
    INSTALL=$ac_install_sh
10857
  fi
10858
fi
10859 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10860 82 jeremybenn
$as_echo "$INSTALL" >&6; }
10861 19 jeremybenn
 
10862
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10863
# It thinks the first close brace ends the variable substitution.
10864
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10865
 
10866
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10867
 
10868
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10869
 
10870 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10871 82 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
10872 19 jeremybenn
# Just in case
10873
sleep 1
10874
echo timestamp > conftest.file
10875 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10876
# name.  Accept space and tab only in the latter.
10877
am_lf='
10878
'
10879
case `pwd` in
10880
  *[\\\"\#\$\&\'\`$am_lf]*)
10881 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
10882
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
10883
   { (exit 1); exit 1; }; };;
10884 82 jeremybenn
esac
10885
case $srcdir in
10886
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10887 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
10888
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
10889
   { (exit 1); exit 1; }; };;
10890 82 jeremybenn
esac
10891
 
10892 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10893
# arguments.  Must try -L first in case configure is actually a
10894
# symlink; some systems play weird games with the mod time of symlinks
10895
# (eg FreeBSD returns the mod time of the symlink's containing
10896
# directory).
10897
if (
10898 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10899 19 jeremybenn
   if test "$*" = "X"; then
10900
      # -L didn't work.
10901 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10902 19 jeremybenn
   fi
10903
   rm -f conftest.file
10904
   if test "$*" != "X $srcdir/configure conftest.file" \
10905
      && test "$*" != "X conftest.file $srcdir/configure"; then
10906
 
10907
      # If neither matched, then we have a broken ls.  This can happen
10908
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10909
      # broken ls alias from the environment.  This has actually
10910
      # happened.  Such a system could not be considered "sane".
10911 121 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
10912
alias in your environment" >&5
10913
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
10914
alias in your environment" >&2;}
10915
   { (exit 1); exit 1; }; }
10916 19 jeremybenn
   fi
10917
 
10918
   test "$2" = conftest.file
10919
   )
10920
then
10921
   # Ok.
10922
   :
10923
else
10924 121 jeremybenn
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10925
Check your system clock" >&5
10926
$as_echo "$as_me: error: newly created file is older than distributed files!
10927
Check your system clock" >&2;}
10928
   { (exit 1); exit 1; }; }
10929 19 jeremybenn
fi
10930 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10931 82 jeremybenn
$as_echo "yes" >&6; }
10932 19 jeremybenn
test "$program_prefix" != NONE &&
10933
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10934
# Use a double $ so make ignores it.
10935
test "$program_suffix" != NONE &&
10936
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10937 82 jeremybenn
# Double any \ or $.
10938 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10939 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10940
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10941 19 jeremybenn
 
10942
# expand $ac_aux_dir to an absolute path
10943
am_aux_dir=`cd $ac_aux_dir && pwd`
10944
 
10945 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10946
  case $am_aux_dir in
10947
  *\ * | *\     *)
10948
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10949
  *)
10950
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10951
  esac
10952
fi
10953 19 jeremybenn
# Use eval to expand $SHELL
10954
if eval "$MISSING --run true"; then
10955
  am_missing_run="$MISSING --run "
10956
else
10957
  am_missing_run=
10958 121 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10959 82 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10960 19 jeremybenn
fi
10961
 
10962 82 jeremybenn
if test x"${install_sh}" != xset; then
10963
  case $am_aux_dir in
10964
  *\ * | *\     *)
10965
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10966
  *)
10967
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10968
  esac
10969
fi
10970
 
10971
# Installed binaries are usually stripped using `strip' when the user
10972
# run `make install-strip'.  However `strip' might not be the right
10973
# tool to use in cross-compilation environments, therefore Automake
10974
# will honor the `STRIP' environment variable to overrule this program.
10975
if test "$cross_compiling" != no; then
10976
  if test -n "$ac_tool_prefix"; then
10977
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10978
set dummy ${ac_tool_prefix}strip; ac_word=$2
10979 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10980 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10981 121 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then
10982 82 jeremybenn
  $as_echo_n "(cached) " >&6
10983
else
10984
  if test -n "$STRIP"; then
10985
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10986
else
10987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988
for as_dir in $PATH
10989
do
10990
  IFS=$as_save_IFS
10991
  test -z "$as_dir" && as_dir=.
10992 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
10993 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10994
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10995 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10996 82 jeremybenn
    break 2
10997
  fi
10998
done
10999 121 jeremybenn
done
11000 82 jeremybenn
IFS=$as_save_IFS
11001
 
11002
fi
11003
fi
11004
STRIP=$ac_cv_prog_STRIP
11005
if test -n "$STRIP"; then
11006 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
11007 82 jeremybenn
$as_echo "$STRIP" >&6; }
11008
else
11009 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11010 82 jeremybenn
$as_echo "no" >&6; }
11011
fi
11012
 
11013
 
11014
fi
11015
if test -z "$ac_cv_prog_STRIP"; then
11016
  ac_ct_STRIP=$STRIP
11017
  # Extract the first word of "strip", so it can be a program name with args.
11018
set dummy strip; ac_word=$2
11019 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11020 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11021 121 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11022 82 jeremybenn
  $as_echo_n "(cached) " >&6
11023
else
11024
  if test -n "$ac_ct_STRIP"; then
11025
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11026
else
11027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028
for as_dir in $PATH
11029
do
11030
  IFS=$as_save_IFS
11031
  test -z "$as_dir" && as_dir=.
11032 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11033 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11034
    ac_cv_prog_ac_ct_STRIP="strip"
11035 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 82 jeremybenn
    break 2
11037
  fi
11038
done
11039 121 jeremybenn
done
11040 82 jeremybenn
IFS=$as_save_IFS
11041
 
11042
fi
11043
fi
11044
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11045
if test -n "$ac_ct_STRIP"; then
11046 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11047 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
11048
else
11049 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11050 82 jeremybenn
$as_echo "no" >&6; }
11051
fi
11052
 
11053
  if test "x$ac_ct_STRIP" = x; then
11054
    STRIP=":"
11055
  else
11056
    case $cross_compiling:$ac_tool_warned in
11057
yes:)
11058 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11059 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11060
ac_tool_warned=yes ;;
11061
esac
11062
    STRIP=$ac_ct_STRIP
11063
  fi
11064
else
11065
  STRIP="$ac_cv_prog_STRIP"
11066
fi
11067
 
11068
fi
11069
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11070
 
11071 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11072 82 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11073 19 jeremybenn
if test -z "$MKDIR_P"; then
11074 121 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then
11075 82 jeremybenn
  $as_echo_n "(cached) " >&6
11076 19 jeremybenn
else
11077
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11079
do
11080
  IFS=$as_save_IFS
11081
  test -z "$as_dir" && as_dir=.
11082 121 jeremybenn
  for ac_prog in mkdir gmkdir; do
11083 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
11084
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11085
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11086
             'mkdir (GNU coreutils) '* | \
11087
             'mkdir (coreutils) '* | \
11088
             'mkdir (fileutils) '4.1*)
11089
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11090
               break 3;;
11091
           esac
11092
         done
11093
       done
11094 121 jeremybenn
done
11095 19 jeremybenn
IFS=$as_save_IFS
11096
 
11097
fi
11098
 
11099
  if test "${ac_cv_path_mkdir+set}" = set; then
11100
    MKDIR_P="$ac_cv_path_mkdir -p"
11101
  else
11102
    # As a last resort, use the slow shell script.  Don't cache a
11103
    # value for MKDIR_P within a source directory, because that will
11104
    # break other packages using the cache if that directory is
11105
    # removed, or if the value is a relative name.
11106 121 jeremybenn
    test -d ./--version && rmdir ./--version
11107 19 jeremybenn
    MKDIR_P="$ac_install_sh -d"
11108
  fi
11109
fi
11110 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11111 82 jeremybenn
$as_echo "$MKDIR_P" >&6; }
11112 19 jeremybenn
 
11113
mkdir_p="$MKDIR_P"
11114
case $mkdir_p in
11115
  [\\/$]* | ?:[\\/]*) ;;
11116
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11117
esac
11118
 
11119
for ac_prog in gawk mawk nawk awk
11120
do
11121
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11122
set dummy $ac_prog; ac_word=$2
11123 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11124 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11125 121 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then
11126 82 jeremybenn
  $as_echo_n "(cached) " >&6
11127 19 jeremybenn
else
11128
  if test -n "$AWK"; then
11129
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11130
else
11131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132
for as_dir in $PATH
11133
do
11134
  IFS=$as_save_IFS
11135
  test -z "$as_dir" && as_dir=.
11136 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11137 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11138
    ac_cv_prog_AWK="$ac_prog"
11139 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 19 jeremybenn
    break 2
11141
  fi
11142
done
11143 121 jeremybenn
done
11144 19 jeremybenn
IFS=$as_save_IFS
11145
 
11146
fi
11147
fi
11148
AWK=$ac_cv_prog_AWK
11149
if test -n "$AWK"; then
11150 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11151 82 jeremybenn
$as_echo "$AWK" >&6; }
11152 19 jeremybenn
else
11153 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11154 82 jeremybenn
$as_echo "no" >&6; }
11155 19 jeremybenn
fi
11156
 
11157
 
11158
  test -n "$AWK" && break
11159
done
11160
 
11161 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11162 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11163
set x ${MAKE-make}
11164
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11165 121 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11166 82 jeremybenn
  $as_echo_n "(cached) " >&6
11167 19 jeremybenn
else
11168
  cat >conftest.make <<\_ACEOF
11169
SHELL = /bin/sh
11170
all:
11171
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11172
_ACEOF
11173
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11174
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11175
  *@@@%%%=?*=@@@%%%*)
11176
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11177
  *)
11178
    eval ac_cv_prog_make_${ac_make}_set=no;;
11179
esac
11180
rm -f conftest.make
11181
fi
11182
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11183 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
11184 82 jeremybenn
$as_echo "yes" >&6; }
11185 19 jeremybenn
  SET_MAKE=
11186
else
11187 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11188 82 jeremybenn
$as_echo "no" >&6; }
11189 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11190
fi
11191
 
11192
rm -rf .tst 2>/dev/null
11193
mkdir .tst 2>/dev/null
11194
if test -d .tst; then
11195
  am__leading_dot=.
11196
else
11197
  am__leading_dot=_
11198
fi
11199
rmdir .tst 2>/dev/null
11200
 
11201
DEPDIR="${am__leading_dot}deps"
11202
 
11203
ac_config_commands="$ac_config_commands depfiles"
11204
 
11205
 
11206
am_make=${MAKE-make}
11207
cat > confinc << 'END'
11208
am__doit:
11209 82 jeremybenn
        @echo this is the am__doit target
11210 19 jeremybenn
.PHONY: am__doit
11211
END
11212
# If we don't find an include directive, just comment out the code.
11213 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
11214 82 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
11215 19 jeremybenn
am__include="#"
11216
am__quote=
11217
_am_result=none
11218
# First try GNU make style include.
11219
echo "include confinc" > confmf
11220 82 jeremybenn
# Ignore all kinds of additional output from `make'.
11221
case `$am_make -s -f confmf 2> /dev/null` in #(
11222
*the\ am__doit\ target*)
11223
  am__include=include
11224
  am__quote=
11225
  _am_result=GNU
11226
  ;;
11227
esac
11228 19 jeremybenn
# Now try BSD make style include.
11229
if test "$am__include" = "#"; then
11230
   echo '.include "confinc"' > confmf
11231 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
11232
   *the\ am__doit\ target*)
11233
     am__include=.include
11234
     am__quote="\""
11235
     _am_result=BSD
11236
     ;;
11237
   esac
11238 19 jeremybenn
fi
11239
 
11240
 
11241 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
11242 82 jeremybenn
$as_echo "$_am_result" >&6; }
11243 19 jeremybenn
rm -f confinc confmf
11244
 
11245
# Check whether --enable-dependency-tracking was given.
11246 121 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then
11247 19 jeremybenn
  enableval=$enable_dependency_tracking;
11248
fi
11249
 
11250
if test "x$enable_dependency_tracking" != xno; then
11251
  am_depcomp="$ac_aux_dir/depcomp"
11252
  AMDEPBACKSLASH='\'
11253
fi
11254
 if test "x$enable_dependency_tracking" != xno; then
11255
  AMDEP_TRUE=
11256
  AMDEP_FALSE='#'
11257
else
11258
  AMDEP_TRUE='#'
11259
  AMDEP_FALSE=
11260
fi
11261
 
11262
 
11263
if test "`cd $srcdir && pwd`" != "`pwd`"; then
11264
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11265
  # is not polluted with repeated "-I."
11266
  am__isrc=' -I$(srcdir)'
11267
  # test to see if srcdir already configured
11268
  if test -f $srcdir/config.status; then
11269 121 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11270
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11271
   { (exit 1); exit 1; }; }
11272 19 jeremybenn
  fi
11273
fi
11274
 
11275
# test whether we have cygpath
11276
if test -z "$CYGPATH_W"; then
11277
  if (cygpath --version) >/dev/null 2>/dev/null; then
11278
    CYGPATH_W='cygpath -w'
11279
  else
11280
    CYGPATH_W=echo
11281
  fi
11282
fi
11283
 
11284
 
11285
# Define the identity of the package.
11286
 PACKAGE='or1ksim'
11287 143 jeremybenn
 VERSION='2010-06-31'
11288 19 jeremybenn
 
11289
 
11290
cat >>confdefs.h <<_ACEOF
11291
#define PACKAGE "$PACKAGE"
11292
_ACEOF
11293
 
11294
 
11295
cat >>confdefs.h <<_ACEOF
11296
#define VERSION "$VERSION"
11297
_ACEOF
11298
 
11299
# Some tools Automake needs.
11300
 
11301
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11302
 
11303
 
11304
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11305
 
11306
 
11307
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11308
 
11309
 
11310
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11311
 
11312
 
11313
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11314
 
11315
# We need awk for the "check" target.  The system "awk" is bad on
11316
# some platforms.
11317
# Always define AMTAR for backward compatibility.
11318
 
11319
AMTAR=${AMTAR-"${am_missing_run}tar"}
11320
 
11321
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11322
 
11323
 
11324
 
11325
 
11326
depcc="$CC"   am_compiler_list=
11327
 
11328 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11329 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
11330 121 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11331 82 jeremybenn
  $as_echo_n "(cached) " >&6
11332 19 jeremybenn
else
11333
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11334
  # We make a subdir and do the tests there.  Otherwise we can end up
11335
  # making bogus files that we don't know about and never remove.  For
11336
  # instance it was reported that on HP-UX the gcc test will end up
11337
  # making a dummy file named `D' -- because `-MD' means `put the output
11338
  # in D'.
11339
  mkdir conftest.dir
11340
  # Copy depcomp to subdir because otherwise we won't find it if we're
11341
  # using a relative directory.
11342
  cp "$am_depcomp" conftest.dir
11343
  cd conftest.dir
11344
  # We will build objects and dependencies in a subdirectory because
11345
  # it helps to detect inapplicable dependency modes.  For instance
11346
  # both Tru64's cc and ICC support -MD to output dependencies as a
11347
  # side effect of compilation, but ICC will put the dependencies in
11348
  # the current directory while Tru64 will put them in the object
11349
  # directory.
11350
  mkdir sub
11351
 
11352
  am_cv_CC_dependencies_compiler_type=none
11353
  if test "$am_compiler_list" = ""; then
11354
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11355
  fi
11356 82 jeremybenn
  am__universal=false
11357
  case " $depcc " in #(
11358
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11359
     esac
11360
 
11361 19 jeremybenn
  for depmode in $am_compiler_list; do
11362
    # Setup a source with many dependencies, because some compilers
11363
    # like to wrap large dependency lists on column 80 (with \), and
11364
    # we should not choose a depcomp mode which is confused by this.
11365
    #
11366
    # We need to recreate these files for each test, as the compiler may
11367
    # overwrite some of them when testing with obscure command lines.
11368
    # This happens at least with the AIX C compiler.
11369
    : > sub/conftest.c
11370
    for i in 1 2 3 4 5 6; do
11371
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11372
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11373
      # Solaris 8's {/usr,}/bin/sh.
11374
      touch sub/conftst$i.h
11375
    done
11376
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11377
 
11378 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11379
    # mode.  It turns out that the SunPro C++ compiler does not properly
11380
    # handle `-M -o', and we need to detect this.  Also, some Intel
11381
    # versions had trouble with output in subdirs
11382
    am__obj=sub/conftest.${OBJEXT-o}
11383
    am__minus_obj="-o $am__obj"
11384 19 jeremybenn
    case $depmode in
11385 82 jeremybenn
    gcc)
11386
      # This depmode causes a compiler race in universal mode.
11387
      test "$am__universal" = false || continue
11388
      ;;
11389 19 jeremybenn
    nosideeffect)
11390
      # after this tag, mechanisms are not by side-effect, so they'll
11391
      # only be used when explicitly requested
11392
      if test "x$enable_dependency_tracking" = xyes; then
11393
        continue
11394
      else
11395
        break
11396
      fi
11397
      ;;
11398 82 jeremybenn
    msvisualcpp | msvcmsys)
11399
      # This compiler won't grok `-c -o', but also, the minuso test has
11400
      # not run yet.  These depmodes are late enough in the game, and
11401
      # so weak that their functioning should not be impacted.
11402
      am__obj=conftest.${OBJEXT-o}
11403
      am__minus_obj=
11404
      ;;
11405 19 jeremybenn
    none) break ;;
11406
    esac
11407
    if depmode=$depmode \
11408 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11409 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11410 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11411 19 jeremybenn
         >/dev/null 2>conftest.err &&
11412
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11413
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11414 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11415 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11416
      # icc doesn't choke on unknown options, it will just issue warnings
11417
      # or remarks (even with -Werror).  So we grep stderr for any message
11418
      # that says an option was ignored or not supported.
11419
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11420
      #   icc: Command line warning: ignoring option '-M'; no argument required
11421
      # The diagnosis changed in icc 8.0:
11422
      #   icc: Command line remark: option '-MP' not supported
11423
      if (grep 'ignoring option' conftest.err ||
11424
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11425
        am_cv_CC_dependencies_compiler_type=$depmode
11426
        break
11427
      fi
11428
    fi
11429
  done
11430
 
11431
  cd ..
11432
  rm -rf conftest.dir
11433
else
11434
  am_cv_CC_dependencies_compiler_type=none
11435
fi
11436
 
11437
fi
11438 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11439 82 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11440 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11441
 
11442
 if
11443
  test "x$enable_dependency_tracking" != xno \
11444
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11445
  am__fastdepCC_TRUE=
11446
  am__fastdepCC_FALSE='#'
11447
else
11448
  am__fastdepCC_TRUE='#'
11449
  am__fastdepCC_FALSE=
11450
fi
11451
 
11452
 
11453
 
11454 91 jeremybenn
 
11455 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
11456
 
11457
 
11458
 
11459
 
11460
# make sure we are using a recent autoconf version
11461
 
11462
 
11463
# yuck.
11464
case "$target_cpu" in
11465
or32*)  CPU_ARCH=or32;
11466
        ARCH_ISA=OR32;
11467
 
11468 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
11469
#define OR32_TYPES 1
11470
_ACEOF
11471 82 jeremybenn
;;
11472
dlx*)   CPU_ARCH=dlx;
11473
        ARCH_ISA=DLX;;
11474 121 jeremybenn
*)      { $as_echo "$as_me:$LINENO: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
11475 82 jeremybenn
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
11476
        CPU_ARCH=or32;
11477
        ARCH_ISA=OR32;
11478
 
11479 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
11480
#define OR32_TYPES 1
11481
_ACEOF
11482 82 jeremybenn
;;
11483
esac
11484
 
11485
# determine endianism from target CPU name. If it has "little" in the name,
11486
# then its litte endian, otherwise its big endian (default for OR1K)
11487
case "$target_cpu" in
11488
*little*)
11489 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
11490
#define OR32_LITTLE_ENDIAN 1
11491
_ACEOF
11492 82 jeremybenn
;;
11493
       *)
11494 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
11495
#define OR32_BIG_ENDIAN 1
11496
_ACEOF
11497 82 jeremybenn
;;
11498
esac
11499
 
11500
 
11501
 
11502
# Set the CFLAGS we want
11503
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
11504
 
11505
# By default we simply use the C compiler to build assembly code.
11506
 
11507
test "${CCAS+set}" = set || CCAS=$CC
11508
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11509
 
11510
 
11511
 
11512
depcc="$CCAS"   am_compiler_list=
11513
 
11514 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11515 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
11516 121 jeremybenn
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11517 82 jeremybenn
  $as_echo_n "(cached) " >&6
11518 19 jeremybenn
else
11519
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11520
  # We make a subdir and do the tests there.  Otherwise we can end up
11521
  # making bogus files that we don't know about and never remove.  For
11522
  # instance it was reported that on HP-UX the gcc test will end up
11523
  # making a dummy file named `D' -- because `-MD' means `put the output
11524
  # in D'.
11525
  mkdir conftest.dir
11526
  # Copy depcomp to subdir because otherwise we won't find it if we're
11527
  # using a relative directory.
11528
  cp "$am_depcomp" conftest.dir
11529
  cd conftest.dir
11530
  # We will build objects and dependencies in a subdirectory because
11531
  # it helps to detect inapplicable dependency modes.  For instance
11532
  # both Tru64's cc and ICC support -MD to output dependencies as a
11533
  # side effect of compilation, but ICC will put the dependencies in
11534
  # the current directory while Tru64 will put them in the object
11535
  # directory.
11536
  mkdir sub
11537
 
11538 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11539 19 jeremybenn
  if test "$am_compiler_list" = ""; then
11540
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11541
  fi
11542 82 jeremybenn
  am__universal=false
11543
 
11544
 
11545 19 jeremybenn
  for depmode in $am_compiler_list; do
11546
    # Setup a source with many dependencies, because some compilers
11547
    # like to wrap large dependency lists on column 80 (with \), and
11548
    # we should not choose a depcomp mode which is confused by this.
11549
    #
11550
    # We need to recreate these files for each test, as the compiler may
11551
    # overwrite some of them when testing with obscure command lines.
11552
    # This happens at least with the AIX C compiler.
11553
    : > sub/conftest.c
11554
    for i in 1 2 3 4 5 6; do
11555
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11556
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11557
      # Solaris 8's {/usr,}/bin/sh.
11558
      touch sub/conftst$i.h
11559
    done
11560
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11561
 
11562 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11563
    # mode.  It turns out that the SunPro C++ compiler does not properly
11564
    # handle `-M -o', and we need to detect this.  Also, some Intel
11565
    # versions had trouble with output in subdirs
11566
    am__obj=sub/conftest.${OBJEXT-o}
11567
    am__minus_obj="-o $am__obj"
11568 19 jeremybenn
    case $depmode in
11569 82 jeremybenn
    gcc)
11570
      # This depmode causes a compiler race in universal mode.
11571
      test "$am__universal" = false || continue
11572
      ;;
11573 19 jeremybenn
    nosideeffect)
11574
      # after this tag, mechanisms are not by side-effect, so they'll
11575
      # only be used when explicitly requested
11576
      if test "x$enable_dependency_tracking" = xyes; then
11577
        continue
11578
      else
11579
        break
11580
      fi
11581
      ;;
11582 82 jeremybenn
    msvisualcpp | msvcmsys)
11583
      # This compiler won't grok `-c -o', but also, the minuso test has
11584
      # not run yet.  These depmodes are late enough in the game, and
11585
      # so weak that their functioning should not be impacted.
11586
      am__obj=conftest.${OBJEXT-o}
11587
      am__minus_obj=
11588
      ;;
11589 19 jeremybenn
    none) break ;;
11590
    esac
11591
    if depmode=$depmode \
11592 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11593 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11594 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11595 19 jeremybenn
         >/dev/null 2>conftest.err &&
11596
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11597
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11598 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11599 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11600
      # icc doesn't choke on unknown options, it will just issue warnings
11601
      # or remarks (even with -Werror).  So we grep stderr for any message
11602
      # that says an option was ignored or not supported.
11603
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11604
      #   icc: Command line warning: ignoring option '-M'; no argument required
11605
      # The diagnosis changed in icc 8.0:
11606
      #   icc: Command line remark: option '-MP' not supported
11607
      if (grep 'ignoring option' conftest.err ||
11608
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11609 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11610 19 jeremybenn
        break
11611
      fi
11612
    fi
11613
  done
11614
 
11615
  cd ..
11616
  rm -rf conftest.dir
11617
else
11618 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11619 19 jeremybenn
fi
11620
 
11621
fi
11622 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11623 82 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11624
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11625 19 jeremybenn
 
11626
 if
11627
  test "x$enable_dependency_tracking" != xno \
11628 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11629
  am__fastdepCCAS_TRUE=
11630
  am__fastdepCCAS_FALSE='#'
11631 19 jeremybenn
else
11632 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11633
  am__fastdepCCAS_FALSE=
11634 19 jeremybenn
fi
11635
 
11636
 
11637
 
11638
ac_ext=c
11639
ac_cpp='$CPP $CPPFLAGS'
11640
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11641
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11642
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11643
if test -n "$ac_tool_prefix"; then
11644
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11645
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11646 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11647 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11648 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11649 82 jeremybenn
  $as_echo_n "(cached) " >&6
11650 19 jeremybenn
else
11651
  if test -n "$CC"; then
11652
  ac_cv_prog_CC="$CC" # Let the user override the test.
11653
else
11654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655
for as_dir in $PATH
11656
do
11657
  IFS=$as_save_IFS
11658
  test -z "$as_dir" && as_dir=.
11659 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11660 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11661
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11662 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 19 jeremybenn
    break 2
11664
  fi
11665
done
11666 121 jeremybenn
done
11667 19 jeremybenn
IFS=$as_save_IFS
11668
 
11669
fi
11670
fi
11671
CC=$ac_cv_prog_CC
11672
if test -n "$CC"; then
11673 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11674 82 jeremybenn
$as_echo "$CC" >&6; }
11675 19 jeremybenn
else
11676 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11677 82 jeremybenn
$as_echo "no" >&6; }
11678 19 jeremybenn
fi
11679
 
11680
 
11681
fi
11682
if test -z "$ac_cv_prog_CC"; then
11683
  ac_ct_CC=$CC
11684
  # Extract the first word of "gcc", so it can be a program name with args.
11685
set dummy gcc; ac_word=$2
11686 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11687 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11688 121 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11689 82 jeremybenn
  $as_echo_n "(cached) " >&6
11690 19 jeremybenn
else
11691
  if test -n "$ac_ct_CC"; then
11692
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11693
else
11694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695
for as_dir in $PATH
11696
do
11697
  IFS=$as_save_IFS
11698
  test -z "$as_dir" && as_dir=.
11699 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11700 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11701
    ac_cv_prog_ac_ct_CC="gcc"
11702 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11703 19 jeremybenn
    break 2
11704
  fi
11705
done
11706 121 jeremybenn
done
11707 19 jeremybenn
IFS=$as_save_IFS
11708
 
11709
fi
11710
fi
11711
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11712
if test -n "$ac_ct_CC"; then
11713 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11714 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11715 19 jeremybenn
else
11716 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11717 82 jeremybenn
$as_echo "no" >&6; }
11718 19 jeremybenn
fi
11719
 
11720
  if test "x$ac_ct_CC" = x; then
11721
    CC=""
11722
  else
11723
    case $cross_compiling:$ac_tool_warned in
11724
yes:)
11725 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11726 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11727 19 jeremybenn
ac_tool_warned=yes ;;
11728
esac
11729
    CC=$ac_ct_CC
11730
  fi
11731
else
11732
  CC="$ac_cv_prog_CC"
11733
fi
11734
 
11735
if test -z "$CC"; then
11736
          if test -n "$ac_tool_prefix"; then
11737
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11738
set dummy ${ac_tool_prefix}cc; ac_word=$2
11739 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11740 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11741 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11742 82 jeremybenn
  $as_echo_n "(cached) " >&6
11743 19 jeremybenn
else
11744
  if test -n "$CC"; then
11745
  ac_cv_prog_CC="$CC" # Let the user override the test.
11746
else
11747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748
for as_dir in $PATH
11749
do
11750
  IFS=$as_save_IFS
11751
  test -z "$as_dir" && as_dir=.
11752 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11753 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11754
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11755 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 19 jeremybenn
    break 2
11757
  fi
11758
done
11759 121 jeremybenn
done
11760 19 jeremybenn
IFS=$as_save_IFS
11761
 
11762
fi
11763
fi
11764
CC=$ac_cv_prog_CC
11765
if test -n "$CC"; then
11766 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11767 82 jeremybenn
$as_echo "$CC" >&6; }
11768 19 jeremybenn
else
11769 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11770 82 jeremybenn
$as_echo "no" >&6; }
11771 19 jeremybenn
fi
11772
 
11773
 
11774
  fi
11775
fi
11776
if test -z "$CC"; then
11777
  # Extract the first word of "cc", so it can be a program name with args.
11778
set dummy cc; ac_word=$2
11779 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11780 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11781 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11782 82 jeremybenn
  $as_echo_n "(cached) " >&6
11783 19 jeremybenn
else
11784
  if test -n "$CC"; then
11785
  ac_cv_prog_CC="$CC" # Let the user override the test.
11786
else
11787
  ac_prog_rejected=no
11788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789
for as_dir in $PATH
11790
do
11791
  IFS=$as_save_IFS
11792
  test -z "$as_dir" && as_dir=.
11793 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11794 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11795
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11796
       ac_prog_rejected=yes
11797
       continue
11798
     fi
11799
    ac_cv_prog_CC="cc"
11800 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11801 19 jeremybenn
    break 2
11802
  fi
11803
done
11804 121 jeremybenn
done
11805 19 jeremybenn
IFS=$as_save_IFS
11806
 
11807
if test $ac_prog_rejected = yes; then
11808
  # We found a bogon in the path, so make sure we never use it.
11809
  set dummy $ac_cv_prog_CC
11810
  shift
11811
  if test $# != 0; then
11812
    # We chose a different compiler from the bogus one.
11813
    # However, it has the same basename, so the bogon will be chosen
11814
    # first if we set CC to just the basename; use the full file name.
11815
    shift
11816
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11817
  fi
11818
fi
11819
fi
11820
fi
11821
CC=$ac_cv_prog_CC
11822
if test -n "$CC"; then
11823 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11824 82 jeremybenn
$as_echo "$CC" >&6; }
11825 19 jeremybenn
else
11826 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11827 82 jeremybenn
$as_echo "no" >&6; }
11828 19 jeremybenn
fi
11829
 
11830
 
11831
fi
11832
if test -z "$CC"; then
11833
  if test -n "$ac_tool_prefix"; then
11834
  for ac_prog in cl.exe
11835
  do
11836
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11837
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11838 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11839 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11840 121 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11841 82 jeremybenn
  $as_echo_n "(cached) " >&6
11842 19 jeremybenn
else
11843
  if test -n "$CC"; then
11844
  ac_cv_prog_CC="$CC" # Let the user override the test.
11845
else
11846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847
for as_dir in $PATH
11848
do
11849
  IFS=$as_save_IFS
11850
  test -z "$as_dir" && as_dir=.
11851 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11852 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11853
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11854 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 19 jeremybenn
    break 2
11856
  fi
11857
done
11858 121 jeremybenn
done
11859 19 jeremybenn
IFS=$as_save_IFS
11860
 
11861
fi
11862
fi
11863
CC=$ac_cv_prog_CC
11864
if test -n "$CC"; then
11865 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11866 82 jeremybenn
$as_echo "$CC" >&6; }
11867 19 jeremybenn
else
11868 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11869 82 jeremybenn
$as_echo "no" >&6; }
11870 19 jeremybenn
fi
11871
 
11872
 
11873
    test -n "$CC" && break
11874
  done
11875
fi
11876
if test -z "$CC"; then
11877
  ac_ct_CC=$CC
11878
  for ac_prog in cl.exe
11879
do
11880
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11881
set dummy $ac_prog; ac_word=$2
11882 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11883 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11884 121 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11885 82 jeremybenn
  $as_echo_n "(cached) " >&6
11886 19 jeremybenn
else
11887
  if test -n "$ac_ct_CC"; then
11888
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11889
else
11890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891
for as_dir in $PATH
11892
do
11893
  IFS=$as_save_IFS
11894
  test -z "$as_dir" && as_dir=.
11895 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11896 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11897
    ac_cv_prog_ac_ct_CC="$ac_prog"
11898 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11899 19 jeremybenn
    break 2
11900
  fi
11901
done
11902 121 jeremybenn
done
11903 19 jeremybenn
IFS=$as_save_IFS
11904
 
11905
fi
11906
fi
11907
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11908
if test -n "$ac_ct_CC"; then
11909 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11910 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11911 19 jeremybenn
else
11912 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11913 82 jeremybenn
$as_echo "no" >&6; }
11914 19 jeremybenn
fi
11915
 
11916
 
11917
  test -n "$ac_ct_CC" && break
11918
done
11919
 
11920
  if test "x$ac_ct_CC" = x; then
11921
    CC=""
11922
  else
11923
    case $cross_compiling:$ac_tool_warned in
11924
yes:)
11925 121 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11926 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11927 19 jeremybenn
ac_tool_warned=yes ;;
11928
esac
11929
    CC=$ac_ct_CC
11930
  fi
11931
fi
11932
 
11933
fi
11934
 
11935
 
11936 121 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11937 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11938 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11939
See \`config.log' for more details." >&5
11940
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11941
See \`config.log' for more details." >&2;}
11942
   { (exit 1); exit 1; }; }; }
11943 19 jeremybenn
 
11944
# Provide some information about the compiler.
11945 121 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11946 82 jeremybenn
set X $ac_compile
11947
ac_compiler=$2
11948 121 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
11949 19 jeremybenn
case "(($ac_try" in
11950
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951
  *) ac_try_echo=$ac_try;;
11952
esac
11953 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11954
$as_echo "$ac_try_echo") >&5
11955
  (eval "$ac_compiler --version >&5") 2>&5
11956 19 jeremybenn
  ac_status=$?
11957 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958
  (exit $ac_status); }
11959
{ (ac_try="$ac_compiler -v >&5"
11960
case "(($ac_try" in
11961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962
  *) ac_try_echo=$ac_try;;
11963
esac
11964
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11965
$as_echo "$ac_try_echo") >&5
11966
  (eval "$ac_compiler -v >&5") 2>&5
11967
  ac_status=$?
11968
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969
  (exit $ac_status); }
11970
{ (ac_try="$ac_compiler -V >&5"
11971
case "(($ac_try" in
11972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973
  *) ac_try_echo=$ac_try;;
11974
esac
11975
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11976
$as_echo "$ac_try_echo") >&5
11977
  (eval "$ac_compiler -V >&5") 2>&5
11978
  ac_status=$?
11979
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980
  (exit $ac_status); }
11981 19 jeremybenn
 
11982 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11983 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11984 121 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
11985 82 jeremybenn
  $as_echo_n "(cached) " >&6
11986 19 jeremybenn
else
11987 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
11988
/* confdefs.h.  */
11989
_ACEOF
11990
cat confdefs.h >>conftest.$ac_ext
11991
cat >>conftest.$ac_ext <<_ACEOF
11992 19 jeremybenn
/* end confdefs.h.  */
11993
 
11994
int
11995
main ()
11996
{
11997
#ifndef __GNUC__
11998
       choke me
11999
#endif
12000
 
12001
  ;
12002
  return 0;
12003
}
12004
_ACEOF
12005 121 jeremybenn
rm -f conftest.$ac_objext
12006
if { (ac_try="$ac_compile"
12007
case "(($ac_try" in
12008
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009
  *) ac_try_echo=$ac_try;;
12010
esac
12011
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12012
$as_echo "$ac_try_echo") >&5
12013
  (eval "$ac_compile") 2>conftest.er1
12014
  ac_status=$?
12015
  grep -v '^ *+' conftest.er1 >conftest.err
12016
  rm -f conftest.er1
12017
  cat conftest.err >&5
12018
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019
  (exit $ac_status); } && {
12020
         test -z "$ac_c_werror_flag" ||
12021
         test ! -s conftest.err
12022
       } && test -s conftest.$ac_objext; then
12023 19 jeremybenn
  ac_compiler_gnu=yes
12024
else
12025 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12026
sed 's/^/| /' conftest.$ac_ext >&5
12027
 
12028
        ac_compiler_gnu=no
12029 19 jeremybenn
fi
12030 121 jeremybenn
 
12031 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12032
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12033
 
12034
fi
12035 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12036 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12037
if test $ac_compiler_gnu = yes; then
12038
  GCC=yes
12039
else
12040
  GCC=
12041
fi
12042 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
12043
ac_save_CFLAGS=$CFLAGS
12044 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12045 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
12046 121 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
12047 82 jeremybenn
  $as_echo_n "(cached) " >&6
12048 19 jeremybenn
else
12049
  ac_save_c_werror_flag=$ac_c_werror_flag
12050
   ac_c_werror_flag=yes
12051
   ac_cv_prog_cc_g=no
12052
   CFLAGS="-g"
12053 121 jeremybenn
   cat >conftest.$ac_ext <<_ACEOF
12054
/* confdefs.h.  */
12055
_ACEOF
12056
cat confdefs.h >>conftest.$ac_ext
12057
cat >>conftest.$ac_ext <<_ACEOF
12058 19 jeremybenn
/* end confdefs.h.  */
12059
 
12060
int
12061
main ()
12062
{
12063
 
12064
  ;
12065
  return 0;
12066
}
12067
_ACEOF
12068 121 jeremybenn
rm -f conftest.$ac_objext
12069
if { (ac_try="$ac_compile"
12070
case "(($ac_try" in
12071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072
  *) ac_try_echo=$ac_try;;
12073
esac
12074
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12075
$as_echo "$ac_try_echo") >&5
12076
  (eval "$ac_compile") 2>conftest.er1
12077
  ac_status=$?
12078
  grep -v '^ *+' conftest.er1 >conftest.err
12079
  rm -f conftest.er1
12080
  cat conftest.err >&5
12081
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082
  (exit $ac_status); } && {
12083
         test -z "$ac_c_werror_flag" ||
12084
         test ! -s conftest.err
12085
       } && test -s conftest.$ac_objext; then
12086 19 jeremybenn
  ac_cv_prog_cc_g=yes
12087
else
12088 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12089
sed 's/^/| /' conftest.$ac_ext >&5
12090
 
12091
        CFLAGS=""
12092
      cat >conftest.$ac_ext <<_ACEOF
12093
/* confdefs.h.  */
12094
_ACEOF
12095
cat confdefs.h >>conftest.$ac_ext
12096
cat >>conftest.$ac_ext <<_ACEOF
12097 19 jeremybenn
/* end confdefs.h.  */
12098
 
12099
int
12100
main ()
12101
{
12102
 
12103
  ;
12104
  return 0;
12105
}
12106
_ACEOF
12107 121 jeremybenn
rm -f conftest.$ac_objext
12108
if { (ac_try="$ac_compile"
12109
case "(($ac_try" in
12110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111
  *) ac_try_echo=$ac_try;;
12112
esac
12113
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12114
$as_echo "$ac_try_echo") >&5
12115
  (eval "$ac_compile") 2>conftest.er1
12116
  ac_status=$?
12117
  grep -v '^ *+' conftest.er1 >conftest.err
12118
  rm -f conftest.er1
12119
  cat conftest.err >&5
12120
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121
  (exit $ac_status); } && {
12122
         test -z "$ac_c_werror_flag" ||
12123
         test ! -s conftest.err
12124
       } && test -s conftest.$ac_objext; then
12125
  :
12126
else
12127
  $as_echo "$as_me: failed program was:" >&5
12128
sed 's/^/| /' conftest.$ac_ext >&5
12129 118 jeremybenn
 
12130 121 jeremybenn
        ac_c_werror_flag=$ac_save_c_werror_flag
12131 19 jeremybenn
         CFLAGS="-g"
12132 121 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
12133
/* confdefs.h.  */
12134
_ACEOF
12135
cat confdefs.h >>conftest.$ac_ext
12136
cat >>conftest.$ac_ext <<_ACEOF
12137 19 jeremybenn
/* end confdefs.h.  */
12138
 
12139
int
12140
main ()
12141
{
12142
 
12143
  ;
12144
  return 0;
12145
}
12146
_ACEOF
12147 121 jeremybenn
rm -f conftest.$ac_objext
12148
if { (ac_try="$ac_compile"
12149
case "(($ac_try" in
12150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151
  *) ac_try_echo=$ac_try;;
12152
esac
12153
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12154
$as_echo "$ac_try_echo") >&5
12155
  (eval "$ac_compile") 2>conftest.er1
12156
  ac_status=$?
12157
  grep -v '^ *+' conftest.er1 >conftest.err
12158
  rm -f conftest.er1
12159
  cat conftest.err >&5
12160
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161
  (exit $ac_status); } && {
12162
         test -z "$ac_c_werror_flag" ||
12163
         test ! -s conftest.err
12164
       } && test -s conftest.$ac_objext; then
12165 19 jeremybenn
  ac_cv_prog_cc_g=yes
12166 121 jeremybenn
else
12167
  $as_echo "$as_me: failed program was:" >&5
12168
sed 's/^/| /' conftest.$ac_ext >&5
12169
 
12170
 
12171 19 jeremybenn
fi
12172 121 jeremybenn
 
12173 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174
fi
12175 121 jeremybenn
 
12176 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177
fi
12178 121 jeremybenn
 
12179 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180
   ac_c_werror_flag=$ac_save_c_werror_flag
12181
fi
12182 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12183 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
12184 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
12185
  CFLAGS=$ac_save_CFLAGS
12186
elif test $ac_cv_prog_cc_g = yes; then
12187
  if test "$GCC" = yes; then
12188
    CFLAGS="-g -O2"
12189
  else
12190
    CFLAGS="-g"
12191
  fi
12192
else
12193
  if test "$GCC" = yes; then
12194
    CFLAGS="-O2"
12195
  else
12196
    CFLAGS=
12197
  fi
12198
fi
12199 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12200 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12201 121 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
12202 82 jeremybenn
  $as_echo_n "(cached) " >&6
12203 19 jeremybenn
else
12204
  ac_cv_prog_cc_c89=no
12205
ac_save_CC=$CC
12206 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12207
/* confdefs.h.  */
12208
_ACEOF
12209
cat confdefs.h >>conftest.$ac_ext
12210
cat >>conftest.$ac_ext <<_ACEOF
12211 19 jeremybenn
/* end confdefs.h.  */
12212
#include 
12213
#include 
12214
#include 
12215
#include 
12216
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12217
struct buf { int x; };
12218
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12219
static char *e (p, i)
12220
     char **p;
12221
     int i;
12222
{
12223
  return p[i];
12224
}
12225
static char *f (char * (*g) (char **, int), char **p, ...)
12226
{
12227
  char *s;
12228
  va_list v;
12229
  va_start (v,p);
12230
  s = g (p, va_arg (v,int));
12231
  va_end (v);
12232
  return s;
12233
}
12234
 
12235
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12236
   function prototypes and stuff, but not '\xHH' hex character constants.
12237
   These don't provoke an error unfortunately, instead are silently treated
12238
   as 'x'.  The following induces an error, until -std is added to get
12239
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12240
   array size at least.  It's necessary to write '\x00'==0 to get something
12241
   that's true only with -std.  */
12242
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12243
 
12244
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12245
   inside strings and character constants.  */
12246
#define FOO(x) 'x'
12247
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12248
 
12249
int test (int i, double x);
12250
struct s1 {int (*f) (int a);};
12251
struct s2 {int (*f) (double a);};
12252
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12253
int argc;
12254
char **argv;
12255
int
12256
main ()
12257
{
12258
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12259
  ;
12260
  return 0;
12261
}
12262
_ACEOF
12263
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12264
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12265
do
12266
  CC="$ac_save_CC $ac_arg"
12267 121 jeremybenn
  rm -f conftest.$ac_objext
12268
if { (ac_try="$ac_compile"
12269
case "(($ac_try" in
12270
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271
  *) ac_try_echo=$ac_try;;
12272
esac
12273
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12274
$as_echo "$ac_try_echo") >&5
12275
  (eval "$ac_compile") 2>conftest.er1
12276
  ac_status=$?
12277
  grep -v '^ *+' conftest.er1 >conftest.err
12278
  rm -f conftest.er1
12279
  cat conftest.err >&5
12280
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281
  (exit $ac_status); } && {
12282
         test -z "$ac_c_werror_flag" ||
12283
         test ! -s conftest.err
12284
       } && test -s conftest.$ac_objext; then
12285 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
12286 121 jeremybenn
else
12287
  $as_echo "$as_me: failed program was:" >&5
12288
sed 's/^/| /' conftest.$ac_ext >&5
12289
 
12290
 
12291 19 jeremybenn
fi
12292 121 jeremybenn
 
12293 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext
12294
  test "x$ac_cv_prog_cc_c89" != "xno" && break
12295
done
12296
rm -f conftest.$ac_ext
12297
CC=$ac_save_CC
12298
 
12299
fi
12300
# AC_CACHE_VAL
12301
case "x$ac_cv_prog_cc_c89" in
12302
  x)
12303 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
12304 82 jeremybenn
$as_echo "none needed" >&6; } ;;
12305 19 jeremybenn
  xno)
12306 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12307 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
12308 19 jeremybenn
  *)
12309
    CC="$CC $ac_cv_prog_cc_c89"
12310 121 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12311 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12312 19 jeremybenn
esac
12313
 
12314
 
12315
ac_ext=c
12316
ac_cpp='$CPP $CPPFLAGS'
12317
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12318
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12319
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12320
 
12321
if test "x$CC" != xcc; then
12322 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12323 82 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12324 19 jeremybenn
else
12325 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12326 82 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12327 19 jeremybenn
fi
12328 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
12329 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12330 121 jeremybenn
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12331 82 jeremybenn
  $as_echo_n "(cached) " >&6
12332 19 jeremybenn
else
12333 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12334
/* confdefs.h.  */
12335
_ACEOF
12336
cat confdefs.h >>conftest.$ac_ext
12337
cat >>conftest.$ac_ext <<_ACEOF
12338 19 jeremybenn
/* end confdefs.h.  */
12339
 
12340
int
12341
main ()
12342
{
12343
 
12344
  ;
12345
  return 0;
12346
}
12347
_ACEOF
12348
# Make sure it works both with $CC and with simple cc.
12349
# We do the test twice because some compilers refuse to overwrite an
12350
# existing .o file with -o, though they will create one.
12351
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12352
rm -f conftest2.*
12353 121 jeremybenn
if { (case "(($ac_try" in
12354 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355
  *) ac_try_echo=$ac_try;;
12356
esac
12357 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12358
$as_echo "$ac_try_echo") >&5
12359 19 jeremybenn
  (eval "$ac_try") 2>&5
12360
  ac_status=$?
12361 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362
  (exit $ac_status); } &&
12363
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
12364 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365
  *) ac_try_echo=$ac_try;;
12366
esac
12367 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12368
$as_echo "$ac_try_echo") >&5
12369 19 jeremybenn
  (eval "$ac_try") 2>&5
12370
  ac_status=$?
12371 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372
  (exit $ac_status); };
12373 19 jeremybenn
then
12374
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12375
  if test "x$CC" != xcc; then
12376
    # Test first that cc exists at all.
12377
    if { ac_try='cc -c conftest.$ac_ext >&5'
12378 121 jeremybenn
  { (case "(($ac_try" in
12379 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380
  *) ac_try_echo=$ac_try;;
12381
esac
12382 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12383
$as_echo "$ac_try_echo") >&5
12384 19 jeremybenn
  (eval "$ac_try") 2>&5
12385
  ac_status=$?
12386 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387
  (exit $ac_status); }; }; then
12388 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12389
      rm -f conftest2.*
12390 121 jeremybenn
      if { (case "(($ac_try" in
12391 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392
  *) ac_try_echo=$ac_try;;
12393
esac
12394 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12395
$as_echo "$ac_try_echo") >&5
12396 19 jeremybenn
  (eval "$ac_try") 2>&5
12397
  ac_status=$?
12398 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399
  (exit $ac_status); } &&
12400
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
12401 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402
  *) ac_try_echo=$ac_try;;
12403
esac
12404 121 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12405
$as_echo "$ac_try_echo") >&5
12406 19 jeremybenn
  (eval "$ac_try") 2>&5
12407
  ac_status=$?
12408 121 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409
  (exit $ac_status); };
12410 19 jeremybenn
      then
12411
        # cc works too.
12412
        :
12413
      else
12414
        # cc exists but doesn't like -o.
12415
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
12416
      fi
12417
    fi
12418
  fi
12419
else
12420
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12421
fi
12422
rm -f core conftest*
12423
 
12424
fi
12425
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12426 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12427 82 jeremybenn
$as_echo "yes" >&6; }
12428 19 jeremybenn
else
12429 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12430 82 jeremybenn
$as_echo "no" >&6; }
12431 19 jeremybenn
 
12432 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
12433
#define NO_MINUS_C_MINUS_O 1
12434
_ACEOF
12435 19 jeremybenn
 
12436
fi
12437
 
12438
# FIXME: we rely on the cache variable name because
12439
# there is no other way.
12440
set dummy $CC
12441 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12442
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12443
if test "$am_t" != yes; then
12444 19 jeremybenn
   # Losing compiler, so override with the script.
12445
   # FIXME: It is wrong to rewrite CC.
12446
   # But if we don't then we get into trouble of one sort or another.
12447
   # A longer-term fix would be to have automake use am__CC in this case,
12448
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12449
   CC="$am_aux_dir/compile $CC"
12450
fi
12451
 
12452
 
12453
 
12454 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12455 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12456
set x ${MAKE-make}
12457
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12458 121 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12459 82 jeremybenn
  $as_echo_n "(cached) " >&6
12460 19 jeremybenn
else
12461
  cat >conftest.make <<\_ACEOF
12462
SHELL = /bin/sh
12463
all:
12464
        @echo '@@@%%%=$(MAKE)=@@@%%%'
12465
_ACEOF
12466
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12467
case `${MAKE-make} -f conftest.make 2>/dev/null` in
12468
  *@@@%%%=?*=@@@%%%*)
12469
    eval ac_cv_prog_make_${ac_make}_set=yes;;
12470
  *)
12471
    eval ac_cv_prog_make_${ac_make}_set=no;;
12472
esac
12473
rm -f conftest.make
12474
fi
12475
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12476 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12477 82 jeremybenn
$as_echo "yes" >&6; }
12478 19 jeremybenn
  SET_MAKE=
12479
else
12480 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12481 82 jeremybenn
$as_echo "no" >&6; }
12482 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
12483
fi
12484
 
12485
 
12486 121 jeremybenn
# Find a good install program.  We prefer a C program (faster),
12487
# so one script is as good as another.  But avoid the broken or
12488
# incompatible versions:
12489
# SysV /etc/install, /usr/sbin/install
12490
# SunOS /usr/etc/install
12491
# IRIX /sbin/install
12492
# AIX /bin/install
12493
# AmigaOS /C/install, which installs bootblocks on floppy discs
12494
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12495
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12496
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12497
# OS/2's system install, which has a completely different semantic
12498
# ./install, which can be erroneously created by make from ./install.sh.
12499
# Reject install programs that cannot install multiple files.
12500
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12501
$as_echo_n "checking for a BSD-compatible install... " >&6; }
12502
if test -z "$INSTALL"; then
12503
if test "${ac_cv_path_install+set}" = set; then
12504
  $as_echo_n "(cached) " >&6
12505
else
12506
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507
for as_dir in $PATH
12508
do
12509
  IFS=$as_save_IFS
12510
  test -z "$as_dir" && as_dir=.
12511
  # Account for people who put trailing slashes in PATH elements.
12512
case $as_dir/ in
12513
  ./ | .// | /cC/* | \
12514
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12515
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12516
  /usr/ucb/* ) ;;
12517
  *)
12518
    # OSF1 and SCO ODT 3.0 have their own names for install.
12519
    # Don't use installbsd from OSF since it installs stuff as root
12520
    # by default.
12521
    for ac_prog in ginstall scoinst install; do
12522
      for ac_exec_ext in '' $ac_executable_extensions; do
12523
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12524
          if test $ac_prog = install &&
12525
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12526
            # AIX install.  It has an incompatible calling convention.
12527
            :
12528
          elif test $ac_prog = install &&
12529
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12530
            # program-specific install script used by HP pwplus--don't use.
12531
            :
12532
          else
12533
            rm -rf conftest.one conftest.two conftest.dir
12534
            echo one > conftest.one
12535
            echo two > conftest.two
12536
            mkdir conftest.dir
12537
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12538
              test -s conftest.one && test -s conftest.two &&
12539
              test -s conftest.dir/conftest.one &&
12540
              test -s conftest.dir/conftest.two
12541
            then
12542
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12543
              break 3
12544
            fi
12545
          fi
12546
        fi
12547
      done
12548
    done
12549
    ;;
12550
esac
12551 82 jeremybenn
 
12552 121 jeremybenn
done
12553
IFS=$as_save_IFS
12554
 
12555
rm -rf conftest.one conftest.two conftest.dir
12556
 
12557
fi
12558
  if test "${ac_cv_path_install+set}" = set; then
12559
    INSTALL=$ac_cv_path_install
12560
  else
12561
    # As a last resort, use the slow shell script.  Don't cache a
12562
    # value for INSTALL within a source directory, because that will
12563
    # break other packages using the cache if that directory is
12564
    # removed, or if the value is a relative name.
12565
    INSTALL=$ac_install_sh
12566
  fi
12567
fi
12568
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12569
$as_echo "$INSTALL" >&6; }
12570
 
12571
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12572
# It thinks the first close brace ends the variable substitution.
12573
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12574
 
12575
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12576
 
12577
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12578
 
12579 19 jeremybenn
# Extract the first word of "ar", so it can be a program name with args.
12580
set dummy ar; ac_word=$2
12581 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12582 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
12583 121 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
12584 82 jeremybenn
  $as_echo_n "(cached) " >&6
12585 19 jeremybenn
else
12586
  if test -n "$AR"; then
12587
  ac_cv_prog_AR="$AR" # Let the user override the test.
12588
else
12589
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590
for as_dir in $PATH
12591
do
12592
  IFS=$as_save_IFS
12593
  test -z "$as_dir" && as_dir=.
12594 121 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
12595 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12596
    ac_cv_prog_AR="ar"
12597 121 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 19 jeremybenn
    break 2
12599
  fi
12600
done
12601 121 jeremybenn
done
12602 19 jeremybenn
IFS=$as_save_IFS
12603
 
12604
fi
12605
fi
12606
AR=$ac_cv_prog_AR
12607
if test -n "$AR"; then
12608 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
12609 82 jeremybenn
$as_echo "$AR" >&6; }
12610 19 jeremybenn
else
12611 121 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12612 82 jeremybenn
$as_echo "no" >&6; }
12613 19 jeremybenn
fi
12614
 
12615
 
12616
 
12617
# Set default for ARFLAGS, since autoconf does not have a macro for it.
12618
# This allows people to set it when running configure or make
12619
test -n "$ARFLAGS" || ARFLAGS="cr"
12620
 
12621 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12622 82 jeremybenn
$as_echo_n "checking return type of signal handlers... " >&6; }
12623 121 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then
12624 82 jeremybenn
  $as_echo_n "(cached) " >&6
12625 19 jeremybenn
else
12626 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12627
/* confdefs.h.  */
12628
_ACEOF
12629
cat confdefs.h >>conftest.$ac_ext
12630
cat >>conftest.$ac_ext <<_ACEOF
12631 19 jeremybenn
/* end confdefs.h.  */
12632
#include 
12633
#include 
12634
 
12635
int
12636
main ()
12637
{
12638
return *(signal (0, 0)) (0) == 1;
12639
  ;
12640
  return 0;
12641
}
12642
_ACEOF
12643 121 jeremybenn
rm -f conftest.$ac_objext
12644
if { (ac_try="$ac_compile"
12645
case "(($ac_try" in
12646
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647
  *) ac_try_echo=$ac_try;;
12648
esac
12649
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12650
$as_echo "$ac_try_echo") >&5
12651
  (eval "$ac_compile") 2>conftest.er1
12652
  ac_status=$?
12653
  grep -v '^ *+' conftest.er1 >conftest.err
12654
  rm -f conftest.er1
12655
  cat conftest.err >&5
12656
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657
  (exit $ac_status); } && {
12658
         test -z "$ac_c_werror_flag" ||
12659
         test ! -s conftest.err
12660
       } && test -s conftest.$ac_objext; then
12661 19 jeremybenn
  ac_cv_type_signal=int
12662
else
12663 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12664
sed 's/^/| /' conftest.$ac_ext >&5
12665
 
12666
        ac_cv_type_signal=void
12667 19 jeremybenn
fi
12668 121 jeremybenn
 
12669 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670
fi
12671 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12672 82 jeremybenn
$as_echo "$ac_cv_type_signal" >&6; }
12673 19 jeremybenn
 
12674
cat >>confdefs.h <<_ACEOF
12675
#define RETSIGTYPE $ac_cv_type_signal
12676
_ACEOF
12677
 
12678
 
12679 121 jeremybenn
 
12680
 
12681
 
12682
 
12683
 
12684
 
12685
 
12686
 
12687
 
12688
 
12689
 
12690
 
12691
 
12692
 
12693
 
12694
 
12695
 
12696
 
12697
 
12698
 
12699
 
12700
 
12701
 
12702 82 jeremybenn
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h      \
12703
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
12704
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
12705 118 jeremybenn
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h  \
12706
                 limits.h
12707 121 jeremybenn
do
12708
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12709
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12710
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12711
$as_echo_n "checking for $ac_header... " >&6; }
12712
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12713
  $as_echo_n "(cached) " >&6
12714
fi
12715
ac_res=`eval 'as_val=${'$as_ac_Header'}
12716
                 $as_echo "$as_val"'`
12717
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12718
$as_echo "$ac_res" >&6; }
12719
else
12720
  # Is the header compilable?
12721
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12722
$as_echo_n "checking $ac_header usability... " >&6; }
12723
cat >conftest.$ac_ext <<_ACEOF
12724
/* confdefs.h.  */
12725
_ACEOF
12726
cat confdefs.h >>conftest.$ac_ext
12727
cat >>conftest.$ac_ext <<_ACEOF
12728
/* end confdefs.h.  */
12729
$ac_includes_default
12730
#include <$ac_header>
12731
_ACEOF
12732
rm -f conftest.$ac_objext
12733
if { (ac_try="$ac_compile"
12734
case "(($ac_try" in
12735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736
  *) ac_try_echo=$ac_try;;
12737
esac
12738
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12739
$as_echo "$ac_try_echo") >&5
12740
  (eval "$ac_compile") 2>conftest.er1
12741
  ac_status=$?
12742
  grep -v '^ *+' conftest.er1 >conftest.err
12743
  rm -f conftest.er1
12744
  cat conftest.err >&5
12745
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746
  (exit $ac_status); } && {
12747
         test -z "$ac_c_werror_flag" ||
12748
         test ! -s conftest.err
12749
       } && test -s conftest.$ac_objext; then
12750
  ac_header_compiler=yes
12751
else
12752
  $as_echo "$as_me: failed program was:" >&5
12753
sed 's/^/| /' conftest.$ac_ext >&5
12754
 
12755
        ac_header_compiler=no
12756
fi
12757
 
12758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12760
$as_echo "$ac_header_compiler" >&6; }
12761
 
12762
# Is the header present?
12763
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12764
$as_echo_n "checking $ac_header presence... " >&6; }
12765
cat >conftest.$ac_ext <<_ACEOF
12766
/* confdefs.h.  */
12767
_ACEOF
12768
cat confdefs.h >>conftest.$ac_ext
12769
cat >>conftest.$ac_ext <<_ACEOF
12770
/* end confdefs.h.  */
12771
#include <$ac_header>
12772
_ACEOF
12773
if { (ac_try="$ac_cpp conftest.$ac_ext"
12774
case "(($ac_try" in
12775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776
  *) ac_try_echo=$ac_try;;
12777
esac
12778
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12779
$as_echo "$ac_try_echo") >&5
12780
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12781
  ac_status=$?
12782
  grep -v '^ *+' conftest.er1 >conftest.err
12783
  rm -f conftest.er1
12784
  cat conftest.err >&5
12785
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786
  (exit $ac_status); } >/dev/null && {
12787
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12788
         test ! -s conftest.err
12789
       }; then
12790
  ac_header_preproc=yes
12791
else
12792
  $as_echo "$as_me: failed program was:" >&5
12793
sed 's/^/| /' conftest.$ac_ext >&5
12794
 
12795
  ac_header_preproc=no
12796
fi
12797
 
12798
rm -f conftest.err conftest.$ac_ext
12799
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12800
$as_echo "$ac_header_preproc" >&6; }
12801
 
12802
# So?  What about this header?
12803
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12804
  yes:no: )
12805
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12806
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12807
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12808
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12809
    ac_header_preproc=yes
12810
    ;;
12811
  no:yes:* )
12812
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12813
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12814
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12815
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12816
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12817
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12818
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12819
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12820
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12821
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12822
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12823
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12824
    ( cat <<\_ASBOX
12825
## ------------------------------------- ##
12826
## Report this to openrisc@opencores.org ##
12827
## ------------------------------------- ##
12828
_ASBOX
12829
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12830
    ;;
12831
esac
12832
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12833
$as_echo_n "checking for $ac_header... " >&6; }
12834
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12835
  $as_echo_n "(cached) " >&6
12836
else
12837
  eval "$as_ac_Header=\$ac_header_preproc"
12838
fi
12839
ac_res=`eval 'as_val=${'$as_ac_Header'}
12840
                 $as_echo "$as_val"'`
12841
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12842
$as_echo "$ac_res" >&6; }
12843
 
12844
fi
12845
as_val=`eval 'as_val=${'$as_ac_Header'}
12846
                 $as_echo "$as_val"'`
12847
   if test "x$as_val" = x""yes; then
12848 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
12849
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12850 19 jeremybenn
_ACEOF
12851
 
12852
fi
12853
 
12854
done
12855
 
12856 121 jeremybenn
 
12857
 
12858
 
12859
 
12860
 
12861
 
12862
 
12863 19 jeremybenn
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
12864 121 jeremybenn
do
12865
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12866
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12867
$as_echo_n "checking for $ac_func... " >&6; }
12868
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12869
  $as_echo_n "(cached) " >&6
12870
else
12871
  cat >conftest.$ac_ext <<_ACEOF
12872
/* confdefs.h.  */
12873
_ACEOF
12874
cat confdefs.h >>conftest.$ac_ext
12875
cat >>conftest.$ac_ext <<_ACEOF
12876
/* end confdefs.h.  */
12877
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12878
   For example, HP-UX 11i  declares gettimeofday.  */
12879
#define $ac_func innocuous_$ac_func
12880
 
12881
/* System header to define __stub macros and hopefully few prototypes,
12882
    which can conflict with char $ac_func (); below.
12883
    Prefer  to  if __STDC__ is defined, since
12884
     exists even on freestanding compilers.  */
12885
 
12886
#ifdef __STDC__
12887
# include 
12888
#else
12889
# include 
12890
#endif
12891
 
12892
#undef $ac_func
12893
 
12894
/* Override any GCC internal prototype to avoid an error.
12895
   Use char because int might match the return type of a GCC
12896
   builtin and then its argument prototype would still apply.  */
12897
#ifdef __cplusplus
12898
extern "C"
12899
#endif
12900
char $ac_func ();
12901
/* The GNU C library defines this for functions which it implements
12902
    to always fail with ENOSYS.  Some functions are actually named
12903
    something starting with __ and the normal name is an alias.  */
12904
#if defined __stub_$ac_func || defined __stub___$ac_func
12905
choke me
12906
#endif
12907
 
12908
int
12909
main ()
12910
{
12911
return $ac_func ();
12912
  ;
12913
  return 0;
12914
}
12915
_ACEOF
12916
rm -f conftest.$ac_objext conftest$ac_exeext
12917
if { (ac_try="$ac_link"
12918
case "(($ac_try" in
12919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920
  *) ac_try_echo=$ac_try;;
12921
esac
12922
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12923
$as_echo "$ac_try_echo") >&5
12924
  (eval "$ac_link") 2>conftest.er1
12925
  ac_status=$?
12926
  grep -v '^ *+' conftest.er1 >conftest.err
12927
  rm -f conftest.er1
12928
  cat conftest.err >&5
12929
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930
  (exit $ac_status); } && {
12931
         test -z "$ac_c_werror_flag" ||
12932
         test ! -s conftest.err
12933
       } && test -s conftest$ac_exeext && {
12934
         test "$cross_compiling" = yes ||
12935
         $as_test_x conftest$ac_exeext
12936
       }; then
12937
  eval "$as_ac_var=yes"
12938
else
12939
  $as_echo "$as_me: failed program was:" >&5
12940
sed 's/^/| /' conftest.$ac_ext >&5
12941
 
12942
        eval "$as_ac_var=no"
12943
fi
12944
 
12945
rm -rf conftest.dSYM
12946
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12947
      conftest$ac_exeext conftest.$ac_ext
12948
fi
12949
ac_res=`eval 'as_val=${'$as_ac_var'}
12950
                 $as_echo "$as_val"'`
12951
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12952
$as_echo "$ac_res" >&6; }
12953
as_val=`eval 'as_val=${'$as_ac_var'}
12954
                 $as_echo "$as_val"'`
12955
   if test "x$as_val" = x""yes; then
12956 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12957 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12958 19 jeremybenn
_ACEOF
12959
 
12960
fi
12961
done
12962
 
12963 121 jeremybenn
 
12964
 
12965
 
12966
 
12967 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
12968 121 jeremybenn
do
12969
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12970
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12971
$as_echo_n "checking for $ac_func... " >&6; }
12972
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12973
  $as_echo_n "(cached) " >&6
12974
else
12975
  cat >conftest.$ac_ext <<_ACEOF
12976
/* confdefs.h.  */
12977
_ACEOF
12978
cat confdefs.h >>conftest.$ac_ext
12979
cat >>conftest.$ac_ext <<_ACEOF
12980
/* end confdefs.h.  */
12981
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12982
   For example, HP-UX 11i  declares gettimeofday.  */
12983
#define $ac_func innocuous_$ac_func
12984
 
12985
/* System header to define __stub macros and hopefully few prototypes,
12986
    which can conflict with char $ac_func (); below.
12987
    Prefer  to  if __STDC__ is defined, since
12988
     exists even on freestanding compilers.  */
12989
 
12990
#ifdef __STDC__
12991
# include 
12992
#else
12993
# include 
12994
#endif
12995
 
12996
#undef $ac_func
12997
 
12998
/* Override any GCC internal prototype to avoid an error.
12999
   Use char because int might match the return type of a GCC
13000
   builtin and then its argument prototype would still apply.  */
13001
#ifdef __cplusplus
13002
extern "C"
13003
#endif
13004
char $ac_func ();
13005
/* The GNU C library defines this for functions which it implements
13006
    to always fail with ENOSYS.  Some functions are actually named
13007
    something starting with __ and the normal name is an alias.  */
13008
#if defined __stub_$ac_func || defined __stub___$ac_func
13009
choke me
13010
#endif
13011
 
13012
int
13013
main ()
13014
{
13015
return $ac_func ();
13016
  ;
13017
  return 0;
13018
}
13019
_ACEOF
13020
rm -f conftest.$ac_objext conftest$ac_exeext
13021
if { (ac_try="$ac_link"
13022
case "(($ac_try" in
13023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024
  *) ac_try_echo=$ac_try;;
13025
esac
13026
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13027
$as_echo "$ac_try_echo") >&5
13028
  (eval "$ac_link") 2>conftest.er1
13029
  ac_status=$?
13030
  grep -v '^ *+' conftest.er1 >conftest.err
13031
  rm -f conftest.er1
13032
  cat conftest.err >&5
13033
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034
  (exit $ac_status); } && {
13035
         test -z "$ac_c_werror_flag" ||
13036
         test ! -s conftest.err
13037
       } && test -s conftest$ac_exeext && {
13038
         test "$cross_compiling" = yes ||
13039
         $as_test_x conftest$ac_exeext
13040
       }; then
13041
  eval "$as_ac_var=yes"
13042
else
13043
  $as_echo "$as_me: failed program was:" >&5
13044
sed 's/^/| /' conftest.$ac_ext >&5
13045
 
13046
        eval "$as_ac_var=no"
13047
fi
13048
 
13049
rm -rf conftest.dSYM
13050
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13051
      conftest$ac_exeext conftest.$ac_ext
13052
fi
13053
ac_res=`eval 'as_val=${'$as_ac_var'}
13054
                 $as_echo "$as_val"'`
13055
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13056
$as_echo "$ac_res" >&6; }
13057
as_val=`eval 'as_val=${'$as_ac_var'}
13058
                 $as_echo "$as_val"'`
13059
   if test "x$as_val" = x""yes; then
13060 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13061 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13062 19 jeremybenn
_ACEOF
13063
 
13064
fi
13065
done
13066
 
13067 121 jeremybenn
 
13068 19 jeremybenn
for ac_func in basename
13069 121 jeremybenn
do
13070
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13071
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13072
$as_echo_n "checking for $ac_func... " >&6; }
13073
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13074
  $as_echo_n "(cached) " >&6
13075
else
13076
  cat >conftest.$ac_ext <<_ACEOF
13077
/* confdefs.h.  */
13078
_ACEOF
13079
cat confdefs.h >>conftest.$ac_ext
13080
cat >>conftest.$ac_ext <<_ACEOF
13081
/* end confdefs.h.  */
13082
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
13083
   For example, HP-UX 11i  declares gettimeofday.  */
13084
#define $ac_func innocuous_$ac_func
13085
 
13086
/* System header to define __stub macros and hopefully few prototypes,
13087
    which can conflict with char $ac_func (); below.
13088
    Prefer  to  if __STDC__ is defined, since
13089
     exists even on freestanding compilers.  */
13090
 
13091
#ifdef __STDC__
13092
# include 
13093
#else
13094
# include 
13095
#endif
13096
 
13097
#undef $ac_func
13098
 
13099
/* Override any GCC internal prototype to avoid an error.
13100
   Use char because int might match the return type of a GCC
13101
   builtin and then its argument prototype would still apply.  */
13102
#ifdef __cplusplus
13103
extern "C"
13104
#endif
13105
char $ac_func ();
13106
/* The GNU C library defines this for functions which it implements
13107
    to always fail with ENOSYS.  Some functions are actually named
13108
    something starting with __ and the normal name is an alias.  */
13109
#if defined __stub_$ac_func || defined __stub___$ac_func
13110
choke me
13111
#endif
13112
 
13113
int
13114
main ()
13115
{
13116
return $ac_func ();
13117
  ;
13118
  return 0;
13119
}
13120
_ACEOF
13121
rm -f conftest.$ac_objext conftest$ac_exeext
13122
if { (ac_try="$ac_link"
13123
case "(($ac_try" in
13124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125
  *) ac_try_echo=$ac_try;;
13126
esac
13127
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13128
$as_echo "$ac_try_echo") >&5
13129
  (eval "$ac_link") 2>conftest.er1
13130
  ac_status=$?
13131
  grep -v '^ *+' conftest.er1 >conftest.err
13132
  rm -f conftest.er1
13133
  cat conftest.err >&5
13134
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135
  (exit $ac_status); } && {
13136
         test -z "$ac_c_werror_flag" ||
13137
         test ! -s conftest.err
13138
       } && test -s conftest$ac_exeext && {
13139
         test "$cross_compiling" = yes ||
13140
         $as_test_x conftest$ac_exeext
13141
       }; then
13142
  eval "$as_ac_var=yes"
13143
else
13144
  $as_echo "$as_me: failed program was:" >&5
13145
sed 's/^/| /' conftest.$ac_ext >&5
13146
 
13147
        eval "$as_ac_var=no"
13148
fi
13149
 
13150
rm -rf conftest.dSYM
13151
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13152
      conftest$ac_exeext conftest.$ac_ext
13153
fi
13154
ac_res=`eval 'as_val=${'$as_ac_var'}
13155
                 $as_echo "$as_val"'`
13156
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13157
$as_echo "$ac_res" >&6; }
13158
as_val=`eval 'as_val=${'$as_ac_var'}
13159
                 $as_echo "$as_val"'`
13160
   if test "x$as_val" = x""yes; then
13161 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13162 121 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13163 19 jeremybenn
_ACEOF
13164
 
13165
fi
13166
done
13167
 
13168 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
13169 82 jeremybenn
$as_echo_n "checking for working strcoll... " >&6; }
13170 121 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then
13171 82 jeremybenn
  $as_echo_n "(cached) " >&6
13172 19 jeremybenn
else
13173 121 jeremybenn
  if test "$cross_compiling" = yes; then
13174 19 jeremybenn
  ac_cv_func_strcoll_works=no
13175
else
13176 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13177
/* confdefs.h.  */
13178
_ACEOF
13179
cat confdefs.h >>conftest.$ac_ext
13180
cat >>conftest.$ac_ext <<_ACEOF
13181 19 jeremybenn
/* end confdefs.h.  */
13182
$ac_includes_default
13183
int
13184
main ()
13185
{
13186
return (strcoll ("abc", "def") >= 0 ||
13187
         strcoll ("ABC", "DEF") >= 0 ||
13188
         strcoll ("123", "456") >= 0)
13189
  ;
13190
  return 0;
13191
}
13192
_ACEOF
13193 121 jeremybenn
rm -f conftest$ac_exeext
13194
if { (ac_try="$ac_link"
13195
case "(($ac_try" in
13196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197
  *) ac_try_echo=$ac_try;;
13198
esac
13199
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13200
$as_echo "$ac_try_echo") >&5
13201
  (eval "$ac_link") 2>&5
13202
  ac_status=$?
13203
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13205
  { (case "(($ac_try" in
13206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207
  *) ac_try_echo=$ac_try;;
13208
esac
13209
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13210
$as_echo "$ac_try_echo") >&5
13211
  (eval "$ac_try") 2>&5
13212
  ac_status=$?
13213
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214
  (exit $ac_status); }; }; then
13215 19 jeremybenn
  ac_cv_func_strcoll_works=yes
13216
else
13217 121 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13218
$as_echo "$as_me: failed program was:" >&5
13219
sed 's/^/| /' conftest.$ac_ext >&5
13220
 
13221
( exit $ac_status )
13222
ac_cv_func_strcoll_works=no
13223 19 jeremybenn
fi
13224 121 jeremybenn
rm -rf conftest.dSYM
13225
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13226 19 jeremybenn
fi
13227
 
13228 121 jeremybenn
 
13229 19 jeremybenn
fi
13230 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13231 82 jeremybenn
$as_echo "$ac_cv_func_strcoll_works" >&6; }
13232 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
13233
 
13234 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
13235
#define HAVE_STRCOLL 1
13236
_ACEOF
13237 19 jeremybenn
 
13238
fi
13239
 
13240 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether I_PUSH is declared" >&5
13241
$as_echo_n "checking whether I_PUSH is declared... " >&6; }
13242
if test "${ac_cv_have_decl_I_PUSH+set}" = set; then
13243
  $as_echo_n "(cached) " >&6
13244
else
13245
  cat >conftest.$ac_ext <<_ACEOF
13246
/* confdefs.h.  */
13247
_ACEOF
13248
cat confdefs.h >>conftest.$ac_ext
13249
cat >>conftest.$ac_ext <<_ACEOF
13250
/* end confdefs.h.  */
13251
\
13252 82 jeremybenn
               #include 
13253 121 jeremybenn
 
13254
int
13255
main ()
13256
{
13257
#ifndef I_PUSH
13258
  (void) I_PUSH;
13259
#endif
13260
 
13261
  ;
13262
  return 0;
13263
}
13264
_ACEOF
13265
rm -f conftest.$ac_objext
13266
if { (ac_try="$ac_compile"
13267
case "(($ac_try" in
13268
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269
  *) ac_try_echo=$ac_try;;
13270
esac
13271
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13272
$as_echo "$ac_try_echo") >&5
13273
  (eval "$ac_compile") 2>conftest.er1
13274
  ac_status=$?
13275
  grep -v '^ *+' conftest.er1 >conftest.err
13276
  rm -f conftest.er1
13277
  cat conftest.err >&5
13278
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279
  (exit $ac_status); } && {
13280
         test -z "$ac_c_werror_flag" ||
13281
         test ! -s conftest.err
13282
       } && test -s conftest.$ac_objext; then
13283
  ac_cv_have_decl_I_PUSH=yes
13284 19 jeremybenn
else
13285 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13286
sed 's/^/| /' conftest.$ac_ext >&5
13287
 
13288
        ac_cv_have_decl_I_PUSH=no
13289 19 jeremybenn
fi
13290
 
13291 121 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292
fi
13293
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_I_PUSH" >&5
13294
$as_echo "$ac_cv_have_decl_I_PUSH" >&6; }
13295
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then
13296
 
13297 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13298 121 jeremybenn
#define HAVE_DECL_I_PUSH 1
13299 19 jeremybenn
_ACEOF
13300 121 jeremybenn
 
13301
 
13302
else
13303
  cat >>confdefs.h <<_ACEOF
13304
#define HAVE_DECL_I_PUSH 0
13305
_ACEOF
13306
 
13307
 
13308
fi
13309
{ $as_echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
13310
$as_echo_n "checking whether rl_event_hook is declared... " >&6; }
13311
if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
13312
  $as_echo_n "(cached) " >&6
13313
else
13314
  cat >conftest.$ac_ext <<_ACEOF
13315
/* confdefs.h.  */
13316
_ACEOF
13317
cat confdefs.h >>conftest.$ac_ext
13318
cat >>conftest.$ac_ext <<_ACEOF
13319
/* end confdefs.h.  */
13320
\
13321 82 jeremybenn
               #include 
13322 121 jeremybenn
 
13323
int
13324
main ()
13325
{
13326
#ifndef rl_event_hook
13327
  (void) rl_event_hook;
13328
#endif
13329
 
13330
  ;
13331
  return 0;
13332
}
13333
_ACEOF
13334
rm -f conftest.$ac_objext
13335
if { (ac_try="$ac_compile"
13336
case "(($ac_try" in
13337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338
  *) ac_try_echo=$ac_try;;
13339
esac
13340
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13341
$as_echo "$ac_try_echo") >&5
13342
  (eval "$ac_compile") 2>conftest.er1
13343
  ac_status=$?
13344
  grep -v '^ *+' conftest.er1 >conftest.err
13345
  rm -f conftest.er1
13346
  cat conftest.err >&5
13347
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348
  (exit $ac_status); } && {
13349
         test -z "$ac_c_werror_flag" ||
13350
         test ! -s conftest.err
13351
       } && test -s conftest.$ac_objext; then
13352
  ac_cv_have_decl_rl_event_hook=yes
13353 19 jeremybenn
else
13354 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13355
sed 's/^/| /' conftest.$ac_ext >&5
13356
 
13357
        ac_cv_have_decl_rl_event_hook=no
13358 19 jeremybenn
fi
13359
 
13360 121 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361
fi
13362
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
13363
$as_echo "$ac_cv_have_decl_rl_event_hook" >&6; }
13364
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then
13365
 
13366 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13367 121 jeremybenn
#define HAVE_DECL_RL_EVENT_HOOK 1
13368 19 jeremybenn
_ACEOF
13369
 
13370 121 jeremybenn
 
13371
else
13372
  cat >>confdefs.h <<_ACEOF
13373
#define HAVE_DECL_RL_EVENT_HOOK 0
13374
_ACEOF
13375
 
13376
 
13377
fi
13378
 
13379
 
13380
 
13381
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13382 82 jeremybenn
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13383 121 jeremybenn
if test "${ac_cv_c_bigendian+set}" = set; then
13384 82 jeremybenn
  $as_echo_n "(cached) " >&6
13385 19 jeremybenn
else
13386 82 jeremybenn
  ac_cv_c_bigendian=unknown
13387
    # See if we're dealing with a universal compiler.
13388 121 jeremybenn
    cat >conftest.$ac_ext <<_ACEOF
13389
/* confdefs.h.  */
13390
_ACEOF
13391
cat confdefs.h >>conftest.$ac_ext
13392
cat >>conftest.$ac_ext <<_ACEOF
13393 19 jeremybenn
/* end confdefs.h.  */
13394 82 jeremybenn
#ifndef __APPLE_CC__
13395
               not a universal capable compiler
13396
             #endif
13397
             typedef int dummy;
13398
 
13399 19 jeremybenn
_ACEOF
13400 121 jeremybenn
rm -f conftest.$ac_objext
13401
if { (ac_try="$ac_compile"
13402
case "(($ac_try" in
13403
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404
  *) ac_try_echo=$ac_try;;
13405
esac
13406
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13407
$as_echo "$ac_try_echo") >&5
13408
  (eval "$ac_compile") 2>conftest.er1
13409
  ac_status=$?
13410
  grep -v '^ *+' conftest.er1 >conftest.err
13411
  rm -f conftest.er1
13412
  cat conftest.err >&5
13413
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414
  (exit $ac_status); } && {
13415
         test -z "$ac_c_werror_flag" ||
13416
         test ! -s conftest.err
13417
       } && test -s conftest.$ac_objext; then
13418 82 jeremybenn
 
13419
        # Check for potential -arch flags.  It is not universal unless
13420 121 jeremybenn
        # there are some -arch flags.  Note that *ppc* also matches
13421
        # ppc64.  This check is also rather less than ideal.
13422
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13423
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13424
        esac
13425
else
13426
  $as_echo "$as_me: failed program was:" >&5
13427
sed 's/^/| /' conftest.$ac_ext >&5
13428
 
13429
 
13430 19 jeremybenn
fi
13431 121 jeremybenn
 
13432 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
13434
      # See if sys/param.h defines the BYTE_ORDER macro.
13435 121 jeremybenn
      cat >conftest.$ac_ext <<_ACEOF
13436
/* confdefs.h.  */
13437
_ACEOF
13438
cat confdefs.h >>conftest.$ac_ext
13439
cat >>conftest.$ac_ext <<_ACEOF
13440 19 jeremybenn
/* end confdefs.h.  */
13441 82 jeremybenn
#include 
13442
             #include 
13443
 
13444
int
13445
main ()
13446
{
13447
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13448
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13449
                     && LITTLE_ENDIAN)
13450
              bogus endian macros
13451
             #endif
13452
 
13453
  ;
13454
  return 0;
13455
}
13456 19 jeremybenn
_ACEOF
13457 121 jeremybenn
rm -f conftest.$ac_objext
13458
if { (ac_try="$ac_compile"
13459
case "(($ac_try" in
13460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461
  *) ac_try_echo=$ac_try;;
13462
esac
13463
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13464
$as_echo "$ac_try_echo") >&5
13465
  (eval "$ac_compile") 2>conftest.er1
13466
  ac_status=$?
13467
  grep -v '^ *+' conftest.er1 >conftest.err
13468
  rm -f conftest.er1
13469
  cat conftest.err >&5
13470
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471
  (exit $ac_status); } && {
13472
         test -z "$ac_c_werror_flag" ||
13473
         test ! -s conftest.err
13474
       } && test -s conftest.$ac_objext; then
13475 82 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
13476 121 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
13477
/* confdefs.h.  */
13478
_ACEOF
13479
cat confdefs.h >>conftest.$ac_ext
13480
cat >>conftest.$ac_ext <<_ACEOF
13481 19 jeremybenn
/* end confdefs.h.  */
13482 82 jeremybenn
#include 
13483
                #include 
13484
 
13485 19 jeremybenn
int
13486
main ()
13487
{
13488 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
13489
                 not big endian
13490
                #endif
13491 19 jeremybenn
 
13492
  ;
13493
  return 0;
13494
}
13495
_ACEOF
13496 121 jeremybenn
rm -f conftest.$ac_objext
13497
if { (ac_try="$ac_compile"
13498
case "(($ac_try" in
13499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500
  *) ac_try_echo=$ac_try;;
13501
esac
13502
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13503
$as_echo "$ac_try_echo") >&5
13504
  (eval "$ac_compile") 2>conftest.er1
13505
  ac_status=$?
13506
  grep -v '^ *+' conftest.er1 >conftest.err
13507
  rm -f conftest.er1
13508
  cat conftest.err >&5
13509
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510
  (exit $ac_status); } && {
13511
         test -z "$ac_c_werror_flag" ||
13512
         test ! -s conftest.err
13513
       } && test -s conftest.$ac_objext; then
13514 82 jeremybenn
  ac_cv_c_bigendian=yes
13515 19 jeremybenn
else
13516 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13517
sed 's/^/| /' conftest.$ac_ext >&5
13518
 
13519
        ac_cv_c_bigendian=no
13520 19 jeremybenn
fi
13521 121 jeremybenn
 
13522 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 121 jeremybenn
else
13524
  $as_echo "$as_me: failed program was:" >&5
13525
sed 's/^/| /' conftest.$ac_ext >&5
13526
 
13527
 
13528 19 jeremybenn
fi
13529 121 jeremybenn
 
13530 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531
    fi
13532
    if test $ac_cv_c_bigendian = unknown; then
13533
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13534 121 jeremybenn
      cat >conftest.$ac_ext <<_ACEOF
13535
/* confdefs.h.  */
13536
_ACEOF
13537
cat confdefs.h >>conftest.$ac_ext
13538
cat >>conftest.$ac_ext <<_ACEOF
13539 19 jeremybenn
/* end confdefs.h.  */
13540 82 jeremybenn
#include 
13541 19 jeremybenn
 
13542
int
13543
main ()
13544
{
13545 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13546
              bogus endian macros
13547
             #endif
13548 19 jeremybenn
 
13549
  ;
13550
  return 0;
13551
}
13552
_ACEOF
13553 121 jeremybenn
rm -f conftest.$ac_objext
13554
if { (ac_try="$ac_compile"
13555
case "(($ac_try" in
13556
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557
  *) ac_try_echo=$ac_try;;
13558
esac
13559
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13560
$as_echo "$ac_try_echo") >&5
13561
  (eval "$ac_compile") 2>conftest.er1
13562
  ac_status=$?
13563
  grep -v '^ *+' conftest.er1 >conftest.err
13564
  rm -f conftest.er1
13565
  cat conftest.err >&5
13566
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567
  (exit $ac_status); } && {
13568
         test -z "$ac_c_werror_flag" ||
13569
         test ! -s conftest.err
13570
       } && test -s conftest.$ac_objext; then
13571 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
13572 121 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
13573
/* confdefs.h.  */
13574
_ACEOF
13575
cat confdefs.h >>conftest.$ac_ext
13576
cat >>conftest.$ac_ext <<_ACEOF
13577 19 jeremybenn
/* end confdefs.h.  */
13578 82 jeremybenn
#include 
13579 19 jeremybenn
 
13580
int
13581
main ()
13582
{
13583 82 jeremybenn
#ifndef _BIG_ENDIAN
13584
                 not big endian
13585
                #endif
13586 19 jeremybenn
 
13587
  ;
13588
  return 0;
13589
}
13590
_ACEOF
13591 121 jeremybenn
rm -f conftest.$ac_objext
13592
if { (ac_try="$ac_compile"
13593
case "(($ac_try" in
13594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595
  *) ac_try_echo=$ac_try;;
13596
esac
13597
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13598
$as_echo "$ac_try_echo") >&5
13599
  (eval "$ac_compile") 2>conftest.er1
13600
  ac_status=$?
13601
  grep -v '^ *+' conftest.er1 >conftest.err
13602
  rm -f conftest.er1
13603
  cat conftest.err >&5
13604
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605
  (exit $ac_status); } && {
13606
         test -z "$ac_c_werror_flag" ||
13607
         test ! -s conftest.err
13608
       } && test -s conftest.$ac_objext; then
13609 19 jeremybenn
  ac_cv_c_bigendian=yes
13610
else
13611 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13612
sed 's/^/| /' conftest.$ac_ext >&5
13613
 
13614
        ac_cv_c_bigendian=no
13615 19 jeremybenn
fi
13616 121 jeremybenn
 
13617 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618 121 jeremybenn
else
13619
  $as_echo "$as_me: failed program was:" >&5
13620
sed 's/^/| /' conftest.$ac_ext >&5
13621
 
13622
 
13623 82 jeremybenn
fi
13624 121 jeremybenn
 
13625 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13626
    fi
13627
    if test $ac_cv_c_bigendian = unknown; then
13628
      # Compile a test program.
13629 121 jeremybenn
      if test "$cross_compiling" = yes; then
13630 82 jeremybenn
  # Try to guess by grepping values from an object file.
13631 121 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
13632
/* confdefs.h.  */
13633
_ACEOF
13634
cat confdefs.h >>conftest.$ac_ext
13635
cat >>conftest.$ac_ext <<_ACEOF
13636 19 jeremybenn
/* end confdefs.h.  */
13637 82 jeremybenn
short int ascii_mm[] =
13638
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13639
                short int ascii_ii[] =
13640
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13641
                int use_ascii (int i) {
13642
                  return ascii_mm[i] + ascii_ii[i];
13643
                }
13644
                short int ebcdic_ii[] =
13645
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13646
                short int ebcdic_mm[] =
13647
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13648
                int use_ebcdic (int i) {
13649
                  return ebcdic_mm[i] + ebcdic_ii[i];
13650
                }
13651
                extern int foo;
13652
 
13653 19 jeremybenn
int
13654
main ()
13655
{
13656 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
13657 19 jeremybenn
  ;
13658
  return 0;
13659
}
13660
_ACEOF
13661 121 jeremybenn
rm -f conftest.$ac_objext
13662
if { (ac_try="$ac_compile"
13663
case "(($ac_try" in
13664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665
  *) ac_try_echo=$ac_try;;
13666
esac
13667
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13668
$as_echo "$ac_try_echo") >&5
13669
  (eval "$ac_compile") 2>conftest.er1
13670
  ac_status=$?
13671
  grep -v '^ *+' conftest.er1 >conftest.err
13672
  rm -f conftest.er1
13673
  cat conftest.err >&5
13674
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675
  (exit $ac_status); } && {
13676
         test -z "$ac_c_werror_flag" ||
13677
         test ! -s conftest.err
13678
       } && test -s conftest.$ac_objext; then
13679 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13680
              ac_cv_c_bigendian=yes
13681
            fi
13682
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13683
              if test "$ac_cv_c_bigendian" = unknown; then
13684
                ac_cv_c_bigendian=no
13685
              else
13686
                # finding both strings is unlikely to happen, but who knows?
13687
                ac_cv_c_bigendian=unknown
13688
              fi
13689
            fi
13690 121 jeremybenn
else
13691
  $as_echo "$as_me: failed program was:" >&5
13692
sed 's/^/| /' conftest.$ac_ext >&5
13693
 
13694
 
13695 19 jeremybenn
fi
13696 121 jeremybenn
 
13697 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698
else
13699 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13700
/* confdefs.h.  */
13701
_ACEOF
13702
cat confdefs.h >>conftest.$ac_ext
13703
cat >>conftest.$ac_ext <<_ACEOF
13704 19 jeremybenn
/* end confdefs.h.  */
13705
$ac_includes_default
13706
int
13707
main ()
13708
{
13709
 
13710 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
13711
             union
13712
             {
13713
               long int l;
13714
               char c[sizeof (long int)];
13715
             } u;
13716
             u.l = 1;
13717
             return u.c[sizeof (long int) - 1] == 1;
13718 19 jeremybenn
 
13719
  ;
13720
  return 0;
13721
}
13722
_ACEOF
13723 121 jeremybenn
rm -f conftest$ac_exeext
13724
if { (ac_try="$ac_link"
13725
case "(($ac_try" in
13726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727
  *) ac_try_echo=$ac_try;;
13728
esac
13729
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13730
$as_echo "$ac_try_echo") >&5
13731
  (eval "$ac_link") 2>&5
13732
  ac_status=$?
13733
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13735
  { (case "(($ac_try" in
13736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737
  *) ac_try_echo=$ac_try;;
13738
esac
13739
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13740
$as_echo "$ac_try_echo") >&5
13741
  (eval "$ac_try") 2>&5
13742
  ac_status=$?
13743
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744
  (exit $ac_status); }; }; then
13745 19 jeremybenn
  ac_cv_c_bigendian=no
13746
else
13747 121 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13748
$as_echo "$as_me: failed program was:" >&5
13749
sed 's/^/| /' conftest.$ac_ext >&5
13750
 
13751
( exit $ac_status )
13752
ac_cv_c_bigendian=yes
13753 19 jeremybenn
fi
13754 121 jeremybenn
rm -rf conftest.dSYM
13755
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13756 19 jeremybenn
fi
13757
 
13758 121 jeremybenn
 
13759 82 jeremybenn
    fi
13760 19 jeremybenn
fi
13761 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13762 82 jeremybenn
$as_echo "$ac_cv_c_bigendian" >&6; }
13763
 case $ac_cv_c_bigendian in #(
13764
   yes)
13765 121 jeremybenn
     cat >>confdefs.h <<\_ACEOF
13766
#define WORDS_BIGENDIAN 1
13767
_ACEOF
13768 82 jeremybenn
;; #(
13769
   no)
13770
      ;; #(
13771
   universal)
13772 19 jeremybenn
 
13773 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
13774
#define AC_APPLE_UNIVERSAL_BUILD 1
13775
_ACEOF
13776 82 jeremybenn
 
13777
     ;; #(
13778
   *)
13779 121 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
13780
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13781
$as_echo "$as_me: error: unknown endianness
13782
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13783
   { (exit 1); exit 1; }; } ;;
13784 82 jeremybenn
 esac
13785
 
13786
 
13787
# The test for strndup, strcasecmp and isblank fails on modern machines. I
13788
# think it's because GCC 4 does not like the way autoconf overrides the built
13789
# in type declaration. So we must check for them by steam.
13790 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strndup" >&5
13791 82 jeremybenn
$as_echo_n "checking for strndup... " >&6; }
13792 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13793
/* confdefs.h.  */
13794
_ACEOF
13795
cat confdefs.h >>conftest.$ac_ext
13796
cat >>conftest.$ac_ext <<_ACEOF
13797 82 jeremybenn
/* end confdefs.h.  */
13798
#ifdef HAVE_STRING_H
13799
                                  #include 
13800
                                  #else
13801
                                  char *strndup (const char *s,
13802
                                                 size_t      n);
13803
                                  #endif
13804
int
13805
main ()
13806
{
13807
\
13808
                                const char *s = "test";
13809
                                  char       *t;
13810
                                  t = strndup (s, 3);
13811
  ;
13812
  return 0;
13813
}
13814
_ACEOF
13815 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
13816
if { (ac_try="$ac_link"
13817
case "(($ac_try" in
13818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819
  *) ac_try_echo=$ac_try;;
13820
esac
13821
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13822
$as_echo "$ac_try_echo") >&5
13823
  (eval "$ac_link") 2>conftest.er1
13824
  ac_status=$?
13825
  grep -v '^ *+' conftest.er1 >conftest.err
13826
  rm -f conftest.er1
13827
  cat conftest.err >&5
13828
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829
  (exit $ac_status); } && {
13830
         test -z "$ac_c_werror_flag" ||
13831
         test ! -s conftest.err
13832
       } && test -s conftest$ac_exeext && {
13833
         test "$cross_compiling" = yes ||
13834
         $as_test_x conftest$ac_exeext
13835
       }; then
13836 82 jeremybenn
  \
13837
 
13838 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
13839
#define HAVE_STRNDUP 1
13840
_ACEOF
13841 82 jeremybenn
 \
13842 121 jeremybenn
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13843 82 jeremybenn
$as_echo "yes" >&6; }
13844
else
13845 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13846
sed 's/^/| /' conftest.$ac_ext >&5
13847
 
13848
        { $as_echo "$as_me:$LINENO: result: no" >&5
13849 82 jeremybenn
$as_echo "no" >&6; }
13850 19 jeremybenn
fi
13851
 
13852 121 jeremybenn
rm -rf conftest.dSYM
13853
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13854
      conftest$ac_exeext conftest.$ac_ext
13855
 
13856
{ $as_echo "$as_me:$LINENO: checking for strcasecmp" >&5
13857 82 jeremybenn
$as_echo_n "checking for strcasecmp... " >&6; }
13858 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13859
/* confdefs.h.  */
13860
_ACEOF
13861
cat confdefs.h >>conftest.$ac_ext
13862
cat >>conftest.$ac_ext <<_ACEOF
13863 82 jeremybenn
/* end confdefs.h.  */
13864
#ifdef HAVE_STRINGS_H
13865
                                  #include 
13866
                                  #else
13867
                                  int strcasecmp (const char *s1,
13868
                                                  const char *s2);
13869
                                  #endif
13870
int
13871
main ()
13872
{
13873
\
13874
                                const char *s = "test";
13875
                                  const char *t = "TEST";
13876
                                  int         res;
13877
                                  res = strcasecmp (s, t);
13878
  ;
13879
  return 0;
13880
}
13881
_ACEOF
13882 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
13883
if { (ac_try="$ac_link"
13884
case "(($ac_try" in
13885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886
  *) ac_try_echo=$ac_try;;
13887
esac
13888
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13889
$as_echo "$ac_try_echo") >&5
13890
  (eval "$ac_link") 2>conftest.er1
13891
  ac_status=$?
13892
  grep -v '^ *+' conftest.er1 >conftest.err
13893
  rm -f conftest.er1
13894
  cat conftest.err >&5
13895
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896
  (exit $ac_status); } && {
13897
         test -z "$ac_c_werror_flag" ||
13898
         test ! -s conftest.err
13899
       } && test -s conftest$ac_exeext && {
13900
         test "$cross_compiling" = yes ||
13901
         $as_test_x conftest$ac_exeext
13902
       }; then
13903 82 jeremybenn
  \
13904
 
13905 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
13906
#define HAVE_STRCASECMP 1
13907
_ACEOF
13908 82 jeremybenn
 \
13909 121 jeremybenn
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13910 82 jeremybenn
$as_echo "yes" >&6; }
13911
else
13912 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13913
sed 's/^/| /' conftest.$ac_ext >&5
13914
 
13915
        { $as_echo "$as_me:$LINENO: result: no" >&5
13916 82 jeremybenn
$as_echo "no" >&6; }
13917
fi
13918
 
13919 121 jeremybenn
rm -rf conftest.dSYM
13920
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13921
      conftest$ac_exeext conftest.$ac_ext
13922
 
13923
{ $as_echo "$as_me:$LINENO: checking for isblank" >&5
13924 82 jeremybenn
$as_echo_n "checking for isblank... " >&6; }
13925 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13926
/* confdefs.h.  */
13927
_ACEOF
13928
cat confdefs.h >>conftest.$ac_ext
13929
cat >>conftest.$ac_ext <<_ACEOF
13930 82 jeremybenn
/* end confdefs.h.  */
13931
#ifdef HAVE_CTYPE_H
13932
                                  #include 
13933
                                  #else
13934
                                  int isblank (int  c);
13935
                                  #endif
13936
int
13937
main ()
13938
{
13939
\
13940
                                return isblank ('x');
13941
  ;
13942
  return 0;
13943
}
13944
_ACEOF
13945 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
13946
if { (ac_try="$ac_link"
13947
case "(($ac_try" in
13948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949
  *) ac_try_echo=$ac_try;;
13950
esac
13951
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13952
$as_echo "$ac_try_echo") >&5
13953
  (eval "$ac_link") 2>conftest.er1
13954
  ac_status=$?
13955
  grep -v '^ *+' conftest.er1 >conftest.err
13956
  rm -f conftest.er1
13957
  cat conftest.err >&5
13958
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959
  (exit $ac_status); } && {
13960
         test -z "$ac_c_werror_flag" ||
13961
         test ! -s conftest.err
13962
       } && test -s conftest$ac_exeext && {
13963
         test "$cross_compiling" = yes ||
13964
         $as_test_x conftest$ac_exeext
13965
       }; then
13966 82 jeremybenn
  \
13967 19 jeremybenn
 
13968 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
13969
#define HAVE_ISBLANK 1
13970
_ACEOF
13971 82 jeremybenn
 \
13972 121 jeremybenn
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13973 82 jeremybenn
$as_echo "yes" >&6; }
13974
else
13975 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13976
sed 's/^/| /' conftest.$ac_ext >&5
13977
 
13978
        { $as_echo "$as_me:$LINENO: result: no" >&5
13979 82 jeremybenn
$as_echo "no" >&6; }
13980
fi
13981
 
13982 121 jeremybenn
rm -rf conftest.dSYM
13983
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13984
      conftest$ac_exeext conftest.$ac_ext
13985
 
13986 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
13987 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
13988
$as_echo_n "checking for size_t... " >&6; }
13989
if test "${ac_cv_type_size_t+set}" = set; then
13990
  $as_echo_n "(cached) " >&6
13991
else
13992
  ac_cv_type_size_t=no
13993
cat >conftest.$ac_ext <<_ACEOF
13994
/* confdefs.h.  */
13995
_ACEOF
13996
cat confdefs.h >>conftest.$ac_ext
13997
cat >>conftest.$ac_ext <<_ACEOF
13998
/* end confdefs.h.  */
13999
$ac_includes_default
14000
int
14001
main ()
14002
{
14003
if (sizeof (size_t))
14004
       return 0;
14005
  ;
14006
  return 0;
14007
}
14008
_ACEOF
14009
rm -f conftest.$ac_objext
14010
if { (ac_try="$ac_compile"
14011
case "(($ac_try" in
14012
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013
  *) ac_try_echo=$ac_try;;
14014
esac
14015
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14016
$as_echo "$ac_try_echo") >&5
14017
  (eval "$ac_compile") 2>conftest.er1
14018
  ac_status=$?
14019
  grep -v '^ *+' conftest.er1 >conftest.err
14020
  rm -f conftest.er1
14021
  cat conftest.err >&5
14022
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023
  (exit $ac_status); } && {
14024
         test -z "$ac_c_werror_flag" ||
14025
         test ! -s conftest.err
14026
       } && test -s conftest.$ac_objext; then
14027
  cat >conftest.$ac_ext <<_ACEOF
14028
/* confdefs.h.  */
14029
_ACEOF
14030
cat confdefs.h >>conftest.$ac_ext
14031
cat >>conftest.$ac_ext <<_ACEOF
14032
/* end confdefs.h.  */
14033
$ac_includes_default
14034
int
14035
main ()
14036
{
14037
if (sizeof ((size_t)))
14038
          return 0;
14039
  ;
14040
  return 0;
14041
}
14042
_ACEOF
14043
rm -f conftest.$ac_objext
14044
if { (ac_try="$ac_compile"
14045
case "(($ac_try" in
14046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047
  *) ac_try_echo=$ac_try;;
14048
esac
14049
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14050
$as_echo "$ac_try_echo") >&5
14051
  (eval "$ac_compile") 2>conftest.er1
14052
  ac_status=$?
14053
  grep -v '^ *+' conftest.er1 >conftest.err
14054
  rm -f conftest.er1
14055
  cat conftest.err >&5
14056
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057
  (exit $ac_status); } && {
14058
         test -z "$ac_c_werror_flag" ||
14059
         test ! -s conftest.err
14060
       } && test -s conftest.$ac_objext; then
14061
  :
14062
else
14063
  $as_echo "$as_me: failed program was:" >&5
14064
sed 's/^/| /' conftest.$ac_ext >&5
14065 19 jeremybenn
 
14066 121 jeremybenn
        ac_cv_type_size_t=yes
14067
fi
14068
 
14069
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070 19 jeremybenn
else
14071 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14072
sed 's/^/| /' conftest.$ac_ext >&5
14073 19 jeremybenn
 
14074 121 jeremybenn
 
14075
fi
14076
 
14077
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078
fi
14079
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14080
$as_echo "$ac_cv_type_size_t" >&6; }
14081
if test "x$ac_cv_type_size_t" = x""yes; then
14082
  :
14083
else
14084
 
14085 19 jeremybenn
cat >>confdefs.h <<_ACEOF
14086
#define size_t unsigned int
14087
_ACEOF
14088
 
14089
fi
14090
 
14091 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14092 82 jeremybenn
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14093 121 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then
14094 82 jeremybenn
  $as_echo_n "(cached) " >&6
14095 19 jeremybenn
else
14096 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14097
/* confdefs.h.  */
14098
_ACEOF
14099
cat confdefs.h >>conftest.$ac_ext
14100
cat >>conftest.$ac_ext <<_ACEOF
14101 19 jeremybenn
/* end confdefs.h.  */
14102
#include 
14103
#include 
14104
 
14105
int
14106
main ()
14107
{
14108
struct tm tm;
14109
                                     int *p = &tm.tm_sec;
14110 82 jeremybenn
                                     return !p;
14111 19 jeremybenn
  ;
14112
  return 0;
14113
}
14114
_ACEOF
14115 121 jeremybenn
rm -f conftest.$ac_objext
14116
if { (ac_try="$ac_compile"
14117
case "(($ac_try" in
14118
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119
  *) ac_try_echo=$ac_try;;
14120
esac
14121
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14122
$as_echo "$ac_try_echo") >&5
14123
  (eval "$ac_compile") 2>conftest.er1
14124
  ac_status=$?
14125
  grep -v '^ *+' conftest.er1 >conftest.err
14126
  rm -f conftest.er1
14127
  cat conftest.err >&5
14128
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129
  (exit $ac_status); } && {
14130
         test -z "$ac_c_werror_flag" ||
14131
         test ! -s conftest.err
14132
       } && test -s conftest.$ac_objext; then
14133 19 jeremybenn
  ac_cv_struct_tm=time.h
14134
else
14135 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14136
sed 's/^/| /' conftest.$ac_ext >&5
14137
 
14138
        ac_cv_struct_tm=sys/time.h
14139 19 jeremybenn
fi
14140 121 jeremybenn
 
14141 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14142
fi
14143 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14144 82 jeremybenn
$as_echo "$ac_cv_struct_tm" >&6; }
14145 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
14146
 
14147 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
14148
#define TM_IN_SYS_TIME 1
14149
_ACEOF
14150 19 jeremybenn
 
14151
fi
14152
 
14153
 
14154
# Checks for library functions (for argtable2).
14155 121 jeremybenn
 
14156 19 jeremybenn
for ac_header in stdlib.h
14157 121 jeremybenn
do
14158
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14159
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14160
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14161
$as_echo_n "checking for $ac_header... " >&6; }
14162
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14163
  $as_echo_n "(cached) " >&6
14164
fi
14165
ac_res=`eval 'as_val=${'$as_ac_Header'}
14166
                 $as_echo "$as_val"'`
14167
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14168
$as_echo "$ac_res" >&6; }
14169
else
14170
  # Is the header compilable?
14171
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14172
$as_echo_n "checking $ac_header usability... " >&6; }
14173
cat >conftest.$ac_ext <<_ACEOF
14174
/* confdefs.h.  */
14175
_ACEOF
14176
cat confdefs.h >>conftest.$ac_ext
14177
cat >>conftest.$ac_ext <<_ACEOF
14178
/* end confdefs.h.  */
14179
$ac_includes_default
14180
#include <$ac_header>
14181
_ACEOF
14182
rm -f conftest.$ac_objext
14183
if { (ac_try="$ac_compile"
14184
case "(($ac_try" in
14185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186
  *) ac_try_echo=$ac_try;;
14187
esac
14188
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14189
$as_echo "$ac_try_echo") >&5
14190
  (eval "$ac_compile") 2>conftest.er1
14191
  ac_status=$?
14192
  grep -v '^ *+' conftest.er1 >conftest.err
14193
  rm -f conftest.er1
14194
  cat conftest.err >&5
14195
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196
  (exit $ac_status); } && {
14197
         test -z "$ac_c_werror_flag" ||
14198
         test ! -s conftest.err
14199
       } && test -s conftest.$ac_objext; then
14200
  ac_header_compiler=yes
14201
else
14202
  $as_echo "$as_me: failed program was:" >&5
14203
sed 's/^/| /' conftest.$ac_ext >&5
14204
 
14205
        ac_header_compiler=no
14206
fi
14207
 
14208
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14210
$as_echo "$ac_header_compiler" >&6; }
14211
 
14212
# Is the header present?
14213
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14214
$as_echo_n "checking $ac_header presence... " >&6; }
14215
cat >conftest.$ac_ext <<_ACEOF
14216
/* confdefs.h.  */
14217
_ACEOF
14218
cat confdefs.h >>conftest.$ac_ext
14219
cat >>conftest.$ac_ext <<_ACEOF
14220
/* end confdefs.h.  */
14221
#include <$ac_header>
14222
_ACEOF
14223
if { (ac_try="$ac_cpp conftest.$ac_ext"
14224
case "(($ac_try" in
14225
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226
  *) ac_try_echo=$ac_try;;
14227
esac
14228
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14229
$as_echo "$ac_try_echo") >&5
14230
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14231
  ac_status=$?
14232
  grep -v '^ *+' conftest.er1 >conftest.err
14233
  rm -f conftest.er1
14234
  cat conftest.err >&5
14235
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236
  (exit $ac_status); } >/dev/null && {
14237
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14238
         test ! -s conftest.err
14239
       }; then
14240
  ac_header_preproc=yes
14241
else
14242
  $as_echo "$as_me: failed program was:" >&5
14243
sed 's/^/| /' conftest.$ac_ext >&5
14244
 
14245
  ac_header_preproc=no
14246
fi
14247
 
14248
rm -f conftest.err conftest.$ac_ext
14249
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14250
$as_echo "$ac_header_preproc" >&6; }
14251
 
14252
# So?  What about this header?
14253
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14254
  yes:no: )
14255
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14256
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14257
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14258
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14259
    ac_header_preproc=yes
14260
    ;;
14261
  no:yes:* )
14262
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14263
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14264
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14265
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14266
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14267
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14268
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14269
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14270
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14271
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14272
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14273
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14274
    ( cat <<\_ASBOX
14275
## ------------------------------------- ##
14276
## Report this to openrisc@opencores.org ##
14277
## ------------------------------------- ##
14278
_ASBOX
14279
     ) | sed "s/^/$as_me: WARNING:     /" >&2
14280
    ;;
14281
esac
14282
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14283
$as_echo_n "checking for $ac_header... " >&6; }
14284
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14285
  $as_echo_n "(cached) " >&6
14286
else
14287
  eval "$as_ac_Header=\$ac_header_preproc"
14288
fi
14289
ac_res=`eval 'as_val=${'$as_ac_Header'}
14290
                 $as_echo "$as_val"'`
14291
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14292
$as_echo "$ac_res" >&6; }
14293
 
14294
fi
14295
as_val=`eval 'as_val=${'$as_ac_Header'}
14296
                 $as_echo "$as_val"'`
14297
   if test "x$as_val" = x""yes; then
14298 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14299 121 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14300 19 jeremybenn
_ACEOF
14301
 
14302
fi
14303
 
14304
done
14305
 
14306 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14307 82 jeremybenn
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14308 121 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14309 82 jeremybenn
  $as_echo_n "(cached) " >&6
14310 19 jeremybenn
else
14311 121 jeremybenn
  if test "$cross_compiling" = yes; then
14312 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
14313
else
14314 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14315
/* confdefs.h.  */
14316
_ACEOF
14317
cat confdefs.h >>conftest.$ac_ext
14318
cat >>conftest.$ac_ext <<_ACEOF
14319 19 jeremybenn
/* end confdefs.h.  */
14320
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14321
# include 
14322
#else
14323
char *malloc ();
14324
#endif
14325
 
14326
int
14327
main ()
14328
{
14329
return ! malloc (0);
14330
  ;
14331
  return 0;
14332
}
14333
_ACEOF
14334 121 jeremybenn
rm -f conftest$ac_exeext
14335
if { (ac_try="$ac_link"
14336
case "(($ac_try" in
14337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338
  *) ac_try_echo=$ac_try;;
14339
esac
14340
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14341
$as_echo "$ac_try_echo") >&5
14342
  (eval "$ac_link") 2>&5
14343
  ac_status=$?
14344
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14346
  { (case "(($ac_try" in
14347
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348
  *) ac_try_echo=$ac_try;;
14349
esac
14350
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14351
$as_echo "$ac_try_echo") >&5
14352
  (eval "$ac_try") 2>&5
14353
  ac_status=$?
14354
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355
  (exit $ac_status); }; }; then
14356 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
14357
else
14358 121 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14359
$as_echo "$as_me: failed program was:" >&5
14360
sed 's/^/| /' conftest.$ac_ext >&5
14361
 
14362
( exit $ac_status )
14363
ac_cv_func_malloc_0_nonnull=no
14364 19 jeremybenn
fi
14365 121 jeremybenn
rm -rf conftest.dSYM
14366
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14367 19 jeremybenn
fi
14368
 
14369 121 jeremybenn
 
14370 19 jeremybenn
fi
14371 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14372 82 jeremybenn
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14373 121 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then
14374 19 jeremybenn
 
14375 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
14376
#define HAVE_MALLOC 1
14377
_ACEOF
14378 19 jeremybenn
 
14379
else
14380 121 jeremybenn
  cat >>confdefs.h <<\_ACEOF
14381
#define HAVE_MALLOC 0
14382
_ACEOF
14383 19 jeremybenn
 
14384
   case " $LIBOBJS " in
14385
  *" malloc.$ac_objext "* ) ;;
14386
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14387
 ;;
14388
esac
14389
 
14390
 
14391 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
14392
#define malloc rpl_malloc
14393
_ACEOF
14394 19 jeremybenn
 
14395
fi
14396
 
14397
 
14398 121 jeremybenn
 
14399
 
14400 19 jeremybenn
for ac_func in strftime
14401 121 jeremybenn
do
14402
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14403
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14404
$as_echo_n "checking for $ac_func... " >&6; }
14405
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14406
  $as_echo_n "(cached) " >&6
14407
else
14408
  cat >conftest.$ac_ext <<_ACEOF
14409
/* confdefs.h.  */
14410
_ACEOF
14411
cat confdefs.h >>conftest.$ac_ext
14412
cat >>conftest.$ac_ext <<_ACEOF
14413
/* end confdefs.h.  */
14414
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14415
   For example, HP-UX 11i  declares gettimeofday.  */
14416
#define $ac_func innocuous_$ac_func
14417
 
14418
/* System header to define __stub macros and hopefully few prototypes,
14419
    which can conflict with char $ac_func (); below.
14420
    Prefer  to  if __STDC__ is defined, since
14421
     exists even on freestanding compilers.  */
14422
 
14423
#ifdef __STDC__
14424
# include 
14425
#else
14426
# include 
14427
#endif
14428
 
14429
#undef $ac_func
14430
 
14431
/* Override any GCC internal prototype to avoid an error.
14432
   Use char because int might match the return type of a GCC
14433
   builtin and then its argument prototype would still apply.  */
14434
#ifdef __cplusplus
14435
extern "C"
14436
#endif
14437
char $ac_func ();
14438
/* The GNU C library defines this for functions which it implements
14439
    to always fail with ENOSYS.  Some functions are actually named
14440
    something starting with __ and the normal name is an alias.  */
14441
#if defined __stub_$ac_func || defined __stub___$ac_func
14442
choke me
14443
#endif
14444
 
14445
int
14446
main ()
14447
{
14448
return $ac_func ();
14449
  ;
14450
  return 0;
14451
}
14452
_ACEOF
14453
rm -f conftest.$ac_objext conftest$ac_exeext
14454
if { (ac_try="$ac_link"
14455
case "(($ac_try" in
14456
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457
  *) ac_try_echo=$ac_try;;
14458
esac
14459
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14460
$as_echo "$ac_try_echo") >&5
14461
  (eval "$ac_link") 2>conftest.er1
14462
  ac_status=$?
14463
  grep -v '^ *+' conftest.er1 >conftest.err
14464
  rm -f conftest.er1
14465
  cat conftest.err >&5
14466
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467
  (exit $ac_status); } && {
14468
         test -z "$ac_c_werror_flag" ||
14469
         test ! -s conftest.err
14470
       } && test -s conftest$ac_exeext && {
14471
         test "$cross_compiling" = yes ||
14472
         $as_test_x conftest$ac_exeext
14473
       }; then
14474
  eval "$as_ac_var=yes"
14475
else
14476
  $as_echo "$as_me: failed program was:" >&5
14477
sed 's/^/| /' conftest.$ac_ext >&5
14478
 
14479
        eval "$as_ac_var=no"
14480
fi
14481
 
14482
rm -rf conftest.dSYM
14483
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14484
      conftest$ac_exeext conftest.$ac_ext
14485
fi
14486
ac_res=`eval 'as_val=${'$as_ac_var'}
14487
                 $as_echo "$as_val"'`
14488
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14489
$as_echo "$ac_res" >&6; }
14490
as_val=`eval 'as_val=${'$as_ac_var'}
14491
                 $as_echo "$as_val"'`
14492
   if test "x$as_val" = x""yes; then
14493 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14494 121 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14495 19 jeremybenn
_ACEOF
14496
 
14497
else
14498
  # strftime is in -lintl on SCO UNIX.
14499 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14500 82 jeremybenn
$as_echo_n "checking for strftime in -lintl... " >&6; }
14501 121 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then
14502 82 jeremybenn
  $as_echo_n "(cached) " >&6
14503 19 jeremybenn
else
14504
  ac_check_lib_save_LIBS=$LIBS
14505
LIBS="-lintl  $LIBS"
14506 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14507
/* confdefs.h.  */
14508
_ACEOF
14509
cat confdefs.h >>conftest.$ac_ext
14510
cat >>conftest.$ac_ext <<_ACEOF
14511 19 jeremybenn
/* end confdefs.h.  */
14512
 
14513
/* Override any GCC internal prototype to avoid an error.
14514
   Use char because int might match the return type of a GCC
14515
   builtin and then its argument prototype would still apply.  */
14516
#ifdef __cplusplus
14517
extern "C"
14518
#endif
14519
char strftime ();
14520
int
14521
main ()
14522
{
14523
return strftime ();
14524
  ;
14525
  return 0;
14526
}
14527
_ACEOF
14528 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
14529
if { (ac_try="$ac_link"
14530
case "(($ac_try" in
14531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532
  *) ac_try_echo=$ac_try;;
14533
esac
14534
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14535
$as_echo "$ac_try_echo") >&5
14536
  (eval "$ac_link") 2>conftest.er1
14537
  ac_status=$?
14538
  grep -v '^ *+' conftest.er1 >conftest.err
14539
  rm -f conftest.er1
14540
  cat conftest.err >&5
14541
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542
  (exit $ac_status); } && {
14543
         test -z "$ac_c_werror_flag" ||
14544
         test ! -s conftest.err
14545
       } && test -s conftest$ac_exeext && {
14546
         test "$cross_compiling" = yes ||
14547
         $as_test_x conftest$ac_exeext
14548
       }; then
14549 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
14550
else
14551 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14552
sed 's/^/| /' conftest.$ac_ext >&5
14553
 
14554
        ac_cv_lib_intl_strftime=no
14555 19 jeremybenn
fi
14556 121 jeremybenn
 
14557
rm -rf conftest.dSYM
14558
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14559
      conftest$ac_exeext conftest.$ac_ext
14560 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
14561
fi
14562 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14563 82 jeremybenn
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
14564 121 jeremybenn
if test "x$ac_cv_lib_intl_strftime" = x""yes; then
14565
  cat >>confdefs.h <<\_ACEOF
14566
#define HAVE_STRFTIME 1
14567
_ACEOF
14568 19 jeremybenn
 
14569
LIBS="-lintl $LIBS"
14570
fi
14571
 
14572
fi
14573
done
14574
 
14575 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
14576 82 jeremybenn
$as_echo_n "checking for working strtod... " >&6; }
14577 121 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then
14578 82 jeremybenn
  $as_echo_n "(cached) " >&6
14579 19 jeremybenn
else
14580 121 jeremybenn
  if test "$cross_compiling" = yes; then
14581 19 jeremybenn
  ac_cv_func_strtod=no
14582
else
14583 121 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14584
/* confdefs.h.  */
14585
_ACEOF
14586
cat confdefs.h >>conftest.$ac_ext
14587
cat >>conftest.$ac_ext <<_ACEOF
14588 19 jeremybenn
/* end confdefs.h.  */
14589
 
14590
$ac_includes_default
14591
#ifndef strtod
14592
double strtod ();
14593
#endif
14594
int
14595
main()
14596
{
14597
  {
14598
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14599
    char *string = " +69";
14600
    char *term;
14601
    double value;
14602
    value = strtod (string, &term);
14603
    if (value != 69 || term != (string + 4))
14604
      return 1;
14605
  }
14606
 
14607
  {
14608
    /* Under Solaris 2.4, strtod returns the wrong value for the
14609
       terminating character under some conditions.  */
14610
    char *string = "NaN";
14611
    char *term;
14612
    strtod (string, &term);
14613
    if (term != string && *(term - 1) == 0)
14614
      return 1;
14615
  }
14616
  return 0;
14617
}
14618
 
14619
_ACEOF
14620 121 jeremybenn
rm -f conftest$ac_exeext
14621
if { (ac_try="$ac_link"
14622
case "(($ac_try" in
14623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624
  *) ac_try_echo=$ac_try;;
14625
esac
14626
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14627
$as_echo "$ac_try_echo") >&5
14628
  (eval "$ac_link") 2>&5
14629
  ac_status=$?
14630
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14632
  { (case "(($ac_try" in
14633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634
  *) ac_try_echo=$ac_try;;
14635
esac
14636
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14637
$as_echo "$ac_try_echo") >&5
14638
  (eval "$ac_try") 2>&5
14639
  ac_status=$?
14640
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641
  (exit $ac_status); }; }; then
14642 19 jeremybenn
  ac_cv_func_strtod=yes
14643
else
14644 121 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14645
$as_echo "$as_me: failed program was:" >&5
14646
sed 's/^/| /' conftest.$ac_ext >&5
14647
 
14648
( exit $ac_status )
14649
ac_cv_func_strtod=no
14650 19 jeremybenn
fi
14651 121 jeremybenn
rm -rf conftest.dSYM
14652
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14653 19 jeremybenn
fi
14654
 
14655 121 jeremybenn
 
14656 19 jeremybenn
fi
14657 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14658 82 jeremybenn
$as_echo "$ac_cv_func_strtod" >&6; }
14659 19 jeremybenn
if test $ac_cv_func_strtod = no; then
14660
  case " $LIBOBJS " in
14661
  *" strtod.$ac_objext "* ) ;;
14662
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14663
 ;;
14664
esac
14665
 
14666 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for pow" >&5
14667
$as_echo_n "checking for pow... " >&6; }
14668
if test "${ac_cv_func_pow+set}" = set; then
14669
  $as_echo_n "(cached) " >&6
14670
else
14671
  cat >conftest.$ac_ext <<_ACEOF
14672
/* confdefs.h.  */
14673
_ACEOF
14674
cat confdefs.h >>conftest.$ac_ext
14675
cat >>conftest.$ac_ext <<_ACEOF
14676
/* end confdefs.h.  */
14677
/* Define pow to an innocuous variant, in case  declares pow.
14678
   For example, HP-UX 11i  declares gettimeofday.  */
14679
#define pow innocuous_pow
14680 19 jeremybenn
 
14681 121 jeremybenn
/* System header to define __stub macros and hopefully few prototypes,
14682
    which can conflict with char pow (); below.
14683
    Prefer  to  if __STDC__ is defined, since
14684
     exists even on freestanding compilers.  */
14685
 
14686
#ifdef __STDC__
14687
# include 
14688
#else
14689
# include 
14690
#endif
14691
 
14692
#undef pow
14693
 
14694
/* Override any GCC internal prototype to avoid an error.
14695
   Use char because int might match the return type of a GCC
14696
   builtin and then its argument prototype would still apply.  */
14697
#ifdef __cplusplus
14698
extern "C"
14699
#endif
14700
char pow ();
14701
/* The GNU C library defines this for functions which it implements
14702
    to always fail with ENOSYS.  Some functions are actually named
14703
    something starting with __ and the normal name is an alias.  */
14704
#if defined __stub_pow || defined __stub___pow
14705
choke me
14706
#endif
14707
 
14708
int
14709
main ()
14710
{
14711
return pow ();
14712
  ;
14713
  return 0;
14714
}
14715
_ACEOF
14716
rm -f conftest.$ac_objext conftest$ac_exeext
14717
if { (ac_try="$ac_link"
14718
case "(($ac_try" in
14719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720
  *) ac_try_echo=$ac_try;;
14721
esac
14722
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14723
$as_echo "$ac_try_echo") >&5
14724
  (eval "$ac_link") 2>conftest.er1
14725
  ac_status=$?
14726
  grep -v '^ *+' conftest.er1 >conftest.err
14727
  rm -f conftest.er1
14728
  cat conftest.err >&5
14729
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730
  (exit $ac_status); } && {
14731
         test -z "$ac_c_werror_flag" ||
14732
         test ! -s conftest.err
14733
       } && test -s conftest$ac_exeext && {
14734
         test "$cross_compiling" = yes ||
14735
         $as_test_x conftest$ac_exeext
14736
       }; then
14737
  ac_cv_func_pow=yes
14738
else
14739
  $as_echo "$as_me: failed program was:" >&5
14740
sed 's/^/| /' conftest.$ac_ext >&5
14741
 
14742
        ac_cv_func_pow=no
14743 19 jeremybenn
fi
14744
 
14745 121 jeremybenn
rm -rf conftest.dSYM
14746
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14747
      conftest$ac_exeext conftest.$ac_ext
14748
fi
14749
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14750
$as_echo "$ac_cv_func_pow" >&6; }
14751
 
14752 19 jeremybenn
if test $ac_cv_func_pow = no; then
14753 121 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
14754 82 jeremybenn
$as_echo_n "checking for pow in -lm... " >&6; }
14755 121 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then
14756 82 jeremybenn
  $as_echo_n "(cached) " >&6
14757 19 jeremybenn
else
14758
  ac_check_lib_save_LIBS=$LIBS
14759
LIBS="-lm  $LIBS"
14760 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14761
/* confdefs.h.  */
14762
_ACEOF
14763
cat confdefs.h >>conftest.$ac_ext
14764
cat >>conftest.$ac_ext <<_ACEOF
14765 19 jeremybenn
/* end confdefs.h.  */
14766
 
14767
/* Override any GCC internal prototype to avoid an error.
14768
   Use char because int might match the return type of a GCC
14769
   builtin and then its argument prototype would still apply.  */
14770
#ifdef __cplusplus
14771
extern "C"
14772
#endif
14773
char pow ();
14774
int
14775
main ()
14776
{
14777
return pow ();
14778
  ;
14779
  return 0;
14780
}
14781
_ACEOF
14782 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
14783
if { (ac_try="$ac_link"
14784
case "(($ac_try" in
14785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786
  *) ac_try_echo=$ac_try;;
14787
esac
14788
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14789
$as_echo "$ac_try_echo") >&5
14790
  (eval "$ac_link") 2>conftest.er1
14791
  ac_status=$?
14792
  grep -v '^ *+' conftest.er1 >conftest.err
14793
  rm -f conftest.er1
14794
  cat conftest.err >&5
14795
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796
  (exit $ac_status); } && {
14797
         test -z "$ac_c_werror_flag" ||
14798
         test ! -s conftest.err
14799
       } && test -s conftest$ac_exeext && {
14800
         test "$cross_compiling" = yes ||
14801
         $as_test_x conftest$ac_exeext
14802
       }; then
14803 19 jeremybenn
  ac_cv_lib_m_pow=yes
14804
else
14805 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14806
sed 's/^/| /' conftest.$ac_ext >&5
14807
 
14808
        ac_cv_lib_m_pow=no
14809 19 jeremybenn
fi
14810 121 jeremybenn
 
14811
rm -rf conftest.dSYM
14812
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14813
      conftest$ac_exeext conftest.$ac_ext
14814 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
14815
fi
14816 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14817 82 jeremybenn
$as_echo "$ac_cv_lib_m_pow" >&6; }
14818 121 jeremybenn
if test "x$ac_cv_lib_m_pow" = x""yes; then
14819 19 jeremybenn
  POW_LIB=-lm
14820
else
14821 121 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14822 82 jeremybenn
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14823 19 jeremybenn
fi
14824
 
14825
fi
14826
 
14827
fi
14828
 
14829 121 jeremybenn
 
14830
 
14831
 
14832
 
14833
 
14834 19 jeremybenn
for ac_func in bzero strchr strcspn strrchr strtol
14835 121 jeremybenn
do
14836
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14837
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14838
$as_echo_n "checking for $ac_func... " >&6; }
14839
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14840
  $as_echo_n "(cached) " >&6
14841
else
14842
  cat >conftest.$ac_ext <<_ACEOF
14843
/* confdefs.h.  */
14844
_ACEOF
14845
cat confdefs.h >>conftest.$ac_ext
14846
cat >>conftest.$ac_ext <<_ACEOF
14847
/* end confdefs.h.  */
14848
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14849
   For example, HP-UX 11i  declares gettimeofday.  */
14850
#define $ac_func innocuous_$ac_func
14851
 
14852
/* System header to define __stub macros and hopefully few prototypes,
14853
    which can conflict with char $ac_func (); below.
14854
    Prefer  to  if __STDC__ is defined, since
14855
     exists even on freestanding compilers.  */
14856
 
14857
#ifdef __STDC__
14858
# include 
14859
#else
14860
# include 
14861
#endif
14862
 
14863
#undef $ac_func
14864
 
14865
/* Override any GCC internal prototype to avoid an error.
14866
   Use char because int might match the return type of a GCC
14867
   builtin and then its argument prototype would still apply.  */
14868
#ifdef __cplusplus
14869
extern "C"
14870
#endif
14871
char $ac_func ();
14872
/* The GNU C library defines this for functions which it implements
14873
    to always fail with ENOSYS.  Some functions are actually named
14874
    something starting with __ and the normal name is an alias.  */
14875
#if defined __stub_$ac_func || defined __stub___$ac_func
14876
choke me
14877
#endif
14878
 
14879
int
14880
main ()
14881
{
14882
return $ac_func ();
14883
  ;
14884
  return 0;
14885
}
14886
_ACEOF
14887
rm -f conftest.$ac_objext conftest$ac_exeext
14888
if { (ac_try="$ac_link"
14889
case "(($ac_try" in
14890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891
  *) ac_try_echo=$ac_try;;
14892
esac
14893
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14894
$as_echo "$ac_try_echo") >&5
14895
  (eval "$ac_link") 2>conftest.er1
14896
  ac_status=$?
14897
  grep -v '^ *+' conftest.er1 >conftest.err
14898
  rm -f conftest.er1
14899
  cat conftest.err >&5
14900
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901
  (exit $ac_status); } && {
14902
         test -z "$ac_c_werror_flag" ||
14903
         test ! -s conftest.err
14904
       } && test -s conftest$ac_exeext && {
14905
         test "$cross_compiling" = yes ||
14906
         $as_test_x conftest$ac_exeext
14907
       }; then
14908
  eval "$as_ac_var=yes"
14909
else
14910
  $as_echo "$as_me: failed program was:" >&5
14911
sed 's/^/| /' conftest.$ac_ext >&5
14912
 
14913
        eval "$as_ac_var=no"
14914
fi
14915
 
14916
rm -rf conftest.dSYM
14917
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14918
      conftest$ac_exeext conftest.$ac_ext
14919
fi
14920
ac_res=`eval 'as_val=${'$as_ac_var'}
14921
                 $as_echo "$as_val"'`
14922
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14923
$as_echo "$ac_res" >&6; }
14924
as_val=`eval 'as_val=${'$as_ac_var'}
14925
                 $as_echo "$as_val"'`
14926
   if test "x$as_val" = x""yes; then
14927 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14928 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14929 19 jeremybenn
_ACEOF
14930
 
14931
fi
14932
done
14933
 
14934 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
14935
$as_echo_n "checking for getopt_long... " >&6; }
14936
if test "${ac_cv_func_getopt_long+set}" = set; then
14937
  $as_echo_n "(cached) " >&6
14938
else
14939
  cat >conftest.$ac_ext <<_ACEOF
14940
/* confdefs.h.  */
14941
_ACEOF
14942
cat confdefs.h >>conftest.$ac_ext
14943
cat >>conftest.$ac_ext <<_ACEOF
14944
/* end confdefs.h.  */
14945
/* Define getopt_long to an innocuous variant, in case  declares getopt_long.
14946
   For example, HP-UX 11i  declares gettimeofday.  */
14947
#define getopt_long innocuous_getopt_long
14948
 
14949
/* System header to define __stub macros and hopefully few prototypes,
14950
    which can conflict with char getopt_long (); below.
14951
    Prefer  to  if __STDC__ is defined, since
14952
     exists even on freestanding compilers.  */
14953
 
14954
#ifdef __STDC__
14955
# include 
14956
#else
14957
# include 
14958
#endif
14959
 
14960
#undef getopt_long
14961
 
14962
/* Override any GCC internal prototype to avoid an error.
14963
   Use char because int might match the return type of a GCC
14964
   builtin and then its argument prototype would still apply.  */
14965
#ifdef __cplusplus
14966
extern "C"
14967
#endif
14968
char getopt_long ();
14969
/* The GNU C library defines this for functions which it implements
14970
    to always fail with ENOSYS.  Some functions are actually named
14971
    something starting with __ and the normal name is an alias.  */
14972
#if defined __stub_getopt_long || defined __stub___getopt_long
14973
choke me
14974
#endif
14975
 
14976
int
14977
main ()
14978
{
14979
return getopt_long ();
14980
  ;
14981
  return 0;
14982
}
14983
_ACEOF
14984
rm -f conftest.$ac_objext conftest$ac_exeext
14985
if { (ac_try="$ac_link"
14986
case "(($ac_try" in
14987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988
  *) ac_try_echo=$ac_try;;
14989
esac
14990
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14991
$as_echo "$ac_try_echo") >&5
14992
  (eval "$ac_link") 2>conftest.er1
14993
  ac_status=$?
14994
  grep -v '^ *+' conftest.er1 >conftest.err
14995
  rm -f conftest.er1
14996
  cat conftest.err >&5
14997
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998
  (exit $ac_status); } && {
14999
         test -z "$ac_c_werror_flag" ||
15000
         test ! -s conftest.err
15001
       } && test -s conftest$ac_exeext && {
15002
         test "$cross_compiling" = yes ||
15003
         $as_test_x conftest$ac_exeext
15004
       }; then
15005
  ac_cv_func_getopt_long=yes
15006
else
15007
  $as_echo "$as_me: failed program was:" >&5
15008
sed 's/^/| /' conftest.$ac_ext >&5
15009
 
15010
        ac_cv_func_getopt_long=no
15011
fi
15012
 
15013
rm -rf conftest.dSYM
15014
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15015
      conftest$ac_exeext conftest.$ac_ext
15016
fi
15017
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
15018
$as_echo "$ac_cv_func_getopt_long" >&6; }
15019
if test "x$ac_cv_func_getopt_long" = x""yes; then
15020 19 jeremybenn
  SYS_GETOPTLONG=1
15021
else
15022
  SYS_GETOPTLONG=0
15023
fi
15024
 
15025 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for regcomp" >&5
15026
$as_echo_n "checking for regcomp... " >&6; }
15027
if test "${ac_cv_func_regcomp+set}" = set; then
15028
  $as_echo_n "(cached) " >&6
15029
else
15030
  cat >conftest.$ac_ext <<_ACEOF
15031
/* confdefs.h.  */
15032
_ACEOF
15033
cat confdefs.h >>conftest.$ac_ext
15034
cat >>conftest.$ac_ext <<_ACEOF
15035
/* end confdefs.h.  */
15036
/* Define regcomp to an innocuous variant, in case  declares regcomp.
15037
   For example, HP-UX 11i  declares gettimeofday.  */
15038
#define regcomp innocuous_regcomp
15039
 
15040
/* System header to define __stub macros and hopefully few prototypes,
15041
    which can conflict with char regcomp (); below.
15042
    Prefer  to  if __STDC__ is defined, since
15043
     exists even on freestanding compilers.  */
15044
 
15045
#ifdef __STDC__
15046
# include 
15047
#else
15048
# include 
15049
#endif
15050
 
15051
#undef regcomp
15052
 
15053
/* Override any GCC internal prototype to avoid an error.
15054
   Use char because int might match the return type of a GCC
15055
   builtin and then its argument prototype would still apply.  */
15056
#ifdef __cplusplus
15057
extern "C"
15058
#endif
15059
char regcomp ();
15060
/* The GNU C library defines this for functions which it implements
15061
    to always fail with ENOSYS.  Some functions are actually named
15062
    something starting with __ and the normal name is an alias.  */
15063
#if defined __stub_regcomp || defined __stub___regcomp
15064
choke me
15065
#endif
15066
 
15067
int
15068
main ()
15069
{
15070
return regcomp ();
15071
  ;
15072
  return 0;
15073
}
15074
_ACEOF
15075
rm -f conftest.$ac_objext conftest$ac_exeext
15076
if { (ac_try="$ac_link"
15077
case "(($ac_try" in
15078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079
  *) ac_try_echo=$ac_try;;
15080
esac
15081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15082
$as_echo "$ac_try_echo") >&5
15083
  (eval "$ac_link") 2>conftest.er1
15084
  ac_status=$?
15085
  grep -v '^ *+' conftest.er1 >conftest.err
15086
  rm -f conftest.er1
15087
  cat conftest.err >&5
15088
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089
  (exit $ac_status); } && {
15090
         test -z "$ac_c_werror_flag" ||
15091
         test ! -s conftest.err
15092
       } && test -s conftest$ac_exeext && {
15093
         test "$cross_compiling" = yes ||
15094
         $as_test_x conftest$ac_exeext
15095
       }; then
15096
  ac_cv_func_regcomp=yes
15097
else
15098
  $as_echo "$as_me: failed program was:" >&5
15099
sed 's/^/| /' conftest.$ac_ext >&5
15100
 
15101
        ac_cv_func_regcomp=no
15102
fi
15103
 
15104
rm -rf conftest.dSYM
15105
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15106
      conftest$ac_exeext conftest.$ac_ext
15107
fi
15108
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
15109
$as_echo "$ac_cv_func_regcomp" >&6; }
15110
if test "x$ac_cv_func_regcomp" = x""yes; then
15111 19 jeremybenn
  SYS_REGEX=1
15112
else
15113
  SYS_REGEX=0
15114
fi
15115
 
15116 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strptime" >&5
15117
$as_echo_n "checking for strptime... " >&6; }
15118
if test "${ac_cv_func_strptime+set}" = set; then
15119
  $as_echo_n "(cached) " >&6
15120
else
15121
  cat >conftest.$ac_ext <<_ACEOF
15122
/* confdefs.h.  */
15123
_ACEOF
15124
cat confdefs.h >>conftest.$ac_ext
15125
cat >>conftest.$ac_ext <<_ACEOF
15126
/* end confdefs.h.  */
15127
/* Define strptime to an innocuous variant, in case  declares strptime.
15128
   For example, HP-UX 11i  declares gettimeofday.  */
15129
#define strptime innocuous_strptime
15130
 
15131
/* System header to define __stub macros and hopefully few prototypes,
15132
    which can conflict with char strptime (); below.
15133
    Prefer  to  if __STDC__ is defined, since
15134
     exists even on freestanding compilers.  */
15135
 
15136
#ifdef __STDC__
15137
# include 
15138
#else
15139
# include 
15140
#endif
15141
 
15142
#undef strptime
15143
 
15144
/* Override any GCC internal prototype to avoid an error.
15145
   Use char because int might match the return type of a GCC
15146
   builtin and then its argument prototype would still apply.  */
15147
#ifdef __cplusplus
15148
extern "C"
15149
#endif
15150
char strptime ();
15151
/* The GNU C library defines this for functions which it implements
15152
    to always fail with ENOSYS.  Some functions are actually named
15153
    something starting with __ and the normal name is an alias.  */
15154
#if defined __stub_strptime || defined __stub___strptime
15155
choke me
15156
#endif
15157
 
15158
int
15159
main ()
15160
{
15161
return strptime ();
15162
  ;
15163
  return 0;
15164
}
15165
_ACEOF
15166
rm -f conftest.$ac_objext conftest$ac_exeext
15167
if { (ac_try="$ac_link"
15168
case "(($ac_try" in
15169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170
  *) ac_try_echo=$ac_try;;
15171
esac
15172
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15173
$as_echo "$ac_try_echo") >&5
15174
  (eval "$ac_link") 2>conftest.er1
15175
  ac_status=$?
15176
  grep -v '^ *+' conftest.er1 >conftest.err
15177
  rm -f conftest.er1
15178
  cat conftest.err >&5
15179
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180
  (exit $ac_status); } && {
15181
         test -z "$ac_c_werror_flag" ||
15182
         test ! -s conftest.err
15183
       } && test -s conftest$ac_exeext && {
15184
         test "$cross_compiling" = yes ||
15185
         $as_test_x conftest$ac_exeext
15186
       }; then
15187
  ac_cv_func_strptime=yes
15188
else
15189
  $as_echo "$as_me: failed program was:" >&5
15190
sed 's/^/| /' conftest.$ac_ext >&5
15191
 
15192
        ac_cv_func_strptime=no
15193
fi
15194
 
15195
rm -rf conftest.dSYM
15196
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15197
      conftest$ac_exeext conftest.$ac_ext
15198
fi
15199
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
15200
$as_echo "$ac_cv_func_strptime" >&6; }
15201
if test "x$ac_cv_func_strptime" = x""yes; then
15202 19 jeremybenn
  SYS_STRPTIME=1
15203
else
15204
  SYS_STRPTIME=0
15205
fi
15206
 
15207
 
15208
# Define automake conditionals (for argtable2)
15209
 if test "$SYS_GETOPTLONG" = "1"; then
15210
  USE_SYS_GETOPTLONG_TRUE=
15211
  USE_SYS_GETOPTLONG_FALSE='#'
15212
else
15213
  USE_SYS_GETOPTLONG_TRUE='#'
15214
  USE_SYS_GETOPTLONG_FALSE=
15215
fi
15216
 
15217
 if test "$SYS_REGEX" = "1"; then
15218
  USE_ARGREX_TRUE=
15219
  USE_ARGREX_FALSE='#'
15220
else
15221
  USE_ARGREX_TRUE='#'
15222
  USE_ARGREX_FALSE=
15223
fi
15224
 
15225
 if test "$SYS_STRPTIME" = "1"; then
15226
  USE_ARGDATE_TRUE=
15227
  USE_ARGDATE_FALSE='#'
15228
else
15229
  USE_ARGDATE_TRUE='#'
15230
  USE_ARGDATE_FALSE=
15231
fi
15232
 
15233
 
15234
# check for "long long" (added by Erez)
15235 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
15236
/* confdefs.h.  */
15237
_ACEOF
15238
cat confdefs.h >>conftest.$ac_ext
15239
cat >>conftest.$ac_ext <<_ACEOF
15240 19 jeremybenn
/* end confdefs.h.  */
15241
 
15242
int
15243
main ()
15244
{
15245
long long ll; unsigned long long ull;
15246
  ;
15247
  return 0;
15248
}
15249
_ACEOF
15250 121 jeremybenn
rm -f conftest.$ac_objext
15251
if { (ac_try="$ac_compile"
15252
case "(($ac_try" in
15253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254
  *) ac_try_echo=$ac_try;;
15255
esac
15256
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15257
$as_echo "$ac_try_echo") >&5
15258
  (eval "$ac_compile") 2>conftest.er1
15259
  ac_status=$?
15260
  grep -v '^ *+' conftest.er1 >conftest.err
15261
  rm -f conftest.er1
15262
  cat conftest.err >&5
15263
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264
  (exit $ac_status); } && {
15265
         test -z "$ac_c_werror_flag" ||
15266
         test ! -s conftest.err
15267
       } && test -s conftest.$ac_objext; then
15268 19 jeremybenn
 
15269 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
15270
#define CC_HAS_LONG_LONG 1
15271
_ACEOF
15272 19 jeremybenn
 
15273 121 jeremybenn
else
15274
  $as_echo "$as_me: failed program was:" >&5
15275
sed 's/^/| /' conftest.$ac_ext >&5
15276
 
15277
 
15278 19 jeremybenn
fi
15279 121 jeremybenn
 
15280 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15281
 
15282
# check for {u,}int{8,16,32}_t in inttypes.h.
15283 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
15284
$as_echo_n "checking for uint8_t... " >&6; }
15285
if test "${ac_cv_type_uint8_t+set}" = set; then
15286
  $as_echo_n "(cached) " >&6
15287
else
15288
  ac_cv_type_uint8_t=no
15289
cat >conftest.$ac_ext <<_ACEOF
15290
/* confdefs.h.  */
15291
_ACEOF
15292
cat confdefs.h >>conftest.$ac_ext
15293
cat >>conftest.$ac_ext <<_ACEOF
15294
/* end confdefs.h.  */
15295
#include 
15296 82 jeremybenn
 
15297 121 jeremybenn
int
15298
main ()
15299
{
15300
if (sizeof (uint8_t))
15301
       return 0;
15302
  ;
15303
  return 0;
15304
}
15305
_ACEOF
15306
rm -f conftest.$ac_objext
15307
if { (ac_try="$ac_compile"
15308
case "(($ac_try" in
15309
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310
  *) ac_try_echo=$ac_try;;
15311
esac
15312
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15313
$as_echo "$ac_try_echo") >&5
15314
  (eval "$ac_compile") 2>conftest.er1
15315
  ac_status=$?
15316
  grep -v '^ *+' conftest.er1 >conftest.err
15317
  rm -f conftest.er1
15318
  cat conftest.err >&5
15319
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320
  (exit $ac_status); } && {
15321
         test -z "$ac_c_werror_flag" ||
15322
         test ! -s conftest.err
15323
       } && test -s conftest.$ac_objext; then
15324
  cat >conftest.$ac_ext <<_ACEOF
15325
/* confdefs.h.  */
15326
_ACEOF
15327
cat confdefs.h >>conftest.$ac_ext
15328
cat >>conftest.$ac_ext <<_ACEOF
15329
/* end confdefs.h.  */
15330
#include 
15331
 
15332
int
15333
main ()
15334
{
15335
if (sizeof ((uint8_t)))
15336
          return 0;
15337
  ;
15338
  return 0;
15339
}
15340
_ACEOF
15341
rm -f conftest.$ac_objext
15342
if { (ac_try="$ac_compile"
15343
case "(($ac_try" in
15344
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345
  *) ac_try_echo=$ac_try;;
15346
esac
15347
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15348
$as_echo "$ac_try_echo") >&5
15349
  (eval "$ac_compile") 2>conftest.er1
15350
  ac_status=$?
15351
  grep -v '^ *+' conftest.er1 >conftest.err
15352
  rm -f conftest.er1
15353
  cat conftest.err >&5
15354
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355
  (exit $ac_status); } && {
15356
         test -z "$ac_c_werror_flag" ||
15357
         test ! -s conftest.err
15358
       } && test -s conftest.$ac_objext; then
15359
  :
15360
else
15361
  $as_echo "$as_me: failed program was:" >&5
15362
sed 's/^/| /' conftest.$ac_ext >&5
15363
 
15364
        ac_cv_type_uint8_t=yes
15365
fi
15366
 
15367
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368
else
15369
  $as_echo "$as_me: failed program was:" >&5
15370
sed 's/^/| /' conftest.$ac_ext >&5
15371
 
15372
 
15373
fi
15374
 
15375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15376
fi
15377
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
15378
$as_echo "$ac_cv_type_uint8_t" >&6; }
15379
if test "x$ac_cv_type_uint8_t" = x""yes; then
15380
 
15381 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15382
#define HAVE_UINT8_T 1
15383
_ACEOF
15384
 
15385
 
15386
fi
15387 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
15388
$as_echo_n "checking for uint16_t... " >&6; }
15389
if test "${ac_cv_type_uint16_t+set}" = set; then
15390
  $as_echo_n "(cached) " >&6
15391
else
15392
  ac_cv_type_uint16_t=no
15393
cat >conftest.$ac_ext <<_ACEOF
15394
/* confdefs.h.  */
15395
_ACEOF
15396
cat confdefs.h >>conftest.$ac_ext
15397
cat >>conftest.$ac_ext <<_ACEOF
15398
/* end confdefs.h.  */
15399
#include 
15400 82 jeremybenn
 
15401 121 jeremybenn
int
15402
main ()
15403
{
15404
if (sizeof (uint16_t))
15405
       return 0;
15406
  ;
15407
  return 0;
15408
}
15409
_ACEOF
15410
rm -f conftest.$ac_objext
15411
if { (ac_try="$ac_compile"
15412
case "(($ac_try" in
15413
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414
  *) ac_try_echo=$ac_try;;
15415
esac
15416
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15417
$as_echo "$ac_try_echo") >&5
15418
  (eval "$ac_compile") 2>conftest.er1
15419
  ac_status=$?
15420
  grep -v '^ *+' conftest.er1 >conftest.err
15421
  rm -f conftest.er1
15422
  cat conftest.err >&5
15423
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424
  (exit $ac_status); } && {
15425
         test -z "$ac_c_werror_flag" ||
15426
         test ! -s conftest.err
15427
       } && test -s conftest.$ac_objext; then
15428
  cat >conftest.$ac_ext <<_ACEOF
15429
/* confdefs.h.  */
15430
_ACEOF
15431
cat confdefs.h >>conftest.$ac_ext
15432
cat >>conftest.$ac_ext <<_ACEOF
15433
/* end confdefs.h.  */
15434
#include 
15435
 
15436
int
15437
main ()
15438
{
15439
if (sizeof ((uint16_t)))
15440
          return 0;
15441
  ;
15442
  return 0;
15443
}
15444
_ACEOF
15445
rm -f conftest.$ac_objext
15446
if { (ac_try="$ac_compile"
15447
case "(($ac_try" in
15448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449
  *) ac_try_echo=$ac_try;;
15450
esac
15451
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15452
$as_echo "$ac_try_echo") >&5
15453
  (eval "$ac_compile") 2>conftest.er1
15454
  ac_status=$?
15455
  grep -v '^ *+' conftest.er1 >conftest.err
15456
  rm -f conftest.er1
15457
  cat conftest.err >&5
15458
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459
  (exit $ac_status); } && {
15460
         test -z "$ac_c_werror_flag" ||
15461
         test ! -s conftest.err
15462
       } && test -s conftest.$ac_objext; then
15463
  :
15464
else
15465
  $as_echo "$as_me: failed program was:" >&5
15466
sed 's/^/| /' conftest.$ac_ext >&5
15467
 
15468
        ac_cv_type_uint16_t=yes
15469
fi
15470
 
15471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15472
else
15473
  $as_echo "$as_me: failed program was:" >&5
15474
sed 's/^/| /' conftest.$ac_ext >&5
15475
 
15476
 
15477
fi
15478
 
15479
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15480
fi
15481
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
15482
$as_echo "$ac_cv_type_uint16_t" >&6; }
15483
if test "x$ac_cv_type_uint16_t" = x""yes; then
15484
 
15485 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15486
#define HAVE_UINT16_T 1
15487
_ACEOF
15488
 
15489
 
15490
fi
15491 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
15492
$as_echo_n "checking for uint32_t... " >&6; }
15493
if test "${ac_cv_type_uint32_t+set}" = set; then
15494
  $as_echo_n "(cached) " >&6
15495
else
15496
  ac_cv_type_uint32_t=no
15497
cat >conftest.$ac_ext <<_ACEOF
15498
/* confdefs.h.  */
15499
_ACEOF
15500
cat confdefs.h >>conftest.$ac_ext
15501
cat >>conftest.$ac_ext <<_ACEOF
15502
/* end confdefs.h.  */
15503
#include 
15504 82 jeremybenn
 
15505 121 jeremybenn
int
15506
main ()
15507
{
15508
if (sizeof (uint32_t))
15509
       return 0;
15510
  ;
15511
  return 0;
15512
}
15513
_ACEOF
15514
rm -f conftest.$ac_objext
15515
if { (ac_try="$ac_compile"
15516
case "(($ac_try" in
15517
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518
  *) ac_try_echo=$ac_try;;
15519
esac
15520
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15521
$as_echo "$ac_try_echo") >&5
15522
  (eval "$ac_compile") 2>conftest.er1
15523
  ac_status=$?
15524
  grep -v '^ *+' conftest.er1 >conftest.err
15525
  rm -f conftest.er1
15526
  cat conftest.err >&5
15527
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528
  (exit $ac_status); } && {
15529
         test -z "$ac_c_werror_flag" ||
15530
         test ! -s conftest.err
15531
       } && test -s conftest.$ac_objext; then
15532
  cat >conftest.$ac_ext <<_ACEOF
15533
/* confdefs.h.  */
15534
_ACEOF
15535
cat confdefs.h >>conftest.$ac_ext
15536
cat >>conftest.$ac_ext <<_ACEOF
15537
/* end confdefs.h.  */
15538
#include 
15539
 
15540
int
15541
main ()
15542
{
15543
if (sizeof ((uint32_t)))
15544
          return 0;
15545
  ;
15546
  return 0;
15547
}
15548
_ACEOF
15549
rm -f conftest.$ac_objext
15550
if { (ac_try="$ac_compile"
15551
case "(($ac_try" in
15552
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553
  *) ac_try_echo=$ac_try;;
15554
esac
15555
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15556
$as_echo "$ac_try_echo") >&5
15557
  (eval "$ac_compile") 2>conftest.er1
15558
  ac_status=$?
15559
  grep -v '^ *+' conftest.er1 >conftest.err
15560
  rm -f conftest.er1
15561
  cat conftest.err >&5
15562
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563
  (exit $ac_status); } && {
15564
         test -z "$ac_c_werror_flag" ||
15565
         test ! -s conftest.err
15566
       } && test -s conftest.$ac_objext; then
15567
  :
15568
else
15569
  $as_echo "$as_me: failed program was:" >&5
15570
sed 's/^/| /' conftest.$ac_ext >&5
15571
 
15572
        ac_cv_type_uint32_t=yes
15573
fi
15574
 
15575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15576
else
15577
  $as_echo "$as_me: failed program was:" >&5
15578
sed 's/^/| /' conftest.$ac_ext >&5
15579
 
15580
 
15581
fi
15582
 
15583
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584
fi
15585
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15586
$as_echo "$ac_cv_type_uint32_t" >&6; }
15587
if test "x$ac_cv_type_uint32_t" = x""yes; then
15588
 
15589 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15590
#define HAVE_UINT32_T 1
15591
_ACEOF
15592
 
15593
 
15594
fi
15595
 
15596 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
15597
$as_echo_n "checking for int8_t... " >&6; }
15598
if test "${ac_cv_type_int8_t+set}" = set; then
15599
  $as_echo_n "(cached) " >&6
15600
else
15601
  ac_cv_type_int8_t=no
15602
cat >conftest.$ac_ext <<_ACEOF
15603
/* confdefs.h.  */
15604
_ACEOF
15605
cat confdefs.h >>conftest.$ac_ext
15606
cat >>conftest.$ac_ext <<_ACEOF
15607
/* end confdefs.h.  */
15608
#include 
15609 82 jeremybenn
 
15610 121 jeremybenn
int
15611
main ()
15612
{
15613
if (sizeof (int8_t))
15614
       return 0;
15615
  ;
15616
  return 0;
15617
}
15618
_ACEOF
15619
rm -f conftest.$ac_objext
15620
if { (ac_try="$ac_compile"
15621
case "(($ac_try" in
15622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623
  *) ac_try_echo=$ac_try;;
15624
esac
15625
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626
$as_echo "$ac_try_echo") >&5
15627
  (eval "$ac_compile") 2>conftest.er1
15628
  ac_status=$?
15629
  grep -v '^ *+' conftest.er1 >conftest.err
15630
  rm -f conftest.er1
15631
  cat conftest.err >&5
15632
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633
  (exit $ac_status); } && {
15634
         test -z "$ac_c_werror_flag" ||
15635
         test ! -s conftest.err
15636
       } && test -s conftest.$ac_objext; then
15637
  cat >conftest.$ac_ext <<_ACEOF
15638
/* confdefs.h.  */
15639
_ACEOF
15640
cat confdefs.h >>conftest.$ac_ext
15641
cat >>conftest.$ac_ext <<_ACEOF
15642
/* end confdefs.h.  */
15643
#include 
15644
 
15645
int
15646
main ()
15647
{
15648
if (sizeof ((int8_t)))
15649
          return 0;
15650
  ;
15651
  return 0;
15652
}
15653
_ACEOF
15654
rm -f conftest.$ac_objext
15655
if { (ac_try="$ac_compile"
15656
case "(($ac_try" in
15657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658
  *) ac_try_echo=$ac_try;;
15659
esac
15660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15661
$as_echo "$ac_try_echo") >&5
15662
  (eval "$ac_compile") 2>conftest.er1
15663
  ac_status=$?
15664
  grep -v '^ *+' conftest.er1 >conftest.err
15665
  rm -f conftest.er1
15666
  cat conftest.err >&5
15667
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668
  (exit $ac_status); } && {
15669
         test -z "$ac_c_werror_flag" ||
15670
         test ! -s conftest.err
15671
       } && test -s conftest.$ac_objext; then
15672
  :
15673
else
15674
  $as_echo "$as_me: failed program was:" >&5
15675
sed 's/^/| /' conftest.$ac_ext >&5
15676
 
15677
        ac_cv_type_int8_t=yes
15678
fi
15679
 
15680
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681
else
15682
  $as_echo "$as_me: failed program was:" >&5
15683
sed 's/^/| /' conftest.$ac_ext >&5
15684
 
15685
 
15686
fi
15687
 
15688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15689
fi
15690
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
15691
$as_echo "$ac_cv_type_int8_t" >&6; }
15692
if test "x$ac_cv_type_int8_t" = x""yes; then
15693
 
15694 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15695
#define HAVE_INT8_T 1
15696
_ACEOF
15697
 
15698
 
15699
fi
15700 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
15701
$as_echo_n "checking for int16_t... " >&6; }
15702
if test "${ac_cv_type_int16_t+set}" = set; then
15703
  $as_echo_n "(cached) " >&6
15704
else
15705
  ac_cv_type_int16_t=no
15706
cat >conftest.$ac_ext <<_ACEOF
15707
/* confdefs.h.  */
15708
_ACEOF
15709
cat confdefs.h >>conftest.$ac_ext
15710
cat >>conftest.$ac_ext <<_ACEOF
15711
/* end confdefs.h.  */
15712
#include 
15713 82 jeremybenn
 
15714 121 jeremybenn
int
15715
main ()
15716
{
15717
if (sizeof (int16_t))
15718
       return 0;
15719
  ;
15720
  return 0;
15721
}
15722
_ACEOF
15723
rm -f conftest.$ac_objext
15724
if { (ac_try="$ac_compile"
15725
case "(($ac_try" in
15726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727
  *) ac_try_echo=$ac_try;;
15728
esac
15729
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15730
$as_echo "$ac_try_echo") >&5
15731
  (eval "$ac_compile") 2>conftest.er1
15732
  ac_status=$?
15733
  grep -v '^ *+' conftest.er1 >conftest.err
15734
  rm -f conftest.er1
15735
  cat conftest.err >&5
15736
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737
  (exit $ac_status); } && {
15738
         test -z "$ac_c_werror_flag" ||
15739
         test ! -s conftest.err
15740
       } && test -s conftest.$ac_objext; then
15741
  cat >conftest.$ac_ext <<_ACEOF
15742
/* confdefs.h.  */
15743
_ACEOF
15744
cat confdefs.h >>conftest.$ac_ext
15745
cat >>conftest.$ac_ext <<_ACEOF
15746
/* end confdefs.h.  */
15747
#include 
15748
 
15749
int
15750
main ()
15751
{
15752
if (sizeof ((int16_t)))
15753
          return 0;
15754
  ;
15755
  return 0;
15756
}
15757
_ACEOF
15758
rm -f conftest.$ac_objext
15759
if { (ac_try="$ac_compile"
15760
case "(($ac_try" in
15761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762
  *) ac_try_echo=$ac_try;;
15763
esac
15764
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15765
$as_echo "$ac_try_echo") >&5
15766
  (eval "$ac_compile") 2>conftest.er1
15767
  ac_status=$?
15768
  grep -v '^ *+' conftest.er1 >conftest.err
15769
  rm -f conftest.er1
15770
  cat conftest.err >&5
15771
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772
  (exit $ac_status); } && {
15773
         test -z "$ac_c_werror_flag" ||
15774
         test ! -s conftest.err
15775
       } && test -s conftest.$ac_objext; then
15776
  :
15777
else
15778
  $as_echo "$as_me: failed program was:" >&5
15779
sed 's/^/| /' conftest.$ac_ext >&5
15780
 
15781
        ac_cv_type_int16_t=yes
15782
fi
15783
 
15784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785
else
15786
  $as_echo "$as_me: failed program was:" >&5
15787
sed 's/^/| /' conftest.$ac_ext >&5
15788
 
15789
 
15790
fi
15791
 
15792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793
fi
15794
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
15795
$as_echo "$ac_cv_type_int16_t" >&6; }
15796
if test "x$ac_cv_type_int16_t" = x""yes; then
15797
 
15798 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15799
#define HAVE_INT16_T 1
15800
_ACEOF
15801
 
15802
 
15803
fi
15804 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
15805
$as_echo_n "checking for int32_t... " >&6; }
15806
if test "${ac_cv_type_int32_t+set}" = set; then
15807
  $as_echo_n "(cached) " >&6
15808
else
15809
  ac_cv_type_int32_t=no
15810
cat >conftest.$ac_ext <<_ACEOF
15811
/* confdefs.h.  */
15812
_ACEOF
15813
cat confdefs.h >>conftest.$ac_ext
15814
cat >>conftest.$ac_ext <<_ACEOF
15815
/* end confdefs.h.  */
15816
#include 
15817 19 jeremybenn
 
15818 121 jeremybenn
int
15819
main ()
15820
{
15821
if (sizeof (int32_t))
15822
       return 0;
15823
  ;
15824
  return 0;
15825
}
15826
_ACEOF
15827
rm -f conftest.$ac_objext
15828
if { (ac_try="$ac_compile"
15829
case "(($ac_try" in
15830
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831
  *) ac_try_echo=$ac_try;;
15832
esac
15833
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15834
$as_echo "$ac_try_echo") >&5
15835
  (eval "$ac_compile") 2>conftest.er1
15836
  ac_status=$?
15837
  grep -v '^ *+' conftest.er1 >conftest.err
15838
  rm -f conftest.er1
15839
  cat conftest.err >&5
15840
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841
  (exit $ac_status); } && {
15842
         test -z "$ac_c_werror_flag" ||
15843
         test ! -s conftest.err
15844
       } && test -s conftest.$ac_objext; then
15845
  cat >conftest.$ac_ext <<_ACEOF
15846
/* confdefs.h.  */
15847
_ACEOF
15848
cat confdefs.h >>conftest.$ac_ext
15849
cat >>conftest.$ac_ext <<_ACEOF
15850
/* end confdefs.h.  */
15851
#include 
15852
 
15853
int
15854
main ()
15855
{
15856
if (sizeof ((int32_t)))
15857
          return 0;
15858
  ;
15859
  return 0;
15860
}
15861
_ACEOF
15862
rm -f conftest.$ac_objext
15863
if { (ac_try="$ac_compile"
15864
case "(($ac_try" in
15865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866
  *) ac_try_echo=$ac_try;;
15867
esac
15868
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15869
$as_echo "$ac_try_echo") >&5
15870
  (eval "$ac_compile") 2>conftest.er1
15871
  ac_status=$?
15872
  grep -v '^ *+' conftest.er1 >conftest.err
15873
  rm -f conftest.er1
15874
  cat conftest.err >&5
15875
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876
  (exit $ac_status); } && {
15877
         test -z "$ac_c_werror_flag" ||
15878
         test ! -s conftest.err
15879
       } && test -s conftest.$ac_objext; then
15880
  :
15881
else
15882
  $as_echo "$as_me: failed program was:" >&5
15883
sed 's/^/| /' conftest.$ac_ext >&5
15884
 
15885
        ac_cv_type_int32_t=yes
15886
fi
15887
 
15888
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889
else
15890
  $as_echo "$as_me: failed program was:" >&5
15891
sed 's/^/| /' conftest.$ac_ext >&5
15892
 
15893
 
15894
fi
15895
 
15896
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897
fi
15898
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
15899
$as_echo "$ac_cv_type_int32_t" >&6; }
15900
if test "x$ac_cv_type_int32_t" = x""yes; then
15901
 
15902 82 jeremybenn
cat >>confdefs.h <<_ACEOF
15903
#define HAVE_INT32_T 1
15904
_ACEOF
15905
 
15906
 
15907
fi
15908
 
15909
 
15910 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
15911
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15912
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15913
# This bug is HP SR number 8606223364.
15914 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
15915 82 jeremybenn
$as_echo_n "checking size of char... " >&6; }
15916 121 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then
15917 82 jeremybenn
  $as_echo_n "(cached) " >&6
15918 19 jeremybenn
else
15919 121 jeremybenn
  if test "$cross_compiling" = yes; then
15920
  # Depending upon the size, compute the lo and hi bounds.
15921
cat >conftest.$ac_ext <<_ACEOF
15922
/* confdefs.h.  */
15923
_ACEOF
15924
cat confdefs.h >>conftest.$ac_ext
15925
cat >>conftest.$ac_ext <<_ACEOF
15926
/* end confdefs.h.  */
15927
$ac_includes_default
15928
int
15929
main ()
15930
{
15931
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
15932
test_array [0] = 0
15933 19 jeremybenn
 
15934 121 jeremybenn
  ;
15935
  return 0;
15936
}
15937
_ACEOF
15938
rm -f conftest.$ac_objext
15939
if { (ac_try="$ac_compile"
15940
case "(($ac_try" in
15941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942
  *) ac_try_echo=$ac_try;;
15943
esac
15944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15945
$as_echo "$ac_try_echo") >&5
15946
  (eval "$ac_compile") 2>conftest.er1
15947
  ac_status=$?
15948
  grep -v '^ *+' conftest.er1 >conftest.err
15949
  rm -f conftest.er1
15950
  cat conftest.err >&5
15951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952
  (exit $ac_status); } && {
15953
         test -z "$ac_c_werror_flag" ||
15954
         test ! -s conftest.err
15955
       } && test -s conftest.$ac_objext; then
15956
  ac_lo=0 ac_mid=0
15957
  while :; do
15958
    cat >conftest.$ac_ext <<_ACEOF
15959
/* confdefs.h.  */
15960
_ACEOF
15961
cat confdefs.h >>conftest.$ac_ext
15962
cat >>conftest.$ac_ext <<_ACEOF
15963
/* end confdefs.h.  */
15964
$ac_includes_default
15965
int
15966
main ()
15967
{
15968
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
15969
test_array [0] = 0
15970
 
15971
  ;
15972
  return 0;
15973
}
15974
_ACEOF
15975
rm -f conftest.$ac_objext
15976
if { (ac_try="$ac_compile"
15977
case "(($ac_try" in
15978
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979
  *) ac_try_echo=$ac_try;;
15980
esac
15981
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15982
$as_echo "$ac_try_echo") >&5
15983
  (eval "$ac_compile") 2>conftest.er1
15984
  ac_status=$?
15985
  grep -v '^ *+' conftest.er1 >conftest.err
15986
  rm -f conftest.er1
15987
  cat conftest.err >&5
15988
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989
  (exit $ac_status); } && {
15990
         test -z "$ac_c_werror_flag" ||
15991
         test ! -s conftest.err
15992
       } && test -s conftest.$ac_objext; then
15993
  ac_hi=$ac_mid; break
15994 19 jeremybenn
else
15995 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15996
sed 's/^/| /' conftest.$ac_ext >&5
15997
 
15998
        ac_lo=`expr $ac_mid + 1`
15999
                        if test $ac_lo -le $ac_mid; then
16000
                          ac_lo= ac_hi=
16001
                          break
16002
                        fi
16003
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16004
fi
16005
 
16006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16007
  done
16008
else
16009
  $as_echo "$as_me: failed program was:" >&5
16010
sed 's/^/| /' conftest.$ac_ext >&5
16011
 
16012
        cat >conftest.$ac_ext <<_ACEOF
16013
/* confdefs.h.  */
16014
_ACEOF
16015
cat confdefs.h >>conftest.$ac_ext
16016
cat >>conftest.$ac_ext <<_ACEOF
16017
/* end confdefs.h.  */
16018
$ac_includes_default
16019
int
16020
main ()
16021
{
16022
static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
16023
test_array [0] = 0
16024
 
16025
  ;
16026
  return 0;
16027
}
16028
_ACEOF
16029
rm -f conftest.$ac_objext
16030
if { (ac_try="$ac_compile"
16031
case "(($ac_try" in
16032
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033
  *) ac_try_echo=$ac_try;;
16034
esac
16035
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16036
$as_echo "$ac_try_echo") >&5
16037
  (eval "$ac_compile") 2>conftest.er1
16038
  ac_status=$?
16039
  grep -v '^ *+' conftest.er1 >conftest.err
16040
  rm -f conftest.er1
16041
  cat conftest.err >&5
16042
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043
  (exit $ac_status); } && {
16044
         test -z "$ac_c_werror_flag" ||
16045
         test ! -s conftest.err
16046
       } && test -s conftest.$ac_objext; then
16047
  ac_hi=-1 ac_mid=-1
16048
  while :; do
16049
    cat >conftest.$ac_ext <<_ACEOF
16050
/* confdefs.h.  */
16051
_ACEOF
16052
cat confdefs.h >>conftest.$ac_ext
16053
cat >>conftest.$ac_ext <<_ACEOF
16054
/* end confdefs.h.  */
16055
$ac_includes_default
16056
int
16057
main ()
16058
{
16059
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
16060
test_array [0] = 0
16061
 
16062
  ;
16063
  return 0;
16064
}
16065
_ACEOF
16066
rm -f conftest.$ac_objext
16067
if { (ac_try="$ac_compile"
16068
case "(($ac_try" in
16069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070
  *) ac_try_echo=$ac_try;;
16071
esac
16072
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16073
$as_echo "$ac_try_echo") >&5
16074
  (eval "$ac_compile") 2>conftest.er1
16075
  ac_status=$?
16076
  grep -v '^ *+' conftest.er1 >conftest.err
16077
  rm -f conftest.er1
16078
  cat conftest.err >&5
16079
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080
  (exit $ac_status); } && {
16081
         test -z "$ac_c_werror_flag" ||
16082
         test ! -s conftest.err
16083
       } && test -s conftest.$ac_objext; then
16084
  ac_lo=$ac_mid; break
16085
else
16086
  $as_echo "$as_me: failed program was:" >&5
16087
sed 's/^/| /' conftest.$ac_ext >&5
16088
 
16089
        ac_hi=`expr '(' $ac_mid ')' - 1`
16090
                        if test $ac_mid -le $ac_hi; then
16091
                          ac_lo= ac_hi=
16092
                          break
16093
                        fi
16094
                        ac_mid=`expr 2 '*' $ac_mid`
16095
fi
16096
 
16097
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098
  done
16099
else
16100
  $as_echo "$as_me: failed program was:" >&5
16101
sed 's/^/| /' conftest.$ac_ext >&5
16102
 
16103
        ac_lo= ac_hi=
16104
fi
16105
 
16106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107
fi
16108
 
16109
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16110
# Binary search between lo and hi bounds.
16111
while test "x$ac_lo" != "x$ac_hi"; do
16112
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16113
  cat >conftest.$ac_ext <<_ACEOF
16114
/* confdefs.h.  */
16115
_ACEOF
16116
cat confdefs.h >>conftest.$ac_ext
16117
cat >>conftest.$ac_ext <<_ACEOF
16118
/* end confdefs.h.  */
16119
$ac_includes_default
16120
int
16121
main ()
16122
{
16123
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
16124
test_array [0] = 0
16125
 
16126
  ;
16127
  return 0;
16128
}
16129
_ACEOF
16130
rm -f conftest.$ac_objext
16131
if { (ac_try="$ac_compile"
16132
case "(($ac_try" in
16133
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134
  *) ac_try_echo=$ac_try;;
16135
esac
16136
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16137
$as_echo "$ac_try_echo") >&5
16138
  (eval "$ac_compile") 2>conftest.er1
16139
  ac_status=$?
16140
  grep -v '^ *+' conftest.er1 >conftest.err
16141
  rm -f conftest.er1
16142
  cat conftest.err >&5
16143
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144
  (exit $ac_status); } && {
16145
         test -z "$ac_c_werror_flag" ||
16146
         test ! -s conftest.err
16147
       } && test -s conftest.$ac_objext; then
16148
  ac_hi=$ac_mid
16149
else
16150
  $as_echo "$as_me: failed program was:" >&5
16151
sed 's/^/| /' conftest.$ac_ext >&5
16152
 
16153
        ac_lo=`expr '(' $ac_mid ')' + 1`
16154
fi
16155
 
16156
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16157
done
16158
case $ac_lo in
16159
?*) ac_cv_sizeof_char=$ac_lo;;
16160
'') if test "$ac_cv_type_char" = yes; then
16161
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16162 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16163 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16164
See \`config.log' for more details." >&5
16165
$as_echo "$as_me: error: cannot compute sizeof (char)
16166
See \`config.log' for more details." >&2;}
16167
   { (exit 77); exit 77; }; }; }
16168 19 jeremybenn
   else
16169
     ac_cv_sizeof_char=0
16170 121 jeremybenn
   fi ;;
16171
esac
16172
else
16173
  cat >conftest.$ac_ext <<_ACEOF
16174
/* confdefs.h.  */
16175
_ACEOF
16176
cat confdefs.h >>conftest.$ac_ext
16177
cat >>conftest.$ac_ext <<_ACEOF
16178
/* end confdefs.h.  */
16179
$ac_includes_default
16180
static long int longval () { return (long int) (sizeof (char)); }
16181
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
16182
#include 
16183
#include 
16184
int
16185
main ()
16186
{
16187
 
16188
  FILE *f = fopen ("conftest.val", "w");
16189
  if (! f)
16190
    return 1;
16191
  if (((long int) (sizeof (char))) < 0)
16192
    {
16193
      long int i = longval ();
16194
      if (i != ((long int) (sizeof (char))))
16195
        return 1;
16196
      fprintf (f, "%ld", i);
16197
    }
16198
  else
16199
    {
16200
      unsigned long int i = ulongval ();
16201
      if (i != ((long int) (sizeof (char))))
16202
        return 1;
16203
      fprintf (f, "%lu", i);
16204
    }
16205
  /* Do not output a trailing newline, as this causes \r\n confusion
16206
     on some platforms.  */
16207
  return ferror (f) || fclose (f) != 0;
16208
 
16209
  ;
16210
  return 0;
16211
}
16212
_ACEOF
16213
rm -f conftest$ac_exeext
16214
if { (ac_try="$ac_link"
16215
case "(($ac_try" in
16216
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217
  *) ac_try_echo=$ac_try;;
16218
esac
16219
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16220
$as_echo "$ac_try_echo") >&5
16221
  (eval "$ac_link") 2>&5
16222
  ac_status=$?
16223
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16225
  { (case "(($ac_try" in
16226
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227
  *) ac_try_echo=$ac_try;;
16228
esac
16229
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16230
$as_echo "$ac_try_echo") >&5
16231
  (eval "$ac_try") 2>&5
16232
  ac_status=$?
16233
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234
  (exit $ac_status); }; }; then
16235
  ac_cv_sizeof_char=`cat conftest.val`
16236
else
16237
  $as_echo "$as_me: program exited with status $ac_status" >&5
16238
$as_echo "$as_me: failed program was:" >&5
16239
sed 's/^/| /' conftest.$ac_ext >&5
16240
 
16241
( exit $ac_status )
16242
if test "$ac_cv_type_char" = yes; then
16243
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16244
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16245
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16246
See \`config.log' for more details." >&5
16247
$as_echo "$as_me: error: cannot compute sizeof (char)
16248
See \`config.log' for more details." >&2;}
16249
   { (exit 77); exit 77; }; }; }
16250
   else
16251
     ac_cv_sizeof_char=0
16252 19 jeremybenn
   fi
16253
fi
16254 121 jeremybenn
rm -rf conftest.dSYM
16255
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16256 19 jeremybenn
fi
16257 121 jeremybenn
rm -f conftest.val
16258
fi
16259
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16260 82 jeremybenn
$as_echo "$ac_cv_sizeof_char" >&6; }
16261 19 jeremybenn
 
16262
 
16263
 
16264
cat >>confdefs.h <<_ACEOF
16265
#define SIZEOF_CHAR $ac_cv_sizeof_char
16266
_ACEOF
16267
 
16268
 
16269
# The cast to long int works around a bug in the HP C Compiler
16270
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16271
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16272
# This bug is HP SR number 8606223364.
16273 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
16274 82 jeremybenn
$as_echo_n "checking size of short... " >&6; }
16275 121 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then
16276 82 jeremybenn
  $as_echo_n "(cached) " >&6
16277 19 jeremybenn
else
16278 121 jeremybenn
  if test "$cross_compiling" = yes; then
16279
  # Depending upon the size, compute the lo and hi bounds.
16280
cat >conftest.$ac_ext <<_ACEOF
16281
/* confdefs.h.  */
16282
_ACEOF
16283
cat confdefs.h >>conftest.$ac_ext
16284
cat >>conftest.$ac_ext <<_ACEOF
16285
/* end confdefs.h.  */
16286
$ac_includes_default
16287
int
16288
main ()
16289
{
16290
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
16291
test_array [0] = 0
16292 19 jeremybenn
 
16293 121 jeremybenn
  ;
16294
  return 0;
16295
}
16296
_ACEOF
16297
rm -f conftest.$ac_objext
16298
if { (ac_try="$ac_compile"
16299
case "(($ac_try" in
16300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301
  *) ac_try_echo=$ac_try;;
16302
esac
16303
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16304
$as_echo "$ac_try_echo") >&5
16305
  (eval "$ac_compile") 2>conftest.er1
16306
  ac_status=$?
16307
  grep -v '^ *+' conftest.er1 >conftest.err
16308
  rm -f conftest.er1
16309
  cat conftest.err >&5
16310
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311
  (exit $ac_status); } && {
16312
         test -z "$ac_c_werror_flag" ||
16313
         test ! -s conftest.err
16314
       } && test -s conftest.$ac_objext; then
16315
  ac_lo=0 ac_mid=0
16316
  while :; do
16317
    cat >conftest.$ac_ext <<_ACEOF
16318
/* confdefs.h.  */
16319
_ACEOF
16320
cat confdefs.h >>conftest.$ac_ext
16321
cat >>conftest.$ac_ext <<_ACEOF
16322
/* end confdefs.h.  */
16323
$ac_includes_default
16324
int
16325
main ()
16326
{
16327
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16328
test_array [0] = 0
16329
 
16330
  ;
16331
  return 0;
16332
}
16333
_ACEOF
16334
rm -f conftest.$ac_objext
16335
if { (ac_try="$ac_compile"
16336
case "(($ac_try" in
16337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338
  *) ac_try_echo=$ac_try;;
16339
esac
16340
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16341
$as_echo "$ac_try_echo") >&5
16342
  (eval "$ac_compile") 2>conftest.er1
16343
  ac_status=$?
16344
  grep -v '^ *+' conftest.er1 >conftest.err
16345
  rm -f conftest.er1
16346
  cat conftest.err >&5
16347
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348
  (exit $ac_status); } && {
16349
         test -z "$ac_c_werror_flag" ||
16350
         test ! -s conftest.err
16351
       } && test -s conftest.$ac_objext; then
16352
  ac_hi=$ac_mid; break
16353 19 jeremybenn
else
16354 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16355
sed 's/^/| /' conftest.$ac_ext >&5
16356
 
16357
        ac_lo=`expr $ac_mid + 1`
16358
                        if test $ac_lo -le $ac_mid; then
16359
                          ac_lo= ac_hi=
16360
                          break
16361
                        fi
16362
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16363
fi
16364
 
16365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16366
  done
16367
else
16368
  $as_echo "$as_me: failed program was:" >&5
16369
sed 's/^/| /' conftest.$ac_ext >&5
16370
 
16371
        cat >conftest.$ac_ext <<_ACEOF
16372
/* confdefs.h.  */
16373
_ACEOF
16374
cat confdefs.h >>conftest.$ac_ext
16375
cat >>conftest.$ac_ext <<_ACEOF
16376
/* end confdefs.h.  */
16377
$ac_includes_default
16378
int
16379
main ()
16380
{
16381
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
16382
test_array [0] = 0
16383
 
16384
  ;
16385
  return 0;
16386
}
16387
_ACEOF
16388
rm -f conftest.$ac_objext
16389
if { (ac_try="$ac_compile"
16390
case "(($ac_try" in
16391
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392
  *) ac_try_echo=$ac_try;;
16393
esac
16394
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395
$as_echo "$ac_try_echo") >&5
16396
  (eval "$ac_compile") 2>conftest.er1
16397
  ac_status=$?
16398
  grep -v '^ *+' conftest.er1 >conftest.err
16399
  rm -f conftest.er1
16400
  cat conftest.err >&5
16401
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402
  (exit $ac_status); } && {
16403
         test -z "$ac_c_werror_flag" ||
16404
         test ! -s conftest.err
16405
       } && test -s conftest.$ac_objext; then
16406
  ac_hi=-1 ac_mid=-1
16407
  while :; do
16408
    cat >conftest.$ac_ext <<_ACEOF
16409
/* confdefs.h.  */
16410
_ACEOF
16411
cat confdefs.h >>conftest.$ac_ext
16412
cat >>conftest.$ac_ext <<_ACEOF
16413
/* end confdefs.h.  */
16414
$ac_includes_default
16415
int
16416
main ()
16417
{
16418
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
16419
test_array [0] = 0
16420
 
16421
  ;
16422
  return 0;
16423
}
16424
_ACEOF
16425
rm -f conftest.$ac_objext
16426
if { (ac_try="$ac_compile"
16427
case "(($ac_try" in
16428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429
  *) ac_try_echo=$ac_try;;
16430
esac
16431
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16432
$as_echo "$ac_try_echo") >&5
16433
  (eval "$ac_compile") 2>conftest.er1
16434
  ac_status=$?
16435
  grep -v '^ *+' conftest.er1 >conftest.err
16436
  rm -f conftest.er1
16437
  cat conftest.err >&5
16438
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439
  (exit $ac_status); } && {
16440
         test -z "$ac_c_werror_flag" ||
16441
         test ! -s conftest.err
16442
       } && test -s conftest.$ac_objext; then
16443
  ac_lo=$ac_mid; break
16444
else
16445
  $as_echo "$as_me: failed program was:" >&5
16446
sed 's/^/| /' conftest.$ac_ext >&5
16447
 
16448
        ac_hi=`expr '(' $ac_mid ')' - 1`
16449
                        if test $ac_mid -le $ac_hi; then
16450
                          ac_lo= ac_hi=
16451
                          break
16452
                        fi
16453
                        ac_mid=`expr 2 '*' $ac_mid`
16454
fi
16455
 
16456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16457
  done
16458
else
16459
  $as_echo "$as_me: failed program was:" >&5
16460
sed 's/^/| /' conftest.$ac_ext >&5
16461
 
16462
        ac_lo= ac_hi=
16463
fi
16464
 
16465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466
fi
16467
 
16468
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16469
# Binary search between lo and hi bounds.
16470
while test "x$ac_lo" != "x$ac_hi"; do
16471
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16472
  cat >conftest.$ac_ext <<_ACEOF
16473
/* confdefs.h.  */
16474
_ACEOF
16475
cat confdefs.h >>conftest.$ac_ext
16476
cat >>conftest.$ac_ext <<_ACEOF
16477
/* end confdefs.h.  */
16478
$ac_includes_default
16479
int
16480
main ()
16481
{
16482
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16483
test_array [0] = 0
16484
 
16485
  ;
16486
  return 0;
16487
}
16488
_ACEOF
16489
rm -f conftest.$ac_objext
16490
if { (ac_try="$ac_compile"
16491
case "(($ac_try" in
16492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493
  *) ac_try_echo=$ac_try;;
16494
esac
16495
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16496
$as_echo "$ac_try_echo") >&5
16497
  (eval "$ac_compile") 2>conftest.er1
16498
  ac_status=$?
16499
  grep -v '^ *+' conftest.er1 >conftest.err
16500
  rm -f conftest.er1
16501
  cat conftest.err >&5
16502
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503
  (exit $ac_status); } && {
16504
         test -z "$ac_c_werror_flag" ||
16505
         test ! -s conftest.err
16506
       } && test -s conftest.$ac_objext; then
16507
  ac_hi=$ac_mid
16508
else
16509
  $as_echo "$as_me: failed program was:" >&5
16510
sed 's/^/| /' conftest.$ac_ext >&5
16511
 
16512
        ac_lo=`expr '(' $ac_mid ')' + 1`
16513
fi
16514
 
16515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516
done
16517
case $ac_lo in
16518
?*) ac_cv_sizeof_short=$ac_lo;;
16519
'') if test "$ac_cv_type_short" = yes; then
16520
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16521 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16522 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16523
See \`config.log' for more details." >&5
16524
$as_echo "$as_me: error: cannot compute sizeof (short)
16525
See \`config.log' for more details." >&2;}
16526
   { (exit 77); exit 77; }; }; }
16527 19 jeremybenn
   else
16528
     ac_cv_sizeof_short=0
16529 121 jeremybenn
   fi ;;
16530
esac
16531
else
16532
  cat >conftest.$ac_ext <<_ACEOF
16533
/* confdefs.h.  */
16534
_ACEOF
16535
cat confdefs.h >>conftest.$ac_ext
16536
cat >>conftest.$ac_ext <<_ACEOF
16537
/* end confdefs.h.  */
16538
$ac_includes_default
16539
static long int longval () { return (long int) (sizeof (short)); }
16540
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
16541
#include 
16542
#include 
16543
int
16544
main ()
16545
{
16546
 
16547
  FILE *f = fopen ("conftest.val", "w");
16548
  if (! f)
16549
    return 1;
16550
  if (((long int) (sizeof (short))) < 0)
16551
    {
16552
      long int i = longval ();
16553
      if (i != ((long int) (sizeof (short))))
16554
        return 1;
16555
      fprintf (f, "%ld", i);
16556
    }
16557
  else
16558
    {
16559
      unsigned long int i = ulongval ();
16560
      if (i != ((long int) (sizeof (short))))
16561
        return 1;
16562
      fprintf (f, "%lu", i);
16563
    }
16564
  /* Do not output a trailing newline, as this causes \r\n confusion
16565
     on some platforms.  */
16566
  return ferror (f) || fclose (f) != 0;
16567
 
16568
  ;
16569
  return 0;
16570
}
16571
_ACEOF
16572
rm -f 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16579
$as_echo "$ac_try_echo") >&5
16580
  (eval "$ac_link") 2>&5
16581
  ac_status=$?
16582
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16584
  { (case "(($ac_try" in
16585
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586
  *) ac_try_echo=$ac_try;;
16587
esac
16588
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16589
$as_echo "$ac_try_echo") >&5
16590
  (eval "$ac_try") 2>&5
16591
  ac_status=$?
16592
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593
  (exit $ac_status); }; }; then
16594
  ac_cv_sizeof_short=`cat conftest.val`
16595
else
16596
  $as_echo "$as_me: program exited with status $ac_status" >&5
16597
$as_echo "$as_me: failed program was:" >&5
16598
sed 's/^/| /' conftest.$ac_ext >&5
16599
 
16600
( exit $ac_status )
16601
if test "$ac_cv_type_short" = yes; then
16602
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16603
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16604
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16605
See \`config.log' for more details." >&5
16606
$as_echo "$as_me: error: cannot compute sizeof (short)
16607
See \`config.log' for more details." >&2;}
16608
   { (exit 77); exit 77; }; }; }
16609
   else
16610
     ac_cv_sizeof_short=0
16611 19 jeremybenn
   fi
16612
fi
16613 121 jeremybenn
rm -rf conftest.dSYM
16614
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16615 19 jeremybenn
fi
16616 121 jeremybenn
rm -f conftest.val
16617
fi
16618
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16619 82 jeremybenn
$as_echo "$ac_cv_sizeof_short" >&6; }
16620 19 jeremybenn
 
16621
 
16622
 
16623
cat >>confdefs.h <<_ACEOF
16624
#define SIZEOF_SHORT $ac_cv_sizeof_short
16625
_ACEOF
16626
 
16627
 
16628
# The cast to long int works around a bug in the HP C Compiler
16629
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16630
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16631
# This bug is HP SR number 8606223364.
16632 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
16633 82 jeremybenn
$as_echo_n "checking size of int... " >&6; }
16634 121 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then
16635 82 jeremybenn
  $as_echo_n "(cached) " >&6
16636 19 jeremybenn
else
16637 121 jeremybenn
  if test "$cross_compiling" = yes; then
16638
  # Depending upon the size, compute the lo and hi bounds.
16639
cat >conftest.$ac_ext <<_ACEOF
16640
/* confdefs.h.  */
16641
_ACEOF
16642
cat confdefs.h >>conftest.$ac_ext
16643
cat >>conftest.$ac_ext <<_ACEOF
16644
/* end confdefs.h.  */
16645
$ac_includes_default
16646
int
16647
main ()
16648
{
16649
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
16650
test_array [0] = 0
16651 19 jeremybenn
 
16652 121 jeremybenn
  ;
16653
  return 0;
16654
}
16655
_ACEOF
16656
rm -f conftest.$ac_objext
16657
if { (ac_try="$ac_compile"
16658
case "(($ac_try" in
16659
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660
  *) ac_try_echo=$ac_try;;
16661
esac
16662
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16663
$as_echo "$ac_try_echo") >&5
16664
  (eval "$ac_compile") 2>conftest.er1
16665
  ac_status=$?
16666
  grep -v '^ *+' conftest.er1 >conftest.err
16667
  rm -f conftest.er1
16668
  cat conftest.err >&5
16669
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670
  (exit $ac_status); } && {
16671
         test -z "$ac_c_werror_flag" ||
16672
         test ! -s conftest.err
16673
       } && test -s conftest.$ac_objext; then
16674
  ac_lo=0 ac_mid=0
16675
  while :; do
16676
    cat >conftest.$ac_ext <<_ACEOF
16677
/* confdefs.h.  */
16678
_ACEOF
16679
cat confdefs.h >>conftest.$ac_ext
16680
cat >>conftest.$ac_ext <<_ACEOF
16681
/* end confdefs.h.  */
16682
$ac_includes_default
16683
int
16684
main ()
16685
{
16686
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16687
test_array [0] = 0
16688
 
16689
  ;
16690
  return 0;
16691
}
16692
_ACEOF
16693
rm -f conftest.$ac_objext
16694
if { (ac_try="$ac_compile"
16695
case "(($ac_try" in
16696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697
  *) ac_try_echo=$ac_try;;
16698
esac
16699
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16700
$as_echo "$ac_try_echo") >&5
16701
  (eval "$ac_compile") 2>conftest.er1
16702
  ac_status=$?
16703
  grep -v '^ *+' conftest.er1 >conftest.err
16704
  rm -f conftest.er1
16705
  cat conftest.err >&5
16706
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707
  (exit $ac_status); } && {
16708
         test -z "$ac_c_werror_flag" ||
16709
         test ! -s conftest.err
16710
       } && test -s conftest.$ac_objext; then
16711
  ac_hi=$ac_mid; break
16712 19 jeremybenn
else
16713 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16714
sed 's/^/| /' conftest.$ac_ext >&5
16715
 
16716
        ac_lo=`expr $ac_mid + 1`
16717
                        if test $ac_lo -le $ac_mid; then
16718
                          ac_lo= ac_hi=
16719
                          break
16720
                        fi
16721
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16722
fi
16723
 
16724
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725
  done
16726
else
16727
  $as_echo "$as_me: failed program was:" >&5
16728
sed 's/^/| /' conftest.$ac_ext >&5
16729
 
16730
        cat >conftest.$ac_ext <<_ACEOF
16731
/* confdefs.h.  */
16732
_ACEOF
16733
cat confdefs.h >>conftest.$ac_ext
16734
cat >>conftest.$ac_ext <<_ACEOF
16735
/* end confdefs.h.  */
16736
$ac_includes_default
16737
int
16738
main ()
16739
{
16740
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
16741
test_array [0] = 0
16742
 
16743
  ;
16744
  return 0;
16745
}
16746
_ACEOF
16747
rm -f conftest.$ac_objext
16748
if { (ac_try="$ac_compile"
16749
case "(($ac_try" in
16750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751
  *) ac_try_echo=$ac_try;;
16752
esac
16753
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16754
$as_echo "$ac_try_echo") >&5
16755
  (eval "$ac_compile") 2>conftest.er1
16756
  ac_status=$?
16757
  grep -v '^ *+' conftest.er1 >conftest.err
16758
  rm -f conftest.er1
16759
  cat conftest.err >&5
16760
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761
  (exit $ac_status); } && {
16762
         test -z "$ac_c_werror_flag" ||
16763
         test ! -s conftest.err
16764
       } && test -s conftest.$ac_objext; then
16765
  ac_hi=-1 ac_mid=-1
16766
  while :; do
16767
    cat >conftest.$ac_ext <<_ACEOF
16768
/* confdefs.h.  */
16769
_ACEOF
16770
cat confdefs.h >>conftest.$ac_ext
16771
cat >>conftest.$ac_ext <<_ACEOF
16772
/* end confdefs.h.  */
16773
$ac_includes_default
16774
int
16775
main ()
16776
{
16777
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
16778
test_array [0] = 0
16779
 
16780
  ;
16781
  return 0;
16782
}
16783
_ACEOF
16784
rm -f conftest.$ac_objext
16785
if { (ac_try="$ac_compile"
16786
case "(($ac_try" in
16787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788
  *) ac_try_echo=$ac_try;;
16789
esac
16790
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16791
$as_echo "$ac_try_echo") >&5
16792
  (eval "$ac_compile") 2>conftest.er1
16793
  ac_status=$?
16794
  grep -v '^ *+' conftest.er1 >conftest.err
16795
  rm -f conftest.er1
16796
  cat conftest.err >&5
16797
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798
  (exit $ac_status); } && {
16799
         test -z "$ac_c_werror_flag" ||
16800
         test ! -s conftest.err
16801
       } && test -s conftest.$ac_objext; then
16802
  ac_lo=$ac_mid; break
16803
else
16804
  $as_echo "$as_me: failed program was:" >&5
16805
sed 's/^/| /' conftest.$ac_ext >&5
16806
 
16807
        ac_hi=`expr '(' $ac_mid ')' - 1`
16808
                        if test $ac_mid -le $ac_hi; then
16809
                          ac_lo= ac_hi=
16810
                          break
16811
                        fi
16812
                        ac_mid=`expr 2 '*' $ac_mid`
16813
fi
16814
 
16815
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16816
  done
16817
else
16818
  $as_echo "$as_me: failed program was:" >&5
16819
sed 's/^/| /' conftest.$ac_ext >&5
16820
 
16821
        ac_lo= ac_hi=
16822
fi
16823
 
16824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16825
fi
16826
 
16827
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828
# Binary search between lo and hi bounds.
16829
while test "x$ac_lo" != "x$ac_hi"; do
16830
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16831
  cat >conftest.$ac_ext <<_ACEOF
16832
/* confdefs.h.  */
16833
_ACEOF
16834
cat confdefs.h >>conftest.$ac_ext
16835
cat >>conftest.$ac_ext <<_ACEOF
16836
/* end confdefs.h.  */
16837
$ac_includes_default
16838
int
16839
main ()
16840
{
16841
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16842
test_array [0] = 0
16843
 
16844
  ;
16845
  return 0;
16846
}
16847
_ACEOF
16848
rm -f conftest.$ac_objext
16849
if { (ac_try="$ac_compile"
16850
case "(($ac_try" in
16851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852
  *) ac_try_echo=$ac_try;;
16853
esac
16854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16855
$as_echo "$ac_try_echo") >&5
16856
  (eval "$ac_compile") 2>conftest.er1
16857
  ac_status=$?
16858
  grep -v '^ *+' conftest.er1 >conftest.err
16859
  rm -f conftest.er1
16860
  cat conftest.err >&5
16861
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862
  (exit $ac_status); } && {
16863
         test -z "$ac_c_werror_flag" ||
16864
         test ! -s conftest.err
16865
       } && test -s conftest.$ac_objext; then
16866
  ac_hi=$ac_mid
16867
else
16868
  $as_echo "$as_me: failed program was:" >&5
16869
sed 's/^/| /' conftest.$ac_ext >&5
16870
 
16871
        ac_lo=`expr '(' $ac_mid ')' + 1`
16872
fi
16873
 
16874
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875
done
16876
case $ac_lo in
16877
?*) ac_cv_sizeof_int=$ac_lo;;
16878
'') if test "$ac_cv_type_int" = yes; then
16879
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16880 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16881 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16882
See \`config.log' for more details." >&5
16883
$as_echo "$as_me: error: cannot compute sizeof (int)
16884
See \`config.log' for more details." >&2;}
16885
   { (exit 77); exit 77; }; }; }
16886 19 jeremybenn
   else
16887
     ac_cv_sizeof_int=0
16888 121 jeremybenn
   fi ;;
16889
esac
16890
else
16891
  cat >conftest.$ac_ext <<_ACEOF
16892
/* confdefs.h.  */
16893
_ACEOF
16894
cat confdefs.h >>conftest.$ac_ext
16895
cat >>conftest.$ac_ext <<_ACEOF
16896
/* end confdefs.h.  */
16897
$ac_includes_default
16898
static long int longval () { return (long int) (sizeof (int)); }
16899
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
16900
#include 
16901
#include 
16902
int
16903
main ()
16904
{
16905
 
16906
  FILE *f = fopen ("conftest.val", "w");
16907
  if (! f)
16908
    return 1;
16909
  if (((long int) (sizeof (int))) < 0)
16910
    {
16911
      long int i = longval ();
16912
      if (i != ((long int) (sizeof (int))))
16913
        return 1;
16914
      fprintf (f, "%ld", i);
16915
    }
16916
  else
16917
    {
16918
      unsigned long int i = ulongval ();
16919
      if (i != ((long int) (sizeof (int))))
16920
        return 1;
16921
      fprintf (f, "%lu", i);
16922
    }
16923
  /* Do not output a trailing newline, as this causes \r\n confusion
16924
     on some platforms.  */
16925
  return ferror (f) || fclose (f) != 0;
16926
 
16927
  ;
16928
  return 0;
16929
}
16930
_ACEOF
16931
rm -f conftest$ac_exeext
16932
if { (ac_try="$ac_link"
16933
case "(($ac_try" in
16934
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935
  *) ac_try_echo=$ac_try;;
16936
esac
16937
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16938
$as_echo "$ac_try_echo") >&5
16939
  (eval "$ac_link") 2>&5
16940
  ac_status=$?
16941
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16943
  { (case "(($ac_try" in
16944
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945
  *) ac_try_echo=$ac_try;;
16946
esac
16947
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16948
$as_echo "$ac_try_echo") >&5
16949
  (eval "$ac_try") 2>&5
16950
  ac_status=$?
16951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952
  (exit $ac_status); }; }; then
16953
  ac_cv_sizeof_int=`cat conftest.val`
16954
else
16955
  $as_echo "$as_me: program exited with status $ac_status" >&5
16956
$as_echo "$as_me: failed program was:" >&5
16957
sed 's/^/| /' conftest.$ac_ext >&5
16958
 
16959
( exit $ac_status )
16960
if test "$ac_cv_type_int" = yes; then
16961
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16962
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16963
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16964
See \`config.log' for more details." >&5
16965
$as_echo "$as_me: error: cannot compute sizeof (int)
16966
See \`config.log' for more details." >&2;}
16967
   { (exit 77); exit 77; }; }; }
16968
   else
16969
     ac_cv_sizeof_int=0
16970 19 jeremybenn
   fi
16971
fi
16972 121 jeremybenn
rm -rf conftest.dSYM
16973
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16974 19 jeremybenn
fi
16975 121 jeremybenn
rm -f conftest.val
16976
fi
16977
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16978 82 jeremybenn
$as_echo "$ac_cv_sizeof_int" >&6; }
16979 19 jeremybenn
 
16980
 
16981
 
16982
cat >>confdefs.h <<_ACEOF
16983
#define SIZEOF_INT $ac_cv_sizeof_int
16984
_ACEOF
16985
 
16986
 
16987
# The cast to long int works around a bug in the HP C Compiler
16988
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16989
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16990
# This bug is HP SR number 8606223364.
16991 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
16992 82 jeremybenn
$as_echo_n "checking size of long... " >&6; }
16993 121 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then
16994 82 jeremybenn
  $as_echo_n "(cached) " >&6
16995 19 jeremybenn
else
16996 121 jeremybenn
  if test "$cross_compiling" = yes; then
16997
  # Depending upon the size, compute the lo and hi bounds.
16998
cat >conftest.$ac_ext <<_ACEOF
16999
/* confdefs.h.  */
17000
_ACEOF
17001
cat confdefs.h >>conftest.$ac_ext
17002
cat >>conftest.$ac_ext <<_ACEOF
17003
/* end confdefs.h.  */
17004
$ac_includes_default
17005
int
17006
main ()
17007
{
17008
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
17009
test_array [0] = 0
17010 19 jeremybenn
 
17011 121 jeremybenn
  ;
17012
  return 0;
17013
}
17014
_ACEOF
17015
rm -f conftest.$ac_objext
17016
if { (ac_try="$ac_compile"
17017
case "(($ac_try" in
17018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019
  *) ac_try_echo=$ac_try;;
17020
esac
17021
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17022
$as_echo "$ac_try_echo") >&5
17023
  (eval "$ac_compile") 2>conftest.er1
17024
  ac_status=$?
17025
  grep -v '^ *+' conftest.er1 >conftest.err
17026
  rm -f conftest.er1
17027
  cat conftest.err >&5
17028
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029
  (exit $ac_status); } && {
17030
         test -z "$ac_c_werror_flag" ||
17031
         test ! -s conftest.err
17032
       } && test -s conftest.$ac_objext; then
17033
  ac_lo=0 ac_mid=0
17034
  while :; do
17035
    cat >conftest.$ac_ext <<_ACEOF
17036
/* confdefs.h.  */
17037
_ACEOF
17038
cat confdefs.h >>conftest.$ac_ext
17039
cat >>conftest.$ac_ext <<_ACEOF
17040
/* end confdefs.h.  */
17041
$ac_includes_default
17042
int
17043
main ()
17044
{
17045
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17046
test_array [0] = 0
17047
 
17048
  ;
17049
  return 0;
17050
}
17051
_ACEOF
17052
rm -f conftest.$ac_objext
17053
if { (ac_try="$ac_compile"
17054
case "(($ac_try" in
17055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056
  *) ac_try_echo=$ac_try;;
17057
esac
17058
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17059
$as_echo "$ac_try_echo") >&5
17060
  (eval "$ac_compile") 2>conftest.er1
17061
  ac_status=$?
17062
  grep -v '^ *+' conftest.er1 >conftest.err
17063
  rm -f conftest.er1
17064
  cat conftest.err >&5
17065
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066
  (exit $ac_status); } && {
17067
         test -z "$ac_c_werror_flag" ||
17068
         test ! -s conftest.err
17069
       } && test -s conftest.$ac_objext; then
17070
  ac_hi=$ac_mid; break
17071 19 jeremybenn
else
17072 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17073
sed 's/^/| /' conftest.$ac_ext >&5
17074
 
17075
        ac_lo=`expr $ac_mid + 1`
17076
                        if test $ac_lo -le $ac_mid; then
17077
                          ac_lo= ac_hi=
17078
                          break
17079
                        fi
17080
                        ac_mid=`expr 2 '*' $ac_mid + 1`
17081
fi
17082
 
17083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17084
  done
17085
else
17086
  $as_echo "$as_me: failed program was:" >&5
17087
sed 's/^/| /' conftest.$ac_ext >&5
17088
 
17089
        cat >conftest.$ac_ext <<_ACEOF
17090
/* confdefs.h.  */
17091
_ACEOF
17092
cat confdefs.h >>conftest.$ac_ext
17093
cat >>conftest.$ac_ext <<_ACEOF
17094
/* end confdefs.h.  */
17095
$ac_includes_default
17096
int
17097
main ()
17098
{
17099
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
17100
test_array [0] = 0
17101
 
17102
  ;
17103
  return 0;
17104
}
17105
_ACEOF
17106
rm -f conftest.$ac_objext
17107
if { (ac_try="$ac_compile"
17108
case "(($ac_try" in
17109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110
  *) ac_try_echo=$ac_try;;
17111
esac
17112
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17113
$as_echo "$ac_try_echo") >&5
17114
  (eval "$ac_compile") 2>conftest.er1
17115
  ac_status=$?
17116
  grep -v '^ *+' conftest.er1 >conftest.err
17117
  rm -f conftest.er1
17118
  cat conftest.err >&5
17119
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120
  (exit $ac_status); } && {
17121
         test -z "$ac_c_werror_flag" ||
17122
         test ! -s conftest.err
17123
       } && test -s conftest.$ac_objext; then
17124
  ac_hi=-1 ac_mid=-1
17125
  while :; do
17126
    cat >conftest.$ac_ext <<_ACEOF
17127
/* confdefs.h.  */
17128
_ACEOF
17129
cat confdefs.h >>conftest.$ac_ext
17130
cat >>conftest.$ac_ext <<_ACEOF
17131
/* end confdefs.h.  */
17132
$ac_includes_default
17133
int
17134
main ()
17135
{
17136
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
17137
test_array [0] = 0
17138
 
17139
  ;
17140
  return 0;
17141
}
17142
_ACEOF
17143
rm -f conftest.$ac_objext
17144
if { (ac_try="$ac_compile"
17145
case "(($ac_try" in
17146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147
  *) ac_try_echo=$ac_try;;
17148
esac
17149
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17150
$as_echo "$ac_try_echo") >&5
17151
  (eval "$ac_compile") 2>conftest.er1
17152
  ac_status=$?
17153
  grep -v '^ *+' conftest.er1 >conftest.err
17154
  rm -f conftest.er1
17155
  cat conftest.err >&5
17156
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157
  (exit $ac_status); } && {
17158
         test -z "$ac_c_werror_flag" ||
17159
         test ! -s conftest.err
17160
       } && test -s conftest.$ac_objext; then
17161
  ac_lo=$ac_mid; break
17162
else
17163
  $as_echo "$as_me: failed program was:" >&5
17164
sed 's/^/| /' conftest.$ac_ext >&5
17165
 
17166
        ac_hi=`expr '(' $ac_mid ')' - 1`
17167
                        if test $ac_mid -le $ac_hi; then
17168
                          ac_lo= ac_hi=
17169
                          break
17170
                        fi
17171
                        ac_mid=`expr 2 '*' $ac_mid`
17172
fi
17173
 
17174
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175
  done
17176
else
17177
  $as_echo "$as_me: failed program was:" >&5
17178
sed 's/^/| /' conftest.$ac_ext >&5
17179
 
17180
        ac_lo= ac_hi=
17181
fi
17182
 
17183
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17184
fi
17185
 
17186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17187
# Binary search between lo and hi bounds.
17188
while test "x$ac_lo" != "x$ac_hi"; do
17189
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17190
  cat >conftest.$ac_ext <<_ACEOF
17191
/* confdefs.h.  */
17192
_ACEOF
17193
cat confdefs.h >>conftest.$ac_ext
17194
cat >>conftest.$ac_ext <<_ACEOF
17195
/* end confdefs.h.  */
17196
$ac_includes_default
17197
int
17198
main ()
17199
{
17200
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17201
test_array [0] = 0
17202
 
17203
  ;
17204
  return 0;
17205
}
17206
_ACEOF
17207
rm -f conftest.$ac_objext
17208
if { (ac_try="$ac_compile"
17209
case "(($ac_try" in
17210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211
  *) ac_try_echo=$ac_try;;
17212
esac
17213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17214
$as_echo "$ac_try_echo") >&5
17215
  (eval "$ac_compile") 2>conftest.er1
17216
  ac_status=$?
17217
  grep -v '^ *+' conftest.er1 >conftest.err
17218
  rm -f conftest.er1
17219
  cat conftest.err >&5
17220
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221
  (exit $ac_status); } && {
17222
         test -z "$ac_c_werror_flag" ||
17223
         test ! -s conftest.err
17224
       } && test -s conftest.$ac_objext; then
17225
  ac_hi=$ac_mid
17226
else
17227
  $as_echo "$as_me: failed program was:" >&5
17228
sed 's/^/| /' conftest.$ac_ext >&5
17229
 
17230
        ac_lo=`expr '(' $ac_mid ')' + 1`
17231
fi
17232
 
17233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17234
done
17235
case $ac_lo in
17236
?*) ac_cv_sizeof_long=$ac_lo;;
17237
'') if test "$ac_cv_type_long" = yes; then
17238
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17239 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17240 121 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17241
See \`config.log' for more details." >&5
17242
$as_echo "$as_me: error: cannot compute sizeof (long)
17243
See \`config.log' for more details." >&2;}
17244
   { (exit 77); exit 77; }; }; }
17245 19 jeremybenn
   else
17246
     ac_cv_sizeof_long=0
17247 121 jeremybenn
   fi ;;
17248
esac
17249
else
17250
  cat >conftest.$ac_ext <<_ACEOF
17251
/* confdefs.h.  */
17252
_ACEOF
17253
cat confdefs.h >>conftest.$ac_ext
17254
cat >>conftest.$ac_ext <<_ACEOF
17255
/* end confdefs.h.  */
17256
$ac_includes_default
17257
static long int longval () { return (long int) (sizeof (long)); }
17258
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
17259
#include 
17260
#include 
17261
int
17262
main ()
17263
{
17264
 
17265
  FILE *f = fopen ("conftest.val", "w");
17266
  if (! f)
17267
    return 1;
17268
  if (((long int) (sizeof (long))) < 0)
17269
    {
17270
      long int i = longval ();
17271
      if (i != ((long int) (sizeof (long))))
17272
        return 1;
17273
      fprintf (f, "%ld", i);
17274
    }
17275
  else
17276
    {
17277
      unsigned long int i = ulongval ();
17278
      if (i != ((long int) (sizeof (long))))
17279
        return 1;
17280
      fprintf (f, "%lu", i);
17281
    }
17282
  /* Do not output a trailing newline, as this causes \r\n confusion
17283
     on some platforms.  */
17284
  return ferror (f) || fclose (f) != 0;
17285
 
17286
  ;
17287
  return 0;
17288
}
17289
_ACEOF
17290
rm -f conftest$ac_exeext
17291
if { (ac_try="$ac_link"
17292
case "(($ac_try" in
17293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294
  *) ac_try_echo=$ac_try;;
17295
esac
17296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17297
$as_echo "$ac_try_echo") >&5
17298
  (eval "$ac_link") 2>&5
17299
  ac_status=$?
17300
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17302
  { (case "(($ac_try" in
17303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304
  *) ac_try_echo=$ac_try;;
17305
esac
17306
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17307
$as_echo "$ac_try_echo") >&5
17308
  (eval "$ac_try") 2>&5
17309
  ac_status=$?
17310
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311
  (exit $ac_status); }; }; then
17312
  ac_cv_sizeof_long=`cat conftest.val`
17313
else
17314
  $as_echo "$as_me: program exited with status $ac_status" >&5
17315
$as_echo "$as_me: failed program was:" >&5
17316
sed 's/^/| /' conftest.$ac_ext >&5
17317
 
17318
( exit $ac_status )
17319
if test "$ac_cv_type_long" = yes; then
17320
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17321
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17322
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17323
See \`config.log' for more details." >&5
17324
$as_echo "$as_me: error: cannot compute sizeof (long)
17325
See \`config.log' for more details." >&2;}
17326
   { (exit 77); exit 77; }; }; }
17327
   else
17328
     ac_cv_sizeof_long=0
17329 19 jeremybenn
   fi
17330
fi
17331 121 jeremybenn
rm -rf conftest.dSYM
17332
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17333 19 jeremybenn
fi
17334 121 jeremybenn
rm -f conftest.val
17335
fi
17336
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17337 82 jeremybenn
$as_echo "$ac_cv_sizeof_long" >&6; }
17338 19 jeremybenn
 
17339
 
17340
 
17341
cat >>confdefs.h <<_ACEOF
17342
#define SIZEOF_LONG $ac_cv_sizeof_long
17343
_ACEOF
17344
 
17345
 
17346
 
17347
#Check for compare function type for qsort (needed by some Linuxes)
17348 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for __compar_fn_t" >&5
17349
$as_echo_n "checking for __compar_fn_t... " >&6; }
17350
if test "${ac_cv_type___compar_fn_t+set}" = set; then
17351
  $as_echo_n "(cached) " >&6
17352
else
17353
  ac_cv_type___compar_fn_t=no
17354
cat >conftest.$ac_ext <<_ACEOF
17355
/* confdefs.h.  */
17356
_ACEOF
17357
cat confdefs.h >>conftest.$ac_ext
17358
cat >>conftest.$ac_ext <<_ACEOF
17359
/* end confdefs.h.  */
17360
$ac_includes_default
17361
int
17362
main ()
17363
{
17364
if (sizeof (__compar_fn_t))
17365
       return 0;
17366
  ;
17367
  return 0;
17368
}
17369
_ACEOF
17370
rm -f conftest.$ac_objext
17371
if { (ac_try="$ac_compile"
17372
case "(($ac_try" in
17373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374
  *) ac_try_echo=$ac_try;;
17375
esac
17376
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17377
$as_echo "$ac_try_echo") >&5
17378
  (eval "$ac_compile") 2>conftest.er1
17379
  ac_status=$?
17380
  grep -v '^ *+' conftest.er1 >conftest.err
17381
  rm -f conftest.er1
17382
  cat conftest.err >&5
17383
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384
  (exit $ac_status); } && {
17385
         test -z "$ac_c_werror_flag" ||
17386
         test ! -s conftest.err
17387
       } && test -s conftest.$ac_objext; then
17388
  cat >conftest.$ac_ext <<_ACEOF
17389
/* confdefs.h.  */
17390
_ACEOF
17391
cat confdefs.h >>conftest.$ac_ext
17392
cat >>conftest.$ac_ext <<_ACEOF
17393
/* end confdefs.h.  */
17394
$ac_includes_default
17395
int
17396
main ()
17397
{
17398
if (sizeof ((__compar_fn_t)))
17399
          return 0;
17400
  ;
17401
  return 0;
17402
}
17403
_ACEOF
17404
rm -f conftest.$ac_objext
17405
if { (ac_try="$ac_compile"
17406
case "(($ac_try" in
17407
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408
  *) ac_try_echo=$ac_try;;
17409
esac
17410
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17411
$as_echo "$ac_try_echo") >&5
17412
  (eval "$ac_compile") 2>conftest.er1
17413
  ac_status=$?
17414
  grep -v '^ *+' conftest.er1 >conftest.err
17415
  rm -f conftest.er1
17416
  cat conftest.err >&5
17417
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418
  (exit $ac_status); } && {
17419
         test -z "$ac_c_werror_flag" ||
17420
         test ! -s conftest.err
17421
       } && test -s conftest.$ac_objext; then
17422
  :
17423
else
17424
  $as_echo "$as_me: failed program was:" >&5
17425
sed 's/^/| /' conftest.$ac_ext >&5
17426 19 jeremybenn
 
17427 121 jeremybenn
        ac_cv_type___compar_fn_t=yes
17428
fi
17429
 
17430
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17431
else
17432
  $as_echo "$as_me: failed program was:" >&5
17433
sed 's/^/| /' conftest.$ac_ext >&5
17434
 
17435
 
17436
fi
17437
 
17438
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17439
fi
17440
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type___compar_fn_t" >&5
17441
$as_echo "$ac_cv_type___compar_fn_t" >&6; }
17442
if test "x$ac_cv_type___compar_fn_t" = x""yes; then
17443
 
17444 19 jeremybenn
cat >>confdefs.h <<_ACEOF
17445
#define HAVE___COMPAR_FN_T 1
17446
_ACEOF
17447
 
17448
 
17449
fi
17450
 
17451
 
17452
# check for GNU readline
17453 121 jeremybenn
 
17454
{ $as_echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
17455 82 jeremybenn
$as_echo_n "checking for add_history in -lreadline... " >&6; }
17456 121 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then
17457 82 jeremybenn
  $as_echo_n "(cached) " >&6
17458 19 jeremybenn
else
17459
  ac_check_lib_save_LIBS=$LIBS
17460
LIBS="-lreadline  $LIBS"
17461 121 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
17462
/* confdefs.h.  */
17463
_ACEOF
17464
cat confdefs.h >>conftest.$ac_ext
17465
cat >>conftest.$ac_ext <<_ACEOF
17466 19 jeremybenn
/* end confdefs.h.  */
17467
 
17468
/* Override any GCC internal prototype to avoid an error.
17469
   Use char because int might match the return type of a GCC
17470
   builtin and then its argument prototype would still apply.  */
17471
#ifdef __cplusplus
17472
extern "C"
17473
#endif
17474
char add_history ();
17475
int
17476
main ()
17477
{
17478
return add_history ();
17479
  ;
17480
  return 0;
17481
}
17482
_ACEOF
17483 121 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
17484
if { (ac_try="$ac_link"
17485
case "(($ac_try" in
17486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487
  *) ac_try_echo=$ac_try;;
17488
esac
17489
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17490
$as_echo "$ac_try_echo") >&5
17491
  (eval "$ac_link") 2>conftest.er1
17492
  ac_status=$?
17493
  grep -v '^ *+' conftest.er1 >conftest.err
17494
  rm -f conftest.er1
17495
  cat conftest.err >&5
17496
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497
  (exit $ac_status); } && {
17498
         test -z "$ac_c_werror_flag" ||
17499
         test ! -s conftest.err
17500
       } && test -s conftest$ac_exeext && {
17501
         test "$cross_compiling" = yes ||
17502
         $as_test_x conftest$ac_exeext
17503
       }; then
17504 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
17505
else
17506 121 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17507
sed 's/^/| /' conftest.$ac_ext >&5
17508
 
17509
        ac_cv_lib_readline_add_history=no
17510 19 jeremybenn
fi
17511 121 jeremybenn
 
17512
rm -rf conftest.dSYM
17513
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17514
      conftest$ac_exeext conftest.$ac_ext
17515 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
17516
fi
17517 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
17518 82 jeremybenn
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
17519 121 jeremybenn
if test "x$ac_cv_lib_readline_add_history" = x""yes; then
17520 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
17521
#define HAVE_LIBREADLINE 1
17522
_ACEOF
17523
 
17524
  LIBS="-lreadline $LIBS"
17525
 
17526
fi
17527
 
17528
 
17529
# yuck
17530
case "$host_os" in
17531
aix*)   prefer_curses=yes ;;
17532
esac
17533
 
17534
case "$host_cpu" in
17535
*cray*) LOCAL_CFLAGS=-DCRAY ;;
17536
esac
17537
 
17538
case "$host_os" in
17539
isc*)   LOCAL_CFLAGS=-Disc386 ;;
17540
esac
17541
 
17542
case "$host_os" in
17543
solaris*) LIBS="-lsocket -lnsl" ;;
17544
esac
17545
 
17546
# define options
17547 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable profiling" >&5
17548 82 jeremybenn
$as_echo_n "checking whether to enable profiling... " >&6; }
17549 19 jeremybenn
# Check whether --enable-profiling was given.
17550 121 jeremybenn
if test "${enable_profiling+set}" = set; then
17551 19 jeremybenn
  enableval=$enable_profiling;
17552
    case "$enableval" in
17553
        yes) profile="-pg" ;;
17554
    esac
17555
 
17556
fi
17557
 
17558 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
17559 82 jeremybenn
$as_echo "${enable_profiling-no}" >&6; }
17560 19 jeremybenn
 
17561
execution="1"
17562
 
17563
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17564 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking which execution style to use" >&5
17565 82 jeremybenn
$as_echo_n "checking which execution style to use... " >&6; }
17566 19 jeremybenn
# Check whether --enable-execution was given.
17567 121 jeremybenn
if test "${enable_execution+set}" = set; then
17568 19 jeremybenn
  enableval=$enable_execution;
17569
    case "$enableval" in
17570
    simple)
17571
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17572
      execution="0"
17573 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: simple" >&5
17574 82 jeremybenn
$as_echo "simple" >&6; }
17575 19 jeremybenn
      ;;
17576
    complex)
17577
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17578
      execution="1"
17579 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17580 82 jeremybenn
$as_echo "complex" >&6; }
17581 19 jeremybenn
      ;;
17582
    dynamic)
17583
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17584
      execution="2"
17585 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: dynamic" >&5
17586 82 jeremybenn
$as_echo "dynamic" >&6; }
17587 19 jeremybenn
      ;;
17588
    *)
17589 124 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: \"execution must one of simple/complex/dynamic\"" >&5
17590
$as_echo "$as_me: error: \"execution must one of simple/complex/dynamic\"" >&2;}
17591 121 jeremybenn
   { (exit 1); exit 1; }; }
17592 19 jeremybenn
      ;;
17593
    esac
17594
 
17595
else
17596
 
17597 121 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17598 82 jeremybenn
$as_echo "complex" >&6; }
17599 19 jeremybenn
 
17600
fi
17601
 
17602
 
17603
eth_phy="0"
17604 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
17605 82 jeremybenn
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
17606 19 jeremybenn
# Check whether --enable-ethphy was given.
17607 121 jeremybenn
if test "${enable_ethphy+set}" = set; then
17608 19 jeremybenn
  enableval=$enable_ethphy;
17609
    case "$enableval" in
17610
  no)  eth_phy="0" ;;
17611
        yes) eth_phy="1" ;;
17612
    esac
17613
 
17614
fi
17615
 
17616 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
17617 82 jeremybenn
$as_echo "${enable_eth_phy-no}" >&6; }
17618 19 jeremybenn
 
17619 127 jeremybenn
unsigned_xori="0"
17620
{ $as_echo "$as_me:$LINENO: checking whether l.xori takes an unsigned immediate operand" >&5
17621
$as_echo_n "checking whether l.xori takes an unsigned immediate operand... " >&6; }
17622
# Check whether --enable-unsigned-xori was given.
17623
if test "${enable_unsigned_xori+set}" = set; then
17624
  enableval=$enable_unsigned_xori;
17625
    case "$enableval" in
17626
  no)  unsigned_xori="0" ;;
17627
        yes) unsigned_xori="1" ;;
17628
    esac
17629 19 jeremybenn
 
17630 127 jeremybenn
fi
17631
 
17632
{ $as_echo "$as_me:$LINENO: result: ${enable_unsigned_xori-no}" >&5
17633
$as_echo "${enable_unsigned_xori-no}" >&6; }
17634
 
17635 19 jeremybenn
raw_range_stats="0"
17636 121 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
17637 82 jeremybenn
$as_echo_n "checking whether to use raw range stats... " >&6; }
17638 19 jeremybenn
# Check whether --enable-range_stats was given.
17639 121 jeremybenn
if test "${enable_range_stats+set}" = set; then
17640 19 jeremybenn
  enableval=$enable_range_stats;
17641
    case "$enableval" in
17642
  no)  raw_range_stats="0" ;;
17643
        yes) raw_range_stats="1" simple_execution="1" ;;
17644
    esac
17645
 
17646
fi
17647
 
17648 121 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
17649 82 jeremybenn
$as_echo "${enable_range_stats-no}" >&6; }
17650 19 jeremybenn
 
17651
# check for --enable-debug argument (for argtable2)
17652
# Check whether --enable-debug was given.
17653 121 jeremybenn
if test "${enable_debug+set}" = set; then
17654 19 jeremybenn
  enableval=$enable_debug;
17655
       case $enableval in
17656
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
17657
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
17658
          *)   echo "illegal argument to --enable-debug" & exit 1;;
17659
       esac
17660
 
17661
else
17662
  DEBUGFLAGS="-DNDEBUG"
17663
 
17664
fi
17665
 
17666
 
17667
 
17668
 
17669
cat >>confdefs.h <<_ACEOF
17670
#define RAW_RANGE_STATS $raw_range_stats
17671
_ACEOF
17672
 
17673
 
17674
cat >>confdefs.h <<_ACEOF
17675
#define HAVE_ETH_PHY $eth_phy
17676
_ACEOF
17677
 
17678
 
17679
cat >>confdefs.h <<_ACEOF
17680 127 jeremybenn
#define HAVE_UNSIGNED_XORI $unsigned_xori
17681
_ACEOF
17682
 
17683
 
17684
cat >>confdefs.h <<_ACEOF
17685 19 jeremybenn
#define SIMPLE_EXECUTION $execution == 0
17686
_ACEOF
17687
 
17688
 
17689
cat >>confdefs.h <<_ACEOF
17690
#define COMPLEX_EXECUTION $execution == 1
17691
_ACEOF
17692
 
17693
 
17694
cat >>confdefs.h <<_ACEOF
17695
#define DYNAMIC_EXECUTION $execution == 2
17696
_ACEOF
17697
 
17698
 if test x$execution = x1; then
17699
  GENERATE_NEEDED_TRUE=
17700
  GENERATE_NEEDED_FALSE='#'
17701
else
17702
  GENERATE_NEEDED_TRUE='#'
17703
  GENERATE_NEEDED_FALSE=
17704
fi
17705
 
17706
 if test x$execution = x2; then
17707
  DYNAMIC_EXECUTION_TRUE=
17708
  DYNAMIC_EXECUTION_FALSE='#'
17709
else
17710
  DYNAMIC_EXECUTION_TRUE='#'
17711
  DYNAMIC_EXECUTION_FALSE=
17712
fi
17713
 
17714
 
17715
 
17716
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
17717
 
17718 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
17719
# ourselves. This stops runtest complaining
17720
if test x"$DEJAGNU" = x
17721
then
17722 96 jeremybenn
  DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
17723 90 jeremybenn
fi
17724
 
17725 96 jeremybenn
 
17726
 
17727
# The following line will override the default definition of the srcdir, and
17728
# ensure that short names are used for the test names.
17729
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
17730
 
17731
 
17732 19 jeremybenn
BUILD_DIR=`pwd`
17733
 
17734
 
17735
 
17736
 
17737
 
17738
 
17739
 
17740
 
17741
 
17742
 
17743
 
17744
 
17745
 
17746
 
17747
 
17748
 
17749
 
17750
 
17751 121 jeremybenn
cat >>confdefs.h <<\_ACEOF
17752
#define HAVE_EXECUTION 1
17753
_ACEOF
17754 19 jeremybenn
 
17755
 
17756
# yuck
17757
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
17758
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
17759
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
17760
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
17761
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
17762
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
17763
 
17764
 
17765 97 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 mmu/Makefile peripheral/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile port/Makefile support/Makefile testsuite/Makefile testsuite/config/Makefile testsuite/lib/Makefile testsuite/libsim.tests/Makefile testsuite/or1ksim.tests/Makefile testsuite/test-code/Makefile testsuite/test-code/lib-iftest/Makefile testsuite/test-code/lib-inttest/Makefile testsuite/test-code/lib-jtag/Makefile testsuite/test-code/lib-upcalls/Makefile tick/Makefile vapi/Makefile"
17766 19 jeremybenn
 
17767
 
17768
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
17769
case "$CPU_ARCH" in
17770
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
17771
;;
17772
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
17773
;;
17774
esac
17775
 
17776 82 jeremybenn
# Generate the output
17777
 
17778
 
17779 19 jeremybenn
cat >confcache <<\_ACEOF
17780
# This file is a shell script that caches the results of configure
17781
# tests run on this system so they can be shared between configure
17782
# scripts and configure runs, see configure's option --config-cache.
17783
# It is not useful on other systems.  If it contains results you don't
17784
# want to keep, you may remove or edit it.
17785
#
17786
# config.status only pays attention to the cache file if you give it
17787
# the --recheck option to rerun configure.
17788
#
17789
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17790
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17791
# following values.
17792
 
17793
_ACEOF
17794
 
17795
# The following way of writing the cache mishandles newlines in values,
17796
# but we know of no workaround that is simple, portable, and efficient.
17797
# So, we kill variables containing newlines.
17798
# Ultrix sh set writes to stderr and can't be redirected directly,
17799
# and sets the high bit in the cache file unless we assign to the vars.
17800
(
17801
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17802
    eval ac_val=\$$ac_var
17803
    case $ac_val in #(
17804
    *${as_nl}*)
17805
      case $ac_var in #(
17806 121 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17807 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17808 19 jeremybenn
      esac
17809
      case $ac_var in #(
17810
      _ | IFS | as_nl) ;; #(
17811 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17812 121 jeremybenn
      *) $as_unset $ac_var ;;
17813 19 jeremybenn
      esac ;;
17814
    esac
17815
  done
17816
 
17817
  (set) 2>&1 |
17818
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17819
    *${as_nl}ac_space=\ *)
17820 121 jeremybenn
      # `set' does not quote correctly, so add quotes (double-quote
17821
      # substitution turns \\\\ into \\, and sed turns \\ into \).
17822 19 jeremybenn
      sed -n \
17823
        "s/'/'\\\\''/g;
17824
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17825
      ;; #(
17826
    *)
17827
      # `set' quotes correctly as required by POSIX, so do not add quotes.
17828
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17829
      ;;
17830
    esac |
17831
    sort
17832
) |
17833
  sed '
17834
     /^ac_cv_env_/b end
17835
     t clear
17836
     :clear
17837
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17838
     t end
17839
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17840
     :end' >>confcache
17841
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17842
  if test -w "$cache_file"; then
17843
    test "x$cache_file" != "x/dev/null" &&
17844 121 jeremybenn
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17845 82 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
17846 19 jeremybenn
    cat confcache >$cache_file
17847
  else
17848 121 jeremybenn
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17849 82 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17850 19 jeremybenn
  fi
17851
fi
17852
rm -f confcache
17853
 
17854
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17855
# Let make expand exec_prefix.
17856
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17857
 
17858
DEFS=-DHAVE_CONFIG_H
17859
 
17860
ac_libobjs=
17861
ac_ltlibobjs=
17862
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17863
  # 1. Remove the extension, and $U if already installed.
17864
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17865 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17866 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17867
  #    will be set to the directory where LIBOBJS objects are built.
17868 121 jeremybenn
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17869
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17870 19 jeremybenn
done
17871
LIBOBJS=$ac_libobjs
17872
 
17873
LTLIBOBJS=$ac_ltlibobjs
17874
 
17875
 
17876
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17877 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17878
Usually this means the macro was only invoked conditionally." >&5
17879
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17880
Usually this means the macro was only invoked conditionally." >&2;}
17881
   { (exit 1); exit 1; }; }
17882 19 jeremybenn
fi
17883
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17884 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17885
Usually this means the macro was only invoked conditionally." >&5
17886
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17887
Usually this means the macro was only invoked conditionally." >&2;}
17888
   { (exit 1); exit 1; }; }
17889 19 jeremybenn
fi
17890 82 jeremybenn
 if test -n "$EXEEXT"; then
17891
  am__EXEEXT_TRUE=
17892
  am__EXEEXT_FALSE='#'
17893
else
17894
  am__EXEEXT_TRUE='#'
17895
  am__EXEEXT_FALSE=
17896
fi
17897
 
17898
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17899 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
17900
Usually this means the macro was only invoked conditionally." >&5
17901
$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
17902
Usually this means the macro was only invoked conditionally." >&2;}
17903
   { (exit 1); exit 1; }; }
17904 19 jeremybenn
fi
17905 82 jeremybenn
 
17906 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
17907 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
17908
Usually this means the macro was only invoked conditionally." >&5
17909
$as_echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
17910
Usually this means the macro was only invoked conditionally." >&2;}
17911
   { (exit 1); exit 1; }; }
17912 19 jeremybenn
fi
17913
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
17914 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
17915
Usually this means the macro was only invoked conditionally." >&5
17916
$as_echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
17917
Usually this means the macro was only invoked conditionally." >&2;}
17918
   { (exit 1); exit 1; }; }
17919 19 jeremybenn
fi
17920
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
17921 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
17922
Usually this means the macro was only invoked conditionally." >&5
17923
$as_echo "$as_me: error: conditional \"USE_ARGDATE\" was never defined.
17924
Usually this means the macro was only invoked conditionally." >&2;}
17925
   { (exit 1); exit 1; }; }
17926 19 jeremybenn
fi
17927
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
17928 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
17929
Usually this means the macro was only invoked conditionally." >&5
17930
$as_echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
17931
Usually this means the macro was only invoked conditionally." >&2;}
17932
   { (exit 1); exit 1; }; }
17933 19 jeremybenn
fi
17934
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
17935 121 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
17936
Usually this means the macro was only invoked conditionally." >&5
17937
$as_echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
17938
Usually this means the macro was only invoked conditionally." >&2;}
17939
   { (exit 1); exit 1; }; }
17940 19 jeremybenn
fi
17941
 
17942
: ${CONFIG_STATUS=./config.status}
17943 82 jeremybenn
ac_write_fail=0
17944 19 jeremybenn
ac_clean_files_save=$ac_clean_files
17945
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17946 121 jeremybenn
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17947 82 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17948 121 jeremybenn
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17949 19 jeremybenn
#! $SHELL
17950
# Generated by $as_me.
17951
# Run this file to recreate the current configuration.
17952
# Compiler output produced by configure, useful for debugging
17953
# configure, is in config.log if it exists.
17954
 
17955
debug=false
17956
ac_cs_recheck=false
17957
ac_cs_silent=false
17958
SHELL=\${CONFIG_SHELL-$SHELL}
17959 121 jeremybenn
_ACEOF
17960 19 jeremybenn
 
17961 121 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17962
## --------------------- ##
17963
## M4sh Initialization.  ##
17964
## --------------------- ##
17965
 
17966 19 jeremybenn
# Be more Bourne compatible
17967
DUALCASE=1; export DUALCASE # for MKS sh
17968 121 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17969 19 jeremybenn
  emulate sh
17970
  NULLCMD=:
17971 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17972 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
17973
  alias -g '${1+"$@"}'='"$@"'
17974
  setopt NO_GLOB_SUBST
17975
else
17976 121 jeremybenn
  case `(set -o) 2>/dev/null` in
17977
  *posix*) set -o posix ;;
17978 19 jeremybenn
esac
17979 121 jeremybenn
 
17980 19 jeremybenn
fi
17981
 
17982
 
17983 121 jeremybenn
 
17984
 
17985
# PATH needs CR
17986
# Avoid depending upon Character Ranges.
17987
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17988
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17989
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17990
as_cr_digits='0123456789'
17991
as_cr_alnum=$as_cr_Letters$as_cr_digits
17992
 
17993 82 jeremybenn
as_nl='
17994
'
17995
export as_nl
17996
# Printing a long string crashes Solaris 7 /usr/bin/printf.
17997
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17998
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17999
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18000 121 jeremybenn
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18001 82 jeremybenn
  as_echo='printf %s\n'
18002
  as_echo_n='printf %s'
18003
else
18004
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18005
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18006
    as_echo_n='/usr/ucb/echo -n'
18007 19 jeremybenn
  else
18008 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18009
    as_echo_n_body='eval
18010
      arg=$1;
18011 121 jeremybenn
      case $arg in
18012 82 jeremybenn
      *"$as_nl"*)
18013
        expr "X$arg" : "X\\(.*\\)$as_nl";
18014
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18015
      esac;
18016
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18017
    '
18018
    export as_echo_n_body
18019
    as_echo_n='sh -c $as_echo_n_body as_echo'
18020 19 jeremybenn
  fi
18021 82 jeremybenn
  export as_echo_body
18022
  as_echo='sh -c $as_echo_body as_echo'
18023 19 jeremybenn
fi
18024
 
18025 82 jeremybenn
# The user is always right.
18026
if test "${PATH_SEPARATOR+set}" != set; then
18027
  PATH_SEPARATOR=:
18028
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18029
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18030
      PATH_SEPARATOR=';'
18031
  }
18032
fi
18033
 
18034 121 jeremybenn
# Support unset when possible.
18035
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18036
  as_unset=unset
18037
else
18038
  as_unset=false
18039
fi
18040 19 jeremybenn
 
18041 121 jeremybenn
 
18042 19 jeremybenn
# IFS
18043
# We need space, tab and new line, in precisely that order.  Quoting is
18044
# there to prevent editors from complaining about space-tab.
18045
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18046
# splitting by setting IFS to empty value.)
18047
IFS=" ""        $as_nl"
18048
 
18049
# Find who we are.  Look in the path if we contain no directory separator.
18050 121 jeremybenn
case $0 in
18051 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
18052
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18053
for as_dir in $PATH
18054
do
18055
  IFS=$as_save_IFS
18056
  test -z "$as_dir" && as_dir=.
18057 121 jeremybenn
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18058
done
18059 19 jeremybenn
IFS=$as_save_IFS
18060
 
18061
     ;;
18062
esac
18063
# We did not find ourselves, most probably we were run as `sh COMMAND'
18064
# in which case we are not to be found in the path.
18065
if test "x$as_myself" = x; then
18066
  as_myself=$0
18067
fi
18068
if test ! -f "$as_myself"; then
18069 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18070 121 jeremybenn
  { (exit 1); exit 1; }
18071 19 jeremybenn
fi
18072
 
18073 121 jeremybenn
# Work around bugs in pre-3.0 UWIN ksh.
18074
for as_var in ENV MAIL MAILPATH
18075
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18076 19 jeremybenn
done
18077
PS1='$ '
18078
PS2='> '
18079
PS4='+ '
18080
 
18081
# NLS nuisances.
18082 82 jeremybenn
LC_ALL=C
18083
export LC_ALL
18084
LANGUAGE=C
18085
export LANGUAGE
18086 19 jeremybenn
 
18087 121 jeremybenn
# Required to use basename.
18088 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
18089
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18090
  as_expr=expr
18091
else
18092
  as_expr=false
18093
fi
18094
 
18095
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18096
  as_basename=basename
18097
else
18098
  as_basename=false
18099
fi
18100
 
18101
 
18102 121 jeremybenn
# Name of the executable.
18103 19 jeremybenn
as_me=`$as_basename -- "$0" ||
18104
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18105
         X"$0" : 'X\(//\)$' \| \
18106
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18107 82 jeremybenn
$as_echo X/"$0" |
18108 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
18109
            s//\1/
18110
            q
18111
          }
18112
          /^X\/\(\/\/\)$/{
18113
            s//\1/
18114
            q
18115
          }
18116
          /^X\/\(\/\).*/{
18117
            s//\1/
18118
            q
18119
          }
18120
          s/.*/./; q'`
18121
 
18122 121 jeremybenn
# CDPATH.
18123
$as_unset CDPATH
18124 19 jeremybenn
 
18125 121 jeremybenn
 
18126
 
18127
  as_lineno_1=$LINENO
18128
  as_lineno_2=$LINENO
18129
  test "x$as_lineno_1" != "x$as_lineno_2" &&
18130
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18131
 
18132
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18133
  # uniformly replaced by the line number.  The first 'sed' inserts a
18134
  # line-number line after each line using $LINENO; the second 'sed'
18135
  # does the real work.  The second script uses 'N' to pair each
18136
  # line-number line with the line containing $LINENO, and appends
18137
  # trailing '-' during substitution so that $LINENO is not a special
18138
  # case at line end.
18139
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18140
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18141
  # E. McMahon (1931-1989) for sed's syntax.  :-)
18142
  sed -n '
18143
    p
18144
    /[$]LINENO/=
18145
  ' <$as_myself |
18146
    sed '
18147
      s/[$]LINENO.*/&-/
18148
      t lineno
18149
      b
18150
      :lineno
18151
      N
18152
      :loop
18153
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18154
      t loop
18155
      s/-\n.*//
18156
    ' >$as_me.lineno &&
18157
  chmod +x "$as_me.lineno" ||
18158
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18159
   { (exit 1); exit 1; }; }
18160
 
18161
  # Don't try to exec as it changes $[0], causing all sort of problems
18162
  # (the dirname of $[0] is not the place where we might find the
18163
  # original and so on.  Autoconf is especially sensitive to this).
18164
  . "./$as_me.lineno"
18165
  # Exit status is that of the last command.
18166
  exit
18167
}
18168
 
18169
 
18170
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18171
  as_dirname=dirname
18172
else
18173
  as_dirname=false
18174
fi
18175
 
18176 19 jeremybenn
ECHO_C= ECHO_N= ECHO_T=
18177 121 jeremybenn
case `echo -n x` in
18178 19 jeremybenn
-n*)
18179 121 jeremybenn
  case `echo 'x\c'` in
18180 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18181 121 jeremybenn
  *)   ECHO_C='\c';;
18182 19 jeremybenn
  esac;;
18183
*)
18184
  ECHO_N='-n';;
18185
esac
18186 121 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
18187
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18188
  as_expr=expr
18189
else
18190
  as_expr=false
18191
fi
18192 19 jeremybenn
 
18193
rm -f conf$$ conf$$.exe conf$$.file
18194
if test -d conf$$.dir; then
18195
  rm -f conf$$.dir/conf$$.file
18196
else
18197
  rm -f conf$$.dir
18198 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
18199 19 jeremybenn
fi
18200 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
18201
  if ln -s conf$$.file conf$$ 2>/dev/null; then
18202
    as_ln_s='ln -s'
18203
    # ... but there are two gotchas:
18204
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18205
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18206
    # In both cases, we have to default to `cp -p'.
18207
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18208
      as_ln_s='cp -p'
18209
  elif ln conf$$.file conf$$ 2>/dev/null; then
18210
    as_ln_s=ln
18211
  else
18212 19 jeremybenn
    as_ln_s='cp -p'
18213 82 jeremybenn
  fi
18214 19 jeremybenn
else
18215
  as_ln_s='cp -p'
18216
fi
18217
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18218
rmdir conf$$.dir 2>/dev/null
18219
 
18220
if mkdir -p . 2>/dev/null; then
18221 121 jeremybenn
  as_mkdir_p=:
18222 19 jeremybenn
else
18223
  test -d ./-p && rmdir ./-p
18224
  as_mkdir_p=false
18225
fi
18226
 
18227
if test -x / >/dev/null 2>&1; then
18228
  as_test_x='test -x'
18229
else
18230
  if ls -dL / >/dev/null 2>&1; then
18231
    as_ls_L_option=L
18232
  else
18233
    as_ls_L_option=
18234
  fi
18235
  as_test_x='
18236
    eval sh -c '\''
18237
      if test -d "$1"; then
18238 82 jeremybenn
        test -d "$1/.";
18239 19 jeremybenn
      else
18240 121 jeremybenn
        case $1 in
18241 82 jeremybenn
        -*)set "./$1";;
18242 19 jeremybenn
        esac;
18243 121 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18244 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
18245
    '\'' sh
18246
  '
18247
fi
18248
as_executable_p=$as_test_x
18249
 
18250
# Sed expression to map a string onto a valid CPP name.
18251
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18252
 
18253
# Sed expression to map a string onto a valid variable name.
18254
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18255
 
18256
 
18257
exec 6>&1
18258
 
18259 121 jeremybenn
# Save the log message, to keep $[0] and so on meaningful, and to
18260 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
18261
# values after options handling.
18262
ac_log="
18263 143 jeremybenn
This file was extended by or1ksim $as_me 2010-06-31, which was
18264 121 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
18265 19 jeremybenn
 
18266
  CONFIG_FILES    = $CONFIG_FILES
18267
  CONFIG_HEADERS  = $CONFIG_HEADERS
18268
  CONFIG_LINKS    = $CONFIG_LINKS
18269
  CONFIG_COMMANDS = $CONFIG_COMMANDS
18270
  $ $0 $@
18271
 
18272
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18273
"
18274
 
18275
_ACEOF
18276
 
18277 82 jeremybenn
case $ac_config_files in *"
18278
"*) set x $ac_config_files; shift; ac_config_files=$*;;
18279
esac
18280
 
18281
case $ac_config_headers in *"
18282
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18283
esac
18284
 
18285
 
18286
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18287 19 jeremybenn
# Files that config.status was made for.
18288
config_files="$ac_config_files"
18289
config_headers="$ac_config_headers"
18290
config_commands="$ac_config_commands"
18291
 
18292
_ACEOF
18293
 
18294 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18295 19 jeremybenn
ac_cs_usage="\
18296 121 jeremybenn
\`$as_me' instantiates files from templates according to the
18297
current configuration.
18298 19 jeremybenn
 
18299 121 jeremybenn
Usage: $0 [OPTION]... [FILE]...
18300 19 jeremybenn
 
18301
  -h, --help       print this help, then exit
18302
  -V, --version    print version number and configuration settings, then exit
18303 82 jeremybenn
  -q, --quiet, --silent
18304
                   do not print progress messages
18305 19 jeremybenn
  -d, --debug      don't remove temporary files
18306
      --recheck    update $as_me by reconfiguring in the same conditions
18307 82 jeremybenn
      --file=FILE[:TEMPLATE]
18308
                   instantiate the configuration file FILE
18309
      --header=FILE[:TEMPLATE]
18310
                   instantiate the configuration header FILE
18311 19 jeremybenn
 
18312
Configuration files:
18313
$config_files
18314
 
18315
Configuration headers:
18316
$config_headers
18317
 
18318
Configuration commands:
18319
$config_commands
18320
 
18321 121 jeremybenn
Report bugs to ."
18322 19 jeremybenn
 
18323
_ACEOF
18324 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18325 19 jeremybenn
ac_cs_version="\\
18326 143 jeremybenn
or1ksim config.status 2010-06-31
18327 121 jeremybenn
configured by $0, generated by GNU Autoconf 2.63,
18328
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18329 19 jeremybenn
 
18330 121 jeremybenn
Copyright (C) 2008 Free Software Foundation, Inc.
18331 19 jeremybenn
This config.status script is free software; the Free Software Foundation
18332
gives unlimited permission to copy, distribute and modify it."
18333
 
18334
ac_pwd='$ac_pwd'
18335
srcdir='$srcdir'
18336
INSTALL='$INSTALL'
18337
MKDIR_P='$MKDIR_P'
18338 82 jeremybenn
AWK='$AWK'
18339
test -n "\$AWK" || AWK=awk
18340 19 jeremybenn
_ACEOF
18341
 
18342 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18343
# The default lists apply if the user does not specify any file.
18344 19 jeremybenn
ac_need_defaults=:
18345
while test $# != 0
18346
do
18347
  case $1 in
18348
  --*=*)
18349
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18350
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18351
    ac_shift=:
18352
    ;;
18353
  *)
18354
    ac_option=$1
18355
    ac_optarg=$2
18356
    ac_shift=shift
18357
    ;;
18358
  esac
18359
 
18360
  case $ac_option in
18361
  # Handling of the options.
18362
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18363
    ac_cs_recheck=: ;;
18364
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18365 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
18366 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
18367
    debug=: ;;
18368
  --file | --fil | --fi | --f )
18369
    $ac_shift
18370 82 jeremybenn
    case $ac_optarg in
18371
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18372
    esac
18373 121 jeremybenn
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18374 19 jeremybenn
    ac_need_defaults=false;;
18375
  --header | --heade | --head | --hea )
18376
    $ac_shift
18377 82 jeremybenn
    case $ac_optarg in
18378
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18379
    esac
18380 121 jeremybenn
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18381 19 jeremybenn
    ac_need_defaults=false;;
18382
  --he | --h)
18383
    # Conflict between --help and --header
18384 121 jeremybenn
    { $as_echo "$as_me: error: ambiguous option: $1
18385
Try \`$0 --help' for more information." >&2
18386
   { (exit 1); exit 1; }; };;
18387 19 jeremybenn
  --help | --hel | -h )
18388 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
18389 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18390
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18391
    ac_cs_silent=: ;;
18392
 
18393
  # This is an error.
18394 121 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $1
18395
Try \`$0 --help' for more information." >&2
18396
   { (exit 1); exit 1; }; } ;;
18397 19 jeremybenn
 
18398 121 jeremybenn
  *) ac_config_targets="$ac_config_targets $1"
18399 19 jeremybenn
     ac_need_defaults=false ;;
18400
 
18401
  esac
18402
  shift
18403
done
18404
 
18405
ac_configure_extra_args=
18406
 
18407
if $ac_cs_silent; then
18408
  exec 6>/dev/null
18409
  ac_configure_extra_args="$ac_configure_extra_args --silent"
18410
fi
18411
 
18412
_ACEOF
18413 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18414 19 jeremybenn
if \$ac_cs_recheck; then
18415 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18416
  shift
18417
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18418
  CONFIG_SHELL='$SHELL'
18419 19 jeremybenn
  export CONFIG_SHELL
18420 82 jeremybenn
  exec "\$@"
18421 19 jeremybenn
fi
18422
 
18423
_ACEOF
18424 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18425 19 jeremybenn
exec 5>>config.log
18426
{
18427
  echo
18428
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18429
## Running $as_me. ##
18430
_ASBOX
18431 82 jeremybenn
  $as_echo "$ac_log"
18432 19 jeremybenn
} >&5
18433
 
18434
_ACEOF
18435 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18436 19 jeremybenn
#
18437
# INIT-COMMANDS
18438
#
18439 82 jeremybenn
 
18440
 
18441
# The HP-UX ksh and POSIX shell print the target directory to stdout
18442
# if CDPATH is set.
18443
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18444
 
18445
sed_quote_subst='$sed_quote_subst'
18446
double_quote_subst='$double_quote_subst'
18447
delay_variable_subst='$delay_variable_subst'
18448
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18449
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18450
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18451
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18452
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18453
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18454
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18455
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18456
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18457
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18458
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18459
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18460
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18461
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18462
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18463
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18464
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18465
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18466
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18467
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18468
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18469
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18470
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18471
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18472
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18473
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18474
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18475
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18476
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18477
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18478
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18479
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18480
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18481
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18482
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18483
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18484
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18485
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18486
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18487
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18488
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18489
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18490
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18491
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18492
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18493
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18494
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18495
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18496
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18497
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18498
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18499
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18500
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18501
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18502
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18503
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18504
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18505
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18506
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18507
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18508
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18509
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18510
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18511
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18512
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18513
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18514
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18515
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18516
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18517
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18518
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18519
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18520
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18521
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18522
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18523
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18524
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18525
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18526
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18527
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18528
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18529
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18530
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18531
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18532
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18533
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18534
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18535
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18536
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18537
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18538
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18539
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18540
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18541
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18542
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18543
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18544
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18545
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18546
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18547
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18548
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18549
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18550
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18551
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18552
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18553
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18554
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18555
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18556
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18557
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18558
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18559
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18560
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18561
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18562
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18563
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18564
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18565
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18566
 
18567
LTCC='$LTCC'
18568
LTCFLAGS='$LTCFLAGS'
18569
compiler='$compiler_DEFAULT'
18570
 
18571
# Quote evaled strings.
18572
for var in SED \
18573
GREP \
18574
EGREP \
18575
FGREP \
18576
LD \
18577
NM \
18578
LN_S \
18579
lt_SP2NL \
18580
lt_NL2SP \
18581
reload_flag \
18582
OBJDUMP \
18583
deplibs_check_method \
18584
file_magic_cmd \
18585
AR \
18586
AR_FLAGS \
18587
STRIP \
18588
RANLIB \
18589
CC \
18590
CFLAGS \
18591
compiler \
18592
lt_cv_sys_global_symbol_pipe \
18593
lt_cv_sys_global_symbol_to_cdecl \
18594
lt_cv_sys_global_symbol_to_c_name_address \
18595
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18596
SHELL \
18597
ECHO \
18598
lt_prog_compiler_no_builtin_flag \
18599
lt_prog_compiler_wl \
18600
lt_prog_compiler_pic \
18601
lt_prog_compiler_static \
18602
lt_cv_prog_compiler_c_o \
18603
need_locks \
18604
DSYMUTIL \
18605
NMEDIT \
18606
LIPO \
18607
OTOOL \
18608
OTOOL64 \
18609
shrext_cmds \
18610
export_dynamic_flag_spec \
18611
whole_archive_flag_spec \
18612
compiler_needs_object \
18613
with_gnu_ld \
18614
allow_undefined_flag \
18615
no_undefined_flag \
18616
hardcode_libdir_flag_spec \
18617
hardcode_libdir_flag_spec_ld \
18618
hardcode_libdir_separator \
18619
fix_srcfile_path \
18620
exclude_expsyms \
18621
include_expsyms \
18622
file_list_spec \
18623
variables_saved_for_relink \
18624
libname_spec \
18625
library_names_spec \
18626
soname_spec \
18627
finish_eval \
18628
old_striplib \
18629
striplib; do
18630
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18631
    *[\\\\\\\`\\"\\\$]*)
18632
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18633
      ;;
18634
    *)
18635
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18636
      ;;
18637
    esac
18638
done
18639
 
18640
# Double-quote double-evaled strings.
18641
for var in reload_cmds \
18642
old_postinstall_cmds \
18643
old_postuninstall_cmds \
18644
old_archive_cmds \
18645
extract_expsyms_cmds \
18646
old_archive_from_new_cmds \
18647
old_archive_from_expsyms_cmds \
18648
archive_cmds \
18649
archive_expsym_cmds \
18650
module_cmds \
18651
module_expsym_cmds \
18652
export_symbols_cmds \
18653
prelink_cmds \
18654
postinstall_cmds \
18655
postuninstall_cmds \
18656
finish_cmds \
18657
sys_lib_search_path_spec \
18658
sys_lib_dlsearch_path_spec; do
18659
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18660
    *[\\\\\\\`\\"\\\$]*)
18661
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18662
      ;;
18663
    *)
18664
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18665
      ;;
18666
    esac
18667
done
18668
 
18669
# Fix-up fallback echo if it was mangled by the above quoting rules.
18670
case \$lt_ECHO in
18671
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18672
  ;;
18673
esac
18674
 
18675
ac_aux_dir='$ac_aux_dir'
18676
xsi_shell='$xsi_shell'
18677
lt_shell_append='$lt_shell_append'
18678
 
18679
# See if we are running on zsh, and set the options which allow our
18680
# commands through without removal of \ escapes INIT.
18681
if test -n "\${ZSH_VERSION+set}" ; then
18682
   setopt NO_GLOB_SUBST
18683
fi
18684
 
18685
 
18686
    PACKAGE='$PACKAGE'
18687
    VERSION='$VERSION'
18688
    TIMESTAMP='$TIMESTAMP'
18689
    RM='$RM'
18690
    ofile='$ofile'
18691
 
18692
 
18693
 
18694 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18695
 
18696
_ACEOF
18697
 
18698 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18699 19 jeremybenn
 
18700
# Handling of arguments.
18701
for ac_config_target in $ac_config_targets
18702
do
18703
  case $ac_config_target in
18704 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18705 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18706
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18707
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18708
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
18709
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
18710
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
18711
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
18712
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
18713
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
18714
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
18715
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
18716
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18717
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
18718
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
18719
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
18720
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
18721
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
18722 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
18723
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
18724
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18725
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
18726
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
18727
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
18728
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
18729
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
18730
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
18731 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
18732 97 jeremybenn
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
18733 93 jeremybenn
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
18734 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
18735 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
18736
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
18737
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
18738
 
18739 121 jeremybenn
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18740
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18741
   { (exit 1); exit 1; }; };;
18742 19 jeremybenn
  esac
18743
done
18744
 
18745
 
18746
# If the user did not use the arguments to specify the items to instantiate,
18747
# then the envvar interface is used.  Set only those that are not.
18748
# We use the long form for the default assignment because of an extremely
18749
# bizarre bug on SunOS 4.1.3.
18750
if $ac_need_defaults; then
18751
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18752
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18753
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18754
fi
18755
 
18756
# Have a temporary directory for convenience.  Make it in the build tree
18757
# simply because there is no reason against having it here, and in addition,
18758
# creating and moving files from /tmp can sometimes cause problems.
18759
# Hook for its removal unless debugging.
18760
# Note that there is a small window in which the directory will not be cleaned:
18761
# after its creation but before its name has been assigned to `$tmp'.
18762
$debug ||
18763
{
18764
  tmp=
18765
  trap 'exit_status=$?
18766
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18767
' 0
18768 121 jeremybenn
  trap '{ (exit 1); exit 1; }' 1 2 13 15
18769 19 jeremybenn
}
18770
# Create a (secure) tmp directory for tmp files.
18771
 
18772
{
18773
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18774
  test -n "$tmp" && test -d "$tmp"
18775
}  ||
18776
{
18777
  tmp=./conf$$-$RANDOM
18778
  (umask 077 && mkdir "$tmp")
18779 121 jeremybenn
} ||
18780
{
18781
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
18782
   { (exit 1); exit 1; }
18783
}
18784 19 jeremybenn
 
18785 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
18786
# No need to generate them if there are no CONFIG_FILES.
18787
# This happens for instance with `./config.status config.h'.
18788 19 jeremybenn
if test -n "$CONFIG_FILES"; then
18789
 
18790 82 jeremybenn
 
18791 121 jeremybenn
ac_cr='
'
18792
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
18793 82 jeremybenn
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18794
  ac_cs_awk_cr='\\r'
18795 121 jeremybenn
else
18796 82 jeremybenn
  ac_cs_awk_cr=$ac_cr
18797
fi
18798
18799
 
18800
_ACEOF
18801 19 jeremybenn
18802
 
18803
 
18804 82 jeremybenn
  echo "cat >conf$$subs.awk <<_ACEOF" &&
18805
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18806
  echo "_ACEOF"
18807
} >conf$$subs.sh ||
18808
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18809 121 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18810
   { (exit 1); exit 1; }; }
18811
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18812 82 jeremybenn
ac_delim='%!_!# '
18813 19 jeremybenn
for ac_last_try in false false false false false :; do
18814
  . ./conf$$subs.sh ||
18815 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18816 121 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18817
   { (exit 1); exit 1; }; }
18818
18819 19 jeremybenn
 
18820 82 jeremybenn
  if test $ac_delim_n = $ac_delim_num; then
18821
    break
18822 19 jeremybenn
  elif $ac_last_try; then
18823
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18824 121 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18825
   { (exit 1); exit 1; }; }
18826
  else
18827 19 jeremybenn
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18828
  fi
18829
done
18830
rm -f conf$$subs.sh
18831 82 jeremybenn
18832 19 jeremybenn
 
18833 82 jeremybenn
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18834
_ACEOF
18835 19 jeremybenn
sed -n '
18836 82 jeremybenn
h
18837
s/^/S["/; s/!.*/"]=/
18838
p
18839
g
18840
s/^[^!]*!//
18841
:repl
18842
t repl
18843
s/'"$ac_delim"'$//
18844
t delim
18845
:nl
18846
h
18847
s/\(.\{148\}\).*/\1/
18848 121 jeremybenn
t more1
18849 82 jeremybenn
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18850
p
18851
n
18852
b repl
18853
:more1
18854
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18855
p
18856
g
18857
s/.\{148\}//
18858
t nl
18859
:delim
18860
h
18861
s/\(.\{148\}\).*/\1/
18862 121 jeremybenn
t more2
18863 82 jeremybenn
s/["\\]/\\&/g; s/^/"/; s/$/"/
18864
p
18865
b
18866
:more2
18867
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18868
p
18869
g
18870
s/.\{148\}//
18871
t delim
18872
' 
18873
/^[^""]/{
18874
  N
18875
  s/\n//
18876
}
18877
' >>$CONFIG_STATUS || ac_write_fail=1
18878
rm -f conf$$subs.awk
18879
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18880
_ACAWK
18881
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18882
  for (key in S) S_is_set[key] = 1
18883
  FS = ""
18884
18885 19 jeremybenn
 
18886 82 jeremybenn
{
18887
  line = $ 0
18888
  nfields = split(line, field, "@")
18889
  substed = 0
18890
  len = length(field[1])
18891
  for (i = 2; i < nfields; i++) {
18892
    key = field[i]
18893
    keylen = length(key)
18894
    if (S_is_set[key]) {
18895
      value = S[key]
18896
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18897
      len += length(value) + length(field[++i])
18898
      substed = 1
18899
    } else
18900
      len += 1 + keylen
18901
  }
18902
18903 19 jeremybenn
 
18904 82 jeremybenn
}
18905
18906
 
18907
_ACEOF
18908 19 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18909 82 jeremybenn
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18910
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18911
else
18912
  cat
18913
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18914
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18915 121 jeremybenn
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18916
   { (exit 1); exit 1; }; }
18917
_ACEOF
18918 19 jeremybenn
18919
 
18920
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18921
# trailing colons and then remove the whole line if VPATH becomes empty
18922
# (actually we leave an empty line to preserve line numbers).
18923
if test "x$srcdir" = x.; then
18924
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
18925
s/:*\$(srcdir):*/:/
18926
s/:*\${srcdir}:*/:/
18927
s/:*@srcdir@:*/:/
18928
s/^\([^=]*=[     ]*\):*/\1/
18929
s/:*$//
18930
s/^[^=]*=[       ]*$//
18931
}'
18932
fi
18933
18934
 
18935 82 jeremybenn
fi # test -n "$CONFIG_FILES"
18936 19 jeremybenn
18937
 
18938 82 jeremybenn
# No need to generate them if there are no CONFIG_HEADERS.
18939
# This happens for instance with `./config.status Makefile'.
18940
if test -n "$CONFIG_HEADERS"; then
18941
cat >"$tmp/defines.awk" <<\_ACAWK ||
18942
BEGIN {
18943
_ACEOF
18944
18945 19 jeremybenn
 
18946 82 jeremybenn
# here-document in config.status, that substitutes the proper values into
18947
# config.h.in to produce config.h.
18948
18949
 
18950
# handling of long lines.
18951
ac_delim='%!_!# '
18952
for ac_last_try in false false :; do
18953
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18954
  if test -z "$ac_t"; then
18955
    break
18956
  elif $ac_last_try; then
18957
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18958 121 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18959
   { (exit 1); exit 1; }; }
18960
  else
18961 82 jeremybenn
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18962
  fi
18963
done
18964
18965
 
18966
# likewise P contains macro parameters if any.  Preserve backslash
18967
# newline sequences.
18968
18969
 
18970
sed -n '
18971
s/.\{148\}/&'"$ac_delim"'/g
18972
t rset
18973
:rset
18974
s/^[     ]*#[    ]*define[       ][      ]*/ /
18975
t def
18976
d
18977
:def
18978
s/\\$//
18979
t bsnl
18980
s/["\\]/\\&/g
18981
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18982
D["\1"]=" \3"/p
18983
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18984
d
18985
:bsnl
18986
s/["\\]/\\&/g
18987
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18988
D["\1"]=" \3\\\\\\n"\\/p
18989
t cont
18990
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18991
t cont
18992
d
18993
:cont
18994
n
18995
s/.\{148\}/&'"$ac_delim"'/g
18996
t clear
18997
:clear
18998
s/\\$//
18999
t bsnlc
19000
s/["\\]/\\&/g; s/^/"/; s/$/"/p
19001
d
19002
:bsnlc
19003
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19004
b cont
19005
' 
19006
s/'"$ac_delim"'/"\\\
19007
"/g' >>$CONFIG_STATUS || ac_write_fail=1
19008
19009
 
19010
  for (key in D) D_is_set[key] = 1
19011
  FS = ""
19012
}
19013
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19014
  line = \$ 0
19015
  split(line, arg, " ")
19016
  if (arg[1] == "#") {
19017
    defundef = arg[2]
19018
    mac1 = arg[3]
19019
  } else {
19020
    defundef = substr(arg[1], 2)
19021
    mac1 = arg[2]
19022
  }
19023
  split(mac1, mac2, "(") #)
19024
  macro = mac2[1]
19025
  prefix = substr(line, 1, index(line, defundef) - 1)
19026
  if (D_is_set[macro]) {
19027
    # Preserve the white space surrounding the "#".
19028
    print prefix "define", macro P[macro] D[macro]
19029
    next
19030
  } else {
19031
    # Replace #undef with comments.  This is necessary, for example,
19032
    # in the case of _POSIX_SOURCE, which is predefined and required
19033
    # on some systems where configure will not decide to define it.
19034
    if (defundef == "undef") {
19035
      print "/*", prefix defundef, macro, "*/"
19036
      next
19037
    }
19038
  }
19039
}
19040
{ print }
19041
_ACAWK
19042
_ACEOF
19043
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19044
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19045 121 jeremybenn
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19046
   { (exit 1); exit 1; }; }
19047
fi # test -n "$CONFIG_HEADERS"
19048 82 jeremybenn
19049
 
19050
 
19051
shift
19052
for ac_tag
19053
do
19054 19 jeremybenn
  case $ac_tag in
19055
  :[FHLC]) ac_mode=$ac_tag; continue;;
19056
  esac
19057
  case $ac_mode$ac_tag in
19058
  :[FHL]*:*);;
19059
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19060 121 jeremybenn
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19061
   { (exit 1); exit 1; }; };;
19062
  :[FH]-) ac_tag=-:-;;
19063 19 jeremybenn
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19064
  esac
19065
  ac_save_IFS=$IFS
19066
  IFS=:
19067
  set x $ac_tag
19068
  IFS=$ac_save_IFS
19069
  shift
19070
  ac_file=$1
19071
  shift
19072
19073
 
19074
  :L) ac_source=$1;;
19075
  :[FH])
19076
    ac_file_inputs=
19077
    for ac_f
19078
    do
19079
      case $ac_f in
19080
      -) ac_f="$tmp/stdin";;
19081
      *) # Look for the file first in the build tree, then in the source tree
19082
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
19083
         # because $ac_f cannot contain `:'.
19084
         test -f "$ac_f" ||
19085
           case $ac_f in
19086
           [\\/$]*) false;;
19087
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19088
           esac ||
19089
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19090 121 jeremybenn
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19091
   { (exit 1); exit 1; }; };;
19092
      esac
19093 19 jeremybenn
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19094 82 jeremybenn
      ac_file_inputs="$ac_file_inputs '$ac_f'"
19095 121 jeremybenn
    done
19096 19 jeremybenn
19097
 
19098
    # use $as_me), people would be surprised to read:
19099
    #    /* config.h.  Generated by config.status.  */
19100
    configure_input='Generated from '`
19101 82 jeremybenn
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19102
        `' by configure.'
19103
    if test x"$ac_file" != x-; then
19104 19 jeremybenn
      configure_input="$ac_file.  $configure_input"
19105
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19106 121 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
19107 82 jeremybenn
    fi
19108 19 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
19109 82 jeremybenn
    case $configure_input in #(
19110
    *\&* | *\|* | *\\* )
19111
       ac_sed_conf_input=`$as_echo "$configure_input" |
19112
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19113
    *) ac_sed_conf_input=$configure_input;;
19114
    esac
19115
19116 19 jeremybenn
 
19117
    *:-:* | *:-) cat >"$tmp/stdin" \
19118 82 jeremybenn
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19119 121 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19120
   { (exit 1); exit 1; }; } ;;
19121
    esac
19122 19 jeremybenn
    ;;
19123
  esac
19124
19125
 
19126
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19127
         X"$ac_file" : 'X\(//\)[^/]' \| \
19128
         X"$ac_file" : 'X\(//\)$' \| \
19129
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19130
$as_echo X"$ac_file" |
19131 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19132 19 jeremybenn
            s//\1/
19133
            q
19134
          }
19135
          /^X\(\/\/\)[^/].*/{
19136
            s//\1/
19137
            q
19138
          }
19139
          /^X\(\/\/\)$/{
19140
            s//\1/
19141
            q
19142
          }
19143
          /^X\(\/\).*/{
19144
            s//\1/
19145
            q
19146
          }
19147
          s/.*/./; q'`
19148
  { as_dir="$ac_dir"
19149 121 jeremybenn
  case $as_dir in #(
19150
  -*) as_dir=./$as_dir;;
19151
  esac
19152
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19153
    as_dirs=
19154
    while :; do
19155
      case $as_dir in #(
19156
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19157
      *) as_qdir=$as_dir;;
19158
      esac
19159
      as_dirs="'$as_qdir' $as_dirs"
19160
      as_dir=`$as_dirname -- "$as_dir" ||
19161
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19162
         X"$as_dir" : 'X\(//\)[^/]' \| \
19163
         X"$as_dir" : 'X\(//\)$' \| \
19164
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19165
$as_echo X"$as_dir" |
19166
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19167
            s//\1/
19168
            q
19169
          }
19170
          /^X\(\/\/\)[^/].*/{
19171
            s//\1/
19172
            q
19173
          }
19174
          /^X\(\/\/\)$/{
19175
            s//\1/
19176
            q
19177
          }
19178
          /^X\(\/\).*/{
19179
            s//\1/
19180
            q
19181
          }
19182
          s/.*/./; q'`
19183
      test -d "$as_dir" && break
19184
    done
19185
    test -z "$as_dirs" || eval "mkdir $as_dirs"
19186
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19187
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19188
   { (exit 1); exit 1; }; }; }
19189
  ac_builddir=.
19190 19 jeremybenn
19191
 
19192
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19193
*)
19194
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19195 82 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
19196 19 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19197 82 jeremybenn
  case $ac_top_builddir_sub in
19198 19 jeremybenn
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19199
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19200
  esac ;;
19201
esac
19202
ac_abs_top_builddir=$ac_pwd
19203
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19204
# for backward compatibility:
19205
ac_top_builddir=$ac_top_build_prefix
19206
19207
 
19208
  .)  # We are building in place.
19209
    ac_srcdir=.
19210
    ac_top_srcdir=$ac_top_builddir_sub
19211
    ac_abs_top_srcdir=$ac_pwd ;;
19212
  [\\/]* | ?:[\\/]* )  # Absolute name.
19213
    ac_srcdir=$srcdir$ac_dir_suffix;
19214
    ac_top_srcdir=$srcdir
19215
    ac_abs_top_srcdir=$srcdir ;;
19216
  *) # Relative name.
19217
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19218
    ac_top_srcdir=$ac_top_build_prefix$srcdir
19219
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19220
esac
19221
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19222
19223
 
19224
 
19225
  :F)
19226
  #
19227
  # CONFIG_FILE
19228
  #
19229
19230
 
19231
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19232
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19233
  esac
19234
  ac_MKDIR_P=$MKDIR_P
19235
  case $MKDIR_P in
19236
  [\\/$]* | ?:[\\/]* ) ;;
19237
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19238
  esac
19239
_ACEOF
19240
19241
 
19242 82 jeremybenn
# If the template does not know about datarootdir, expand it.
19243 19 jeremybenn
# FIXME: This hack should be removed a few years after 2.60.
19244
ac_datarootdir_hack=; ac_datarootdir_seen=
19245
19246 121 jeremybenn
 
19247 82 jeremybenn
/datarootdir/ {
19248
  p
19249 19 jeremybenn
  q
19250
}
19251
/@datadir@/p
19252
/@docdir@/p
19253
/@infodir@/p
19254
/@localedir@/p
19255
/@mandir@/p
19256 121 jeremybenn
'
19257
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19258 82 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
19259 19 jeremybenn
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19260
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19261 121 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19262 82 jeremybenn
_ACEOF
19263 19 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19264 82 jeremybenn
  ac_datarootdir_hack='
19265 19 jeremybenn
  s&@datadir@&$datadir&g
19266
  s&@docdir@&$docdir&g
19267
  s&@infodir@&$infodir&g
19268
  s&@localedir@&$localedir&g
19269
  s&@mandir@&$mandir&g
19270
    s&\\\${datarootdir}&$datarootdir&g' ;;
19271 121 jeremybenn
esac
19272 19 jeremybenn
_ACEOF
19273
19274
 
19275
# Shell code in configure.ac might set extrasub.
19276
# FIXME: do we really want to maintain this feature?
19277
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19278 82 jeremybenn
ac_sed_extra="$ac_vpsub
19279
$extrasub
19280 19 jeremybenn
_ACEOF
19281
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19282 82 jeremybenn
:t
19283 19 jeremybenn
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19284
s|@configure_input@|$ac_sed_conf_input|;t t
19285 82 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
19286 19 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
19287 82 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
19288 19 jeremybenn
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19289
s&@top_srcdir@&$ac_top_srcdir&;t t
19290
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19291
s&@builddir@&$ac_builddir&;t t
19292
s&@abs_builddir@&$ac_abs_builddir&;t t
19293
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19294
s&@INSTALL@&$ac_INSTALL&;t t
19295
s&@MKDIR_P@&$ac_MKDIR_P&;t t
19296
$ac_datarootdir_hack
19297
"
19298 82 jeremybenn
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19299
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19300 121 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19301
   { (exit 1); exit 1; }; }
19302
19303 19 jeremybenn
 
19304
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19305
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19306
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19307 121 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
19308 19 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19309 82 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
19310 19 jeremybenn
19311
 
19312
  case $ac_file in
19313
  -) cat "$tmp/out" && rm -f "$tmp/out";;
19314 82 jeremybenn
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19315
  esac \
19316
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19317 121 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19318
   { (exit 1); exit 1; }; }
19319
 ;;
19320 19 jeremybenn
  :H)
19321
  #
19322
  # CONFIG_HEADER
19323
  #
19324
  if test x"$ac_file" != x-; then
19325
    {
19326 82 jeremybenn
      $as_echo "/* $configure_input  */" \
19327
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19328
    } >"$tmp/config.h" \
19329
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19330 121 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19331
   { (exit 1); exit 1; }; }
19332
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19333 82 jeremybenn
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19334 121 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
19335 82 jeremybenn
    else
19336 19 jeremybenn
      rm -f "$ac_file"
19337 82 jeremybenn
      mv "$tmp/config.h" "$ac_file" \
19338
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19339 121 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19340
   { (exit 1); exit 1; }; }
19341
    fi
19342 19 jeremybenn
  else
19343
    $as_echo "/* $configure_input  */" \
19344 82 jeremybenn
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19345
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19346 121 jeremybenn
$as_echo "$as_me: error: could not create -" >&2;}
19347
   { (exit 1); exit 1; }; }
19348
  fi
19349 19 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
19350 82 jeremybenn
_am_arg="$ac_file"
19351
_am_stamp_count=1
19352 19 jeremybenn
for _am_header in $config_headers :; do
19353
  case $_am_header in
19354
    $_am_arg | $_am_arg:* )
19355
      break ;;
19356
    * )
19357
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19358
  esac
19359
done
19360
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19361
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19362
         X"$_am_arg" : 'X\(//\)[^/]' \| \
19363
         X"$_am_arg" : 'X\(//\)$' \| \
19364
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19365
$as_echo X"$_am_arg" |
19366 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19367 19 jeremybenn
            s//\1/
19368
            q
19369
          }
19370
          /^X\(\/\/\)[^/].*/{
19371
            s//\1/
19372
            q
19373
          }
19374
          /^X\(\/\/\)$/{
19375
            s//\1/
19376
            q
19377
          }
19378
          /^X\(\/\).*/{
19379
            s//\1/
19380
            q
19381
          }
19382
          s/.*/./; q'`/stamp-h$_am_stamp_count
19383
 ;;
19384
19385
 
19386 121 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
19387 82 jeremybenn
 ;;
19388 19 jeremybenn
  esac
19389
19390
 
19391
 
19392
    "libtool":C)
19393 82 jeremybenn
19394
 
19395
    # commands through without removal of \ escapes.
19396
    if test -n "${ZSH_VERSION+set}" ; then
19397
      setopt NO_GLOB_SUBST
19398
    fi
19399
19400
 
19401
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19402
    $RM "$cfgfile"
19403
19404
 
19405
#! $SHELL
19406
19407
 
19408
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19409
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19410
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19411
#
19412
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19413
#                 2006, 2007, 2008 Free Software Foundation, Inc.
19414
#   Written by Gordon Matzigkeit, 1996
19415
#
19416
#   This file is part of GNU Libtool.
19417
#
19418
# GNU Libtool is free software; you can redistribute it and/or
19419
# modify it under the terms of the GNU General Public License as
19420
# published by the Free Software Foundation; either version 2 of
19421
# the License, or (at your option) any later version.
19422
#
19423
# As a special exception to the GNU General Public License,
19424
# if you distribute this file as part of a program or library that
19425
# is built using GNU Libtool, you may include this file under the
19426
# same distribution terms that you use for the rest of that program.
19427
#
19428
# GNU Libtool is distributed in the hope that it will be useful,
19429
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19430
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19431
# GNU General Public License for more details.
19432
#
19433
# You should have received a copy of the GNU General Public License
19434
# along with GNU Libtool; see the file COPYING.  If not, a copy
19435
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19436
# obtained by writing to the Free Software Foundation, Inc.,
19437
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19438
19439
 
19440
 
19441
available_tags=""
19442
19443
 
19444
19445
 
19446
macro_version=$macro_version
19447
macro_revision=$macro_revision
19448
19449
 
19450
build_libtool_libs=$enable_shared
19451
19452
 
19453
build_old_libs=$enable_static
19454
19455
 
19456
pic_mode=$pic_mode
19457
19458
 
19459
fast_install=$enable_fast_install
19460
19461
 
19462
host_alias=$host_alias
19463
host=$host
19464
host_os=$host_os
19465
19466
 
19467
build_alias=$build_alias
19468
build=$build
19469
build_os=$build_os
19470
19471
 
19472
SED=$lt_SED
19473
19474
 
19475
Xsed="\$SED -e 1s/^X//"
19476
19477
 
19478
GREP=$lt_GREP
19479
19480
 
19481
EGREP=$lt_EGREP
19482
19483
 
19484
FGREP=$lt_FGREP
19485
19486
 
19487
NM=$lt_NM
19488
19489
 
19490
LN_S=$lt_LN_S
19491
19492
 
19493
max_cmd_len=$max_cmd_len
19494
19495
 
19496
objext=$ac_objext
19497
19498
 
19499
exeext=$exeext
19500
19501
 
19502
lt_unset=$lt_unset
19503
19504
 
19505
SP2NL=$lt_lt_SP2NL
19506
19507
 
19508
NL2SP=$lt_lt_NL2SP
19509
19510
 
19511
reload_flag=$lt_reload_flag
19512
reload_cmds=$lt_reload_cmds
19513
19514
 
19515
OBJDUMP=$lt_OBJDUMP
19516
19517
 
19518
deplibs_check_method=$lt_deplibs_check_method
19519
19520
 
19521
file_magic_cmd=$lt_file_magic_cmd
19522
19523
 
19524
AR=$lt_AR
19525
AR_FLAGS=$lt_AR_FLAGS
19526
19527
 
19528
STRIP=$lt_STRIP
19529
19530
 
19531
RANLIB=$lt_RANLIB
19532
old_postinstall_cmds=$lt_old_postinstall_cmds
19533
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19534
19535
 
19536
LTCC=$lt_CC
19537
19538
 
19539
LTCFLAGS=$lt_CFLAGS
19540
19541
 
19542
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19543
19544
 
19545
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19546
19547
 
19548
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19549
19550
 
19551
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19552
19553
 
19554
objdir=$objdir
19555
19556
 
19557
SHELL=$lt_SHELL
19558
19559
 
19560
ECHO=$lt_ECHO
19561
19562
 
19563
MAGIC_CMD=$MAGIC_CMD
19564
19565
 
19566
need_locks=$lt_need_locks
19567
19568
 
19569
DSYMUTIL=$lt_DSYMUTIL
19570
19571
 
19572
NMEDIT=$lt_NMEDIT
19573
19574
 
19575
LIPO=$lt_LIPO
19576
19577
 
19578
OTOOL=$lt_OTOOL
19579
19580
 
19581
OTOOL64=$lt_OTOOL64
19582
19583
 
19584
libext=$libext
19585
19586
 
19587
shrext_cmds=$lt_shrext_cmds
19588
19589
 
19590
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19591
19592
 
19593
# restored at link time.
19594
variables_saved_for_relink=$lt_variables_saved_for_relink
19595
19596
 
19597
need_lib_prefix=$need_lib_prefix
19598
19599
 
19600
need_version=$need_version
19601
19602
 
19603
version_type=$version_type
19604
19605
 
19606
runpath_var=$runpath_var
19607
19608
 
19609
shlibpath_var=$shlibpath_var
19610
19611
 
19612
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19613
19614
 
19615
libname_spec=$lt_libname_spec
19616
19617
 
19618
# The last name is the one that the linker finds with -lNAME
19619
library_names_spec=$lt_library_names_spec
19620
19621
 
19622
soname_spec=$lt_soname_spec
19623
19624
 
19625
postinstall_cmds=$lt_postinstall_cmds
19626
19627
 
19628
postuninstall_cmds=$lt_postuninstall_cmds
19629
19630
 
19631
finish_cmds=$lt_finish_cmds
19632
19633
 
19634
# not shown.
19635
finish_eval=$lt_finish_eval
19636
19637
 
19638
hardcode_into_libs=$hardcode_into_libs
19639
19640
 
19641
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19642
19643
 
19644
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19645
19646
 
19647
dlopen_support=$enable_dlopen
19648
19649
 
19650
dlopen_self=$enable_dlopen_self
19651
19652
 
19653
dlopen_self_static=$enable_dlopen_self_static
19654
19655
 
19656
old_striplib=$lt_old_striplib
19657
striplib=$lt_striplib
19658
19659
 
19660
 
19661
LD=$lt_LD
19662
19663
 
19664
old_archive_cmds=$lt_old_archive_cmds
19665
19666
 
19667
CC=$lt_compiler
19668
19669
 
19670
with_gcc=$GCC
19671
19672
 
19673
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19674
19675
 
19676
wl=$lt_lt_prog_compiler_wl
19677
19678
 
19679
pic_flag=$lt_lt_prog_compiler_pic
19680
19681
 
19682
link_static_flag=$lt_lt_prog_compiler_static
19683
19684
 
19685
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19686
19687
 
19688
build_libtool_need_lc=$archive_cmds_need_lc
19689
19690
 
19691
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19692
19693
 
19694
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19695
19696
 
19697
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19698
19699
 
19700
compiler_needs_object=$lt_compiler_needs_object
19701
19702
 
19703
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19704
19705
 
19706
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19707
19708
 
19709
archive_cmds=$lt_archive_cmds
19710
archive_expsym_cmds=$lt_archive_expsym_cmds
19711
19712
 
19713
# a shared archive.
19714
module_cmds=$lt_module_cmds
19715
module_expsym_cmds=$lt_module_expsym_cmds
19716
19717
 
19718
with_gnu_ld=$lt_with_gnu_ld
19719
19720
 
19721
allow_undefined_flag=$lt_allow_undefined_flag
19722
19723
 
19724
no_undefined_flag=$lt_no_undefined_flag
19725
19726
 
19727
# This must work even if \$libdir does not exist
19728
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19729
19730
 
19731
# during linking.  This must work even if \$libdir does not exist.
19732
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19733
19734
 
19735
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19736
19737
 
19738
# DIR into the resulting binary.
19739
hardcode_direct=$hardcode_direct
19740
19741
 
19742
# DIR into the resulting binary and the resulting library dependency is
19743
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19744
# library is relocated.
19745
hardcode_direct_absolute=$hardcode_direct_absolute
19746
19747
 
19748
# into the resulting binary.
19749
hardcode_minus_L=$hardcode_minus_L
19750
19751
 
19752
# into the resulting binary.
19753
hardcode_shlibpath_var=$hardcode_shlibpath_var
19754
19755
 
19756
# into the library and all subsequent libraries and executables linked
19757
# against it.
19758
hardcode_automatic=$hardcode_automatic
19759
19760
 
19761
# to runtime path list.
19762
inherit_rpath=$inherit_rpath
19763
19764
 
19765
link_all_deplibs=$link_all_deplibs
19766
19767
 
19768
fix_srcfile_path=$lt_fix_srcfile_path
19769
19770
 
19771
always_export_symbols=$always_export_symbols
19772
19773
 
19774
export_symbols_cmds=$lt_export_symbols_cmds
19775
19776
 
19777
exclude_expsyms=$lt_exclude_expsyms
19778
19779
 
19780
include_expsyms=$lt_include_expsyms
19781
19782
 
19783
prelink_cmds=$lt_prelink_cmds
19784
19785
 
19786
file_list_spec=$lt_file_list_spec
19787
19788
 
19789
hardcode_action=$hardcode_action
19790
19791
 
19792
19793
 
19794
19795
 
19796
  aix3*)
19797
    cat <<\_LT_EOF >> "$cfgfile"
19798
# AIX sometimes has problems with the GCC collect2 program.  For some
19799
# reason, if we set the COLLECT_NAMES environment variable, the problems
19800
# vanish in a puff of smoke.
19801
if test "X${COLLECT_NAMES+set}" != Xset; then
19802
  COLLECT_NAMES=
19803
  export COLLECT_NAMES
19804
fi
19805
_LT_EOF
19806
    ;;
19807
  esac
19808
19809
 
19810
 
19811
19812
 
19813
 
19814
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19815
  # text mode, it properly converts lines to CR/LF.  This bash problem
19816
  # is reportedly fixed, but why not run on old versions too?
19817
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19818
    || (rm -f "$cfgfile"; exit 1)
19819
19820
 
19821
  yes)
19822
    cat << \_LT_EOF >> "$cfgfile"
19823
19824
 
19825
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19826
# otherwise set result to NONDIR_REPLACEMENT.
19827
func_dirname ()
19828
{
19829
  case ${1} in
19830
    */*) func_dirname_result="${1%/*}${2}" ;;
19831
    *  ) func_dirname_result="${3}" ;;
19832
  esac
19833
}
19834
19835
 
19836
func_basename ()
19837
{
19838
  func_basename_result="${1##*/}"
19839
}
19840
19841
 
19842
# perform func_basename and func_dirname in a single function
19843
# call:
19844
#   dirname:  Compute the dirname of FILE.  If nonempty,
19845
#             add APPEND to the result, otherwise set result
19846
#             to NONDIR_REPLACEMENT.
19847
#             value returned in "$func_dirname_result"
19848
#   basename: Compute filename of FILE.
19849
#             value retuned in "$func_basename_result"
19850
# Implementation must be kept synchronized with func_dirname
19851
# and func_basename. For efficiency, we do not delegate to
19852
# those functions but instead duplicate the functionality here.
19853
func_dirname_and_basename ()
19854
{
19855
  case ${1} in
19856
    */*) func_dirname_result="${1%/*}${2}" ;;
19857
    *  ) func_dirname_result="${3}" ;;
19858
  esac
19859
  func_basename_result="${1##*/}"
19860
}
19861
19862
 
19863
# strip PREFIX and SUFFIX off of NAME.
19864
# PREFIX and SUFFIX must not contain globbing or regex special
19865
# characters, hashes, percent signs, but SUFFIX may contain a leading
19866
# dot (in which case that matches only a dot).
19867
func_stripname ()
19868
{
19869
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19870
  # positional parameters, so assign one to ordinary parameter first.
19871
  func_stripname_result=${3}
19872
  func_stripname_result=${func_stripname_result#"${1}"}
19873
  func_stripname_result=${func_stripname_result%"${2}"}
19874
}
19875
19876
 
19877
func_opt_split ()
19878
{
19879
  func_opt_split_opt=${1%%=*}
19880
  func_opt_split_arg=${1#*=}
19881
}
19882
19883
 
19884
func_lo2o ()
19885
{
19886
  case ${1} in
19887
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19888
    *)    func_lo2o_result=${1} ;;
19889
  esac
19890
}
19891
19892
 
19893
func_xform ()
19894
{
19895
  func_xform_result=${1%.*}.lo
19896
}
19897
19898
 
19899
func_arith ()
19900
{
19901
  func_arith_result=$(( $* ))
19902
}
19903
19904
 
19905
# STRING may not start with a hyphen.
19906
func_len ()
19907
{
19908
  func_len_result=${#1}
19909
}
19910
19911
 
19912
    ;;
19913
  *) # Bourne compatible functions.
19914
    cat << \_LT_EOF >> "$cfgfile"
19915
19916
 
19917
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19918
# otherwise set result to NONDIR_REPLACEMENT.
19919
func_dirname ()
19920
{
19921
  # Extract subdirectory from the argument.
19922
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19923
  if test "X$func_dirname_result" = "X${1}"; then
19924
    func_dirname_result="${3}"
19925
  else
19926
    func_dirname_result="$func_dirname_result${2}"
19927
  fi
19928
}
19929
19930
 
19931
func_basename ()
19932
{
19933
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19934
}
19935
19936
 
19937
 
19938
# strip PREFIX and SUFFIX off of NAME.
19939
# PREFIX and SUFFIX must not contain globbing or regex special
19940
# characters, hashes, percent signs, but SUFFIX may contain a leading
19941
# dot (in which case that matches only a dot).
19942
# func_strip_suffix prefix name
19943
func_stripname ()
19944
{
19945
  case ${2} in
19946
    .*) func_stripname_result=`$ECHO "X${3}" \
19947
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19948
    *)  func_stripname_result=`$ECHO "X${3}" \
19949
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19950
  esac
19951
}
19952
19953
 
19954
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19955
my_sed_long_arg='1s/^-[^=]*=//'
19956
19957
 
19958
func_opt_split ()
19959
{
19960
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19961
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19962
}
19963
19964
 
19965
func_lo2o ()
19966
{
19967
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19968
}
19969
19970
 
19971
func_xform ()
19972
{
19973
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19974
}
19975
19976
 
19977
func_arith ()
19978
{
19979
  func_arith_result=`expr "$@"`
19980
}
19981
19982
 
19983
# STRING may not start with a hyphen.
19984
func_len ()
19985
{
19986
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19987
}
19988
19989
 
19990
esac
19991
19992
 
19993
  yes)
19994
    cat << \_LT_EOF >> "$cfgfile"
19995
19996
 
19997
# Append VALUE to the end of shell variable VAR.
19998
func_append ()
19999
{
20000
  eval "$1+=\$2"
20001
}
20002
_LT_EOF
20003
    ;;
20004
  *)
20005
    cat << \_LT_EOF >> "$cfgfile"
20006
20007
 
20008
# Append VALUE to the end of shell variable VAR.
20009
func_append ()
20010
{
20011
  eval "$1=\$$1\$2"
20012
}
20013
20014
 
20015
    ;;
20016
  esac
20017
20018
 
20019
 
20020
    || (rm -f "$cfgfile"; exit 1)
20021
20022
 
20023
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20024
  chmod +x "$ofile"
20025
20026
 
20027
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20028
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20029
  # are listed without --file.  Let's play safe and only enable the eval
20030
  # if we detect the quoting.
20031
  case $CONFIG_FILES in
20032
  *\'*) eval set x "$CONFIG_FILES" ;;
20033
  *)   set x $CONFIG_FILES ;;
20034
  esac
20035
  shift
20036
  for mf
20037
  do
20038
    # Strip MF so we end up with the name of the file.
20039
    mf=`echo "$mf" | sed -e 's/:.*$//'`
20040
    # Check whether this is an Automake generated Makefile or not.
20041
    # We used to match only the files named `Makefile.in', but
20042
    # some people rename them; so instead we look at the file content.
20043
    # Grep'ing the first line is not enough: some people post-process
20044
    # each Makefile.in and add a new line on top of each file to say so.
20045
    # Grep'ing the whole file is not good either: AIX grep has a line
20046
    # limit of 2048, but all sed's we know have understand at least 4000.
20047
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20048
      dirpart=`$as_dirname -- "$mf" ||
20049
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20050 19 jeremybenn
         X"$mf" : 'X\(//\)[^/]' \| \
20051
         X"$mf" : 'X\(//\)$' \| \
20052
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20053
$as_echo X"$mf" |
20054 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20055 19 jeremybenn
            s//\1/
20056
            q
20057
          }
20058
          /^X\(\/\/\)[^/].*/{
20059
            s//\1/
20060
            q
20061
          }
20062
          /^X\(\/\/\)$/{
20063
            s//\1/
20064
            q
20065
          }
20066
          /^X\(\/\).*/{
20067
            s//\1/
20068
            q
20069
          }
20070
          s/.*/./; q'`
20071
    else
20072 82 jeremybenn
      continue
20073
    fi
20074
    # Extract the definition of DEPDIR, am__include, and am__quote
20075
    # from the Makefile without running `make'.
20076
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20077
    test -z "$DEPDIR" && continue
20078
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20079
    test -z "am__include" && continue
20080
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20081
    # When using ansi2knr, U may be empty or an underscore; expand it
20082
    U=`sed -n 's/^U = //p' < "$mf"`
20083
    # Find all dependency output files, they are included files with
20084
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20085
    # simplest approach to changing $(DEPDIR) to its actual value in the
20086
    # expansion.
20087
    for file in `sed -n "
20088
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20089
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20090
      # Make sure the directory exists.
20091
      test -f "$dirpart/$file" && continue
20092
      fdir=`$as_dirname -- "$file" ||
20093
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20094 19 jeremybenn
         X"$file" : 'X\(//\)[^/]' \| \
20095
         X"$file" : 'X\(//\)$' \| \
20096
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20097
$as_echo X"$file" |
20098 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20099 19 jeremybenn
            s//\1/
20100
            q
20101
          }
20102
          /^X\(\/\/\)[^/].*/{
20103
            s//\1/
20104
            q
20105
          }
20106
          /^X\(\/\/\)$/{
20107
            s//\1/
20108
            q
20109
          }
20110
          /^X\(\/\).*/{
20111
            s//\1/
20112
            q
20113
          }
20114
          s/.*/./; q'`
20115
      { as_dir=$dirpart/$fdir
20116 121 jeremybenn
  case $as_dir in #(
20117
  -*) as_dir=./$as_dir;;
20118
  esac
20119
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20120
    as_dirs=
20121
    while :; do
20122
      case $as_dir in #(
20123
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20124
      *) as_qdir=$as_dir;;
20125
      esac
20126
      as_dirs="'$as_qdir' $as_dirs"
20127
      as_dir=`$as_dirname -- "$as_dir" ||
20128
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20129
         X"$as_dir" : 'X\(//\)[^/]' \| \
20130
         X"$as_dir" : 'X\(//\)$' \| \
20131
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20132
$as_echo X"$as_dir" |
20133
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20134
            s//\1/
20135
            q
20136
          }
20137
          /^X\(\/\/\)[^/].*/{
20138
            s//\1/
20139
            q
20140
          }
20141
          /^X\(\/\/\)$/{
20142
            s//\1/
20143
            q
20144
          }
20145
          /^X\(\/\).*/{
20146
            s//\1/
20147
            q
20148
          }
20149
          s/.*/./; q'`
20150
      test -d "$as_dir" && break
20151
    done
20152
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20153
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20154
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20155
   { (exit 1); exit 1; }; }; }
20156
      # echo "creating $dirpart/$file"
20157 82 jeremybenn
      echo '# dummy' > "$dirpart/$file"
20158
    done
20159
  done
20160 19 jeremybenn
}
20161 82 jeremybenn
 ;;
20162 19 jeremybenn
20163
 
20164
done # for ac_tag
20165
20166
 
20167
 
20168 121 jeremybenn
_ACEOF
20169 19 jeremybenn
chmod +x $CONFIG_STATUS
20170 121 jeremybenn
ac_clean_files=$ac_clean_files_save
20171 19 jeremybenn
20172
 
20173 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20174 121 jeremybenn
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20175
   { (exit 1); exit 1; }; }
20176
20177 19 jeremybenn
 
20178 82 jeremybenn
 
20179 19 jeremybenn
# config.status does its own redirection, appending to config.log.
20180
# Unfortunately, on DOS this fails, as config.log is still kept open
20181
# by configure, so config.status won't be able to write to it; its
20182
# output is simply discarded.  So we exec the FD to /dev/null,
20183
# effectively closing config.log, so it can be properly (re)opened and
20184
# appended to by config.status.  When coming back to configure, we
20185
# need to make the FD available again.
20186
if test "$no_create" != yes; then
20187
  ac_cs_success=:
20188
  ac_config_status_args=
20189
  test "$silent" = yes &&
20190
    ac_config_status_args="$ac_config_status_args --quiet"
20191
  exec 5>/dev/null
20192
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20193
  exec 5>>config.log
20194
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20195
  # would make configure fail if this is the last instruction.
20196
  $ac_cs_success || { (exit 1); exit 1; }
20197 121 jeremybenn
fi
20198 19 jeremybenn
20199
 
20200 82 jeremybenn
# CONFIG_SUBDIRS section.
20201
#
20202
if test "$no_recursion" != yes; then
20203
20204
 
20205
  # so they do not pile up.
20206
  ac_sub_configure_args=
20207
  ac_prev=
20208
  eval "set x $ac_configure_args"
20209
  shift
20210
  for ac_arg
20211
  do
20212
    if test -n "$ac_prev"; then
20213
      ac_prev=
20214
      continue
20215
    fi
20216
    case $ac_arg in
20217
    -cache-file | --cache-file | --cache-fil | --cache-fi \
20218
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20219
      ac_prev=cache_file ;;
20220
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20221
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20222
    | --c=*)
20223
      ;;
20224
    --config-cache | -C)
20225
      ;;
20226
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20227
      ac_prev=srcdir ;;
20228
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20229
      ;;
20230
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20231
      ac_prev=prefix ;;
20232
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20233
      ;;
20234
    --disable-option-checking)
20235
      ;;
20236
    *)
20237
      case $ac_arg in
20238
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20239
      esac
20240
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20241 121 jeremybenn
    esac
20242 82 jeremybenn
  done
20243
20244
 
20245
  # in subdir configurations.
20246
  ac_arg="--prefix=$prefix"
20247
  case $ac_arg in
20248
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20249
  esac
20250
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20251
20252
 
20253
  if test "$silent" = yes; then
20254
    ac_sub_configure_args="--silent $ac_sub_configure_args"
20255
  fi
20256
20257
 
20258
  # different subdirs can have different --enable and --with options.
20259
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20260
20261
 
20262
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20263
20264
 
20265
    # parts of a large source tree are present.
20266
    test -d "$srcdir/$ac_dir" || continue
20267
20268
 
20269
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
20270 121 jeremybenn
    $as_echo "$ac_msg" >&6
20271 82 jeremybenn
    { as_dir="$ac_dir"
20272 121 jeremybenn
  case $as_dir in #(
20273
  -*) as_dir=./$as_dir;;
20274
  esac
20275
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20276
    as_dirs=
20277
    while :; do
20278
      case $as_dir in #(
20279
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20280
      *) as_qdir=$as_dir;;
20281
      esac
20282
      as_dirs="'$as_qdir' $as_dirs"
20283
      as_dir=`$as_dirname -- "$as_dir" ||
20284
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20285
         X"$as_dir" : 'X\(//\)[^/]' \| \
20286
         X"$as_dir" : 'X\(//\)$' \| \
20287
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20288
$as_echo X"$as_dir" |
20289
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20290
            s//\1/
20291
            q
20292
          }
20293
          /^X\(\/\/\)[^/].*/{
20294
            s//\1/
20295
            q
20296
          }
20297
          /^X\(\/\/\)$/{
20298
            s//\1/
20299
            q
20300
          }
20301
          /^X\(\/\).*/{
20302
            s//\1/
20303
            q
20304
          }
20305
          s/.*/./; q'`
20306
      test -d "$as_dir" && break
20307
    done
20308
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20309
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20310
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20311
   { (exit 1); exit 1; }; }; }
20312
    ac_builddir=.
20313 82 jeremybenn
20314
 
20315
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20316
*)
20317
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20318
  # A ".." for each directory in $ac_dir_suffix.
20319
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20320
  case $ac_top_builddir_sub in
20321
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20322
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20323
  esac ;;
20324
esac
20325
ac_abs_top_builddir=$ac_pwd
20326
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20327
# for backward compatibility:
20328
ac_top_builddir=$ac_top_build_prefix
20329
20330
 
20331
  .)  # We are building in place.
20332
    ac_srcdir=.
20333
    ac_top_srcdir=$ac_top_builddir_sub
20334
    ac_abs_top_srcdir=$ac_pwd ;;
20335
  [\\/]* | ?:[\\/]* )  # Absolute name.
20336
    ac_srcdir=$srcdir$ac_dir_suffix;
20337
    ac_top_srcdir=$srcdir
20338
    ac_abs_top_srcdir=$srcdir ;;
20339
  *) # Relative name.
20340
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20341
    ac_top_srcdir=$ac_top_build_prefix$srcdir
20342
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20343
esac
20344
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20345
20346
 
20347
 
20348
20349
 
20350
    if test -f "$ac_srcdir/configure.gnu"; then
20351
      ac_sub_configure=$ac_srcdir/configure.gnu
20352
    elif test -f "$ac_srcdir/configure"; then
20353
      ac_sub_configure=$ac_srcdir/configure
20354
    elif test -f "$ac_srcdir/configure.in"; then
20355
      # This should be Cygnus configure.
20356
      ac_sub_configure=$ac_aux_dir/configure
20357
    else
20358
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20359 121 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20360 82 jeremybenn
      ac_sub_configure=
20361
    fi
20362
20363
 
20364
    if test -n "$ac_sub_configure"; then
20365
      # Make the cache file name correct relative to the subdirectory.
20366
      case $cache_file in
20367
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20368
      *) # Relative name.
20369
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20370
      esac
20371
20372
 
20373 121 jeremybenn
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20374 82 jeremybenn
      # The eval makes quoting arguments work.
20375
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20376
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20377
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20378 121 jeremybenn
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20379
   { (exit 1); exit 1; }; }
20380
    fi
20381 82 jeremybenn
20382
 
20383
  done
20384
fi
20385
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20386
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20387 121 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20388 82 jeremybenn
fi
20389
20390
 

powered by: WebSVN 2.1.0

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