~ubuntu-branches/ubuntu/trusty/liblas/trusty

1 by Francesco Paolo Lovergine
Import upstream version 1.2.1
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for las 1.2.1.
4
#
5
# Report bugs to <hobu.inc@gmail.com>.
6
#
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization.  ##
13
## --------------------- ##
14
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
  emulate sh
19
  NULLCMD=:
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in
26
  *posix*) set -o posix ;;
27
esac
28
29
fi
30
31
32
33
34
# PATH needs CR
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
  echo "#! /bin/sh" >conf$$.sh
45
  echo  "exit 0"   >>conf$$.sh
46
  chmod +x conf$$.sh
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48
    PATH_SEPARATOR=';'
49
  else
50
    PATH_SEPARATOR=:
51
  fi
52
  rm -f conf$$.sh
53
fi
54
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57
  as_unset=unset
58
else
59
  as_unset=false
60
fi
61
62
63
# IFS
64
# We need space, tab and new line, in precisely that order.  Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
68
as_nl='
69
'
70
IFS=" ""	$as_nl"
71
72
# Find who we are.  Look in the path if we contain no directory separator.
73
case $0 in
74
  *[\\/]* ) as_myself=$0 ;;
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76
for as_dir in $PATH
77
do
78
  IFS=$as_save_IFS
79
  test -z "$as_dir" && as_dir=.
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81
done
82
IFS=$as_save_IFS
83
84
     ;;
85
esac
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
89
  as_myself=$0
90
fi
91
if test ! -f "$as_myself"; then
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93
  { (exit 1); exit 1; }
94
fi
95
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99
done
100
PS1='$ '
101
PS2='> '
102
PS4='+ '
103
104
# NLS nuisances.
105
for as_var in \
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
  LC_TELEPHONE LC_TIME
109
do
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
    eval $as_var=C; export $as_var
112
  else
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114
  fi
115
done
116
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120
  as_expr=expr
121
else
122
  as_expr=false
123
fi
124
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126
  as_basename=basename
127
else
128
  as_basename=false
129
fi
130
131
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
	 X"$0" : 'X\(//\)$' \| \
136
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137
echo X/"$0" |
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
139
	    s//\1/
140
	    q
141
	  }
142
	  /^X\/\(\/\/\)$/{
143
	    s//\1/
144
	    q
145
	  }
146
	  /^X\/\(\/\).*/{
147
	    s//\1/
148
	    q
149
	  }
150
	  s/.*/./; q'`
151
152
# CDPATH.
153
$as_unset CDPATH
154
155
156
if test "x$CONFIG_SHELL" = x; then
157
  if (eval ":") 2>/dev/null; then
158
  as_have_required=yes
159
else
160
  as_have_required=no
161
fi
162
163
  if test $as_have_required = yes && 	 (eval ":
164
(as_func_return () {
165
  (exit \$1)
166
}
167
as_func_success () {
168
  as_func_return 0
169
}
170
as_func_failure () {
171
  as_func_return 1
172
}
173
as_func_ret_success () {
174
  return 0
175
}
176
as_func_ret_failure () {
177
  return 1
178
}
179
180
exitcode=0
181
if as_func_success; then
182
  :
183
else
184
  exitcode=1
185
  echo as_func_success failed.
186
fi
187
188
if as_func_failure; then
189
  exitcode=1
190
  echo as_func_failure succeeded.
191
fi
192
193
if as_func_ret_success; then
194
  :
195
else
196
  exitcode=1
197
  echo as_func_ret_success failed.
198
fi
199
200
if as_func_ret_failure; then
201
  exitcode=1
202
  echo as_func_ret_failure succeeded.
203
fi
204
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206
  :
207
else
208
  exitcode=1
209
  echo positional parameters were not saved.
210
fi
211
212
test \$exitcode = 0) || { (exit 1); exit 1; }
213
214
(
215
  as_lineno_1=\$LINENO
216
  as_lineno_2=\$LINENO
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
220
  :
221
else
222
  as_candidate_shells=
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
do
226
  IFS=$as_save_IFS
227
  test -z "$as_dir" && as_dir=.
228
  case $as_dir in
229
	 /*)
230
	   for as_base in sh bash ksh sh5; do
231
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232
	   done;;
233
       esac
234
done
235
IFS=$as_save_IFS
236
237
238
      for as_shell in $as_candidate_shells $SHELL; do
239
	 # Try only shells that exist, to save several forks.
240
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
  emulate sh
244
  NULLCMD=:
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
  # is contrary to our usage.  Disable this feature.
247
  alias -g '${1+"$@"}'='"$@"'
248
  setopt NO_GLOB_SUBST
249
else
250
  case `(set -o) 2>/dev/null` in
251
  *posix*) set -o posix ;;
252
esac
253
254
fi
255
256
257
:
258
_ASEOF
259
}; then
260
  CONFIG_SHELL=$as_shell
261
	       as_have_required=yes
262
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
  emulate sh
265
  NULLCMD=:
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
  # is contrary to our usage.  Disable this feature.
268
  alias -g '${1+"$@"}'='"$@"'
269
  setopt NO_GLOB_SUBST
270
else
271
  case `(set -o) 2>/dev/null` in
272
  *posix*) set -o posix ;;
273
esac
274
275
fi
276
277
278
:
279
(as_func_return () {
280
  (exit $1)
281
}
282
as_func_success () {
283
  as_func_return 0
284
}
285
as_func_failure () {
286
  as_func_return 1
287
}
288
as_func_ret_success () {
289
  return 0
290
}
291
as_func_ret_failure () {
292
  return 1
293
}
294
295
exitcode=0
296
if as_func_success; then
297
  :
298
else
299
  exitcode=1
300
  echo as_func_success failed.
301
fi
302
303
if as_func_failure; then
304
  exitcode=1
305
  echo as_func_failure succeeded.
306
fi
307
308
if as_func_ret_success; then
309
  :
310
else
311
  exitcode=1
312
  echo as_func_ret_success failed.
313
fi
314
315
if as_func_ret_failure; then
316
  exitcode=1
317
  echo as_func_ret_failure succeeded.
318
fi
319
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
321
  :
322
else
323
  exitcode=1
324
  echo positional parameters were not saved.
325
fi
326
327
test $exitcode = 0) || { (exit 1); exit 1; }
328
329
(
330
  as_lineno_1=$LINENO
331
  as_lineno_2=$LINENO
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335
_ASEOF
336
}; then
337
  break
338
fi
339
340
fi
341
342
      done
343
344
      if test "x$CONFIG_SHELL" != x; then
345
  for as_var in BASH_ENV ENV
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
        done
348
        export CONFIG_SHELL
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350
fi
351
352
353
    if test $as_have_required = no; then
354
  echo This script requires a shell more modern than all the
355
      echo shells that I found on your system.  Please install a
356
      echo modern shell, or manually run the script under such a
357
      echo shell if you do have one.
358
      { (exit 1); exit 1; }
359
fi
360
361
362
fi
363
364
fi
365
366
367
368
(eval "as_func_return () {
369
  (exit \$1)
370
}
371
as_func_success () {
372
  as_func_return 0
373
}
374
as_func_failure () {
375
  as_func_return 1
376
}
377
as_func_ret_success () {
378
  return 0
379
}
380
as_func_ret_failure () {
381
  return 1
382
}
383
384
exitcode=0
385
if as_func_success; then
386
  :
387
else
388
  exitcode=1
389
  echo as_func_success failed.
390
fi
391
392
if as_func_failure; then
393
  exitcode=1
394
  echo as_func_failure succeeded.
395
fi
396
397
if as_func_ret_success; then
398
  :
399
else
400
  exitcode=1
401
  echo as_func_ret_success failed.
402
fi
403
404
if as_func_ret_failure; then
405
  exitcode=1
406
  echo as_func_ret_failure succeeded.
407
fi
408
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410
  :
411
else
412
  exitcode=1
413
  echo positional parameters were not saved.
414
fi
415
416
test \$exitcode = 0") || {
417
  echo No shell found that supports shell functions.
418
  echo Please tell autoconf@gnu.org about your system,
419
  echo including any error possibly output before this
420
  echo message
421
}
422
423
424
425
  as_lineno_1=$LINENO
426
  as_lineno_2=$LINENO
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
432
  # line-number line after each line using $LINENO; the second 'sed'
433
  # does the real work.  The second script uses 'N' to pair each
434
  # line-number line with the line containing $LINENO, and appends
435
  # trailing '-' during substitution so that $LINENO is not a special
436
  # case at line end.
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
440
  sed -n '
441
    p
442
    /[$]LINENO/=
443
  ' <$as_myself |
444
    sed '
445
      s/[$]LINENO.*/&-/
446
      t lineno
447
      b
448
      :lineno
449
      N
450
      :loop
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452
      t loop
453
      s/-\n.*//
454
    ' >$as_me.lineno &&
455
  chmod +x "$as_me.lineno" ||
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
   { (exit 1); exit 1; }; }
458
459
  # Don't try to exec as it changes $[0], causing all sort of problems
460
  # (the dirname of $[0] is not the place where we might find the
461
  # original and so on.  Autoconf is especially sensitive to this).
462
  . "./$as_me.lineno"
463
  # Exit status is that of the last command.
464
  exit
465
}
466
467
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469
  as_dirname=dirname
470
else
471
  as_dirname=false
472
fi
473
474
ECHO_C= ECHO_N= ECHO_T=
475
case `echo -n x` in
476
-n*)
477
  case `echo 'x\c'` in
478
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479
  *)   ECHO_C='\c';;
480
  esac;;
481
*)
482
  ECHO_N='-n';;
483
esac
484
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487
  as_expr=expr
488
else
489
  as_expr=false
490
fi
491
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
  rm -f conf$$.dir/conf$$.file
495
else
496
  rm -f conf$$.dir
497
  mkdir conf$$.dir
498
fi
499
echo >conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
501
  as_ln_s='ln -s'
502
  # ... but there are two gotchas:
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
  # In both cases, we have to default to `cp -p'.
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507
    as_ln_s='cp -p'
508
elif ln conf$$.file conf$$ 2>/dev/null; then
509
  as_ln_s=ln
510
else
511
  as_ln_s='cp -p'
512
fi
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
515
516
if mkdir -p . 2>/dev/null; then
517
  as_mkdir_p=:
518
else
519
  test -d ./-p && rmdir ./-p
520
  as_mkdir_p=false
521
fi
522
523
if test -x / >/dev/null 2>&1; then
524
  as_test_x='test -x'
525
else
526
  if ls -dL / >/dev/null 2>&1; then
527
    as_ls_L_option=L
528
  else
529
    as_ls_L_option=
530
  fi
531
  as_test_x='
532
    eval sh -c '\''
533
      if test -d "$1"; then
534
        test -d "$1/.";
535
      else
536
	case $1 in
537
        -*)set "./$1";;
538
	esac;
539
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
	???[sx]*):;;*)false;;esac;fi
541
    '\'' sh
542
  '
543
fi
544
as_executable_p=$as_test_x
545
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555
# Check that we are running under the correct shell.
556
SHELL=${CONFIG_SHELL-/bin/sh}
557
558
case X$lt_ECHO in
559
X*--fallback-echo)
560
  # Remove one level of quotation (which was required for Make).
561
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562
  ;;
563
esac
564
565
ECHO=${lt_ECHO-echo}
566
if test "X$1" = X--no-reexec; then
567
  # Discard the --no-reexec flag, and continue.
568
  shift
569
elif test "X$1" = X--fallback-echo; then
570
  # Avoid inline document here, it may be left over
571
  :
572
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573
  # Yippee, $ECHO works!
574
  :
575
else
576
  # Restart under the correct shell.
577
  exec $SHELL "$0" --no-reexec ${1+"$@"}
578
fi
579
580
if test "X$1" = X--fallback-echo; then
581
  # used as fallback echo
582
  shift
583
  cat <<_LT_EOF
584
$*
585
_LT_EOF
586
  exit 0
587
fi
588
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
590
# if CDPATH is set.
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593
if test -z "$lt_ECHO"; then
594
  if test "X${echo_test_string+set}" != Xset; then
595
    # find a string as large as possible, as long as the shell can cope with it
596
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600
      then
601
        break
602
      fi
603
    done
604
  fi
605
606
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608
     test "X$echo_testing_string" = "X$echo_test_string"; then
609
    :
610
  else
611
    # The Solaris, AIX, and Digital Unix default echo programs unquote
612
    # backslashes.  This makes it impossible to quote backslashes using
613
    #   echo "$something" | sed 's/\\/\\\\/g'
614
    #
615
    # So, first we look for a working echo in the user's PATH.
616
617
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618
    for dir in $PATH /usr/ucb; do
619
      IFS="$lt_save_ifs"
620
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623
         test "X$echo_testing_string" = "X$echo_test_string"; then
624
        ECHO="$dir/echo"
625
        break
626
      fi
627
    done
628
    IFS="$lt_save_ifs"
629
630
    if test "X$ECHO" = Xecho; then
631
      # We didn't find a better echo, so look for alternatives.
632
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634
         test "X$echo_testing_string" = "X$echo_test_string"; then
635
        # This shell has a builtin print -r that does the trick.
636
        ECHO='print -r'
637
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
639
        # If we have ksh, try running configure again with it.
640
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641
        export ORIGINAL_CONFIG_SHELL
642
        CONFIG_SHELL=/bin/ksh
643
        export CONFIG_SHELL
644
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645
      else
646
        # Try using printf.
647
        ECHO='printf %s\n'
648
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650
	   test "X$echo_testing_string" = "X$echo_test_string"; then
651
	  # Cool, printf works
652
	  :
653
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654
	     test "X$echo_testing_string" = 'X\t' &&
655
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656
	     test "X$echo_testing_string" = "X$echo_test_string"; then
657
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658
	  export CONFIG_SHELL
659
	  SHELL="$CONFIG_SHELL"
660
	  export SHELL
661
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
662
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663
	     test "X$echo_testing_string" = 'X\t' &&
664
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665
	     test "X$echo_testing_string" = "X$echo_test_string"; then
666
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
667
        else
668
	  # maybe with a smaller string...
669
	  prev=:
670
671
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673
	    then
674
	      break
675
	    fi
676
	    prev="$cmd"
677
	  done
678
679
	  if test "$prev" != 'sed 50q "$0"'; then
680
	    echo_test_string=`eval $prev`
681
	    export echo_test_string
682
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683
	  else
684
	    # Oops.  We lost completely, so just stick with echo.
685
	    ECHO=echo
686
	  fi
687
        fi
688
      fi
689
    fi
690
  fi
691
fi
692
693
# Copy echo and quote the copy suitably for passing to libtool from
694
# the Makefile, instead of quoting the original, which is used later.
695
lt_ECHO=$ECHO
696
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698
fi
699
700
701
702
703
exec 7<&0 </dev/null 6>&1
704
705
# Name of the host.
706
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707
# so uname gets run too.
708
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
710
#
711
# Initializations.
712
#
713
ac_default_prefix=/usr/local
714
ac_clean_files=
715
ac_config_libobj_dir=.
716
LIBOBJS=
717
cross_compiling=no
718
subdirs=
719
MFLAGS=
720
MAKEFLAGS=
721
SHELL=${CONFIG_SHELL-/bin/sh}
722
723
# Identity of this package.
724
PACKAGE_NAME='las'
725
PACKAGE_TARNAME='liblas-src'
726
PACKAGE_VERSION='1.2.1'
727
PACKAGE_STRING='las 1.2.1'
728
PACKAGE_BUGREPORT='hobu.inc@gmail.com'
729
730
# Factoring default headers for most tests.
731
ac_includes_default="\
732
#include <stdio.h>
733
#ifdef HAVE_SYS_TYPES_H
734
# include <sys/types.h>
735
#endif
736
#ifdef HAVE_SYS_STAT_H
737
# include <sys/stat.h>
738
#endif
739
#ifdef STDC_HEADERS
740
# include <stdlib.h>
741
# include <stddef.h>
742
#else
743
# ifdef HAVE_STDLIB_H
744
#  include <stdlib.h>
745
# endif
746
#endif
747
#ifdef HAVE_STRING_H
748
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
749
#  include <memory.h>
750
# endif
751
# include <string.h>
752
#endif
753
#ifdef HAVE_STRINGS_H
754
# include <strings.h>
755
#endif
756
#ifdef HAVE_INTTYPES_H
757
# include <inttypes.h>
758
#endif
759
#ifdef HAVE_STDINT_H
760
# include <stdint.h>
761
#endif
762
#ifdef HAVE_UNISTD_H
763
# include <unistd.h>
764
#endif"
765
766
ac_subst_vars='SHELL
767
PATH_SEPARATOR
768
PACKAGE_NAME
769
PACKAGE_TARNAME
770
PACKAGE_VERSION
771
PACKAGE_STRING
772
PACKAGE_BUGREPORT
773
exec_prefix
774
prefix
775
program_transform_name
776
bindir
777
sbindir
778
libexecdir
779
datarootdir
780
datadir
781
sysconfdir
782
sharedstatedir
783
localstatedir
784
includedir
785
oldincludedir
786
docdir
787
infodir
788
htmldir
789
dvidir
790
pdfdir
791
psdir
792
libdir
793
localedir
794
mandir
795
DEFS
796
ECHO_C
797
ECHO_N
798
ECHO_T
799
LIBS
800
build_alias
801
host_alias
802
target_alias
803
build
804
build_cpu
805
build_vendor
806
build_os
807
RELEASE_VERSION
808
INSTALL_PROGRAM
809
INSTALL_SCRIPT
810
INSTALL_DATA
811
am__isrc
812
CYGPATH_W
813
PACKAGE
814
VERSION
815
ACLOCAL
816
AUTOCONF
817
AUTOMAKE
818
AUTOHEADER
819
MAKEINFO
820
install_sh
821
STRIP
822
INSTALL_STRIP_PROGRAM
823
mkdir_p
824
AWK
825
SET_MAKE
826
am__leading_dot
827
AMTAR
828
am__tar
829
am__untar
830
CXX
831
CXXFLAGS
832
LDFLAGS
833
CPPFLAGS
834
ac_ct_CXX
835
EXEEXT
836
OBJEXT
837
DEPDIR
838
am__include
839
am__quote
840
AMDEP_TRUE
841
AMDEP_FALSE
842
AMDEPBACKSLASH
843
CXXDEPMODE
844
am__fastdepCXX_TRUE
845
am__fastdepCXX_FALSE
846
CXXCPP
847
LN_S
848
LIBTOOL
849
host
850
host_cpu
851
host_vendor
852
host_os
853
CC
854
CFLAGS
855
ac_ct_CC
856
CCDEPMODE
857
am__fastdepCC_TRUE
858
am__fastdepCC_FALSE
859
SED
860
GREP
861
EGREP
862
FGREP
863
LD
864
DUMPBIN
865
ac_ct_DUMPBIN
866
NM
867
AR
868
RANLIB
869
lt_ECHO
870
DSYMUTIL
871
NMEDIT
872
LIPO
873
OTOOL
874
OTOOL64
875
CPP
876
GDAL_INC
877
GDAL_PREFIX
878
GDAL_IS_CONFIG_TRUE
879
GDAL_IS_CONFIG_FALSE
880
GEOTIFF_INC
881
GEOTIFF_PREFIX
882
GEOTIFF_IS_CONFIG_TRUE
883
GEOTIFF_IS_CONFIG_FALSE
884
LIBOBJS
885
LTLIBOBJS'
886
ac_subst_files=''
887
      ac_precious_vars='build_alias
888
host_alias
889
target_alias
890
CXX
891
CXXFLAGS
892
LDFLAGS
893
LIBS
894
CPPFLAGS
895
CCC
896
CXXCPP
897
CC
898
CFLAGS
899
CPP'
900
901
902
# Initialize some variables set by options.
903
ac_init_help=
904
ac_init_version=false
905
# The variables have the same names as the options, with
906
# dashes changed to underlines.
907
cache_file=/dev/null
908
exec_prefix=NONE
909
no_create=
910
no_recursion=
911
prefix=NONE
912
program_prefix=NONE
913
program_suffix=NONE
914
program_transform_name=s,x,x,
915
silent=
916
site=
917
srcdir=
918
verbose=
919
x_includes=NONE
920
x_libraries=NONE
921
922
# Installation directory options.
923
# These are left unexpanded so users can "make install exec_prefix=/foo"
924
# and all the variables that are supposed to be based on exec_prefix
925
# by default will actually change.
926
# Use braces instead of parens because sh, perl, etc. also accept them.
927
# (The list follows the same order as the GNU Coding Standards.)
928
bindir='${exec_prefix}/bin'
929
sbindir='${exec_prefix}/sbin'
930
libexecdir='${exec_prefix}/libexec'
931
datarootdir='${prefix}/share'
932
datadir='${datarootdir}'
933
sysconfdir='${prefix}/etc'
934
sharedstatedir='${prefix}/com'
935
localstatedir='${prefix}/var'
936
includedir='${prefix}/include'
937
oldincludedir='/usr/include'
938
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939
infodir='${datarootdir}/info'
940
htmldir='${docdir}'
941
dvidir='${docdir}'
942
pdfdir='${docdir}'
943
psdir='${docdir}'
944
libdir='${exec_prefix}/lib'
945
localedir='${datarootdir}/locale'
946
mandir='${datarootdir}/man'
947
948
ac_prev=
949
ac_dashdash=
950
for ac_option
951
do
952
  # If the previous option needs an argument, assign it.
953
  if test -n "$ac_prev"; then
954
    eval $ac_prev=\$ac_option
955
    ac_prev=
956
    continue
957
  fi
958
959
  case $ac_option in
960
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961
  *)	ac_optarg=yes ;;
962
  esac
963
964
  # Accept the important Cygnus configure options, so we can diagnose typos.
965
966
  case $ac_dashdash$ac_option in
967
  --)
968
    ac_dashdash=yes ;;
969
970
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
971
    ac_prev=bindir ;;
972
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973
    bindir=$ac_optarg ;;
974
975
  -build | --build | --buil | --bui | --bu)
976
    ac_prev=build_alias ;;
977
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978
    build_alias=$ac_optarg ;;
979
980
  -cache-file | --cache-file | --cache-fil | --cache-fi \
981
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982
    ac_prev=cache_file ;;
983
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985
    cache_file=$ac_optarg ;;
986
987
  --config-cache | -C)
988
    cache_file=config.cache ;;
989
990
  -datadir | --datadir | --datadi | --datad)
991
    ac_prev=datadir ;;
992
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
993
    datadir=$ac_optarg ;;
994
995
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996
  | --dataroo | --dataro | --datar)
997
    ac_prev=datarootdir ;;
998
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000
    datarootdir=$ac_optarg ;;
1001
1002
  -disable-* | --disable-*)
1003
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004
    # Reject names that are not valid shell variable names.
1005
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007
   { (exit 1); exit 1; }; }
1008
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009
    eval enable_$ac_feature=no ;;
1010
1011
  -docdir | --docdir | --docdi | --doc | --do)
1012
    ac_prev=docdir ;;
1013
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014
    docdir=$ac_optarg ;;
1015
1016
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017
    ac_prev=dvidir ;;
1018
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019
    dvidir=$ac_optarg ;;
1020
1021
  -enable-* | --enable-*)
1022
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023
    # Reject names that are not valid shell variable names.
1024
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026
   { (exit 1); exit 1; }; }
1027
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028
    eval enable_$ac_feature=\$ac_optarg ;;
1029
1030
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032
  | --exec | --exe | --ex)
1033
    ac_prev=exec_prefix ;;
1034
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036
  | --exec=* | --exe=* | --ex=*)
1037
    exec_prefix=$ac_optarg ;;
1038
1039
  -gas | --gas | --ga | --g)
1040
    # Obsolete; use --with-gas.
1041
    with_gas=yes ;;
1042
1043
  -help | --help | --hel | --he | -h)
1044
    ac_init_help=long ;;
1045
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046
    ac_init_help=recursive ;;
1047
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048
    ac_init_help=short ;;
1049
1050
  -host | --host | --hos | --ho)
1051
    ac_prev=host_alias ;;
1052
  -host=* | --host=* | --hos=* | --ho=*)
1053
    host_alias=$ac_optarg ;;
1054
1055
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056
    ac_prev=htmldir ;;
1057
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058
  | --ht=*)
1059
    htmldir=$ac_optarg ;;
1060
1061
  -includedir | --includedir | --includedi | --included | --include \
1062
  | --includ | --inclu | --incl | --inc)
1063
    ac_prev=includedir ;;
1064
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1066
    includedir=$ac_optarg ;;
1067
1068
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1069
    ac_prev=infodir ;;
1070
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071
    infodir=$ac_optarg ;;
1072
1073
  -libdir | --libdir | --libdi | --libd)
1074
    ac_prev=libdir ;;
1075
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076
    libdir=$ac_optarg ;;
1077
1078
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079
  | --libexe | --libex | --libe)
1080
    ac_prev=libexecdir ;;
1081
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082
  | --libexe=* | --libex=* | --libe=*)
1083
    libexecdir=$ac_optarg ;;
1084
1085
  -localedir | --localedir | --localedi | --localed | --locale)
1086
    ac_prev=localedir ;;
1087
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088
    localedir=$ac_optarg ;;
1089
1090
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1091
  | --localstate | --localstat | --localsta | --localst | --locals)
1092
    ac_prev=localstatedir ;;
1093
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095
    localstatedir=$ac_optarg ;;
1096
1097
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098
    ac_prev=mandir ;;
1099
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100
    mandir=$ac_optarg ;;
1101
1102
  -nfp | --nfp | --nf)
1103
    # Obsolete; use --without-fp.
1104
    with_fp=no ;;
1105
1106
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107
  | --no-cr | --no-c | -n)
1108
    no_create=yes ;;
1109
1110
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112
    no_recursion=yes ;;
1113
1114
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116
  | --oldin | --oldi | --old | --ol | --o)
1117
    ac_prev=oldincludedir ;;
1118
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121
    oldincludedir=$ac_optarg ;;
1122
1123
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124
    ac_prev=prefix ;;
1125
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126
    prefix=$ac_optarg ;;
1127
1128
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129
  | --program-pre | --program-pr | --program-p)
1130
    ac_prev=program_prefix ;;
1131
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133
    program_prefix=$ac_optarg ;;
1134
1135
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136
  | --program-suf | --program-su | --program-s)
1137
    ac_prev=program_suffix ;;
1138
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140
    program_suffix=$ac_optarg ;;
1141
1142
  -program-transform-name | --program-transform-name \
1143
  | --program-transform-nam | --program-transform-na \
1144
  | --program-transform-n | --program-transform- \
1145
  | --program-transform | --program-transfor \
1146
  | --program-transfo | --program-transf \
1147
  | --program-trans | --program-tran \
1148
  | --progr-tra | --program-tr | --program-t)
1149
    ac_prev=program_transform_name ;;
1150
  -program-transform-name=* | --program-transform-name=* \
1151
  | --program-transform-nam=* | --program-transform-na=* \
1152
  | --program-transform-n=* | --program-transform-=* \
1153
  | --program-transform=* | --program-transfor=* \
1154
  | --program-transfo=* | --program-transf=* \
1155
  | --program-trans=* | --program-tran=* \
1156
  | --progr-tra=* | --program-tr=* | --program-t=*)
1157
    program_transform_name=$ac_optarg ;;
1158
1159
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160
    ac_prev=pdfdir ;;
1161
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162
    pdfdir=$ac_optarg ;;
1163
1164
  -psdir | --psdir | --psdi | --psd | --ps)
1165
    ac_prev=psdir ;;
1166
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167
    psdir=$ac_optarg ;;
1168
1169
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170
  | -silent | --silent | --silen | --sile | --sil)
1171
    silent=yes ;;
1172
1173
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174
    ac_prev=sbindir ;;
1175
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176
  | --sbi=* | --sb=*)
1177
    sbindir=$ac_optarg ;;
1178
1179
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181
  | --sharedst | --shareds | --shared | --share | --shar \
1182
  | --sha | --sh)
1183
    ac_prev=sharedstatedir ;;
1184
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187
  | --sha=* | --sh=*)
1188
    sharedstatedir=$ac_optarg ;;
1189
1190
  -site | --site | --sit)
1191
    ac_prev=site ;;
1192
  -site=* | --site=* | --sit=*)
1193
    site=$ac_optarg ;;
1194
1195
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196
    ac_prev=srcdir ;;
1197
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198
    srcdir=$ac_optarg ;;
1199
1200
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201
  | --syscon | --sysco | --sysc | --sys | --sy)
1202
    ac_prev=sysconfdir ;;
1203
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205
    sysconfdir=$ac_optarg ;;
1206
1207
  -target | --target | --targe | --targ | --tar | --ta | --t)
1208
    ac_prev=target_alias ;;
1209
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210
    target_alias=$ac_optarg ;;
1211
1212
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213
    verbose=yes ;;
1214
1215
  -version | --version | --versio | --versi | --vers | -V)
1216
    ac_init_version=: ;;
1217
1218
  -with-* | --with-*)
1219
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220
    # Reject names that are not valid shell variable names.
1221
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1223
   { (exit 1); exit 1; }; }
1224
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225
    eval with_$ac_package=\$ac_optarg ;;
1226
1227
  -without-* | --without-*)
1228
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229
    # Reject names that are not valid shell variable names.
1230
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1232
   { (exit 1); exit 1; }; }
1233
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234
    eval with_$ac_package=no ;;
1235
1236
  --x)
1237
    # Obsolete; use --with-x.
1238
    with_x=yes ;;
1239
1240
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241
  | --x-incl | --x-inc | --x-in | --x-i)
1242
    ac_prev=x_includes ;;
1243
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245
    x_includes=$ac_optarg ;;
1246
1247
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249
    ac_prev=x_libraries ;;
1250
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252
    x_libraries=$ac_optarg ;;
1253
1254
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1255
Try \`$0 --help' for more information." >&2
1256
   { (exit 1); exit 1; }; }
1257
    ;;
1258
1259
  *=*)
1260
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261
    # Reject names that are not valid shell variable names.
1262
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264
   { (exit 1); exit 1; }; }
1265
    eval $ac_envvar=\$ac_optarg
1266
    export $ac_envvar ;;
1267
1268
  *)
1269
    # FIXME: should be removed in autoconf 3.0.
1270
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274
    ;;
1275
1276
  esac
1277
done
1278
1279
if test -n "$ac_prev"; then
1280
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281
  { echo "$as_me: error: missing argument to $ac_option" >&2
1282
   { (exit 1); exit 1; }; }
1283
fi
1284
1285
# Be sure to have absolute directory names.
1286
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287
		datadir sysconfdir sharedstatedir localstatedir includedir \
1288
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289
		libdir localedir mandir
1290
do
1291
  eval ac_val=\$$ac_var
1292
  case $ac_val in
1293
    [\\/$]* | ?:[\\/]* )  continue;;
1294
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295
  esac
1296
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297
   { (exit 1); exit 1; }; }
1298
done
1299
1300
# There might be people who depend on the old broken behavior: `$host'
1301
# used to hold the argument of --host etc.
1302
# FIXME: To remove some day.
1303
build=$build_alias
1304
host=$host_alias
1305
target=$target_alias
1306
1307
# FIXME: To remove some day.
1308
if test "x$host_alias" != x; then
1309
  if test "x$build_alias" = x; then
1310
    cross_compiling=maybe
1311
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312
    If a cross compiler is detected then cross compile mode will be used." >&2
1313
  elif test "x$build_alias" != "x$host_alias"; then
1314
    cross_compiling=yes
1315
  fi
1316
fi
1317
1318
ac_tool_prefix=
1319
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321
test "$silent" = yes && exec 6>/dev/null
1322
1323
1324
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325
ac_ls_di=`ls -di .` &&
1326
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327
  { echo "$as_me: error: Working directory cannot be determined" >&2
1328
   { (exit 1); exit 1; }; }
1329
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1331
   { (exit 1); exit 1; }; }
1332
1333
1334
# Find the source files, if location was not specified.
1335
if test -z "$srcdir"; then
1336
  ac_srcdir_defaulted=yes
1337
  # Try the directory containing this script, then the parent directory.
1338
  ac_confdir=`$as_dirname -- "$0" ||
1339
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340
	 X"$0" : 'X\(//\)[^/]' \| \
1341
	 X"$0" : 'X\(//\)$' \| \
1342
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343
echo X"$0" |
1344
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345
	    s//\1/
1346
	    q
1347
	  }
1348
	  /^X\(\/\/\)[^/].*/{
1349
	    s//\1/
1350
	    q
1351
	  }
1352
	  /^X\(\/\/\)$/{
1353
	    s//\1/
1354
	    q
1355
	  }
1356
	  /^X\(\/\).*/{
1357
	    s//\1/
1358
	    q
1359
	  }
1360
	  s/.*/./; q'`
1361
  srcdir=$ac_confdir
1362
  if test ! -r "$srcdir/$ac_unique_file"; then
1363
    srcdir=..
1364
  fi
1365
else
1366
  ac_srcdir_defaulted=no
1367
fi
1368
if test ! -r "$srcdir/$ac_unique_file"; then
1369
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371
   { (exit 1); exit 1; }; }
1372
fi
1373
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374
ac_abs_confdir=`(
1375
	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376
   { (exit 1); exit 1; }; }
1377
	pwd)`
1378
# When building in place, set srcdir=.
1379
if test "$ac_abs_confdir" = "$ac_pwd"; then
1380
  srcdir=.
1381
fi
1382
# Remove unnecessary trailing slashes from srcdir.
1383
# Double slashes in file names in object file debugging info
1384
# mess up M-x gdb in Emacs.
1385
case $srcdir in
1386
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387
esac
1388
for ac_var in $ac_precious_vars; do
1389
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390
  eval ac_env_${ac_var}_value=\$${ac_var}
1391
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393
done
1394
1395
#
1396
# Report the --help message.
1397
#
1398
if test "$ac_init_help" = "long"; then
1399
  # Omit some internal or obsolete options to make the list less imposing.
1400
  # This message is too long to be a string in the A/UX 3.1 sh.
1401
  cat <<_ACEOF
1402
\`configure' configures las 1.2.1 to adapt to many kinds of systems.
1403
1404
Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407
VAR=VALUE.  See below for descriptions of some of the useful variables.
1408
1409
Defaults for the options are specified in brackets.
1410
1411
Configuration:
1412
  -h, --help              display this help and exit
1413
      --help=short        display options specific to this package
1414
      --help=recursive    display the short help of all the included packages
1415
  -V, --version           display version information and exit
1416
  -q, --quiet, --silent   do not print \`checking...' messages
1417
      --cache-file=FILE   cache test results in FILE [disabled]
1418
  -C, --config-cache      alias for \`--cache-file=config.cache'
1419
  -n, --no-create         do not create output files
1420
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421
1422
Installation directories:
1423
  --prefix=PREFIX         install architecture-independent files in PREFIX
1424
			  [$ac_default_prefix]
1425
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426
			  [PREFIX]
1427
1428
By default, \`make install' will install all the files in
1429
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431
for instance \`--prefix=\$HOME'.
1432
1433
For better control, use the options below.
1434
1435
Fine tuning of the installation directories:
1436
  --bindir=DIR           user executables [EPREFIX/bin]
1437
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1438
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1439
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1440
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1441
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1442
  --libdir=DIR           object code libraries [EPREFIX/lib]
1443
  --includedir=DIR       C header files [PREFIX/include]
1444
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1445
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1446
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1447
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1448
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1449
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1450
  --docdir=DIR           documentation root [DATAROOTDIR/doc/liblas-src]
1451
  --htmldir=DIR          html documentation [DOCDIR]
1452
  --dvidir=DIR           dvi documentation [DOCDIR]
1453
  --pdfdir=DIR           pdf documentation [DOCDIR]
1454
  --psdir=DIR            ps documentation [DOCDIR]
1455
_ACEOF
1456
1457
  cat <<\_ACEOF
1458
1459
Program names:
1460
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1461
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1462
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1463
1464
System types:
1465
  --build=BUILD     configure for building on BUILD [guessed]
1466
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467
_ACEOF
1468
fi
1469
1470
if test -n "$ac_init_help"; then
1471
  case $ac_init_help in
1472
     short | recursive ) echo "Configuration of las 1.2.1:";;
1473
   esac
1474
  cat <<\_ACEOF
1475
1476
Optional Features:
1477
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1478
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1479
  --disable-dependency-tracking  speeds up one-time build
1480
  --enable-dependency-tracking   do not reject slow dependency extractors
1481
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1482
  --enable-static[=PKGS]  build static libraries [default=yes]
1483
  --enable-fast-install[=PKGS]
1484
                          optimize for fast installation [default=yes]
1485
  --disable-libtool-lock  avoid locking (might break parallel builds)
1486
  --enable-debug=ARG      Enable debug compilation mode [yes|no],
1487
                          default=no
1488
1489
Optional Packages:
1490
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1491
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1492
  --with-pic              try to use only PIC/non-PIC objects [default=use
1493
                          both]
1494
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1495
  --with-gdal=ARG         Path to gdal-config
1496
  --with-geotiff=ARG      libgeotiff library to use (no or path)
1497
1498
Some influential environment variables:
1499
  CXX         C++ compiler command
1500
  CXXFLAGS    C++ compiler flags
1501
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1502
              nonstandard directory <lib dir>
1503
  LIBS        libraries to pass to the linker, e.g. -l<library>
1504
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1505
              you have headers in a nonstandard directory <include dir>
1506
  CXXCPP      C++ preprocessor
1507
  CC          C compiler command
1508
  CFLAGS      C compiler flags
1509
  CPP         C preprocessor
1510
1511
Use these variables to override the choices made by `configure' or to help
1512
it to find libraries and programs with nonstandard names/locations.
1513
1514
Report bugs to <hobu.inc@gmail.com>.
1515
_ACEOF
1516
ac_status=$?
1517
fi
1518
1519
if test "$ac_init_help" = "recursive"; then
1520
  # If there are subdirs, report their specific --help.
1521
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522
    test -d "$ac_dir" || continue
1523
    ac_builddir=.
1524
1525
case "$ac_dir" in
1526
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527
*)
1528
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1529
  # A ".." for each directory in $ac_dir_suffix.
1530
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1531
  case $ac_top_builddir_sub in
1532
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534
  esac ;;
1535
esac
1536
ac_abs_top_builddir=$ac_pwd
1537
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538
# for backward compatibility:
1539
ac_top_builddir=$ac_top_build_prefix
1540
1541
case $srcdir in
1542
  .)  # We are building in place.
1543
    ac_srcdir=.
1544
    ac_top_srcdir=$ac_top_builddir_sub
1545
    ac_abs_top_srcdir=$ac_pwd ;;
1546
  [\\/]* | ?:[\\/]* )  # Absolute name.
1547
    ac_srcdir=$srcdir$ac_dir_suffix;
1548
    ac_top_srcdir=$srcdir
1549
    ac_abs_top_srcdir=$srcdir ;;
1550
  *) # Relative name.
1551
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1553
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554
esac
1555
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557
    cd "$ac_dir" || { ac_status=$?; continue; }
1558
    # Check for guested configure.
1559
    if test -f "$ac_srcdir/configure.gnu"; then
1560
      echo &&
1561
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562
    elif test -f "$ac_srcdir/configure"; then
1563
      echo &&
1564
      $SHELL "$ac_srcdir/configure" --help=recursive
1565
    else
1566
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567
    fi || ac_status=$?
1568
    cd "$ac_pwd" || { ac_status=$?; break; }
1569
  done
1570
fi
1571
1572
test -n "$ac_init_help" && exit $ac_status
1573
if $ac_init_version; then
1574
  cat <<\_ACEOF
1575
las configure 1.2.1
1576
generated by GNU Autoconf 2.61
1577
1578
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1580
This configure script is free software; the Free Software Foundation
1581
gives unlimited permission to copy, distribute and modify it.
1582
_ACEOF
1583
  exit
1584
fi
1585
cat >config.log <<_ACEOF
1586
This file contains any messages produced by compilers while
1587
running configure, to aid debugging if configure makes a mistake.
1588
1589
It was created by las $as_me 1.2.1, which was
1590
generated by GNU Autoconf 2.61.  Invocation command line was
1591
1592
  $ $0 $@
1593
1594
_ACEOF
1595
exec 5>>config.log
1596
{
1597
cat <<_ASUNAME
1598
## --------- ##
1599
## Platform. ##
1600
## --------- ##
1601
1602
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1607
1608
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1610
1611
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1612
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1613
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1615
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1616
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1617
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1618
1619
_ASUNAME
1620
1621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622
for as_dir in $PATH
1623
do
1624
  IFS=$as_save_IFS
1625
  test -z "$as_dir" && as_dir=.
1626
  echo "PATH: $as_dir"
1627
done
1628
IFS=$as_save_IFS
1629
1630
} >&5
1631
1632
cat >&5 <<_ACEOF
1633
1634
1635
## ----------- ##
1636
## Core tests. ##
1637
## ----------- ##
1638
1639
_ACEOF
1640
1641
1642
# Keep a trace of the command line.
1643
# Strip out --no-create and --no-recursion so they do not pile up.
1644
# Strip out --silent because we don't want to record it for future runs.
1645
# Also quote any args containing shell meta-characters.
1646
# Make two passes to allow for proper duplicate-argument suppression.
1647
ac_configure_args=
1648
ac_configure_args0=
1649
ac_configure_args1=
1650
ac_must_keep_next=false
1651
for ac_pass in 1 2
1652
do
1653
  for ac_arg
1654
  do
1655
    case $ac_arg in
1656
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658
    | -silent | --silent | --silen | --sile | --sil)
1659
      continue ;;
1660
    *\'*)
1661
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662
    esac
1663
    case $ac_pass in
1664
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1665
    2)
1666
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667
      if test $ac_must_keep_next = true; then
1668
	ac_must_keep_next=false # Got value, back to normal.
1669
      else
1670
	case $ac_arg in
1671
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1672
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674
	  | -with-* | --with-* | -without-* | --without-* | --x)
1675
	    case "$ac_configure_args0 " in
1676
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677
	    esac
1678
	    ;;
1679
	  -* ) ac_must_keep_next=true ;;
1680
	esac
1681
      fi
1682
      ac_configure_args="$ac_configure_args '$ac_arg'"
1683
      ;;
1684
    esac
1685
  done
1686
done
1687
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1689
1690
# When interrupted or exit'd, cleanup temporary files, and complete
1691
# config.log.  We remove comments because anyway the quotes in there
1692
# would cause problems or look ugly.
1693
# WARNING: Use '\'' to represent an apostrophe within the trap.
1694
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695
trap 'exit_status=$?
1696
  # Save into config.log some information that might help in debugging.
1697
  {
1698
    echo
1699
1700
    cat <<\_ASBOX
1701
## ---------------- ##
1702
## Cache variables. ##
1703
## ---------------- ##
1704
_ASBOX
1705
    echo
1706
    # The following way of writing the cache mishandles newlines in values,
1707
(
1708
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709
    eval ac_val=\$$ac_var
1710
    case $ac_val in #(
1711
    *${as_nl}*)
1712
      case $ac_var in #(
1713
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1715
      esac
1716
      case $ac_var in #(
1717
      _ | IFS | as_nl) ;; #(
1718
      *) $as_unset $ac_var ;;
1719
      esac ;;
1720
    esac
1721
  done
1722
  (set) 2>&1 |
1723
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1724
    *${as_nl}ac_space=\ *)
1725
      sed -n \
1726
	"s/'\''/'\''\\\\'\'''\''/g;
1727
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1728
      ;; #(
1729
    *)
1730
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731
      ;;
1732
    esac |
1733
    sort
1734
)
1735
    echo
1736
1737
    cat <<\_ASBOX
1738
## ----------------- ##
1739
## Output variables. ##
1740
## ----------------- ##
1741
_ASBOX
1742
    echo
1743
    for ac_var in $ac_subst_vars
1744
    do
1745
      eval ac_val=\$$ac_var
1746
      case $ac_val in
1747
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748
      esac
1749
      echo "$ac_var='\''$ac_val'\''"
1750
    done | sort
1751
    echo
1752
1753
    if test -n "$ac_subst_files"; then
1754
      cat <<\_ASBOX
1755
## ------------------- ##
1756
## File substitutions. ##
1757
## ------------------- ##
1758
_ASBOX
1759
      echo
1760
      for ac_var in $ac_subst_files
1761
      do
1762
	eval ac_val=\$$ac_var
1763
	case $ac_val in
1764
	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765
	esac
1766
	echo "$ac_var='\''$ac_val'\''"
1767
      done | sort
1768
      echo
1769
    fi
1770
1771
    if test -s confdefs.h; then
1772
      cat <<\_ASBOX
1773
## ----------- ##
1774
## confdefs.h. ##
1775
## ----------- ##
1776
_ASBOX
1777
      echo
1778
      cat confdefs.h
1779
      echo
1780
    fi
1781
    test "$ac_signal" != 0 &&
1782
      echo "$as_me: caught signal $ac_signal"
1783
    echo "$as_me: exit $exit_status"
1784
  } >&5
1785
  rm -f core *.core core.conftest.* &&
1786
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1787
    exit $exit_status
1788
' 0
1789
for ac_signal in 1 2 13 15; do
1790
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1791
done
1792
ac_signal=0
1793
1794
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1795
rm -f -r conftest* confdefs.h
1796
1797
# Predefined preprocessor variables.
1798
1799
cat >>confdefs.h <<_ACEOF
1800
#define PACKAGE_NAME "$PACKAGE_NAME"
1801
_ACEOF
1802
1803
1804
cat >>confdefs.h <<_ACEOF
1805
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1806
_ACEOF
1807
1808
1809
cat >>confdefs.h <<_ACEOF
1810
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1811
_ACEOF
1812
1813
1814
cat >>confdefs.h <<_ACEOF
1815
#define PACKAGE_STRING "$PACKAGE_STRING"
1816
_ACEOF
1817
1818
1819
cat >>confdefs.h <<_ACEOF
1820
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821
_ACEOF
1822
1823
1824
# Let the site file select an alternate cache file if it wants to.
1825
# Prefer explicitly selected file to automatically selected ones.
1826
if test -n "$CONFIG_SITE"; then
1827
  set x "$CONFIG_SITE"
1828
elif test "x$prefix" != xNONE; then
1829
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1830
else
1831
  set x "$ac_default_prefix/share/config.site" \
1832
	"$ac_default_prefix/etc/config.site"
1833
fi
1834
shift
1835
for ac_site_file
1836
do
1837
  if test -r "$ac_site_file"; then
1838
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1839
echo "$as_me: loading site script $ac_site_file" >&6;}
1840
    sed 's/^/| /' "$ac_site_file" >&5
1841
    . "$ac_site_file"
1842
  fi
1843
done
1844
1845
if test -r "$cache_file"; then
1846
  # Some versions of bash will fail to source /dev/null (special
1847
  # files actually), so we avoid doing that.
1848
  if test -f "$cache_file"; then
1849
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1850
echo "$as_me: loading cache $cache_file" >&6;}
1851
    case $cache_file in
1852
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1853
      *)                      . "./$cache_file";;
1854
    esac
1855
  fi
1856
else
1857
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1858
echo "$as_me: creating cache $cache_file" >&6;}
1859
  >$cache_file
1860
fi
1861
1862
# Check that the precious variables saved in the cache have kept the same
1863
# value.
1864
ac_cache_corrupted=false
1865
for ac_var in $ac_precious_vars; do
1866
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1867
  eval ac_new_set=\$ac_env_${ac_var}_set
1868
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1869
  eval ac_new_val=\$ac_env_${ac_var}_value
1870
  case $ac_old_set,$ac_new_set in
1871
    set,)
1872
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1873
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1874
      ac_cache_corrupted=: ;;
1875
    ,set)
1876
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1877
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1878
      ac_cache_corrupted=: ;;
1879
    ,);;
1880
    *)
1881
      if test "x$ac_old_val" != "x$ac_new_val"; then
1882
	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884
	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1885
echo "$as_me:   former value:  $ac_old_val" >&2;}
1886
	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1887
echo "$as_me:   current value: $ac_new_val" >&2;}
1888
	ac_cache_corrupted=:
1889
      fi;;
1890
  esac
1891
  # Pass precious variables to config.status.
1892
  if test "$ac_new_set" = set; then
1893
    case $ac_new_val in
1894
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1895
    *) ac_arg=$ac_var=$ac_new_val ;;
1896
    esac
1897
    case " $ac_configure_args " in
1898
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1899
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1900
    esac
1901
  fi
1902
done
1903
if $ac_cache_corrupted; then
1904
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1905
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1906
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1907
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1908
   { (exit 1); exit 1; }; }
1909
fi
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
ac_ext=c
1936
ac_cpp='$CPP $CPPFLAGS'
1937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942
ac_aux_dir=
1943
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944
  if test -f "$ac_dir/install-sh"; then
1945
    ac_aux_dir=$ac_dir
1946
    ac_install_sh="$ac_aux_dir/install-sh -c"
1947
    break
1948
  elif test -f "$ac_dir/install.sh"; then
1949
    ac_aux_dir=$ac_dir
1950
    ac_install_sh="$ac_aux_dir/install.sh -c"
1951
    break
1952
  elif test -f "$ac_dir/shtool"; then
1953
    ac_aux_dir=$ac_dir
1954
    ac_install_sh="$ac_aux_dir/shtool install -c"
1955
    break
1956
  fi
1957
done
1958
if test -z "$ac_aux_dir"; then
1959
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1961
   { (exit 1); exit 1; }; }
1962
fi
1963
1964
# These three variables are undocumented and unsupported,
1965
# and are intended to be withdrawn in a future Autoconf release.
1966
# They can cause serious problems if a builder's source tree is in a directory
1967
# whose full name contains unusual characters.
1968
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1969
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1970
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1971
1972
1973
# Make sure we can run config.sub.
1974
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1975
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1976
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1977
   { (exit 1); exit 1; }; }
1978
1979
{ echo "$as_me:$LINENO: checking build system type" >&5
1980
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1981
if test "${ac_cv_build+set}" = set; then
1982
  echo $ECHO_N "(cached) $ECHO_C" >&6
1983
else
1984
  ac_build_alias=$build_alias
1985
test "x$ac_build_alias" = x &&
1986
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1987
test "x$ac_build_alias" = x &&
1988
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1989
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1990
   { (exit 1); exit 1; }; }
1991
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1992
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1993
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1994
   { (exit 1); exit 1; }; }
1995
1996
fi
1997
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1998
echo "${ECHO_T}$ac_cv_build" >&6; }
1999
case $ac_cv_build in
2000
*-*-*) ;;
2001
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2002
echo "$as_me: error: invalid value of canonical build" >&2;}
2003
   { (exit 1); exit 1; }; };;
2004
esac
2005
build=$ac_cv_build
2006
ac_save_IFS=$IFS; IFS='-'
2007
set x $ac_cv_build
2008
shift
2009
build_cpu=$1
2010
build_vendor=$2
2011
shift; shift
2012
# Remember, the first character of IFS is used to create $*,
2013
# except with old shells:
2014
build_os=$*
2015
IFS=$ac_save_IFS
2016
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2017
2018
2019
2020
RELEASE_VERSION=1.2.1
2021
2022
2023
2024
2025
2026
CFLAGS="-Wall -Wno-long-long -pedantic $CFLAGS"
2027
CXXFLAGS="-Wall -Wno-long-long -pedantic -std=c++98 $CXXFLAGS"
2028
2029
2030
am__api_version='1.10'
2031
2032
# Find a good install program.  We prefer a C program (faster),
2033
# so one script is as good as another.  But avoid the broken or
2034
# incompatible versions:
2035
# SysV /etc/install, /usr/sbin/install
2036
# SunOS /usr/etc/install
2037
# IRIX /sbin/install
2038
# AIX /bin/install
2039
# AmigaOS /C/install, which installs bootblocks on floppy discs
2040
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2041
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2042
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2043
# OS/2's system install, which has a completely different semantic
2044
# ./install, which can be erroneously created by make from ./install.sh.
2045
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2046
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2047
if test -z "$INSTALL"; then
2048
if test "${ac_cv_path_install+set}" = set; then
2049
  echo $ECHO_N "(cached) $ECHO_C" >&6
2050
else
2051
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052
for as_dir in $PATH
2053
do
2054
  IFS=$as_save_IFS
2055
  test -z "$as_dir" && as_dir=.
2056
  # Account for people who put trailing slashes in PATH elements.
2057
case $as_dir/ in
2058
  ./ | .// | /cC/* | \
2059
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2060
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2061
  /usr/ucb/* ) ;;
2062
  *)
2063
    # OSF1 and SCO ODT 3.0 have their own names for install.
2064
    # Don't use installbsd from OSF since it installs stuff as root
2065
    # by default.
2066
    for ac_prog in ginstall scoinst install; do
2067
      for ac_exec_ext in '' $ac_executable_extensions; do
2068
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2069
	  if test $ac_prog = install &&
2070
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2071
	    # AIX install.  It has an incompatible calling convention.
2072
	    :
2073
	  elif test $ac_prog = install &&
2074
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2075
	    # program-specific install script used by HP pwplus--don't use.
2076
	    :
2077
	  else
2078
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2079
	    break 3
2080
	  fi
2081
	fi
2082
      done
2083
    done
2084
    ;;
2085
esac
2086
done
2087
IFS=$as_save_IFS
2088
2089
2090
fi
2091
  if test "${ac_cv_path_install+set}" = set; then
2092
    INSTALL=$ac_cv_path_install
2093
  else
2094
    # As a last resort, use the slow shell script.  Don't cache a
2095
    # value for INSTALL within a source directory, because that will
2096
    # break other packages using the cache if that directory is
2097
    # removed, or if the value is a relative name.
2098
    INSTALL=$ac_install_sh
2099
  fi
2100
fi
2101
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2102
echo "${ECHO_T}$INSTALL" >&6; }
2103
2104
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2105
# It thinks the first close brace ends the variable substitution.
2106
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2107
2108
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2109
2110
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2111
2112
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2113
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2114
# Just in case
2115
sleep 1
2116
echo timestamp > conftest.file
2117
# Do `set' in a subshell so we don't clobber the current shell's
2118
# arguments.  Must try -L first in case configure is actually a
2119
# symlink; some systems play weird games with the mod time of symlinks
2120
# (eg FreeBSD returns the mod time of the symlink's containing
2121
# directory).
2122
if (
2123
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2124
   if test "$*" = "X"; then
2125
      # -L didn't work.
2126
      set X `ls -t $srcdir/configure conftest.file`
2127
   fi
2128
   rm -f conftest.file
2129
   if test "$*" != "X $srcdir/configure conftest.file" \
2130
      && test "$*" != "X conftest.file $srcdir/configure"; then
2131
2132
      # If neither matched, then we have a broken ls.  This can happen
2133
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2134
      # broken ls alias from the environment.  This has actually
2135
      # happened.  Such a system could not be considered "sane".
2136
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2137
alias in your environment" >&5
2138
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2139
alias in your environment" >&2;}
2140
   { (exit 1); exit 1; }; }
2141
   fi
2142
2143
   test "$2" = conftest.file
2144
   )
2145
then
2146
   # Ok.
2147
   :
2148
else
2149
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2150
Check your system clock" >&5
2151
echo "$as_me: error: newly created file is older than distributed files!
2152
Check your system clock" >&2;}
2153
   { (exit 1); exit 1; }; }
2154
fi
2155
{ echo "$as_me:$LINENO: result: yes" >&5
2156
echo "${ECHO_T}yes" >&6; }
2157
test "$program_prefix" != NONE &&
2158
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2159
# Use a double $ so make ignores it.
2160
test "$program_suffix" != NONE &&
2161
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2162
# Double any \ or $.  echo might interpret backslashes.
2163
# By default was `s,x,x', remove it if useless.
2164
cat <<\_ACEOF >conftest.sed
2165
s/[\\$]/&&/g;s/;s,x,x,$//
2166
_ACEOF
2167
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2168
rm -f conftest.sed
2169
2170
# expand $ac_aux_dir to an absolute path
2171
am_aux_dir=`cd $ac_aux_dir && pwd`
2172
2173
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2174
# Use eval to expand $SHELL
2175
if eval "$MISSING --run true"; then
2176
  am_missing_run="$MISSING --run "
2177
else
2178
  am_missing_run=
2179
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2180
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2181
fi
2182
2183
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2184
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2185
if test -z "$MKDIR_P"; then
2186
  if test "${ac_cv_path_mkdir+set}" = set; then
2187
  echo $ECHO_N "(cached) $ECHO_C" >&6
2188
else
2189
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2191
do
2192
  IFS=$as_save_IFS
2193
  test -z "$as_dir" && as_dir=.
2194
  for ac_prog in mkdir gmkdir; do
2195
	 for ac_exec_ext in '' $ac_executable_extensions; do
2196
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2197
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2198
	     'mkdir (GNU coreutils) '* | \
2199
	     'mkdir (coreutils) '* | \
2200
	     'mkdir (fileutils) '4.1*)
2201
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2202
	       break 3;;
2203
	   esac
2204
	 done
2205
       done
2206
done
2207
IFS=$as_save_IFS
2208
2209
fi
2210
2211
  if test "${ac_cv_path_mkdir+set}" = set; then
2212
    MKDIR_P="$ac_cv_path_mkdir -p"
2213
  else
2214
    # As a last resort, use the slow shell script.  Don't cache a
2215
    # value for MKDIR_P within a source directory, because that will
2216
    # break other packages using the cache if that directory is
2217
    # removed, or if the value is a relative name.
2218
    test -d ./--version && rmdir ./--version
2219
    MKDIR_P="$ac_install_sh -d"
2220
  fi
2221
fi
2222
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2223
echo "${ECHO_T}$MKDIR_P" >&6; }
2224
2225
mkdir_p="$MKDIR_P"
2226
case $mkdir_p in
2227
  [\\/$]* | ?:[\\/]*) ;;
2228
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2229
esac
2230
2231
for ac_prog in gawk mawk nawk awk
2232
do
2233
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2234
set dummy $ac_prog; ac_word=$2
2235
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2236
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2237
if test "${ac_cv_prog_AWK+set}" = set; then
2238
  echo $ECHO_N "(cached) $ECHO_C" >&6
2239
else
2240
  if test -n "$AWK"; then
2241
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2242
else
2243
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244
for as_dir in $PATH
2245
do
2246
  IFS=$as_save_IFS
2247
  test -z "$as_dir" && as_dir=.
2248
  for ac_exec_ext in '' $ac_executable_extensions; do
2249
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250
    ac_cv_prog_AWK="$ac_prog"
2251
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252
    break 2
2253
  fi
2254
done
2255
done
2256
IFS=$as_save_IFS
2257
2258
fi
2259
fi
2260
AWK=$ac_cv_prog_AWK
2261
if test -n "$AWK"; then
2262
  { echo "$as_me:$LINENO: result: $AWK" >&5
2263
echo "${ECHO_T}$AWK" >&6; }
2264
else
2265
  { echo "$as_me:$LINENO: result: no" >&5
2266
echo "${ECHO_T}no" >&6; }
2267
fi
2268
2269
2270
  test -n "$AWK" && break
2271
done
2272
2273
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2274
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2275
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2276
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2277
  echo $ECHO_N "(cached) $ECHO_C" >&6
2278
else
2279
  cat >conftest.make <<\_ACEOF
2280
SHELL = /bin/sh
2281
all:
2282
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2283
_ACEOF
2284
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2285
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2286
  *@@@%%%=?*=@@@%%%*)
2287
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2288
  *)
2289
    eval ac_cv_prog_make_${ac_make}_set=no;;
2290
esac
2291
rm -f conftest.make
2292
fi
2293
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2294
  { echo "$as_me:$LINENO: result: yes" >&5
2295
echo "${ECHO_T}yes" >&6; }
2296
  SET_MAKE=
2297
else
2298
  { echo "$as_me:$LINENO: result: no" >&5
2299
echo "${ECHO_T}no" >&6; }
2300
  SET_MAKE="MAKE=${MAKE-make}"
2301
fi
2302
2303
rm -rf .tst 2>/dev/null
2304
mkdir .tst 2>/dev/null
2305
if test -d .tst; then
2306
  am__leading_dot=.
2307
else
2308
  am__leading_dot=_
2309
fi
2310
rmdir .tst 2>/dev/null
2311
2312
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2313
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2314
  # is not polluted with repeated "-I."
2315
  am__isrc=' -I$(srcdir)'
2316
  # test to see if srcdir already configured
2317
  if test -f $srcdir/config.status; then
2318
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2319
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2320
   { (exit 1); exit 1; }; }
2321
  fi
2322
fi
2323
2324
# test whether we have cygpath
2325
if test -z "$CYGPATH_W"; then
2326
  if (cygpath --version) >/dev/null 2>/dev/null; then
2327
    CYGPATH_W='cygpath -w'
2328
  else
2329
    CYGPATH_W=echo
2330
  fi
2331
fi
2332
2333
2334
# Define the identity of the package.
2335
 PACKAGE='liblas-src'
2336
 VERSION='1.2.1'
2337
2338
2339
cat >>confdefs.h <<_ACEOF
2340
#define PACKAGE "$PACKAGE"
2341
_ACEOF
2342
2343
2344
cat >>confdefs.h <<_ACEOF
2345
#define VERSION "$VERSION"
2346
_ACEOF
2347
2348
# Some tools Automake needs.
2349
2350
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2351
2352
2353
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2354
2355
2356
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2357
2358
2359
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2360
2361
2362
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2363
2364
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2365
2366
# Installed binaries are usually stripped using `strip' when the user
2367
# run `make install-strip'.  However `strip' might not be the right
2368
# tool to use in cross-compilation environments, therefore Automake
2369
# will honor the `STRIP' environment variable to overrule this program.
2370
if test "$cross_compiling" != no; then
2371
  if test -n "$ac_tool_prefix"; then
2372
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2373
set dummy ${ac_tool_prefix}strip; ac_word=$2
2374
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2375
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376
if test "${ac_cv_prog_STRIP+set}" = set; then
2377
  echo $ECHO_N "(cached) $ECHO_C" >&6
2378
else
2379
  if test -n "$STRIP"; then
2380
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2381
else
2382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383
for as_dir in $PATH
2384
do
2385
  IFS=$as_save_IFS
2386
  test -z "$as_dir" && as_dir=.
2387
  for ac_exec_ext in '' $ac_executable_extensions; do
2388
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2390
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391
    break 2
2392
  fi
2393
done
2394
done
2395
IFS=$as_save_IFS
2396
2397
fi
2398
fi
2399
STRIP=$ac_cv_prog_STRIP
2400
if test -n "$STRIP"; then
2401
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2402
echo "${ECHO_T}$STRIP" >&6; }
2403
else
2404
  { echo "$as_me:$LINENO: result: no" >&5
2405
echo "${ECHO_T}no" >&6; }
2406
fi
2407
2408
2409
fi
2410
if test -z "$ac_cv_prog_STRIP"; then
2411
  ac_ct_STRIP=$STRIP
2412
  # Extract the first word of "strip", so it can be a program name with args.
2413
set dummy strip; ac_word=$2
2414
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2415
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2417
  echo $ECHO_N "(cached) $ECHO_C" >&6
2418
else
2419
  if test -n "$ac_ct_STRIP"; then
2420
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2421
else
2422
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423
for as_dir in $PATH
2424
do
2425
  IFS=$as_save_IFS
2426
  test -z "$as_dir" && as_dir=.
2427
  for ac_exec_ext in '' $ac_executable_extensions; do
2428
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429
    ac_cv_prog_ac_ct_STRIP="strip"
2430
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431
    break 2
2432
  fi
2433
done
2434
done
2435
IFS=$as_save_IFS
2436
2437
fi
2438
fi
2439
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2440
if test -n "$ac_ct_STRIP"; then
2441
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2442
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2443
else
2444
  { echo "$as_me:$LINENO: result: no" >&5
2445
echo "${ECHO_T}no" >&6; }
2446
fi
2447
2448
  if test "x$ac_ct_STRIP" = x; then
2449
    STRIP=":"
2450
  else
2451
    case $cross_compiling:$ac_tool_warned in
2452
yes:)
2453
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2454
whose name does not start with the host triplet.  If you think this
2455
configuration is useful to you, please write to autoconf@gnu.org." >&5
2456
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2457
whose name does not start with the host triplet.  If you think this
2458
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2459
ac_tool_warned=yes ;;
2460
esac
2461
    STRIP=$ac_ct_STRIP
2462
  fi
2463
else
2464
  STRIP="$ac_cv_prog_STRIP"
2465
fi
2466
2467
fi
2468
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2469
2470
# We need awk for the "check" target.  The system "awk" is bad on
2471
# some platforms.
2472
# Always define AMTAR for backward compatibility.
2473
2474
AMTAR=${AMTAR-"${am_missing_run}tar"}
2475
2476
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2477
2478
2479
2480
2481
2482
ac_ext=cpp
2483
ac_cpp='$CXXCPP $CPPFLAGS'
2484
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2487
if test -z "$CXX"; then
2488
  if test -n "$CCC"; then
2489
    CXX=$CCC
2490
  else
2491
    if test -n "$ac_tool_prefix"; then
2492
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2493
  do
2494
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2495
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2496
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2497
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498
if test "${ac_cv_prog_CXX+set}" = set; then
2499
  echo $ECHO_N "(cached) $ECHO_C" >&6
2500
else
2501
  if test -n "$CXX"; then
2502
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2503
else
2504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505
for as_dir in $PATH
2506
do
2507
  IFS=$as_save_IFS
2508
  test -z "$as_dir" && as_dir=.
2509
  for ac_exec_ext in '' $ac_executable_extensions; do
2510
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2512
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513
    break 2
2514
  fi
2515
done
2516
done
2517
IFS=$as_save_IFS
2518
2519
fi
2520
fi
2521
CXX=$ac_cv_prog_CXX
2522
if test -n "$CXX"; then
2523
  { echo "$as_me:$LINENO: result: $CXX" >&5
2524
echo "${ECHO_T}$CXX" >&6; }
2525
else
2526
  { echo "$as_me:$LINENO: result: no" >&5
2527
echo "${ECHO_T}no" >&6; }
2528
fi
2529
2530
2531
    test -n "$CXX" && break
2532
  done
2533
fi
2534
if test -z "$CXX"; then
2535
  ac_ct_CXX=$CXX
2536
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2537
do
2538
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2539
set dummy $ac_prog; ac_word=$2
2540
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2541
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2542
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2543
  echo $ECHO_N "(cached) $ECHO_C" >&6
2544
else
2545
  if test -n "$ac_ct_CXX"; then
2546
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2547
else
2548
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549
for as_dir in $PATH
2550
do
2551
  IFS=$as_save_IFS
2552
  test -z "$as_dir" && as_dir=.
2553
  for ac_exec_ext in '' $ac_executable_extensions; do
2554
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2556
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557
    break 2
2558
  fi
2559
done
2560
done
2561
IFS=$as_save_IFS
2562
2563
fi
2564
fi
2565
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2566
if test -n "$ac_ct_CXX"; then
2567
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2568
echo "${ECHO_T}$ac_ct_CXX" >&6; }
2569
else
2570
  { echo "$as_me:$LINENO: result: no" >&5
2571
echo "${ECHO_T}no" >&6; }
2572
fi
2573
2574
2575
  test -n "$ac_ct_CXX" && break
2576
done
2577
2578
  if test "x$ac_ct_CXX" = x; then
2579
    CXX="g++"
2580
  else
2581
    case $cross_compiling:$ac_tool_warned in
2582
yes:)
2583
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2584
whose name does not start with the host triplet.  If you think this
2585
configuration is useful to you, please write to autoconf@gnu.org." >&5
2586
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2587
whose name does not start with the host triplet.  If you think this
2588
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2589
ac_tool_warned=yes ;;
2590
esac
2591
    CXX=$ac_ct_CXX
2592
  fi
2593
fi
2594
2595
  fi
2596
fi
2597
# Provide some information about the compiler.
2598
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2599
ac_compiler=`set X $ac_compile; echo $2`
2600
{ (ac_try="$ac_compiler --version >&5"
2601
case "(($ac_try" in
2602
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603
  *) ac_try_echo=$ac_try;;
2604
esac
2605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606
  (eval "$ac_compiler --version >&5") 2>&5
2607
  ac_status=$?
2608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609
  (exit $ac_status); }
2610
{ (ac_try="$ac_compiler -v >&5"
2611
case "(($ac_try" in
2612
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613
  *) ac_try_echo=$ac_try;;
2614
esac
2615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616
  (eval "$ac_compiler -v >&5") 2>&5
2617
  ac_status=$?
2618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619
  (exit $ac_status); }
2620
{ (ac_try="$ac_compiler -V >&5"
2621
case "(($ac_try" in
2622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623
  *) ac_try_echo=$ac_try;;
2624
esac
2625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626
  (eval "$ac_compiler -V >&5") 2>&5
2627
  ac_status=$?
2628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629
  (exit $ac_status); }
2630
2631
cat >conftest.$ac_ext <<_ACEOF
2632
/* confdefs.h.  */
2633
_ACEOF
2634
cat confdefs.h >>conftest.$ac_ext
2635
cat >>conftest.$ac_ext <<_ACEOF
2636
/* end confdefs.h.  */
2637
2638
int
2639
main ()
2640
{
2641
2642
  ;
2643
  return 0;
2644
}
2645
_ACEOF
2646
ac_clean_files_save=$ac_clean_files
2647
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2648
# Try to create an executable without -o first, disregard a.out.
2649
# It will help us diagnose broken compilers, and finding out an intuition
2650
# of exeext.
2651
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2652
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2653
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2654
#
2655
# List of possible output files, starting from the most likely.
2656
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2657
# only as a last resort.  b.out is created by i960 compilers.
2658
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2659
#
2660
# The IRIX 6 linker writes into existing files which may not be
2661
# executable, retaining their permissions.  Remove them first so a
2662
# subsequent execution test works.
2663
ac_rmfiles=
2664
for ac_file in $ac_files
2665
do
2666
  case $ac_file in
2667
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2668
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2669
  esac
2670
done
2671
rm -f $ac_rmfiles
2672
2673
if { (ac_try="$ac_link_default"
2674
case "(($ac_try" in
2675
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676
  *) ac_try_echo=$ac_try;;
2677
esac
2678
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679
  (eval "$ac_link_default") 2>&5
2680
  ac_status=$?
2681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682
  (exit $ac_status); }; then
2683
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2684
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2685
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2686
# so that the user can short-circuit this test for compilers unknown to
2687
# Autoconf.
2688
for ac_file in $ac_files ''
2689
do
2690
  test -f "$ac_file" || continue
2691
  case $ac_file in
2692
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2693
	;;
2694
    [ab].out )
2695
	# We found the default executable, but exeext='' is most
2696
	# certainly right.
2697
	break;;
2698
    *.* )
2699
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2700
	then :; else
2701
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2702
	fi
2703
	# We set ac_cv_exeext here because the later test for it is not
2704
	# safe: cross compilers may not add the suffix if given an `-o'
2705
	# argument, so we may need to know it at that point already.
2706
	# Even if this section looks crufty: it has the advantage of
2707
	# actually working.
2708
	break;;
2709
    * )
2710
	break;;
2711
  esac
2712
done
2713
test "$ac_cv_exeext" = no && ac_cv_exeext=
2714
2715
else
2716
  ac_file=''
2717
fi
2718
2719
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2720
echo "${ECHO_T}$ac_file" >&6; }
2721
if test -z "$ac_file"; then
2722
  echo "$as_me: failed program was:" >&5
2723
sed 's/^/| /' conftest.$ac_ext >&5
2724
2725
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2726
See \`config.log' for more details." >&5
2727
echo "$as_me: error: C++ compiler cannot create executables
2728
See \`config.log' for more details." >&2;}
2729
   { (exit 77); exit 77; }; }
2730
fi
2731
2732
ac_exeext=$ac_cv_exeext
2733
2734
# Check that the compiler produces executables we can run.  If not, either
2735
# the compiler is broken, or we cross compile.
2736
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2737
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2738
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2739
# If not cross compiling, check that we can run a simple program.
2740
if test "$cross_compiling" != yes; then
2741
  if { ac_try='./$ac_file'
2742
  { (case "(($ac_try" in
2743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744
  *) ac_try_echo=$ac_try;;
2745
esac
2746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747
  (eval "$ac_try") 2>&5
2748
  ac_status=$?
2749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750
  (exit $ac_status); }; }; then
2751
    cross_compiling=no
2752
  else
2753
    if test "$cross_compiling" = maybe; then
2754
	cross_compiling=yes
2755
    else
2756
	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2757
If you meant to cross compile, use \`--host'.
2758
See \`config.log' for more details." >&5
2759
echo "$as_me: error: cannot run C++ compiled programs.
2760
If you meant to cross compile, use \`--host'.
2761
See \`config.log' for more details." >&2;}
2762
   { (exit 1); exit 1; }; }
2763
    fi
2764
  fi
2765
fi
2766
{ echo "$as_me:$LINENO: result: yes" >&5
2767
echo "${ECHO_T}yes" >&6; }
2768
2769
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2770
ac_clean_files=$ac_clean_files_save
2771
# Check that the compiler produces executables we can run.  If not, either
2772
# the compiler is broken, or we cross compile.
2773
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2774
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2775
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2776
echo "${ECHO_T}$cross_compiling" >&6; }
2777
2778
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2779
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2780
if { (ac_try="$ac_link"
2781
case "(($ac_try" in
2782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783
  *) ac_try_echo=$ac_try;;
2784
esac
2785
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786
  (eval "$ac_link") 2>&5
2787
  ac_status=$?
2788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789
  (exit $ac_status); }; then
2790
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2791
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2792
# work properly (i.e., refer to `conftest.exe'), while it won't with
2793
# `rm'.
2794
for ac_file in conftest.exe conftest conftest.*; do
2795
  test -f "$ac_file" || continue
2796
  case $ac_file in
2797
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2798
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2799
	  break;;
2800
    * ) break;;
2801
  esac
2802
done
2803
else
2804
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2805
See \`config.log' for more details." >&5
2806
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2807
See \`config.log' for more details." >&2;}
2808
   { (exit 1); exit 1; }; }
2809
fi
2810
2811
rm -f conftest$ac_cv_exeext
2812
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2813
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2814
2815
rm -f conftest.$ac_ext
2816
EXEEXT=$ac_cv_exeext
2817
ac_exeext=$EXEEXT
2818
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2819
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2820
if test "${ac_cv_objext+set}" = set; then
2821
  echo $ECHO_N "(cached) $ECHO_C" >&6
2822
else
2823
  cat >conftest.$ac_ext <<_ACEOF
2824
/* confdefs.h.  */
2825
_ACEOF
2826
cat confdefs.h >>conftest.$ac_ext
2827
cat >>conftest.$ac_ext <<_ACEOF
2828
/* end confdefs.h.  */
2829
2830
int
2831
main ()
2832
{
2833
2834
  ;
2835
  return 0;
2836
}
2837
_ACEOF
2838
rm -f conftest.o conftest.obj
2839
if { (ac_try="$ac_compile"
2840
case "(($ac_try" in
2841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842
  *) ac_try_echo=$ac_try;;
2843
esac
2844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845
  (eval "$ac_compile") 2>&5
2846
  ac_status=$?
2847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
  (exit $ac_status); }; then
2849
  for ac_file in conftest.o conftest.obj conftest.*; do
2850
  test -f "$ac_file" || continue;
2851
  case $ac_file in
2852
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2853
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2854
       break;;
2855
  esac
2856
done
2857
else
2858
  echo "$as_me: failed program was:" >&5
2859
sed 's/^/| /' conftest.$ac_ext >&5
2860
2861
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2862
See \`config.log' for more details." >&5
2863
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2864
See \`config.log' for more details." >&2;}
2865
   { (exit 1); exit 1; }; }
2866
fi
2867
2868
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2869
fi
2870
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2871
echo "${ECHO_T}$ac_cv_objext" >&6; }
2872
OBJEXT=$ac_cv_objext
2873
ac_objext=$OBJEXT
2874
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2875
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2876
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2877
  echo $ECHO_N "(cached) $ECHO_C" >&6
2878
else
2879
  cat >conftest.$ac_ext <<_ACEOF
2880
/* confdefs.h.  */
2881
_ACEOF
2882
cat confdefs.h >>conftest.$ac_ext
2883
cat >>conftest.$ac_ext <<_ACEOF
2884
/* end confdefs.h.  */
2885
2886
int
2887
main ()
2888
{
2889
#ifndef __GNUC__
2890
       choke me
2891
#endif
2892
2893
  ;
2894
  return 0;
2895
}
2896
_ACEOF
2897
rm -f conftest.$ac_objext
2898
if { (ac_try="$ac_compile"
2899
case "(($ac_try" in
2900
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901
  *) ac_try_echo=$ac_try;;
2902
esac
2903
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904
  (eval "$ac_compile") 2>conftest.er1
2905
  ac_status=$?
2906
  grep -v '^ *+' conftest.er1 >conftest.err
2907
  rm -f conftest.er1
2908
  cat conftest.err >&5
2909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910
  (exit $ac_status); } && {
2911
	 test -z "$ac_cxx_werror_flag" ||
2912
	 test ! -s conftest.err
2913
       } && test -s conftest.$ac_objext; then
2914
  ac_compiler_gnu=yes
2915
else
2916
  echo "$as_me: failed program was:" >&5
2917
sed 's/^/| /' conftest.$ac_ext >&5
2918
2919
	ac_compiler_gnu=no
2920
fi
2921
2922
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2924
2925
fi
2926
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2927
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2928
GXX=`test $ac_compiler_gnu = yes && echo yes`
2929
ac_test_CXXFLAGS=${CXXFLAGS+set}
2930
ac_save_CXXFLAGS=$CXXFLAGS
2931
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2932
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2933
if test "${ac_cv_prog_cxx_g+set}" = set; then
2934
  echo $ECHO_N "(cached) $ECHO_C" >&6
2935
else
2936
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2937
   ac_cxx_werror_flag=yes
2938
   ac_cv_prog_cxx_g=no
2939
   CXXFLAGS="-g"
2940
   cat >conftest.$ac_ext <<_ACEOF
2941
/* confdefs.h.  */
2942
_ACEOF
2943
cat confdefs.h >>conftest.$ac_ext
2944
cat >>conftest.$ac_ext <<_ACEOF
2945
/* end confdefs.h.  */
2946
2947
int
2948
main ()
2949
{
2950
2951
  ;
2952
  return 0;
2953
}
2954
_ACEOF
2955
rm -f conftest.$ac_objext
2956
if { (ac_try="$ac_compile"
2957
case "(($ac_try" in
2958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959
  *) ac_try_echo=$ac_try;;
2960
esac
2961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962
  (eval "$ac_compile") 2>conftest.er1
2963
  ac_status=$?
2964
  grep -v '^ *+' conftest.er1 >conftest.err
2965
  rm -f conftest.er1
2966
  cat conftest.err >&5
2967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968
  (exit $ac_status); } && {
2969
	 test -z "$ac_cxx_werror_flag" ||
2970
	 test ! -s conftest.err
2971
       } && test -s conftest.$ac_objext; then
2972
  ac_cv_prog_cxx_g=yes
2973
else
2974
  echo "$as_me: failed program was:" >&5
2975
sed 's/^/| /' conftest.$ac_ext >&5
2976
2977
	CXXFLAGS=""
2978
      cat >conftest.$ac_ext <<_ACEOF
2979
/* confdefs.h.  */
2980
_ACEOF
2981
cat confdefs.h >>conftest.$ac_ext
2982
cat >>conftest.$ac_ext <<_ACEOF
2983
/* end confdefs.h.  */
2984
2985
int
2986
main ()
2987
{
2988
2989
  ;
2990
  return 0;
2991
}
2992
_ACEOF
2993
rm -f conftest.$ac_objext
2994
if { (ac_try="$ac_compile"
2995
case "(($ac_try" in
2996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997
  *) ac_try_echo=$ac_try;;
2998
esac
2999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000
  (eval "$ac_compile") 2>conftest.er1
3001
  ac_status=$?
3002
  grep -v '^ *+' conftest.er1 >conftest.err
3003
  rm -f conftest.er1
3004
  cat conftest.err >&5
3005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006
  (exit $ac_status); } && {
3007
	 test -z "$ac_cxx_werror_flag" ||
3008
	 test ! -s conftest.err
3009
       } && test -s conftest.$ac_objext; then
3010
  :
3011
else
3012
  echo "$as_me: failed program was:" >&5
3013
sed 's/^/| /' conftest.$ac_ext >&5
3014
3015
	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3016
	 CXXFLAGS="-g"
3017
	 cat >conftest.$ac_ext <<_ACEOF
3018
/* confdefs.h.  */
3019
_ACEOF
3020
cat confdefs.h >>conftest.$ac_ext
3021
cat >>conftest.$ac_ext <<_ACEOF
3022
/* end confdefs.h.  */
3023
3024
int
3025
main ()
3026
{
3027
3028
  ;
3029
  return 0;
3030
}
3031
_ACEOF
3032
rm -f conftest.$ac_objext
3033
if { (ac_try="$ac_compile"
3034
case "(($ac_try" in
3035
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036
  *) ac_try_echo=$ac_try;;
3037
esac
3038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039
  (eval "$ac_compile") 2>conftest.er1
3040
  ac_status=$?
3041
  grep -v '^ *+' conftest.er1 >conftest.err
3042
  rm -f conftest.er1
3043
  cat conftest.err >&5
3044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045
  (exit $ac_status); } && {
3046
	 test -z "$ac_cxx_werror_flag" ||
3047
	 test ! -s conftest.err
3048
       } && test -s conftest.$ac_objext; then
3049
  ac_cv_prog_cxx_g=yes
3050
else
3051
  echo "$as_me: failed program was:" >&5
3052
sed 's/^/| /' conftest.$ac_ext >&5
3053
3054
3055
fi
3056
3057
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058
fi
3059
3060
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061
fi
3062
3063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3065
fi
3066
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3067
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3068
if test "$ac_test_CXXFLAGS" = set; then
3069
  CXXFLAGS=$ac_save_CXXFLAGS
3070
elif test $ac_cv_prog_cxx_g = yes; then
3071
  if test "$GXX" = yes; then
3072
    CXXFLAGS="-g -O2"
3073
  else
3074
    CXXFLAGS="-g"
3075
  fi
3076
else
3077
  if test "$GXX" = yes; then
3078
    CXXFLAGS="-O2"
3079
  else
3080
    CXXFLAGS=
3081
  fi
3082
fi
3083
ac_ext=c
3084
ac_cpp='$CPP $CPPFLAGS'
3085
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088
DEPDIR="${am__leading_dot}deps"
3089
3090
ac_config_commands="$ac_config_commands depfiles"
3091
3092
3093
am_make=${MAKE-make}
3094
cat > confinc << 'END'
3095
am__doit:
3096
	@echo done
3097
.PHONY: am__doit
3098
END
3099
# If we don't find an include directive, just comment out the code.
3100
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3101
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3102
am__include="#"
3103
am__quote=
3104
_am_result=none
3105
# First try GNU make style include.
3106
echo "include confinc" > confmf
3107
# We grep out `Entering directory' and `Leaving directory'
3108
# messages which can occur if `w' ends up in MAKEFLAGS.
3109
# In particular we don't look at `^make:' because GNU make might
3110
# be invoked under some other name (usually "gmake"), in which
3111
# case it prints its new name instead of `make'.
3112
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3113
   am__include=include
3114
   am__quote=
3115
   _am_result=GNU
3116
fi
3117
# Now try BSD make style include.
3118
if test "$am__include" = "#"; then
3119
   echo '.include "confinc"' > confmf
3120
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3121
      am__include=.include
3122
      am__quote="\""
3123
      _am_result=BSD
3124
   fi
3125
fi
3126
3127
3128
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3129
echo "${ECHO_T}$_am_result" >&6; }
3130
rm -f confinc confmf
3131
3132
# Check whether --enable-dependency-tracking was given.
3133
if test "${enable_dependency_tracking+set}" = set; then
3134
  enableval=$enable_dependency_tracking;
3135
fi
3136
3137
if test "x$enable_dependency_tracking" != xno; then
3138
  am_depcomp="$ac_aux_dir/depcomp"
3139
  AMDEPBACKSLASH='\'
3140
fi
3141
 if test "x$enable_dependency_tracking" != xno; then
3142
  AMDEP_TRUE=
3143
  AMDEP_FALSE='#'
3144
else
3145
  AMDEP_TRUE='#'
3146
  AMDEP_FALSE=
3147
fi
3148
3149
3150
3151
depcc="$CXX"  am_compiler_list=
3152
3153
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3154
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3155
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3156
  echo $ECHO_N "(cached) $ECHO_C" >&6
3157
else
3158
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3159
  # We make a subdir and do the tests there.  Otherwise we can end up
3160
  # making bogus files that we don't know about and never remove.  For
3161
  # instance it was reported that on HP-UX the gcc test will end up
3162
  # making a dummy file named `D' -- because `-MD' means `put the output
3163
  # in D'.
3164
  mkdir conftest.dir
3165
  # Copy depcomp to subdir because otherwise we won't find it if we're
3166
  # using a relative directory.
3167
  cp "$am_depcomp" conftest.dir
3168
  cd conftest.dir
3169
  # We will build objects and dependencies in a subdirectory because
3170
  # it helps to detect inapplicable dependency modes.  For instance
3171
  # both Tru64's cc and ICC support -MD to output dependencies as a
3172
  # side effect of compilation, but ICC will put the dependencies in
3173
  # the current directory while Tru64 will put them in the object
3174
  # directory.
3175
  mkdir sub
3176
3177
  am_cv_CXX_dependencies_compiler_type=none
3178
  if test "$am_compiler_list" = ""; then
3179
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3180
  fi
3181
  for depmode in $am_compiler_list; do
3182
    # Setup a source with many dependencies, because some compilers
3183
    # like to wrap large dependency lists on column 80 (with \), and
3184
    # we should not choose a depcomp mode which is confused by this.
3185
    #
3186
    # We need to recreate these files for each test, as the compiler may
3187
    # overwrite some of them when testing with obscure command lines.
3188
    # This happens at least with the AIX C compiler.
3189
    : > sub/conftest.c
3190
    for i in 1 2 3 4 5 6; do
3191
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3192
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3193
      # Solaris 8's {/usr,}/bin/sh.
3194
      touch sub/conftst$i.h
3195
    done
3196
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3197
3198
    case $depmode in
3199
    nosideeffect)
3200
      # after this tag, mechanisms are not by side-effect, so they'll
3201
      # only be used when explicitly requested
3202
      if test "x$enable_dependency_tracking" = xyes; then
3203
	continue
3204
      else
3205
	break
3206
      fi
3207
      ;;
3208
    none) break ;;
3209
    esac
3210
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3211
    # mode.  It turns out that the SunPro C++ compiler does not properly
3212
    # handle `-M -o', and we need to detect this.
3213
    if depmode=$depmode \
3214
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3215
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3216
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3217
         >/dev/null 2>conftest.err &&
3218
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3219
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3220
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3221
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3222
      # icc doesn't choke on unknown options, it will just issue warnings
3223
      # or remarks (even with -Werror).  So we grep stderr for any message
3224
      # that says an option was ignored or not supported.
3225
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3226
      #   icc: Command line warning: ignoring option '-M'; no argument required
3227
      # The diagnosis changed in icc 8.0:
3228
      #   icc: Command line remark: option '-MP' not supported
3229
      if (grep 'ignoring option' conftest.err ||
3230
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3231
        am_cv_CXX_dependencies_compiler_type=$depmode
3232
        break
3233
      fi
3234
    fi
3235
  done
3236
3237
  cd ..
3238
  rm -rf conftest.dir
3239
else
3240
  am_cv_CXX_dependencies_compiler_type=none
3241
fi
3242
3243
fi
3244
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3245
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3246
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3247
3248
 if
3249
  test "x$enable_dependency_tracking" != xno \
3250
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3251
  am__fastdepCXX_TRUE=
3252
  am__fastdepCXX_FALSE='#'
3253
else
3254
  am__fastdepCXX_TRUE='#'
3255
  am__fastdepCXX_FALSE=
3256
fi
3257
3258
3259
ac_ext=cpp
3260
ac_cpp='$CXXCPP $CPPFLAGS'
3261
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3264
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3265
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3266
if test -z "$CXXCPP"; then
3267
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3268
  echo $ECHO_N "(cached) $ECHO_C" >&6
3269
else
3270
      # Double quotes because CXXCPP needs to be expanded
3271
    for CXXCPP in "$CXX -E" "/lib/cpp"
3272
    do
3273
      ac_preproc_ok=false
3274
for ac_cxx_preproc_warn_flag in '' yes
3275
do
3276
  # Use a header file that comes with gcc, so configuring glibc
3277
  # with a fresh cross-compiler works.
3278
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3279
  # <limits.h> exists even on freestanding compilers.
3280
  # On the NeXT, cc -E runs the code through the compiler's parser,
3281
  # not just through cpp. "Syntax error" is here to catch this case.
3282
  cat >conftest.$ac_ext <<_ACEOF
3283
/* confdefs.h.  */
3284
_ACEOF
3285
cat confdefs.h >>conftest.$ac_ext
3286
cat >>conftest.$ac_ext <<_ACEOF
3287
/* end confdefs.h.  */
3288
#ifdef __STDC__
3289
# include <limits.h>
3290
#else
3291
# include <assert.h>
3292
#endif
3293
		     Syntax error
3294
_ACEOF
3295
if { (ac_try="$ac_cpp conftest.$ac_ext"
3296
case "(($ac_try" in
3297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298
  *) ac_try_echo=$ac_try;;
3299
esac
3300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3302
  ac_status=$?
3303
  grep -v '^ *+' conftest.er1 >conftest.err
3304
  rm -f conftest.er1
3305
  cat conftest.err >&5
3306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307
  (exit $ac_status); } >/dev/null && {
3308
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3309
	 test ! -s conftest.err
3310
       }; then
3311
  :
3312
else
3313
  echo "$as_me: failed program was:" >&5
3314
sed 's/^/| /' conftest.$ac_ext >&5
3315
3316
  # Broken: fails on valid input.
3317
continue
3318
fi
3319
3320
rm -f conftest.err conftest.$ac_ext
3321
3322
  # OK, works on sane cases.  Now check whether nonexistent headers
3323
  # can be detected and how.
3324
  cat >conftest.$ac_ext <<_ACEOF
3325
/* confdefs.h.  */
3326
_ACEOF
3327
cat confdefs.h >>conftest.$ac_ext
3328
cat >>conftest.$ac_ext <<_ACEOF
3329
/* end confdefs.h.  */
3330
#include <ac_nonexistent.h>
3331
_ACEOF
3332
if { (ac_try="$ac_cpp conftest.$ac_ext"
3333
case "(($ac_try" in
3334
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335
  *) ac_try_echo=$ac_try;;
3336
esac
3337
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3339
  ac_status=$?
3340
  grep -v '^ *+' conftest.er1 >conftest.err
3341
  rm -f conftest.er1
3342
  cat conftest.err >&5
3343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344
  (exit $ac_status); } >/dev/null && {
3345
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3346
	 test ! -s conftest.err
3347
       }; then
3348
  # Broken: success on invalid input.
3349
continue
3350
else
3351
  echo "$as_me: failed program was:" >&5
3352
sed 's/^/| /' conftest.$ac_ext >&5
3353
3354
  # Passes both tests.
3355
ac_preproc_ok=:
3356
break
3357
fi
3358
3359
rm -f conftest.err conftest.$ac_ext
3360
3361
done
3362
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363
rm -f conftest.err conftest.$ac_ext
3364
if $ac_preproc_ok; then
3365
  break
3366
fi
3367
3368
    done
3369
    ac_cv_prog_CXXCPP=$CXXCPP
3370
3371
fi
3372
  CXXCPP=$ac_cv_prog_CXXCPP
3373
else
3374
  ac_cv_prog_CXXCPP=$CXXCPP
3375
fi
3376
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
3377
echo "${ECHO_T}$CXXCPP" >&6; }
3378
ac_preproc_ok=false
3379
for ac_cxx_preproc_warn_flag in '' yes
3380
do
3381
  # Use a header file that comes with gcc, so configuring glibc
3382
  # with a fresh cross-compiler works.
3383
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384
  # <limits.h> exists even on freestanding compilers.
3385
  # On the NeXT, cc -E runs the code through the compiler's parser,
3386
  # not just through cpp. "Syntax error" is here to catch this case.
3387
  cat >conftest.$ac_ext <<_ACEOF
3388
/* confdefs.h.  */
3389
_ACEOF
3390
cat confdefs.h >>conftest.$ac_ext
3391
cat >>conftest.$ac_ext <<_ACEOF
3392
/* end confdefs.h.  */
3393
#ifdef __STDC__
3394
# include <limits.h>
3395
#else
3396
# include <assert.h>
3397
#endif
3398
		     Syntax error
3399
_ACEOF
3400
if { (ac_try="$ac_cpp conftest.$ac_ext"
3401
case "(($ac_try" in
3402
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403
  *) ac_try_echo=$ac_try;;
3404
esac
3405
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407
  ac_status=$?
3408
  grep -v '^ *+' conftest.er1 >conftest.err
3409
  rm -f conftest.er1
3410
  cat conftest.err >&5
3411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412
  (exit $ac_status); } >/dev/null && {
3413
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3414
	 test ! -s conftest.err
3415
       }; then
3416
  :
3417
else
3418
  echo "$as_me: failed program was:" >&5
3419
sed 's/^/| /' conftest.$ac_ext >&5
3420
3421
  # Broken: fails on valid input.
3422
continue
3423
fi
3424
3425
rm -f conftest.err conftest.$ac_ext
3426
3427
  # OK, works on sane cases.  Now check whether nonexistent headers
3428
  # can be detected and how.
3429
  cat >conftest.$ac_ext <<_ACEOF
3430
/* confdefs.h.  */
3431
_ACEOF
3432
cat confdefs.h >>conftest.$ac_ext
3433
cat >>conftest.$ac_ext <<_ACEOF
3434
/* end confdefs.h.  */
3435
#include <ac_nonexistent.h>
3436
_ACEOF
3437
if { (ac_try="$ac_cpp conftest.$ac_ext"
3438
case "(($ac_try" in
3439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440
  *) ac_try_echo=$ac_try;;
3441
esac
3442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3444
  ac_status=$?
3445
  grep -v '^ *+' conftest.er1 >conftest.err
3446
  rm -f conftest.er1
3447
  cat conftest.err >&5
3448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449
  (exit $ac_status); } >/dev/null && {
3450
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3451
	 test ! -s conftest.err
3452
       }; then
3453
  # Broken: success on invalid input.
3454
continue
3455
else
3456
  echo "$as_me: failed program was:" >&5
3457
sed 's/^/| /' conftest.$ac_ext >&5
3458
3459
  # Passes both tests.
3460
ac_preproc_ok=:
3461
break
3462
fi
3463
3464
rm -f conftest.err conftest.$ac_ext
3465
3466
done
3467
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3468
rm -f conftest.err conftest.$ac_ext
3469
if $ac_preproc_ok; then
3470
  :
3471
else
3472
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3473
See \`config.log' for more details." >&5
3474
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3475
See \`config.log' for more details." >&2;}
3476
   { (exit 1); exit 1; }; }
3477
fi
3478
3479
ac_ext=c
3480
ac_cpp='$CPP $CPPFLAGS'
3481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484
3485
# Find a good install program.  We prefer a C program (faster),
3486
# so one script is as good as another.  But avoid the broken or
3487
# incompatible versions:
3488
# SysV /etc/install, /usr/sbin/install
3489
# SunOS /usr/etc/install
3490
# IRIX /sbin/install
3491
# AIX /bin/install
3492
# AmigaOS /C/install, which installs bootblocks on floppy discs
3493
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3494
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3495
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3496
# OS/2's system install, which has a completely different semantic
3497
# ./install, which can be erroneously created by make from ./install.sh.
3498
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3499
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3500
if test -z "$INSTALL"; then
3501
if test "${ac_cv_path_install+set}" = set; then
3502
  echo $ECHO_N "(cached) $ECHO_C" >&6
3503
else
3504
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505
for as_dir in $PATH
3506
do
3507
  IFS=$as_save_IFS
3508
  test -z "$as_dir" && as_dir=.
3509
  # Account for people who put trailing slashes in PATH elements.
3510
case $as_dir/ in
3511
  ./ | .// | /cC/* | \
3512
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3513
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3514
  /usr/ucb/* ) ;;
3515
  *)
3516
    # OSF1 and SCO ODT 3.0 have their own names for install.
3517
    # Don't use installbsd from OSF since it installs stuff as root
3518
    # by default.
3519
    for ac_prog in ginstall scoinst install; do
3520
      for ac_exec_ext in '' $ac_executable_extensions; do
3521
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3522
	  if test $ac_prog = install &&
3523
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3524
	    # AIX install.  It has an incompatible calling convention.
3525
	    :
3526
	  elif test $ac_prog = install &&
3527
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3528
	    # program-specific install script used by HP pwplus--don't use.
3529
	    :
3530
	  else
3531
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3532
	    break 3
3533
	  fi
3534
	fi
3535
      done
3536
    done
3537
    ;;
3538
esac
3539
done
3540
IFS=$as_save_IFS
3541
3542
3543
fi
3544
  if test "${ac_cv_path_install+set}" = set; then
3545
    INSTALL=$ac_cv_path_install
3546
  else
3547
    # As a last resort, use the slow shell script.  Don't cache a
3548
    # value for INSTALL within a source directory, because that will
3549
    # break other packages using the cache if that directory is
3550
    # removed, or if the value is a relative name.
3551
    INSTALL=$ac_install_sh
3552
  fi
3553
fi
3554
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3555
echo "${ECHO_T}$INSTALL" >&6; }
3556
3557
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3558
# It thinks the first close brace ends the variable substitution.
3559
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3560
3561
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3562
3563
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3564
3565
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3566
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3567
LN_S=$as_ln_s
3568
if test "$LN_S" = "ln -s"; then
3569
  { echo "$as_me:$LINENO: result: yes" >&5
3570
echo "${ECHO_T}yes" >&6; }
3571
else
3572
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3573
echo "${ECHO_T}no, using $LN_S" >&6; }
3574
fi
3575
3576
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3577
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3578
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3579
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3580
  echo $ECHO_N "(cached) $ECHO_C" >&6
3581
else
3582
  cat >conftest.make <<\_ACEOF
3583
SHELL = /bin/sh
3584
all:
3585
	@echo '@@@%%%=$(MAKE)=@@@%%%'
3586
_ACEOF
3587
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3588
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3589
  *@@@%%%=?*=@@@%%%*)
3590
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3591
  *)
3592
    eval ac_cv_prog_make_${ac_make}_set=no;;
3593
esac
3594
rm -f conftest.make
3595
fi
3596
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3597
  { echo "$as_me:$LINENO: result: yes" >&5
3598
echo "${ECHO_T}yes" >&6; }
3599
  SET_MAKE=
3600
else
3601
  { echo "$as_me:$LINENO: result: no" >&5
3602
echo "${ECHO_T}no" >&6; }
3603
  SET_MAKE="MAKE=${MAKE-make}"
3604
fi
3605
3606
case `pwd` in
3607
  *\ * | *\	*)
3608
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3609
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3610
esac
3611
3612
3613
3614
macro_version='2.2.4'
3615
macro_revision='1.2976'
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
ltmain="$ac_aux_dir/ltmain.sh"
3630
3631
{ echo "$as_me:$LINENO: checking host system type" >&5
3632
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3633
if test "${ac_cv_host+set}" = set; then
3634
  echo $ECHO_N "(cached) $ECHO_C" >&6
3635
else
3636
  if test "x$host_alias" = x; then
3637
  ac_cv_host=$ac_cv_build
3638
else
3639
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3640
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3641
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3642
   { (exit 1); exit 1; }; }
3643
fi
3644
3645
fi
3646
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3647
echo "${ECHO_T}$ac_cv_host" >&6; }
3648
case $ac_cv_host in
3649
*-*-*) ;;
3650
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3651
echo "$as_me: error: invalid value of canonical host" >&2;}
3652
   { (exit 1); exit 1; }; };;
3653
esac
3654
host=$ac_cv_host
3655
ac_save_IFS=$IFS; IFS='-'
3656
set x $ac_cv_host
3657
shift
3658
host_cpu=$1
3659
host_vendor=$2
3660
shift; shift
3661
# Remember, the first character of IFS is used to create $*,
3662
# except with old shells:
3663
host_os=$*
3664
IFS=$ac_save_IFS
3665
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3666
3667
3668
ac_ext=c
3669
ac_cpp='$CPP $CPPFLAGS'
3670
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
if test -n "$ac_tool_prefix"; then
3674
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3675
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3676
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3678
if test "${ac_cv_prog_CC+set}" = set; then
3679
  echo $ECHO_N "(cached) $ECHO_C" >&6
3680
else
3681
  if test -n "$CC"; then
3682
  ac_cv_prog_CC="$CC" # Let the user override the test.
3683
else
3684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685
for as_dir in $PATH
3686
do
3687
  IFS=$as_save_IFS
3688
  test -z "$as_dir" && as_dir=.
3689
  for ac_exec_ext in '' $ac_executable_extensions; do
3690
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3691
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3692
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693
    break 2
3694
  fi
3695
done
3696
done
3697
IFS=$as_save_IFS
3698
3699
fi
3700
fi
3701
CC=$ac_cv_prog_CC
3702
if test -n "$CC"; then
3703
  { echo "$as_me:$LINENO: result: $CC" >&5
3704
echo "${ECHO_T}$CC" >&6; }
3705
else
3706
  { echo "$as_me:$LINENO: result: no" >&5
3707
echo "${ECHO_T}no" >&6; }
3708
fi
3709
3710
3711
fi
3712
if test -z "$ac_cv_prog_CC"; then
3713
  ac_ct_CC=$CC
3714
  # Extract the first word of "gcc", so it can be a program name with args.
3715
set dummy gcc; ac_word=$2
3716
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3717
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3718
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3719
  echo $ECHO_N "(cached) $ECHO_C" >&6
3720
else
3721
  if test -n "$ac_ct_CC"; then
3722
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3723
else
3724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725
for as_dir in $PATH
3726
do
3727
  IFS=$as_save_IFS
3728
  test -z "$as_dir" && as_dir=.
3729
  for ac_exec_ext in '' $ac_executable_extensions; do
3730
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3731
    ac_cv_prog_ac_ct_CC="gcc"
3732
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733
    break 2
3734
  fi
3735
done
3736
done
3737
IFS=$as_save_IFS
3738
3739
fi
3740
fi
3741
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3742
if test -n "$ac_ct_CC"; then
3743
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3744
echo "${ECHO_T}$ac_ct_CC" >&6; }
3745
else
3746
  { echo "$as_me:$LINENO: result: no" >&5
3747
echo "${ECHO_T}no" >&6; }
3748
fi
3749
3750
  if test "x$ac_ct_CC" = x; then
3751
    CC=""
3752
  else
3753
    case $cross_compiling:$ac_tool_warned in
3754
yes:)
3755
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3756
whose name does not start with the host triplet.  If you think this
3757
configuration is useful to you, please write to autoconf@gnu.org." >&5
3758
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3759
whose name does not start with the host triplet.  If you think this
3760
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3761
ac_tool_warned=yes ;;
3762
esac
3763
    CC=$ac_ct_CC
3764
  fi
3765
else
3766
  CC="$ac_cv_prog_CC"
3767
fi
3768
3769
if test -z "$CC"; then
3770
          if test -n "$ac_tool_prefix"; then
3771
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3772
set dummy ${ac_tool_prefix}cc; ac_word=$2
3773
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3774
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3775
if test "${ac_cv_prog_CC+set}" = set; then
3776
  echo $ECHO_N "(cached) $ECHO_C" >&6
3777
else
3778
  if test -n "$CC"; then
3779
  ac_cv_prog_CC="$CC" # Let the user override the test.
3780
else
3781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782
for as_dir in $PATH
3783
do
3784
  IFS=$as_save_IFS
3785
  test -z "$as_dir" && as_dir=.
3786
  for ac_exec_ext in '' $ac_executable_extensions; do
3787
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3789
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790
    break 2
3791
  fi
3792
done
3793
done
3794
IFS=$as_save_IFS
3795
3796
fi
3797
fi
3798
CC=$ac_cv_prog_CC
3799
if test -n "$CC"; then
3800
  { echo "$as_me:$LINENO: result: $CC" >&5
3801
echo "${ECHO_T}$CC" >&6; }
3802
else
3803
  { echo "$as_me:$LINENO: result: no" >&5
3804
echo "${ECHO_T}no" >&6; }
3805
fi
3806
3807
3808
  fi
3809
fi
3810
if test -z "$CC"; then
3811
  # Extract the first word of "cc", so it can be a program name with args.
3812
set dummy cc; ac_word=$2
3813
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3814
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3815
if test "${ac_cv_prog_CC+set}" = set; then
3816
  echo $ECHO_N "(cached) $ECHO_C" >&6
3817
else
3818
  if test -n "$CC"; then
3819
  ac_cv_prog_CC="$CC" # Let the user override the test.
3820
else
3821
  ac_prog_rejected=no
3822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823
for as_dir in $PATH
3824
do
3825
  IFS=$as_save_IFS
3826
  test -z "$as_dir" && as_dir=.
3827
  for ac_exec_ext in '' $ac_executable_extensions; do
3828
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3830
       ac_prog_rejected=yes
3831
       continue
3832
     fi
3833
    ac_cv_prog_CC="cc"
3834
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835
    break 2
3836
  fi
3837
done
3838
done
3839
IFS=$as_save_IFS
3840
3841
if test $ac_prog_rejected = yes; then
3842
  # We found a bogon in the path, so make sure we never use it.
3843
  set dummy $ac_cv_prog_CC
3844
  shift
3845
  if test $# != 0; then
3846
    # We chose a different compiler from the bogus one.
3847
    # However, it has the same basename, so the bogon will be chosen
3848
    # first if we set CC to just the basename; use the full file name.
3849
    shift
3850
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3851
  fi
3852
fi
3853
fi
3854
fi
3855
CC=$ac_cv_prog_CC
3856
if test -n "$CC"; then
3857
  { echo "$as_me:$LINENO: result: $CC" >&5
3858
echo "${ECHO_T}$CC" >&6; }
3859
else
3860
  { echo "$as_me:$LINENO: result: no" >&5
3861
echo "${ECHO_T}no" >&6; }
3862
fi
3863
3864
3865
fi
3866
if test -z "$CC"; then
3867
  if test -n "$ac_tool_prefix"; then
3868
  for ac_prog in cl.exe
3869
  do
3870
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3871
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3872
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3873
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3874
if test "${ac_cv_prog_CC+set}" = set; then
3875
  echo $ECHO_N "(cached) $ECHO_C" >&6
3876
else
3877
  if test -n "$CC"; then
3878
  ac_cv_prog_CC="$CC" # Let the user override the test.
3879
else
3880
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881
for as_dir in $PATH
3882
do
3883
  IFS=$as_save_IFS
3884
  test -z "$as_dir" && as_dir=.
3885
  for ac_exec_ext in '' $ac_executable_extensions; do
3886
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3887
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3888
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889
    break 2
3890
  fi
3891
done
3892
done
3893
IFS=$as_save_IFS
3894
3895
fi
3896
fi
3897
CC=$ac_cv_prog_CC
3898
if test -n "$CC"; then
3899
  { echo "$as_me:$LINENO: result: $CC" >&5
3900
echo "${ECHO_T}$CC" >&6; }
3901
else
3902
  { echo "$as_me:$LINENO: result: no" >&5
3903
echo "${ECHO_T}no" >&6; }
3904
fi
3905
3906
3907
    test -n "$CC" && break
3908
  done
3909
fi
3910
if test -z "$CC"; then
3911
  ac_ct_CC=$CC
3912
  for ac_prog in cl.exe
3913
do
3914
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3915
set dummy $ac_prog; ac_word=$2
3916
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3917
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3918
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3919
  echo $ECHO_N "(cached) $ECHO_C" >&6
3920
else
3921
  if test -n "$ac_ct_CC"; then
3922
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3923
else
3924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925
for as_dir in $PATH
3926
do
3927
  IFS=$as_save_IFS
3928
  test -z "$as_dir" && as_dir=.
3929
  for ac_exec_ext in '' $ac_executable_extensions; do
3930
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3931
    ac_cv_prog_ac_ct_CC="$ac_prog"
3932
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3933
    break 2
3934
  fi
3935
done
3936
done
3937
IFS=$as_save_IFS
3938
3939
fi
3940
fi
3941
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3942
if test -n "$ac_ct_CC"; then
3943
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3944
echo "${ECHO_T}$ac_ct_CC" >&6; }
3945
else
3946
  { echo "$as_me:$LINENO: result: no" >&5
3947
echo "${ECHO_T}no" >&6; }
3948
fi
3949
3950
3951
  test -n "$ac_ct_CC" && break
3952
done
3953
3954
  if test "x$ac_ct_CC" = x; then
3955
    CC=""
3956
  else
3957
    case $cross_compiling:$ac_tool_warned in
3958
yes:)
3959
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3960
whose name does not start with the host triplet.  If you think this
3961
configuration is useful to you, please write to autoconf@gnu.org." >&5
3962
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3963
whose name does not start with the host triplet.  If you think this
3964
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3965
ac_tool_warned=yes ;;
3966
esac
3967
    CC=$ac_ct_CC
3968
  fi
3969
fi
3970
3971
fi
3972
3973
3974
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3975
See \`config.log' for more details." >&5
3976
echo "$as_me: error: no acceptable C compiler found in \$PATH
3977
See \`config.log' for more details." >&2;}
3978
   { (exit 1); exit 1; }; }
3979
3980
# Provide some information about the compiler.
3981
echo "$as_me:$LINENO: checking for C compiler version" >&5
3982
ac_compiler=`set X $ac_compile; echo $2`
3983
{ (ac_try="$ac_compiler --version >&5"
3984
case "(($ac_try" in
3985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986
  *) ac_try_echo=$ac_try;;
3987
esac
3988
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989
  (eval "$ac_compiler --version >&5") 2>&5
3990
  ac_status=$?
3991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992
  (exit $ac_status); }
3993
{ (ac_try="$ac_compiler -v >&5"
3994
case "(($ac_try" in
3995
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996
  *) ac_try_echo=$ac_try;;
3997
esac
3998
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3999
  (eval "$ac_compiler -v >&5") 2>&5
4000
  ac_status=$?
4001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002
  (exit $ac_status); }
4003
{ (ac_try="$ac_compiler -V >&5"
4004
case "(($ac_try" in
4005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006
  *) ac_try_echo=$ac_try;;
4007
esac
4008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009
  (eval "$ac_compiler -V >&5") 2>&5
4010
  ac_status=$?
4011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012
  (exit $ac_status); }
4013
4014
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4015
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4016
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4017
  echo $ECHO_N "(cached) $ECHO_C" >&6
4018
else
4019
  cat >conftest.$ac_ext <<_ACEOF
4020
/* confdefs.h.  */
4021
_ACEOF
4022
cat confdefs.h >>conftest.$ac_ext
4023
cat >>conftest.$ac_ext <<_ACEOF
4024
/* end confdefs.h.  */
4025
4026
int
4027
main ()
4028
{
4029
#ifndef __GNUC__
4030
       choke me
4031
#endif
4032
4033
  ;
4034
  return 0;
4035
}
4036
_ACEOF
4037
rm -f conftest.$ac_objext
4038
if { (ac_try="$ac_compile"
4039
case "(($ac_try" in
4040
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041
  *) ac_try_echo=$ac_try;;
4042
esac
4043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044
  (eval "$ac_compile") 2>conftest.er1
4045
  ac_status=$?
4046
  grep -v '^ *+' conftest.er1 >conftest.err
4047
  rm -f conftest.er1
4048
  cat conftest.err >&5
4049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050
  (exit $ac_status); } && {
4051
	 test -z "$ac_c_werror_flag" ||
4052
	 test ! -s conftest.err
4053
       } && test -s conftest.$ac_objext; then
4054
  ac_compiler_gnu=yes
4055
else
4056
  echo "$as_me: failed program was:" >&5
4057
sed 's/^/| /' conftest.$ac_ext >&5
4058
4059
	ac_compiler_gnu=no
4060
fi
4061
4062
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4064
4065
fi
4066
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4067
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4068
GCC=`test $ac_compiler_gnu = yes && echo yes`
4069
ac_test_CFLAGS=${CFLAGS+set}
4070
ac_save_CFLAGS=$CFLAGS
4071
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4072
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4073
if test "${ac_cv_prog_cc_g+set}" = set; then
4074
  echo $ECHO_N "(cached) $ECHO_C" >&6
4075
else
4076
  ac_save_c_werror_flag=$ac_c_werror_flag
4077
   ac_c_werror_flag=yes
4078
   ac_cv_prog_cc_g=no
4079
   CFLAGS="-g"
4080
   cat >conftest.$ac_ext <<_ACEOF
4081
/* confdefs.h.  */
4082
_ACEOF
4083
cat confdefs.h >>conftest.$ac_ext
4084
cat >>conftest.$ac_ext <<_ACEOF
4085
/* end confdefs.h.  */
4086
4087
int
4088
main ()
4089
{
4090
4091
  ;
4092
  return 0;
4093
}
4094
_ACEOF
4095
rm -f conftest.$ac_objext
4096
if { (ac_try="$ac_compile"
4097
case "(($ac_try" in
4098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099
  *) ac_try_echo=$ac_try;;
4100
esac
4101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102
  (eval "$ac_compile") 2>conftest.er1
4103
  ac_status=$?
4104
  grep -v '^ *+' conftest.er1 >conftest.err
4105
  rm -f conftest.er1
4106
  cat conftest.err >&5
4107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108
  (exit $ac_status); } && {
4109
	 test -z "$ac_c_werror_flag" ||
4110
	 test ! -s conftest.err
4111
       } && test -s conftest.$ac_objext; then
4112
  ac_cv_prog_cc_g=yes
4113
else
4114
  echo "$as_me: failed program was:" >&5
4115
sed 's/^/| /' conftest.$ac_ext >&5
4116
4117
	CFLAGS=""
4118
      cat >conftest.$ac_ext <<_ACEOF
4119
/* confdefs.h.  */
4120
_ACEOF
4121
cat confdefs.h >>conftest.$ac_ext
4122
cat >>conftest.$ac_ext <<_ACEOF
4123
/* end confdefs.h.  */
4124
4125
int
4126
main ()
4127
{
4128
4129
  ;
4130
  return 0;
4131
}
4132
_ACEOF
4133
rm -f conftest.$ac_objext
4134
if { (ac_try="$ac_compile"
4135
case "(($ac_try" in
4136
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137
  *) ac_try_echo=$ac_try;;
4138
esac
4139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140
  (eval "$ac_compile") 2>conftest.er1
4141
  ac_status=$?
4142
  grep -v '^ *+' conftest.er1 >conftest.err
4143
  rm -f conftest.er1
4144
  cat conftest.err >&5
4145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146
  (exit $ac_status); } && {
4147
	 test -z "$ac_c_werror_flag" ||
4148
	 test ! -s conftest.err
4149
       } && test -s conftest.$ac_objext; then
4150
  :
4151
else
4152
  echo "$as_me: failed program was:" >&5
4153
sed 's/^/| /' conftest.$ac_ext >&5
4154
4155
	ac_c_werror_flag=$ac_save_c_werror_flag
4156
	 CFLAGS="-g"
4157
	 cat >conftest.$ac_ext <<_ACEOF
4158
/* confdefs.h.  */
4159
_ACEOF
4160
cat confdefs.h >>conftest.$ac_ext
4161
cat >>conftest.$ac_ext <<_ACEOF
4162
/* end confdefs.h.  */
4163
4164
int
4165
main ()
4166
{
4167
4168
  ;
4169
  return 0;
4170
}
4171
_ACEOF
4172
rm -f conftest.$ac_objext
4173
if { (ac_try="$ac_compile"
4174
case "(($ac_try" in
4175
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176
  *) ac_try_echo=$ac_try;;
4177
esac
4178
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179
  (eval "$ac_compile") 2>conftest.er1
4180
  ac_status=$?
4181
  grep -v '^ *+' conftest.er1 >conftest.err
4182
  rm -f conftest.er1
4183
  cat conftest.err >&5
4184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185
  (exit $ac_status); } && {
4186
	 test -z "$ac_c_werror_flag" ||
4187
	 test ! -s conftest.err
4188
       } && test -s conftest.$ac_objext; then
4189
  ac_cv_prog_cc_g=yes
4190
else
4191
  echo "$as_me: failed program was:" >&5
4192
sed 's/^/| /' conftest.$ac_ext >&5
4193
4194
4195
fi
4196
4197
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198
fi
4199
4200
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201
fi
4202
4203
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204
   ac_c_werror_flag=$ac_save_c_werror_flag
4205
fi
4206
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4207
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4208
if test "$ac_test_CFLAGS" = set; then
4209
  CFLAGS=$ac_save_CFLAGS
4210
elif test $ac_cv_prog_cc_g = yes; then
4211
  if test "$GCC" = yes; then
4212
    CFLAGS="-g -O2"
4213
  else
4214
    CFLAGS="-g"
4215
  fi
4216
else
4217
  if test "$GCC" = yes; then
4218
    CFLAGS="-O2"
4219
  else
4220
    CFLAGS=
4221
  fi
4222
fi
4223
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4224
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4225
if test "${ac_cv_prog_cc_c89+set}" = set; then
4226
  echo $ECHO_N "(cached) $ECHO_C" >&6
4227
else
4228
  ac_cv_prog_cc_c89=no
4229
ac_save_CC=$CC
4230
cat >conftest.$ac_ext <<_ACEOF
4231
/* confdefs.h.  */
4232
_ACEOF
4233
cat confdefs.h >>conftest.$ac_ext
4234
cat >>conftest.$ac_ext <<_ACEOF
4235
/* end confdefs.h.  */
4236
#include <stdarg.h>
4237
#include <stdio.h>
4238
#include <sys/types.h>
4239
#include <sys/stat.h>
4240
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4241
struct buf { int x; };
4242
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4243
static char *e (p, i)
4244
     char **p;
4245
     int i;
4246
{
4247
  return p[i];
4248
}
4249
static char *f (char * (*g) (char **, int), char **p, ...)
4250
{
4251
  char *s;
4252
  va_list v;
4253
  va_start (v,p);
4254
  s = g (p, va_arg (v,int));
4255
  va_end (v);
4256
  return s;
4257
}
4258
4259
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4260
   function prototypes and stuff, but not '\xHH' hex character constants.
4261
   These don't provoke an error unfortunately, instead are silently treated
4262
   as 'x'.  The following induces an error, until -std is added to get
4263
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4264
   array size at least.  It's necessary to write '\x00'==0 to get something
4265
   that's true only with -std.  */
4266
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4267
4268
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4269
   inside strings and character constants.  */
4270
#define FOO(x) 'x'
4271
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4272
4273
int test (int i, double x);
4274
struct s1 {int (*f) (int a);};
4275
struct s2 {int (*f) (double a);};
4276
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4277
int argc;
4278
char **argv;
4279
int
4280
main ()
4281
{
4282
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4283
  ;
4284
  return 0;
4285
}
4286
_ACEOF
4287
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4288
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4289
do
4290
  CC="$ac_save_CC $ac_arg"
4291
  rm -f conftest.$ac_objext
4292
if { (ac_try="$ac_compile"
4293
case "(($ac_try" in
4294
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295
  *) ac_try_echo=$ac_try;;
4296
esac
4297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298
  (eval "$ac_compile") 2>conftest.er1
4299
  ac_status=$?
4300
  grep -v '^ *+' conftest.er1 >conftest.err
4301
  rm -f conftest.er1
4302
  cat conftest.err >&5
4303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304
  (exit $ac_status); } && {
4305
	 test -z "$ac_c_werror_flag" ||
4306
	 test ! -s conftest.err
4307
       } && test -s conftest.$ac_objext; then
4308
  ac_cv_prog_cc_c89=$ac_arg
4309
else
4310
  echo "$as_me: failed program was:" >&5
4311
sed 's/^/| /' conftest.$ac_ext >&5
4312
4313
4314
fi
4315
4316
rm -f core conftest.err conftest.$ac_objext
4317
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4318
done
4319
rm -f conftest.$ac_ext
4320
CC=$ac_save_CC
4321
4322
fi
4323
# AC_CACHE_VAL
4324
case "x$ac_cv_prog_cc_c89" in
4325
  x)
4326
    { echo "$as_me:$LINENO: result: none needed" >&5
4327
echo "${ECHO_T}none needed" >&6; } ;;
4328
  xno)
4329
    { echo "$as_me:$LINENO: result: unsupported" >&5
4330
echo "${ECHO_T}unsupported" >&6; } ;;
4331
  *)
4332
    CC="$CC $ac_cv_prog_cc_c89"
4333
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4334
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4335
esac
4336
4337
4338
ac_ext=c
4339
ac_cpp='$CPP $CPPFLAGS'
4340
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343
4344
depcc="$CC"   am_compiler_list=
4345
4346
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4347
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4348
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4349
  echo $ECHO_N "(cached) $ECHO_C" >&6
4350
else
4351
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4352
  # We make a subdir and do the tests there.  Otherwise we can end up
4353
  # making bogus files that we don't know about and never remove.  For
4354
  # instance it was reported that on HP-UX the gcc test will end up
4355
  # making a dummy file named `D' -- because `-MD' means `put the output
4356
  # in D'.
4357
  mkdir conftest.dir
4358
  # Copy depcomp to subdir because otherwise we won't find it if we're
4359
  # using a relative directory.
4360
  cp "$am_depcomp" conftest.dir
4361
  cd conftest.dir
4362
  # We will build objects and dependencies in a subdirectory because
4363
  # it helps to detect inapplicable dependency modes.  For instance
4364
  # both Tru64's cc and ICC support -MD to output dependencies as a
4365
  # side effect of compilation, but ICC will put the dependencies in
4366
  # the current directory while Tru64 will put them in the object
4367
  # directory.
4368
  mkdir sub
4369
4370
  am_cv_CC_dependencies_compiler_type=none
4371
  if test "$am_compiler_list" = ""; then
4372
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4373
  fi
4374
  for depmode in $am_compiler_list; do
4375
    # Setup a source with many dependencies, because some compilers
4376
    # like to wrap large dependency lists on column 80 (with \), and
4377
    # we should not choose a depcomp mode which is confused by this.
4378
    #
4379
    # We need to recreate these files for each test, as the compiler may
4380
    # overwrite some of them when testing with obscure command lines.
4381
    # This happens at least with the AIX C compiler.
4382
    : > sub/conftest.c
4383
    for i in 1 2 3 4 5 6; do
4384
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4385
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4386
      # Solaris 8's {/usr,}/bin/sh.
4387
      touch sub/conftst$i.h
4388
    done
4389
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4390
4391
    case $depmode in
4392
    nosideeffect)
4393
      # after this tag, mechanisms are not by side-effect, so they'll
4394
      # only be used when explicitly requested
4395
      if test "x$enable_dependency_tracking" = xyes; then
4396
	continue
4397
      else
4398
	break
4399
      fi
4400
      ;;
4401
    none) break ;;
4402
    esac
4403
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4404
    # mode.  It turns out that the SunPro C++ compiler does not properly
4405
    # handle `-M -o', and we need to detect this.
4406
    if depmode=$depmode \
4407
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4408
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4409
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4410
         >/dev/null 2>conftest.err &&
4411
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4412
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4413
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4414
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4415
      # icc doesn't choke on unknown options, it will just issue warnings
4416
      # or remarks (even with -Werror).  So we grep stderr for any message
4417
      # that says an option was ignored or not supported.
4418
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4419
      #   icc: Command line warning: ignoring option '-M'; no argument required
4420
      # The diagnosis changed in icc 8.0:
4421
      #   icc: Command line remark: option '-MP' not supported
4422
      if (grep 'ignoring option' conftest.err ||
4423
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4424
        am_cv_CC_dependencies_compiler_type=$depmode
4425
        break
4426
      fi
4427
    fi
4428
  done
4429
4430
  cd ..
4431
  rm -rf conftest.dir
4432
else
4433
  am_cv_CC_dependencies_compiler_type=none
4434
fi
4435
4436
fi
4437
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4438
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4439
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4440
4441
 if
4442
  test "x$enable_dependency_tracking" != xno \
4443
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4444
  am__fastdepCC_TRUE=
4445
  am__fastdepCC_FALSE='#'
4446
else
4447
  am__fastdepCC_TRUE='#'
4448
  am__fastdepCC_FALSE=
4449
fi
4450
4451
4452
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4453
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4454
if test "${ac_cv_path_SED+set}" = set; then
4455
  echo $ECHO_N "(cached) $ECHO_C" >&6
4456
else
4457
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4458
     for ac_i in 1 2 3 4 5 6 7; do
4459
       ac_script="$ac_script$as_nl$ac_script"
4460
     done
4461
     echo "$ac_script" | sed 99q >conftest.sed
4462
     $as_unset ac_script || ac_script=
4463
     # Extract the first word of "sed gsed" to use in msg output
4464
if test -z "$SED"; then
4465
set dummy sed gsed; ac_prog_name=$2
4466
if test "${ac_cv_path_SED+set}" = set; then
4467
  echo $ECHO_N "(cached) $ECHO_C" >&6
4468
else
4469
  ac_path_SED_found=false
4470
# Loop through the user's path and test for each of PROGNAME-LIST
4471
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472
for as_dir in $PATH
4473
do
4474
  IFS=$as_save_IFS
4475
  test -z "$as_dir" && as_dir=.
4476
  for ac_prog in sed gsed; do
4477
  for ac_exec_ext in '' $ac_executable_extensions; do
4478
    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4479
    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4480
    # Check for GNU ac_path_SED and select it if it is found.
4481
  # Check for GNU $ac_path_SED
4482
case `"$ac_path_SED" --version 2>&1` in
4483
*GNU*)
4484
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4485
*)
4486
  ac_count=0
4487
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4488
  while :
4489
  do
4490
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4491
    mv "conftest.tmp" "conftest.in"
4492
    cp "conftest.in" "conftest.nl"
4493
    echo '' >> "conftest.nl"
4494
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4495
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4496
    ac_count=`expr $ac_count + 1`
4497
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4498
      # Best one so far, save it but keep looking for a better one
4499
      ac_cv_path_SED="$ac_path_SED"
4500
      ac_path_SED_max=$ac_count
4501
    fi
4502
    # 10*(2^10) chars as input seems more than enough
4503
    test $ac_count -gt 10 && break
4504
  done
4505
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4506
esac
4507
4508
4509
    $ac_path_SED_found && break 3
4510
  done
4511
done
4512
4513
done
4514
IFS=$as_save_IFS
4515
4516
4517
fi
4518
4519
SED="$ac_cv_path_SED"
4520
if test -z "$SED"; then
4521
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4522
echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4523
   { (exit 1); exit 1; }; }
4524
fi
4525
4526
else
4527
  ac_cv_path_SED=$SED
4528
fi
4529
4530
fi
4531
{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4532
echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4533
 SED="$ac_cv_path_SED"
4534
  rm -f conftest.sed
4535
4536
test -z "$SED" && SED=sed
4537
Xsed="$SED -e 1s/^X//"
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4550
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4551
if test "${ac_cv_path_GREP+set}" = set; then
4552
  echo $ECHO_N "(cached) $ECHO_C" >&6
4553
else
4554
  # Extract the first word of "grep ggrep" to use in msg output
4555
if test -z "$GREP"; then
4556
set dummy grep ggrep; ac_prog_name=$2
4557
if test "${ac_cv_path_GREP+set}" = set; then
4558
  echo $ECHO_N "(cached) $ECHO_C" >&6
4559
else
4560
  ac_path_GREP_found=false
4561
# Loop through the user's path and test for each of PROGNAME-LIST
4562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564
do
4565
  IFS=$as_save_IFS
4566
  test -z "$as_dir" && as_dir=.
4567
  for ac_prog in grep ggrep; do
4568
  for ac_exec_ext in '' $ac_executable_extensions; do
4569
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4570
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4571
    # Check for GNU ac_path_GREP and select it if it is found.
4572
  # Check for GNU $ac_path_GREP
4573
case `"$ac_path_GREP" --version 2>&1` in
4574
*GNU*)
4575
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4576
*)
4577
  ac_count=0
4578
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4579
  while :
4580
  do
4581
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4582
    mv "conftest.tmp" "conftest.in"
4583
    cp "conftest.in" "conftest.nl"
4584
    echo 'GREP' >> "conftest.nl"
4585
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587
    ac_count=`expr $ac_count + 1`
4588
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4589
      # Best one so far, save it but keep looking for a better one
4590
      ac_cv_path_GREP="$ac_path_GREP"
4591
      ac_path_GREP_max=$ac_count
4592
    fi
4593
    # 10*(2^10) chars as input seems more than enough
4594
    test $ac_count -gt 10 && break
4595
  done
4596
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597
esac
4598
4599
4600
    $ac_path_GREP_found && break 3
4601
  done
4602
done
4603
4604
done
4605
IFS=$as_save_IFS
4606
4607
4608
fi
4609
4610
GREP="$ac_cv_path_GREP"
4611
if test -z "$GREP"; then
4612
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4613
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4614
   { (exit 1); exit 1; }; }
4615
fi
4616
4617
else
4618
  ac_cv_path_GREP=$GREP
4619
fi
4620
4621
4622
fi
4623
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4624
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4625
 GREP="$ac_cv_path_GREP"
4626
4627
4628
{ echo "$as_me:$LINENO: checking for egrep" >&5
4629
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4630
if test "${ac_cv_path_EGREP+set}" = set; then
4631
  echo $ECHO_N "(cached) $ECHO_C" >&6
4632
else
4633
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4634
   then ac_cv_path_EGREP="$GREP -E"
4635
   else
4636
     # Extract the first word of "egrep" to use in msg output
4637
if test -z "$EGREP"; then
4638
set dummy egrep; ac_prog_name=$2
4639
if test "${ac_cv_path_EGREP+set}" = set; then
4640
  echo $ECHO_N "(cached) $ECHO_C" >&6
4641
else
4642
  ac_path_EGREP_found=false
4643
# Loop through the user's path and test for each of PROGNAME-LIST
4644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4646
do
4647
  IFS=$as_save_IFS
4648
  test -z "$as_dir" && as_dir=.
4649
  for ac_prog in egrep; do
4650
  for ac_exec_ext in '' $ac_executable_extensions; do
4651
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4652
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4653
    # Check for GNU ac_path_EGREP and select it if it is found.
4654
  # Check for GNU $ac_path_EGREP
4655
case `"$ac_path_EGREP" --version 2>&1` in
4656
*GNU*)
4657
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4658
*)
4659
  ac_count=0
4660
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4661
  while :
4662
  do
4663
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4664
    mv "conftest.tmp" "conftest.in"
4665
    cp "conftest.in" "conftest.nl"
4666
    echo 'EGREP' >> "conftest.nl"
4667
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4668
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4669
    ac_count=`expr $ac_count + 1`
4670
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4671
      # Best one so far, save it but keep looking for a better one
4672
      ac_cv_path_EGREP="$ac_path_EGREP"
4673
      ac_path_EGREP_max=$ac_count
4674
    fi
4675
    # 10*(2^10) chars as input seems more than enough
4676
    test $ac_count -gt 10 && break
4677
  done
4678
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4679
esac
4680
4681
4682
    $ac_path_EGREP_found && break 3
4683
  done
4684
done
4685
4686
done
4687
IFS=$as_save_IFS
4688
4689
4690
fi
4691
4692
EGREP="$ac_cv_path_EGREP"
4693
if test -z "$EGREP"; then
4694
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4695
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4696
   { (exit 1); exit 1; }; }
4697
fi
4698
4699
else
4700
  ac_cv_path_EGREP=$EGREP
4701
fi
4702
4703
4704
   fi
4705
fi
4706
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4707
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4708
 EGREP="$ac_cv_path_EGREP"
4709
4710
4711
{ echo "$as_me:$LINENO: checking for fgrep" >&5
4712
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4713
if test "${ac_cv_path_FGREP+set}" = set; then
4714
  echo $ECHO_N "(cached) $ECHO_C" >&6
4715
else
4716
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4717
   then ac_cv_path_FGREP="$GREP -F"
4718
   else
4719
     # Extract the first word of "fgrep" to use in msg output
4720
if test -z "$FGREP"; then
4721
set dummy fgrep; ac_prog_name=$2
4722
if test "${ac_cv_path_FGREP+set}" = set; then
4723
  echo $ECHO_N "(cached) $ECHO_C" >&6
4724
else
4725
  ac_path_FGREP_found=false
4726
# Loop through the user's path and test for each of PROGNAME-LIST
4727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4729
do
4730
  IFS=$as_save_IFS
4731
  test -z "$as_dir" && as_dir=.
4732
  for ac_prog in fgrep; do
4733
  for ac_exec_ext in '' $ac_executable_extensions; do
4734
    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4735
    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4736
    # Check for GNU ac_path_FGREP and select it if it is found.
4737
  # Check for GNU $ac_path_FGREP
4738
case `"$ac_path_FGREP" --version 2>&1` in
4739
*GNU*)
4740
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4741
*)
4742
  ac_count=0
4743
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4744
  while :
4745
  do
4746
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4747
    mv "conftest.tmp" "conftest.in"
4748
    cp "conftest.in" "conftest.nl"
4749
    echo 'FGREP' >> "conftest.nl"
4750
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4751
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4752
    ac_count=`expr $ac_count + 1`
4753
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4754
      # Best one so far, save it but keep looking for a better one
4755
      ac_cv_path_FGREP="$ac_path_FGREP"
4756
      ac_path_FGREP_max=$ac_count
4757
    fi
4758
    # 10*(2^10) chars as input seems more than enough
4759
    test $ac_count -gt 10 && break
4760
  done
4761
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4762
esac
4763
4764
4765
    $ac_path_FGREP_found && break 3
4766
  done
4767
done
4768
4769
done
4770
IFS=$as_save_IFS
4771
4772
4773
fi
4774
4775
FGREP="$ac_cv_path_FGREP"
4776
if test -z "$FGREP"; then
4777
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4778
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4779
   { (exit 1); exit 1; }; }
4780
fi
4781
4782
else
4783
  ac_cv_path_FGREP=$FGREP
4784
fi
4785
4786
4787
   fi
4788
fi
4789
{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4790
echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4791
 FGREP="$ac_cv_path_FGREP"
4792
4793
4794
test -z "$GREP" && GREP=grep
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
# Check whether --with-gnu-ld was given.
4815
if test "${with_gnu_ld+set}" = set; then
4816
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4817
else
4818
  with_gnu_ld=no
4819
fi
4820
4821
ac_prog=ld
4822
if test "$GCC" = yes; then
4823
  # Check if gcc -print-prog-name=ld gives a path.
4824
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4825
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4826
  case $host in
4827
  *-*-mingw*)
4828
    # gcc leaves a trailing carriage return which upsets mingw
4829
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4830
  *)
4831
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4832
  esac
4833
  case $ac_prog in
4834
    # Accept absolute paths.
4835
    [\\/]* | ?:[\\/]*)
4836
      re_direlt='/[^/][^/]*/\.\./'
4837
      # Canonicalize the pathname of ld
4838
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4839
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4840
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4841
      done
4842
      test -z "$LD" && LD="$ac_prog"
4843
      ;;
4844
  "")
4845
    # If it fails, then pretend we aren't using GCC.
4846
    ac_prog=ld
4847
    ;;
4848
  *)
4849
    # If it is relative, then search for the first ld in PATH.
4850
    with_gnu_ld=unknown
4851
    ;;
4852
  esac
4853
elif test "$with_gnu_ld" = yes; then
4854
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4855
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4856
else
4857
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4858
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4859
fi
4860
if test "${lt_cv_path_LD+set}" = set; then
4861
  echo $ECHO_N "(cached) $ECHO_C" >&6
4862
else
4863
  if test -z "$LD"; then
4864
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4865
  for ac_dir in $PATH; do
4866
    IFS="$lt_save_ifs"
4867
    test -z "$ac_dir" && ac_dir=.
4868
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4869
      lt_cv_path_LD="$ac_dir/$ac_prog"
4870
      # Check to see if the program is GNU ld.  I'd rather use --version,
4871
      # but apparently some variants of GNU ld only accept -v.
4872
      # Break only if it was the GNU/non-GNU ld that we prefer.
4873
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4874
      *GNU* | *'with BFD'*)
4875
	test "$with_gnu_ld" != no && break
4876
	;;
4877
      *)
4878
	test "$with_gnu_ld" != yes && break
4879
	;;
4880
      esac
4881
    fi
4882
  done
4883
  IFS="$lt_save_ifs"
4884
else
4885
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4886
fi
4887
fi
4888
4889
LD="$lt_cv_path_LD"
4890
if test -n "$LD"; then
4891
  { echo "$as_me:$LINENO: result: $LD" >&5
4892
echo "${ECHO_T}$LD" >&6; }
4893
else
4894
  { echo "$as_me:$LINENO: result: no" >&5
4895
echo "${ECHO_T}no" >&6; }
4896
fi
4897
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4898
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4899
   { (exit 1); exit 1; }; }
4900
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4901
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4902
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4903
  echo $ECHO_N "(cached) $ECHO_C" >&6
4904
else
4905
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4906
case `$LD -v 2>&1 </dev/null` in
4907
*GNU* | *'with BFD'*)
4908
  lt_cv_prog_gnu_ld=yes
4909
  ;;
4910
*)
4911
  lt_cv_prog_gnu_ld=no
4912
  ;;
4913
esac
4914
fi
4915
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4916
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4917
with_gnu_ld=$lt_cv_prog_gnu_ld
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4928
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4929
if test "${lt_cv_path_NM+set}" = set; then
4930
  echo $ECHO_N "(cached) $ECHO_C" >&6
4931
else
4932
  if test -n "$NM"; then
4933
  # Let the user override the test.
4934
  lt_cv_path_NM="$NM"
4935
else
4936
  lt_nm_to_check="${ac_tool_prefix}nm"
4937
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4938
    lt_nm_to_check="$lt_nm_to_check nm"
4939
  fi
4940
  for lt_tmp_nm in $lt_nm_to_check; do
4941
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4942
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4943
      IFS="$lt_save_ifs"
4944
      test -z "$ac_dir" && ac_dir=.
4945
      tmp_nm="$ac_dir/$lt_tmp_nm"
4946
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4947
	# Check to see if the nm accepts a BSD-compat flag.
4948
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4949
	#   nm: unknown option "B" ignored
4950
	# Tru64's nm complains that /dev/null is an invalid object file
4951
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4952
	*/dev/null* | *'Invalid file or object type'*)
4953
	  lt_cv_path_NM="$tmp_nm -B"
4954
	  break
4955
	  ;;
4956
	*)
4957
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4958
	  */dev/null*)
4959
	    lt_cv_path_NM="$tmp_nm -p"
4960
	    break
4961
	    ;;
4962
	  *)
4963
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4964
	    continue # so that we can try to find one that supports BSD flags
4965
	    ;;
4966
	  esac
4967
	  ;;
4968
	esac
4969
      fi
4970
    done
4971
    IFS="$lt_save_ifs"
4972
  done
4973
  : ${lt_cv_path_NM=no}
4974
fi
4975
fi
4976
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4977
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4978
if test "$lt_cv_path_NM" != "no"; then
4979
  NM="$lt_cv_path_NM"
4980
else
4981
  # Didn't find any BSD compatible name lister, look for dumpbin.
4982
  if test -n "$ac_tool_prefix"; then
4983
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4984
  do
4985
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4986
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4987
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4988
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4989
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4990
  echo $ECHO_N "(cached) $ECHO_C" >&6
4991
else
4992
  if test -n "$DUMPBIN"; then
4993
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4994
else
4995
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996
for as_dir in $PATH
4997
do
4998
  IFS=$as_save_IFS
4999
  test -z "$as_dir" && as_dir=.
5000
  for ac_exec_ext in '' $ac_executable_extensions; do
5001
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5003
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004
    break 2
5005
  fi
5006
done
5007
done
5008
IFS=$as_save_IFS
5009
5010
fi
5011
fi
5012
DUMPBIN=$ac_cv_prog_DUMPBIN
5013
if test -n "$DUMPBIN"; then
5014
  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5015
echo "${ECHO_T}$DUMPBIN" >&6; }
5016
else
5017
  { echo "$as_me:$LINENO: result: no" >&5
5018
echo "${ECHO_T}no" >&6; }
5019
fi
5020
5021
5022
    test -n "$DUMPBIN" && break
5023
  done
5024
fi
5025
if test -z "$DUMPBIN"; then
5026
  ac_ct_DUMPBIN=$DUMPBIN
5027
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5028
do
5029
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5030
set dummy $ac_prog; ac_word=$2
5031
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5032
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5034
  echo $ECHO_N "(cached) $ECHO_C" >&6
5035
else
5036
  if test -n "$ac_ct_DUMPBIN"; then
5037
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5038
else
5039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040
for as_dir in $PATH
5041
do
5042
  IFS=$as_save_IFS
5043
  test -z "$as_dir" && as_dir=.
5044
  for ac_exec_ext in '' $ac_executable_extensions; do
5045
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5047
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048
    break 2
5049
  fi
5050
done
5051
done
5052
IFS=$as_save_IFS
5053
5054
fi
5055
fi
5056
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5057
if test -n "$ac_ct_DUMPBIN"; then
5058
  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5059
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5060
else
5061
  { echo "$as_me:$LINENO: result: no" >&5
5062
echo "${ECHO_T}no" >&6; }
5063
fi
5064
5065
5066
  test -n "$ac_ct_DUMPBIN" && break
5067
done
5068
5069
  if test "x$ac_ct_DUMPBIN" = x; then
5070
    DUMPBIN=":"
5071
  else
5072
    case $cross_compiling:$ac_tool_warned in
5073
yes:)
5074
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5075
whose name does not start with the host triplet.  If you think this
5076
configuration is useful to you, please write to autoconf@gnu.org." >&5
5077
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5078
whose name does not start with the host triplet.  If you think this
5079
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5080
ac_tool_warned=yes ;;
5081
esac
5082
    DUMPBIN=$ac_ct_DUMPBIN
5083
  fi
5084
fi
5085
5086
5087
  if test "$DUMPBIN" != ":"; then
5088
    NM="$DUMPBIN"
5089
  fi
5090
fi
5091
test -z "$NM" && NM=nm
5092
5093
5094
5095
5096
5097
5098
{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5099
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5100
if test "${lt_cv_nm_interface+set}" = set; then
5101
  echo $ECHO_N "(cached) $ECHO_C" >&6
5102
else
5103
  lt_cv_nm_interface="BSD nm"
5104
  echo "int some_variable = 0;" > conftest.$ac_ext
5105
  (eval echo "\"\$as_me:5105: $ac_compile\"" >&5)
5106
  (eval "$ac_compile" 2>conftest.err)
5107
  cat conftest.err >&5
5108
  (eval echo "\"\$as_me:5108: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5109
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5110
  cat conftest.err >&5
5111
  (eval echo "\"\$as_me:5111: output\"" >&5)
5112
  cat conftest.out >&5
5113
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5114
    lt_cv_nm_interface="MS dumpbin"
5115
  fi
5116
  rm -r -f conftest*
5117
fi
5118
{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5119
echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5120
5121
# find the maximum length of command line arguments
5122
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5123
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5124
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5125
  echo $ECHO_N "(cached) $ECHO_C" >&6
5126
else
5127
    i=0
5128
  teststring="ABCD"
5129
5130
  case $build_os in
5131
  msdosdjgpp*)
5132
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5133
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5134
    # during glob expansion).  Even if it were fixed, the result of this
5135
    # check would be larger than it should be.
5136
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5137
    ;;
5138
5139
  gnu*)
5140
    # Under GNU Hurd, this test is not required because there is
5141
    # no limit to the length of command line arguments.
5142
    # Libtool will interpret -1 as no limit whatsoever
5143
    lt_cv_sys_max_cmd_len=-1;
5144
    ;;
5145
5146
  cygwin* | mingw*)
5147
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5148
    # about 5 minutes as the teststring grows exponentially.
5149
    # Worse, since 9x/ME are not pre-emptively multitasking,
5150
    # you end up with a "frozen" computer, even though with patience
5151
    # the test eventually succeeds (with a max line length of 256k).
5152
    # Instead, let's just punt: use the minimum linelength reported by
5153
    # all of the supported platforms: 8192 (on NT/2K/XP).
5154
    lt_cv_sys_max_cmd_len=8192;
5155
    ;;
5156
5157
  amigaos*)
5158
    # On AmigaOS with pdksh, this test takes hours, literally.
5159
    # So we just punt and use a minimum line length of 8192.
5160
    lt_cv_sys_max_cmd_len=8192;
5161
    ;;
5162
5163
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5164
    # This has been around since 386BSD, at least.  Likely further.
5165
    if test -x /sbin/sysctl; then
5166
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5167
    elif test -x /usr/sbin/sysctl; then
5168
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5169
    else
5170
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5171
    fi
5172
    # And add a safety zone
5173
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5174
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5175
    ;;
5176
5177
  interix*)
5178
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5179
    lt_cv_sys_max_cmd_len=196608
5180
    ;;
5181
5182
  osf*)
5183
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5184
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5185
    # nice to cause kernel panics so lets avoid the loop below.
5186
    # First set a reasonable default.
5187
    lt_cv_sys_max_cmd_len=16384
5188
    #
5189
    if test -x /sbin/sysconfig; then
5190
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5191
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5192
      esac
5193
    fi
5194
    ;;
5195
  sco3.2v5*)
5196
    lt_cv_sys_max_cmd_len=102400
5197
    ;;
5198
  sysv5* | sco5v6* | sysv4.2uw2*)
5199
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5200
    if test -n "$kargmax"; then
5201
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5202
    else
5203
      lt_cv_sys_max_cmd_len=32768
5204
    fi
5205
    ;;
5206
  *)
5207
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5208
    if test -n "$lt_cv_sys_max_cmd_len"; then
5209
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5210
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5211
    else
5212
      # Make teststring a little bigger before we do anything with it.
5213
      # a 1K string should be a reasonable start.
5214
      for i in 1 2 3 4 5 6 7 8 ; do
5215
        teststring=$teststring$teststring
5216
      done
5217
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5218
      # If test is not a shell built-in, we'll probably end up computing a
5219
      # maximum length that is only half of the actual maximum length, but
5220
      # we can't tell.
5221
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5222
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5223
	      test $i != 17 # 1/2 MB should be enough
5224
      do
5225
        i=`expr $i + 1`
5226
        teststring=$teststring$teststring
5227
      done
5228
      # Only check the string length outside the loop.
5229
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5230
      teststring=
5231
      # Add a significant safety factor because C++ compilers can tack on
5232
      # massive amounts of additional arguments before passing them to the
5233
      # linker.  It appears as though 1/2 is a usable value.
5234
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5235
    fi
5236
    ;;
5237
  esac
5238
5239
fi
5240
5241
if test -n $lt_cv_sys_max_cmd_len ; then
5242
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5243
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5244
else
5245
  { echo "$as_me:$LINENO: result: none" >&5
5246
echo "${ECHO_T}none" >&6; }
5247
fi
5248
max_cmd_len=$lt_cv_sys_max_cmd_len
5249
5250
5251
5252
5253
5254
5255
: ${CP="cp -f"}
5256
: ${MV="mv -f"}
5257
: ${RM="rm -f"}
5258
5259
{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5260
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
5261
# Try some XSI features
5262
xsi_shell=no
5263
( _lt_dummy="a/b/c"
5264
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5265
      = c,a/b,, \
5266
    && eval 'test $(( 1 + 1 )) -eq 2 \
5267
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5268
  && xsi_shell=yes
5269
{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
5270
echo "${ECHO_T}$xsi_shell" >&6; }
5271
5272
5273
{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5274
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
5275
lt_shell_append=no
5276
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5277
    >/dev/null 2>&1 \
5278
  && lt_shell_append=yes
5279
{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5280
echo "${ECHO_T}$lt_shell_append" >&6; }
5281
5282
5283
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5284
  lt_unset=unset
5285
else
5286
  lt_unset=false
5287
fi
5288
5289
5290
5291
5292
5293
# test EBCDIC or ASCII
5294
case `echo X|tr X '\101'` in
5295
 A) # ASCII based system
5296
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5297
  lt_SP2NL='tr \040 \012'
5298
  lt_NL2SP='tr \015\012 \040\040'
5299
  ;;
5300
 *) # EBCDIC based system
5301
  lt_SP2NL='tr \100 \n'
5302
  lt_NL2SP='tr \r\n \100\100'
5303
  ;;
5304
esac
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5315
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5316
if test "${lt_cv_ld_reload_flag+set}" = set; then
5317
  echo $ECHO_N "(cached) $ECHO_C" >&6
5318
else
5319
  lt_cv_ld_reload_flag='-r'
5320
fi
5321
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5322
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5323
reload_flag=$lt_cv_ld_reload_flag
5324
case $reload_flag in
5325
"" | " "*) ;;
5326
*) reload_flag=" $reload_flag" ;;
5327
esac
5328
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5329
case $host_os in
5330
  darwin*)
5331
    if test "$GCC" = yes; then
5332
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5333
    else
5334
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5335
    fi
5336
    ;;
5337
esac
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5349
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5350
if test "${lt_cv_deplibs_check_method+set}" = set; then
5351
  echo $ECHO_N "(cached) $ECHO_C" >&6
5352
else
5353
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5354
lt_cv_file_magic_test_file=
5355
lt_cv_deplibs_check_method='unknown'
5356
# Need to set the preceding variable on all platforms that support
5357
# interlibrary dependencies.
5358
# 'none' -- dependencies not supported.
5359
# `unknown' -- same as none, but documents that we really don't know.
5360
# 'pass_all' -- all dependencies passed with no checks.
5361
# 'test_compile' -- check by making test program.
5362
# 'file_magic [[regex]]' -- check by looking for files in library path
5363
# which responds to the $file_magic_cmd with a given extended regex.
5364
# If you have `file' or equivalent on your system and you're not sure
5365
# whether `pass_all' will *always* work, you probably want this one.
5366
5367
case $host_os in
5368
aix[4-9]*)
5369
  lt_cv_deplibs_check_method=pass_all
5370
  ;;
5371
5372
beos*)
5373
  lt_cv_deplibs_check_method=pass_all
5374
  ;;
5375
5376
bsdi[45]*)
5377
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5378
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5379
  lt_cv_file_magic_test_file=/shlib/libc.so
5380
  ;;
5381
5382
cygwin*)
5383
  # func_win32_libid is a shell function defined in ltmain.sh
5384
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5385
  lt_cv_file_magic_cmd='func_win32_libid'
5386
  ;;
5387
5388
mingw* | pw32*)
5389
  # Base MSYS/MinGW do not provide the 'file' command needed by
5390
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5391
  # unless we find 'file', for example because we are cross-compiling.
5392
  if ( file / ) >/dev/null 2>&1; then
5393
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5394
    lt_cv_file_magic_cmd='func_win32_libid'
5395
  else
5396
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5397
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5398
  fi
5399
  ;;
5400
5401
darwin* | rhapsody*)
5402
  lt_cv_deplibs_check_method=pass_all
5403
  ;;
5404
5405
freebsd* | dragonfly*)
5406
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5407
    case $host_cpu in
5408
    i*86 )
5409
      # Not sure whether the presence of OpenBSD here was a mistake.
5410
      # Let's accept both of them until this is cleared up.
5411
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5412
      lt_cv_file_magic_cmd=/usr/bin/file
5413
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5414
      ;;
5415
    esac
5416
  else
5417
    lt_cv_deplibs_check_method=pass_all
5418
  fi
5419
  ;;
5420
5421
gnu*)
5422
  lt_cv_deplibs_check_method=pass_all
5423
  ;;
5424
5425
hpux10.20* | hpux11*)
5426
  lt_cv_file_magic_cmd=/usr/bin/file
5427
  case $host_cpu in
5428
  ia64*)
5429
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5430
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5431
    ;;
5432
  hppa*64*)
5433
    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]'
5434
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5435
    ;;
5436
  *)
5437
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5438
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5439
    ;;
5440
  esac
5441
  ;;
5442
5443
interix[3-9]*)
5444
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5445
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5446
  ;;
5447
5448
irix5* | irix6* | nonstopux*)
5449
  case $LD in
5450
  *-32|*"-32 ") libmagic=32-bit;;
5451
  *-n32|*"-n32 ") libmagic=N32;;
5452
  *-64|*"-64 ") libmagic=64-bit;;
5453
  *) libmagic=never-match;;
5454
  esac
5455
  lt_cv_deplibs_check_method=pass_all
5456
  ;;
5457
5458
# This must be Linux ELF.
5459
linux* | k*bsd*-gnu)
5460
  lt_cv_deplibs_check_method=pass_all
5461
  ;;
5462
5463
netbsd*)
5464
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5465
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5466
  else
5467
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5468
  fi
5469
  ;;
5470
5471
newos6*)
5472
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5473
  lt_cv_file_magic_cmd=/usr/bin/file
5474
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5475
  ;;
5476
5477
*nto* | *qnx*)
5478
  lt_cv_deplibs_check_method=pass_all
5479
  ;;
5480
5481
openbsd*)
5482
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5483
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5484
  else
5485
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5486
  fi
5487
  ;;
5488
5489
osf3* | osf4* | osf5*)
5490
  lt_cv_deplibs_check_method=pass_all
5491
  ;;
5492
5493
rdos*)
5494
  lt_cv_deplibs_check_method=pass_all
5495
  ;;
5496
5497
solaris*)
5498
  lt_cv_deplibs_check_method=pass_all
5499
  ;;
5500
5501
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5502
  lt_cv_deplibs_check_method=pass_all
5503
  ;;
5504
5505
sysv4 | sysv4.3*)
5506
  case $host_vendor in
5507
  motorola)
5508
    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]'
5509
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5510
    ;;
5511
  ncr)
5512
    lt_cv_deplibs_check_method=pass_all
5513
    ;;
5514
  sequent)
5515
    lt_cv_file_magic_cmd='/bin/file'
5516
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5517
    ;;
5518
  sni)
5519
    lt_cv_file_magic_cmd='/bin/file'
5520
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5521
    lt_cv_file_magic_test_file=/lib/libc.so
5522
    ;;
5523
  siemens)
5524
    lt_cv_deplibs_check_method=pass_all
5525
    ;;
5526
  pc)
5527
    lt_cv_deplibs_check_method=pass_all
5528
    ;;
5529
  esac
5530
  ;;
5531
5532
tpf*)
5533
  lt_cv_deplibs_check_method=pass_all
5534
  ;;
5535
esac
5536
5537
fi
5538
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5539
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5540
file_magic_cmd=$lt_cv_file_magic_cmd
5541
deplibs_check_method=$lt_cv_deplibs_check_method
5542
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
if test -n "$ac_tool_prefix"; then
5556
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5557
set dummy ${ac_tool_prefix}ar; ac_word=$2
5558
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5559
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5560
if test "${ac_cv_prog_AR+set}" = set; then
5561
  echo $ECHO_N "(cached) $ECHO_C" >&6
5562
else
5563
  if test -n "$AR"; then
5564
  ac_cv_prog_AR="$AR" # Let the user override the test.
5565
else
5566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567
for as_dir in $PATH
5568
do
5569
  IFS=$as_save_IFS
5570
  test -z "$as_dir" && as_dir=.
5571
  for ac_exec_ext in '' $ac_executable_extensions; do
5572
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5574
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575
    break 2
5576
  fi
5577
done
5578
done
5579
IFS=$as_save_IFS
5580
5581
fi
5582
fi
5583
AR=$ac_cv_prog_AR
5584
if test -n "$AR"; then
5585
  { echo "$as_me:$LINENO: result: $AR" >&5
5586
echo "${ECHO_T}$AR" >&6; }
5587
else
5588
  { echo "$as_me:$LINENO: result: no" >&5
5589
echo "${ECHO_T}no" >&6; }
5590
fi
5591
5592
5593
fi
5594
if test -z "$ac_cv_prog_AR"; then
5595
  ac_ct_AR=$AR
5596
  # Extract the first word of "ar", so it can be a program name with args.
5597
set dummy ar; ac_word=$2
5598
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5599
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5600
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5601
  echo $ECHO_N "(cached) $ECHO_C" >&6
5602
else
5603
  if test -n "$ac_ct_AR"; then
5604
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5605
else
5606
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607
for as_dir in $PATH
5608
do
5609
  IFS=$as_save_IFS
5610
  test -z "$as_dir" && as_dir=.
5611
  for ac_exec_ext in '' $ac_executable_extensions; do
5612
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613
    ac_cv_prog_ac_ct_AR="ar"
5614
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615
    break 2
5616
  fi
5617
done
5618
done
5619
IFS=$as_save_IFS
5620
5621
fi
5622
fi
5623
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5624
if test -n "$ac_ct_AR"; then
5625
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5626
echo "${ECHO_T}$ac_ct_AR" >&6; }
5627
else
5628
  { echo "$as_me:$LINENO: result: no" >&5
5629
echo "${ECHO_T}no" >&6; }
5630
fi
5631
5632
  if test "x$ac_ct_AR" = x; then
5633
    AR="false"
5634
  else
5635
    case $cross_compiling:$ac_tool_warned in
5636
yes:)
5637
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5638
whose name does not start with the host triplet.  If you think this
5639
configuration is useful to you, please write to autoconf@gnu.org." >&5
5640
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5641
whose name does not start with the host triplet.  If you think this
5642
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5643
ac_tool_warned=yes ;;
5644
esac
5645
    AR=$ac_ct_AR
5646
  fi
5647
else
5648
  AR="$ac_cv_prog_AR"
5649
fi
5650
5651
test -z "$AR" && AR=ar
5652
test -z "$AR_FLAGS" && AR_FLAGS=cru
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
if test -n "$ac_tool_prefix"; then
5665
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5666
set dummy ${ac_tool_prefix}strip; ac_word=$2
5667
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5668
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5669
if test "${ac_cv_prog_STRIP+set}" = set; then
5670
  echo $ECHO_N "(cached) $ECHO_C" >&6
5671
else
5672
  if test -n "$STRIP"; then
5673
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5674
else
5675
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676
for as_dir in $PATH
5677
do
5678
  IFS=$as_save_IFS
5679
  test -z "$as_dir" && as_dir=.
5680
  for ac_exec_ext in '' $ac_executable_extensions; do
5681
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5683
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684
    break 2
5685
  fi
5686
done
5687
done
5688
IFS=$as_save_IFS
5689
5690
fi
5691
fi
5692
STRIP=$ac_cv_prog_STRIP
5693
if test -n "$STRIP"; then
5694
  { echo "$as_me:$LINENO: result: $STRIP" >&5
5695
echo "${ECHO_T}$STRIP" >&6; }
5696
else
5697
  { echo "$as_me:$LINENO: result: no" >&5
5698
echo "${ECHO_T}no" >&6; }
5699
fi
5700
5701
5702
fi
5703
if test -z "$ac_cv_prog_STRIP"; then
5704
  ac_ct_STRIP=$STRIP
5705
  # Extract the first word of "strip", so it can be a program name with args.
5706
set dummy strip; ac_word=$2
5707
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5708
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5709
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5710
  echo $ECHO_N "(cached) $ECHO_C" >&6
5711
else
5712
  if test -n "$ac_ct_STRIP"; then
5713
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5714
else
5715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716
for as_dir in $PATH
5717
do
5718
  IFS=$as_save_IFS
5719
  test -z "$as_dir" && as_dir=.
5720
  for ac_exec_ext in '' $ac_executable_extensions; do
5721
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722
    ac_cv_prog_ac_ct_STRIP="strip"
5723
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724
    break 2
5725
  fi
5726
done
5727
done
5728
IFS=$as_save_IFS
5729
5730
fi
5731
fi
5732
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5733
if test -n "$ac_ct_STRIP"; then
5734
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5735
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5736
else
5737
  { echo "$as_me:$LINENO: result: no" >&5
5738
echo "${ECHO_T}no" >&6; }
5739
fi
5740
5741
  if test "x$ac_ct_STRIP" = x; then
5742
    STRIP=":"
5743
  else
5744
    case $cross_compiling:$ac_tool_warned in
5745
yes:)
5746
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5747
whose name does not start with the host triplet.  If you think this
5748
configuration is useful to you, please write to autoconf@gnu.org." >&5
5749
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5750
whose name does not start with the host triplet.  If you think this
5751
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5752
ac_tool_warned=yes ;;
5753
esac
5754
    STRIP=$ac_ct_STRIP
5755
  fi
5756
else
5757
  STRIP="$ac_cv_prog_STRIP"
5758
fi
5759
5760
test -z "$STRIP" && STRIP=:
5761
5762
5763
5764
5765
5766
5767
if test -n "$ac_tool_prefix"; then
5768
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5769
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5770
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5771
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5772
if test "${ac_cv_prog_RANLIB+set}" = set; then
5773
  echo $ECHO_N "(cached) $ECHO_C" >&6
5774
else
5775
  if test -n "$RANLIB"; then
5776
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5777
else
5778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779
for as_dir in $PATH
5780
do
5781
  IFS=$as_save_IFS
5782
  test -z "$as_dir" && as_dir=.
5783
  for ac_exec_ext in '' $ac_executable_extensions; do
5784
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5785
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5786
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787
    break 2
5788
  fi
5789
done
5790
done
5791
IFS=$as_save_IFS
5792
5793
fi
5794
fi
5795
RANLIB=$ac_cv_prog_RANLIB
5796
if test -n "$RANLIB"; then
5797
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
5798
echo "${ECHO_T}$RANLIB" >&6; }
5799
else
5800
  { echo "$as_me:$LINENO: result: no" >&5
5801
echo "${ECHO_T}no" >&6; }
5802
fi
5803
5804
5805
fi
5806
if test -z "$ac_cv_prog_RANLIB"; then
5807
  ac_ct_RANLIB=$RANLIB
5808
  # Extract the first word of "ranlib", so it can be a program name with args.
5809
set dummy ranlib; ac_word=$2
5810
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5811
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5812
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5813
  echo $ECHO_N "(cached) $ECHO_C" >&6
5814
else
5815
  if test -n "$ac_ct_RANLIB"; then
5816
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5817
else
5818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819
for as_dir in $PATH
5820
do
5821
  IFS=$as_save_IFS
5822
  test -z "$as_dir" && as_dir=.
5823
  for ac_exec_ext in '' $ac_executable_extensions; do
5824
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5826
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827
    break 2
5828
  fi
5829
done
5830
done
5831
IFS=$as_save_IFS
5832
5833
fi
5834
fi
5835
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5836
if test -n "$ac_ct_RANLIB"; then
5837
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5838
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5839
else
5840
  { echo "$as_me:$LINENO: result: no" >&5
5841
echo "${ECHO_T}no" >&6; }
5842
fi
5843
5844
  if test "x$ac_ct_RANLIB" = x; then
5845
    RANLIB=":"
5846
  else
5847
    case $cross_compiling:$ac_tool_warned in
5848
yes:)
5849
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5850
whose name does not start with the host triplet.  If you think this
5851
configuration is useful to you, please write to autoconf@gnu.org." >&5
5852
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5853
whose name does not start with the host triplet.  If you think this
5854
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5855
ac_tool_warned=yes ;;
5856
esac
5857
    RANLIB=$ac_ct_RANLIB
5858
  fi
5859
else
5860
  RANLIB="$ac_cv_prog_RANLIB"
5861
fi
5862
5863
test -z "$RANLIB" && RANLIB=:
5864
5865
5866
5867
5868
5869
5870
# Determine commands to create old-style static archives.
5871
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5872
old_postinstall_cmds='chmod 644 $oldlib'
5873
old_postuninstall_cmds=
5874
5875
if test -n "$RANLIB"; then
5876
  case $host_os in
5877
  openbsd*)
5878
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5879
    ;;
5880
  *)
5881
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5882
    ;;
5883
  esac
5884
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5885
fi
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
# If no C compiler was specified, use CC.
5921
LTCC=${LTCC-"$CC"}
5922
5923
# If no C compiler flags were specified, use CFLAGS.
5924
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5925
5926
# Allow CC to be a program name with arguments.
5927
compiler=$CC
5928
5929
5930
# Check for command to grab the raw symbol name followed by C symbol from nm.
5931
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5932
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5933
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5934
  echo $ECHO_N "(cached) $ECHO_C" >&6
5935
else
5936
5937
# These are sane defaults that work on at least a few old systems.
5938
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5939
5940
# Character class describing NM global symbol codes.
5941
symcode='[BCDEGRST]'
5942
5943
# Regexp to match symbols that can be accessed directly from C.
5944
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5945
5946
# Define system-specific variables.
5947
case $host_os in
5948
aix*)
5949
  symcode='[BCDT]'
5950
  ;;
5951
cygwin* | mingw* | pw32*)
5952
  symcode='[ABCDGISTW]'
5953
  ;;
5954
hpux*)
5955
  if test "$host_cpu" = ia64; then
5956
    symcode='[ABCDEGRST]'
5957
  fi
5958
  ;;
5959
irix* | nonstopux*)
5960
  symcode='[BCDEGRST]'
5961
  ;;
5962
osf*)
5963
  symcode='[BCDEGQRST]'
5964
  ;;
5965
solaris*)
5966
  symcode='[BDRT]'
5967
  ;;
5968
sco3.2v5*)
5969
  symcode='[DT]'
5970
  ;;
5971
sysv4.2uw2*)
5972
  symcode='[DT]'
5973
  ;;
5974
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5975
  symcode='[ABDT]'
5976
  ;;
5977
sysv4)
5978
  symcode='[DFNSTU]'
5979
  ;;
5980
esac
5981
5982
# If we're using GNU nm, then use its standard symbol codes.
5983
case `$NM -V 2>&1` in
5984
*GNU* | *'with BFD'*)
5985
  symcode='[ABCDGIRSTW]' ;;
5986
esac
5987
5988
# Transform an extracted symbol line into a proper C declaration.
5989
# Some systems (esp. on ia64) link data and code symbols differently,
5990
# so use this general approach.
5991
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5992
5993
# Transform an extracted symbol line into symbol name and symbol address
5994
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5995
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'"
5996
5997
# Handle CRLF in mingw tool chain
5998
opt_cr=
5999
case $build_os in
6000
mingw*)
6001
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6002
  ;;
6003
esac
6004
6005
# Try without a prefix underscore, then with it.
6006
for ac_symprfx in "" "_"; do
6007
6008
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6009
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6010
6011
  # Write the raw and C identifiers.
6012
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6013
    # Fake it for dumpbin and say T for any non-static function
6014
    # and D for any global variable.
6015
    # Also find C++ and __fastcall symbols from MSVC++,
6016
    # which start with @ or ?.
6017
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6018
"     {last_section=section; section=\$ 3};"\
6019
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6020
"     \$ 0!~/External *\|/{next};"\
6021
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6022
"     {if(hide[section]) next};"\
6023
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6024
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6025
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6026
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6027
"     ' prfx=^$ac_symprfx"
6028
  else
6029
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6030
  fi
6031
6032
  # Check to see that the pipe works correctly.
6033
  pipe_works=no
6034
6035
  rm -r -f conftest*
6036
  cat > conftest.$ac_ext <<_LT_EOF
6037
#ifdef __cplusplus
6038
extern "C" {
6039
#endif
6040
char nm_test_var;
6041
void nm_test_func(void);
6042
void nm_test_func(void){}
6043
#ifdef __cplusplus
6044
}
6045
#endif
6046
int main(){nm_test_var='a';nm_test_func();return(0);}
6047
_LT_EOF
6048
6049
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6050
  (eval $ac_compile) 2>&5
6051
  ac_status=$?
6052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053
  (exit $ac_status); }; then
6054
    # Now try to grab the symbols.
6055
    nlist=conftest.nm
6056
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6057
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6058
  ac_status=$?
6059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060
  (exit $ac_status); } && test -s "$nlist"; then
6061
      # Try sorting and uniquifying the output.
6062
      if sort "$nlist" | uniq > "$nlist"T; then
6063
	mv -f "$nlist"T "$nlist"
6064
      else
6065
	rm -f "$nlist"T
6066
      fi
6067
6068
      # Make sure that we snagged all the symbols we need.
6069
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6070
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6071
	  cat <<_LT_EOF > conftest.$ac_ext
6072
#ifdef __cplusplus
6073
extern "C" {
6074
#endif
6075
6076
_LT_EOF
6077
	  # Now generate the symbol file.
6078
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6079
6080
	  cat <<_LT_EOF >> conftest.$ac_ext
6081
6082
/* The mapping between symbol names and symbols.  */
6083
const struct {
6084
  const char *name;
6085
  void       *address;
6086
}
6087
lt__PROGRAM__LTX_preloaded_symbols[] =
6088
{
6089
  { "@PROGRAM@", (void *) 0 },
6090
_LT_EOF
6091
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6092
	  cat <<\_LT_EOF >> conftest.$ac_ext
6093
  {0, (void *) 0}
6094
};
6095
6096
/* This works around a problem in FreeBSD linker */
6097
#ifdef FREEBSD_WORKAROUND
6098
static const void *lt_preloaded_setup() {
6099
  return lt__PROGRAM__LTX_preloaded_symbols;
6100
}
6101
#endif
6102
6103
#ifdef __cplusplus
6104
}
6105
#endif
6106
_LT_EOF
6107
	  # Now try linking the two files.
6108
	  mv conftest.$ac_objext conftstm.$ac_objext
6109
	  lt_save_LIBS="$LIBS"
6110
	  lt_save_CFLAGS="$CFLAGS"
6111
	  LIBS="conftstm.$ac_objext"
6112
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6113
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114
  (eval $ac_link) 2>&5
6115
  ac_status=$?
6116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6118
	    pipe_works=yes
6119
	  fi
6120
	  LIBS="$lt_save_LIBS"
6121
	  CFLAGS="$lt_save_CFLAGS"
6122
	else
6123
	  echo "cannot find nm_test_func in $nlist" >&5
6124
	fi
6125
      else
6126
	echo "cannot find nm_test_var in $nlist" >&5
6127
      fi
6128
    else
6129
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6130
    fi
6131
  else
6132
    echo "$progname: failed program was:" >&5
6133
    cat conftest.$ac_ext >&5
6134
  fi
6135
  rm -rf conftest* conftst*
6136
6137
  # Do not use the global_symbol_pipe unless it works.
6138
  if test "$pipe_works" = yes; then
6139
    break
6140
  else
6141
    lt_cv_sys_global_symbol_pipe=
6142
  fi
6143
done
6144
6145
fi
6146
6147
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6148
  lt_cv_sys_global_symbol_to_cdecl=
6149
fi
6150
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6151
  { echo "$as_me:$LINENO: result: failed" >&5
6152
echo "${ECHO_T}failed" >&6; }
6153
else
6154
  { echo "$as_me:$LINENO: result: ok" >&5
6155
echo "${ECHO_T}ok" >&6; }
6156
fi
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
# Check whether --enable-libtool-lock was given.
6181
if test "${enable_libtool_lock+set}" = set; then
6182
  enableval=$enable_libtool_lock;
6183
fi
6184
6185
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6186
6187
# Some flags need to be propagated to the compiler or linker for good
6188
# libtool support.
6189
case $host in
6190
ia64-*-hpux*)
6191
  # Find out which ABI we are using.
6192
  echo 'int i;' > conftest.$ac_ext
6193
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6194
  (eval $ac_compile) 2>&5
6195
  ac_status=$?
6196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197
  (exit $ac_status); }; then
6198
    case `/usr/bin/file conftest.$ac_objext` in
6199
      *ELF-32*)
6200
	HPUX_IA64_MODE="32"
6201
	;;
6202
      *ELF-64*)
6203
	HPUX_IA64_MODE="64"
6204
	;;
6205
    esac
6206
  fi
6207
  rm -rf conftest*
6208
  ;;
6209
*-*-irix6*)
6210
  # Find out which ABI we are using.
6211
  echo '#line 6211 "configure"' > conftest.$ac_ext
6212
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6213
  (eval $ac_compile) 2>&5
6214
  ac_status=$?
6215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216
  (exit $ac_status); }; then
6217
    if test "$lt_cv_prog_gnu_ld" = yes; then
6218
      case `/usr/bin/file conftest.$ac_objext` in
6219
	*32-bit*)
6220
	  LD="${LD-ld} -melf32bsmip"
6221
	  ;;
6222
	*N32*)
6223
	  LD="${LD-ld} -melf32bmipn32"
6224
	  ;;
6225
	*64-bit*)
6226
	  LD="${LD-ld} -melf64bmip"
6227
	;;
6228
      esac
6229
    else
6230
      case `/usr/bin/file conftest.$ac_objext` in
6231
	*32-bit*)
6232
	  LD="${LD-ld} -32"
6233
	  ;;
6234
	*N32*)
6235
	  LD="${LD-ld} -n32"
6236
	  ;;
6237
	*64-bit*)
6238
	  LD="${LD-ld} -64"
6239
	  ;;
6240
      esac
6241
    fi
6242
  fi
6243
  rm -rf conftest*
6244
  ;;
6245
6246
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6247
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6248
  # Find out which ABI we are using.
6249
  echo 'int i;' > conftest.$ac_ext
6250
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251
  (eval $ac_compile) 2>&5
6252
  ac_status=$?
6253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254
  (exit $ac_status); }; then
6255
    case `/usr/bin/file conftest.o` in
6256
      *32-bit*)
6257
	case $host in
6258
	  x86_64-*kfreebsd*-gnu)
6259
	    LD="${LD-ld} -m elf_i386_fbsd"
6260
	    ;;
6261
	  x86_64-*linux*)
6262
	    LD="${LD-ld} -m elf_i386"
6263
	    ;;
6264
	  ppc64-*linux*|powerpc64-*linux*)
6265
	    LD="${LD-ld} -m elf32ppclinux"
6266
	    ;;
6267
	  s390x-*linux*)
6268
	    LD="${LD-ld} -m elf_s390"
6269
	    ;;
6270
	  sparc64-*linux*)
6271
	    LD="${LD-ld} -m elf32_sparc"
6272
	    ;;
6273
	esac
6274
	;;
6275
      *64-bit*)
6276
	case $host in
6277
	  x86_64-*kfreebsd*-gnu)
6278
	    LD="${LD-ld} -m elf_x86_64_fbsd"
6279
	    ;;
6280
	  x86_64-*linux*)
6281
	    LD="${LD-ld} -m elf_x86_64"
6282
	    ;;
6283
	  ppc*-*linux*|powerpc*-*linux*)
6284
	    LD="${LD-ld} -m elf64ppc"
6285
	    ;;
6286
	  s390*-*linux*|s390*-*tpf*)
6287
	    LD="${LD-ld} -m elf64_s390"
6288
	    ;;
6289
	  sparc*-*linux*)
6290
	    LD="${LD-ld} -m elf64_sparc"
6291
	    ;;
6292
	esac
6293
	;;
6294
    esac
6295
  fi
6296
  rm -rf conftest*
6297
  ;;
6298
6299
*-*-sco3.2v5*)
6300
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6301
  SAVE_CFLAGS="$CFLAGS"
6302
  CFLAGS="$CFLAGS -belf"
6303
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6304
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6305
if test "${lt_cv_cc_needs_belf+set}" = set; then
6306
  echo $ECHO_N "(cached) $ECHO_C" >&6
6307
else
6308
  ac_ext=c
6309
ac_cpp='$CPP $CPPFLAGS'
6310
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6313
6314
     cat >conftest.$ac_ext <<_ACEOF
6315
/* confdefs.h.  */
6316
_ACEOF
6317
cat confdefs.h >>conftest.$ac_ext
6318
cat >>conftest.$ac_ext <<_ACEOF
6319
/* end confdefs.h.  */
6320
6321
int
6322
main ()
6323
{
6324
6325
  ;
6326
  return 0;
6327
}
6328
_ACEOF
6329
rm -f conftest.$ac_objext conftest$ac_exeext
6330
if { (ac_try="$ac_link"
6331
case "(($ac_try" in
6332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333
  *) ac_try_echo=$ac_try;;
6334
esac
6335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336
  (eval "$ac_link") 2>conftest.er1
6337
  ac_status=$?
6338
  grep -v '^ *+' conftest.er1 >conftest.err
6339
  rm -f conftest.er1
6340
  cat conftest.err >&5
6341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342
  (exit $ac_status); } && {
6343
	 test -z "$ac_c_werror_flag" ||
6344
	 test ! -s conftest.err
6345
       } && test -s conftest$ac_exeext &&
6346
       $as_test_x conftest$ac_exeext; then
6347
  lt_cv_cc_needs_belf=yes
6348
else
6349
  echo "$as_me: failed program was:" >&5
6350
sed 's/^/| /' conftest.$ac_ext >&5
6351
6352
	lt_cv_cc_needs_belf=no
6353
fi
6354
6355
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6356
      conftest$ac_exeext conftest.$ac_ext
6357
     ac_ext=c
6358
ac_cpp='$CPP $CPPFLAGS'
6359
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6360
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6361
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6362
6363
fi
6364
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6365
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6366
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6367
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6368
    CFLAGS="$SAVE_CFLAGS"
6369
  fi
6370
  ;;
6371
sparc*-*solaris*)
6372
  # Find out which ABI we are using.
6373
  echo 'int i;' > conftest.$ac_ext
6374
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375
  (eval $ac_compile) 2>&5
6376
  ac_status=$?
6377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378
  (exit $ac_status); }; then
6379
    case `/usr/bin/file conftest.o` in
6380
    *64-bit*)
6381
      case $lt_cv_prog_gnu_ld in
6382
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6383
      *)
6384
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6385
	  LD="${LD-ld} -64"
6386
	fi
6387
	;;
6388
      esac
6389
      ;;
6390
    esac
6391
  fi
6392
  rm -rf conftest*
6393
  ;;
6394
esac
6395
6396
need_locks="$enable_libtool_lock"
6397
6398
6399
  case $host_os in
6400
    rhapsody* | darwin*)
6401
    if test -n "$ac_tool_prefix"; then
6402
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6403
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6404
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6405
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6407
  echo $ECHO_N "(cached) $ECHO_C" >&6
6408
else
6409
  if test -n "$DSYMUTIL"; then
6410
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6411
else
6412
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413
for as_dir in $PATH
6414
do
6415
  IFS=$as_save_IFS
6416
  test -z "$as_dir" && as_dir=.
6417
  for ac_exec_ext in '' $ac_executable_extensions; do
6418
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6420
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421
    break 2
6422
  fi
6423
done
6424
done
6425
IFS=$as_save_IFS
6426
6427
fi
6428
fi
6429
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6430
if test -n "$DSYMUTIL"; then
6431
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6432
echo "${ECHO_T}$DSYMUTIL" >&6; }
6433
else
6434
  { echo "$as_me:$LINENO: result: no" >&5
6435
echo "${ECHO_T}no" >&6; }
6436
fi
6437
6438
6439
fi
6440
if test -z "$ac_cv_prog_DSYMUTIL"; then
6441
  ac_ct_DSYMUTIL=$DSYMUTIL
6442
  # Extract the first word of "dsymutil", so it can be a program name with args.
6443
set dummy dsymutil; ac_word=$2
6444
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6445
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6447
  echo $ECHO_N "(cached) $ECHO_C" >&6
6448
else
6449
  if test -n "$ac_ct_DSYMUTIL"; then
6450
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6451
else
6452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453
for as_dir in $PATH
6454
do
6455
  IFS=$as_save_IFS
6456
  test -z "$as_dir" && as_dir=.
6457
  for ac_exec_ext in '' $ac_executable_extensions; do
6458
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6460
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461
    break 2
6462
  fi
6463
done
6464
done
6465
IFS=$as_save_IFS
6466
6467
fi
6468
fi
6469
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6470
if test -n "$ac_ct_DSYMUTIL"; then
6471
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6472
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6473
else
6474
  { echo "$as_me:$LINENO: result: no" >&5
6475
echo "${ECHO_T}no" >&6; }
6476
fi
6477
6478
  if test "x$ac_ct_DSYMUTIL" = x; then
6479
    DSYMUTIL=":"
6480
  else
6481
    case $cross_compiling:$ac_tool_warned in
6482
yes:)
6483
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6484
whose name does not start with the host triplet.  If you think this
6485
configuration is useful to you, please write to autoconf@gnu.org." >&5
6486
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6487
whose name does not start with the host triplet.  If you think this
6488
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6489
ac_tool_warned=yes ;;
6490
esac
6491
    DSYMUTIL=$ac_ct_DSYMUTIL
6492
  fi
6493
else
6494
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6495
fi
6496
6497
    if test -n "$ac_tool_prefix"; then
6498
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6499
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6500
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6501
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6503
  echo $ECHO_N "(cached) $ECHO_C" >&6
6504
else
6505
  if test -n "$NMEDIT"; then
6506
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6507
else
6508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509
for as_dir in $PATH
6510
do
6511
  IFS=$as_save_IFS
6512
  test -z "$as_dir" && as_dir=.
6513
  for ac_exec_ext in '' $ac_executable_extensions; do
6514
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6516
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517
    break 2
6518
  fi
6519
done
6520
done
6521
IFS=$as_save_IFS
6522
6523
fi
6524
fi
6525
NMEDIT=$ac_cv_prog_NMEDIT
6526
if test -n "$NMEDIT"; then
6527
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6528
echo "${ECHO_T}$NMEDIT" >&6; }
6529
else
6530
  { echo "$as_me:$LINENO: result: no" >&5
6531
echo "${ECHO_T}no" >&6; }
6532
fi
6533
6534
6535
fi
6536
if test -z "$ac_cv_prog_NMEDIT"; then
6537
  ac_ct_NMEDIT=$NMEDIT
6538
  # Extract the first word of "nmedit", so it can be a program name with args.
6539
set dummy nmedit; ac_word=$2
6540
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6541
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6543
  echo $ECHO_N "(cached) $ECHO_C" >&6
6544
else
6545
  if test -n "$ac_ct_NMEDIT"; then
6546
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6547
else
6548
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549
for as_dir in $PATH
6550
do
6551
  IFS=$as_save_IFS
6552
  test -z "$as_dir" && as_dir=.
6553
  for ac_exec_ext in '' $ac_executable_extensions; do
6554
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6556
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557
    break 2
6558
  fi
6559
done
6560
done
6561
IFS=$as_save_IFS
6562
6563
fi
6564
fi
6565
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6566
if test -n "$ac_ct_NMEDIT"; then
6567
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6568
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6569
else
6570
  { echo "$as_me:$LINENO: result: no" >&5
6571
echo "${ECHO_T}no" >&6; }
6572
fi
6573
6574
  if test "x$ac_ct_NMEDIT" = x; then
6575
    NMEDIT=":"
6576
  else
6577
    case $cross_compiling:$ac_tool_warned in
6578
yes:)
6579
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6580
whose name does not start with the host triplet.  If you think this
6581
configuration is useful to you, please write to autoconf@gnu.org." >&5
6582
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6583
whose name does not start with the host triplet.  If you think this
6584
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6585
ac_tool_warned=yes ;;
6586
esac
6587
    NMEDIT=$ac_ct_NMEDIT
6588
  fi
6589
else
6590
  NMEDIT="$ac_cv_prog_NMEDIT"
6591
fi
6592
6593
    if test -n "$ac_tool_prefix"; then
6594
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6595
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6596
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6597
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598
if test "${ac_cv_prog_LIPO+set}" = set; then
6599
  echo $ECHO_N "(cached) $ECHO_C" >&6
6600
else
6601
  if test -n "$LIPO"; then
6602
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6603
else
6604
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605
for as_dir in $PATH
6606
do
6607
  IFS=$as_save_IFS
6608
  test -z "$as_dir" && as_dir=.
6609
  for ac_exec_ext in '' $ac_executable_extensions; do
6610
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6612
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613
    break 2
6614
  fi
6615
done
6616
done
6617
IFS=$as_save_IFS
6618
6619
fi
6620
fi
6621
LIPO=$ac_cv_prog_LIPO
6622
if test -n "$LIPO"; then
6623
  { echo "$as_me:$LINENO: result: $LIPO" >&5
6624
echo "${ECHO_T}$LIPO" >&6; }
6625
else
6626
  { echo "$as_me:$LINENO: result: no" >&5
6627
echo "${ECHO_T}no" >&6; }
6628
fi
6629
6630
6631
fi
6632
if test -z "$ac_cv_prog_LIPO"; then
6633
  ac_ct_LIPO=$LIPO
6634
  # Extract the first word of "lipo", so it can be a program name with args.
6635
set dummy lipo; ac_word=$2
6636
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6637
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6639
  echo $ECHO_N "(cached) $ECHO_C" >&6
6640
else
6641
  if test -n "$ac_ct_LIPO"; then
6642
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6643
else
6644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645
for as_dir in $PATH
6646
do
6647
  IFS=$as_save_IFS
6648
  test -z "$as_dir" && as_dir=.
6649
  for ac_exec_ext in '' $ac_executable_extensions; do
6650
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651
    ac_cv_prog_ac_ct_LIPO="lipo"
6652
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653
    break 2
6654
  fi
6655
done
6656
done
6657
IFS=$as_save_IFS
6658
6659
fi
6660
fi
6661
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6662
if test -n "$ac_ct_LIPO"; then
6663
  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6664
echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6665
else
6666
  { echo "$as_me:$LINENO: result: no" >&5
6667
echo "${ECHO_T}no" >&6; }
6668
fi
6669
6670
  if test "x$ac_ct_LIPO" = x; then
6671
    LIPO=":"
6672
  else
6673
    case $cross_compiling:$ac_tool_warned in
6674
yes:)
6675
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6676
whose name does not start with the host triplet.  If you think this
6677
configuration is useful to you, please write to autoconf@gnu.org." >&5
6678
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6679
whose name does not start with the host triplet.  If you think this
6680
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6681
ac_tool_warned=yes ;;
6682
esac
6683
    LIPO=$ac_ct_LIPO
6684
  fi
6685
else
6686
  LIPO="$ac_cv_prog_LIPO"
6687
fi
6688
6689
    if test -n "$ac_tool_prefix"; then
6690
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6691
set dummy ${ac_tool_prefix}otool; ac_word=$2
6692
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6693
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694
if test "${ac_cv_prog_OTOOL+set}" = set; then
6695
  echo $ECHO_N "(cached) $ECHO_C" >&6
6696
else
6697
  if test -n "$OTOOL"; then
6698
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6699
else
6700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701
for as_dir in $PATH
6702
do
6703
  IFS=$as_save_IFS
6704
  test -z "$as_dir" && as_dir=.
6705
  for ac_exec_ext in '' $ac_executable_extensions; do
6706
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6708
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709
    break 2
6710
  fi
6711
done
6712
done
6713
IFS=$as_save_IFS
6714
6715
fi
6716
fi
6717
OTOOL=$ac_cv_prog_OTOOL
6718
if test -n "$OTOOL"; then
6719
  { echo "$as_me:$LINENO: result: $OTOOL" >&5
6720
echo "${ECHO_T}$OTOOL" >&6; }
6721
else
6722
  { echo "$as_me:$LINENO: result: no" >&5
6723
echo "${ECHO_T}no" >&6; }
6724
fi
6725
6726
6727
fi
6728
if test -z "$ac_cv_prog_OTOOL"; then
6729
  ac_ct_OTOOL=$OTOOL
6730
  # Extract the first word of "otool", so it can be a program name with args.
6731
set dummy otool; ac_word=$2
6732
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6733
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6735
  echo $ECHO_N "(cached) $ECHO_C" >&6
6736
else
6737
  if test -n "$ac_ct_OTOOL"; then
6738
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6739
else
6740
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741
for as_dir in $PATH
6742
do
6743
  IFS=$as_save_IFS
6744
  test -z "$as_dir" && as_dir=.
6745
  for ac_exec_ext in '' $ac_executable_extensions; do
6746
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747
    ac_cv_prog_ac_ct_OTOOL="otool"
6748
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749
    break 2
6750
  fi
6751
done
6752
done
6753
IFS=$as_save_IFS
6754
6755
fi
6756
fi
6757
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6758
if test -n "$ac_ct_OTOOL"; then
6759
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6760
echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6761
else
6762
  { echo "$as_me:$LINENO: result: no" >&5
6763
echo "${ECHO_T}no" >&6; }
6764
fi
6765
6766
  if test "x$ac_ct_OTOOL" = x; then
6767
    OTOOL=":"
6768
  else
6769
    case $cross_compiling:$ac_tool_warned in
6770
yes:)
6771
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6772
whose name does not start with the host triplet.  If you think this
6773
configuration is useful to you, please write to autoconf@gnu.org." >&5
6774
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6775
whose name does not start with the host triplet.  If you think this
6776
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6777
ac_tool_warned=yes ;;
6778
esac
6779
    OTOOL=$ac_ct_OTOOL
6780
  fi
6781
else
6782
  OTOOL="$ac_cv_prog_OTOOL"
6783
fi
6784
6785
    if test -n "$ac_tool_prefix"; then
6786
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6787
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6788
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6789
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6791
  echo $ECHO_N "(cached) $ECHO_C" >&6
6792
else
6793
  if test -n "$OTOOL64"; then
6794
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6795
else
6796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797
for as_dir in $PATH
6798
do
6799
  IFS=$as_save_IFS
6800
  test -z "$as_dir" && as_dir=.
6801
  for ac_exec_ext in '' $ac_executable_extensions; do
6802
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6804
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805
    break 2
6806
  fi
6807
done
6808
done
6809
IFS=$as_save_IFS
6810
6811
fi
6812
fi
6813
OTOOL64=$ac_cv_prog_OTOOL64
6814
if test -n "$OTOOL64"; then
6815
  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6816
echo "${ECHO_T}$OTOOL64" >&6; }
6817
else
6818
  { echo "$as_me:$LINENO: result: no" >&5
6819
echo "${ECHO_T}no" >&6; }
6820
fi
6821
6822
6823
fi
6824
if test -z "$ac_cv_prog_OTOOL64"; then
6825
  ac_ct_OTOOL64=$OTOOL64
6826
  # Extract the first word of "otool64", so it can be a program name with args.
6827
set dummy otool64; ac_word=$2
6828
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6829
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6831
  echo $ECHO_N "(cached) $ECHO_C" >&6
6832
else
6833
  if test -n "$ac_ct_OTOOL64"; then
6834
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6835
else
6836
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837
for as_dir in $PATH
6838
do
6839
  IFS=$as_save_IFS
6840
  test -z "$as_dir" && as_dir=.
6841
  for ac_exec_ext in '' $ac_executable_extensions; do
6842
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6844
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845
    break 2
6846
  fi
6847
done
6848
done
6849
IFS=$as_save_IFS
6850
6851
fi
6852
fi
6853
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6854
if test -n "$ac_ct_OTOOL64"; then
6855
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6856
echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6857
else
6858
  { echo "$as_me:$LINENO: result: no" >&5
6859
echo "${ECHO_T}no" >&6; }
6860
fi
6861
6862
  if test "x$ac_ct_OTOOL64" = x; then
6863
    OTOOL64=":"
6864
  else
6865
    case $cross_compiling:$ac_tool_warned in
6866
yes:)
6867
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868
whose name does not start with the host triplet.  If you think this
6869
configuration is useful to you, please write to autoconf@gnu.org." >&5
6870
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871
whose name does not start with the host triplet.  If you think this
6872
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873
ac_tool_warned=yes ;;
6874
esac
6875
    OTOOL64=$ac_ct_OTOOL64
6876
  fi
6877
else
6878
  OTOOL64="$ac_cv_prog_OTOOL64"
6879
fi
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6908
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6909
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6910
  echo $ECHO_N "(cached) $ECHO_C" >&6
6911
else
6912
  lt_cv_apple_cc_single_mod=no
6913
      if test -z "${LT_MULTI_MODULE}"; then
6914
	# By default we will add the -single_module flag. You can override
6915
	# by either setting the environment variable LT_MULTI_MODULE
6916
	# non-empty at configure time, or by adding -multi_module to the
6917
	# link flags.
6918
	rm -rf libconftest.dylib*
6919
	echo "int foo(void){return 1;}" > conftest.c
6920
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6921
-dynamiclib -Wl,-single_module conftest.c" >&5
6922
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6923
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6924
        _lt_result=$?
6925
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6926
	  lt_cv_apple_cc_single_mod=yes
6927
	else
6928
	  cat conftest.err >&5
6929
	fi
6930
	rm -rf libconftest.dylib*
6931
	rm -f conftest.*
6932
      fi
6933
fi
6934
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6935
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6936
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6937
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6938
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6939
  echo $ECHO_N "(cached) $ECHO_C" >&6
6940
else
6941
  lt_cv_ld_exported_symbols_list=no
6942
      save_LDFLAGS=$LDFLAGS
6943
      echo "_main" > conftest.sym
6944
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6945
      cat >conftest.$ac_ext <<_ACEOF
6946
/* confdefs.h.  */
6947
_ACEOF
6948
cat confdefs.h >>conftest.$ac_ext
6949
cat >>conftest.$ac_ext <<_ACEOF
6950
/* end confdefs.h.  */
6951
6952
int
6953
main ()
6954
{
6955
6956
  ;
6957
  return 0;
6958
}
6959
_ACEOF
6960
rm -f conftest.$ac_objext conftest$ac_exeext
6961
if { (ac_try="$ac_link"
6962
case "(($ac_try" in
6963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964
  *) ac_try_echo=$ac_try;;
6965
esac
6966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967
  (eval "$ac_link") 2>conftest.er1
6968
  ac_status=$?
6969
  grep -v '^ *+' conftest.er1 >conftest.err
6970
  rm -f conftest.er1
6971
  cat conftest.err >&5
6972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973
  (exit $ac_status); } && {
6974
	 test -z "$ac_c_werror_flag" ||
6975
	 test ! -s conftest.err
6976
       } && test -s conftest$ac_exeext &&
6977
       $as_test_x conftest$ac_exeext; then
6978
  lt_cv_ld_exported_symbols_list=yes
6979
else
6980
  echo "$as_me: failed program was:" >&5
6981
sed 's/^/| /' conftest.$ac_ext >&5
6982
6983
	lt_cv_ld_exported_symbols_list=no
6984
fi
6985
6986
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6987
      conftest$ac_exeext conftest.$ac_ext
6988
	LDFLAGS="$save_LDFLAGS"
6989
6990
fi
6991
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6992
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6993
    case $host_os in
6994
    rhapsody* | darwin1.[012])
6995
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6996
    darwin1.*)
6997
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6998
    darwin*) # darwin 5.x on
6999
      # if running on 10.5 or later, the deployment target defaults
7000
      # to the OS version, if on x86, and 10.4, the deployment
7001
      # target defaults to 10.4. Don't you love it?
7002
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7003
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7004
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7005
	10.[012]*)
7006
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7007
	10.*)
7008
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7009
      esac
7010
    ;;
7011
  esac
7012
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7013
      _lt_dar_single_mod='$single_module'
7014
    fi
7015
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7016
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7017
    else
7018
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7019
    fi
7020
    if test "$DSYMUTIL" != ":"; then
7021
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7022
    else
7023
      _lt_dsymutil=
7024
    fi
7025
    ;;
7026
  esac
7027
7028
ac_ext=c
7029
ac_cpp='$CPP $CPPFLAGS'
7030
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7033
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7034
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
7035
# On Suns, sometimes $CPP names a directory.
7036
if test -n "$CPP" && test -d "$CPP"; then
7037
  CPP=
7038
fi
7039
if test -z "$CPP"; then
7040
  if test "${ac_cv_prog_CPP+set}" = set; then
7041
  echo $ECHO_N "(cached) $ECHO_C" >&6
7042
else
7043
      # Double quotes because CPP needs to be expanded
7044
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7045
    do
7046
      ac_preproc_ok=false
7047
for ac_c_preproc_warn_flag in '' yes
7048
do
7049
  # Use a header file that comes with gcc, so configuring glibc
7050
  # with a fresh cross-compiler works.
7051
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7052
  # <limits.h> exists even on freestanding compilers.
7053
  # On the NeXT, cc -E runs the code through the compiler's parser,
7054
  # not just through cpp. "Syntax error" is here to catch this case.
7055
  cat >conftest.$ac_ext <<_ACEOF
7056
/* confdefs.h.  */
7057
_ACEOF
7058
cat confdefs.h >>conftest.$ac_ext
7059
cat >>conftest.$ac_ext <<_ACEOF
7060
/* end confdefs.h.  */
7061
#ifdef __STDC__
7062
# include <limits.h>
7063
#else
7064
# include <assert.h>
7065
#endif
7066
		     Syntax error
7067
_ACEOF
7068
if { (ac_try="$ac_cpp conftest.$ac_ext"
7069
case "(($ac_try" in
7070
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071
  *) ac_try_echo=$ac_try;;
7072
esac
7073
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7075
  ac_status=$?
7076
  grep -v '^ *+' conftest.er1 >conftest.err
7077
  rm -f conftest.er1
7078
  cat conftest.err >&5
7079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080
  (exit $ac_status); } >/dev/null && {
7081
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7082
	 test ! -s conftest.err
7083
       }; then
7084
  :
7085
else
7086
  echo "$as_me: failed program was:" >&5
7087
sed 's/^/| /' conftest.$ac_ext >&5
7088
7089
  # Broken: fails on valid input.
7090
continue
7091
fi
7092
7093
rm -f conftest.err conftest.$ac_ext
7094
7095
  # OK, works on sane cases.  Now check whether nonexistent headers
7096
  # can be detected and how.
7097
  cat >conftest.$ac_ext <<_ACEOF
7098
/* confdefs.h.  */
7099
_ACEOF
7100
cat confdefs.h >>conftest.$ac_ext
7101
cat >>conftest.$ac_ext <<_ACEOF
7102
/* end confdefs.h.  */
7103
#include <ac_nonexistent.h>
7104
_ACEOF
7105
if { (ac_try="$ac_cpp conftest.$ac_ext"
7106
case "(($ac_try" in
7107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108
  *) ac_try_echo=$ac_try;;
7109
esac
7110
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7112
  ac_status=$?
7113
  grep -v '^ *+' conftest.er1 >conftest.err
7114
  rm -f conftest.er1
7115
  cat conftest.err >&5
7116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117
  (exit $ac_status); } >/dev/null && {
7118
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7119
	 test ! -s conftest.err
7120
       }; then
7121
  # Broken: success on invalid input.
7122
continue
7123
else
7124
  echo "$as_me: failed program was:" >&5
7125
sed 's/^/| /' conftest.$ac_ext >&5
7126
7127
  # Passes both tests.
7128
ac_preproc_ok=:
7129
break
7130
fi
7131
7132
rm -f conftest.err conftest.$ac_ext
7133
7134
done
7135
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7136
rm -f conftest.err conftest.$ac_ext
7137
if $ac_preproc_ok; then
7138
  break
7139
fi
7140
7141
    done
7142
    ac_cv_prog_CPP=$CPP
7143
7144
fi
7145
  CPP=$ac_cv_prog_CPP
7146
else
7147
  ac_cv_prog_CPP=$CPP
7148
fi
7149
{ echo "$as_me:$LINENO: result: $CPP" >&5
7150
echo "${ECHO_T}$CPP" >&6; }
7151
ac_preproc_ok=false
7152
for ac_c_preproc_warn_flag in '' yes
7153
do
7154
  # Use a header file that comes with gcc, so configuring glibc
7155
  # with a fresh cross-compiler works.
7156
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7157
  # <limits.h> exists even on freestanding compilers.
7158
  # On the NeXT, cc -E runs the code through the compiler's parser,
7159
  # not just through cpp. "Syntax error" is here to catch this case.
7160
  cat >conftest.$ac_ext <<_ACEOF
7161
/* confdefs.h.  */
7162
_ACEOF
7163
cat confdefs.h >>conftest.$ac_ext
7164
cat >>conftest.$ac_ext <<_ACEOF
7165
/* end confdefs.h.  */
7166
#ifdef __STDC__
7167
# include <limits.h>
7168
#else
7169
# include <assert.h>
7170
#endif
7171
		     Syntax error
7172
_ACEOF
7173
if { (ac_try="$ac_cpp conftest.$ac_ext"
7174
case "(($ac_try" in
7175
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176
  *) ac_try_echo=$ac_try;;
7177
esac
7178
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7180
  ac_status=$?
7181
  grep -v '^ *+' conftest.er1 >conftest.err
7182
  rm -f conftest.er1
7183
  cat conftest.err >&5
7184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185
  (exit $ac_status); } >/dev/null && {
7186
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7187
	 test ! -s conftest.err
7188
       }; then
7189
  :
7190
else
7191
  echo "$as_me: failed program was:" >&5
7192
sed 's/^/| /' conftest.$ac_ext >&5
7193
7194
  # Broken: fails on valid input.
7195
continue
7196
fi
7197
7198
rm -f conftest.err conftest.$ac_ext
7199
7200
  # OK, works on sane cases.  Now check whether nonexistent headers
7201
  # can be detected and how.
7202
  cat >conftest.$ac_ext <<_ACEOF
7203
/* confdefs.h.  */
7204
_ACEOF
7205
cat confdefs.h >>conftest.$ac_ext
7206
cat >>conftest.$ac_ext <<_ACEOF
7207
/* end confdefs.h.  */
7208
#include <ac_nonexistent.h>
7209
_ACEOF
7210
if { (ac_try="$ac_cpp conftest.$ac_ext"
7211
case "(($ac_try" in
7212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7213
  *) ac_try_echo=$ac_try;;
7214
esac
7215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7216
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7217
  ac_status=$?
7218
  grep -v '^ *+' conftest.er1 >conftest.err
7219
  rm -f conftest.er1
7220
  cat conftest.err >&5
7221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222
  (exit $ac_status); } >/dev/null && {
7223
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7224
	 test ! -s conftest.err
7225
       }; then
7226
  # Broken: success on invalid input.
7227
continue
7228
else
7229
  echo "$as_me: failed program was:" >&5
7230
sed 's/^/| /' conftest.$ac_ext >&5
7231
7232
  # Passes both tests.
7233
ac_preproc_ok=:
7234
break
7235
fi
7236
7237
rm -f conftest.err conftest.$ac_ext
7238
7239
done
7240
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7241
rm -f conftest.err conftest.$ac_ext
7242
if $ac_preproc_ok; then
7243
  :
7244
else
7245
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7246
See \`config.log' for more details." >&5
7247
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7248
See \`config.log' for more details." >&2;}
7249
   { (exit 1); exit 1; }; }
7250
fi
7251
7252
ac_ext=c
7253
ac_cpp='$CPP $CPPFLAGS'
7254
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257
7258
7259
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7260
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7261
if test "${ac_cv_header_stdc+set}" = set; then
7262
  echo $ECHO_N "(cached) $ECHO_C" >&6
7263
else
7264
  cat >conftest.$ac_ext <<_ACEOF
7265
/* confdefs.h.  */
7266
_ACEOF
7267
cat confdefs.h >>conftest.$ac_ext
7268
cat >>conftest.$ac_ext <<_ACEOF
7269
/* end confdefs.h.  */
7270
#include <stdlib.h>
7271
#include <stdarg.h>
7272
#include <string.h>
7273
#include <float.h>
7274
7275
int
7276
main ()
7277
{
7278
7279
  ;
7280
  return 0;
7281
}
7282
_ACEOF
7283
rm -f conftest.$ac_objext
7284
if { (ac_try="$ac_compile"
7285
case "(($ac_try" in
7286
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287
  *) ac_try_echo=$ac_try;;
7288
esac
7289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290
  (eval "$ac_compile") 2>conftest.er1
7291
  ac_status=$?
7292
  grep -v '^ *+' conftest.er1 >conftest.err
7293
  rm -f conftest.er1
7294
  cat conftest.err >&5
7295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296
  (exit $ac_status); } && {
7297
	 test -z "$ac_c_werror_flag" ||
7298
	 test ! -s conftest.err
7299
       } && test -s conftest.$ac_objext; then
7300
  ac_cv_header_stdc=yes
7301
else
7302
  echo "$as_me: failed program was:" >&5
7303
sed 's/^/| /' conftest.$ac_ext >&5
7304
7305
	ac_cv_header_stdc=no
7306
fi
7307
7308
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309
7310
if test $ac_cv_header_stdc = yes; then
7311
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7312
  cat >conftest.$ac_ext <<_ACEOF
7313
/* confdefs.h.  */
7314
_ACEOF
7315
cat confdefs.h >>conftest.$ac_ext
7316
cat >>conftest.$ac_ext <<_ACEOF
7317
/* end confdefs.h.  */
7318
#include <string.h>
7319
7320
_ACEOF
7321
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7322
  $EGREP "memchr" >/dev/null 2>&1; then
7323
  :
7324
else
7325
  ac_cv_header_stdc=no
7326
fi
7327
rm -f -r conftest*
7328
7329
fi
7330
7331
if test $ac_cv_header_stdc = yes; then
7332
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7333
  cat >conftest.$ac_ext <<_ACEOF
7334
/* confdefs.h.  */
7335
_ACEOF
7336
cat confdefs.h >>conftest.$ac_ext
7337
cat >>conftest.$ac_ext <<_ACEOF
7338
/* end confdefs.h.  */
7339
#include <stdlib.h>
7340
7341
_ACEOF
7342
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7343
  $EGREP "free" >/dev/null 2>&1; then
7344
  :
7345
else
7346
  ac_cv_header_stdc=no
7347
fi
7348
rm -f -r conftest*
7349
7350
fi
7351
7352
if test $ac_cv_header_stdc = yes; then
7353
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7354
  if test "$cross_compiling" = yes; then
7355
  :
7356
else
7357
  cat >conftest.$ac_ext <<_ACEOF
7358
/* confdefs.h.  */
7359
_ACEOF
7360
cat confdefs.h >>conftest.$ac_ext
7361
cat >>conftest.$ac_ext <<_ACEOF
7362
/* end confdefs.h.  */
7363
#include <ctype.h>
7364
#include <stdlib.h>
7365
#if ((' ' & 0x0FF) == 0x020)
7366
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7367
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7368
#else
7369
# define ISLOWER(c) \
7370
		   (('a' <= (c) && (c) <= 'i') \
7371
		     || ('j' <= (c) && (c) <= 'r') \
7372
		     || ('s' <= (c) && (c) <= 'z'))
7373
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7374
#endif
7375
7376
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7377
int
7378
main ()
7379
{
7380
  int i;
7381
  for (i = 0; i < 256; i++)
7382
    if (XOR (islower (i), ISLOWER (i))
7383
	|| toupper (i) != TOUPPER (i))
7384
      return 2;
7385
  return 0;
7386
}
7387
_ACEOF
7388
rm -f conftest$ac_exeext
7389
if { (ac_try="$ac_link"
7390
case "(($ac_try" in
7391
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392
  *) ac_try_echo=$ac_try;;
7393
esac
7394
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395
  (eval "$ac_link") 2>&5
7396
  ac_status=$?
7397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7399
  { (case "(($ac_try" in
7400
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401
  *) ac_try_echo=$ac_try;;
7402
esac
7403
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404
  (eval "$ac_try") 2>&5
7405
  ac_status=$?
7406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407
  (exit $ac_status); }; }; then
7408
  :
7409
else
7410
  echo "$as_me: program exited with status $ac_status" >&5
7411
echo "$as_me: failed program was:" >&5
7412
sed 's/^/| /' conftest.$ac_ext >&5
7413
7414
( exit $ac_status )
7415
ac_cv_header_stdc=no
7416
fi
7417
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7418
fi
7419
7420
7421
fi
7422
fi
7423
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7424
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7425
if test $ac_cv_header_stdc = yes; then
7426
7427
cat >>confdefs.h <<\_ACEOF
7428
#define STDC_HEADERS 1
7429
_ACEOF
7430
7431
fi
7432
7433
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7444
		  inttypes.h stdint.h unistd.h
7445
do
7446
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7447
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7448
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7449
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7450
  echo $ECHO_N "(cached) $ECHO_C" >&6
7451
else
7452
  cat >conftest.$ac_ext <<_ACEOF
7453
/* confdefs.h.  */
7454
_ACEOF
7455
cat confdefs.h >>conftest.$ac_ext
7456
cat >>conftest.$ac_ext <<_ACEOF
7457
/* end confdefs.h.  */
7458
$ac_includes_default
7459
7460
#include <$ac_header>
7461
_ACEOF
7462
rm -f conftest.$ac_objext
7463
if { (ac_try="$ac_compile"
7464
case "(($ac_try" in
7465
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466
  *) ac_try_echo=$ac_try;;
7467
esac
7468
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469
  (eval "$ac_compile") 2>conftest.er1
7470
  ac_status=$?
7471
  grep -v '^ *+' conftest.er1 >conftest.err
7472
  rm -f conftest.er1
7473
  cat conftest.err >&5
7474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475
  (exit $ac_status); } && {
7476
	 test -z "$ac_c_werror_flag" ||
7477
	 test ! -s conftest.err
7478
       } && test -s conftest.$ac_objext; then
7479
  eval "$as_ac_Header=yes"
7480
else
7481
  echo "$as_me: failed program was:" >&5
7482
sed 's/^/| /' conftest.$ac_ext >&5
7483
7484
	eval "$as_ac_Header=no"
7485
fi
7486
7487
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488
fi
7489
ac_res=`eval echo '${'$as_ac_Header'}'`
7490
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7491
echo "${ECHO_T}$ac_res" >&6; }
7492
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7493
  cat >>confdefs.h <<_ACEOF
7494
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7495
_ACEOF
7496
7497
fi
7498
7499
done
7500
7501
7502
7503
for ac_header in dlfcn.h
7504
do
7505
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7506
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7507
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7508
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7509
  echo $ECHO_N "(cached) $ECHO_C" >&6
7510
else
7511
  cat >conftest.$ac_ext <<_ACEOF
7512
/* confdefs.h.  */
7513
_ACEOF
7514
cat confdefs.h >>conftest.$ac_ext
7515
cat >>conftest.$ac_ext <<_ACEOF
7516
/* end confdefs.h.  */
7517
$ac_includes_default
7518
7519
#include <$ac_header>
7520
_ACEOF
7521
rm -f conftest.$ac_objext
7522
if { (ac_try="$ac_compile"
7523
case "(($ac_try" in
7524
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525
  *) ac_try_echo=$ac_try;;
7526
esac
7527
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528
  (eval "$ac_compile") 2>conftest.er1
7529
  ac_status=$?
7530
  grep -v '^ *+' conftest.er1 >conftest.err
7531
  rm -f conftest.er1
7532
  cat conftest.err >&5
7533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534
  (exit $ac_status); } && {
7535
	 test -z "$ac_c_werror_flag" ||
7536
	 test ! -s conftest.err
7537
       } && test -s conftest.$ac_objext; then
7538
  eval "$as_ac_Header=yes"
7539
else
7540
  echo "$as_me: failed program was:" >&5
7541
sed 's/^/| /' conftest.$ac_ext >&5
7542
7543
	eval "$as_ac_Header=no"
7544
fi
7545
7546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547
fi
7548
ac_res=`eval echo '${'$as_ac_Header'}'`
7549
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7550
echo "${ECHO_T}$ac_res" >&6; }
7551
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7552
  cat >>confdefs.h <<_ACEOF
7553
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7554
_ACEOF
7555
7556
fi
7557
7558
done
7559
7560
7561
7562
ac_ext=cpp
7563
ac_cpp='$CXXCPP $CPPFLAGS'
7564
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7565
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7566
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7567
if test -z "$CXX"; then
7568
  if test -n "$CCC"; then
7569
    CXX=$CCC
7570
  else
7571
    if test -n "$ac_tool_prefix"; then
7572
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7573
  do
7574
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7575
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7576
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7577
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578
if test "${ac_cv_prog_CXX+set}" = set; then
7579
  echo $ECHO_N "(cached) $ECHO_C" >&6
7580
else
7581
  if test -n "$CXX"; then
7582
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7583
else
7584
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585
for as_dir in $PATH
7586
do
7587
  IFS=$as_save_IFS
7588
  test -z "$as_dir" && as_dir=.
7589
  for ac_exec_ext in '' $ac_executable_extensions; do
7590
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7592
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593
    break 2
7594
  fi
7595
done
7596
done
7597
IFS=$as_save_IFS
7598
7599
fi
7600
fi
7601
CXX=$ac_cv_prog_CXX
7602
if test -n "$CXX"; then
7603
  { echo "$as_me:$LINENO: result: $CXX" >&5
7604
echo "${ECHO_T}$CXX" >&6; }
7605
else
7606
  { echo "$as_me:$LINENO: result: no" >&5
7607
echo "${ECHO_T}no" >&6; }
7608
fi
7609
7610
7611
    test -n "$CXX" && break
7612
  done
7613
fi
7614
if test -z "$CXX"; then
7615
  ac_ct_CXX=$CXX
7616
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7617
do
7618
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7619
set dummy $ac_prog; ac_word=$2
7620
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7621
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7622
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7623
  echo $ECHO_N "(cached) $ECHO_C" >&6
7624
else
7625
  if test -n "$ac_ct_CXX"; then
7626
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7627
else
7628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629
for as_dir in $PATH
7630
do
7631
  IFS=$as_save_IFS
7632
  test -z "$as_dir" && as_dir=.
7633
  for ac_exec_ext in '' $ac_executable_extensions; do
7634
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7635
    ac_cv_prog_ac_ct_CXX="$ac_prog"
7636
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7637
    break 2
7638
  fi
7639
done
7640
done
7641
IFS=$as_save_IFS
7642
7643
fi
7644
fi
7645
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7646
if test -n "$ac_ct_CXX"; then
7647
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7648
echo "${ECHO_T}$ac_ct_CXX" >&6; }
7649
else
7650
  { echo "$as_me:$LINENO: result: no" >&5
7651
echo "${ECHO_T}no" >&6; }
7652
fi
7653
7654
7655
  test -n "$ac_ct_CXX" && break
7656
done
7657
7658
  if test "x$ac_ct_CXX" = x; then
7659
    CXX="g++"
7660
  else
7661
    case $cross_compiling:$ac_tool_warned in
7662
yes:)
7663
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7664
whose name does not start with the host triplet.  If you think this
7665
configuration is useful to you, please write to autoconf@gnu.org." >&5
7666
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7667
whose name does not start with the host triplet.  If you think this
7668
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7669
ac_tool_warned=yes ;;
7670
esac
7671
    CXX=$ac_ct_CXX
7672
  fi
7673
fi
7674
7675
  fi
7676
fi
7677
# Provide some information about the compiler.
7678
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7679
ac_compiler=`set X $ac_compile; echo $2`
7680
{ (ac_try="$ac_compiler --version >&5"
7681
case "(($ac_try" in
7682
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683
  *) ac_try_echo=$ac_try;;
7684
esac
7685
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7686
  (eval "$ac_compiler --version >&5") 2>&5
7687
  ac_status=$?
7688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689
  (exit $ac_status); }
7690
{ (ac_try="$ac_compiler -v >&5"
7691
case "(($ac_try" in
7692
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693
  *) ac_try_echo=$ac_try;;
7694
esac
7695
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696
  (eval "$ac_compiler -v >&5") 2>&5
7697
  ac_status=$?
7698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699
  (exit $ac_status); }
7700
{ (ac_try="$ac_compiler -V >&5"
7701
case "(($ac_try" in
7702
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703
  *) ac_try_echo=$ac_try;;
7704
esac
7705
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706
  (eval "$ac_compiler -V >&5") 2>&5
7707
  ac_status=$?
7708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709
  (exit $ac_status); }
7710
7711
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7712
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
7713
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7714
  echo $ECHO_N "(cached) $ECHO_C" >&6
7715
else
7716
  cat >conftest.$ac_ext <<_ACEOF
7717
/* confdefs.h.  */
7718
_ACEOF
7719
cat confdefs.h >>conftest.$ac_ext
7720
cat >>conftest.$ac_ext <<_ACEOF
7721
/* end confdefs.h.  */
7722
7723
int
7724
main ()
7725
{
7726
#ifndef __GNUC__
7727
       choke me
7728
#endif
7729
7730
  ;
7731
  return 0;
7732
}
7733
_ACEOF
7734
rm -f conftest.$ac_objext
7735
if { (ac_try="$ac_compile"
7736
case "(($ac_try" in
7737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738
  *) ac_try_echo=$ac_try;;
7739
esac
7740
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741
  (eval "$ac_compile") 2>conftest.er1
7742
  ac_status=$?
7743
  grep -v '^ *+' conftest.er1 >conftest.err
7744
  rm -f conftest.er1
7745
  cat conftest.err >&5
7746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747
  (exit $ac_status); } && {
7748
	 test -z "$ac_cxx_werror_flag" ||
7749
	 test ! -s conftest.err
7750
       } && test -s conftest.$ac_objext; then
7751
  ac_compiler_gnu=yes
7752
else
7753
  echo "$as_me: failed program was:" >&5
7754
sed 's/^/| /' conftest.$ac_ext >&5
7755
7756
	ac_compiler_gnu=no
7757
fi
7758
7759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7760
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7761
7762
fi
7763
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7764
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
7765
GXX=`test $ac_compiler_gnu = yes && echo yes`
7766
ac_test_CXXFLAGS=${CXXFLAGS+set}
7767
ac_save_CXXFLAGS=$CXXFLAGS
7768
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7769
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
7770
if test "${ac_cv_prog_cxx_g+set}" = set; then
7771
  echo $ECHO_N "(cached) $ECHO_C" >&6
7772
else
7773
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7774
   ac_cxx_werror_flag=yes
7775
   ac_cv_prog_cxx_g=no
7776
   CXXFLAGS="-g"
7777
   cat >conftest.$ac_ext <<_ACEOF
7778
/* confdefs.h.  */
7779
_ACEOF
7780
cat confdefs.h >>conftest.$ac_ext
7781
cat >>conftest.$ac_ext <<_ACEOF
7782
/* end confdefs.h.  */
7783
7784
int
7785
main ()
7786
{
7787
7788
  ;
7789
  return 0;
7790
}
7791
_ACEOF
7792
rm -f conftest.$ac_objext
7793
if { (ac_try="$ac_compile"
7794
case "(($ac_try" in
7795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796
  *) ac_try_echo=$ac_try;;
7797
esac
7798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799
  (eval "$ac_compile") 2>conftest.er1
7800
  ac_status=$?
7801
  grep -v '^ *+' conftest.er1 >conftest.err
7802
  rm -f conftest.er1
7803
  cat conftest.err >&5
7804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805
  (exit $ac_status); } && {
7806
	 test -z "$ac_cxx_werror_flag" ||
7807
	 test ! -s conftest.err
7808
       } && test -s conftest.$ac_objext; then
7809
  ac_cv_prog_cxx_g=yes
7810
else
7811
  echo "$as_me: failed program was:" >&5
7812
sed 's/^/| /' conftest.$ac_ext >&5
7813
7814
	CXXFLAGS=""
7815
      cat >conftest.$ac_ext <<_ACEOF
7816
/* confdefs.h.  */
7817
_ACEOF
7818
cat confdefs.h >>conftest.$ac_ext
7819
cat >>conftest.$ac_ext <<_ACEOF
7820
/* end confdefs.h.  */
7821
7822
int
7823
main ()
7824
{
7825
7826
  ;
7827
  return 0;
7828
}
7829
_ACEOF
7830
rm -f conftest.$ac_objext
7831
if { (ac_try="$ac_compile"
7832
case "(($ac_try" in
7833
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834
  *) ac_try_echo=$ac_try;;
7835
esac
7836
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837
  (eval "$ac_compile") 2>conftest.er1
7838
  ac_status=$?
7839
  grep -v '^ *+' conftest.er1 >conftest.err
7840
  rm -f conftest.er1
7841
  cat conftest.err >&5
7842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843
  (exit $ac_status); } && {
7844
	 test -z "$ac_cxx_werror_flag" ||
7845
	 test ! -s conftest.err
7846
       } && test -s conftest.$ac_objext; then
7847
  :
7848
else
7849
  echo "$as_me: failed program was:" >&5
7850
sed 's/^/| /' conftest.$ac_ext >&5
7851
7852
	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7853
	 CXXFLAGS="-g"
7854
	 cat >conftest.$ac_ext <<_ACEOF
7855
/* confdefs.h.  */
7856
_ACEOF
7857
cat confdefs.h >>conftest.$ac_ext
7858
cat >>conftest.$ac_ext <<_ACEOF
7859
/* end confdefs.h.  */
7860
7861
int
7862
main ()
7863
{
7864
7865
  ;
7866
  return 0;
7867
}
7868
_ACEOF
7869
rm -f conftest.$ac_objext
7870
if { (ac_try="$ac_compile"
7871
case "(($ac_try" in
7872
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873
  *) ac_try_echo=$ac_try;;
7874
esac
7875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876
  (eval "$ac_compile") 2>conftest.er1
7877
  ac_status=$?
7878
  grep -v '^ *+' conftest.er1 >conftest.err
7879
  rm -f conftest.er1
7880
  cat conftest.err >&5
7881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882
  (exit $ac_status); } && {
7883
	 test -z "$ac_cxx_werror_flag" ||
7884
	 test ! -s conftest.err
7885
       } && test -s conftest.$ac_objext; then
7886
  ac_cv_prog_cxx_g=yes
7887
else
7888
  echo "$as_me: failed program was:" >&5
7889
sed 's/^/| /' conftest.$ac_ext >&5
7890
7891
7892
fi
7893
7894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895
fi
7896
7897
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898
fi
7899
7900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7902
fi
7903
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7904
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7905
if test "$ac_test_CXXFLAGS" = set; then
7906
  CXXFLAGS=$ac_save_CXXFLAGS
7907
elif test $ac_cv_prog_cxx_g = yes; then
7908
  if test "$GXX" = yes; then
7909
    CXXFLAGS="-g -O2"
7910
  else
7911
    CXXFLAGS="-g"
7912
  fi
7913
else
7914
  if test "$GXX" = yes; then
7915
    CXXFLAGS="-O2"
7916
  else
7917
    CXXFLAGS=
7918
  fi
7919
fi
7920
ac_ext=c
7921
ac_cpp='$CPP $CPPFLAGS'
7922
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7923
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7924
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7925
7926
depcc="$CXX"  am_compiler_list=
7927
7928
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7929
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7930
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7931
  echo $ECHO_N "(cached) $ECHO_C" >&6
7932
else
7933
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7934
  # We make a subdir and do the tests there.  Otherwise we can end up
7935
  # making bogus files that we don't know about and never remove.  For
7936
  # instance it was reported that on HP-UX the gcc test will end up
7937
  # making a dummy file named `D' -- because `-MD' means `put the output
7938
  # in D'.
7939
  mkdir conftest.dir
7940
  # Copy depcomp to subdir because otherwise we won't find it if we're
7941
  # using a relative directory.
7942
  cp "$am_depcomp" conftest.dir
7943
  cd conftest.dir
7944
  # We will build objects and dependencies in a subdirectory because
7945
  # it helps to detect inapplicable dependency modes.  For instance
7946
  # both Tru64's cc and ICC support -MD to output dependencies as a
7947
  # side effect of compilation, but ICC will put the dependencies in
7948
  # the current directory while Tru64 will put them in the object
7949
  # directory.
7950
  mkdir sub
7951
7952
  am_cv_CXX_dependencies_compiler_type=none
7953
  if test "$am_compiler_list" = ""; then
7954
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7955
  fi
7956
  for depmode in $am_compiler_list; do
7957
    # Setup a source with many dependencies, because some compilers
7958
    # like to wrap large dependency lists on column 80 (with \), and
7959
    # we should not choose a depcomp mode which is confused by this.
7960
    #
7961
    # We need to recreate these files for each test, as the compiler may
7962
    # overwrite some of them when testing with obscure command lines.
7963
    # This happens at least with the AIX C compiler.
7964
    : > sub/conftest.c
7965
    for i in 1 2 3 4 5 6; do
7966
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7967
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7968
      # Solaris 8's {/usr,}/bin/sh.
7969
      touch sub/conftst$i.h
7970
    done
7971
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7972
7973
    case $depmode in
7974
    nosideeffect)
7975
      # after this tag, mechanisms are not by side-effect, so they'll
7976
      # only be used when explicitly requested
7977
      if test "x$enable_dependency_tracking" = xyes; then
7978
	continue
7979
      else
7980
	break
7981
      fi
7982
      ;;
7983
    none) break ;;
7984
    esac
7985
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7986
    # mode.  It turns out that the SunPro C++ compiler does not properly
7987
    # handle `-M -o', and we need to detect this.
7988
    if depmode=$depmode \
7989
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7990
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7991
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7992
         >/dev/null 2>conftest.err &&
7993
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7994
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7995
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7996
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7997
      # icc doesn't choke on unknown options, it will just issue warnings
7998
      # or remarks (even with -Werror).  So we grep stderr for any message
7999
      # that says an option was ignored or not supported.
8000
      # When given -MP, icc 7.0 and 7.1 complain thusly:
8001
      #   icc: Command line warning: ignoring option '-M'; no argument required
8002
      # The diagnosis changed in icc 8.0:
8003
      #   icc: Command line remark: option '-MP' not supported
8004
      if (grep 'ignoring option' conftest.err ||
8005
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8006
        am_cv_CXX_dependencies_compiler_type=$depmode
8007
        break
8008
      fi
8009
    fi
8010
  done
8011
8012
  cd ..
8013
  rm -rf conftest.dir
8014
else
8015
  am_cv_CXX_dependencies_compiler_type=none
8016
fi
8017
8018
fi
8019
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8020
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
8021
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8022
8023
 if
8024
  test "x$enable_dependency_tracking" != xno \
8025
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8026
  am__fastdepCXX_TRUE=
8027
  am__fastdepCXX_FALSE='#'
8028
else
8029
  am__fastdepCXX_TRUE='#'
8030
  am__fastdepCXX_FALSE=
8031
fi
8032
8033
8034
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8035
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8036
    (test "X$CXX" != "Xg++"))) ; then
8037
  ac_ext=cpp
8038
ac_cpp='$CXXCPP $CPPFLAGS'
8039
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8042
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8043
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8044
if test -z "$CXXCPP"; then
8045
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8046
  echo $ECHO_N "(cached) $ECHO_C" >&6
8047
else
8048
      # Double quotes because CXXCPP needs to be expanded
8049
    for CXXCPP in "$CXX -E" "/lib/cpp"
8050
    do
8051
      ac_preproc_ok=false
8052
for ac_cxx_preproc_warn_flag in '' yes
8053
do
8054
  # Use a header file that comes with gcc, so configuring glibc
8055
  # with a fresh cross-compiler works.
8056
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8057
  # <limits.h> exists even on freestanding compilers.
8058
  # On the NeXT, cc -E runs the code through the compiler's parser,
8059
  # not just through cpp. "Syntax error" is here to catch this case.
8060
  cat >conftest.$ac_ext <<_ACEOF
8061
/* confdefs.h.  */
8062
_ACEOF
8063
cat confdefs.h >>conftest.$ac_ext
8064
cat >>conftest.$ac_ext <<_ACEOF
8065
/* end confdefs.h.  */
8066
#ifdef __STDC__
8067
# include <limits.h>
8068
#else
8069
# include <assert.h>
8070
#endif
8071
		     Syntax error
8072
_ACEOF
8073
if { (ac_try="$ac_cpp conftest.$ac_ext"
8074
case "(($ac_try" in
8075
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076
  *) ac_try_echo=$ac_try;;
8077
esac
8078
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8080
  ac_status=$?
8081
  grep -v '^ *+' conftest.er1 >conftest.err
8082
  rm -f conftest.er1
8083
  cat conftest.err >&5
8084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085
  (exit $ac_status); } >/dev/null && {
8086
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8087
	 test ! -s conftest.err
8088
       }; then
8089
  :
8090
else
8091
  echo "$as_me: failed program was:" >&5
8092
sed 's/^/| /' conftest.$ac_ext >&5
8093
8094
  # Broken: fails on valid input.
8095
continue
8096
fi
8097
8098
rm -f conftest.err conftest.$ac_ext
8099
8100
  # OK, works on sane cases.  Now check whether nonexistent headers
8101
  # can be detected and how.
8102
  cat >conftest.$ac_ext <<_ACEOF
8103
/* confdefs.h.  */
8104
_ACEOF
8105
cat confdefs.h >>conftest.$ac_ext
8106
cat >>conftest.$ac_ext <<_ACEOF
8107
/* end confdefs.h.  */
8108
#include <ac_nonexistent.h>
8109
_ACEOF
8110
if { (ac_try="$ac_cpp conftest.$ac_ext"
8111
case "(($ac_try" in
8112
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113
  *) ac_try_echo=$ac_try;;
8114
esac
8115
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8116
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8117
  ac_status=$?
8118
  grep -v '^ *+' conftest.er1 >conftest.err
8119
  rm -f conftest.er1
8120
  cat conftest.err >&5
8121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122
  (exit $ac_status); } >/dev/null && {
8123
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8124
	 test ! -s conftest.err
8125
       }; then
8126
  # Broken: success on invalid input.
8127
continue
8128
else
8129
  echo "$as_me: failed program was:" >&5
8130
sed 's/^/| /' conftest.$ac_ext >&5
8131
8132
  # Passes both tests.
8133
ac_preproc_ok=:
8134
break
8135
fi
8136
8137
rm -f conftest.err conftest.$ac_ext
8138
8139
done
8140
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8141
rm -f conftest.err conftest.$ac_ext
8142
if $ac_preproc_ok; then
8143
  break
8144
fi
8145
8146
    done
8147
    ac_cv_prog_CXXCPP=$CXXCPP
8148
8149
fi
8150
  CXXCPP=$ac_cv_prog_CXXCPP
8151
else
8152
  ac_cv_prog_CXXCPP=$CXXCPP
8153
fi
8154
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
8155
echo "${ECHO_T}$CXXCPP" >&6; }
8156
ac_preproc_ok=false
8157
for ac_cxx_preproc_warn_flag in '' yes
8158
do
8159
  # Use a header file that comes with gcc, so configuring glibc
8160
  # with a fresh cross-compiler works.
8161
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8162
  # <limits.h> exists even on freestanding compilers.
8163
  # On the NeXT, cc -E runs the code through the compiler's parser,
8164
  # not just through cpp. "Syntax error" is here to catch this case.
8165
  cat >conftest.$ac_ext <<_ACEOF
8166
/* confdefs.h.  */
8167
_ACEOF
8168
cat confdefs.h >>conftest.$ac_ext
8169
cat >>conftest.$ac_ext <<_ACEOF
8170
/* end confdefs.h.  */
8171
#ifdef __STDC__
8172
# include <limits.h>
8173
#else
8174
# include <assert.h>
8175
#endif
8176
		     Syntax error
8177
_ACEOF
8178
if { (ac_try="$ac_cpp conftest.$ac_ext"
8179
case "(($ac_try" in
8180
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181
  *) ac_try_echo=$ac_try;;
8182
esac
8183
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8185
  ac_status=$?
8186
  grep -v '^ *+' conftest.er1 >conftest.err
8187
  rm -f conftest.er1
8188
  cat conftest.err >&5
8189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190
  (exit $ac_status); } >/dev/null && {
8191
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8192
	 test ! -s conftest.err
8193
       }; then
8194
  :
8195
else
8196
  echo "$as_me: failed program was:" >&5
8197
sed 's/^/| /' conftest.$ac_ext >&5
8198
8199
  # Broken: fails on valid input.
8200
continue
8201
fi
8202
8203
rm -f conftest.err conftest.$ac_ext
8204
8205
  # OK, works on sane cases.  Now check whether nonexistent headers
8206
  # can be detected and how.
8207
  cat >conftest.$ac_ext <<_ACEOF
8208
/* confdefs.h.  */
8209
_ACEOF
8210
cat confdefs.h >>conftest.$ac_ext
8211
cat >>conftest.$ac_ext <<_ACEOF
8212
/* end confdefs.h.  */
8213
#include <ac_nonexistent.h>
8214
_ACEOF
8215
if { (ac_try="$ac_cpp conftest.$ac_ext"
8216
case "(($ac_try" in
8217
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218
  *) ac_try_echo=$ac_try;;
8219
esac
8220
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8222
  ac_status=$?
8223
  grep -v '^ *+' conftest.er1 >conftest.err
8224
  rm -f conftest.er1
8225
  cat conftest.err >&5
8226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227
  (exit $ac_status); } >/dev/null && {
8228
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8229
	 test ! -s conftest.err
8230
       }; then
8231
  # Broken: success on invalid input.
8232
continue
8233
else
8234
  echo "$as_me: failed program was:" >&5
8235
sed 's/^/| /' conftest.$ac_ext >&5
8236
8237
  # Passes both tests.
8238
ac_preproc_ok=:
8239
break
8240
fi
8241
8242
rm -f conftest.err conftest.$ac_ext
8243
8244
done
8245
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8246
rm -f conftest.err conftest.$ac_ext
8247
if $ac_preproc_ok; then
8248
  :
8249
else
8250
  _lt_caught_CXX_error=yes
8251
fi
8252
8253
ac_ext=c
8254
ac_cpp='$CPP $CPPFLAGS'
8255
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8256
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8257
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8258
8259
else
8260
  _lt_caught_CXX_error=yes
8261
fi
8262
8263
8264
8265
8266
8267
# Set options
8268
8269
8270
8271
        enable_dlopen=no
8272
8273
8274
  enable_win32_dll=no
8275
8276
8277
            # Check whether --enable-shared was given.
8278
if test "${enable_shared+set}" = set; then
8279
  enableval=$enable_shared; p=${PACKAGE-default}
8280
    case $enableval in
8281
    yes) enable_shared=yes ;;
8282
    no) enable_shared=no ;;
8283
    *)
8284
      enable_shared=no
8285
      # Look at the argument we got.  We use all the common list separators.
8286
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8287
      for pkg in $enableval; do
8288
	IFS="$lt_save_ifs"
8289
	if test "X$pkg" = "X$p"; then
8290
	  enable_shared=yes
8291
	fi
8292
      done
8293
      IFS="$lt_save_ifs"
8294
      ;;
8295
    esac
8296
else
8297
  enable_shared=yes
8298
fi
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
  # Check whether --enable-static was given.
8309
if test "${enable_static+set}" = set; then
8310
  enableval=$enable_static; p=${PACKAGE-default}
8311
    case $enableval in
8312
    yes) enable_static=yes ;;
8313
    no) enable_static=no ;;
8314
    *)
8315
     enable_static=no
8316
      # Look at the argument we got.  We use all the common list separators.
8317
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8318
      for pkg in $enableval; do
8319
	IFS="$lt_save_ifs"
8320
	if test "X$pkg" = "X$p"; then
8321
	  enable_static=yes
8322
	fi
8323
      done
8324
      IFS="$lt_save_ifs"
8325
      ;;
8326
    esac
8327
else
8328
  enable_static=yes
8329
fi
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
# Check whether --with-pic was given.
8341
if test "${with_pic+set}" = set; then
8342
  withval=$with_pic; pic_mode="$withval"
8343
else
8344
  pic_mode=default
8345
fi
8346
8347
8348
test -z "$pic_mode" && pic_mode=default
8349
8350
8351
8352
8353
8354
8355
8356
  # Check whether --enable-fast-install was given.
8357
if test "${enable_fast_install+set}" = set; then
8358
  enableval=$enable_fast_install; p=${PACKAGE-default}
8359
    case $enableval in
8360
    yes) enable_fast_install=yes ;;
8361
    no) enable_fast_install=no ;;
8362
    *)
8363
      enable_fast_install=no
8364
      # Look at the argument we got.  We use all the common list separators.
8365
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8366
      for pkg in $enableval; do
8367
	IFS="$lt_save_ifs"
8368
	if test "X$pkg" = "X$p"; then
8369
	  enable_fast_install=yes
8370
	fi
8371
      done
8372
      IFS="$lt_save_ifs"
8373
      ;;
8374
    esac
8375
else
8376
  enable_fast_install=yes
8377
fi
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
# This can be used to rebuild libtool when needed
8390
LIBTOOL_DEPS="$ltmain"
8391
8392
# Always use our own libtool.
8393
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
test -z "$LN_S" && LN_S="ln -s"
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
if test -n "${ZSH_VERSION+set}" ; then
8435
   setopt NO_GLOB_SUBST
8436
fi
8437
8438
{ echo "$as_me:$LINENO: checking for objdir" >&5
8439
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8440
if test "${lt_cv_objdir+set}" = set; then
8441
  echo $ECHO_N "(cached) $ECHO_C" >&6
8442
else
8443
  rm -f .libs 2>/dev/null
8444
mkdir .libs 2>/dev/null
8445
if test -d .libs; then
8446
  lt_cv_objdir=.libs
8447
else
8448
  # MS-DOS does not allow filenames that begin with a dot.
8449
  lt_cv_objdir=_libs
8450
fi
8451
rmdir .libs 2>/dev/null
8452
fi
8453
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8454
echo "${ECHO_T}$lt_cv_objdir" >&6; }
8455
objdir=$lt_cv_objdir
8456
8457
8458
8459
8460
8461
cat >>confdefs.h <<_ACEOF
8462
#define LT_OBJDIR "$lt_cv_objdir/"
8463
_ACEOF
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
case $host_os in
8482
aix3*)
8483
  # AIX sometimes has problems with the GCC collect2 program.  For some
8484
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8485
  # vanish in a puff of smoke.
8486
  if test "X${COLLECT_NAMES+set}" != Xset; then
8487
    COLLECT_NAMES=
8488
    export COLLECT_NAMES
8489
  fi
8490
  ;;
8491
esac
8492
8493
# Sed substitution that helps us do robust quoting.  It backslashifies
8494
# metacharacters that are still active within double-quoted strings.
8495
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8496
8497
# Same as above, but do not quote variable references.
8498
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8499
8500
# Sed substitution to delay expansion of an escaped shell variable in a
8501
# double_quote_subst'ed string.
8502
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8503
8504
# Sed substitution to delay expansion of an escaped single quote.
8505
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8506
8507
# Sed substitution to avoid accidental globbing in evaled expressions
8508
no_glob_subst='s/\*/\\\*/g'
8509
8510
# Global variables:
8511
ofile=libtool
8512
can_build_shared=yes
8513
8514
# All known linkers require a `.a' archive for static linking (except MSVC,
8515
# which needs '.lib').
8516
libext=a
8517
8518
with_gnu_ld="$lt_cv_prog_gnu_ld"
8519
8520
old_CC="$CC"
8521
old_CFLAGS="$CFLAGS"
8522
8523
# Set sane defaults for various variables
8524
test -z "$CC" && CC=cc
8525
test -z "$LTCC" && LTCC=$CC
8526
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8527
test -z "$LD" && LD=ld
8528
test -z "$ac_objext" && ac_objext=o
8529
8530
for cc_temp in $compiler""; do
8531
  case $cc_temp in
8532
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8533
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8534
    \-*) ;;
8535
    *) break;;
8536
  esac
8537
done
8538
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8539
8540
8541
# Only perform the check for file, if the check method requires it
8542
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8543
case $deplibs_check_method in
8544
file_magic*)
8545
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8546
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8547
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8548
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8549
  echo $ECHO_N "(cached) $ECHO_C" >&6
8550
else
8551
  case $MAGIC_CMD in
8552
[\\/*] |  ?:[\\/]*)
8553
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8554
  ;;
8555
*)
8556
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8557
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8558
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8559
  for ac_dir in $ac_dummy; do
8560
    IFS="$lt_save_ifs"
8561
    test -z "$ac_dir" && ac_dir=.
8562
    if test -f $ac_dir/${ac_tool_prefix}file; then
8563
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8564
      if test -n "$file_magic_test_file"; then
8565
	case $deplibs_check_method in
8566
	"file_magic "*)
8567
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8568
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8569
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8570
	    $EGREP "$file_magic_regex" > /dev/null; then
8571
	    :
8572
	  else
8573
	    cat <<_LT_EOF 1>&2
8574
8575
*** Warning: the command libtool uses to detect shared libraries,
8576
*** $file_magic_cmd, produces output that libtool cannot recognize.
8577
*** The result is that libtool may fail to recognize shared libraries
8578
*** as such.  This will affect the creation of libtool libraries that
8579
*** depend on shared libraries, but programs linked with such libtool
8580
*** libraries will work regardless of this problem.  Nevertheless, you
8581
*** may want to report the problem to your system manager and/or to
8582
*** bug-libtool@gnu.org
8583
8584
_LT_EOF
8585
	  fi ;;
8586
	esac
8587
      fi
8588
      break
8589
    fi
8590
  done
8591
  IFS="$lt_save_ifs"
8592
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8593
  ;;
8594
esac
8595
fi
8596
8597
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8598
if test -n "$MAGIC_CMD"; then
8599
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8600
echo "${ECHO_T}$MAGIC_CMD" >&6; }
8601
else
8602
  { echo "$as_me:$LINENO: result: no" >&5
8603
echo "${ECHO_T}no" >&6; }
8604
fi
8605
8606
8607
8608
8609
8610
if test -z "$lt_cv_path_MAGIC_CMD"; then
8611
  if test -n "$ac_tool_prefix"; then
8612
    { echo "$as_me:$LINENO: checking for file" >&5
8613
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8614
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8615
  echo $ECHO_N "(cached) $ECHO_C" >&6
8616
else
8617
  case $MAGIC_CMD in
8618
[\\/*] |  ?:[\\/]*)
8619
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8620
  ;;
8621
*)
8622
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8623
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8624
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8625
  for ac_dir in $ac_dummy; do
8626
    IFS="$lt_save_ifs"
8627
    test -z "$ac_dir" && ac_dir=.
8628
    if test -f $ac_dir/file; then
8629
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8630
      if test -n "$file_magic_test_file"; then
8631
	case $deplibs_check_method in
8632
	"file_magic "*)
8633
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8634
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8635
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8636
	    $EGREP "$file_magic_regex" > /dev/null; then
8637
	    :
8638
	  else
8639
	    cat <<_LT_EOF 1>&2
8640
8641
*** Warning: the command libtool uses to detect shared libraries,
8642
*** $file_magic_cmd, produces output that libtool cannot recognize.
8643
*** The result is that libtool may fail to recognize shared libraries
8644
*** as such.  This will affect the creation of libtool libraries that
8645
*** depend on shared libraries, but programs linked with such libtool
8646
*** libraries will work regardless of this problem.  Nevertheless, you
8647
*** may want to report the problem to your system manager and/or to
8648
*** bug-libtool@gnu.org
8649
8650
_LT_EOF
8651
	  fi ;;
8652
	esac
8653
      fi
8654
      break
8655
    fi
8656
  done
8657
  IFS="$lt_save_ifs"
8658
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8659
  ;;
8660
esac
8661
fi
8662
8663
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8664
if test -n "$MAGIC_CMD"; then
8665
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8666
echo "${ECHO_T}$MAGIC_CMD" >&6; }
8667
else
8668
  { echo "$as_me:$LINENO: result: no" >&5
8669
echo "${ECHO_T}no" >&6; }
8670
fi
8671
8672
8673
  else
8674
    MAGIC_CMD=:
8675
  fi
8676
fi
8677
8678
  fi
8679
  ;;
8680
esac
8681
8682
# Use C for the default configuration in the libtool script
8683
8684
lt_save_CC="$CC"
8685
ac_ext=c
8686
ac_cpp='$CPP $CPPFLAGS'
8687
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8688
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8689
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8690
8691
8692
# Source file extension for C test sources.
8693
ac_ext=c
8694
8695
# Object file extension for compiled C test sources.
8696
objext=o
8697
objext=$objext
8698
8699
# Code to be used in simple compile tests
8700
lt_simple_compile_test_code="int some_variable = 0;"
8701
8702
# Code to be used in simple link tests
8703
lt_simple_link_test_code='int main(){return(0);}'
8704
8705
8706
8707
8708
8709
8710
8711
# If no C compiler was specified, use CC.
8712
LTCC=${LTCC-"$CC"}
8713
8714
# If no C compiler flags were specified, use CFLAGS.
8715
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8716
8717
# Allow CC to be a program name with arguments.
8718
compiler=$CC
8719
8720
# Save the default compiler, since it gets overwritten when the other
8721
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8722
compiler_DEFAULT=$CC
8723
8724
# save warnings/boilerplate of simple test code
8725
ac_outfile=conftest.$ac_objext
8726
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8727
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8728
_lt_compiler_boilerplate=`cat conftest.err`
8729
$RM -r conftest*
8730
8731
ac_outfile=conftest.$ac_objext
8732
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8733
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8734
_lt_linker_boilerplate=`cat conftest.err`
8735
$RM -r conftest*
8736
8737
8738
if test -n "$compiler"; then
8739
8740
lt_prog_compiler_no_builtin_flag=
8741
8742
if test "$GCC" = yes; then
8743
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8744
8745
  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8746
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8747
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8748
  echo $ECHO_N "(cached) $ECHO_C" >&6
8749
else
8750
  lt_cv_prog_compiler_rtti_exceptions=no
8751
   ac_outfile=conftest.$ac_objext
8752
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8753
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8754
   # Insert the option either (1) after the last *FLAGS variable, or
8755
   # (2) before a word containing "conftest.", or (3) at the end.
8756
   # Note that $ac_compile itself does not contain backslashes and begins
8757
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8758
   # The option is referenced via a variable to avoid confusing sed.
8759
   lt_compile=`echo "$ac_compile" | $SED \
8760
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8761
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8762
   -e 's:$: $lt_compiler_flag:'`
8763
   (eval echo "\"\$as_me:8763: $lt_compile\"" >&5)
8764
   (eval "$lt_compile" 2>conftest.err)
8765
   ac_status=$?
8766
   cat conftest.err >&5
8767
   echo "$as_me:8767: \$? = $ac_status" >&5
8768
   if (exit $ac_status) && test -s "$ac_outfile"; then
8769
     # The compiler can only warn and ignore the option if not recognized
8770
     # So say no if there are warnings other than the usual output.
8771
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8772
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8773
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8774
       lt_cv_prog_compiler_rtti_exceptions=yes
8775
     fi
8776
   fi
8777
   $RM -r conftest*
8778
8779
fi
8780
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8781
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8782
8783
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8784
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8785
else
8786
    :
8787
fi
8788
8789
fi
8790
8791
8792
8793
8794
8795
8796
  lt_prog_compiler_wl=
8797
lt_prog_compiler_pic=
8798
lt_prog_compiler_static=
8799
8800
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8801
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8802
8803
  if test "$GCC" = yes; then
8804
    lt_prog_compiler_wl='-Wl,'
8805
    lt_prog_compiler_static='-static'
8806
8807
    case $host_os in
8808
      aix*)
8809
      # All AIX code is PIC.
8810
      if test "$host_cpu" = ia64; then
8811
	# AIX 5 now supports IA64 processor
8812
	lt_prog_compiler_static='-Bstatic'
8813
      fi
8814
      ;;
8815
8816
    amigaos*)
8817
      case $host_cpu in
8818
      powerpc)
8819
            # see comment about AmigaOS4 .so support
8820
            lt_prog_compiler_pic='-fPIC'
8821
        ;;
8822
      m68k)
8823
            # FIXME: we need at least 68020 code to build shared libraries, but
8824
            # adding the `-m68020' flag to GCC prevents building anything better,
8825
            # like `-m68040'.
8826
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8827
        ;;
8828
      esac
8829
      ;;
8830
8831
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8832
      # PIC is the default for these OSes.
8833
      ;;
8834
8835
    mingw* | cygwin* | pw32* | os2*)
8836
      # This hack is so that the source file can tell whether it is being
8837
      # built for inclusion in a dll (and should export symbols for example).
8838
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8839
      # (--disable-auto-import) libraries
8840
      lt_prog_compiler_pic='-DDLL_EXPORT'
8841
      ;;
8842
8843
    darwin* | rhapsody*)
8844
      # PIC is the default on this platform
8845
      # Common symbols not allowed in MH_DYLIB files
8846
      lt_prog_compiler_pic='-fno-common'
8847
      ;;
8848
8849
    hpux*)
8850
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8851
      # not for PA HP-UX.
8852
      case $host_cpu in
8853
      hppa*64*|ia64*)
8854
	# +Z the default
8855
	;;
8856
      *)
8857
	lt_prog_compiler_pic='-fPIC'
8858
	;;
8859
      esac
8860
      ;;
8861
8862
    interix[3-9]*)
8863
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8864
      # Instead, we relocate shared libraries at runtime.
8865
      ;;
8866
8867
    msdosdjgpp*)
8868
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8869
      # on systems that don't support them.
8870
      lt_prog_compiler_can_build_shared=no
8871
      enable_shared=no
8872
      ;;
8873
8874
    *nto* | *qnx*)
8875
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8876
      # it will coredump.
8877
      lt_prog_compiler_pic='-fPIC -shared'
8878
      ;;
8879
8880
    sysv4*MP*)
8881
      if test -d /usr/nec; then
8882
	lt_prog_compiler_pic=-Kconform_pic
8883
      fi
8884
      ;;
8885
8886
    *)
8887
      lt_prog_compiler_pic='-fPIC'
8888
      ;;
8889
    esac
8890
  else
8891
    # PORTME Check for flag to pass linker flags through the system compiler.
8892
    case $host_os in
8893
    aix*)
8894
      lt_prog_compiler_wl='-Wl,'
8895
      if test "$host_cpu" = ia64; then
8896
	# AIX 5 now supports IA64 processor
8897
	lt_prog_compiler_static='-Bstatic'
8898
      else
8899
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8900
      fi
8901
      ;;
8902
8903
    mingw* | cygwin* | pw32* | os2*)
8904
      # This hack is so that the source file can tell whether it is being
8905
      # built for inclusion in a dll (and should export symbols for example).
8906
      lt_prog_compiler_pic='-DDLL_EXPORT'
8907
      ;;
8908
8909
    hpux9* | hpux10* | hpux11*)
8910
      lt_prog_compiler_wl='-Wl,'
8911
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8912
      # not for PA HP-UX.
8913
      case $host_cpu in
8914
      hppa*64*|ia64*)
8915
	# +Z the default
8916
	;;
8917
      *)
8918
	lt_prog_compiler_pic='+Z'
8919
	;;
8920
      esac
8921
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8922
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8923
      ;;
8924
8925
    irix5* | irix6* | nonstopux*)
8926
      lt_prog_compiler_wl='-Wl,'
8927
      # PIC (with -KPIC) is the default.
8928
      lt_prog_compiler_static='-non_shared'
8929
      ;;
8930
8931
    linux* | k*bsd*-gnu)
8932
      case $cc_basename in
8933
      icc* | ecc* | ifort*)
8934
	lt_prog_compiler_wl='-Wl,'
8935
	lt_prog_compiler_pic='-KPIC'
8936
	lt_prog_compiler_static='-static'
8937
        ;;
8938
      pgcc* | pgf77* | pgf90* | pgf95*)
8939
        # Portland Group compilers (*not* the Pentium gcc compiler,
8940
	# which looks to be a dead project)
8941
	lt_prog_compiler_wl='-Wl,'
8942
	lt_prog_compiler_pic='-fpic'
8943
	lt_prog_compiler_static='-Bstatic'
8944
        ;;
8945
      ccc*)
8946
        lt_prog_compiler_wl='-Wl,'
8947
        # All Alpha code is PIC.
8948
        lt_prog_compiler_static='-non_shared'
8949
        ;;
8950
      xl*)
8951
	# IBM XL C 8.0/Fortran 10.1 on PPC
8952
	lt_prog_compiler_wl='-Wl,'
8953
	lt_prog_compiler_pic='-qpic'
8954
	lt_prog_compiler_static='-qstaticlink'
8955
	;;
8956
      *)
8957
	case `$CC -V 2>&1 | sed 5q` in
8958
	*Sun\ C*)
8959
	  # Sun C 5.9
8960
	  lt_prog_compiler_pic='-KPIC'
8961
	  lt_prog_compiler_static='-Bstatic'
8962
	  lt_prog_compiler_wl='-Wl,'
8963
	  ;;
8964
	*Sun\ F*)
8965
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8966
	  lt_prog_compiler_pic='-KPIC'
8967
	  lt_prog_compiler_static='-Bstatic'
8968
	  lt_prog_compiler_wl=''
8969
	  ;;
8970
	esac
8971
	;;
8972
      esac
8973
      ;;
8974
8975
    newsos6)
8976
      lt_prog_compiler_pic='-KPIC'
8977
      lt_prog_compiler_static='-Bstatic'
8978
      ;;
8979
8980
    *nto* | *qnx*)
8981
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8982
      # it will coredump.
8983
      lt_prog_compiler_pic='-fPIC -shared'
8984
      ;;
8985
8986
    osf3* | osf4* | osf5*)
8987
      lt_prog_compiler_wl='-Wl,'
8988
      # All OSF/1 code is PIC.
8989
      lt_prog_compiler_static='-non_shared'
8990
      ;;
8991
8992
    rdos*)
8993
      lt_prog_compiler_static='-non_shared'
8994
      ;;
8995
8996
    solaris*)
8997
      lt_prog_compiler_pic='-KPIC'
8998
      lt_prog_compiler_static='-Bstatic'
8999
      case $cc_basename in
9000
      f77* | f90* | f95*)
9001
	lt_prog_compiler_wl='-Qoption ld ';;
9002
      *)
9003
	lt_prog_compiler_wl='-Wl,';;
9004
      esac
9005
      ;;
9006
9007
    sunos4*)
9008
      lt_prog_compiler_wl='-Qoption ld '
9009
      lt_prog_compiler_pic='-PIC'
9010
      lt_prog_compiler_static='-Bstatic'
9011
      ;;
9012
9013
    sysv4 | sysv4.2uw2* | sysv4.3*)
9014
      lt_prog_compiler_wl='-Wl,'
9015
      lt_prog_compiler_pic='-KPIC'
9016
      lt_prog_compiler_static='-Bstatic'
9017
      ;;
9018
9019
    sysv4*MP*)
9020
      if test -d /usr/nec ;then
9021
	lt_prog_compiler_pic='-Kconform_pic'
9022
	lt_prog_compiler_static='-Bstatic'
9023
      fi
9024
      ;;
9025
9026
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9027
      lt_prog_compiler_wl='-Wl,'
9028
      lt_prog_compiler_pic='-KPIC'
9029
      lt_prog_compiler_static='-Bstatic'
9030
      ;;
9031
9032
    unicos*)
9033
      lt_prog_compiler_wl='-Wl,'
9034
      lt_prog_compiler_can_build_shared=no
9035
      ;;
9036
9037
    uts4*)
9038
      lt_prog_compiler_pic='-pic'
9039
      lt_prog_compiler_static='-Bstatic'
9040
      ;;
9041
9042
    *)
9043
      lt_prog_compiler_can_build_shared=no
9044
      ;;
9045
    esac
9046
  fi
9047
9048
case $host_os in
9049
  # For platforms which do not support PIC, -DPIC is meaningless:
9050
  *djgpp*)
9051
    lt_prog_compiler_pic=
9052
    ;;
9053
  *)
9054
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9055
    ;;
9056
esac
9057
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9058
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9059
9060
9061
9062
9063
9064
9065
#
9066
# Check to make sure the PIC flag actually works.
9067
#
9068
if test -n "$lt_prog_compiler_pic"; then
9069
  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9070
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9071
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9072
  echo $ECHO_N "(cached) $ECHO_C" >&6
9073
else
9074
  lt_cv_prog_compiler_pic_works=no
9075
   ac_outfile=conftest.$ac_objext
9076
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9077
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9078
   # Insert the option either (1) after the last *FLAGS variable, or
9079
   # (2) before a word containing "conftest.", or (3) at the end.
9080
   # Note that $ac_compile itself does not contain backslashes and begins
9081
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9082
   # The option is referenced via a variable to avoid confusing sed.
9083
   lt_compile=`echo "$ac_compile" | $SED \
9084
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9085
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9086
   -e 's:$: $lt_compiler_flag:'`
9087
   (eval echo "\"\$as_me:9087: $lt_compile\"" >&5)
9088
   (eval "$lt_compile" 2>conftest.err)
9089
   ac_status=$?
9090
   cat conftest.err >&5
9091
   echo "$as_me:9091: \$? = $ac_status" >&5
9092
   if (exit $ac_status) && test -s "$ac_outfile"; then
9093
     # The compiler can only warn and ignore the option if not recognized
9094
     # So say no if there are warnings other than the usual output.
9095
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9096
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9097
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9098
       lt_cv_prog_compiler_pic_works=yes
9099
     fi
9100
   fi
9101
   $RM -r conftest*
9102
9103
fi
9104
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9105
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9106
9107
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9108
    case $lt_prog_compiler_pic in
9109
     "" | " "*) ;;
9110
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9111
     esac
9112
else
9113
    lt_prog_compiler_pic=
9114
     lt_prog_compiler_can_build_shared=no
9115
fi
9116
9117
fi
9118
9119
9120
9121
9122
9123
9124
#
9125
# Check to make sure the static flag actually works.
9126
#
9127
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9128
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9129
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9130
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9131
  echo $ECHO_N "(cached) $ECHO_C" >&6
9132
else
9133
  lt_cv_prog_compiler_static_works=no
9134
   save_LDFLAGS="$LDFLAGS"
9135
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9136
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9137
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9138
     # The linker can only warn and ignore the option if not recognized
9139
     # So say no if there are warnings
9140
     if test -s conftest.err; then
9141
       # Append any errors to the config.log.
9142
       cat conftest.err 1>&5
9143
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9144
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9145
       if diff conftest.exp conftest.er2 >/dev/null; then
9146
         lt_cv_prog_compiler_static_works=yes
9147
       fi
9148
     else
9149
       lt_cv_prog_compiler_static_works=yes
9150
     fi
9151
   fi
9152
   $RM -r conftest*
9153
   LDFLAGS="$save_LDFLAGS"
9154
9155
fi
9156
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9157
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9158
9159
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9160
    :
9161
else
9162
    lt_prog_compiler_static=
9163
fi
9164
9165
9166
9167
9168
9169
9170
9171
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9172
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9173
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9174
  echo $ECHO_N "(cached) $ECHO_C" >&6
9175
else
9176
  lt_cv_prog_compiler_c_o=no
9177
   $RM -r conftest 2>/dev/null
9178
   mkdir conftest
9179
   cd conftest
9180
   mkdir out
9181
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9182
9183
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9184
   # Insert the option either (1) after the last *FLAGS variable, or
9185
   # (2) before a word containing "conftest.", or (3) at the end.
9186
   # Note that $ac_compile itself does not contain backslashes and begins
9187
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9188
   lt_compile=`echo "$ac_compile" | $SED \
9189
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9190
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9191
   -e 's:$: $lt_compiler_flag:'`
9192
   (eval echo "\"\$as_me:9192: $lt_compile\"" >&5)
9193
   (eval "$lt_compile" 2>out/conftest.err)
9194
   ac_status=$?
9195
   cat out/conftest.err >&5
9196
   echo "$as_me:9196: \$? = $ac_status" >&5
9197
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9198
   then
9199
     # The compiler can only warn and ignore the option if not recognized
9200
     # So say no if there are warnings
9201
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9202
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9203
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9204
       lt_cv_prog_compiler_c_o=yes
9205
     fi
9206
   fi
9207
   chmod u+w . 2>&5
9208
   $RM -r conftest*
9209
   # SGI C++ compiler will create directory out/ii_files/ for
9210
   # template instantiation
9211
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9212
   $RM out/* && rmdir out
9213
   cd ..
9214
   $RM -r conftest
9215
   $RM -r conftest*
9216
9217
fi
9218
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9219
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9220
9221
9222
9223
9224
9225
9226
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9227
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9228
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9229
  echo $ECHO_N "(cached) $ECHO_C" >&6
9230
else
9231
  lt_cv_prog_compiler_c_o=no
9232
   $RM -r conftest 2>/dev/null
9233
   mkdir conftest
9234
   cd conftest
9235
   mkdir out
9236
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9237
9238
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9239
   # Insert the option either (1) after the last *FLAGS variable, or
9240
   # (2) before a word containing "conftest.", or (3) at the end.
9241
   # Note that $ac_compile itself does not contain backslashes and begins
9242
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9243
   lt_compile=`echo "$ac_compile" | $SED \
9244
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9245
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9246
   -e 's:$: $lt_compiler_flag:'`
9247
   (eval echo "\"\$as_me:9247: $lt_compile\"" >&5)
9248
   (eval "$lt_compile" 2>out/conftest.err)
9249
   ac_status=$?
9250
   cat out/conftest.err >&5
9251
   echo "$as_me:9251: \$? = $ac_status" >&5
9252
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9253
   then
9254
     # The compiler can only warn and ignore the option if not recognized
9255
     # So say no if there are warnings
9256
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9257
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9258
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9259
       lt_cv_prog_compiler_c_o=yes
9260
     fi
9261
   fi
9262
   chmod u+w . 2>&5
9263
   $RM -r conftest*
9264
   # SGI C++ compiler will create directory out/ii_files/ for
9265
   # template instantiation
9266
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9267
   $RM out/* && rmdir out
9268
   cd ..
9269
   $RM -r conftest
9270
   $RM -r conftest*
9271
9272
fi
9273
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9274
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9275
9276
9277
9278
9279
hard_links="nottested"
9280
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9281
  # do not overwrite the value of need_locks provided by the user
9282
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9283
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9284
  hard_links=yes
9285
  $RM -r conftest*
9286
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9287
  touch conftest.a
9288
  ln conftest.a conftest.b 2>&5 || hard_links=no
9289
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9290
  { echo "$as_me:$LINENO: result: $hard_links" >&5
9291
echo "${ECHO_T}$hard_links" >&6; }
9292
  if test "$hard_links" = no; then
9293
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9294
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9295
    need_locks=warn
9296
  fi
9297
else
9298
  need_locks=no
9299
fi
9300
9301
9302
9303
9304
9305
9306
  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9307
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9308
9309
  runpath_var=
9310
  allow_undefined_flag=
9311
  always_export_symbols=no
9312
  archive_cmds=
9313
  archive_expsym_cmds=
9314
  compiler_needs_object=no
9315
  enable_shared_with_static_runtimes=no
9316
  export_dynamic_flag_spec=
9317
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9318
  hardcode_automatic=no
9319
  hardcode_direct=no
9320
  hardcode_direct_absolute=no
9321
  hardcode_libdir_flag_spec=
9322
  hardcode_libdir_flag_spec_ld=
9323
  hardcode_libdir_separator=
9324
  hardcode_minus_L=no
9325
  hardcode_shlibpath_var=unsupported
9326
  inherit_rpath=no
9327
  link_all_deplibs=unknown
9328
  module_cmds=
9329
  module_expsym_cmds=
9330
  old_archive_from_new_cmds=
9331
  old_archive_from_expsyms_cmds=
9332
  thread_safe_flag_spec=
9333
  whole_archive_flag_spec=
9334
  # include_expsyms should be a list of space-separated symbols to be *always*
9335
  # included in the symbol list
9336
  include_expsyms=
9337
  # exclude_expsyms can be an extended regexp of symbols to exclude
9338
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9339
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9340
  # as well as any symbol that contains `d'.
9341
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9342
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9343
  # platforms (ab)use it in PIC code, but their linkers get confused if
9344
  # the symbol is explicitly referenced.  Since portable code cannot
9345
  # rely on this symbol name, it's probably fine to never include it in
9346
  # preloaded symbol tables.
9347
  # Exclude shared library initialization/finalization symbols.
9348
  extract_expsyms_cmds=
9349
9350
  case $host_os in
9351
  cygwin* | mingw* | pw32*)
9352
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9353
    # When not using gcc, we currently assume that we are using
9354
    # Microsoft Visual C++.
9355
    if test "$GCC" != yes; then
9356
      with_gnu_ld=no
9357
    fi
9358
    ;;
9359
  interix*)
9360
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9361
    with_gnu_ld=yes
9362
    ;;
9363
  openbsd*)
9364
    with_gnu_ld=no
9365
    ;;
9366
  esac
9367
9368
  ld_shlibs=yes
9369
  if test "$with_gnu_ld" = yes; then
9370
    # If archive_cmds runs LD, not CC, wlarc should be empty
9371
    wlarc='${wl}'
9372
9373
    # Set some defaults for GNU ld with shared library support. These
9374
    # are reset later if shared libraries are not supported. Putting them
9375
    # here allows them to be overridden if necessary.
9376
    runpath_var=LD_RUN_PATH
9377
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378
    export_dynamic_flag_spec='${wl}--export-dynamic'
9379
    # ancient GNU ld didn't support --whole-archive et. al.
9380
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9381
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9382
    else
9383
      whole_archive_flag_spec=
9384
    fi
9385
    supports_anon_versioning=no
9386
    case `$LD -v 2>&1` in
9387
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9388
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9389
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9390
      *\ 2.11.*) ;; # other 2.11 versions
9391
      *) supports_anon_versioning=yes ;;
9392
    esac
9393
9394
    # See if GNU ld supports shared libraries.
9395
    case $host_os in
9396
    aix[3-9]*)
9397
      # On AIX/PPC, the GNU linker is very broken
9398
      if test "$host_cpu" != ia64; then
9399
	ld_shlibs=no
9400
	cat <<_LT_EOF 1>&2
9401
9402
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9403
*** to be unable to reliably create shared libraries on AIX.
9404
*** Therefore, libtool is disabling shared libraries support.  If you
9405
*** really care for shared libraries, you may want to modify your PATH
9406
*** so that a non-GNU linker is found, and then restart.
9407
9408
_LT_EOF
9409
      fi
9410
      ;;
9411
9412
    amigaos*)
9413
      case $host_cpu in
9414
      powerpc)
9415
            # see comment about AmigaOS4 .so support
9416
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9417
            archive_expsym_cmds=''
9418
        ;;
9419
      m68k)
9420
            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)'
9421
            hardcode_libdir_flag_spec='-L$libdir'
9422
            hardcode_minus_L=yes
9423
        ;;
9424
      esac
9425
      ;;
9426
9427
    beos*)
9428
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9429
	allow_undefined_flag=unsupported
9430
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9431
	# support --undefined.  This deserves some investigation.  FIXME
9432
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433
      else
9434
	ld_shlibs=no
9435
      fi
9436
      ;;
9437
9438
    cygwin* | mingw* | pw32*)
9439
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9440
      # as there is no search path for DLLs.
9441
      hardcode_libdir_flag_spec='-L$libdir'
9442
      allow_undefined_flag=unsupported
9443
      always_export_symbols=no
9444
      enable_shared_with_static_runtimes=yes
9445
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9446
9447
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9448
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9449
	# If the export-symbols file already is a .def file (1st line
9450
	# is EXPORTS), use it as is; otherwise, prepend...
9451
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9452
	  cp $export_symbols $output_objdir/$soname.def;
9453
	else
9454
	  echo EXPORTS > $output_objdir/$soname.def;
9455
	  cat $export_symbols >> $output_objdir/$soname.def;
9456
	fi~
9457
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9458
      else
9459
	ld_shlibs=no
9460
      fi
9461
      ;;
9462
9463
    interix[3-9]*)
9464
      hardcode_direct=no
9465
      hardcode_shlibpath_var=no
9466
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9467
      export_dynamic_flag_spec='${wl}-E'
9468
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9469
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9470
      # default) and relocated if they conflict, which is a slow very memory
9471
      # consuming and fragmenting process.  To avoid this, we pick a random,
9472
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9473
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9474
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9475
      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'
9476
      ;;
9477
9478
    gnu* | linux* | tpf* | k*bsd*-gnu)
9479
      tmp_diet=no
9480
      if test "$host_os" = linux-dietlibc; then
9481
	case $cc_basename in
9482
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9483
	esac
9484
      fi
9485
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9486
	 && test "$tmp_diet" = no
9487
      then
9488
	tmp_addflag=
9489
	tmp_sharedflag='-shared'
9490
	case $cc_basename,$host_cpu in
9491
        pgcc*)				# Portland Group C compiler
9492
	  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'
9493
	  tmp_addflag=' $pic_flag'
9494
	  ;;
9495
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9496
	  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'
9497
	  tmp_addflag=' $pic_flag -Mnomain' ;;
9498
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9499
	  tmp_addflag=' -i_dynamic' ;;
9500
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9501
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9502
	ifc* | ifort*)			# Intel Fortran compiler
9503
	  tmp_addflag=' -nofor_main' ;;
9504
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9505
	  tmp_sharedflag='-qmkshrobj'
9506
	  tmp_addflag= ;;
9507
	esac
9508
	case `$CC -V 2>&1 | sed 5q` in
9509
	*Sun\ C*)			# Sun C 5.9
9510
	  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'
9511
	  compiler_needs_object=yes
9512
	  tmp_sharedflag='-G' ;;
9513
	*Sun\ F*)			# Sun Fortran 8.3
9514
	  tmp_sharedflag='-G' ;;
9515
	esac
9516
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9517
9518
        if test "x$supports_anon_versioning" = xyes; then
9519
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9520
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9521
	    echo "local: *; };" >> $output_objdir/$libname.ver~
9522
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9523
        fi
9524
9525
	case $cc_basename in
9526
	xlf*)
9527
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9528
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9529
	  hardcode_libdir_flag_spec=
9530
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9531
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9532
	  if test "x$supports_anon_versioning" = xyes; then
9533
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9534
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9535
	      echo "local: *; };" >> $output_objdir/$libname.ver~
9536
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9537
	  fi
9538
	  ;;
9539
	esac
9540
      else
9541
        ld_shlibs=no
9542
      fi
9543
      ;;
9544
9545
    netbsd*)
9546
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9547
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9548
	wlarc=
9549
      else
9550
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9552
      fi
9553
      ;;
9554
9555
    solaris*)
9556
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9557
	ld_shlibs=no
9558
	cat <<_LT_EOF 1>&2
9559
9560
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9561
*** create shared libraries on Solaris systems.  Therefore, libtool
9562
*** is disabling shared libraries support.  We urge you to upgrade GNU
9563
*** binutils to release 2.9.1 or newer.  Another option is to modify
9564
*** your PATH or compiler configuration so that the native linker is
9565
*** used, and then restart.
9566
9567
_LT_EOF
9568
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9569
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9571
      else
9572
	ld_shlibs=no
9573
      fi
9574
      ;;
9575
9576
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9577
      case `$LD -v 2>&1` in
9578
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9579
	ld_shlibs=no
9580
	cat <<_LT_EOF 1>&2
9581
9582
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9583
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9584
*** is disabling shared libraries support.  We urge you to upgrade GNU
9585
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9586
*** your PATH or compiler configuration so that the native linker is
9587
*** used, and then restart.
9588
9589
_LT_EOF
9590
	;;
9591
	*)
9592
	  # For security reasons, it is highly recommended that you always
9593
	  # use absolute paths for naming shared libraries, and exclude the
9594
	  # DT_RUNPATH tag from executables and libraries.  But doing so
9595
	  # requires that you compile everything twice, which is a pain.
9596
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9597
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9599
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9600
	  else
9601
	    ld_shlibs=no
9602
	  fi
9603
	;;
9604
      esac
9605
      ;;
9606
9607
    sunos4*)
9608
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9609
      wlarc=
9610
      hardcode_direct=yes
9611
      hardcode_shlibpath_var=no
9612
      ;;
9613
9614
    *)
9615
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9616
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9617
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9618
      else
9619
	ld_shlibs=no
9620
      fi
9621
      ;;
9622
    esac
9623
9624
    if test "$ld_shlibs" = no; then
9625
      runpath_var=
9626
      hardcode_libdir_flag_spec=
9627
      export_dynamic_flag_spec=
9628
      whole_archive_flag_spec=
9629
    fi
9630
  else
9631
    # PORTME fill in a description of your system's linker (not GNU ld)
9632
    case $host_os in
9633
    aix3*)
9634
      allow_undefined_flag=unsupported
9635
      always_export_symbols=yes
9636
      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'
9637
      # Note: this linker hardcodes the directories in LIBPATH if there
9638
      # are no directories specified by -L.
9639
      hardcode_minus_L=yes
9640
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9641
	# Neither direct hardcoding nor static linking is supported with a
9642
	# broken collect2.
9643
	hardcode_direct=unsupported
9644
      fi
9645
      ;;
9646
9647
    aix[4-9]*)
9648
      if test "$host_cpu" = ia64; then
9649
	# On IA64, the linker does run time linking by default, so we don't
9650
	# have to do anything special.
9651
	aix_use_runtimelinking=no
9652
	exp_sym_flag='-Bexport'
9653
	no_entry_flag=""
9654
      else
9655
	# If we're using GNU nm, then we don't want the "-C" option.
9656
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9657
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9658
	  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'
9659
	else
9660
	  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'
9661
	fi
9662
	aix_use_runtimelinking=no
9663
9664
	# Test if we are trying to use run time linking or normal
9665
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9666
	# need to do runtime linking.
9667
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9668
	  for ld_flag in $LDFLAGS; do
9669
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9670
	    aix_use_runtimelinking=yes
9671
	    break
9672
	  fi
9673
	  done
9674
	  ;;
9675
	esac
9676
9677
	exp_sym_flag='-bexport'
9678
	no_entry_flag='-bnoentry'
9679
      fi
9680
9681
      # When large executables or shared objects are built, AIX ld can
9682
      # have problems creating the table of contents.  If linking a library
9683
      # or program results in "error TOC overflow" add -mminimal-toc to
9684
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9685
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9686
9687
      archive_cmds=''
9688
      hardcode_direct=yes
9689
      hardcode_direct_absolute=yes
9690
      hardcode_libdir_separator=':'
9691
      link_all_deplibs=yes
9692
      file_list_spec='${wl}-f,'
9693
9694
      if test "$GCC" = yes; then
9695
	case $host_os in aix4.[012]|aix4.[012].*)
9696
	# We only want to do this on AIX 4.2 and lower, the check
9697
	# below for broken collect2 doesn't work under 4.3+
9698
	  collect2name=`${CC} -print-prog-name=collect2`
9699
	  if test -f "$collect2name" &&
9700
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9701
	  then
9702
	  # We have reworked collect2
9703
	  :
9704
	  else
9705
	  # We have old collect2
9706
	  hardcode_direct=unsupported
9707
	  # It fails to find uninstalled libraries when the uninstalled
9708
	  # path is not listed in the libpath.  Setting hardcode_minus_L
9709
	  # to unsupported forces relinking
9710
	  hardcode_minus_L=yes
9711
	  hardcode_libdir_flag_spec='-L$libdir'
9712
	  hardcode_libdir_separator=
9713
	  fi
9714
	  ;;
9715
	esac
9716
	shared_flag='-shared'
9717
	if test "$aix_use_runtimelinking" = yes; then
9718
	  shared_flag="$shared_flag "'${wl}-G'
9719
	fi
9720
      else
9721
	# not using gcc
9722
	if test "$host_cpu" = ia64; then
9723
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9724
	# chokes on -Wl,-G. The following line is correct:
9725
	  shared_flag='-G'
9726
	else
9727
	  if test "$aix_use_runtimelinking" = yes; then
9728
	    shared_flag='${wl}-G'
9729
	  else
9730
	    shared_flag='${wl}-bM:SRE'
9731
	  fi
9732
	fi
9733
      fi
9734
9735
      # It seems that -bexpall does not export symbols beginning with
9736
      # underscore (_), so it is better to generate a list of symbols to export.
9737
      always_export_symbols=yes
9738
      if test "$aix_use_runtimelinking" = yes; then
9739
	# Warning - without using the other runtime loading flags (-brtl),
9740
	# -berok will link without error, but may produce a broken library.
9741
	allow_undefined_flag='-berok'
9742
        # Determine the default libpath from the value encoded in an
9743
        # empty executable.
9744
        cat >conftest.$ac_ext <<_ACEOF
9745
/* confdefs.h.  */
9746
_ACEOF
9747
cat confdefs.h >>conftest.$ac_ext
9748
cat >>conftest.$ac_ext <<_ACEOF
9749
/* end confdefs.h.  */
9750
9751
int
9752
main ()
9753
{
9754
9755
  ;
9756
  return 0;
9757
}
9758
_ACEOF
9759
rm -f conftest.$ac_objext conftest$ac_exeext
9760
if { (ac_try="$ac_link"
9761
case "(($ac_try" in
9762
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763
  *) ac_try_echo=$ac_try;;
9764
esac
9765
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766
  (eval "$ac_link") 2>conftest.er1
9767
  ac_status=$?
9768
  grep -v '^ *+' conftest.er1 >conftest.err
9769
  rm -f conftest.er1
9770
  cat conftest.err >&5
9771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772
  (exit $ac_status); } && {
9773
	 test -z "$ac_c_werror_flag" ||
9774
	 test ! -s conftest.err
9775
       } && test -s conftest$ac_exeext &&
9776
       $as_test_x conftest$ac_exeext; then
9777
9778
lt_aix_libpath_sed='
9779
    /Import File Strings/,/^$/ {
9780
	/^0/ {
9781
	    s/^0  *\(.*\)$/\1/
9782
	    p
9783
	}
9784
    }'
9785
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9786
# Check for a 64-bit object if we didn't find anything.
9787
if test -z "$aix_libpath"; then
9788
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9789
fi
9790
else
9791
  echo "$as_me: failed program was:" >&5
9792
sed 's/^/| /' conftest.$ac_ext >&5
9793
9794
9795
fi
9796
9797
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9798
      conftest$ac_exeext conftest.$ac_ext
9799
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9800
9801
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9802
        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"
9803
      else
9804
	if test "$host_cpu" = ia64; then
9805
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9806
	  allow_undefined_flag="-z nodefs"
9807
	  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"
9808
	else
9809
	 # Determine the default libpath from the value encoded in an
9810
	 # empty executable.
9811
	 cat >conftest.$ac_ext <<_ACEOF
9812
/* confdefs.h.  */
9813
_ACEOF
9814
cat confdefs.h >>conftest.$ac_ext
9815
cat >>conftest.$ac_ext <<_ACEOF
9816
/* end confdefs.h.  */
9817
9818
int
9819
main ()
9820
{
9821
9822
  ;
9823
  return 0;
9824
}
9825
_ACEOF
9826
rm -f conftest.$ac_objext conftest$ac_exeext
9827
if { (ac_try="$ac_link"
9828
case "(($ac_try" in
9829
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830
  *) ac_try_echo=$ac_try;;
9831
esac
9832
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833
  (eval "$ac_link") 2>conftest.er1
9834
  ac_status=$?
9835
  grep -v '^ *+' conftest.er1 >conftest.err
9836
  rm -f conftest.er1
9837
  cat conftest.err >&5
9838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839
  (exit $ac_status); } && {
9840
	 test -z "$ac_c_werror_flag" ||
9841
	 test ! -s conftest.err
9842
       } && test -s conftest$ac_exeext &&
9843
       $as_test_x conftest$ac_exeext; then
9844
9845
lt_aix_libpath_sed='
9846
    /Import File Strings/,/^$/ {
9847
	/^0/ {
9848
	    s/^0  *\(.*\)$/\1/
9849
	    p
9850
	}
9851
    }'
9852
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9853
# Check for a 64-bit object if we didn't find anything.
9854
if test -z "$aix_libpath"; then
9855
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9856
fi
9857
else
9858
  echo "$as_me: failed program was:" >&5
9859
sed 's/^/| /' conftest.$ac_ext >&5
9860
9861
9862
fi
9863
9864
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9865
      conftest$ac_exeext conftest.$ac_ext
9866
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9867
9868
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9869
	  # Warning - without using the other run time loading flags,
9870
	  # -berok will link without error, but may produce a broken library.
9871
	  no_undefined_flag=' ${wl}-bernotok'
9872
	  allow_undefined_flag=' ${wl}-berok'
9873
	  # Exported symbols can be pulled into shared objects from archives
9874
	  whole_archive_flag_spec='$convenience'
9875
	  archive_cmds_need_lc=yes
9876
	  # This is similar to how AIX traditionally builds its shared libraries.
9877
	  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'
9878
	fi
9879
      fi
9880
      ;;
9881
9882
    amigaos*)
9883
      case $host_cpu in
9884
      powerpc)
9885
            # see comment about AmigaOS4 .so support
9886
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9887
            archive_expsym_cmds=''
9888
        ;;
9889
      m68k)
9890
            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)'
9891
            hardcode_libdir_flag_spec='-L$libdir'
9892
            hardcode_minus_L=yes
9893
        ;;
9894
      esac
9895
      ;;
9896
9897
    bsdi[45]*)
9898
      export_dynamic_flag_spec=-rdynamic
9899
      ;;
9900
9901
    cygwin* | mingw* | pw32*)
9902
      # When not using gcc, we currently assume that we are using
9903
      # Microsoft Visual C++.
9904
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9905
      # no search path for DLLs.
9906
      hardcode_libdir_flag_spec=' '
9907
      allow_undefined_flag=unsupported
9908
      # Tell ltmain to make .lib files, not .a files.
9909
      libext=lib
9910
      # Tell ltmain to make .dll files, not .so files.
9911
      shrext_cmds=".dll"
9912
      # FIXME: Setting linknames here is a bad hack.
9913
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9914
      # The linker will automatically build a .lib file if we build a DLL.
9915
      old_archive_from_new_cmds='true'
9916
      # FIXME: Should let the user specify the lib program.
9917
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9918
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9919
      enable_shared_with_static_runtimes=yes
9920
      ;;
9921
9922
    darwin* | rhapsody*)
9923
9924
9925
  archive_cmds_need_lc=no
9926
  hardcode_direct=no
9927
  hardcode_automatic=yes
9928
  hardcode_shlibpath_var=unsupported
9929
  whole_archive_flag_spec=''
9930
  link_all_deplibs=yes
9931
  allow_undefined_flag="$_lt_dar_allow_undefined"
9932
  if test "$GCC" = "yes"; then
9933
    output_verbose_link_cmd=echo
9934
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9935
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9936
    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}"
9937
    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}"
9938
9939
  else
9940
  ld_shlibs=no
9941
  fi
9942
9943
      ;;
9944
9945
    dgux*)
9946
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9947
      hardcode_libdir_flag_spec='-L$libdir'
9948
      hardcode_shlibpath_var=no
9949
      ;;
9950
9951
    freebsd1*)
9952
      ld_shlibs=no
9953
      ;;
9954
9955
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9956
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9957
    # does not break anything, and helps significantly (at the cost of a little
9958
    # extra space).
9959
    freebsd2.2*)
9960
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9961
      hardcode_libdir_flag_spec='-R$libdir'
9962
      hardcode_direct=yes
9963
      hardcode_shlibpath_var=no
9964
      ;;
9965
9966
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9967
    freebsd2*)
9968
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9969
      hardcode_direct=yes
9970
      hardcode_minus_L=yes
9971
      hardcode_shlibpath_var=no
9972
      ;;
9973
9974
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9975
    freebsd* | dragonfly*)
9976
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9977
      hardcode_libdir_flag_spec='-R$libdir'
9978
      hardcode_direct=yes
9979
      hardcode_shlibpath_var=no
9980
      ;;
9981
9982
    hpux9*)
9983
      if test "$GCC" = yes; then
9984
	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'
9985
      else
9986
	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'
9987
      fi
9988
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9989
      hardcode_libdir_separator=:
9990
      hardcode_direct=yes
9991
9992
      # hardcode_minus_L: Not really in the search PATH,
9993
      # but as the default location of the library.
9994
      hardcode_minus_L=yes
9995
      export_dynamic_flag_spec='${wl}-E'
9996
      ;;
9997
9998
    hpux10*)
9999
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10000
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10001
      else
10002
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10003
      fi
10004
      if test "$with_gnu_ld" = no; then
10005
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10006
	hardcode_libdir_flag_spec_ld='+b $libdir'
10007
	hardcode_libdir_separator=:
10008
	hardcode_direct=yes
10009
	hardcode_direct_absolute=yes
10010
	export_dynamic_flag_spec='${wl}-E'
10011
	# hardcode_minus_L: Not really in the search PATH,
10012
	# but as the default location of the library.
10013
	hardcode_minus_L=yes
10014
      fi
10015
      ;;
10016
10017
    hpux11*)
10018
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10019
	case $host_cpu in
10020
	hppa*64*)
10021
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10022
	  ;;
10023
	ia64*)
10024
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10025
	  ;;
10026
	*)
10027
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10028
	  ;;
10029
	esac
10030
      else
10031
	case $host_cpu in
10032
	hppa*64*)
10033
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10034
	  ;;
10035
	ia64*)
10036
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10037
	  ;;
10038
	*)
10039
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10040
	  ;;
10041
	esac
10042
      fi
10043
      if test "$with_gnu_ld" = no; then
10044
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10045
	hardcode_libdir_separator=:
10046
10047
	case $host_cpu in
10048
	hppa*64*|ia64*)
10049
	  hardcode_direct=no
10050
	  hardcode_shlibpath_var=no
10051
	  ;;
10052
	*)
10053
	  hardcode_direct=yes
10054
	  hardcode_direct_absolute=yes
10055
	  export_dynamic_flag_spec='${wl}-E'
10056
10057
	  # hardcode_minus_L: Not really in the search PATH,
10058
	  # but as the default location of the library.
10059
	  hardcode_minus_L=yes
10060
	  ;;
10061
	esac
10062
      fi
10063
      ;;
10064
10065
    irix5* | irix6* | nonstopux*)
10066
      if test "$GCC" = yes; then
10067
	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'
10068
	# Try to use the -exported_symbol ld option, if it does not
10069
	# work, assume that -exports_file does not work either and
10070
	# implicitly export all symbols.
10071
        save_LDFLAGS="$LDFLAGS"
10072
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10073
        cat >conftest.$ac_ext <<_ACEOF
10074
int foo(void) {}
10075
_ACEOF
10076
rm -f conftest.$ac_objext conftest$ac_exeext
10077
if { (ac_try="$ac_link"
10078
case "(($ac_try" in
10079
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080
  *) ac_try_echo=$ac_try;;
10081
esac
10082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083
  (eval "$ac_link") 2>conftest.er1
10084
  ac_status=$?
10085
  grep -v '^ *+' conftest.er1 >conftest.err
10086
  rm -f conftest.er1
10087
  cat conftest.err >&5
10088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089
  (exit $ac_status); } && {
10090
	 test -z "$ac_c_werror_flag" ||
10091
	 test ! -s conftest.err
10092
       } && test -s conftest$ac_exeext &&
10093
       $as_test_x conftest$ac_exeext; then
10094
  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'
10095
10096
else
10097
  echo "$as_me: failed program was:" >&5
10098
sed 's/^/| /' conftest.$ac_ext >&5
10099
10100
10101
fi
10102
10103
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10104
      conftest$ac_exeext conftest.$ac_ext
10105
        LDFLAGS="$save_LDFLAGS"
10106
      else
10107
	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'
10108
	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'
10109
      fi
10110
      archive_cmds_need_lc='no'
10111
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10112
      hardcode_libdir_separator=:
10113
      inherit_rpath=yes
10114
      link_all_deplibs=yes
10115
      ;;
10116
10117
    netbsd*)
10118
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10119
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10120
      else
10121
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10122
      fi
10123
      hardcode_libdir_flag_spec='-R$libdir'
10124
      hardcode_direct=yes
10125
      hardcode_shlibpath_var=no
10126
      ;;
10127
10128
    newsos6)
10129
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130
      hardcode_direct=yes
10131
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10132
      hardcode_libdir_separator=:
10133
      hardcode_shlibpath_var=no
10134
      ;;
10135
10136
    *nto* | *qnx*)
10137
      ;;
10138
10139
    openbsd*)
10140
      if test -f /usr/libexec/ld.so; then
10141
	hardcode_direct=yes
10142
	hardcode_shlibpath_var=no
10143
	hardcode_direct_absolute=yes
10144
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10145
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10146
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10147
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10148
	  export_dynamic_flag_spec='${wl}-E'
10149
	else
10150
	  case $host_os in
10151
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10152
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10153
	     hardcode_libdir_flag_spec='-R$libdir'
10154
	     ;;
10155
	   *)
10156
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10157
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10158
	     ;;
10159
	  esac
10160
	fi
10161
      else
10162
	ld_shlibs=no
10163
      fi
10164
      ;;
10165
10166
    os2*)
10167
      hardcode_libdir_flag_spec='-L$libdir'
10168
      hardcode_minus_L=yes
10169
      allow_undefined_flag=unsupported
10170
      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'
10171
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10172
      ;;
10173
10174
    osf3*)
10175
      if test "$GCC" = yes; then
10176
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10177
	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'
10178
      else
10179
	allow_undefined_flag=' -expect_unresolved \*'
10180
	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'
10181
      fi
10182
      archive_cmds_need_lc='no'
10183
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10184
      hardcode_libdir_separator=:
10185
      ;;
10186
10187
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10188
      if test "$GCC" = yes; then
10189
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10190
	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'
10191
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10192
      else
10193
	allow_undefined_flag=' -expect_unresolved \*'
10194
	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'
10195
	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~
10196
	$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'
10197
10198
	# Both c and cxx compiler support -rpath directly
10199
	hardcode_libdir_flag_spec='-rpath $libdir'
10200
      fi
10201
      archive_cmds_need_lc='no'
10202
      hardcode_libdir_separator=:
10203
      ;;
10204
10205
    solaris*)
10206
      no_undefined_flag=' -z defs'
10207
      if test "$GCC" = yes; then
10208
	wlarc='${wl}'
10209
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10210
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10211
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10212
      else
10213
	case `$CC -V 2>&1` in
10214
	*"Compilers 5.0"*)
10215
	  wlarc=''
10216
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10218
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10219
	  ;;
10220
	*)
10221
	  wlarc='${wl}'
10222
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10223
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10224
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10225
	  ;;
10226
	esac
10227
      fi
10228
      hardcode_libdir_flag_spec='-R$libdir'
10229
      hardcode_shlibpath_var=no
10230
      case $host_os in
10231
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10232
      *)
10233
	# The compiler driver will combine and reorder linker options,
10234
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10235
	# but is careful enough not to reorder.
10236
	# Supported since Solaris 2.6 (maybe 2.5.1?)
10237
	if test "$GCC" = yes; then
10238
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10239
	else
10240
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10241
	fi
10242
	;;
10243
      esac
10244
      link_all_deplibs=yes
10245
      ;;
10246
10247
    sunos4*)
10248
      if test "x$host_vendor" = xsequent; then
10249
	# Use $CC to link under sequent, because it throws in some extra .o
10250
	# files that make .init and .fini sections work.
10251
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10252
      else
10253
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10254
      fi
10255
      hardcode_libdir_flag_spec='-L$libdir'
10256
      hardcode_direct=yes
10257
      hardcode_minus_L=yes
10258
      hardcode_shlibpath_var=no
10259
      ;;
10260
10261
    sysv4)
10262
      case $host_vendor in
10263
	sni)
10264
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265
	  hardcode_direct=yes # is this really true???
10266
	;;
10267
	siemens)
10268
	  ## LD is ld it makes a PLAMLIB
10269
	  ## CC just makes a GrossModule.
10270
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10271
	  reload_cmds='$CC -r -o $output$reload_objs'
10272
	  hardcode_direct=no
10273
        ;;
10274
	motorola)
10275
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10277
	;;
10278
      esac
10279
      runpath_var='LD_RUN_PATH'
10280
      hardcode_shlibpath_var=no
10281
      ;;
10282
10283
    sysv4.3*)
10284
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285
      hardcode_shlibpath_var=no
10286
      export_dynamic_flag_spec='-Bexport'
10287
      ;;
10288
10289
    sysv4*MP*)
10290
      if test -d /usr/nec; then
10291
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292
	hardcode_shlibpath_var=no
10293
	runpath_var=LD_RUN_PATH
10294
	hardcode_runpath_var=yes
10295
	ld_shlibs=yes
10296
      fi
10297
      ;;
10298
10299
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10300
      no_undefined_flag='${wl}-z,text'
10301
      archive_cmds_need_lc=no
10302
      hardcode_shlibpath_var=no
10303
      runpath_var='LD_RUN_PATH'
10304
10305
      if test "$GCC" = yes; then
10306
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10307
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10308
      else
10309
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10310
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311
      fi
10312
      ;;
10313
10314
    sysv5* | sco3.2v5* | sco5v6*)
10315
      # Note: We can NOT use -z defs as we might desire, because we do not
10316
      # link with -lc, and that would cause any symbols used from libc to
10317
      # always be unresolved, which means just about no library would
10318
      # ever link correctly.  If we're not using GNU ld we use -z text
10319
      # though, which does catch some bad symbols but isn't as heavy-handed
10320
      # as -z defs.
10321
      no_undefined_flag='${wl}-z,text'
10322
      allow_undefined_flag='${wl}-z,nodefs'
10323
      archive_cmds_need_lc=no
10324
      hardcode_shlibpath_var=no
10325
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10326
      hardcode_libdir_separator=':'
10327
      link_all_deplibs=yes
10328
      export_dynamic_flag_spec='${wl}-Bexport'
10329
      runpath_var='LD_RUN_PATH'
10330
10331
      if test "$GCC" = yes; then
10332
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10333
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10334
      else
10335
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337
      fi
10338
      ;;
10339
10340
    uts4*)
10341
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342
      hardcode_libdir_flag_spec='-L$libdir'
10343
      hardcode_shlibpath_var=no
10344
      ;;
10345
10346
    *)
10347
      ld_shlibs=no
10348
      ;;
10349
    esac
10350
10351
    if test x$host_vendor = xsni; then
10352
      case $host in
10353
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10354
	export_dynamic_flag_spec='${wl}-Blargedynsym'
10355
	;;
10356
      esac
10357
    fi
10358
  fi
10359
10360
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10361
echo "${ECHO_T}$ld_shlibs" >&6; }
10362
test "$ld_shlibs" = no && can_build_shared=no
10363
10364
with_gnu_ld=$with_gnu_ld
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
#
10381
# Do we need to explicitly link libc?
10382
#
10383
case "x$archive_cmds_need_lc" in
10384
x|xyes)
10385
  # Assume -lc should be added
10386
  archive_cmds_need_lc=yes
10387
10388
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10389
    case $archive_cmds in
10390
    *'~'*)
10391
      # FIXME: we may have to deal with multi-command sequences.
10392
      ;;
10393
    '$CC '*)
10394
      # Test whether the compiler implicitly links with -lc since on some
10395
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10396
      # to ld, don't add -lc before -lgcc.
10397
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10398
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10399
      $RM -r conftest*
10400
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10401
10402
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10403
  (eval $ac_compile) 2>&5
10404
  ac_status=$?
10405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406
  (exit $ac_status); } 2>conftest.err; then
10407
        soname=conftest
10408
        lib=conftest
10409
        libobjs=conftest.$ac_objext
10410
        deplibs=
10411
        wl=$lt_prog_compiler_wl
10412
	pic_flag=$lt_prog_compiler_pic
10413
        compiler_flags=-v
10414
        linker_flags=-v
10415
        verstring=
10416
        output_objdir=.
10417
        libname=conftest
10418
        lt_save_allow_undefined_flag=$allow_undefined_flag
10419
        allow_undefined_flag=
10420
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10421
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10422
  ac_status=$?
10423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424
  (exit $ac_status); }
10425
        then
10426
	  archive_cmds_need_lc=no
10427
        else
10428
	  archive_cmds_need_lc=yes
10429
        fi
10430
        allow_undefined_flag=$lt_save_allow_undefined_flag
10431
      else
10432
        cat conftest.err 1>&5
10433
      fi
10434
      $RM -r conftest*
10435
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10436
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10437
      ;;
10438
    esac
10439
  fi
10440
  ;;
10441
esac
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10600
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10601
10602
if test "$GCC" = yes; then
10603
  case $host_os in
10604
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10605
    *) lt_awk_arg="/^libraries:/" ;;
10606
  esac
10607
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10608
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10609
    # if the path contains ";" then we assume it to be the separator
10610
    # otherwise default to the standard path separator (i.e. ":") - it is
10611
    # assumed that no part of a normal pathname contains ";" but that should
10612
    # okay in the real world where ";" in dirpaths is itself problematic.
10613
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10614
  else
10615
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10616
  fi
10617
  # Ok, now we have the path, separated by spaces, we can step through it
10618
  # and add multilib dir if necessary.
10619
  lt_tmp_lt_search_path_spec=
10620
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10621
  for lt_sys_path in $lt_search_path_spec; do
10622
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10623
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10624
    else
10625
      test -d "$lt_sys_path" && \
10626
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10627
    fi
10628
  done
10629
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10630
BEGIN {RS=" "; FS="/|\n";} {
10631
  lt_foo="";
10632
  lt_count=0;
10633
  for (lt_i = NF; lt_i > 0; lt_i--) {
10634
    if ($lt_i != "" && $lt_i != ".") {
10635
      if ($lt_i == "..") {
10636
        lt_count++;
10637
      } else {
10638
        if (lt_count == 0) {
10639
          lt_foo="/" $lt_i lt_foo;
10640
        } else {
10641
          lt_count--;
10642
        }
10643
      }
10644
    }
10645
  }
10646
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10647
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10648
}'`
10649
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10650
else
10651
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10652
fi
10653
library_names_spec=
10654
libname_spec='lib$name'
10655
soname_spec=
10656
shrext_cmds=".so"
10657
postinstall_cmds=
10658
postuninstall_cmds=
10659
finish_cmds=
10660
finish_eval=
10661
shlibpath_var=
10662
shlibpath_overrides_runpath=unknown
10663
version_type=none
10664
dynamic_linker="$host_os ld.so"
10665
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10666
need_lib_prefix=unknown
10667
hardcode_into_libs=no
10668
10669
# when you set need_version to no, make sure it does not cause -set_version
10670
# flags to be left without arguments
10671
need_version=unknown
10672
10673
case $host_os in
10674
aix3*)
10675
  version_type=linux
10676
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10677
  shlibpath_var=LIBPATH
10678
10679
  # AIX 3 has no versioning support, so we append a major version to the name.
10680
  soname_spec='${libname}${release}${shared_ext}$major'
10681
  ;;
10682
10683
aix[4-9]*)
10684
  version_type=linux
10685
  need_lib_prefix=no
10686
  need_version=no
10687
  hardcode_into_libs=yes
10688
  if test "$host_cpu" = ia64; then
10689
    # AIX 5 supports IA64
10690
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10691
    shlibpath_var=LD_LIBRARY_PATH
10692
  else
10693
    # With GCC up to 2.95.x, collect2 would create an import file
10694
    # for dependence libraries.  The import file would start with
10695
    # the line `#! .'.  This would cause the generated library to
10696
    # depend on `.', always an invalid library.  This was fixed in
10697
    # development snapshots of GCC prior to 3.0.
10698
    case $host_os in
10699
      aix4 | aix4.[01] | aix4.[01].*)
10700
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10701
	   echo ' yes '
10702
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10703
	:
10704
      else
10705
	can_build_shared=no
10706
      fi
10707
      ;;
10708
    esac
10709
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10710
    # soname into executable. Probably we can add versioning support to
10711
    # collect2, so additional links can be useful in future.
10712
    if test "$aix_use_runtimelinking" = yes; then
10713
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10714
      # instead of lib<name>.a to let people know that these are not
10715
      # typical AIX shared libraries.
10716
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717
    else
10718
      # We preserve .a as extension for shared libraries through AIX4.2
10719
      # and later when we are not doing run time linking.
10720
      library_names_spec='${libname}${release}.a $libname.a'
10721
      soname_spec='${libname}${release}${shared_ext}$major'
10722
    fi
10723
    shlibpath_var=LIBPATH
10724
  fi
10725
  ;;
10726
10727
amigaos*)
10728
  case $host_cpu in
10729
  powerpc)
10730
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10731
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10732
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733
    ;;
10734
  m68k)
10735
    library_names_spec='$libname.ixlibrary $libname.a'
10736
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10737
    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'
10738
    ;;
10739
  esac
10740
  ;;
10741
10742
beos*)
10743
  library_names_spec='${libname}${shared_ext}'
10744
  dynamic_linker="$host_os ld.so"
10745
  shlibpath_var=LIBRARY_PATH
10746
  ;;
10747
10748
bsdi[45]*)
10749
  version_type=linux
10750
  need_version=no
10751
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752
  soname_spec='${libname}${release}${shared_ext}$major'
10753
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10754
  shlibpath_var=LD_LIBRARY_PATH
10755
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10756
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10757
  # the default ld.so.conf also contains /usr/contrib/lib and
10758
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10759
  # libtool to hard-code these into programs
10760
  ;;
10761
10762
cygwin* | mingw* | pw32*)
10763
  version_type=windows
10764
  shrext_cmds=".dll"
10765
  need_version=no
10766
  need_lib_prefix=no
10767
10768
  case $GCC,$host_os in
10769
  yes,cygwin* | yes,mingw* | yes,pw32*)
10770
    library_names_spec='$libname.dll.a'
10771
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10772
    postinstall_cmds='base_file=`basename \${file}`~
10773
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10774
      dldir=$destdir/`dirname \$dlpath`~
10775
      test -d \$dldir || mkdir -p \$dldir~
10776
      $install_prog $dir/$dlname \$dldir/$dlname~
10777
      chmod a+x \$dldir/$dlname~
10778
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10779
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10780
      fi'
10781
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10782
      dlpath=$dir/\$dldll~
10783
       $RM \$dlpath'
10784
    shlibpath_overrides_runpath=yes
10785
10786
    case $host_os in
10787
    cygwin*)
10788
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10789
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10790
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10791
      ;;
10792
    mingw*)
10793
      # MinGW DLLs use traditional 'lib' prefix
10794
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10795
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10796
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10797
        # It is most probably a Windows format PATH printed by
10798
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10799
        # path with ; separators, and with drive letters. We can handle the
10800
        # drive letters (cygwin fileutils understands them), so leave them,
10801
        # especially as we might pass files found there to a mingw objdump,
10802
        # which wouldn't understand a cygwinified path. Ahh.
10803
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10804
      else
10805
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10806
      fi
10807
      ;;
10808
    pw32*)
10809
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10810
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10811
      ;;
10812
    esac
10813
    ;;
10814
10815
  *)
10816
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10817
    ;;
10818
  esac
10819
  dynamic_linker='Win32 ld.exe'
10820
  # FIXME: first we should search . and the directory the executable is in
10821
  shlibpath_var=PATH
10822
  ;;
10823
10824
darwin* | rhapsody*)
10825
  dynamic_linker="$host_os dyld"
10826
  version_type=darwin
10827
  need_lib_prefix=no
10828
  need_version=no
10829
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
10830
  soname_spec='${libname}${release}${major}$shared_ext'
10831
  shlibpath_overrides_runpath=yes
10832
  shlibpath_var=DYLD_LIBRARY_PATH
10833
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10834
10835
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10836
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10837
  ;;
10838
10839
dgux*)
10840
  version_type=linux
10841
  need_lib_prefix=no
10842
  need_version=no
10843
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10844
  soname_spec='${libname}${release}${shared_ext}$major'
10845
  shlibpath_var=LD_LIBRARY_PATH
10846
  ;;
10847
10848
freebsd1*)
10849
  dynamic_linker=no
10850
  ;;
10851
10852
freebsd* | dragonfly*)
10853
  # DragonFly does not have aout.  When/if they implement a new
10854
  # versioning mechanism, adjust this.
10855
  if test -x /usr/bin/objformat; then
10856
    objformat=`/usr/bin/objformat`
10857
  else
10858
    case $host_os in
10859
    freebsd[123]*) objformat=aout ;;
10860
    *) objformat=elf ;;
10861
    esac
10862
  fi
10863
  version_type=freebsd-$objformat
10864
  case $version_type in
10865
    freebsd-elf*)
10866
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10867
      need_version=no
10868
      need_lib_prefix=no
10869
      ;;
10870
    freebsd-*)
10871
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10872
      need_version=yes
10873
      ;;
10874
  esac
10875
  shlibpath_var=LD_LIBRARY_PATH
10876
  case $host_os in
10877
  freebsd2*)
10878
    shlibpath_overrides_runpath=yes
10879
    ;;
10880
  freebsd3.[01]* | freebsdelf3.[01]*)
10881
    shlibpath_overrides_runpath=yes
10882
    hardcode_into_libs=yes
10883
    ;;
10884
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10885
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10886
    shlibpath_overrides_runpath=no
10887
    hardcode_into_libs=yes
10888
    ;;
10889
  *) # from 4.6 on, and DragonFly
10890
    shlibpath_overrides_runpath=yes
10891
    hardcode_into_libs=yes
10892
    ;;
10893
  esac
10894
  ;;
10895
10896
gnu*)
10897
  version_type=linux
10898
  need_lib_prefix=no
10899
  need_version=no
10900
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10901
  soname_spec='${libname}${release}${shared_ext}$major'
10902
  shlibpath_var=LD_LIBRARY_PATH
10903
  hardcode_into_libs=yes
10904
  ;;
10905
10906
hpux9* | hpux10* | hpux11*)
10907
  # Give a soname corresponding to the major version so that dld.sl refuses to
10908
  # link against other versions.
10909
  version_type=sunos
10910
  need_lib_prefix=no
10911
  need_version=no
10912
  case $host_cpu in
10913
  ia64*)
10914
    shrext_cmds='.so'
10915
    hardcode_into_libs=yes
10916
    dynamic_linker="$host_os dld.so"
10917
    shlibpath_var=LD_LIBRARY_PATH
10918
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10919
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920
    soname_spec='${libname}${release}${shared_ext}$major'
10921
    if test "X$HPUX_IA64_MODE" = X32; then
10922
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10923
    else
10924
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10925
    fi
10926
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10927
    ;;
10928
  hppa*64*)
10929
    shrext_cmds='.sl'
10930
    hardcode_into_libs=yes
10931
    dynamic_linker="$host_os dld.sl"
10932
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10933
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10934
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935
    soname_spec='${libname}${release}${shared_ext}$major'
10936
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10937
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10938
    ;;
10939
  *)
10940
    shrext_cmds='.sl'
10941
    dynamic_linker="$host_os dld.sl"
10942
    shlibpath_var=SHLIB_PATH
10943
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10944
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945
    soname_spec='${libname}${release}${shared_ext}$major'
10946
    ;;
10947
  esac
10948
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10949
  postinstall_cmds='chmod 555 $lib'
10950
  ;;
10951
10952
interix[3-9]*)
10953
  version_type=linux
10954
  need_lib_prefix=no
10955
  need_version=no
10956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10957
  soname_spec='${libname}${release}${shared_ext}$major'
10958
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10959
  shlibpath_var=LD_LIBRARY_PATH
10960
  shlibpath_overrides_runpath=no
10961
  hardcode_into_libs=yes
10962
  ;;
10963
10964
irix5* | irix6* | nonstopux*)
10965
  case $host_os in
10966
    nonstopux*) version_type=nonstopux ;;
10967
    *)
10968
	if test "$lt_cv_prog_gnu_ld" = yes; then
10969
		version_type=linux
10970
	else
10971
		version_type=irix
10972
	fi ;;
10973
  esac
10974
  need_lib_prefix=no
10975
  need_version=no
10976
  soname_spec='${libname}${release}${shared_ext}$major'
10977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10978
  case $host_os in
10979
  irix5* | nonstopux*)
10980
    libsuff= shlibsuff=
10981
    ;;
10982
  *)
10983
    case $LD in # libtool.m4 will add one of these switches to LD
10984
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10985
      libsuff= shlibsuff= libmagic=32-bit;;
10986
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10987
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10988
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10989
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10990
    *) libsuff= shlibsuff= libmagic=never-match;;
10991
    esac
10992
    ;;
10993
  esac
10994
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10995
  shlibpath_overrides_runpath=no
10996
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10997
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10998
  hardcode_into_libs=yes
10999
  ;;
11000
11001
# No shared lib support for Linux oldld, aout, or coff.
11002
linux*oldld* | linux*aout* | linux*coff*)
11003
  dynamic_linker=no
11004
  ;;
11005
11006
# This must be Linux ELF.
11007
linux* | k*bsd*-gnu)
11008
  version_type=linux
11009
  need_lib_prefix=no
11010
  need_version=no
11011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11012
  soname_spec='${libname}${release}${shared_ext}$major'
11013
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11014
  shlibpath_var=LD_LIBRARY_PATH
11015
  shlibpath_overrides_runpath=no
11016
  # Some binutils ld are patched to set DT_RUNPATH
11017
  save_LDFLAGS=$LDFLAGS
11018
  save_libdir=$libdir
11019
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11020
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11021
  cat >conftest.$ac_ext <<_ACEOF
11022
/* confdefs.h.  */
11023
_ACEOF
11024
cat confdefs.h >>conftest.$ac_ext
11025
cat >>conftest.$ac_ext <<_ACEOF
11026
/* end confdefs.h.  */
11027
11028
int
11029
main ()
11030
{
11031
11032
  ;
11033
  return 0;
11034
}
11035
_ACEOF
11036
rm -f conftest.$ac_objext conftest$ac_exeext
11037
if { (ac_try="$ac_link"
11038
case "(($ac_try" in
11039
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040
  *) ac_try_echo=$ac_try;;
11041
esac
11042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043
  (eval "$ac_link") 2>conftest.er1
11044
  ac_status=$?
11045
  grep -v '^ *+' conftest.er1 >conftest.err
11046
  rm -f conftest.er1
11047
  cat conftest.err >&5
11048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049
  (exit $ac_status); } && {
11050
	 test -z "$ac_c_werror_flag" ||
11051
	 test ! -s conftest.err
11052
       } && test -s conftest$ac_exeext &&
11053
       $as_test_x conftest$ac_exeext; then
11054
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11055
  shlibpath_overrides_runpath=yes
11056
fi
11057
11058
else
11059
  echo "$as_me: failed program was:" >&5
11060
sed 's/^/| /' conftest.$ac_ext >&5
11061
11062
11063
fi
11064
11065
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11066
      conftest$ac_exeext conftest.$ac_ext
11067
  LDFLAGS=$save_LDFLAGS
11068
  libdir=$save_libdir
11069
11070
  # This implies no fast_install, which is unacceptable.
11071
  # Some rework will be needed to allow for fast_install
11072
  # before this can be enabled.
11073
  hardcode_into_libs=yes
11074
11075
  # Append ld.so.conf contents to the search path
11076
  if test -f /etc/ld.so.conf; then
11077
    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' ' '`
11078
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11079
  fi
11080
11081
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11082
  # powerpc, because MkLinux only supported shared libraries with the
11083
  # GNU dynamic linker.  Since this was broken with cross compilers,
11084
  # most powerpc-linux boxes support dynamic linking these days and
11085
  # people can always --disable-shared, the test was removed, and we
11086
  # assume the GNU/Linux dynamic linker is in use.
11087
  dynamic_linker='GNU/Linux ld.so'
11088
  ;;
11089
11090
netbsd*)
11091
  version_type=sunos
11092
  need_lib_prefix=no
11093
  need_version=no
11094
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11095
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11096
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11097
    dynamic_linker='NetBSD (a.out) ld.so'
11098
  else
11099
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11100
    soname_spec='${libname}${release}${shared_ext}$major'
11101
    dynamic_linker='NetBSD ld.elf_so'
11102
  fi
11103
  shlibpath_var=LD_LIBRARY_PATH
11104
  shlibpath_overrides_runpath=yes
11105
  hardcode_into_libs=yes
11106
  ;;
11107
11108
newsos6)
11109
  version_type=linux
11110
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111
  shlibpath_var=LD_LIBRARY_PATH
11112
  shlibpath_overrides_runpath=yes
11113
  ;;
11114
11115
*nto* | *qnx*)
11116
  version_type=qnx
11117
  need_lib_prefix=no
11118
  need_version=no
11119
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120
  soname_spec='${libname}${release}${shared_ext}$major'
11121
  shlibpath_var=LD_LIBRARY_PATH
11122
  shlibpath_overrides_runpath=no
11123
  hardcode_into_libs=yes
11124
  dynamic_linker='ldqnx.so'
11125
  ;;
11126
11127
openbsd*)
11128
  version_type=sunos
11129
  sys_lib_dlsearch_path_spec="/usr/lib"
11130
  need_lib_prefix=no
11131
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11132
  case $host_os in
11133
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11134
    *)				need_version=no  ;;
11135
  esac
11136
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11137
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11138
  shlibpath_var=LD_LIBRARY_PATH
11139
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11140
    case $host_os in
11141
      openbsd2.[89] | openbsd2.[89].*)
11142
	shlibpath_overrides_runpath=no
11143
	;;
11144
      *)
11145
	shlibpath_overrides_runpath=yes
11146
	;;
11147
      esac
11148
  else
11149
    shlibpath_overrides_runpath=yes
11150
  fi
11151
  ;;
11152
11153
os2*)
11154
  libname_spec='$name'
11155
  shrext_cmds=".dll"
11156
  need_lib_prefix=no
11157
  library_names_spec='$libname${shared_ext} $libname.a'
11158
  dynamic_linker='OS/2 ld.exe'
11159
  shlibpath_var=LIBPATH
11160
  ;;
11161
11162
osf3* | osf4* | osf5*)
11163
  version_type=osf
11164
  need_lib_prefix=no
11165
  need_version=no
11166
  soname_spec='${libname}${release}${shared_ext}$major'
11167
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168
  shlibpath_var=LD_LIBRARY_PATH
11169
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11170
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11171
  ;;
11172
11173
rdos*)
11174
  dynamic_linker=no
11175
  ;;
11176
11177
solaris*)
11178
  version_type=linux
11179
  need_lib_prefix=no
11180
  need_version=no
11181
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182
  soname_spec='${libname}${release}${shared_ext}$major'
11183
  shlibpath_var=LD_LIBRARY_PATH
11184
  shlibpath_overrides_runpath=yes
11185
  hardcode_into_libs=yes
11186
  # ldd complains unless libraries are executable
11187
  postinstall_cmds='chmod +x $lib'
11188
  ;;
11189
11190
sunos4*)
11191
  version_type=sunos
11192
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11193
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11194
  shlibpath_var=LD_LIBRARY_PATH
11195
  shlibpath_overrides_runpath=yes
11196
  if test "$with_gnu_ld" = yes; then
11197
    need_lib_prefix=no
11198
  fi
11199
  need_version=yes
11200
  ;;
11201
11202
sysv4 | sysv4.3*)
11203
  version_type=linux
11204
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205
  soname_spec='${libname}${release}${shared_ext}$major'
11206
  shlibpath_var=LD_LIBRARY_PATH
11207
  case $host_vendor in
11208
    sni)
11209
      shlibpath_overrides_runpath=no
11210
      need_lib_prefix=no
11211
      runpath_var=LD_RUN_PATH
11212
      ;;
11213
    siemens)
11214
      need_lib_prefix=no
11215
      ;;
11216
    motorola)
11217
      need_lib_prefix=no
11218
      need_version=no
11219
      shlibpath_overrides_runpath=no
11220
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11221
      ;;
11222
  esac
11223
  ;;
11224
11225
sysv4*MP*)
11226
  if test -d /usr/nec ;then
11227
    version_type=linux
11228
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11229
    soname_spec='$libname${shared_ext}.$major'
11230
    shlibpath_var=LD_LIBRARY_PATH
11231
  fi
11232
  ;;
11233
11234
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11235
  version_type=freebsd-elf
11236
  need_lib_prefix=no
11237
  need_version=no
11238
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11239
  soname_spec='${libname}${release}${shared_ext}$major'
11240
  shlibpath_var=LD_LIBRARY_PATH
11241
  shlibpath_overrides_runpath=yes
11242
  hardcode_into_libs=yes
11243
  if test "$with_gnu_ld" = yes; then
11244
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11245
  else
11246
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11247
    case $host_os in
11248
      sco3.2v5*)
11249
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11250
	;;
11251
    esac
11252
  fi
11253
  sys_lib_dlsearch_path_spec='/usr/lib'
11254
  ;;
11255
11256
tpf*)
11257
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11258
  version_type=linux
11259
  need_lib_prefix=no
11260
  need_version=no
11261
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262
  shlibpath_var=LD_LIBRARY_PATH
11263
  shlibpath_overrides_runpath=no
11264
  hardcode_into_libs=yes
11265
  ;;
11266
11267
uts4*)
11268
  version_type=linux
11269
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270
  soname_spec='${libname}${release}${shared_ext}$major'
11271
  shlibpath_var=LD_LIBRARY_PATH
11272
  ;;
11273
11274
*)
11275
  dynamic_linker=no
11276
  ;;
11277
esac
11278
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11279
echo "${ECHO_T}$dynamic_linker" >&6; }
11280
test "$dynamic_linker" = no && can_build_shared=no
11281
11282
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11283
if test "$GCC" = yes; then
11284
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11285
fi
11286
11287
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11288
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11289
fi
11290
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11291
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11292
fi
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11381
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11382
hardcode_action=
11383
if test -n "$hardcode_libdir_flag_spec" ||
11384
   test -n "$runpath_var" ||
11385
   test "X$hardcode_automatic" = "Xyes" ; then
11386
11387
  # We can hardcode non-existent directories.
11388
  if test "$hardcode_direct" != no &&
11389
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11390
     # have to relink, otherwise we might link with an installed library
11391
     # when we should be linking with a yet-to-be-installed one
11392
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11393
     test "$hardcode_minus_L" != no; then
11394
    # Linking always hardcodes the temporary library directory.
11395
    hardcode_action=relink
11396
  else
11397
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11398
    hardcode_action=immediate
11399
  fi
11400
else
11401
  # We cannot hardcode anything, or else we can only hardcode existing
11402
  # directories.
11403
  hardcode_action=unsupported
11404
fi
11405
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
11406
echo "${ECHO_T}$hardcode_action" >&6; }
11407
11408
if test "$hardcode_action" = relink ||
11409
   test "$inherit_rpath" = yes; then
11410
  # Fast installation is not supported
11411
  enable_fast_install=no
11412
elif test "$shlibpath_overrides_runpath" = yes ||
11413
     test "$enable_shared" = no; then
11414
  # Fast installation is not necessary
11415
  enable_fast_install=needless
11416
fi
11417
11418
11419
11420
11421
11422
11423
  if test "x$enable_dlopen" != xyes; then
11424
  enable_dlopen=unknown
11425
  enable_dlopen_self=unknown
11426
  enable_dlopen_self_static=unknown
11427
else
11428
  lt_cv_dlopen=no
11429
  lt_cv_dlopen_libs=
11430
11431
  case $host_os in
11432
  beos*)
11433
    lt_cv_dlopen="load_add_on"
11434
    lt_cv_dlopen_libs=
11435
    lt_cv_dlopen_self=yes
11436
    ;;
11437
11438
  mingw* | pw32*)
11439
    lt_cv_dlopen="LoadLibrary"
11440
    lt_cv_dlopen_libs=
11441
    ;;
11442
11443
  cygwin*)
11444
    lt_cv_dlopen="dlopen"
11445
    lt_cv_dlopen_libs=
11446
    ;;
11447
11448
  darwin*)
11449
  # if libdl is installed we need to link against it
11450
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11451
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11452
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11453
  echo $ECHO_N "(cached) $ECHO_C" >&6
11454
else
11455
  ac_check_lib_save_LIBS=$LIBS
11456
LIBS="-ldl  $LIBS"
11457
cat >conftest.$ac_ext <<_ACEOF
11458
/* confdefs.h.  */
11459
_ACEOF
11460
cat confdefs.h >>conftest.$ac_ext
11461
cat >>conftest.$ac_ext <<_ACEOF
11462
/* end confdefs.h.  */
11463
11464
/* Override any GCC internal prototype to avoid an error.
11465
   Use char because int might match the return type of a GCC
11466
   builtin and then its argument prototype would still apply.  */
11467
#ifdef __cplusplus
11468
extern "C"
11469
#endif
11470
char dlopen ();
11471
int
11472
main ()
11473
{
11474
return dlopen ();
11475
  ;
11476
  return 0;
11477
}
11478
_ACEOF
11479
rm -f conftest.$ac_objext conftest$ac_exeext
11480
if { (ac_try="$ac_link"
11481
case "(($ac_try" in
11482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483
  *) ac_try_echo=$ac_try;;
11484
esac
11485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486
  (eval "$ac_link") 2>conftest.er1
11487
  ac_status=$?
11488
  grep -v '^ *+' conftest.er1 >conftest.err
11489
  rm -f conftest.er1
11490
  cat conftest.err >&5
11491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492
  (exit $ac_status); } && {
11493
	 test -z "$ac_c_werror_flag" ||
11494
	 test ! -s conftest.err
11495
       } && test -s conftest$ac_exeext &&
11496
       $as_test_x conftest$ac_exeext; then
11497
  ac_cv_lib_dl_dlopen=yes
11498
else
11499
  echo "$as_me: failed program was:" >&5
11500
sed 's/^/| /' conftest.$ac_ext >&5
11501
11502
	ac_cv_lib_dl_dlopen=no
11503
fi
11504
11505
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11506
      conftest$ac_exeext conftest.$ac_ext
11507
LIBS=$ac_check_lib_save_LIBS
11508
fi
11509
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11510
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11511
if test $ac_cv_lib_dl_dlopen = yes; then
11512
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11513
else
11514
11515
    lt_cv_dlopen="dyld"
11516
    lt_cv_dlopen_libs=
11517
    lt_cv_dlopen_self=yes
11518
11519
fi
11520
11521
    ;;
11522
11523
  *)
11524
    { echo "$as_me:$LINENO: checking for shl_load" >&5
11525
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11526
if test "${ac_cv_func_shl_load+set}" = set; then
11527
  echo $ECHO_N "(cached) $ECHO_C" >&6
11528
else
11529
  cat >conftest.$ac_ext <<_ACEOF
11530
/* confdefs.h.  */
11531
_ACEOF
11532
cat confdefs.h >>conftest.$ac_ext
11533
cat >>conftest.$ac_ext <<_ACEOF
11534
/* end confdefs.h.  */
11535
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11536
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11537
#define shl_load innocuous_shl_load
11538
11539
/* System header to define __stub macros and hopefully few prototypes,
11540
    which can conflict with char shl_load (); below.
11541
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11542
    <limits.h> exists even on freestanding compilers.  */
11543
11544
#ifdef __STDC__
11545
# include <limits.h>
11546
#else
11547
# include <assert.h>
11548
#endif
11549
11550
#undef shl_load
11551
11552
/* Override any GCC internal prototype to avoid an error.
11553
   Use char because int might match the return type of a GCC
11554
   builtin and then its argument prototype would still apply.  */
11555
#ifdef __cplusplus
11556
extern "C"
11557
#endif
11558
char shl_load ();
11559
/* The GNU C library defines this for functions which it implements
11560
    to always fail with ENOSYS.  Some functions are actually named
11561
    something starting with __ and the normal name is an alias.  */
11562
#if defined __stub_shl_load || defined __stub___shl_load
11563
choke me
11564
#endif
11565
11566
int
11567
main ()
11568
{
11569
return shl_load ();
11570
  ;
11571
  return 0;
11572
}
11573
_ACEOF
11574
rm -f conftest.$ac_objext conftest$ac_exeext
11575
if { (ac_try="$ac_link"
11576
case "(($ac_try" in
11577
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578
  *) ac_try_echo=$ac_try;;
11579
esac
11580
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581
  (eval "$ac_link") 2>conftest.er1
11582
  ac_status=$?
11583
  grep -v '^ *+' conftest.er1 >conftest.err
11584
  rm -f conftest.er1
11585
  cat conftest.err >&5
11586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587
  (exit $ac_status); } && {
11588
	 test -z "$ac_c_werror_flag" ||
11589
	 test ! -s conftest.err
11590
       } && test -s conftest$ac_exeext &&
11591
       $as_test_x conftest$ac_exeext; then
11592
  ac_cv_func_shl_load=yes
11593
else
11594
  echo "$as_me: failed program was:" >&5
11595
sed 's/^/| /' conftest.$ac_ext >&5
11596
11597
	ac_cv_func_shl_load=no
11598
fi
11599
11600
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11601
      conftest$ac_exeext conftest.$ac_ext
11602
fi
11603
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11604
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11605
if test $ac_cv_func_shl_load = yes; then
11606
  lt_cv_dlopen="shl_load"
11607
else
11608
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11609
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11610
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11611
  echo $ECHO_N "(cached) $ECHO_C" >&6
11612
else
11613
  ac_check_lib_save_LIBS=$LIBS
11614
LIBS="-ldld  $LIBS"
11615
cat >conftest.$ac_ext <<_ACEOF
11616
/* confdefs.h.  */
11617
_ACEOF
11618
cat confdefs.h >>conftest.$ac_ext
11619
cat >>conftest.$ac_ext <<_ACEOF
11620
/* end confdefs.h.  */
11621
11622
/* Override any GCC internal prototype to avoid an error.
11623
   Use char because int might match the return type of a GCC
11624
   builtin and then its argument prototype would still apply.  */
11625
#ifdef __cplusplus
11626
extern "C"
11627
#endif
11628
char shl_load ();
11629
int
11630
main ()
11631
{
11632
return shl_load ();
11633
  ;
11634
  return 0;
11635
}
11636
_ACEOF
11637
rm -f conftest.$ac_objext conftest$ac_exeext
11638
if { (ac_try="$ac_link"
11639
case "(($ac_try" in
11640
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641
  *) ac_try_echo=$ac_try;;
11642
esac
11643
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644
  (eval "$ac_link") 2>conftest.er1
11645
  ac_status=$?
11646
  grep -v '^ *+' conftest.er1 >conftest.err
11647
  rm -f conftest.er1
11648
  cat conftest.err >&5
11649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650
  (exit $ac_status); } && {
11651
	 test -z "$ac_c_werror_flag" ||
11652
	 test ! -s conftest.err
11653
       } && test -s conftest$ac_exeext &&
11654
       $as_test_x conftest$ac_exeext; then
11655
  ac_cv_lib_dld_shl_load=yes
11656
else
11657
  echo "$as_me: failed program was:" >&5
11658
sed 's/^/| /' conftest.$ac_ext >&5
11659
11660
	ac_cv_lib_dld_shl_load=no
11661
fi
11662
11663
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11664
      conftest$ac_exeext conftest.$ac_ext
11665
LIBS=$ac_check_lib_save_LIBS
11666
fi
11667
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11668
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11669
if test $ac_cv_lib_dld_shl_load = yes; then
11670
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11671
else
11672
  { echo "$as_me:$LINENO: checking for dlopen" >&5
11673
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11674
if test "${ac_cv_func_dlopen+set}" = set; then
11675
  echo $ECHO_N "(cached) $ECHO_C" >&6
11676
else
11677
  cat >conftest.$ac_ext <<_ACEOF
11678
/* confdefs.h.  */
11679
_ACEOF
11680
cat confdefs.h >>conftest.$ac_ext
11681
cat >>conftest.$ac_ext <<_ACEOF
11682
/* end confdefs.h.  */
11683
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11684
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11685
#define dlopen innocuous_dlopen
11686
11687
/* System header to define __stub macros and hopefully few prototypes,
11688
    which can conflict with char dlopen (); below.
11689
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11690
    <limits.h> exists even on freestanding compilers.  */
11691
11692
#ifdef __STDC__
11693
# include <limits.h>
11694
#else
11695
# include <assert.h>
11696
#endif
11697
11698
#undef dlopen
11699
11700
/* Override any GCC internal prototype to avoid an error.
11701
   Use char because int might match the return type of a GCC
11702
   builtin and then its argument prototype would still apply.  */
11703
#ifdef __cplusplus
11704
extern "C"
11705
#endif
11706
char dlopen ();
11707
/* The GNU C library defines this for functions which it implements
11708
    to always fail with ENOSYS.  Some functions are actually named
11709
    something starting with __ and the normal name is an alias.  */
11710
#if defined __stub_dlopen || defined __stub___dlopen
11711
choke me
11712
#endif
11713
11714
int
11715
main ()
11716
{
11717
return dlopen ();
11718
  ;
11719
  return 0;
11720
}
11721
_ACEOF
11722
rm -f conftest.$ac_objext conftest$ac_exeext
11723
if { (ac_try="$ac_link"
11724
case "(($ac_try" in
11725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726
  *) ac_try_echo=$ac_try;;
11727
esac
11728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729
  (eval "$ac_link") 2>conftest.er1
11730
  ac_status=$?
11731
  grep -v '^ *+' conftest.er1 >conftest.err
11732
  rm -f conftest.er1
11733
  cat conftest.err >&5
11734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735
  (exit $ac_status); } && {
11736
	 test -z "$ac_c_werror_flag" ||
11737
	 test ! -s conftest.err
11738
       } && test -s conftest$ac_exeext &&
11739
       $as_test_x conftest$ac_exeext; then
11740
  ac_cv_func_dlopen=yes
11741
else
11742
  echo "$as_me: failed program was:" >&5
11743
sed 's/^/| /' conftest.$ac_ext >&5
11744
11745
	ac_cv_func_dlopen=no
11746
fi
11747
11748
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11749
      conftest$ac_exeext conftest.$ac_ext
11750
fi
11751
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11752
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11753
if test $ac_cv_func_dlopen = yes; then
11754
  lt_cv_dlopen="dlopen"
11755
else
11756
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11757
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11758
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11759
  echo $ECHO_N "(cached) $ECHO_C" >&6
11760
else
11761
  ac_check_lib_save_LIBS=$LIBS
11762
LIBS="-ldl  $LIBS"
11763
cat >conftest.$ac_ext <<_ACEOF
11764
/* confdefs.h.  */
11765
_ACEOF
11766
cat confdefs.h >>conftest.$ac_ext
11767
cat >>conftest.$ac_ext <<_ACEOF
11768
/* end confdefs.h.  */
11769
11770
/* Override any GCC internal prototype to avoid an error.
11771
   Use char because int might match the return type of a GCC
11772
   builtin and then its argument prototype would still apply.  */
11773
#ifdef __cplusplus
11774
extern "C"
11775
#endif
11776
char dlopen ();
11777
int
11778
main ()
11779
{
11780
return dlopen ();
11781
  ;
11782
  return 0;
11783
}
11784
_ACEOF
11785
rm -f conftest.$ac_objext conftest$ac_exeext
11786
if { (ac_try="$ac_link"
11787
case "(($ac_try" in
11788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789
  *) ac_try_echo=$ac_try;;
11790
esac
11791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792
  (eval "$ac_link") 2>conftest.er1
11793
  ac_status=$?
11794
  grep -v '^ *+' conftest.er1 >conftest.err
11795
  rm -f conftest.er1
11796
  cat conftest.err >&5
11797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798
  (exit $ac_status); } && {
11799
	 test -z "$ac_c_werror_flag" ||
11800
	 test ! -s conftest.err
11801
       } && test -s conftest$ac_exeext &&
11802
       $as_test_x conftest$ac_exeext; then
11803
  ac_cv_lib_dl_dlopen=yes
11804
else
11805
  echo "$as_me: failed program was:" >&5
11806
sed 's/^/| /' conftest.$ac_ext >&5
11807
11808
	ac_cv_lib_dl_dlopen=no
11809
fi
11810
11811
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11812
      conftest$ac_exeext conftest.$ac_ext
11813
LIBS=$ac_check_lib_save_LIBS
11814
fi
11815
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11816
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11817
if test $ac_cv_lib_dl_dlopen = yes; then
11818
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11819
else
11820
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11821
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11822
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11823
  echo $ECHO_N "(cached) $ECHO_C" >&6
11824
else
11825
  ac_check_lib_save_LIBS=$LIBS
11826
LIBS="-lsvld  $LIBS"
11827
cat >conftest.$ac_ext <<_ACEOF
11828
/* confdefs.h.  */
11829
_ACEOF
11830
cat confdefs.h >>conftest.$ac_ext
11831
cat >>conftest.$ac_ext <<_ACEOF
11832
/* end confdefs.h.  */
11833
11834
/* Override any GCC internal prototype to avoid an error.
11835
   Use char because int might match the return type of a GCC
11836
   builtin and then its argument prototype would still apply.  */
11837
#ifdef __cplusplus
11838
extern "C"
11839
#endif
11840
char dlopen ();
11841
int
11842
main ()
11843
{
11844
return dlopen ();
11845
  ;
11846
  return 0;
11847
}
11848
_ACEOF
11849
rm -f conftest.$ac_objext conftest$ac_exeext
11850
if { (ac_try="$ac_link"
11851
case "(($ac_try" in
11852
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853
  *) ac_try_echo=$ac_try;;
11854
esac
11855
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856
  (eval "$ac_link") 2>conftest.er1
11857
  ac_status=$?
11858
  grep -v '^ *+' conftest.er1 >conftest.err
11859
  rm -f conftest.er1
11860
  cat conftest.err >&5
11861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862
  (exit $ac_status); } && {
11863
	 test -z "$ac_c_werror_flag" ||
11864
	 test ! -s conftest.err
11865
       } && test -s conftest$ac_exeext &&
11866
       $as_test_x conftest$ac_exeext; then
11867
  ac_cv_lib_svld_dlopen=yes
11868
else
11869
  echo "$as_me: failed program was:" >&5
11870
sed 's/^/| /' conftest.$ac_ext >&5
11871
11872
	ac_cv_lib_svld_dlopen=no
11873
fi
11874
11875
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11876
      conftest$ac_exeext conftest.$ac_ext
11877
LIBS=$ac_check_lib_save_LIBS
11878
fi
11879
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11880
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11881
if test $ac_cv_lib_svld_dlopen = yes; then
11882
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11883
else
11884
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11885
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11886
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11887
  echo $ECHO_N "(cached) $ECHO_C" >&6
11888
else
11889
  ac_check_lib_save_LIBS=$LIBS
11890
LIBS="-ldld  $LIBS"
11891
cat >conftest.$ac_ext <<_ACEOF
11892
/* confdefs.h.  */
11893
_ACEOF
11894
cat confdefs.h >>conftest.$ac_ext
11895
cat >>conftest.$ac_ext <<_ACEOF
11896
/* end confdefs.h.  */
11897
11898
/* Override any GCC internal prototype to avoid an error.
11899
   Use char because int might match the return type of a GCC
11900
   builtin and then its argument prototype would still apply.  */
11901
#ifdef __cplusplus
11902
extern "C"
11903
#endif
11904
char dld_link ();
11905
int
11906
main ()
11907
{
11908
return dld_link ();
11909
  ;
11910
  return 0;
11911
}
11912
_ACEOF
11913
rm -f conftest.$ac_objext conftest$ac_exeext
11914
if { (ac_try="$ac_link"
11915
case "(($ac_try" in
11916
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917
  *) ac_try_echo=$ac_try;;
11918
esac
11919
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920
  (eval "$ac_link") 2>conftest.er1
11921
  ac_status=$?
11922
  grep -v '^ *+' conftest.er1 >conftest.err
11923
  rm -f conftest.er1
11924
  cat conftest.err >&5
11925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926
  (exit $ac_status); } && {
11927
	 test -z "$ac_c_werror_flag" ||
11928
	 test ! -s conftest.err
11929
       } && test -s conftest$ac_exeext &&
11930
       $as_test_x conftest$ac_exeext; then
11931
  ac_cv_lib_dld_dld_link=yes
11932
else
11933
  echo "$as_me: failed program was:" >&5
11934
sed 's/^/| /' conftest.$ac_ext >&5
11935
11936
	ac_cv_lib_dld_dld_link=no
11937
fi
11938
11939
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11940
      conftest$ac_exeext conftest.$ac_ext
11941
LIBS=$ac_check_lib_save_LIBS
11942
fi
11943
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11944
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11945
if test $ac_cv_lib_dld_dld_link = yes; then
11946
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11947
fi
11948
11949
11950
fi
11951
11952
11953
fi
11954
11955
11956
fi
11957
11958
11959
fi
11960
11961
11962
fi
11963
11964
    ;;
11965
  esac
11966
11967
  if test "x$lt_cv_dlopen" != xno; then
11968
    enable_dlopen=yes
11969
  else
11970
    enable_dlopen=no
11971
  fi
11972
11973
  case $lt_cv_dlopen in
11974
  dlopen)
11975
    save_CPPFLAGS="$CPPFLAGS"
11976
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11977
11978
    save_LDFLAGS="$LDFLAGS"
11979
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11980
11981
    save_LIBS="$LIBS"
11982
    LIBS="$lt_cv_dlopen_libs $LIBS"
11983
11984
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11985
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11986
if test "${lt_cv_dlopen_self+set}" = set; then
11987
  echo $ECHO_N "(cached) $ECHO_C" >&6
11988
else
11989
  	  if test "$cross_compiling" = yes; then :
11990
  lt_cv_dlopen_self=cross
11991
else
11992
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11993
  lt_status=$lt_dlunknown
11994
  cat > conftest.$ac_ext <<_LT_EOF
11995
#line 11995 "configure"
11996
#include "confdefs.h"
11997
11998
#if HAVE_DLFCN_H
11999
#include <dlfcn.h>
12000
#endif
12001
12002
#include <stdio.h>
12003
12004
#ifdef RTLD_GLOBAL
12005
#  define LT_DLGLOBAL		RTLD_GLOBAL
12006
#else
12007
#  ifdef DL_GLOBAL
12008
#    define LT_DLGLOBAL		DL_GLOBAL
12009
#  else
12010
#    define LT_DLGLOBAL		0
12011
#  endif
12012
#endif
12013
12014
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12015
   find out it does not work in some platform. */
12016
#ifndef LT_DLLAZY_OR_NOW
12017
#  ifdef RTLD_LAZY
12018
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12019
#  else
12020
#    ifdef DL_LAZY
12021
#      define LT_DLLAZY_OR_NOW		DL_LAZY
12022
#    else
12023
#      ifdef RTLD_NOW
12024
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12025
#      else
12026
#        ifdef DL_NOW
12027
#          define LT_DLLAZY_OR_NOW	DL_NOW
12028
#        else
12029
#          define LT_DLLAZY_OR_NOW	0
12030
#        endif
12031
#      endif
12032
#    endif
12033
#  endif
12034
#endif
12035
12036
#ifdef __cplusplus
12037
extern "C" void exit (int);
12038
#endif
12039
12040
void fnord() { int i=42;}
12041
int main ()
12042
{
12043
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12044
  int status = $lt_dlunknown;
12045
12046
  if (self)
12047
    {
12048
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12049
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12050
      /* dlclose (self); */
12051
    }
12052
  else
12053
    puts (dlerror ());
12054
12055
    exit (status);
12056
}
12057
_LT_EOF
12058
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059
  (eval $ac_link) 2>&5
12060
  ac_status=$?
12061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12063
    (./conftest; exit; ) >&5 2>/dev/null
12064
    lt_status=$?
12065
    case x$lt_status in
12066
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12067
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12068
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12069
    esac
12070
  else :
12071
    # compilation failed
12072
    lt_cv_dlopen_self=no
12073
  fi
12074
fi
12075
rm -fr conftest*
12076
12077
12078
fi
12079
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12080
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12081
12082
    if test "x$lt_cv_dlopen_self" = xyes; then
12083
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12084
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12085
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12086
if test "${lt_cv_dlopen_self_static+set}" = set; then
12087
  echo $ECHO_N "(cached) $ECHO_C" >&6
12088
else
12089
  	  if test "$cross_compiling" = yes; then :
12090
  lt_cv_dlopen_self_static=cross
12091
else
12092
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12093
  lt_status=$lt_dlunknown
12094
  cat > conftest.$ac_ext <<_LT_EOF
12095
#line 12095 "configure"
12096
#include "confdefs.h"
12097
12098
#if HAVE_DLFCN_H
12099
#include <dlfcn.h>
12100
#endif
12101
12102
#include <stdio.h>
12103
12104
#ifdef RTLD_GLOBAL
12105
#  define LT_DLGLOBAL		RTLD_GLOBAL
12106
#else
12107
#  ifdef DL_GLOBAL
12108
#    define LT_DLGLOBAL		DL_GLOBAL
12109
#  else
12110
#    define LT_DLGLOBAL		0
12111
#  endif
12112
#endif
12113
12114
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12115
   find out it does not work in some platform. */
12116
#ifndef LT_DLLAZY_OR_NOW
12117
#  ifdef RTLD_LAZY
12118
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12119
#  else
12120
#    ifdef DL_LAZY
12121
#      define LT_DLLAZY_OR_NOW		DL_LAZY
12122
#    else
12123
#      ifdef RTLD_NOW
12124
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12125
#      else
12126
#        ifdef DL_NOW
12127
#          define LT_DLLAZY_OR_NOW	DL_NOW
12128
#        else
12129
#          define LT_DLLAZY_OR_NOW	0
12130
#        endif
12131
#      endif
12132
#    endif
12133
#  endif
12134
#endif
12135
12136
#ifdef __cplusplus
12137
extern "C" void exit (int);
12138
#endif
12139
12140
void fnord() { int i=42;}
12141
int main ()
12142
{
12143
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12144
  int status = $lt_dlunknown;
12145
12146
  if (self)
12147
    {
12148
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12149
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12150
      /* dlclose (self); */
12151
    }
12152
  else
12153
    puts (dlerror ());
12154
12155
    exit (status);
12156
}
12157
_LT_EOF
12158
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12159
  (eval $ac_link) 2>&5
12160
  ac_status=$?
12161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12163
    (./conftest; exit; ) >&5 2>/dev/null
12164
    lt_status=$?
12165
    case x$lt_status in
12166
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12167
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12168
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12169
    esac
12170
  else :
12171
    # compilation failed
12172
    lt_cv_dlopen_self_static=no
12173
  fi
12174
fi
12175
rm -fr conftest*
12176
12177
12178
fi
12179
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12180
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12181
    fi
12182
12183
    CPPFLAGS="$save_CPPFLAGS"
12184
    LDFLAGS="$save_LDFLAGS"
12185
    LIBS="$save_LIBS"
12186
    ;;
12187
  esac
12188
12189
  case $lt_cv_dlopen_self in
12190
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12191
  *) enable_dlopen_self=unknown ;;
12192
  esac
12193
12194
  case $lt_cv_dlopen_self_static in
12195
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12196
  *) enable_dlopen_self_static=unknown ;;
12197
  esac
12198
fi
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
striplib=
12217
old_striplib=
12218
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12219
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12220
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12221
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12222
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12223
  { echo "$as_me:$LINENO: result: yes" >&5
12224
echo "${ECHO_T}yes" >&6; }
12225
else
12226
# FIXME - insert some real tests, host_os isn't really good enough
12227
  case $host_os in
12228
  darwin*)
12229
    if test -n "$STRIP" ; then
12230
      striplib="$STRIP -x"
12231
      old_striplib="$STRIP -S"
12232
      { echo "$as_me:$LINENO: result: yes" >&5
12233
echo "${ECHO_T}yes" >&6; }
12234
    else
12235
      { echo "$as_me:$LINENO: result: no" >&5
12236
echo "${ECHO_T}no" >&6; }
12237
    fi
12238
    ;;
12239
  *)
12240
    { echo "$as_me:$LINENO: result: no" >&5
12241
echo "${ECHO_T}no" >&6; }
12242
    ;;
12243
  esac
12244
fi
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
  # Report which library types will actually be built
12258
  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12259
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12260
  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12261
echo "${ECHO_T}$can_build_shared" >&6; }
12262
12263
  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12264
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12265
  test "$can_build_shared" = "no" && enable_shared=no
12266
12267
  # On AIX, shared libraries and static libraries use the same namespace, and
12268
  # are all built from PIC.
12269
  case $host_os in
12270
  aix3*)
12271
    test "$enable_shared" = yes && enable_static=no
12272
    if test -n "$RANLIB"; then
12273
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12274
      postinstall_cmds='$RANLIB $lib'
12275
    fi
12276
    ;;
12277
12278
  aix[4-9]*)
12279
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12280
      test "$enable_shared" = yes && enable_static=no
12281
    fi
12282
    ;;
12283
  esac
12284
  { echo "$as_me:$LINENO: result: $enable_shared" >&5
12285
echo "${ECHO_T}$enable_shared" >&6; }
12286
12287
  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12288
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12289
  # Make sure either enable_shared or enable_static is yes.
12290
  test "$enable_shared" = yes || enable_static=yes
12291
  { echo "$as_me:$LINENO: result: $enable_static" >&5
12292
echo "${ECHO_T}$enable_static" >&6; }
12293
12294
12295
12296
12297
fi
12298
ac_ext=c
12299
ac_cpp='$CPP $CPPFLAGS'
12300
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12301
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12302
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12303
12304
CC="$lt_save_CC"
12305
12306
12307
ac_ext=cpp
12308
ac_cpp='$CXXCPP $CPPFLAGS'
12309
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12312
12313
archive_cmds_need_lc_CXX=no
12314
allow_undefined_flag_CXX=
12315
always_export_symbols_CXX=no
12316
archive_expsym_cmds_CXX=
12317
compiler_needs_object_CXX=no
12318
export_dynamic_flag_spec_CXX=
12319
hardcode_direct_CXX=no
12320
hardcode_direct_absolute_CXX=no
12321
hardcode_libdir_flag_spec_CXX=
12322
hardcode_libdir_flag_spec_ld_CXX=
12323
hardcode_libdir_separator_CXX=
12324
hardcode_minus_L_CXX=no
12325
hardcode_shlibpath_var_CXX=unsupported
12326
hardcode_automatic_CXX=no
12327
inherit_rpath_CXX=no
12328
module_cmds_CXX=
12329
module_expsym_cmds_CXX=
12330
link_all_deplibs_CXX=unknown
12331
old_archive_cmds_CXX=$old_archive_cmds
12332
no_undefined_flag_CXX=
12333
whole_archive_flag_spec_CXX=
12334
enable_shared_with_static_runtimes_CXX=no
12335
12336
# Source file extension for C++ test sources.
12337
ac_ext=cpp
12338
12339
# Object file extension for compiled C++ test sources.
12340
objext=o
12341
objext_CXX=$objext
12342
12343
# No sense in running all these tests if we already determined that
12344
# the CXX compiler isn't working.  Some variables (like enable_shared)
12345
# are currently assumed to apply to all compilers on this platform,
12346
# and will be corrupted by setting them based on a non-working compiler.
12347
if test "$_lt_caught_CXX_error" != yes; then
12348
  # Code to be used in simple compile tests
12349
  lt_simple_compile_test_code="int some_variable = 0;"
12350
12351
  # Code to be used in simple link tests
12352
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12353
12354
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12355
12356
12357
12358
12359
12360
12361
# If no C compiler was specified, use CC.
12362
LTCC=${LTCC-"$CC"}
12363
12364
# If no C compiler flags were specified, use CFLAGS.
12365
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12366
12367
# Allow CC to be a program name with arguments.
12368
compiler=$CC
12369
12370
12371
  # save warnings/boilerplate of simple test code
12372
  ac_outfile=conftest.$ac_objext
12373
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12374
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12375
_lt_compiler_boilerplate=`cat conftest.err`
12376
$RM -r conftest*
12377
12378
  ac_outfile=conftest.$ac_objext
12379
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12380
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12381
_lt_linker_boilerplate=`cat conftest.err`
12382
$RM -r conftest*
12383
12384
12385
  # Allow CC to be a program name with arguments.
12386
  lt_save_CC=$CC
12387
  lt_save_LD=$LD
12388
  lt_save_GCC=$GCC
12389
  GCC=$GXX
12390
  lt_save_with_gnu_ld=$with_gnu_ld
12391
  lt_save_path_LD=$lt_cv_path_LD
12392
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12393
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12394
  else
12395
    $as_unset lt_cv_prog_gnu_ld
12396
  fi
12397
  if test -n "${lt_cv_path_LDCXX+set}"; then
12398
    lt_cv_path_LD=$lt_cv_path_LDCXX
12399
  else
12400
    $as_unset lt_cv_path_LD
12401
  fi
12402
  test -z "${LDCXX+set}" || LD=$LDCXX
12403
  CC=${CXX-"c++"}
12404
  compiler=$CC
12405
  compiler_CXX=$CC
12406
  for cc_temp in $compiler""; do
12407
  case $cc_temp in
12408
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12409
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12410
    \-*) ;;
12411
    *) break;;
12412
  esac
12413
done
12414
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12415
12416
12417
  if test -n "$compiler"; then
12418
    # We don't want -fno-exception when compiling C++ code, so set the
12419
    # no_builtin_flag separately
12420
    if test "$GXX" = yes; then
12421
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12422
    else
12423
      lt_prog_compiler_no_builtin_flag_CXX=
12424
    fi
12425
12426
    if test "$GXX" = yes; then
12427
      # Set up default GNU C++ configuration
12428
12429
12430
12431
# Check whether --with-gnu-ld was given.
12432
if test "${with_gnu_ld+set}" = set; then
12433
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12434
else
12435
  with_gnu_ld=no
12436
fi
12437
12438
ac_prog=ld
12439
if test "$GCC" = yes; then
12440
  # Check if gcc -print-prog-name=ld gives a path.
12441
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12442
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12443
  case $host in
12444
  *-*-mingw*)
12445
    # gcc leaves a trailing carriage return which upsets mingw
12446
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12447
  *)
12448
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12449
  esac
12450
  case $ac_prog in
12451
    # Accept absolute paths.
12452
    [\\/]* | ?:[\\/]*)
12453
      re_direlt='/[^/][^/]*/\.\./'
12454
      # Canonicalize the pathname of ld
12455
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12456
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12457
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12458
      done
12459
      test -z "$LD" && LD="$ac_prog"
12460
      ;;
12461
  "")
12462
    # If it fails, then pretend we aren't using GCC.
12463
    ac_prog=ld
12464
    ;;
12465
  *)
12466
    # If it is relative, then search for the first ld in PATH.
12467
    with_gnu_ld=unknown
12468
    ;;
12469
  esac
12470
elif test "$with_gnu_ld" = yes; then
12471
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12472
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12473
else
12474
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12475
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12476
fi
12477
if test "${lt_cv_path_LD+set}" = set; then
12478
  echo $ECHO_N "(cached) $ECHO_C" >&6
12479
else
12480
  if test -z "$LD"; then
12481
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12482
  for ac_dir in $PATH; do
12483
    IFS="$lt_save_ifs"
12484
    test -z "$ac_dir" && ac_dir=.
12485
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12486
      lt_cv_path_LD="$ac_dir/$ac_prog"
12487
      # Check to see if the program is GNU ld.  I'd rather use --version,
12488
      # but apparently some variants of GNU ld only accept -v.
12489
      # Break only if it was the GNU/non-GNU ld that we prefer.
12490
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12491
      *GNU* | *'with BFD'*)
12492
	test "$with_gnu_ld" != no && break
12493
	;;
12494
      *)
12495
	test "$with_gnu_ld" != yes && break
12496
	;;
12497
      esac
12498
    fi
12499
  done
12500
  IFS="$lt_save_ifs"
12501
else
12502
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12503
fi
12504
fi
12505
12506
LD="$lt_cv_path_LD"
12507
if test -n "$LD"; then
12508
  { echo "$as_me:$LINENO: result: $LD" >&5
12509
echo "${ECHO_T}$LD" >&6; }
12510
else
12511
  { echo "$as_me:$LINENO: result: no" >&5
12512
echo "${ECHO_T}no" >&6; }
12513
fi
12514
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12515
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12516
   { (exit 1); exit 1; }; }
12517
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12518
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12519
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12520
  echo $ECHO_N "(cached) $ECHO_C" >&6
12521
else
12522
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12523
case `$LD -v 2>&1 </dev/null` in
12524
*GNU* | *'with BFD'*)
12525
  lt_cv_prog_gnu_ld=yes
12526
  ;;
12527
*)
12528
  lt_cv_prog_gnu_ld=no
12529
  ;;
12530
esac
12531
fi
12532
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12533
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12534
with_gnu_ld=$lt_cv_prog_gnu_ld
12535
12536
12537
12538
12539
12540
12541
12542
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12543
      # archiving commands below assume that GNU ld is being used.
12544
      if test "$with_gnu_ld" = yes; then
12545
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12546
        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12547
12548
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12549
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12550
12551
        # If archive_cmds runs LD, not CC, wlarc should be empty
12552
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12553
        #     investigate it a little bit more. (MM)
12554
        wlarc='${wl}'
12555
12556
        # ancient GNU ld didn't support --whole-archive et. al.
12557
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12558
	  $GREP 'no-whole-archive' > /dev/null; then
12559
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12560
        else
12561
          whole_archive_flag_spec_CXX=
12562
        fi
12563
      else
12564
        with_gnu_ld=no
12565
        wlarc=
12566
12567
        # A generic and very simple default shared library creation
12568
        # command for GNU C++ for the case where it uses the native
12569
        # linker, instead of GNU ld.  If possible, this setting should
12570
        # overridden to take advantage of the native linker features on
12571
        # the platform it is being used on.
12572
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12573
      fi
12574
12575
      # Commands to make compiler produce verbose output that lists
12576
      # what "hidden" libraries, object files and flags are used when
12577
      # linking a shared library.
12578
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12579
12580
    else
12581
      GXX=no
12582
      with_gnu_ld=no
12583
      wlarc=
12584
    fi
12585
12586
    # PORTME: fill in a description of your system's C++ link characteristics
12587
    { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12588
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12589
    ld_shlibs_CXX=yes
12590
    case $host_os in
12591
      aix3*)
12592
        # FIXME: insert proper C++ library support
12593
        ld_shlibs_CXX=no
12594
        ;;
12595
      aix[4-9]*)
12596
        if test "$host_cpu" = ia64; then
12597
          # On IA64, the linker does run time linking by default, so we don't
12598
          # have to do anything special.
12599
          aix_use_runtimelinking=no
12600
          exp_sym_flag='-Bexport'
12601
          no_entry_flag=""
12602
        else
12603
          aix_use_runtimelinking=no
12604
12605
          # Test if we are trying to use run time linking or normal
12606
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12607
          # need to do runtime linking.
12608
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12609
	    for ld_flag in $LDFLAGS; do
12610
	      case $ld_flag in
12611
	      *-brtl*)
12612
	        aix_use_runtimelinking=yes
12613
	        break
12614
	        ;;
12615
	      esac
12616
	    done
12617
	    ;;
12618
          esac
12619
12620
          exp_sym_flag='-bexport'
12621
          no_entry_flag='-bnoentry'
12622
        fi
12623
12624
        # When large executables or shared objects are built, AIX ld can
12625
        # have problems creating the table of contents.  If linking a library
12626
        # or program results in "error TOC overflow" add -mminimal-toc to
12627
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12628
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12629
12630
        archive_cmds_CXX=''
12631
        hardcode_direct_CXX=yes
12632
        hardcode_direct_absolute_CXX=yes
12633
        hardcode_libdir_separator_CXX=':'
12634
        link_all_deplibs_CXX=yes
12635
        file_list_spec_CXX='${wl}-f,'
12636
12637
        if test "$GXX" = yes; then
12638
          case $host_os in aix4.[012]|aix4.[012].*)
12639
          # We only want to do this on AIX 4.2 and lower, the check
12640
          # below for broken collect2 doesn't work under 4.3+
12641
	  collect2name=`${CC} -print-prog-name=collect2`
12642
	  if test -f "$collect2name" &&
12643
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12644
	  then
12645
	    # We have reworked collect2
12646
	    :
12647
	  else
12648
	    # We have old collect2
12649
	    hardcode_direct_CXX=unsupported
12650
	    # It fails to find uninstalled libraries when the uninstalled
12651
	    # path is not listed in the libpath.  Setting hardcode_minus_L
12652
	    # to unsupported forces relinking
12653
	    hardcode_minus_L_CXX=yes
12654
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12655
	    hardcode_libdir_separator_CXX=
12656
	  fi
12657
          esac
12658
          shared_flag='-shared'
12659
	  if test "$aix_use_runtimelinking" = yes; then
12660
	    shared_flag="$shared_flag "'${wl}-G'
12661
	  fi
12662
        else
12663
          # not using gcc
12664
          if test "$host_cpu" = ia64; then
12665
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12666
	  # chokes on -Wl,-G. The following line is correct:
12667
	  shared_flag='-G'
12668
          else
12669
	    if test "$aix_use_runtimelinking" = yes; then
12670
	      shared_flag='${wl}-G'
12671
	    else
12672
	      shared_flag='${wl}-bM:SRE'
12673
	    fi
12674
          fi
12675
        fi
12676
12677
        # It seems that -bexpall does not export symbols beginning with
12678
        # underscore (_), so it is better to generate a list of symbols to
12679
	# export.
12680
        always_export_symbols_CXX=yes
12681
        if test "$aix_use_runtimelinking" = yes; then
12682
          # Warning - without using the other runtime loading flags (-brtl),
12683
          # -berok will link without error, but may produce a broken library.
12684
          allow_undefined_flag_CXX='-berok'
12685
          # Determine the default libpath from the value encoded in an empty
12686
          # executable.
12687
          cat >conftest.$ac_ext <<_ACEOF
12688
/* confdefs.h.  */
12689
_ACEOF
12690
cat confdefs.h >>conftest.$ac_ext
12691
cat >>conftest.$ac_ext <<_ACEOF
12692
/* end confdefs.h.  */
12693
12694
int
12695
main ()
12696
{
12697
12698
  ;
12699
  return 0;
12700
}
12701
_ACEOF
12702
rm -f conftest.$ac_objext conftest$ac_exeext
12703
if { (ac_try="$ac_link"
12704
case "(($ac_try" in
12705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706
  *) ac_try_echo=$ac_try;;
12707
esac
12708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709
  (eval "$ac_link") 2>conftest.er1
12710
  ac_status=$?
12711
  grep -v '^ *+' conftest.er1 >conftest.err
12712
  rm -f conftest.er1
12713
  cat conftest.err >&5
12714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715
  (exit $ac_status); } && {
12716
	 test -z "$ac_cxx_werror_flag" ||
12717
	 test ! -s conftest.err
12718
       } && test -s conftest$ac_exeext &&
12719
       $as_test_x conftest$ac_exeext; then
12720
12721
lt_aix_libpath_sed='
12722
    /Import File Strings/,/^$/ {
12723
	/^0/ {
12724
	    s/^0  *\(.*\)$/\1/
12725
	    p
12726
	}
12727
    }'
12728
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12729
# Check for a 64-bit object if we didn't find anything.
12730
if test -z "$aix_libpath"; then
12731
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12732
fi
12733
else
12734
  echo "$as_me: failed program was:" >&5
12735
sed 's/^/| /' conftest.$ac_ext >&5
12736
12737
12738
fi
12739
12740
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12741
      conftest$ac_exeext conftest.$ac_ext
12742
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12743
12744
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12745
12746
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12747
        else
12748
          if test "$host_cpu" = ia64; then
12749
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12750
	    allow_undefined_flag_CXX="-z nodefs"
12751
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12752
          else
12753
	    # Determine the default libpath from the value encoded in an
12754
	    # empty executable.
12755
	    cat >conftest.$ac_ext <<_ACEOF
12756
/* confdefs.h.  */
12757
_ACEOF
12758
cat confdefs.h >>conftest.$ac_ext
12759
cat >>conftest.$ac_ext <<_ACEOF
12760
/* end confdefs.h.  */
12761
12762
int
12763
main ()
12764
{
12765
12766
  ;
12767
  return 0;
12768
}
12769
_ACEOF
12770
rm -f conftest.$ac_objext conftest$ac_exeext
12771
if { (ac_try="$ac_link"
12772
case "(($ac_try" in
12773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774
  *) ac_try_echo=$ac_try;;
12775
esac
12776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777
  (eval "$ac_link") 2>conftest.er1
12778
  ac_status=$?
12779
  grep -v '^ *+' conftest.er1 >conftest.err
12780
  rm -f conftest.er1
12781
  cat conftest.err >&5
12782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783
  (exit $ac_status); } && {
12784
	 test -z "$ac_cxx_werror_flag" ||
12785
	 test ! -s conftest.err
12786
       } && test -s conftest$ac_exeext &&
12787
       $as_test_x conftest$ac_exeext; then
12788
12789
lt_aix_libpath_sed='
12790
    /Import File Strings/,/^$/ {
12791
	/^0/ {
12792
	    s/^0  *\(.*\)$/\1/
12793
	    p
12794
	}
12795
    }'
12796
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12797
# Check for a 64-bit object if we didn't find anything.
12798
if test -z "$aix_libpath"; then
12799
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12800
fi
12801
else
12802
  echo "$as_me: failed program was:" >&5
12803
sed 's/^/| /' conftest.$ac_ext >&5
12804
12805
12806
fi
12807
12808
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12809
      conftest$ac_exeext conftest.$ac_ext
12810
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12811
12812
	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12813
	    # Warning - without using the other run time loading flags,
12814
	    # -berok will link without error, but may produce a broken library.
12815
	    no_undefined_flag_CXX=' ${wl}-bernotok'
12816
	    allow_undefined_flag_CXX=' ${wl}-berok'
12817
	    # Exported symbols can be pulled into shared objects from archives
12818
	    whole_archive_flag_spec_CXX='$convenience'
12819
	    archive_cmds_need_lc_CXX=yes
12820
	    # This is similar to how AIX traditionally builds its shared
12821
	    # libraries.
12822
	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12823
          fi
12824
        fi
12825
        ;;
12826
12827
      beos*)
12828
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12829
	  allow_undefined_flag_CXX=unsupported
12830
	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12831
	  # support --undefined.  This deserves some investigation.  FIXME
12832
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833
	else
12834
	  ld_shlibs_CXX=no
12835
	fi
12836
	;;
12837
12838
      chorus*)
12839
        case $cc_basename in
12840
          *)
12841
	  # FIXME: insert proper C++ library support
12842
	  ld_shlibs_CXX=no
12843
	  ;;
12844
        esac
12845
        ;;
12846
12847
      cygwin* | mingw* | pw32*)
12848
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12849
        # as there is no search path for DLLs.
12850
        hardcode_libdir_flag_spec_CXX='-L$libdir'
12851
        allow_undefined_flag_CXX=unsupported
12852
        always_export_symbols_CXX=no
12853
        enable_shared_with_static_runtimes_CXX=yes
12854
12855
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12856
          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12857
          # If the export-symbols file already is a .def file (1st line
12858
          # is EXPORTS), use it as is; otherwise, prepend...
12859
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12860
	    cp $export_symbols $output_objdir/$soname.def;
12861
          else
12862
	    echo EXPORTS > $output_objdir/$soname.def;
12863
	    cat $export_symbols >> $output_objdir/$soname.def;
12864
          fi~
12865
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12866
        else
12867
          ld_shlibs_CXX=no
12868
        fi
12869
        ;;
12870
      darwin* | rhapsody*)
12871
12872
12873
  archive_cmds_need_lc_CXX=no
12874
  hardcode_direct_CXX=no
12875
  hardcode_automatic_CXX=yes
12876
  hardcode_shlibpath_var_CXX=unsupported
12877
  whole_archive_flag_spec_CXX=''
12878
  link_all_deplibs_CXX=yes
12879
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12880
  if test "$GCC" = "yes"; then
12881
    output_verbose_link_cmd=echo
12882
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12883
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12884
    archive_expsym_cmds_CXX="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}"
12885
    module_expsym_cmds_CXX="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}"
12886
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12887
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12888
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12889
    fi
12890
12891
  else
12892
  ld_shlibs_CXX=no
12893
  fi
12894
12895
	;;
12896
12897
      dgux*)
12898
        case $cc_basename in
12899
          ec++*)
12900
	    # FIXME: insert proper C++ library support
12901
	    ld_shlibs_CXX=no
12902
	    ;;
12903
          ghcx*)
12904
	    # Green Hills C++ Compiler
12905
	    # FIXME: insert proper C++ library support
12906
	    ld_shlibs_CXX=no
12907
	    ;;
12908
          *)
12909
	    # FIXME: insert proper C++ library support
12910
	    ld_shlibs_CXX=no
12911
	    ;;
12912
        esac
12913
        ;;
12914
12915
      freebsd[12]*)
12916
        # C++ shared libraries reported to be fairly broken before
12917
	# switch to ELF
12918
        ld_shlibs_CXX=no
12919
        ;;
12920
12921
      freebsd-elf*)
12922
        archive_cmds_need_lc_CXX=no
12923
        ;;
12924
12925
      freebsd* | dragonfly*)
12926
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12927
        # conventions
12928
        ld_shlibs_CXX=yes
12929
        ;;
12930
12931
      gnu*)
12932
        ;;
12933
12934
      hpux9*)
12935
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12936
        hardcode_libdir_separator_CXX=:
12937
        export_dynamic_flag_spec_CXX='${wl}-E'
12938
        hardcode_direct_CXX=yes
12939
        hardcode_minus_L_CXX=yes # Not in the search PATH,
12940
				             # but as the default
12941
				             # location of the library.
12942
12943
        case $cc_basename in
12944
          CC*)
12945
            # FIXME: insert proper C++ library support
12946
            ld_shlibs_CXX=no
12947
            ;;
12948
          aCC*)
12949
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12950
            # Commands to make compiler produce verbose output that lists
12951
            # what "hidden" libraries, object files and flags are used when
12952
            # linking a shared library.
12953
            #
12954
            # There doesn't appear to be a way to prevent this compiler from
12955
            # explicitly linking system object files so we need to strip them
12956
            # from the output so that they don't get included in the library
12957
            # dependencies.
12958
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12959
            ;;
12960
          *)
12961
            if test "$GXX" = yes; then
12962
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12963
            else
12964
              # FIXME: insert proper C++ library support
12965
              ld_shlibs_CXX=no
12966
            fi
12967
            ;;
12968
        esac
12969
        ;;
12970
12971
      hpux10*|hpux11*)
12972
        if test $with_gnu_ld = no; then
12973
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12974
	  hardcode_libdir_separator_CXX=:
12975
12976
          case $host_cpu in
12977
            hppa*64*|ia64*)
12978
              ;;
12979
            *)
12980
	      export_dynamic_flag_spec_CXX='${wl}-E'
12981
              ;;
12982
          esac
12983
        fi
12984
        case $host_cpu in
12985
          hppa*64*|ia64*)
12986
            hardcode_direct_CXX=no
12987
            hardcode_shlibpath_var_CXX=no
12988
            ;;
12989
          *)
12990
            hardcode_direct_CXX=yes
12991
            hardcode_direct_absolute_CXX=yes
12992
            hardcode_minus_L_CXX=yes # Not in the search PATH,
12993
					         # but as the default
12994
					         # location of the library.
12995
            ;;
12996
        esac
12997
12998
        case $cc_basename in
12999
          CC*)
13000
	    # FIXME: insert proper C++ library support
13001
	    ld_shlibs_CXX=no
13002
	    ;;
13003
          aCC*)
13004
	    case $host_cpu in
13005
	      hppa*64*)
13006
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13007
	        ;;
13008
	      ia64*)
13009
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13010
	        ;;
13011
	      *)
13012
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13013
	        ;;
13014
	    esac
13015
	    # Commands to make compiler produce verbose output that lists
13016
	    # what "hidden" libraries, object files and flags are used when
13017
	    # linking a shared library.
13018
	    #
13019
	    # There doesn't appear to be a way to prevent this compiler from
13020
	    # explicitly linking system object files so we need to strip them
13021
	    # from the output so that they don't get included in the library
13022
	    # dependencies.
13023
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13024
	    ;;
13025
          *)
13026
	    if test "$GXX" = yes; then
13027
	      if test $with_gnu_ld = no; then
13028
	        case $host_cpu in
13029
	          hppa*64*)
13030
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13031
	            ;;
13032
	          ia64*)
13033
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13034
	            ;;
13035
	          *)
13036
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13037
	            ;;
13038
	        esac
13039
	      fi
13040
	    else
13041
	      # FIXME: insert proper C++ library support
13042
	      ld_shlibs_CXX=no
13043
	    fi
13044
	    ;;
13045
        esac
13046
        ;;
13047
13048
      interix[3-9]*)
13049
	hardcode_direct_CXX=no
13050
	hardcode_shlibpath_var_CXX=no
13051
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13052
	export_dynamic_flag_spec_CXX='${wl}-E'
13053
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13054
	# Instead, shared libraries are loaded at an image base (0x10000000 by
13055
	# default) and relocated if they conflict, which is a slow very memory
13056
	# consuming and fragmenting process.  To avoid this, we pick a random,
13057
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13058
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13059
	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13060
	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13061
	;;
13062
      irix5* | irix6*)
13063
        case $cc_basename in
13064
          CC*)
13065
	    # SGI C++
13066
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13067
13068
	    # Archives containing C++ object files must be created using
13069
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13070
	    # necessary to make sure instantiated templates are included
13071
	    # in the archive.
13072
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13073
	    ;;
13074
          *)
13075
	    if test "$GXX" = yes; then
13076
	      if test "$with_gnu_ld" = no; then
13077
	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13078
	      else
13079
	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13080
	      fi
13081
	    fi
13082
	    link_all_deplibs_CXX=yes
13083
	    ;;
13084
        esac
13085
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13086
        hardcode_libdir_separator_CXX=:
13087
        inherit_rpath_CXX=yes
13088
        ;;
13089
13090
      linux* | k*bsd*-gnu)
13091
        case $cc_basename in
13092
          KCC*)
13093
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13094
13095
	    # KCC will only create a shared library if the output file
13096
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13097
	    # to its proper name (with version) after linking.
13098
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13099
	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13100
	    # Commands to make compiler produce verbose output that lists
13101
	    # what "hidden" libraries, object files and flags are used when
13102
	    # linking a shared library.
13103
	    #
13104
	    # There doesn't appear to be a way to prevent this compiler from
13105
	    # explicitly linking system object files so we need to strip them
13106
	    # from the output so that they don't get included in the library
13107
	    # dependencies.
13108
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13109
13110
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13111
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13112
13113
	    # Archives containing C++ object files must be created using
13114
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13115
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13116
	    ;;
13117
	  icpc* | ecpc* )
13118
	    # Intel C++
13119
	    with_gnu_ld=yes
13120
	    # version 8.0 and above of icpc choke on multiply defined symbols
13121
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13122
	    # earlier do not add the objects themselves.
13123
	    case `$CC -V 2>&1` in
13124
	      *"Version 7."*)
13125
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13126
		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13127
		;;
13128
	      *)  # Version 8.0 or newer
13129
	        tmp_idyn=
13130
	        case $host_cpu in
13131
		  ia64*) tmp_idyn=' -i_dynamic';;
13132
		esac
13133
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13134
		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13135
		;;
13136
	    esac
13137
	    archive_cmds_need_lc_CXX=no
13138
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13139
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13140
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13141
	    ;;
13142
          pgCC* | pgcpp*)
13143
            # Portland Group C++ compiler
13144
	    case `$CC -V` in
13145
	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13146
	      prelink_cmds_CXX='tpldir=Template.dir~
13147
		rm -rf $tpldir~
13148
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13149
		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13150
	      old_archive_cmds_CXX='tpldir=Template.dir~
13151
		rm -rf $tpldir~
13152
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13153
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13154
		$RANLIB $oldlib'
13155
	      archive_cmds_CXX='tpldir=Template.dir~
13156
		rm -rf $tpldir~
13157
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13158
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13159
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13160
		rm -rf $tpldir~
13161
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13162
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13163
	      ;;
13164
	    *) # Version 6 will use weak symbols
13165
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13166
	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13167
	      ;;
13168
	    esac
13169
13170
	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13171
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13172
	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13173
            ;;
13174
	  cxx*)
13175
	    # Compaq C++
13176
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13177
	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13178
13179
	    runpath_var=LD_RUN_PATH
13180
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13181
	    hardcode_libdir_separator_CXX=:
13182
13183
	    # Commands to make compiler produce verbose output that lists
13184
	    # what "hidden" libraries, object files and flags are used when
13185
	    # linking a shared library.
13186
	    #
13187
	    # There doesn't appear to be a way to prevent this compiler from
13188
	    # explicitly linking system object files so we need to strip them
13189
	    # from the output so that they don't get included in the library
13190
	    # dependencies.
13191
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13192
	    ;;
13193
	  xl*)
13194
	    # IBM XL 8.0 on PPC, with GNU ld
13195
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13196
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13197
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13198
	    if test "x$supports_anon_versioning" = xyes; then
13199
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13200
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13201
		echo "local: *; };" >> $output_objdir/$libname.ver~
13202
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13203
	    fi
13204
	    ;;
13205
	  *)
13206
	    case `$CC -V 2>&1 | sed 5q` in
13207
	    *Sun\ C*)
13208
	      # Sun C++ 5.9
13209
	      no_undefined_flag_CXX=' -zdefs'
13210
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13211
	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13212
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13213
	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13214
	      compiler_needs_object_CXX=yes
13215
13216
	      # Not sure whether something based on
13217
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13218
	      # would be better.
13219
	      output_verbose_link_cmd='echo'
13220
13221
	      # Archives containing C++ object files must be created using
13222
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13223
	      # necessary to make sure instantiated templates are included
13224
	      # in the archive.
13225
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13226
	      ;;
13227
	    esac
13228
	    ;;
13229
	esac
13230
	;;
13231
13232
      lynxos*)
13233
        # FIXME: insert proper C++ library support
13234
	ld_shlibs_CXX=no
13235
	;;
13236
13237
      m88k*)
13238
        # FIXME: insert proper C++ library support
13239
        ld_shlibs_CXX=no
13240
	;;
13241
13242
      mvs*)
13243
        case $cc_basename in
13244
          cxx*)
13245
	    # FIXME: insert proper C++ library support
13246
	    ld_shlibs_CXX=no
13247
	    ;;
13248
	  *)
13249
	    # FIXME: insert proper C++ library support
13250
	    ld_shlibs_CXX=no
13251
	    ;;
13252
	esac
13253
	;;
13254
13255
      netbsd*)
13256
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13257
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13258
	  wlarc=
13259
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13260
	  hardcode_direct_CXX=yes
13261
	  hardcode_shlibpath_var_CXX=no
13262
	fi
13263
	# Workaround some broken pre-1.5 toolchains
13264
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13265
	;;
13266
13267
      *nto* | *qnx*)
13268
        ld_shlibs_CXX=yes
13269
	;;
13270
13271
      openbsd2*)
13272
        # C++ shared libraries are fairly broken
13273
	ld_shlibs_CXX=no
13274
	;;
13275
13276
      openbsd*)
13277
	if test -f /usr/libexec/ld.so; then
13278
	  hardcode_direct_CXX=yes
13279
	  hardcode_shlibpath_var_CXX=no
13280
	  hardcode_direct_absolute_CXX=yes
13281
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13282
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13283
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13284
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13285
	    export_dynamic_flag_spec_CXX='${wl}-E'
13286
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13287
	  fi
13288
	  output_verbose_link_cmd=echo
13289
	else
13290
	  ld_shlibs_CXX=no
13291
	fi
13292
	;;
13293
13294
      osf3* | osf4* | osf5*)
13295
        case $cc_basename in
13296
          KCC*)
13297
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13298
13299
	    # KCC will only create a shared library if the output file
13300
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13301
	    # to its proper name (with version) after linking.
13302
	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13303
13304
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13305
	    hardcode_libdir_separator_CXX=:
13306
13307
	    # Archives containing C++ object files must be created using
13308
	    # the KAI C++ compiler.
13309
	    case $host in
13310
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13311
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13312
	    esac
13313
	    ;;
13314
          RCC*)
13315
	    # Rational C++ 2.4.1
13316
	    # FIXME: insert proper C++ library support
13317
	    ld_shlibs_CXX=no
13318
	    ;;
13319
          cxx*)
13320
	    case $host in
13321
	      osf3*)
13322
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13323
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13324
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13325
		;;
13326
	      *)
13327
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13328
	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13329
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13330
	          echo "-hidden">> $lib.exp~
13331
	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13332
	          $RM $lib.exp'
13333
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13334
		;;
13335
	    esac
13336
13337
	    hardcode_libdir_separator_CXX=:
13338
13339
	    # Commands to make compiler produce verbose output that lists
13340
	    # what "hidden" libraries, object files and flags are used when
13341
	    # linking a shared library.
13342
	    #
13343
	    # There doesn't appear to be a way to prevent this compiler from
13344
	    # explicitly linking system object files so we need to strip them
13345
	    # from the output so that they don't get included in the library
13346
	    # dependencies.
13347
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13348
	    ;;
13349
	  *)
13350
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13351
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13352
	      case $host in
13353
	        osf3*)
13354
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13355
		  ;;
13356
	        *)
13357
	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13358
		  ;;
13359
	      esac
13360
13361
	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13362
	      hardcode_libdir_separator_CXX=:
13363
13364
	      # Commands to make compiler produce verbose output that lists
13365
	      # what "hidden" libraries, object files and flags are used when
13366
	      # linking a shared library.
13367
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13368
13369
	    else
13370
	      # FIXME: insert proper C++ library support
13371
	      ld_shlibs_CXX=no
13372
	    fi
13373
	    ;;
13374
        esac
13375
        ;;
13376
13377
      psos*)
13378
        # FIXME: insert proper C++ library support
13379
        ld_shlibs_CXX=no
13380
        ;;
13381
13382
      sunos4*)
13383
        case $cc_basename in
13384
          CC*)
13385
	    # Sun C++ 4.x
13386
	    # FIXME: insert proper C++ library support
13387
	    ld_shlibs_CXX=no
13388
	    ;;
13389
          lcc*)
13390
	    # Lucid
13391
	    # FIXME: insert proper C++ library support
13392
	    ld_shlibs_CXX=no
13393
	    ;;
13394
          *)
13395
	    # FIXME: insert proper C++ library support
13396
	    ld_shlibs_CXX=no
13397
	    ;;
13398
        esac
13399
        ;;
13400
13401
      solaris*)
13402
        case $cc_basename in
13403
          CC*)
13404
	    # Sun C++ 4.2, 5.x and Centerline C++
13405
            archive_cmds_need_lc_CXX=yes
13406
	    no_undefined_flag_CXX=' -zdefs'
13407
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13408
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13409
	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13410
13411
	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13412
	    hardcode_shlibpath_var_CXX=no
13413
	    case $host_os in
13414
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13415
	      *)
13416
		# The compiler driver will combine and reorder linker options,
13417
		# but understands `-z linker_flag'.
13418
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13419
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13420
	        ;;
13421
	    esac
13422
	    link_all_deplibs_CXX=yes
13423
13424
	    output_verbose_link_cmd='echo'
13425
13426
	    # Archives containing C++ object files must be created using
13427
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13428
	    # necessary to make sure instantiated templates are included
13429
	    # in the archive.
13430
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13431
	    ;;
13432
          gcx*)
13433
	    # Green Hills C++ Compiler
13434
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13435
13436
	    # The C++ compiler must be used to create the archive.
13437
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13438
	    ;;
13439
          *)
13440
	    # GNU C++ compiler with Solaris linker
13441
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13442
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13443
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13444
	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13445
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13446
		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13447
13448
	        # Commands to make compiler produce verbose output that lists
13449
	        # what "hidden" libraries, object files and flags are used when
13450
	        # linking a shared library.
13451
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13452
	      else
13453
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13454
	        # platform.
13455
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13456
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13457
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13458
13459
	        # Commands to make compiler produce verbose output that lists
13460
	        # what "hidden" libraries, object files and flags are used when
13461
	        # linking a shared library.
13462
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13463
	      fi
13464
13465
	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13466
	      case $host_os in
13467
		solaris2.[0-5] | solaris2.[0-5].*) ;;
13468
		*)
13469
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13470
		  ;;
13471
	      esac
13472
	    fi
13473
	    ;;
13474
        esac
13475
        ;;
13476
13477
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13478
      no_undefined_flag_CXX='${wl}-z,text'
13479
      archive_cmds_need_lc_CXX=no
13480
      hardcode_shlibpath_var_CXX=no
13481
      runpath_var='LD_RUN_PATH'
13482
13483
      case $cc_basename in
13484
        CC*)
13485
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13486
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13487
	  ;;
13488
	*)
13489
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491
	  ;;
13492
      esac
13493
      ;;
13494
13495
      sysv5* | sco3.2v5* | sco5v6*)
13496
	# Note: We can NOT use -z defs as we might desire, because we do not
13497
	# link with -lc, and that would cause any symbols used from libc to
13498
	# always be unresolved, which means just about no library would
13499
	# ever link correctly.  If we're not using GNU ld we use -z text
13500
	# though, which does catch some bad symbols but isn't as heavy-handed
13501
	# as -z defs.
13502
	no_undefined_flag_CXX='${wl}-z,text'
13503
	allow_undefined_flag_CXX='${wl}-z,nodefs'
13504
	archive_cmds_need_lc_CXX=no
13505
	hardcode_shlibpath_var_CXX=no
13506
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13507
	hardcode_libdir_separator_CXX=':'
13508
	link_all_deplibs_CXX=yes
13509
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13510
	runpath_var='LD_RUN_PATH'
13511
13512
	case $cc_basename in
13513
          CC*)
13514
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13515
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13516
	    ;;
13517
	  *)
13518
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13519
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520
	    ;;
13521
	esac
13522
      ;;
13523
13524
      tandem*)
13525
        case $cc_basename in
13526
          NCC*)
13527
	    # NonStop-UX NCC 3.20
13528
	    # FIXME: insert proper C++ library support
13529
	    ld_shlibs_CXX=no
13530
	    ;;
13531
          *)
13532
	    # FIXME: insert proper C++ library support
13533
	    ld_shlibs_CXX=no
13534
	    ;;
13535
        esac
13536
        ;;
13537
13538
      vxworks*)
13539
        # FIXME: insert proper C++ library support
13540
        ld_shlibs_CXX=no
13541
        ;;
13542
13543
      *)
13544
        # FIXME: insert proper C++ library support
13545
        ld_shlibs_CXX=no
13546
        ;;
13547
    esac
13548
13549
    { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13550
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13551
    test "$ld_shlibs_CXX" = no && can_build_shared=no
13552
13553
    GCC_CXX="$GXX"
13554
    LD_CXX="$LD"
13555
13556
    ## CAVEAT EMPTOR:
13557
    ## There is no encapsulation within the following macros, do not change
13558
    ## the running order or otherwise move them around unless you know exactly
13559
    ## what you are doing...
13560
    # Dependencies to place before and after the object being linked:
13561
predep_objects_CXX=
13562
postdep_objects_CXX=
13563
predeps_CXX=
13564
postdeps_CXX=
13565
compiler_lib_search_path_CXX=
13566
13567
cat > conftest.$ac_ext <<_LT_EOF
13568
class Foo
13569
{
13570
public:
13571
  Foo (void) { a = 0; }
13572
private:
13573
  int a;
13574
};
13575
_LT_EOF
13576
13577
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578
  (eval $ac_compile) 2>&5
13579
  ac_status=$?
13580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581
  (exit $ac_status); }; then
13582
  # Parse the compiler output and extract the necessary
13583
  # objects, libraries and library flags.
13584
13585
  # Sentinel used to keep track of whether or not we are before
13586
  # the conftest object file.
13587
  pre_test_object_deps_done=no
13588
13589
  for p in `eval "$output_verbose_link_cmd"`; do
13590
    case $p in
13591
13592
    -L* | -R* | -l*)
13593
       # Some compilers place space between "-{L,R}" and the path.
13594
       # Remove the space.
13595
       if test $p = "-L" ||
13596
          test $p = "-R"; then
13597
	 prev=$p
13598
	 continue
13599
       else
13600
	 prev=
13601
       fi
13602
13603
       if test "$pre_test_object_deps_done" = no; then
13604
	 case $p in
13605
	 -L* | -R*)
13606
	   # Internal compiler library paths should come after those
13607
	   # provided the user.  The postdeps already come after the
13608
	   # user supplied libs so there is no need to process them.
13609
	   if test -z "$compiler_lib_search_path_CXX"; then
13610
	     compiler_lib_search_path_CXX="${prev}${p}"
13611
	   else
13612
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13613
	   fi
13614
	   ;;
13615
	 # The "-l" case would never come before the object being
13616
	 # linked, so don't bother handling this case.
13617
	 esac
13618
       else
13619
	 if test -z "$postdeps_CXX"; then
13620
	   postdeps_CXX="${prev}${p}"
13621
	 else
13622
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13623
	 fi
13624
       fi
13625
       ;;
13626
13627
    *.$objext)
13628
       # This assumes that the test object file only shows up
13629
       # once in the compiler output.
13630
       if test "$p" = "conftest.$objext"; then
13631
	 pre_test_object_deps_done=yes
13632
	 continue
13633
       fi
13634
13635
       if test "$pre_test_object_deps_done" = no; then
13636
	 if test -z "$predep_objects_CXX"; then
13637
	   predep_objects_CXX="$p"
13638
	 else
13639
	   predep_objects_CXX="$predep_objects_CXX $p"
13640
	 fi
13641
       else
13642
	 if test -z "$postdep_objects_CXX"; then
13643
	   postdep_objects_CXX="$p"
13644
	 else
13645
	   postdep_objects_CXX="$postdep_objects_CXX $p"
13646
	 fi
13647
       fi
13648
       ;;
13649
13650
    *) ;; # Ignore the rest.
13651
13652
    esac
13653
  done
13654
13655
  # Clean up.
13656
  rm -f a.out a.exe
13657
else
13658
  echo "libtool.m4: error: problem compiling CXX test program"
13659
fi
13660
13661
$RM -f confest.$objext
13662
13663
# PORTME: override above test on systems where it is broken
13664
case $host_os in
13665
interix[3-9]*)
13666
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13667
  # hack all around it, let's just trust "g++" to DTRT.
13668
  predep_objects_CXX=
13669
  postdep_objects_CXX=
13670
  postdeps_CXX=
13671
  ;;
13672
13673
linux*)
13674
  case `$CC -V 2>&1 | sed 5q` in
13675
  *Sun\ C*)
13676
    # Sun C++ 5.9
13677
13678
    # The more standards-conforming stlport4 library is
13679
    # incompatible with the Cstd library. Avoid specifying
13680
    # it if it's in CXXFLAGS. Ignore libCrun as
13681
    # -library=stlport4 depends on it.
13682
    case " $CXX $CXXFLAGS " in
13683
    *" -library=stlport4 "*)
13684
      solaris_use_stlport4=yes
13685
      ;;
13686
    esac
13687
13688
    if test "$solaris_use_stlport4" != yes; then
13689
      postdeps_CXX='-library=Cstd -library=Crun'
13690
    fi
13691
    ;;
13692
  esac
13693
  ;;
13694
13695
solaris*)
13696
  case $cc_basename in
13697
  CC*)
13698
    # The more standards-conforming stlport4 library is
13699
    # incompatible with the Cstd library. Avoid specifying
13700
    # it if it's in CXXFLAGS. Ignore libCrun as
13701
    # -library=stlport4 depends on it.
13702
    case " $CXX $CXXFLAGS " in
13703
    *" -library=stlport4 "*)
13704
      solaris_use_stlport4=yes
13705
      ;;
13706
    esac
13707
13708
    # Adding this requires a known-good setup of shared libraries for
13709
    # Sun compiler versions before 5.6, else PIC objects from an old
13710
    # archive will be linked into the output, leading to subtle bugs.
13711
    if test "$solaris_use_stlport4" != yes; then
13712
      postdeps_CXX='-library=Cstd -library=Crun'
13713
    fi
13714
    ;;
13715
  esac
13716
  ;;
13717
esac
13718
13719
13720
case " $postdeps_CXX " in
13721
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13722
esac
13723
 compiler_lib_search_dirs_CXX=
13724
if test -n "${compiler_lib_search_path_CXX}"; then
13725
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13726
fi
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
    lt_prog_compiler_wl_CXX=
13759
lt_prog_compiler_pic_CXX=
13760
lt_prog_compiler_static_CXX=
13761
13762
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13763
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13764
13765
  # C++ specific cases for pic, static, wl, etc.
13766
  if test "$GXX" = yes; then
13767
    lt_prog_compiler_wl_CXX='-Wl,'
13768
    lt_prog_compiler_static_CXX='-static'
13769
13770
    case $host_os in
13771
    aix*)
13772
      # All AIX code is PIC.
13773
      if test "$host_cpu" = ia64; then
13774
	# AIX 5 now supports IA64 processor
13775
	lt_prog_compiler_static_CXX='-Bstatic'
13776
      fi
13777
      ;;
13778
13779
    amigaos*)
13780
      case $host_cpu in
13781
      powerpc)
13782
            # see comment about AmigaOS4 .so support
13783
            lt_prog_compiler_pic_CXX='-fPIC'
13784
        ;;
13785
      m68k)
13786
            # FIXME: we need at least 68020 code to build shared libraries, but
13787
            # adding the `-m68020' flag to GCC prevents building anything better,
13788
            # like `-m68040'.
13789
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13790
        ;;
13791
      esac
13792
      ;;
13793
13794
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13795
      # PIC is the default for these OSes.
13796
      ;;
13797
    mingw* | cygwin* | os2* | pw32*)
13798
      # This hack is so that the source file can tell whether it is being
13799
      # built for inclusion in a dll (and should export symbols for example).
13800
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13801
      # (--disable-auto-import) libraries
13802
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13803
      ;;
13804
    darwin* | rhapsody*)
13805
      # PIC is the default on this platform
13806
      # Common symbols not allowed in MH_DYLIB files
13807
      lt_prog_compiler_pic_CXX='-fno-common'
13808
      ;;
13809
    *djgpp*)
13810
      # DJGPP does not support shared libraries at all
13811
      lt_prog_compiler_pic_CXX=
13812
      ;;
13813
    interix[3-9]*)
13814
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13815
      # Instead, we relocate shared libraries at runtime.
13816
      ;;
13817
    sysv4*MP*)
13818
      if test -d /usr/nec; then
13819
	lt_prog_compiler_pic_CXX=-Kconform_pic
13820
      fi
13821
      ;;
13822
    hpux*)
13823
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13824
      # not for PA HP-UX.
13825
      case $host_cpu in
13826
      hppa*64*|ia64*)
13827
	;;
13828
      *)
13829
	lt_prog_compiler_pic_CXX='-fPIC'
13830
	;;
13831
      esac
13832
      ;;
13833
    *qnx* | *nto*)
13834
      # QNX uses GNU C++, but need to define -shared option too, otherwise
13835
      # it will coredump.
13836
      lt_prog_compiler_pic_CXX='-fPIC -shared'
13837
      ;;
13838
    *)
13839
      lt_prog_compiler_pic_CXX='-fPIC'
13840
      ;;
13841
    esac
13842
  else
13843
    case $host_os in
13844
      aix[4-9]*)
13845
	# All AIX code is PIC.
13846
	if test "$host_cpu" = ia64; then
13847
	  # AIX 5 now supports IA64 processor
13848
	  lt_prog_compiler_static_CXX='-Bstatic'
13849
	else
13850
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13851
	fi
13852
	;;
13853
      chorus*)
13854
	case $cc_basename in
13855
	cxch68*)
13856
	  # Green Hills C++ Compiler
13857
	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13858
	  ;;
13859
	esac
13860
	;;
13861
      dgux*)
13862
	case $cc_basename in
13863
	  ec++*)
13864
	    lt_prog_compiler_pic_CXX='-KPIC'
13865
	    ;;
13866
	  ghcx*)
13867
	    # Green Hills C++ Compiler
13868
	    lt_prog_compiler_pic_CXX='-pic'
13869
	    ;;
13870
	  *)
13871
	    ;;
13872
	esac
13873
	;;
13874
      freebsd* | dragonfly*)
13875
	# FreeBSD uses GNU C++
13876
	;;
13877
      hpux9* | hpux10* | hpux11*)
13878
	case $cc_basename in
13879
	  CC*)
13880
	    lt_prog_compiler_wl_CXX='-Wl,'
13881
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13882
	    if test "$host_cpu" != ia64; then
13883
	      lt_prog_compiler_pic_CXX='+Z'
13884
	    fi
13885
	    ;;
13886
	  aCC*)
13887
	    lt_prog_compiler_wl_CXX='-Wl,'
13888
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13889
	    case $host_cpu in
13890
	    hppa*64*|ia64*)
13891
	      # +Z the default
13892
	      ;;
13893
	    *)
13894
	      lt_prog_compiler_pic_CXX='+Z'
13895
	      ;;
13896
	    esac
13897
	    ;;
13898
	  *)
13899
	    ;;
13900
	esac
13901
	;;
13902
      interix*)
13903
	# This is c89, which is MS Visual C++ (no shared libs)
13904
	# Anyone wants to do a port?
13905
	;;
13906
      irix5* | irix6* | nonstopux*)
13907
	case $cc_basename in
13908
	  CC*)
13909
	    lt_prog_compiler_wl_CXX='-Wl,'
13910
	    lt_prog_compiler_static_CXX='-non_shared'
13911
	    # CC pic flag -KPIC is the default.
13912
	    ;;
13913
	  *)
13914
	    ;;
13915
	esac
13916
	;;
13917
      linux* | k*bsd*-gnu)
13918
	case $cc_basename in
13919
	  KCC*)
13920
	    # KAI C++ Compiler
13921
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13922
	    lt_prog_compiler_pic_CXX='-fPIC'
13923
	    ;;
13924
	  icpc* | ecpc* )
13925
	    # Intel C++
13926
	    lt_prog_compiler_wl_CXX='-Wl,'
13927
	    lt_prog_compiler_pic_CXX='-KPIC'
13928
	    lt_prog_compiler_static_CXX='-static'
13929
	    ;;
13930
	  pgCC* | pgcpp*)
13931
	    # Portland Group C++ compiler
13932
	    lt_prog_compiler_wl_CXX='-Wl,'
13933
	    lt_prog_compiler_pic_CXX='-fpic'
13934
	    lt_prog_compiler_static_CXX='-Bstatic'
13935
	    ;;
13936
	  cxx*)
13937
	    # Compaq C++
13938
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13939
	    # Linux and Compaq Tru64 Unix objects are PIC.
13940
	    lt_prog_compiler_pic_CXX=
13941
	    lt_prog_compiler_static_CXX='-non_shared'
13942
	    ;;
13943
	  xlc* | xlC*)
13944
	    # IBM XL 8.0 on PPC
13945
	    lt_prog_compiler_wl_CXX='-Wl,'
13946
	    lt_prog_compiler_pic_CXX='-qpic'
13947
	    lt_prog_compiler_static_CXX='-qstaticlink'
13948
	    ;;
13949
	  *)
13950
	    case `$CC -V 2>&1 | sed 5q` in
13951
	    *Sun\ C*)
13952
	      # Sun C++ 5.9
13953
	      lt_prog_compiler_pic_CXX='-KPIC'
13954
	      lt_prog_compiler_static_CXX='-Bstatic'
13955
	      lt_prog_compiler_wl_CXX='-Qoption ld '
13956
	      ;;
13957
	    esac
13958
	    ;;
13959
	esac
13960
	;;
13961
      lynxos*)
13962
	;;
13963
      m88k*)
13964
	;;
13965
      mvs*)
13966
	case $cc_basename in
13967
	  cxx*)
13968
	    lt_prog_compiler_pic_CXX='-W c,exportall'
13969
	    ;;
13970
	  *)
13971
	    ;;
13972
	esac
13973
	;;
13974
      netbsd*)
13975
	;;
13976
      *qnx* | *nto*)
13977
        # QNX uses GNU C++, but need to define -shared option too, otherwise
13978
        # it will coredump.
13979
        lt_prog_compiler_pic_CXX='-fPIC -shared'
13980
        ;;
13981
      osf3* | osf4* | osf5*)
13982
	case $cc_basename in
13983
	  KCC*)
13984
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13985
	    ;;
13986
	  RCC*)
13987
	    # Rational C++ 2.4.1
13988
	    lt_prog_compiler_pic_CXX='-pic'
13989
	    ;;
13990
	  cxx*)
13991
	    # Digital/Compaq C++
13992
	    lt_prog_compiler_wl_CXX='-Wl,'
13993
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13994
	    # Linux and Compaq Tru64 Unix objects are PIC.
13995
	    lt_prog_compiler_pic_CXX=
13996
	    lt_prog_compiler_static_CXX='-non_shared'
13997
	    ;;
13998
	  *)
13999
	    ;;
14000
	esac
14001
	;;
14002
      psos*)
14003
	;;
14004
      solaris*)
14005
	case $cc_basename in
14006
	  CC*)
14007
	    # Sun C++ 4.2, 5.x and Centerline C++
14008
	    lt_prog_compiler_pic_CXX='-KPIC'
14009
	    lt_prog_compiler_static_CXX='-Bstatic'
14010
	    lt_prog_compiler_wl_CXX='-Qoption ld '
14011
	    ;;
14012
	  gcx*)
14013
	    # Green Hills C++ Compiler
14014
	    lt_prog_compiler_pic_CXX='-PIC'
14015
	    ;;
14016
	  *)
14017
	    ;;
14018
	esac
14019
	;;
14020
      sunos4*)
14021
	case $cc_basename in
14022
	  CC*)
14023
	    # Sun C++ 4.x
14024
	    lt_prog_compiler_pic_CXX='-pic'
14025
	    lt_prog_compiler_static_CXX='-Bstatic'
14026
	    ;;
14027
	  lcc*)
14028
	    # Lucid
14029
	    lt_prog_compiler_pic_CXX='-pic'
14030
	    ;;
14031
	  *)
14032
	    ;;
14033
	esac
14034
	;;
14035
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14036
	case $cc_basename in
14037
	  CC*)
14038
	    lt_prog_compiler_wl_CXX='-Wl,'
14039
	    lt_prog_compiler_pic_CXX='-KPIC'
14040
	    lt_prog_compiler_static_CXX='-Bstatic'
14041
	    ;;
14042
	esac
14043
	;;
14044
      tandem*)
14045
	case $cc_basename in
14046
	  NCC*)
14047
	    # NonStop-UX NCC 3.20
14048
	    lt_prog_compiler_pic_CXX='-KPIC'
14049
	    ;;
14050
	  *)
14051
	    ;;
14052
	esac
14053
	;;
14054
      vxworks*)
14055
	;;
14056
      *)
14057
	lt_prog_compiler_can_build_shared_CXX=no
14058
	;;
14059
    esac
14060
  fi
14061
14062
case $host_os in
14063
  # For platforms which do not support PIC, -DPIC is meaningless:
14064
  *djgpp*)
14065
    lt_prog_compiler_pic_CXX=
14066
    ;;
14067
  *)
14068
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14069
    ;;
14070
esac
14071
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14072
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14073
14074
14075
14076
#
14077
# Check to make sure the PIC flag actually works.
14078
#
14079
if test -n "$lt_prog_compiler_pic_CXX"; then
14080
  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14081
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14082
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14083
  echo $ECHO_N "(cached) $ECHO_C" >&6
14084
else
14085
  lt_cv_prog_compiler_pic_works_CXX=no
14086
   ac_outfile=conftest.$ac_objext
14087
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14088
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14089
   # Insert the option either (1) after the last *FLAGS variable, or
14090
   # (2) before a word containing "conftest.", or (3) at the end.
14091
   # Note that $ac_compile itself does not contain backslashes and begins
14092
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14093
   # The option is referenced via a variable to avoid confusing sed.
14094
   lt_compile=`echo "$ac_compile" | $SED \
14095
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14096
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14097
   -e 's:$: $lt_compiler_flag:'`
14098
   (eval echo "\"\$as_me:14098: $lt_compile\"" >&5)
14099
   (eval "$lt_compile" 2>conftest.err)
14100
   ac_status=$?
14101
   cat conftest.err >&5
14102
   echo "$as_me:14102: \$? = $ac_status" >&5
14103
   if (exit $ac_status) && test -s "$ac_outfile"; then
14104
     # The compiler can only warn and ignore the option if not recognized
14105
     # So say no if there are warnings other than the usual output.
14106
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14107
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14108
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14109
       lt_cv_prog_compiler_pic_works_CXX=yes
14110
     fi
14111
   fi
14112
   $RM -r conftest*
14113
14114
fi
14115
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14116
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14117
14118
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14119
    case $lt_prog_compiler_pic_CXX in
14120
     "" | " "*) ;;
14121
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14122
     esac
14123
else
14124
    lt_prog_compiler_pic_CXX=
14125
     lt_prog_compiler_can_build_shared_CXX=no
14126
fi
14127
14128
fi
14129
14130
14131
14132
#
14133
# Check to make sure the static flag actually works.
14134
#
14135
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14136
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14137
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14138
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14139
  echo $ECHO_N "(cached) $ECHO_C" >&6
14140
else
14141
  lt_cv_prog_compiler_static_works_CXX=no
14142
   save_LDFLAGS="$LDFLAGS"
14143
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14144
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14145
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14146
     # The linker can only warn and ignore the option if not recognized
14147
     # So say no if there are warnings
14148
     if test -s conftest.err; then
14149
       # Append any errors to the config.log.
14150
       cat conftest.err 1>&5
14151
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14152
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14153
       if diff conftest.exp conftest.er2 >/dev/null; then
14154
         lt_cv_prog_compiler_static_works_CXX=yes
14155
       fi
14156
     else
14157
       lt_cv_prog_compiler_static_works_CXX=yes
14158
     fi
14159
   fi
14160
   $RM -r conftest*
14161
   LDFLAGS="$save_LDFLAGS"
14162
14163
fi
14164
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14165
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14166
14167
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14168
    :
14169
else
14170
    lt_prog_compiler_static_CXX=
14171
fi
14172
14173
14174
14175
14176
    { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14177
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14178
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14179
  echo $ECHO_N "(cached) $ECHO_C" >&6
14180
else
14181
  lt_cv_prog_compiler_c_o_CXX=no
14182
   $RM -r conftest 2>/dev/null
14183
   mkdir conftest
14184
   cd conftest
14185
   mkdir out
14186
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14187
14188
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14189
   # Insert the option either (1) after the last *FLAGS variable, or
14190
   # (2) before a word containing "conftest.", or (3) at the end.
14191
   # Note that $ac_compile itself does not contain backslashes and begins
14192
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14193
   lt_compile=`echo "$ac_compile" | $SED \
14194
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14195
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14196
   -e 's:$: $lt_compiler_flag:'`
14197
   (eval echo "\"\$as_me:14197: $lt_compile\"" >&5)
14198
   (eval "$lt_compile" 2>out/conftest.err)
14199
   ac_status=$?
14200
   cat out/conftest.err >&5
14201
   echo "$as_me:14201: \$? = $ac_status" >&5
14202
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14203
   then
14204
     # The compiler can only warn and ignore the option if not recognized
14205
     # So say no if there are warnings
14206
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14207
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14208
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14209
       lt_cv_prog_compiler_c_o_CXX=yes
14210
     fi
14211
   fi
14212
   chmod u+w . 2>&5
14213
   $RM -r conftest*
14214
   # SGI C++ compiler will create directory out/ii_files/ for
14215
   # template instantiation
14216
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14217
   $RM out/* && rmdir out
14218
   cd ..
14219
   $RM -r conftest
14220
   $RM -r conftest*
14221
14222
fi
14223
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14224
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14225
14226
14227
14228
    { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14229
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14230
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14231
  echo $ECHO_N "(cached) $ECHO_C" >&6
14232
else
14233
  lt_cv_prog_compiler_c_o_CXX=no
14234
   $RM -r conftest 2>/dev/null
14235
   mkdir conftest
14236
   cd conftest
14237
   mkdir out
14238
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14239
14240
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14241
   # Insert the option either (1) after the last *FLAGS variable, or
14242
   # (2) before a word containing "conftest.", or (3) at the end.
14243
   # Note that $ac_compile itself does not contain backslashes and begins
14244
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14245
   lt_compile=`echo "$ac_compile" | $SED \
14246
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14247
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14248
   -e 's:$: $lt_compiler_flag:'`
14249
   (eval echo "\"\$as_me:14249: $lt_compile\"" >&5)
14250
   (eval "$lt_compile" 2>out/conftest.err)
14251
   ac_status=$?
14252
   cat out/conftest.err >&5
14253
   echo "$as_me:14253: \$? = $ac_status" >&5
14254
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14255
   then
14256
     # The compiler can only warn and ignore the option if not recognized
14257
     # So say no if there are warnings
14258
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14259
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14260
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14261
       lt_cv_prog_compiler_c_o_CXX=yes
14262
     fi
14263
   fi
14264
   chmod u+w . 2>&5
14265
   $RM -r conftest*
14266
   # SGI C++ compiler will create directory out/ii_files/ for
14267
   # template instantiation
14268
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14269
   $RM out/* && rmdir out
14270
   cd ..
14271
   $RM -r conftest
14272
   $RM -r conftest*
14273
14274
fi
14275
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14276
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14277
14278
14279
14280
14281
hard_links="nottested"
14282
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14283
  # do not overwrite the value of need_locks provided by the user
14284
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14285
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14286
  hard_links=yes
14287
  $RM -r conftest*
14288
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14289
  touch conftest.a
14290
  ln conftest.a conftest.b 2>&5 || hard_links=no
14291
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14292
  { echo "$as_me:$LINENO: result: $hard_links" >&5
14293
echo "${ECHO_T}$hard_links" >&6; }
14294
  if test "$hard_links" = no; then
14295
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14296
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14297
    need_locks=warn
14298
  fi
14299
else
14300
  need_locks=no
14301
fi
14302
14303
14304
14305
    { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14306
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14307
14308
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14309
  case $host_os in
14310
  aix[4-9]*)
14311
    # If we're using GNU nm, then we don't want the "-C" option.
14312
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14313
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14314
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14315
    else
14316
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14317
    fi
14318
    ;;
14319
  pw32*)
14320
    export_symbols_cmds_CXX="$ltdll_cmds"
14321
  ;;
14322
  cygwin* | mingw*)
14323
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14324
  ;;
14325
  *)
14326
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14327
  ;;
14328
  esac
14329
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14330
14331
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14332
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14333
test "$ld_shlibs_CXX" = no && can_build_shared=no
14334
14335
with_gnu_ld_CXX=$with_gnu_ld
14336
14337
14338
14339
14340
14341
14342
#
14343
# Do we need to explicitly link libc?
14344
#
14345
case "x$archive_cmds_need_lc_CXX" in
14346
x|xyes)
14347
  # Assume -lc should be added
14348
  archive_cmds_need_lc_CXX=yes
14349
14350
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14351
    case $archive_cmds_CXX in
14352
    *'~'*)
14353
      # FIXME: we may have to deal with multi-command sequences.
14354
      ;;
14355
    '$CC '*)
14356
      # Test whether the compiler implicitly links with -lc since on some
14357
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14358
      # to ld, don't add -lc before -lgcc.
14359
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14360
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14361
      $RM -r conftest*
14362
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14363
14364
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14365
  (eval $ac_compile) 2>&5
14366
  ac_status=$?
14367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368
  (exit $ac_status); } 2>conftest.err; then
14369
        soname=conftest
14370
        lib=conftest
14371
        libobjs=conftest.$ac_objext
14372
        deplibs=
14373
        wl=$lt_prog_compiler_wl_CXX
14374
	pic_flag=$lt_prog_compiler_pic_CXX
14375
        compiler_flags=-v
14376
        linker_flags=-v
14377
        verstring=
14378
        output_objdir=.
14379
        libname=conftest
14380
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14381
        allow_undefined_flag_CXX=
14382
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14383
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14384
  ac_status=$?
14385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386
  (exit $ac_status); }
14387
        then
14388
	  archive_cmds_need_lc_CXX=no
14389
        else
14390
	  archive_cmds_need_lc_CXX=yes
14391
        fi
14392
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14393
      else
14394
        cat conftest.err 1>&5
14395
      fi
14396
      $RM -r conftest*
14397
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14398
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14399
      ;;
14400
    esac
14401
  fi
14402
  ;;
14403
esac
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
    { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14469
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14470
14471
library_names_spec=
14472
libname_spec='lib$name'
14473
soname_spec=
14474
shrext_cmds=".so"
14475
postinstall_cmds=
14476
postuninstall_cmds=
14477
finish_cmds=
14478
finish_eval=
14479
shlibpath_var=
14480
shlibpath_overrides_runpath=unknown
14481
version_type=none
14482
dynamic_linker="$host_os ld.so"
14483
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14484
need_lib_prefix=unknown
14485
hardcode_into_libs=no
14486
14487
# when you set need_version to no, make sure it does not cause -set_version
14488
# flags to be left without arguments
14489
need_version=unknown
14490
14491
case $host_os in
14492
aix3*)
14493
  version_type=linux
14494
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14495
  shlibpath_var=LIBPATH
14496
14497
  # AIX 3 has no versioning support, so we append a major version to the name.
14498
  soname_spec='${libname}${release}${shared_ext}$major'
14499
  ;;
14500
14501
aix[4-9]*)
14502
  version_type=linux
14503
  need_lib_prefix=no
14504
  need_version=no
14505
  hardcode_into_libs=yes
14506
  if test "$host_cpu" = ia64; then
14507
    # AIX 5 supports IA64
14508
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14509
    shlibpath_var=LD_LIBRARY_PATH
14510
  else
14511
    # With GCC up to 2.95.x, collect2 would create an import file
14512
    # for dependence libraries.  The import file would start with
14513
    # the line `#! .'.  This would cause the generated library to
14514
    # depend on `.', always an invalid library.  This was fixed in
14515
    # development snapshots of GCC prior to 3.0.
14516
    case $host_os in
14517
      aix4 | aix4.[01] | aix4.[01].*)
14518
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14519
	   echo ' yes '
14520
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14521
	:
14522
      else
14523
	can_build_shared=no
14524
      fi
14525
      ;;
14526
    esac
14527
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14528
    # soname into executable. Probably we can add versioning support to
14529
    # collect2, so additional links can be useful in future.
14530
    if test "$aix_use_runtimelinking" = yes; then
14531
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14532
      # instead of lib<name>.a to let people know that these are not
14533
      # typical AIX shared libraries.
14534
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535
    else
14536
      # We preserve .a as extension for shared libraries through AIX4.2
14537
      # and later when we are not doing run time linking.
14538
      library_names_spec='${libname}${release}.a $libname.a'
14539
      soname_spec='${libname}${release}${shared_ext}$major'
14540
    fi
14541
    shlibpath_var=LIBPATH
14542
  fi
14543
  ;;
14544
14545
amigaos*)
14546
  case $host_cpu in
14547
  powerpc)
14548
    # Since July 2007 AmigaOS4 officially supports .so libraries.
14549
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14550
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551
    ;;
14552
  m68k)
14553
    library_names_spec='$libname.ixlibrary $libname.a'
14554
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14555
    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'
14556
    ;;
14557
  esac
14558
  ;;
14559
14560
beos*)
14561
  library_names_spec='${libname}${shared_ext}'
14562
  dynamic_linker="$host_os ld.so"
14563
  shlibpath_var=LIBRARY_PATH
14564
  ;;
14565
14566
bsdi[45]*)
14567
  version_type=linux
14568
  need_version=no
14569
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14570
  soname_spec='${libname}${release}${shared_ext}$major'
14571
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14572
  shlibpath_var=LD_LIBRARY_PATH
14573
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14574
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14575
  # the default ld.so.conf also contains /usr/contrib/lib and
14576
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14577
  # libtool to hard-code these into programs
14578
  ;;
14579
14580
cygwin* | mingw* | pw32*)
14581
  version_type=windows
14582
  shrext_cmds=".dll"
14583
  need_version=no
14584
  need_lib_prefix=no
14585
14586
  case $GCC,$host_os in
14587
  yes,cygwin* | yes,mingw* | yes,pw32*)
14588
    library_names_spec='$libname.dll.a'
14589
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14590
    postinstall_cmds='base_file=`basename \${file}`~
14591
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14592
      dldir=$destdir/`dirname \$dlpath`~
14593
      test -d \$dldir || mkdir -p \$dldir~
14594
      $install_prog $dir/$dlname \$dldir/$dlname~
14595
      chmod a+x \$dldir/$dlname~
14596
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14597
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14598
      fi'
14599
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14600
      dlpath=$dir/\$dldll~
14601
       $RM \$dlpath'
14602
    shlibpath_overrides_runpath=yes
14603
14604
    case $host_os in
14605
    cygwin*)
14606
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14607
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14608
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14609
      ;;
14610
    mingw*)
14611
      # MinGW DLLs use traditional 'lib' prefix
14612
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14613
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14614
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14615
        # It is most probably a Windows format PATH printed by
14616
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14617
        # path with ; separators, and with drive letters. We can handle the
14618
        # drive letters (cygwin fileutils understands them), so leave them,
14619
        # especially as we might pass files found there to a mingw objdump,
14620
        # which wouldn't understand a cygwinified path. Ahh.
14621
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14622
      else
14623
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14624
      fi
14625
      ;;
14626
    pw32*)
14627
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14628
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14629
      ;;
14630
    esac
14631
    ;;
14632
14633
  *)
14634
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14635
    ;;
14636
  esac
14637
  dynamic_linker='Win32 ld.exe'
14638
  # FIXME: first we should search . and the directory the executable is in
14639
  shlibpath_var=PATH
14640
  ;;
14641
14642
darwin* | rhapsody*)
14643
  dynamic_linker="$host_os dyld"
14644
  version_type=darwin
14645
  need_lib_prefix=no
14646
  need_version=no
14647
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
14648
  soname_spec='${libname}${release}${major}$shared_ext'
14649
  shlibpath_overrides_runpath=yes
14650
  shlibpath_var=DYLD_LIBRARY_PATH
14651
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14652
14653
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14654
  ;;
14655
14656
dgux*)
14657
  version_type=linux
14658
  need_lib_prefix=no
14659
  need_version=no
14660
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14661
  soname_spec='${libname}${release}${shared_ext}$major'
14662
  shlibpath_var=LD_LIBRARY_PATH
14663
  ;;
14664
14665
freebsd1*)
14666
  dynamic_linker=no
14667
  ;;
14668
14669
freebsd* | dragonfly*)
14670
  # DragonFly does not have aout.  When/if they implement a new
14671
  # versioning mechanism, adjust this.
14672
  if test -x /usr/bin/objformat; then
14673
    objformat=`/usr/bin/objformat`
14674
  else
14675
    case $host_os in
14676
    freebsd[123]*) objformat=aout ;;
14677
    *) objformat=elf ;;
14678
    esac
14679
  fi
14680
  version_type=freebsd-$objformat
14681
  case $version_type in
14682
    freebsd-elf*)
14683
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14684
      need_version=no
14685
      need_lib_prefix=no
14686
      ;;
14687
    freebsd-*)
14688
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14689
      need_version=yes
14690
      ;;
14691
  esac
14692
  shlibpath_var=LD_LIBRARY_PATH
14693
  case $host_os in
14694
  freebsd2*)
14695
    shlibpath_overrides_runpath=yes
14696
    ;;
14697
  freebsd3.[01]* | freebsdelf3.[01]*)
14698
    shlibpath_overrides_runpath=yes
14699
    hardcode_into_libs=yes
14700
    ;;
14701
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14702
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14703
    shlibpath_overrides_runpath=no
14704
    hardcode_into_libs=yes
14705
    ;;
14706
  *) # from 4.6 on, and DragonFly
14707
    shlibpath_overrides_runpath=yes
14708
    hardcode_into_libs=yes
14709
    ;;
14710
  esac
14711
  ;;
14712
14713
gnu*)
14714
  version_type=linux
14715
  need_lib_prefix=no
14716
  need_version=no
14717
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14718
  soname_spec='${libname}${release}${shared_ext}$major'
14719
  shlibpath_var=LD_LIBRARY_PATH
14720
  hardcode_into_libs=yes
14721
  ;;
14722
14723
hpux9* | hpux10* | hpux11*)
14724
  # Give a soname corresponding to the major version so that dld.sl refuses to
14725
  # link against other versions.
14726
  version_type=sunos
14727
  need_lib_prefix=no
14728
  need_version=no
14729
  case $host_cpu in
14730
  ia64*)
14731
    shrext_cmds='.so'
14732
    hardcode_into_libs=yes
14733
    dynamic_linker="$host_os dld.so"
14734
    shlibpath_var=LD_LIBRARY_PATH
14735
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14736
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737
    soname_spec='${libname}${release}${shared_ext}$major'
14738
    if test "X$HPUX_IA64_MODE" = X32; then
14739
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14740
    else
14741
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14742
    fi
14743
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14744
    ;;
14745
  hppa*64*)
14746
    shrext_cmds='.sl'
14747
    hardcode_into_libs=yes
14748
    dynamic_linker="$host_os dld.sl"
14749
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14750
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14751
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14752
    soname_spec='${libname}${release}${shared_ext}$major'
14753
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14754
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14755
    ;;
14756
  *)
14757
    shrext_cmds='.sl'
14758
    dynamic_linker="$host_os dld.sl"
14759
    shlibpath_var=SHLIB_PATH
14760
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14761
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14762
    soname_spec='${libname}${release}${shared_ext}$major'
14763
    ;;
14764
  esac
14765
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14766
  postinstall_cmds='chmod 555 $lib'
14767
  ;;
14768
14769
interix[3-9]*)
14770
  version_type=linux
14771
  need_lib_prefix=no
14772
  need_version=no
14773
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14774
  soname_spec='${libname}${release}${shared_ext}$major'
14775
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14776
  shlibpath_var=LD_LIBRARY_PATH
14777
  shlibpath_overrides_runpath=no
14778
  hardcode_into_libs=yes
14779
  ;;
14780
14781
irix5* | irix6* | nonstopux*)
14782
  case $host_os in
14783
    nonstopux*) version_type=nonstopux ;;
14784
    *)
14785
	if test "$lt_cv_prog_gnu_ld" = yes; then
14786
		version_type=linux
14787
	else
14788
		version_type=irix
14789
	fi ;;
14790
  esac
14791
  need_lib_prefix=no
14792
  need_version=no
14793
  soname_spec='${libname}${release}${shared_ext}$major'
14794
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14795
  case $host_os in
14796
  irix5* | nonstopux*)
14797
    libsuff= shlibsuff=
14798
    ;;
14799
  *)
14800
    case $LD in # libtool.m4 will add one of these switches to LD
14801
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14802
      libsuff= shlibsuff= libmagic=32-bit;;
14803
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14804
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14805
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14806
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14807
    *) libsuff= shlibsuff= libmagic=never-match;;
14808
    esac
14809
    ;;
14810
  esac
14811
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14812
  shlibpath_overrides_runpath=no
14813
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14814
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14815
  hardcode_into_libs=yes
14816
  ;;
14817
14818
# No shared lib support for Linux oldld, aout, or coff.
14819
linux*oldld* | linux*aout* | linux*coff*)
14820
  dynamic_linker=no
14821
  ;;
14822
14823
# This must be Linux ELF.
14824
linux* | k*bsd*-gnu)
14825
  version_type=linux
14826
  need_lib_prefix=no
14827
  need_version=no
14828
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829
  soname_spec='${libname}${release}${shared_ext}$major'
14830
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14831
  shlibpath_var=LD_LIBRARY_PATH
14832
  shlibpath_overrides_runpath=no
14833
  # Some binutils ld are patched to set DT_RUNPATH
14834
  save_LDFLAGS=$LDFLAGS
14835
  save_libdir=$libdir
14836
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14837
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14838
  cat >conftest.$ac_ext <<_ACEOF
14839
/* confdefs.h.  */
14840
_ACEOF
14841
cat confdefs.h >>conftest.$ac_ext
14842
cat >>conftest.$ac_ext <<_ACEOF
14843
/* end confdefs.h.  */
14844
14845
int
14846
main ()
14847
{
14848
14849
  ;
14850
  return 0;
14851
}
14852
_ACEOF
14853
rm -f conftest.$ac_objext conftest$ac_exeext
14854
if { (ac_try="$ac_link"
14855
case "(($ac_try" in
14856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857
  *) ac_try_echo=$ac_try;;
14858
esac
14859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14860
  (eval "$ac_link") 2>conftest.er1
14861
  ac_status=$?
14862
  grep -v '^ *+' conftest.er1 >conftest.err
14863
  rm -f conftest.er1
14864
  cat conftest.err >&5
14865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866
  (exit $ac_status); } && {
14867
	 test -z "$ac_cxx_werror_flag" ||
14868
	 test ! -s conftest.err
14869
       } && test -s conftest$ac_exeext &&
14870
       $as_test_x conftest$ac_exeext; then
14871
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14872
  shlibpath_overrides_runpath=yes
14873
fi
14874
14875
else
14876
  echo "$as_me: failed program was:" >&5
14877
sed 's/^/| /' conftest.$ac_ext >&5
14878
14879
14880
fi
14881
14882
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14883
      conftest$ac_exeext conftest.$ac_ext
14884
  LDFLAGS=$save_LDFLAGS
14885
  libdir=$save_libdir
14886
14887
  # This implies no fast_install, which is unacceptable.
14888
  # Some rework will be needed to allow for fast_install
14889
  # before this can be enabled.
14890
  hardcode_into_libs=yes
14891
14892
  # Append ld.so.conf contents to the search path
14893
  if test -f /etc/ld.so.conf; then
14894
    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' ' '`
14895
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14896
  fi
14897
14898
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14899
  # powerpc, because MkLinux only supported shared libraries with the
14900
  # GNU dynamic linker.  Since this was broken with cross compilers,
14901
  # most powerpc-linux boxes support dynamic linking these days and
14902
  # people can always --disable-shared, the test was removed, and we
14903
  # assume the GNU/Linux dynamic linker is in use.
14904
  dynamic_linker='GNU/Linux ld.so'
14905
  ;;
14906
14907
netbsd*)
14908
  version_type=sunos
14909
  need_lib_prefix=no
14910
  need_version=no
14911
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14912
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14913
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14914
    dynamic_linker='NetBSD (a.out) ld.so'
14915
  else
14916
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14917
    soname_spec='${libname}${release}${shared_ext}$major'
14918
    dynamic_linker='NetBSD ld.elf_so'
14919
  fi
14920
  shlibpath_var=LD_LIBRARY_PATH
14921
  shlibpath_overrides_runpath=yes
14922
  hardcode_into_libs=yes
14923
  ;;
14924
14925
newsos6)
14926
  version_type=linux
14927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928
  shlibpath_var=LD_LIBRARY_PATH
14929
  shlibpath_overrides_runpath=yes
14930
  ;;
14931
14932
*nto* | *qnx*)
14933
  version_type=qnx
14934
  need_lib_prefix=no
14935
  need_version=no
14936
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937
  soname_spec='${libname}${release}${shared_ext}$major'
14938
  shlibpath_var=LD_LIBRARY_PATH
14939
  shlibpath_overrides_runpath=no
14940
  hardcode_into_libs=yes
14941
  dynamic_linker='ldqnx.so'
14942
  ;;
14943
14944
openbsd*)
14945
  version_type=sunos
14946
  sys_lib_dlsearch_path_spec="/usr/lib"
14947
  need_lib_prefix=no
14948
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14949
  case $host_os in
14950
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14951
    *)				need_version=no  ;;
14952
  esac
14953
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14954
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14955
  shlibpath_var=LD_LIBRARY_PATH
14956
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14957
    case $host_os in
14958
      openbsd2.[89] | openbsd2.[89].*)
14959
	shlibpath_overrides_runpath=no
14960
	;;
14961
      *)
14962
	shlibpath_overrides_runpath=yes
14963
	;;
14964
      esac
14965
  else
14966
    shlibpath_overrides_runpath=yes
14967
  fi
14968
  ;;
14969
14970
os2*)
14971
  libname_spec='$name'
14972
  shrext_cmds=".dll"
14973
  need_lib_prefix=no
14974
  library_names_spec='$libname${shared_ext} $libname.a'
14975
  dynamic_linker='OS/2 ld.exe'
14976
  shlibpath_var=LIBPATH
14977
  ;;
14978
14979
osf3* | osf4* | osf5*)
14980
  version_type=osf
14981
  need_lib_prefix=no
14982
  need_version=no
14983
  soname_spec='${libname}${release}${shared_ext}$major'
14984
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985
  shlibpath_var=LD_LIBRARY_PATH
14986
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14987
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14988
  ;;
14989
14990
rdos*)
14991
  dynamic_linker=no
14992
  ;;
14993
14994
solaris*)
14995
  version_type=linux
14996
  need_lib_prefix=no
14997
  need_version=no
14998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14999
  soname_spec='${libname}${release}${shared_ext}$major'
15000
  shlibpath_var=LD_LIBRARY_PATH
15001
  shlibpath_overrides_runpath=yes
15002
  hardcode_into_libs=yes
15003
  # ldd complains unless libraries are executable
15004
  postinstall_cmds='chmod +x $lib'
15005
  ;;
15006
15007
sunos4*)
15008
  version_type=sunos
15009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15010
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15011
  shlibpath_var=LD_LIBRARY_PATH
15012
  shlibpath_overrides_runpath=yes
15013
  if test "$with_gnu_ld" = yes; then
15014
    need_lib_prefix=no
15015
  fi
15016
  need_version=yes
15017
  ;;
15018
15019
sysv4 | sysv4.3*)
15020
  version_type=linux
15021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022
  soname_spec='${libname}${release}${shared_ext}$major'
15023
  shlibpath_var=LD_LIBRARY_PATH
15024
  case $host_vendor in
15025
    sni)
15026
      shlibpath_overrides_runpath=no
15027
      need_lib_prefix=no
15028
      runpath_var=LD_RUN_PATH
15029
      ;;
15030
    siemens)
15031
      need_lib_prefix=no
15032
      ;;
15033
    motorola)
15034
      need_lib_prefix=no
15035
      need_version=no
15036
      shlibpath_overrides_runpath=no
15037
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15038
      ;;
15039
  esac
15040
  ;;
15041
15042
sysv4*MP*)
15043
  if test -d /usr/nec ;then
15044
    version_type=linux
15045
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15046
    soname_spec='$libname${shared_ext}.$major'
15047
    shlibpath_var=LD_LIBRARY_PATH
15048
  fi
15049
  ;;
15050
15051
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15052
  version_type=freebsd-elf
15053
  need_lib_prefix=no
15054
  need_version=no
15055
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15056
  soname_spec='${libname}${release}${shared_ext}$major'
15057
  shlibpath_var=LD_LIBRARY_PATH
15058
  shlibpath_overrides_runpath=yes
15059
  hardcode_into_libs=yes
15060
  if test "$with_gnu_ld" = yes; then
15061
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15062
  else
15063
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15064
    case $host_os in
15065
      sco3.2v5*)
15066
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15067
	;;
15068
    esac
15069
  fi
15070
  sys_lib_dlsearch_path_spec='/usr/lib'
15071
  ;;
15072
15073
tpf*)
15074
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15075
  version_type=linux
15076
  need_lib_prefix=no
15077
  need_version=no
15078
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15079
  shlibpath_var=LD_LIBRARY_PATH
15080
  shlibpath_overrides_runpath=no
15081
  hardcode_into_libs=yes
15082
  ;;
15083
15084
uts4*)
15085
  version_type=linux
15086
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087
  soname_spec='${libname}${release}${shared_ext}$major'
15088
  shlibpath_var=LD_LIBRARY_PATH
15089
  ;;
15090
15091
*)
15092
  dynamic_linker=no
15093
  ;;
15094
esac
15095
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15096
echo "${ECHO_T}$dynamic_linker" >&6; }
15097
test "$dynamic_linker" = no && can_build_shared=no
15098
15099
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15100
if test "$GCC" = yes; then
15101
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15102
fi
15103
15104
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15105
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15106
fi
15107
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15108
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15109
fi
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
    { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15147
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15148
hardcode_action_CXX=
15149
if test -n "$hardcode_libdir_flag_spec_CXX" ||
15150
   test -n "$runpath_var_CXX" ||
15151
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15152
15153
  # We can hardcode non-existent directories.
15154
  if test "$hardcode_direct_CXX" != no &&
15155
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15156
     # have to relink, otherwise we might link with an installed library
15157
     # when we should be linking with a yet-to-be-installed one
15158
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15159
     test "$hardcode_minus_L_CXX" != no; then
15160
    # Linking always hardcodes the temporary library directory.
15161
    hardcode_action_CXX=relink
15162
  else
15163
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15164
    hardcode_action_CXX=immediate
15165
  fi
15166
else
15167
  # We cannot hardcode anything, or else we can only hardcode existing
15168
  # directories.
15169
  hardcode_action_CXX=unsupported
15170
fi
15171
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15172
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15173
15174
if test "$hardcode_action_CXX" = relink ||
15175
   test "$inherit_rpath_CXX" = yes; then
15176
  # Fast installation is not supported
15177
  enable_fast_install=no
15178
elif test "$shlibpath_overrides_runpath" = yes ||
15179
     test "$enable_shared" = no; then
15180
  # Fast installation is not necessary
15181
  enable_fast_install=needless
15182
fi
15183
15184
15185
15186
15187
15188
15189
15190
  fi # test -n "$compiler"
15191
15192
  CC=$lt_save_CC
15193
  LDCXX=$LD
15194
  LD=$lt_save_LD
15195
  GCC=$lt_save_GCC
15196
  with_gnu_ld=$lt_save_with_gnu_ld
15197
  lt_cv_path_LDCXX=$lt_cv_path_LD
15198
  lt_cv_path_LD=$lt_save_path_LD
15199
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15200
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15201
fi # test "$_lt_caught_CXX_error" != yes
15202
15203
ac_ext=c
15204
ac_cpp='$CPP $CPPFLAGS'
15205
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
        ac_config_commands="$ac_config_commands libtool"
15222
15223
15224
15225
15226
# Only expand once:
15227
15228
15229
15230
15231
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15232
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
15233
if test "${ac_cv_c_bigendian+set}" = set; then
15234
  echo $ECHO_N "(cached) $ECHO_C" >&6
15235
else
15236
  # See if sys/param.h defines the BYTE_ORDER macro.
15237
cat >conftest.$ac_ext <<_ACEOF
15238
/* confdefs.h.  */
15239
_ACEOF
15240
cat confdefs.h >>conftest.$ac_ext
15241
cat >>conftest.$ac_ext <<_ACEOF
15242
/* end confdefs.h.  */
15243
#include <sys/types.h>
15244
#include <sys/param.h>
15245
15246
int
15247
main ()
15248
{
15249
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
15250
	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
15251
 bogus endian macros
15252
#endif
15253
15254
  ;
15255
  return 0;
15256
}
15257
_ACEOF
15258
rm -f conftest.$ac_objext
15259
if { (ac_try="$ac_compile"
15260
case "(($ac_try" in
15261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262
  *) ac_try_echo=$ac_try;;
15263
esac
15264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265
  (eval "$ac_compile") 2>conftest.er1
15266
  ac_status=$?
15267
  grep -v '^ *+' conftest.er1 >conftest.err
15268
  rm -f conftest.er1
15269
  cat conftest.err >&5
15270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271
  (exit $ac_status); } && {
15272
	 test -z "$ac_c_werror_flag" ||
15273
	 test ! -s conftest.err
15274
       } && test -s conftest.$ac_objext; then
15275
  # It does; now see whether it defined to BIG_ENDIAN or not.
15276
cat >conftest.$ac_ext <<_ACEOF
15277
/* confdefs.h.  */
15278
_ACEOF
15279
cat confdefs.h >>conftest.$ac_ext
15280
cat >>conftest.$ac_ext <<_ACEOF
15281
/* end confdefs.h.  */
15282
#include <sys/types.h>
15283
#include <sys/param.h>
15284
15285
int
15286
main ()
15287
{
15288
#if BYTE_ORDER != BIG_ENDIAN
15289
 not big endian
15290
#endif
15291
15292
  ;
15293
  return 0;
15294
}
15295
_ACEOF
15296
rm -f conftest.$ac_objext
15297
if { (ac_try="$ac_compile"
15298
case "(($ac_try" in
15299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300
  *) ac_try_echo=$ac_try;;
15301
esac
15302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303
  (eval "$ac_compile") 2>conftest.er1
15304
  ac_status=$?
15305
  grep -v '^ *+' conftest.er1 >conftest.err
15306
  rm -f conftest.er1
15307
  cat conftest.err >&5
15308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309
  (exit $ac_status); } && {
15310
	 test -z "$ac_c_werror_flag" ||
15311
	 test ! -s conftest.err
15312
       } && test -s conftest.$ac_objext; then
15313
  ac_cv_c_bigendian=yes
15314
else
15315
  echo "$as_me: failed program was:" >&5
15316
sed 's/^/| /' conftest.$ac_ext >&5
15317
15318
	ac_cv_c_bigendian=no
15319
fi
15320
15321
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15322
else
15323
  echo "$as_me: failed program was:" >&5
15324
sed 's/^/| /' conftest.$ac_ext >&5
15325
15326
	# It does not; compile a test program.
15327
if test "$cross_compiling" = yes; then
15328
  # try to guess the endianness by grepping values into an object file
15329
  ac_cv_c_bigendian=unknown
15330
  cat >conftest.$ac_ext <<_ACEOF
15331
/* confdefs.h.  */
15332
_ACEOF
15333
cat confdefs.h >>conftest.$ac_ext
15334
cat >>conftest.$ac_ext <<_ACEOF
15335
/* end confdefs.h.  */
15336
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15337
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15338
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15339
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15340
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15341
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15342
int
15343
main ()
15344
{
15345
 _ascii (); _ebcdic ();
15346
  ;
15347
  return 0;
15348
}
15349
_ACEOF
15350
rm -f conftest.$ac_objext
15351
if { (ac_try="$ac_compile"
15352
case "(($ac_try" in
15353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354
  *) ac_try_echo=$ac_try;;
15355
esac
15356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357
  (eval "$ac_compile") 2>conftest.er1
15358
  ac_status=$?
15359
  grep -v '^ *+' conftest.er1 >conftest.err
15360
  rm -f conftest.er1
15361
  cat conftest.err >&5
15362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363
  (exit $ac_status); } && {
15364
	 test -z "$ac_c_werror_flag" ||
15365
	 test ! -s conftest.err
15366
       } && test -s conftest.$ac_objext; then
15367
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15368
  ac_cv_c_bigendian=yes
15369
fi
15370
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15371
  if test "$ac_cv_c_bigendian" = unknown; then
15372
    ac_cv_c_bigendian=no
15373
  else
15374
    # finding both strings is unlikely to happen, but who knows?
15375
    ac_cv_c_bigendian=unknown
15376
  fi
15377
fi
15378
else
15379
  echo "$as_me: failed program was:" >&5
15380
sed 's/^/| /' conftest.$ac_ext >&5
15381
15382
15383
fi
15384
15385
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386
else
15387
  cat >conftest.$ac_ext <<_ACEOF
15388
/* confdefs.h.  */
15389
_ACEOF
15390
cat confdefs.h >>conftest.$ac_ext
15391
cat >>conftest.$ac_ext <<_ACEOF
15392
/* end confdefs.h.  */
15393
$ac_includes_default
15394
int
15395
main ()
15396
{
15397
15398
  /* Are we little or big endian?  From Harbison&Steele.  */
15399
  union
15400
  {
15401
    long int l;
15402
    char c[sizeof (long int)];
15403
  } u;
15404
  u.l = 1;
15405
  return u.c[sizeof (long int) - 1] == 1;
15406
15407
  ;
15408
  return 0;
15409
}
15410
_ACEOF
15411
rm -f conftest$ac_exeext
15412
if { (ac_try="$ac_link"
15413
case "(($ac_try" in
15414
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415
  *) ac_try_echo=$ac_try;;
15416
esac
15417
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418
  (eval "$ac_link") 2>&5
15419
  ac_status=$?
15420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15422
  { (case "(($ac_try" in
15423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424
  *) ac_try_echo=$ac_try;;
15425
esac
15426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427
  (eval "$ac_try") 2>&5
15428
  ac_status=$?
15429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430
  (exit $ac_status); }; }; then
15431
  ac_cv_c_bigendian=no
15432
else
15433
  echo "$as_me: program exited with status $ac_status" >&5
15434
echo "$as_me: failed program was:" >&5
15435
sed 's/^/| /' conftest.$ac_ext >&5
15436
15437
( exit $ac_status )
15438
ac_cv_c_bigendian=yes
15439
fi
15440
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15441
fi
15442
15443
15444
fi
15445
15446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447
fi
15448
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15449
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
15450
case $ac_cv_c_bigendian in
15451
  yes)
15452
15453
cat >>confdefs.h <<\_ACEOF
15454
#define WORDS_BIGENDIAN 1
15455
_ACEOF
15456
 ;;
15457
  no)
15458
     ;;
15459
  *)
15460
    { { echo "$as_me:$LINENO: error: unknown endianness
15461
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15462
echo "$as_me: error: unknown endianness
15463
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15464
   { (exit 1); exit 1; }; } ;;
15465
esac
15466
15467
15468
15469
15470
for ac_header in string.h
15471
do
15472
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15473
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15475
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15476
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15477
  echo $ECHO_N "(cached) $ECHO_C" >&6
15478
fi
15479
ac_res=`eval echo '${'$as_ac_Header'}'`
15480
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15481
echo "${ECHO_T}$ac_res" >&6; }
15482
else
15483
  # Is the header compilable?
15484
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15485
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15486
cat >conftest.$ac_ext <<_ACEOF
15487
/* confdefs.h.  */
15488
_ACEOF
15489
cat confdefs.h >>conftest.$ac_ext
15490
cat >>conftest.$ac_ext <<_ACEOF
15491
/* end confdefs.h.  */
15492
$ac_includes_default
15493
#include <$ac_header>
15494
_ACEOF
15495
rm -f conftest.$ac_objext
15496
if { (ac_try="$ac_compile"
15497
case "(($ac_try" in
15498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499
  *) ac_try_echo=$ac_try;;
15500
esac
15501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502
  (eval "$ac_compile") 2>conftest.er1
15503
  ac_status=$?
15504
  grep -v '^ *+' conftest.er1 >conftest.err
15505
  rm -f conftest.er1
15506
  cat conftest.err >&5
15507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508
  (exit $ac_status); } && {
15509
	 test -z "$ac_c_werror_flag" ||
15510
	 test ! -s conftest.err
15511
       } && test -s conftest.$ac_objext; then
15512
  ac_header_compiler=yes
15513
else
15514
  echo "$as_me: failed program was:" >&5
15515
sed 's/^/| /' conftest.$ac_ext >&5
15516
15517
	ac_header_compiler=no
15518
fi
15519
15520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15521
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15522
echo "${ECHO_T}$ac_header_compiler" >&6; }
15523
15524
# Is the header present?
15525
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15526
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15527
cat >conftest.$ac_ext <<_ACEOF
15528
/* confdefs.h.  */
15529
_ACEOF
15530
cat confdefs.h >>conftest.$ac_ext
15531
cat >>conftest.$ac_ext <<_ACEOF
15532
/* end confdefs.h.  */
15533
#include <$ac_header>
15534
_ACEOF
15535
if { (ac_try="$ac_cpp conftest.$ac_ext"
15536
case "(($ac_try" in
15537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538
  *) ac_try_echo=$ac_try;;
15539
esac
15540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15542
  ac_status=$?
15543
  grep -v '^ *+' conftest.er1 >conftest.err
15544
  rm -f conftest.er1
15545
  cat conftest.err >&5
15546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547
  (exit $ac_status); } >/dev/null && {
15548
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15549
	 test ! -s conftest.err
15550
       }; then
15551
  ac_header_preproc=yes
15552
else
15553
  echo "$as_me: failed program was:" >&5
15554
sed 's/^/| /' conftest.$ac_ext >&5
15555
15556
  ac_header_preproc=no
15557
fi
15558
15559
rm -f conftest.err conftest.$ac_ext
15560
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15561
echo "${ECHO_T}$ac_header_preproc" >&6; }
15562
15563
# So?  What about this header?
15564
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15565
  yes:no: )
15566
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15567
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15568
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15569
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15570
    ac_header_preproc=yes
15571
    ;;
15572
  no:yes:* )
15573
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15574
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15575
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15576
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15577
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15578
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15579
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15580
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15581
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15582
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15583
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15584
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15585
    ( cat <<\_ASBOX
15586
## --------------------------------- ##
15587
## Report this to hobu.inc@gmail.com ##
15588
## --------------------------------- ##
15589
_ASBOX
15590
     ) | sed "s/^/$as_me: WARNING:     /" >&2
15591
    ;;
15592
esac
15593
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15594
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15595
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596
  echo $ECHO_N "(cached) $ECHO_C" >&6
15597
else
15598
  eval "$as_ac_Header=\$ac_header_preproc"
15599
fi
15600
ac_res=`eval echo '${'$as_ac_Header'}'`
15601
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15602
echo "${ECHO_T}$ac_res" >&6; }
15603
15604
fi
15605
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15606
  cat >>confdefs.h <<_ACEOF
15607
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15608
_ACEOF
15609
15610
else
15611
  { { echo "$as_me:$LINENO: error: cannot find string.h, bailing out" >&5
15612
echo "$as_me: error: cannot find string.h, bailing out" >&2;}
15613
   { (exit 1); exit 1; }; }
15614
fi
15615
15616
done
15617
15618
15619
for ac_header in stdio.h
15620
do
15621
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15622
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15624
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15625
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15626
  echo $ECHO_N "(cached) $ECHO_C" >&6
15627
fi
15628
ac_res=`eval echo '${'$as_ac_Header'}'`
15629
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15630
echo "${ECHO_T}$ac_res" >&6; }
15631
else
15632
  # Is the header compilable?
15633
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15634
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15635
cat >conftest.$ac_ext <<_ACEOF
15636
/* confdefs.h.  */
15637
_ACEOF
15638
cat confdefs.h >>conftest.$ac_ext
15639
cat >>conftest.$ac_ext <<_ACEOF
15640
/* end confdefs.h.  */
15641
$ac_includes_default
15642
#include <$ac_header>
15643
_ACEOF
15644
rm -f conftest.$ac_objext
15645
if { (ac_try="$ac_compile"
15646
case "(($ac_try" in
15647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15648
  *) ac_try_echo=$ac_try;;
15649
esac
15650
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15651
  (eval "$ac_compile") 2>conftest.er1
15652
  ac_status=$?
15653
  grep -v '^ *+' conftest.er1 >conftest.err
15654
  rm -f conftest.er1
15655
  cat conftest.err >&5
15656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657
  (exit $ac_status); } && {
15658
	 test -z "$ac_c_werror_flag" ||
15659
	 test ! -s conftest.err
15660
       } && test -s conftest.$ac_objext; then
15661
  ac_header_compiler=yes
15662
else
15663
  echo "$as_me: failed program was:" >&5
15664
sed 's/^/| /' conftest.$ac_ext >&5
15665
15666
	ac_header_compiler=no
15667
fi
15668
15669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15671
echo "${ECHO_T}$ac_header_compiler" >&6; }
15672
15673
# Is the header present?
15674
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15675
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15676
cat >conftest.$ac_ext <<_ACEOF
15677
/* confdefs.h.  */
15678
_ACEOF
15679
cat confdefs.h >>conftest.$ac_ext
15680
cat >>conftest.$ac_ext <<_ACEOF
15681
/* end confdefs.h.  */
15682
#include <$ac_header>
15683
_ACEOF
15684
if { (ac_try="$ac_cpp conftest.$ac_ext"
15685
case "(($ac_try" in
15686
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687
  *) ac_try_echo=$ac_try;;
15688
esac
15689
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15691
  ac_status=$?
15692
  grep -v '^ *+' conftest.er1 >conftest.err
15693
  rm -f conftest.er1
15694
  cat conftest.err >&5
15695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696
  (exit $ac_status); } >/dev/null && {
15697
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15698
	 test ! -s conftest.err
15699
       }; then
15700
  ac_header_preproc=yes
15701
else
15702
  echo "$as_me: failed program was:" >&5
15703
sed 's/^/| /' conftest.$ac_ext >&5
15704
15705
  ac_header_preproc=no
15706
fi
15707
15708
rm -f conftest.err conftest.$ac_ext
15709
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15710
echo "${ECHO_T}$ac_header_preproc" >&6; }
15711
15712
# So?  What about this header?
15713
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15714
  yes:no: )
15715
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15716
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15717
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15718
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15719
    ac_header_preproc=yes
15720
    ;;
15721
  no:yes:* )
15722
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15723
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15724
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15725
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15726
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15727
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15728
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15729
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15730
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15731
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15732
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15733
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15734
    ( cat <<\_ASBOX
15735
## --------------------------------- ##
15736
## Report this to hobu.inc@gmail.com ##
15737
## --------------------------------- ##
15738
_ASBOX
15739
     ) | sed "s/^/$as_me: WARNING:     /" >&2
15740
    ;;
15741
esac
15742
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15743
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15744
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15745
  echo $ECHO_N "(cached) $ECHO_C" >&6
15746
else
15747
  eval "$as_ac_Header=\$ac_header_preproc"
15748
fi
15749
ac_res=`eval echo '${'$as_ac_Header'}'`
15750
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15751
echo "${ECHO_T}$ac_res" >&6; }
15752
15753
fi
15754
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15755
  cat >>confdefs.h <<_ACEOF
15756
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15757
_ACEOF
15758
15759
else
15760
  { { echo "$as_me:$LINENO: error: cannot find stdio.h, bailing out" >&5
15761
echo "$as_me: error: cannot find stdio.h, bailing out" >&2;}
15762
   { (exit 1); exit 1; }; }
15763
fi
15764
15765
done
15766
15767
15768
for ac_header in stdlib.h
15769
do
15770
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15771
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15772
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15773
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15774
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15775
  echo $ECHO_N "(cached) $ECHO_C" >&6
15776
fi
15777
ac_res=`eval echo '${'$as_ac_Header'}'`
15778
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15779
echo "${ECHO_T}$ac_res" >&6; }
15780
else
15781
  # Is the header compilable?
15782
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15783
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15784
cat >conftest.$ac_ext <<_ACEOF
15785
/* confdefs.h.  */
15786
_ACEOF
15787
cat confdefs.h >>conftest.$ac_ext
15788
cat >>conftest.$ac_ext <<_ACEOF
15789
/* end confdefs.h.  */
15790
$ac_includes_default
15791
#include <$ac_header>
15792
_ACEOF
15793
rm -f conftest.$ac_objext
15794
if { (ac_try="$ac_compile"
15795
case "(($ac_try" in
15796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797
  *) ac_try_echo=$ac_try;;
15798
esac
15799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800
  (eval "$ac_compile") 2>conftest.er1
15801
  ac_status=$?
15802
  grep -v '^ *+' conftest.er1 >conftest.err
15803
  rm -f conftest.er1
15804
  cat conftest.err >&5
15805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806
  (exit $ac_status); } && {
15807
	 test -z "$ac_c_werror_flag" ||
15808
	 test ! -s conftest.err
15809
       } && test -s conftest.$ac_objext; then
15810
  ac_header_compiler=yes
15811
else
15812
  echo "$as_me: failed program was:" >&5
15813
sed 's/^/| /' conftest.$ac_ext >&5
15814
15815
	ac_header_compiler=no
15816
fi
15817
15818
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15819
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15820
echo "${ECHO_T}$ac_header_compiler" >&6; }
15821
15822
# Is the header present?
15823
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15824
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15825
cat >conftest.$ac_ext <<_ACEOF
15826
/* confdefs.h.  */
15827
_ACEOF
15828
cat confdefs.h >>conftest.$ac_ext
15829
cat >>conftest.$ac_ext <<_ACEOF
15830
/* end confdefs.h.  */
15831
#include <$ac_header>
15832
_ACEOF
15833
if { (ac_try="$ac_cpp conftest.$ac_ext"
15834
case "(($ac_try" in
15835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836
  *) ac_try_echo=$ac_try;;
15837
esac
15838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15840
  ac_status=$?
15841
  grep -v '^ *+' conftest.er1 >conftest.err
15842
  rm -f conftest.er1
15843
  cat conftest.err >&5
15844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845
  (exit $ac_status); } >/dev/null && {
15846
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15847
	 test ! -s conftest.err
15848
       }; then
15849
  ac_header_preproc=yes
15850
else
15851
  echo "$as_me: failed program was:" >&5
15852
sed 's/^/| /' conftest.$ac_ext >&5
15853
15854
  ac_header_preproc=no
15855
fi
15856
15857
rm -f conftest.err conftest.$ac_ext
15858
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15859
echo "${ECHO_T}$ac_header_preproc" >&6; }
15860
15861
# So?  What about this header?
15862
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15863
  yes:no: )
15864
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15865
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15866
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15867
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15868
    ac_header_preproc=yes
15869
    ;;
15870
  no:yes:* )
15871
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15872
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15873
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15874
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15875
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15876
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15877
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15878
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15879
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15880
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15881
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15882
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15883
    ( cat <<\_ASBOX
15884
## --------------------------------- ##
15885
## Report this to hobu.inc@gmail.com ##
15886
## --------------------------------- ##
15887
_ASBOX
15888
     ) | sed "s/^/$as_me: WARNING:     /" >&2
15889
    ;;
15890
esac
15891
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15892
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15893
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15894
  echo $ECHO_N "(cached) $ECHO_C" >&6
15895
else
15896
  eval "$as_ac_Header=\$ac_header_preproc"
15897
fi
15898
ac_res=`eval echo '${'$as_ac_Header'}'`
15899
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15900
echo "${ECHO_T}$ac_res" >&6; }
15901
15902
fi
15903
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15904
  cat >>confdefs.h <<_ACEOF
15905
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15906
_ACEOF
15907
15908
else
15909
  { { echo "$as_me:$LINENO: error: cannot find stdlib.h, bailing out" >&5
15910
echo "$as_me: error: cannot find stdlib.h, bailing out" >&2;}
15911
   { (exit 1); exit 1; }; }
15912
fi
15913
15914
done
15915
15916
15917
15918
LIBS="${LIBS}"
15919
15920
15921
15922
# Check whether --enable-debug was given.
15923
if test "${enable_debug+set}" = set; then
15924
  enableval=$enable_debug;
15925
fi
15926
15927
15928
{ echo "$as_me:$LINENO: checking for debug enabled" >&5
15929
echo $ECHO_N "checking for debug enabled... $ECHO_C" >&6; }
15930
15931
if test "x$enable_debug" = "xyes"; then
15932
    CFLAGS="$CFLAGS -g -DDEBUG"
15933
    CXXFLAGS="$CXXFLAGS -g -DDEBUG"
15934
    { echo "$as_me:$LINENO: result: yes" >&5
15935
echo "${ECHO_T}yes" >&6; }
15936
else
15937
    CFLAGS="$CFLAGS -O3 -DNDEBUG"
15938
    CXXFLAGS="$CXXFLAGS -O3 -DNDEBUG"
15939
    { echo "$as_me:$LINENO: result: no" >&5
15940
echo "${ECHO_T}no" >&6; }
15941
fi
15942
15943
15944
15945
15946
15947
15948
15949
15950
HAVE_GDAL="no"
15951
GDAL_CONFIG="no"
15952
HAVE_GEOTIFF="no"
15953
GEOTIFF_CONFIG="no"
15954
15955
USE_GDAL_SOURCE_TREE="no"
15956
15957
15958
15959
# Check whether --with-gdal was given.
15960
if test "${with_gdal+set}" = set; then
15961
  withval=$with_gdal;
15962
fi
15963
15964
{ echo "$as_me:$LINENO: checking for GDAL" >&5
15965
echo $ECHO_N "checking for GDAL... $ECHO_C" >&6; }
15966
15967
if test "$with_gdal" = "no" -o "$with_gdal" = "" ; then
15968
    { echo "$as_me:$LINENO: result: no" >&5
15969
echo "${ECHO_T}no" >&6; }
15970
else
15971
15972
        if test "`basename xx/$with_gdal`" = "gdal-config" ; then
15973
        { echo "$as_me:$LINENO: result: GDAL enabled with provided gdal-config" >&5
15974
echo "${ECHO_T}GDAL enabled with provided gdal-config" >&6; }
15975
        GDAL_CONFIG="$with_gdal"
15976
    elif test -f ${with_gdal}/frmts/gtiff/libgeotiff/geotiff.h; then
15977
        GDAL_INC="-I$with_gdal/port -I$with_gdal/ogr -I$with_gdal/alg -I$with_gdal/frmts"
15978
        GDAL_PREFIX="$with_gdal"
15979
        HAVE_GDAL="yes"
15980
        HAVE_GEOTIFF="yes"
15981
        GEOTIFF_CONFIG="yes"
15982
        GDAL_CONFIG="yes"
15983
        USE_GDAL_SOURCE_TREE="yes"
15984
        LIBS="-L${with_gdal}/.libs -lgdal -L${with_gdal}/ -lgdal $LIBS"
15985
        { echo "$as_me:$LINENO: result: GDAL and GeoTIFF enabled with provided GDAL source tree" >&5
15986
echo "${ECHO_T}GDAL and GeoTIFF enabled with provided GDAL source tree" >&6; }
15987
    else
15988
                GDAL_CONFIG_TMP=`which gdal-config`
15989
        if test "`basename xx/${GDAL_CONFIG_TMP}`" = "gdal-config" ; then
15990
            { echo "$as_me:$LINENO: result: GDAL enabled with gdal-config found in PATH" >&5
15991
echo "${ECHO_T}GDAL enabled with gdal-config found in PATH" >&6; }
15992
            GDAL_CONFIG=${GDAL_CONFIG_TMP}
15993
        else
15994
            { { echo "$as_me:$LINENO: error: --with-gdal should be yes, a path to gdal-config, or a path to GDAL's source tree" >&5
15995
echo "$as_me: error: --with-gdal should be yes, a path to gdal-config, or a path to GDAL's source tree" >&2;}
15996
   { (exit 1); exit 1; }; }
15997
        fi
15998
    fi
15999
fi
16000
16001
if test "$GDAL_CONFIG" != "no" ; then
16002
16003
  if test "$GDAL_CONFIG" != "yes" ; then
16004
16005
    GDAL_VERSION=`$GDAL_CONFIG --version`
16006
    { echo "$as_me:$LINENO: result: $GDAL_CONFIG reports version $GDAL_VERSION" >&5
16007
echo "${ECHO_T}$GDAL_CONFIG reports version $GDAL_VERSION" >&6; }
16008
    LIBS="`$GDAL_CONFIG --libs` $LIBS"
16009
    GDAL_INC=`$GDAL_CONFIG --cflags`
16010
    GDAL_PREFIX=`$GDAL_CONFIG --prefix`
16011
    OGR=`$GDAL_CONFIG --ogr-enabled`
16012
    if test "$OGR" != "yes" ; then
16013
        { { echo "$as_me:$LINENO: error: $GDAL_CONFIG says OGR is not enabled" >&5
16014
echo "$as_me: error: $GDAL_CONFIG says OGR is not enabled" >&2;}
16015
   { (exit 1); exit 1; }; }
16016
    fi
16017
    HAVE_GDAL="yes"
16018
  fi
16019
fi
16020
16021
16022
16023
 if test ! x$GDAL_CONFIG = xno; then
16024
  GDAL_IS_CONFIG_TRUE=
16025
  GDAL_IS_CONFIG_FALSE='#'
16026
else
16027
  GDAL_IS_CONFIG_TRUE='#'
16028
  GDAL_IS_CONFIG_FALSE=
16029
fi
16030
16031
16032
16033
16034
# Check whether --with-geotiff was given.
16035
if test "${with_geotiff+set}" = set; then
16036
  withval=$with_geotiff;
16037
fi
16038
16039
16040
if test "$with_geotiff" != "no" -a "$with_geotiff" != "" -a "${GEOTIFF_CONFIG}" != "yes" ; then
16041
            { echo "$as_me:$LINENO: checking for ST_Create in -lgeotiff" >&5
16042
echo $ECHO_N "checking for ST_Create in -lgeotiff... $ECHO_C" >&6; }
16043
if test "${ac_cv_lib_geotiff_ST_Create+set}" = set; then
16044
  echo $ECHO_N "(cached) $ECHO_C" >&6
16045
else
16046
  ac_check_lib_save_LIBS=$LIBS
16047
LIBS="-lgeotiff -L$with_geotiff/lib $LIBS"
16048
cat >conftest.$ac_ext <<_ACEOF
16049
/* confdefs.h.  */
16050
_ACEOF
16051
cat confdefs.h >>conftest.$ac_ext
16052
cat >>conftest.$ac_ext <<_ACEOF
16053
/* end confdefs.h.  */
16054
16055
/* Override any GCC internal prototype to avoid an error.
16056
   Use char because int might match the return type of a GCC
16057
   builtin and then its argument prototype would still apply.  */
16058
#ifdef __cplusplus
16059
extern "C"
16060
#endif
16061
char ST_Create ();
16062
int
16063
main ()
16064
{
16065
return ST_Create ();
16066
  ;
16067
  return 0;
16068
}
16069
_ACEOF
16070
rm -f conftest.$ac_objext conftest$ac_exeext
16071
if { (ac_try="$ac_link"
16072
case "(($ac_try" in
16073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074
  *) ac_try_echo=$ac_try;;
16075
esac
16076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077
  (eval "$ac_link") 2>conftest.er1
16078
  ac_status=$?
16079
  grep -v '^ *+' conftest.er1 >conftest.err
16080
  rm -f conftest.er1
16081
  cat conftest.err >&5
16082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083
  (exit $ac_status); } && {
16084
	 test -z "$ac_c_werror_flag" ||
16085
	 test ! -s conftest.err
16086
       } && test -s conftest$ac_exeext &&
16087
       $as_test_x conftest$ac_exeext; then
16088
  ac_cv_lib_geotiff_ST_Create=yes
16089
else
16090
  echo "$as_me: failed program was:" >&5
16091
sed 's/^/| /' conftest.$ac_ext >&5
16092
16093
	ac_cv_lib_geotiff_ST_Create=no
16094
fi
16095
16096
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16097
      conftest$ac_exeext conftest.$ac_ext
16098
LIBS=$ac_check_lib_save_LIBS
16099
fi
16100
{ echo "$as_me:$LINENO: result: $ac_cv_lib_geotiff_ST_Create" >&5
16101
echo "${ECHO_T}$ac_cv_lib_geotiff_ST_Create" >&6; }
16102
if test $ac_cv_lib_geotiff_ST_Create = yes; then
16103
  GEOTIFF_CONFIG=external
16104
else
16105
  GEOTIFF_CONFIG=no
16106
fi
16107
16108
fi
16109
16110
if test "${GEOTIFF_CONFIG}" != "no" ; then
16111
        { echo "$as_me:$LINENO: checking for geo_simpletags.h of libgeotiff >= 1.2.5" >&5
16112
echo $ECHO_N "checking for geo_simpletags.h of libgeotiff >= 1.2.5... $ECHO_C" >&6; }
16113
    if test -f ${with_geotiff}/include/geo_simpletags.h ; then
16114
        GEOTIFF_INC="-I$with_geotiff/include"
16115
    { echo "$as_me:$LINENO: result: yes" >&5
16116
echo "${ECHO_T}yes" >&6; }
16117
    elif test -f ${with_geotiff}/include/geotiff/geo_simpletags.h ; then
16118
        GEOTIFF_INC="-I$with_geotiff/include/geotiff"
16119
    { echo "$as_me:$LINENO: result: yes" >&5
16120
echo "${ECHO_T}yes" >&6; }
16121
    elif test -f ${with_gdal}/frmts/gtiff/libgeotiff/geo_simpletags.h ; then
16122
        GEOTIFF_INC="-I$with_gdal/frmts/gtiff/libgeotiff/ -I$with_gdal/frmts/gtiff/libtiff"
16123
    { echo "$as_me:$LINENO: result: yes, from GDAL" >&5
16124
echo "${ECHO_T}yes, from GDAL" >&6; }
16125
    else
16126
        GEOTIFF_CONFIG="no"
16127
    { echo "$as_me:$LINENO: result: no" >&5
16128
echo "${ECHO_T}no" >&6; }
16129
    fi
16130
fi
16131
16132
{ echo "$as_me:$LINENO: checking for libgeotiff" >&5
16133
echo $ECHO_N "checking for libgeotiff... $ECHO_C" >&6; }
16134
if test "${GEOTIFF_CONFIG}" = "no" ; then
16135
    HAVE_GEOTIFF="no"
16136
    { echo "$as_me:$LINENO: result: no" >&5
16137
echo "${ECHO_T}no" >&6; }
16138
else
16139
    if test "${USE_GDAL_SOURCE_TREE}" != "yes" ; then
16140
        LIBS="-L$with_geotiff/lib -lgeotiff $LIBS"
16141
        HAVE_GEOTIFF="yes"
16142
        { echo "$as_me:$LINENO: result: yes" >&5
16143
echo "${ECHO_T}yes" >&6; }
16144
    else
16145
        { echo "$as_me:$LINENO: result: use GDAL source" >&5
16146
echo "${ECHO_T}use GDAL source" >&6; }
16147
    fi
16148
fi
16149
16150
16151
16152
 if test ! x$GEOTIFF_CONFIG = xno; then
16153
  GEOTIFF_IS_CONFIG_TRUE=
16154
  GEOTIFF_IS_CONFIG_FALSE='#'
16155
else
16156
  GEOTIFF_IS_CONFIG_TRUE='#'
16157
  GEOTIFF_IS_CONFIG_FALSE=
16158
fi
16159
16160
16161
16162
if test "${HAVE_GDAL}" != "no" ; then
16163
	if test "${GEOTIFF_CONFIG}" = "no" -a "${USE_GDAL_SOURCE_TREE}" != "yes"; then
16164
		{ { echo "$as_me:$LINENO: error: You must configure a libgeotiff if you are using GDAL binaries.  You can configure using a GDAL source tree without libgeotiff, but not from binaries." >&5
16165
echo "$as_me: error: You must configure a libgeotiff if you are using GDAL binaries.  You can configure using a GDAL source tree without libgeotiff, but not from binaries." >&2;}
16166
   { (exit 1); exit 1; }; }
16167
	fi
16168
fi
16169
16170
16171
16172
    { echo "$as_me:$LINENO: checking for 64bit integer type" >&5
16173
echo $ECHO_N "checking for 64bit integer type... $ECHO_C" >&6; }
16174
16175
    echo 'int main() { long long off=0; }' >> conftest.c
16176
    if test -z "`${CC} -o conftest conftest.c 2>&1`" ; then
16177
16178
cat >>confdefs.h <<\_ACEOF
16179
#define HAVE_LONG_LONG 1
16180
_ACEOF
16181
16182
        { echo "$as_me:$LINENO: result: long long" >&5
16183
echo "${ECHO_T}long long" >&6; }
16184
    else
16185
        { echo "$as_me:$LINENO: result: no" >&5
16186
echo "${ECHO_T}no" >&6; }
16187
    fi
16188
    rm -f conftest*
16189
16190
16191
16192
16193
16194
16195
16196
16197
for ac_func in gettimeofday bzero memset memcpy bcopy
16198
do
16199
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16200
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16201
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16202
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16203
  echo $ECHO_N "(cached) $ECHO_C" >&6
16204
else
16205
  cat >conftest.$ac_ext <<_ACEOF
16206
/* confdefs.h.  */
16207
_ACEOF
16208
cat confdefs.h >>conftest.$ac_ext
16209
cat >>conftest.$ac_ext <<_ACEOF
16210
/* end confdefs.h.  */
16211
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16212
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16213
#define $ac_func innocuous_$ac_func
16214
16215
/* System header to define __stub macros and hopefully few prototypes,
16216
    which can conflict with char $ac_func (); below.
16217
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16218
    <limits.h> exists even on freestanding compilers.  */
16219
16220
#ifdef __STDC__
16221
# include <limits.h>
16222
#else
16223
# include <assert.h>
16224
#endif
16225
16226
#undef $ac_func
16227
16228
/* Override any GCC internal prototype to avoid an error.
16229
   Use char because int might match the return type of a GCC
16230
   builtin and then its argument prototype would still apply.  */
16231
#ifdef __cplusplus
16232
extern "C"
16233
#endif
16234
char $ac_func ();
16235
/* The GNU C library defines this for functions which it implements
16236
    to always fail with ENOSYS.  Some functions are actually named
16237
    something starting with __ and the normal name is an alias.  */
16238
#if defined __stub_$ac_func || defined __stub___$ac_func
16239
choke me
16240
#endif
16241
16242
int
16243
main ()
16244
{
16245
return $ac_func ();
16246
  ;
16247
  return 0;
16248
}
16249
_ACEOF
16250
rm -f conftest.$ac_objext conftest$ac_exeext
16251
if { (ac_try="$ac_link"
16252
case "(($ac_try" in
16253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254
  *) ac_try_echo=$ac_try;;
16255
esac
16256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257
  (eval "$ac_link") 2>conftest.er1
16258
  ac_status=$?
16259
  grep -v '^ *+' conftest.er1 >conftest.err
16260
  rm -f conftest.er1
16261
  cat conftest.err >&5
16262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263
  (exit $ac_status); } && {
16264
	 test -z "$ac_c_werror_flag" ||
16265
	 test ! -s conftest.err
16266
       } && test -s conftest$ac_exeext &&
16267
       $as_test_x conftest$ac_exeext; then
16268
  eval "$as_ac_var=yes"
16269
else
16270
  echo "$as_me: failed program was:" >&5
16271
sed 's/^/| /' conftest.$ac_ext >&5
16272
16273
	eval "$as_ac_var=no"
16274
fi
16275
16276
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16277
      conftest$ac_exeext conftest.$ac_ext
16278
fi
16279
ac_res=`eval echo '${'$as_ac_var'}'`
16280
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16281
echo "${ECHO_T}$ac_res" >&6; }
16282
if test `eval echo '${'$as_ac_var'}'` = yes; then
16283
  cat >>confdefs.h <<_ACEOF
16284
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16285
_ACEOF
16286
16287
fi
16288
done
16289
16290
16291
16292
ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile apps/Makefile apps/liblas-config test/Makefile test/unit/Makefile"
16293
16294
16295
cat >confcache <<\_ACEOF
16296
# This file is a shell script that caches the results of configure
16297
# tests run on this system so they can be shared between configure
16298
# scripts and configure runs, see configure's option --config-cache.
16299
# It is not useful on other systems.  If it contains results you don't
16300
# want to keep, you may remove or edit it.
16301
#
16302
# config.status only pays attention to the cache file if you give it
16303
# the --recheck option to rerun configure.
16304
#
16305
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16306
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16307
# following values.
16308
16309
_ACEOF
16310
16311
# The following way of writing the cache mishandles newlines in values,
16312
# but we know of no workaround that is simple, portable, and efficient.
16313
# So, we kill variables containing newlines.
16314
# Ultrix sh set writes to stderr and can't be redirected directly,
16315
# and sets the high bit in the cache file unless we assign to the vars.
16316
(
16317
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16318
    eval ac_val=\$$ac_var
16319
    case $ac_val in #(
16320
    *${as_nl}*)
16321
      case $ac_var in #(
16322
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16323
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16324
      esac
16325
      case $ac_var in #(
16326
      _ | IFS | as_nl) ;; #(
16327
      *) $as_unset $ac_var ;;
16328
      esac ;;
16329
    esac
16330
  done
16331
16332
  (set) 2>&1 |
16333
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16334
    *${as_nl}ac_space=\ *)
16335
      # `set' does not quote correctly, so add quotes (double-quote
16336
      # substitution turns \\\\ into \\, and sed turns \\ into \).
16337
      sed -n \
16338
	"s/'/'\\\\''/g;
16339
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16340
      ;; #(
16341
    *)
16342
      # `set' quotes correctly as required by POSIX, so do not add quotes.
16343
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16344
      ;;
16345
    esac |
16346
    sort
16347
) |
16348
  sed '
16349
     /^ac_cv_env_/b end
16350
     t clear
16351
     :clear
16352
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16353
     t end
16354
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16355
     :end' >>confcache
16356
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16357
  if test -w "$cache_file"; then
16358
    test "x$cache_file" != "x/dev/null" &&
16359
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16360
echo "$as_me: updating cache $cache_file" >&6;}
16361
    cat confcache >$cache_file
16362
  else
16363
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16364
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16365
  fi
16366
fi
16367
rm -f confcache
16368
16369
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16370
# Let make expand exec_prefix.
16371
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16372
16373
# Transform confdefs.h into DEFS.
16374
# Protect against shell expansion while executing Makefile rules.
16375
# Protect against Makefile macro expansion.
16376
#
16377
# If the first sed substitution is executed (which looks for macros that
16378
# take arguments), then branch to the quote section.  Otherwise,
16379
# look for a macro that doesn't take arguments.
16380
ac_script='
16381
t clear
16382
:clear
16383
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
16384
t quote
16385
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
16386
t quote
16387
b any
16388
:quote
16389
s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16390
s/\[/\\&/g
16391
s/\]/\\&/g
16392
s/\$/$$/g
16393
H
16394
:any
16395
${
16396
	g
16397
	s/^\n//
16398
	s/\n/ /g
16399
	p
16400
}
16401
'
16402
DEFS=`sed -n "$ac_script" confdefs.h`
16403
16404
16405
ac_libobjs=
16406
ac_ltlibobjs=
16407
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16408
  # 1. Remove the extension, and $U if already installed.
16409
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16410
  ac_i=`echo "$ac_i" | sed "$ac_script"`
16411
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16412
  #    will be set to the directory where LIBOBJS objects are built.
16413
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16414
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16415
done
16416
LIBOBJS=$ac_libobjs
16417
16418
LTLIBOBJS=$ac_ltlibobjs
16419
16420
16421
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16422
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16423
Usually this means the macro was only invoked conditionally." >&5
16424
echo "$as_me: error: conditional \"AMDEP\" was never defined.
16425
Usually this means the macro was only invoked conditionally." >&2;}
16426
   { (exit 1); exit 1; }; }
16427
fi
16428
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16429
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16430
Usually this means the macro was only invoked conditionally." >&5
16431
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16432
Usually this means the macro was only invoked conditionally." >&2;}
16433
   { (exit 1); exit 1; }; }
16434
fi
16435
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16436
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16437
Usually this means the macro was only invoked conditionally." >&5
16438
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16439
Usually this means the macro was only invoked conditionally." >&2;}
16440
   { (exit 1); exit 1; }; }
16441
fi
16442
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16443
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16444
Usually this means the macro was only invoked conditionally." >&5
16445
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16446
Usually this means the macro was only invoked conditionally." >&2;}
16447
   { (exit 1); exit 1; }; }
16448
fi
16449
if test -z "${GDAL_IS_CONFIG_TRUE}" && test -z "${GDAL_IS_CONFIG_FALSE}"; then
16450
  { { echo "$as_me:$LINENO: error: conditional \"GDAL_IS_CONFIG\" was never defined.
16451
Usually this means the macro was only invoked conditionally." >&5
16452
echo "$as_me: error: conditional \"GDAL_IS_CONFIG\" was never defined.
16453
Usually this means the macro was only invoked conditionally." >&2;}
16454
   { (exit 1); exit 1; }; }
16455
fi
16456
if test -z "${GEOTIFF_IS_CONFIG_TRUE}" && test -z "${GEOTIFF_IS_CONFIG_FALSE}"; then
16457
  { { echo "$as_me:$LINENO: error: conditional \"GEOTIFF_IS_CONFIG\" was never defined.
16458
Usually this means the macro was only invoked conditionally." >&5
16459
echo "$as_me: error: conditional \"GEOTIFF_IS_CONFIG\" was never defined.
16460
Usually this means the macro was only invoked conditionally." >&2;}
16461
   { (exit 1); exit 1; }; }
16462
fi
16463
16464
: ${CONFIG_STATUS=./config.status}
16465
ac_clean_files_save=$ac_clean_files
16466
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16467
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16468
echo "$as_me: creating $CONFIG_STATUS" >&6;}
16469
cat >$CONFIG_STATUS <<_ACEOF
16470
#! $SHELL
16471
# Generated by $as_me.
16472
# Run this file to recreate the current configuration.
16473
# Compiler output produced by configure, useful for debugging
16474
# configure, is in config.log if it exists.
16475
16476
debug=false
16477
ac_cs_recheck=false
16478
ac_cs_silent=false
16479
SHELL=\${CONFIG_SHELL-$SHELL}
16480
_ACEOF
16481
16482
cat >>$CONFIG_STATUS <<\_ACEOF
16483
## --------------------- ##
16484
## M4sh Initialization.  ##
16485
## --------------------- ##
16486
16487
# Be more Bourne compatible
16488
DUALCASE=1; export DUALCASE # for MKS sh
16489
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16490
  emulate sh
16491
  NULLCMD=:
16492
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16493
  # is contrary to our usage.  Disable this feature.
16494
  alias -g '${1+"$@"}'='"$@"'
16495
  setopt NO_GLOB_SUBST
16496
else
16497
  case `(set -o) 2>/dev/null` in
16498
  *posix*) set -o posix ;;
16499
esac
16500
16501
fi
16502
16503
16504
16505
16506
# PATH needs CR
16507
# Avoid depending upon Character Ranges.
16508
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16509
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16510
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16511
as_cr_digits='0123456789'
16512
as_cr_alnum=$as_cr_Letters$as_cr_digits
16513
16514
# The user is always right.
16515
if test "${PATH_SEPARATOR+set}" != set; then
16516
  echo "#! /bin/sh" >conf$$.sh
16517
  echo  "exit 0"   >>conf$$.sh
16518
  chmod +x conf$$.sh
16519
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16520
    PATH_SEPARATOR=';'
16521
  else
16522
    PATH_SEPARATOR=:
16523
  fi
16524
  rm -f conf$$.sh
16525
fi
16526
16527
# Support unset when possible.
16528
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16529
  as_unset=unset
16530
else
16531
  as_unset=false
16532
fi
16533
16534
16535
# IFS
16536
# We need space, tab and new line, in precisely that order.  Quoting is
16537
# there to prevent editors from complaining about space-tab.
16538
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16539
# splitting by setting IFS to empty value.)
16540
as_nl='
16541
'
16542
IFS=" ""	$as_nl"
16543
16544
# Find who we are.  Look in the path if we contain no directory separator.
16545
case $0 in
16546
  *[\\/]* ) as_myself=$0 ;;
16547
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16548
for as_dir in $PATH
16549
do
16550
  IFS=$as_save_IFS
16551
  test -z "$as_dir" && as_dir=.
16552
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16553
done
16554
IFS=$as_save_IFS
16555
16556
     ;;
16557
esac
16558
# We did not find ourselves, most probably we were run as `sh COMMAND'
16559
# in which case we are not to be found in the path.
16560
if test "x$as_myself" = x; then
16561
  as_myself=$0
16562
fi
16563
if test ! -f "$as_myself"; then
16564
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16565
  { (exit 1); exit 1; }
16566
fi
16567
16568
# Work around bugs in pre-3.0 UWIN ksh.
16569
for as_var in ENV MAIL MAILPATH
16570
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16571
done
16572
PS1='$ '
16573
PS2='> '
16574
PS4='+ '
16575
16576
# NLS nuisances.
16577
for as_var in \
16578
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16579
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16580
  LC_TELEPHONE LC_TIME
16581
do
16582
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16583
    eval $as_var=C; export $as_var
16584
  else
16585
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16586
  fi
16587
done
16588
16589
# Required to use basename.
16590
if expr a : '\(a\)' >/dev/null 2>&1 &&
16591
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16592
  as_expr=expr
16593
else
16594
  as_expr=false
16595
fi
16596
16597
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16598
  as_basename=basename
16599
else
16600
  as_basename=false
16601
fi
16602
16603
16604
# Name of the executable.
16605
as_me=`$as_basename -- "$0" ||
16606
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16607
	 X"$0" : 'X\(//\)$' \| \
16608
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16609
echo X/"$0" |
16610
    sed '/^.*\/\([^/][^/]*\)\/*$/{
16611
	    s//\1/
16612
	    q
16613
	  }
16614
	  /^X\/\(\/\/\)$/{
16615
	    s//\1/
16616
	    q
16617
	  }
16618
	  /^X\/\(\/\).*/{
16619
	    s//\1/
16620
	    q
16621
	  }
16622
	  s/.*/./; q'`
16623
16624
# CDPATH.
16625
$as_unset CDPATH
16626
16627
16628
16629
  as_lineno_1=$LINENO
16630
  as_lineno_2=$LINENO
16631
  test "x$as_lineno_1" != "x$as_lineno_2" &&
16632
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16633
16634
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16635
  # uniformly replaced by the line number.  The first 'sed' inserts a
16636
  # line-number line after each line using $LINENO; the second 'sed'
16637
  # does the real work.  The second script uses 'N' to pair each
16638
  # line-number line with the line containing $LINENO, and appends
16639
  # trailing '-' during substitution so that $LINENO is not a special
16640
  # case at line end.
16641
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16642
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
16643
  # E. McMahon (1931-1989) for sed's syntax.  :-)
16644
  sed -n '
16645
    p
16646
    /[$]LINENO/=
16647
  ' <$as_myself |
16648
    sed '
16649
      s/[$]LINENO.*/&-/
16650
      t lineno
16651
      b
16652
      :lineno
16653
      N
16654
      :loop
16655
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16656
      t loop
16657
      s/-\n.*//
16658
    ' >$as_me.lineno &&
16659
  chmod +x "$as_me.lineno" ||
16660
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16661
   { (exit 1); exit 1; }; }
16662
16663
  # Don't try to exec as it changes $[0], causing all sort of problems
16664
  # (the dirname of $[0] is not the place where we might find the
16665
  # original and so on.  Autoconf is especially sensitive to this).
16666
  . "./$as_me.lineno"
16667
  # Exit status is that of the last command.
16668
  exit
16669
}
16670
16671
16672
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16673
  as_dirname=dirname
16674
else
16675
  as_dirname=false
16676
fi
16677
16678
ECHO_C= ECHO_N= ECHO_T=
16679
case `echo -n x` in
16680
-n*)
16681
  case `echo 'x\c'` in
16682
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16683
  *)   ECHO_C='\c';;
16684
  esac;;
16685
*)
16686
  ECHO_N='-n';;
16687
esac
16688
16689
if expr a : '\(a\)' >/dev/null 2>&1 &&
16690
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16691
  as_expr=expr
16692
else
16693
  as_expr=false
16694
fi
16695
16696
rm -f conf$$ conf$$.exe conf$$.file
16697
if test -d conf$$.dir; then
16698
  rm -f conf$$.dir/conf$$.file
16699
else
16700
  rm -f conf$$.dir
16701
  mkdir conf$$.dir
16702
fi
16703
echo >conf$$.file
16704
if ln -s conf$$.file conf$$ 2>/dev/null; then
16705
  as_ln_s='ln -s'
16706
  # ... but there are two gotchas:
16707
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16708
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16709
  # In both cases, we have to default to `cp -p'.
16710
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16711
    as_ln_s='cp -p'
16712
elif ln conf$$.file conf$$ 2>/dev/null; then
16713
  as_ln_s=ln
16714
else
16715
  as_ln_s='cp -p'
16716
fi
16717
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16718
rmdir conf$$.dir 2>/dev/null
16719
16720
if mkdir -p . 2>/dev/null; then
16721
  as_mkdir_p=:
16722
else
16723
  test -d ./-p && rmdir ./-p
16724
  as_mkdir_p=false
16725
fi
16726
16727
if test -x / >/dev/null 2>&1; then
16728
  as_test_x='test -x'
16729
else
16730
  if ls -dL / >/dev/null 2>&1; then
16731
    as_ls_L_option=L
16732
  else
16733
    as_ls_L_option=
16734
  fi
16735
  as_test_x='
16736
    eval sh -c '\''
16737
      if test -d "$1"; then
16738
        test -d "$1/.";
16739
      else
16740
	case $1 in
16741
        -*)set "./$1";;
16742
	esac;
16743
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16744
	???[sx]*):;;*)false;;esac;fi
16745
    '\'' sh
16746
  '
16747
fi
16748
as_executable_p=$as_test_x
16749
16750
# Sed expression to map a string onto a valid CPP name.
16751
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16752
16753
# Sed expression to map a string onto a valid variable name.
16754
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16755
16756
16757
exec 6>&1
16758
16759
# Save the log message, to keep $[0] and so on meaningful, and to
16760
# report actual input values of CONFIG_FILES etc. instead of their
16761
# values after options handling.
16762
ac_log="
16763
This file was extended by las $as_me 1.2.1, which was
16764
generated by GNU Autoconf 2.61.  Invocation command line was
16765
16766
  CONFIG_FILES    = $CONFIG_FILES
16767
  CONFIG_HEADERS  = $CONFIG_HEADERS
16768
  CONFIG_LINKS    = $CONFIG_LINKS
16769
  CONFIG_COMMANDS = $CONFIG_COMMANDS
16770
  $ $0 $@
16771
16772
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16773
"
16774
16775
_ACEOF
16776
16777
cat >>$CONFIG_STATUS <<_ACEOF
16778
# Files that config.status was made for.
16779
config_files="$ac_config_files"
16780
config_commands="$ac_config_commands"
16781
16782
_ACEOF
16783
16784
cat >>$CONFIG_STATUS <<\_ACEOF
16785
ac_cs_usage="\
16786
\`$as_me' instantiates files from templates according to the
16787
current configuration.
16788
16789
Usage: $0 [OPTIONS] [FILE]...
16790
16791
  -h, --help       print this help, then exit
16792
  -V, --version    print version number and configuration settings, then exit
16793
  -q, --quiet      do not print progress messages
16794
  -d, --debug      don't remove temporary files
16795
      --recheck    update $as_me by reconfiguring in the same conditions
16796
  --file=FILE[:TEMPLATE]
16797
		   instantiate the configuration file FILE
16798
16799
Configuration files:
16800
$config_files
16801
16802
Configuration commands:
16803
$config_commands
16804
16805
Report bugs to <bug-autoconf@gnu.org>."
16806
16807
_ACEOF
16808
cat >>$CONFIG_STATUS <<_ACEOF
16809
ac_cs_version="\\
16810
las config.status 1.2.1
16811
configured by $0, generated by GNU Autoconf 2.61,
16812
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16813
16814
Copyright (C) 2006 Free Software Foundation, Inc.
16815
This config.status script is free software; the Free Software Foundation
16816
gives unlimited permission to copy, distribute and modify it."
16817
16818
ac_pwd='$ac_pwd'
16819
srcdir='$srcdir'
16820
INSTALL='$INSTALL'
16821
MKDIR_P='$MKDIR_P'
16822
_ACEOF
16823
16824
cat >>$CONFIG_STATUS <<\_ACEOF
16825
# If no file are specified by the user, then we need to provide default
16826
# value.  By we need to know if files were specified by the user.
16827
ac_need_defaults=:
16828
while test $# != 0
16829
do
16830
  case $1 in
16831
  --*=*)
16832
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16833
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16834
    ac_shift=:
16835
    ;;
16836
  *)
16837
    ac_option=$1
16838
    ac_optarg=$2
16839
    ac_shift=shift
16840
    ;;
16841
  esac
16842
16843
  case $ac_option in
16844
  # Handling of the options.
16845
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16846
    ac_cs_recheck=: ;;
16847
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16848
    echo "$ac_cs_version"; exit ;;
16849
  --debug | --debu | --deb | --de | --d | -d )
16850
    debug=: ;;
16851
  --file | --fil | --fi | --f )
16852
    $ac_shift
16853
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16854
    ac_need_defaults=false;;
16855
  --he | --h |  --help | --hel | -h )
16856
    echo "$ac_cs_usage"; exit ;;
16857
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16858
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16859
    ac_cs_silent=: ;;
16860
16861
  # This is an error.
16862
  -*) { echo "$as_me: error: unrecognized option: $1
16863
Try \`$0 --help' for more information." >&2
16864
   { (exit 1); exit 1; }; } ;;
16865
16866
  *) ac_config_targets="$ac_config_targets $1"
16867
     ac_need_defaults=false ;;
16868
16869
  esac
16870
  shift
16871
done
16872
16873
ac_configure_extra_args=
16874
16875
if $ac_cs_silent; then
16876
  exec 6>/dev/null
16877
  ac_configure_extra_args="$ac_configure_extra_args --silent"
16878
fi
16879
16880
_ACEOF
16881
cat >>$CONFIG_STATUS <<_ACEOF
16882
if \$ac_cs_recheck; then
16883
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16884
  CONFIG_SHELL=$SHELL
16885
  export CONFIG_SHELL
16886
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16887
fi
16888
16889
_ACEOF
16890
cat >>$CONFIG_STATUS <<\_ACEOF
16891
exec 5>>config.log
16892
{
16893
  echo
16894
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16895
## Running $as_me. ##
16896
_ASBOX
16897
  echo "$ac_log"
16898
} >&5
16899
16900
_ACEOF
16901
cat >>$CONFIG_STATUS <<_ACEOF
16902
#
16903
# INIT-COMMANDS
16904
#
16905
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16906
16907
16908
# The HP-UX ksh and POSIX shell print the target directory to stdout
16909
# if CDPATH is set.
16910
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16911
16912
sed_quote_subst='$sed_quote_subst'
16913
double_quote_subst='$double_quote_subst'
16914
delay_variable_subst='$delay_variable_subst'
16915
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16916
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16917
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16918
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16919
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16920
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16921
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16922
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16923
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16924
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16925
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16926
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16927
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16928
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16929
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16930
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16931
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16932
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16933
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16934
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16935
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16936
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16937
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16938
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16939
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16940
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16941
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16942
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16943
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16944
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16945
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16946
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16947
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16948
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16949
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16950
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16951
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16952
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16953
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16954
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16955
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16956
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16957
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16958
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"`'
16959
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"`'
16960
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16961
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16962
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16963
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16964
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16965
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16966
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16967
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16968
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16969
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16970
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16971
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16972
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16973
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16974
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16975
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16976
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16977
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16978
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16979
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16980
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16981
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16982
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16983
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16984
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16985
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16986
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16987
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16988
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16989
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16990
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16991
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16992
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16993
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16994
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16995
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16996
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16997
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16998
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16999
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17000
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17001
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17002
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17003
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17004
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17005
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17006
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17007
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17008
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17009
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17010
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17011
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17012
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17013
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17014
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17015
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17016
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17017
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17018
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17019
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17020
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17021
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17022
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17023
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17024
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17025
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17026
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17027
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17028
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17029
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17030
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17031
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17032
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17033
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17034
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17035
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17036
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17037
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17038
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17039
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17040
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17041
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17042
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17043
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17044
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17045
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17046
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17047
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17048
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17049
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17050
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17051
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17052
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17053
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17054
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17055
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17056
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17057
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17058
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17059
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17060
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17061
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17062
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17063
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17064
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17065
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17066
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17067
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17068
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17069
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17070
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17071
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17072
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17073
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17074
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17075
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17076
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17077
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17078
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17079
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17080
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17081
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17082
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17083
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17084
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17085
17086
LTCC='$LTCC'
17087
LTCFLAGS='$LTCFLAGS'
17088
compiler='$compiler_DEFAULT'
17089
17090
# Quote evaled strings.
17091
for var in SED \
17092
GREP \
17093
EGREP \
17094
FGREP \
17095
LD \
17096
NM \
17097
LN_S \
17098
lt_SP2NL \
17099
lt_NL2SP \
17100
reload_flag \
17101
deplibs_check_method \
17102
file_magic_cmd \
17103
AR \
17104
AR_FLAGS \
17105
STRIP \
17106
RANLIB \
17107
CC \
17108
CFLAGS \
17109
compiler \
17110
lt_cv_sys_global_symbol_pipe \
17111
lt_cv_sys_global_symbol_to_cdecl \
17112
lt_cv_sys_global_symbol_to_c_name_address \
17113
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17114
SHELL \
17115
ECHO \
17116
lt_prog_compiler_no_builtin_flag \
17117
lt_prog_compiler_wl \
17118
lt_prog_compiler_pic \
17119
lt_prog_compiler_static \
17120
lt_cv_prog_compiler_c_o \
17121
need_locks \
17122
DSYMUTIL \
17123
NMEDIT \
17124
LIPO \
17125
OTOOL \
17126
OTOOL64 \
17127
shrext_cmds \
17128
export_dynamic_flag_spec \
17129
whole_archive_flag_spec \
17130
compiler_needs_object \
17131
with_gnu_ld \
17132
allow_undefined_flag \
17133
no_undefined_flag \
17134
hardcode_libdir_flag_spec \
17135
hardcode_libdir_flag_spec_ld \
17136
hardcode_libdir_separator \
17137
fix_srcfile_path \
17138
exclude_expsyms \
17139
include_expsyms \
17140
file_list_spec \
17141
variables_saved_for_relink \
17142
libname_spec \
17143
library_names_spec \
17144
soname_spec \
17145
finish_eval \
17146
old_striplib \
17147
striplib \
17148
compiler_lib_search_dirs \
17149
predep_objects \
17150
postdep_objects \
17151
predeps \
17152
postdeps \
17153
compiler_lib_search_path \
17154
LD_CXX \
17155
compiler_CXX \
17156
lt_prog_compiler_no_builtin_flag_CXX \
17157
lt_prog_compiler_wl_CXX \
17158
lt_prog_compiler_pic_CXX \
17159
lt_prog_compiler_static_CXX \
17160
lt_cv_prog_compiler_c_o_CXX \
17161
export_dynamic_flag_spec_CXX \
17162
whole_archive_flag_spec_CXX \
17163
compiler_needs_object_CXX \
17164
with_gnu_ld_CXX \
17165
allow_undefined_flag_CXX \
17166
no_undefined_flag_CXX \
17167
hardcode_libdir_flag_spec_CXX \
17168
hardcode_libdir_flag_spec_ld_CXX \
17169
hardcode_libdir_separator_CXX \
17170
fix_srcfile_path_CXX \
17171
exclude_expsyms_CXX \
17172
include_expsyms_CXX \
17173
file_list_spec_CXX \
17174
compiler_lib_search_dirs_CXX \
17175
predep_objects_CXX \
17176
postdep_objects_CXX \
17177
predeps_CXX \
17178
postdeps_CXX \
17179
compiler_lib_search_path_CXX; do
17180
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17181
    *[\\\\\\\`\\"\\\$]*)
17182
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17183
      ;;
17184
    *)
17185
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17186
      ;;
17187
    esac
17188
done
17189
17190
# Double-quote double-evaled strings.
17191
for var in reload_cmds \
17192
old_postinstall_cmds \
17193
old_postuninstall_cmds \
17194
old_archive_cmds \
17195
extract_expsyms_cmds \
17196
old_archive_from_new_cmds \
17197
old_archive_from_expsyms_cmds \
17198
archive_cmds \
17199
archive_expsym_cmds \
17200
module_cmds \
17201
module_expsym_cmds \
17202
export_symbols_cmds \
17203
prelink_cmds \
17204
postinstall_cmds \
17205
postuninstall_cmds \
17206
finish_cmds \
17207
sys_lib_search_path_spec \
17208
sys_lib_dlsearch_path_spec \
17209
old_archive_cmds_CXX \
17210
old_archive_from_new_cmds_CXX \
17211
old_archive_from_expsyms_cmds_CXX \
17212
archive_cmds_CXX \
17213
archive_expsym_cmds_CXX \
17214
module_cmds_CXX \
17215
module_expsym_cmds_CXX \
17216
export_symbols_cmds_CXX \
17217
prelink_cmds_CXX; do
17218
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17219
    *[\\\\\\\`\\"\\\$]*)
17220
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17221
      ;;
17222
    *)
17223
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17224
      ;;
17225
    esac
17226
done
17227
17228
# Fix-up fallback echo if it was mangled by the above quoting rules.
17229
case \$lt_ECHO in
17230
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17231
  ;;
17232
esac
17233
17234
ac_aux_dir='$ac_aux_dir'
17235
xsi_shell='$xsi_shell'
17236
lt_shell_append='$lt_shell_append'
17237
17238
# See if we are running on zsh, and set the options which allow our
17239
# commands through without removal of \ escapes INIT.
17240
if test -n "\${ZSH_VERSION+set}" ; then
17241
   setopt NO_GLOB_SUBST
17242
fi
17243
17244
17245
    PACKAGE='$PACKAGE'
17246
    VERSION='$VERSION'
17247
    TIMESTAMP='$TIMESTAMP'
17248
    RM='$RM'
17249
    ofile='$ofile'
17250
17251
17252
17253
17254
17255
17256
_ACEOF
17257
17258
cat >>$CONFIG_STATUS <<\_ACEOF
17259
17260
# Handling of arguments.
17261
for ac_config_target in $ac_config_targets
17262
do
17263
  case $ac_config_target in
17264
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17265
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17266
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17267
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17268
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17269
    "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
17270
    "apps/liblas-config") CONFIG_FILES="$CONFIG_FILES apps/liblas-config" ;;
17271
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
17272
    "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
17273
17274
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17275
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17276
   { (exit 1); exit 1; }; };;
17277
  esac
17278
done
17279
17280
17281
# If the user did not use the arguments to specify the items to instantiate,
17282
# then the envvar interface is used.  Set only those that are not.
17283
# We use the long form for the default assignment because of an extremely
17284
# bizarre bug on SunOS 4.1.3.
17285
if $ac_need_defaults; then
17286
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17287
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17288
fi
17289
17290
# Have a temporary directory for convenience.  Make it in the build tree
17291
# simply because there is no reason against having it here, and in addition,
17292
# creating and moving files from /tmp can sometimes cause problems.
17293
# Hook for its removal unless debugging.
17294
# Note that there is a small window in which the directory will not be cleaned:
17295
# after its creation but before its name has been assigned to `$tmp'.
17296
$debug ||
17297
{
17298
  tmp=
17299
  trap 'exit_status=$?
17300
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17301
' 0
17302
  trap '{ (exit 1); exit 1; }' 1 2 13 15
17303
}
17304
# Create a (secure) tmp directory for tmp files.
17305
17306
{
17307
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17308
  test -n "$tmp" && test -d "$tmp"
17309
}  ||
17310
{
17311
  tmp=./conf$$-$RANDOM
17312
  (umask 077 && mkdir "$tmp")
17313
} ||
17314
{
17315
   echo "$me: cannot create a temporary directory in ." >&2
17316
   { (exit 1); exit 1; }
17317
}
17318
17319
#
17320
# Set up the sed scripts for CONFIG_FILES section.
17321
#
17322
17323
# No need to generate the scripts if there are no CONFIG_FILES.
17324
# This happens for instance when ./config.status config.h
17325
if test -n "$CONFIG_FILES"; then
17326
17327
_ACEOF
17328
17329
17330
17331
ac_delim='%!_!# '
17332
for ac_last_try in false false false false false :; do
17333
  cat >conf$$subs.sed <<_ACEOF
17334
SHELL!$SHELL$ac_delim
17335
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17336
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17337
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17338
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17339
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17340
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17341
exec_prefix!$exec_prefix$ac_delim
17342
prefix!$prefix$ac_delim
17343
program_transform_name!$program_transform_name$ac_delim
17344
bindir!$bindir$ac_delim
17345
sbindir!$sbindir$ac_delim
17346
libexecdir!$libexecdir$ac_delim
17347
datarootdir!$datarootdir$ac_delim
17348
datadir!$datadir$ac_delim
17349
sysconfdir!$sysconfdir$ac_delim
17350
sharedstatedir!$sharedstatedir$ac_delim
17351
localstatedir!$localstatedir$ac_delim
17352
includedir!$includedir$ac_delim
17353
oldincludedir!$oldincludedir$ac_delim
17354
docdir!$docdir$ac_delim
17355
infodir!$infodir$ac_delim
17356
htmldir!$htmldir$ac_delim
17357
dvidir!$dvidir$ac_delim
17358
pdfdir!$pdfdir$ac_delim
17359
psdir!$psdir$ac_delim
17360
libdir!$libdir$ac_delim
17361
localedir!$localedir$ac_delim
17362
mandir!$mandir$ac_delim
17363
DEFS!$DEFS$ac_delim
17364
ECHO_C!$ECHO_C$ac_delim
17365
ECHO_N!$ECHO_N$ac_delim
17366
ECHO_T!$ECHO_T$ac_delim
17367
LIBS!$LIBS$ac_delim
17368
build_alias!$build_alias$ac_delim
17369
host_alias!$host_alias$ac_delim
17370
target_alias!$target_alias$ac_delim
17371
build!$build$ac_delim
17372
build_cpu!$build_cpu$ac_delim
17373
build_vendor!$build_vendor$ac_delim
17374
build_os!$build_os$ac_delim
17375
RELEASE_VERSION!$RELEASE_VERSION$ac_delim
17376
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17377
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17378
INSTALL_DATA!$INSTALL_DATA$ac_delim
17379
am__isrc!$am__isrc$ac_delim
17380
CYGPATH_W!$CYGPATH_W$ac_delim
17381
PACKAGE!$PACKAGE$ac_delim
17382
VERSION!$VERSION$ac_delim
17383
ACLOCAL!$ACLOCAL$ac_delim
17384
AUTOCONF!$AUTOCONF$ac_delim
17385
AUTOMAKE!$AUTOMAKE$ac_delim
17386
AUTOHEADER!$AUTOHEADER$ac_delim
17387
MAKEINFO!$MAKEINFO$ac_delim
17388
install_sh!$install_sh$ac_delim
17389
STRIP!$STRIP$ac_delim
17390
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
17391
mkdir_p!$mkdir_p$ac_delim
17392
AWK!$AWK$ac_delim
17393
SET_MAKE!$SET_MAKE$ac_delim
17394
am__leading_dot!$am__leading_dot$ac_delim
17395
AMTAR!$AMTAR$ac_delim
17396
am__tar!$am__tar$ac_delim
17397
am__untar!$am__untar$ac_delim
17398
CXX!$CXX$ac_delim
17399
CXXFLAGS!$CXXFLAGS$ac_delim
17400
LDFLAGS!$LDFLAGS$ac_delim
17401
CPPFLAGS!$CPPFLAGS$ac_delim
17402
ac_ct_CXX!$ac_ct_CXX$ac_delim
17403
EXEEXT!$EXEEXT$ac_delim
17404
OBJEXT!$OBJEXT$ac_delim
17405
DEPDIR!$DEPDIR$ac_delim
17406
am__include!$am__include$ac_delim
17407
am__quote!$am__quote$ac_delim
17408
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
17409
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
17410
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
17411
CXXDEPMODE!$CXXDEPMODE$ac_delim
17412
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
17413
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
17414
CXXCPP!$CXXCPP$ac_delim
17415
LN_S!$LN_S$ac_delim
17416
LIBTOOL!$LIBTOOL$ac_delim
17417
host!$host$ac_delim
17418
host_cpu!$host_cpu$ac_delim
17419
host_vendor!$host_vendor$ac_delim
17420
host_os!$host_os$ac_delim
17421
CC!$CC$ac_delim
17422
CFLAGS!$CFLAGS$ac_delim
17423
ac_ct_CC!$ac_ct_CC$ac_delim
17424
CCDEPMODE!$CCDEPMODE$ac_delim
17425
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
17426
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
17427
SED!$SED$ac_delim
17428
GREP!$GREP$ac_delim
17429
EGREP!$EGREP$ac_delim
17430
FGREP!$FGREP$ac_delim
17431
_ACEOF
17432
17433
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17434
    break
17435
  elif $ac_last_try; then
17436
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17437
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17438
   { (exit 1); exit 1; }; }
17439
  else
17440
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17441
  fi
17442
done
17443
17444
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17445
if test -n "$ac_eof"; then
17446
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17447
  ac_eof=`expr $ac_eof + 1`
17448
fi
17449
17450
cat >>$CONFIG_STATUS <<_ACEOF
17451
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17452
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17453
_ACEOF
17454
sed '
17455
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17456
s/^/s,@/; s/!/@,|#_!!_#|/
17457
:n
17458
t n
17459
s/'"$ac_delim"'$/,g/; t
17460
s/$/\\/; p
17461
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17462
' >>$CONFIG_STATUS <conf$$subs.sed
17463
rm -f conf$$subs.sed
17464
cat >>$CONFIG_STATUS <<_ACEOF
17465
CEOF$ac_eof
17466
_ACEOF
17467
17468
17469
ac_delim='%!_!# '
17470
for ac_last_try in false false false false false :; do
17471
  cat >conf$$subs.sed <<_ACEOF
17472
LD!$LD$ac_delim
17473
DUMPBIN!$DUMPBIN$ac_delim
17474
ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
17475
NM!$NM$ac_delim
17476
AR!$AR$ac_delim
17477
RANLIB!$RANLIB$ac_delim
17478
lt_ECHO!$lt_ECHO$ac_delim
17479
DSYMUTIL!$DSYMUTIL$ac_delim
17480
NMEDIT!$NMEDIT$ac_delim
17481
LIPO!$LIPO$ac_delim
17482
OTOOL!$OTOOL$ac_delim
17483
OTOOL64!$OTOOL64$ac_delim
17484
CPP!$CPP$ac_delim
17485
GDAL_INC!$GDAL_INC$ac_delim
17486
GDAL_PREFIX!$GDAL_PREFIX$ac_delim
17487
GDAL_IS_CONFIG_TRUE!$GDAL_IS_CONFIG_TRUE$ac_delim
17488
GDAL_IS_CONFIG_FALSE!$GDAL_IS_CONFIG_FALSE$ac_delim
17489
GEOTIFF_INC!$GEOTIFF_INC$ac_delim
17490
GEOTIFF_PREFIX!$GEOTIFF_PREFIX$ac_delim
17491
GEOTIFF_IS_CONFIG_TRUE!$GEOTIFF_IS_CONFIG_TRUE$ac_delim
17492
GEOTIFF_IS_CONFIG_FALSE!$GEOTIFF_IS_CONFIG_FALSE$ac_delim
17493
LIBOBJS!$LIBOBJS$ac_delim
17494
LTLIBOBJS!$LTLIBOBJS$ac_delim
17495
_ACEOF
17496
17497
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
17498
    break
17499
  elif $ac_last_try; then
17500
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17501
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17502
   { (exit 1); exit 1; }; }
17503
  else
17504
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17505
  fi
17506
done
17507
17508
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17509
if test -n "$ac_eof"; then
17510
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17511
  ac_eof=`expr $ac_eof + 1`
17512
fi
17513
17514
cat >>$CONFIG_STATUS <<_ACEOF
17515
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17516
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17517
_ACEOF
17518
sed '
17519
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17520
s/^/s,@/; s/!/@,|#_!!_#|/
17521
:n
17522
t n
17523
s/'"$ac_delim"'$/,g/; t
17524
s/$/\\/; p
17525
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17526
' >>$CONFIG_STATUS <conf$$subs.sed
17527
rm -f conf$$subs.sed
17528
cat >>$CONFIG_STATUS <<_ACEOF
17529
:end
17530
s/|#_!!_#|//g
17531
CEOF$ac_eof
17532
_ACEOF
17533
17534
17535
# VPATH may cause trouble with some makes, so we remove $(srcdir),
17536
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17537
# trailing colons and then remove the whole line if VPATH becomes empty
17538
# (actually we leave an empty line to preserve line numbers).
17539
if test "x$srcdir" = x.; then
17540
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
17541
s/:*\$(srcdir):*/:/
17542
s/:*\${srcdir}:*/:/
17543
s/:*@srcdir@:*/:/
17544
s/^\([^=]*=[	 ]*\):*/\1/
17545
s/:*$//
17546
s/^[^=]*=[	 ]*$//
17547
}'
17548
fi
17549
17550
cat >>$CONFIG_STATUS <<\_ACEOF
17551
fi # test -n "$CONFIG_FILES"
17552
17553
17554
for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
17555
do
17556
  case $ac_tag in
17557
  :[FHLC]) ac_mode=$ac_tag; continue;;
17558
  esac
17559
  case $ac_mode$ac_tag in
17560
  :[FHL]*:*);;
17561
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17562
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17563
   { (exit 1); exit 1; }; };;
17564
  :[FH]-) ac_tag=-:-;;
17565
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17566
  esac
17567
  ac_save_IFS=$IFS
17568
  IFS=:
17569
  set x $ac_tag
17570
  IFS=$ac_save_IFS
17571
  shift
17572
  ac_file=$1
17573
  shift
17574
17575
  case $ac_mode in
17576
  :L) ac_source=$1;;
17577
  :[FH])
17578
    ac_file_inputs=
17579
    for ac_f
17580
    do
17581
      case $ac_f in
17582
      -) ac_f="$tmp/stdin";;
17583
      *) # Look for the file first in the build tree, then in the source tree
17584
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17585
	 # because $ac_f cannot contain `:'.
17586
	 test -f "$ac_f" ||
17587
	   case $ac_f in
17588
	   [\\/$]*) false;;
17589
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17590
	   esac ||
17591
	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17592
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17593
   { (exit 1); exit 1; }; };;
17594
      esac
17595
      ac_file_inputs="$ac_file_inputs $ac_f"
17596
    done
17597
17598
    # Let's still pretend it is `configure' which instantiates (i.e., don't
17599
    # use $as_me), people would be surprised to read:
17600
    #    /* config.h.  Generated by config.status.  */
17601
    configure_input="Generated from "`IFS=:
17602
	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17603
    if test x"$ac_file" != x-; then
17604
      configure_input="$ac_file.  $configure_input"
17605
      { echo "$as_me:$LINENO: creating $ac_file" >&5
17606
echo "$as_me: creating $ac_file" >&6;}
17607
    fi
17608
17609
    case $ac_tag in
17610
    *:-:* | *:-) cat >"$tmp/stdin";;
17611
    esac
17612
    ;;
17613
  esac
17614
17615
  ac_dir=`$as_dirname -- "$ac_file" ||
17616
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17617
	 X"$ac_file" : 'X\(//\)[^/]' \| \
17618
	 X"$ac_file" : 'X\(//\)$' \| \
17619
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17620
echo X"$ac_file" |
17621
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17622
	    s//\1/
17623
	    q
17624
	  }
17625
	  /^X\(\/\/\)[^/].*/{
17626
	    s//\1/
17627
	    q
17628
	  }
17629
	  /^X\(\/\/\)$/{
17630
	    s//\1/
17631
	    q
17632
	  }
17633
	  /^X\(\/\).*/{
17634
	    s//\1/
17635
	    q
17636
	  }
17637
	  s/.*/./; q'`
17638
  { as_dir="$ac_dir"
17639
  case $as_dir in #(
17640
  -*) as_dir=./$as_dir;;
17641
  esac
17642
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17643
    as_dirs=
17644
    while :; do
17645
      case $as_dir in #(
17646
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17647
      *) as_qdir=$as_dir;;
17648
      esac
17649
      as_dirs="'$as_qdir' $as_dirs"
17650
      as_dir=`$as_dirname -- "$as_dir" ||
17651
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17652
	 X"$as_dir" : 'X\(//\)[^/]' \| \
17653
	 X"$as_dir" : 'X\(//\)$' \| \
17654
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17655
echo X"$as_dir" |
17656
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17657
	    s//\1/
17658
	    q
17659
	  }
17660
	  /^X\(\/\/\)[^/].*/{
17661
	    s//\1/
17662
	    q
17663
	  }
17664
	  /^X\(\/\/\)$/{
17665
	    s//\1/
17666
	    q
17667
	  }
17668
	  /^X\(\/\).*/{
17669
	    s//\1/
17670
	    q
17671
	  }
17672
	  s/.*/./; q'`
17673
      test -d "$as_dir" && break
17674
    done
17675
    test -z "$as_dirs" || eval "mkdir $as_dirs"
17676
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17677
echo "$as_me: error: cannot create directory $as_dir" >&2;}
17678
   { (exit 1); exit 1; }; }; }
17679
  ac_builddir=.
17680
17681
case "$ac_dir" in
17682
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17683
*)
17684
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17685
  # A ".." for each directory in $ac_dir_suffix.
17686
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17687
  case $ac_top_builddir_sub in
17688
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17689
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17690
  esac ;;
17691
esac
17692
ac_abs_top_builddir=$ac_pwd
17693
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17694
# for backward compatibility:
17695
ac_top_builddir=$ac_top_build_prefix
17696
17697
case $srcdir in
17698
  .)  # We are building in place.
17699
    ac_srcdir=.
17700
    ac_top_srcdir=$ac_top_builddir_sub
17701
    ac_abs_top_srcdir=$ac_pwd ;;
17702
  [\\/]* | ?:[\\/]* )  # Absolute name.
17703
    ac_srcdir=$srcdir$ac_dir_suffix;
17704
    ac_top_srcdir=$srcdir
17705
    ac_abs_top_srcdir=$srcdir ;;
17706
  *) # Relative name.
17707
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17708
    ac_top_srcdir=$ac_top_build_prefix$srcdir
17709
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17710
esac
17711
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17712
17713
17714
  case $ac_mode in
17715
  :F)
17716
  #
17717
  # CONFIG_FILE
17718
  #
17719
17720
  case $INSTALL in
17721
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17722
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17723
  esac
17724
  ac_MKDIR_P=$MKDIR_P
17725
  case $MKDIR_P in
17726
  [\\/$]* | ?:[\\/]* ) ;;
17727
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17728
  esac
17729
_ACEOF
17730
17731
cat >>$CONFIG_STATUS <<\_ACEOF
17732
# If the template does not know about datarootdir, expand it.
17733
# FIXME: This hack should be removed a few years after 2.60.
17734
ac_datarootdir_hack=; ac_datarootdir_seen=
17735
17736
case `sed -n '/datarootdir/ {
17737
  p
17738
  q
17739
}
17740
/@datadir@/p
17741
/@docdir@/p
17742
/@infodir@/p
17743
/@localedir@/p
17744
/@mandir@/p
17745
' $ac_file_inputs` in
17746
*datarootdir*) ac_datarootdir_seen=yes;;
17747
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17748
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17749
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17750
_ACEOF
17751
cat >>$CONFIG_STATUS <<_ACEOF
17752
  ac_datarootdir_hack='
17753
  s&@datadir@&$datadir&g
17754
  s&@docdir@&$docdir&g
17755
  s&@infodir@&$infodir&g
17756
  s&@localedir@&$localedir&g
17757
  s&@mandir@&$mandir&g
17758
    s&\\\${datarootdir}&$datarootdir&g' ;;
17759
esac
17760
_ACEOF
17761
17762
# Neutralize VPATH when `$srcdir' = `.'.
17763
# Shell code in configure.ac might set extrasub.
17764
# FIXME: do we really want to maintain this feature?
17765
cat >>$CONFIG_STATUS <<_ACEOF
17766
  sed "$ac_vpsub
17767
$extrasub
17768
_ACEOF
17769
cat >>$CONFIG_STATUS <<\_ACEOF
17770
:t
17771
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17772
s&@configure_input@&$configure_input&;t t
17773
s&@top_builddir@&$ac_top_builddir_sub&;t t
17774
s&@srcdir@&$ac_srcdir&;t t
17775
s&@abs_srcdir@&$ac_abs_srcdir&;t t
17776
s&@top_srcdir@&$ac_top_srcdir&;t t
17777
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17778
s&@builddir@&$ac_builddir&;t t
17779
s&@abs_builddir@&$ac_abs_builddir&;t t
17780
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17781
s&@INSTALL@&$ac_INSTALL&;t t
17782
s&@MKDIR_P@&$ac_MKDIR_P&;t t
17783
$ac_datarootdir_hack
17784
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17785
17786
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17787
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17788
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17789
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17790
which seems to be undefined.  Please make sure it is defined." >&5
17791
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17792
which seems to be undefined.  Please make sure it is defined." >&2;}
17793
17794
  rm -f "$tmp/stdin"
17795
  case $ac_file in
17796
  -) cat "$tmp/out"; rm -f "$tmp/out";;
17797
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17798
  esac
17799
 ;;
17800
17801
17802
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17803
echo "$as_me: executing $ac_file commands" >&6;}
17804
 ;;
17805
  esac
17806
17807
17808
  case $ac_file$ac_mode in
17809
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17810
  # Strip MF so we end up with the name of the file.
17811
  mf=`echo "$mf" | sed -e 's/:.*$//'`
17812
  # Check whether this is an Automake generated Makefile or not.
17813
  # We used to match only the files named `Makefile.in', but
17814
  # some people rename them; so instead we look at the file content.
17815
  # Grep'ing the first line is not enough: some people post-process
17816
  # each Makefile.in and add a new line on top of each file to say so.
17817
  # Grep'ing the whole file is not good either: AIX grep has a line
17818
  # limit of 2048, but all sed's we know have understand at least 4000.
17819
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
17820
    dirpart=`$as_dirname -- "$mf" ||
17821
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17822
	 X"$mf" : 'X\(//\)[^/]' \| \
17823
	 X"$mf" : 'X\(//\)$' \| \
17824
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17825
echo X"$mf" |
17826
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17827
	    s//\1/
17828
	    q
17829
	  }
17830
	  /^X\(\/\/\)[^/].*/{
17831
	    s//\1/
17832
	    q
17833
	  }
17834
	  /^X\(\/\/\)$/{
17835
	    s//\1/
17836
	    q
17837
	  }
17838
	  /^X\(\/\).*/{
17839
	    s//\1/
17840
	    q
17841
	  }
17842
	  s/.*/./; q'`
17843
  else
17844
    continue
17845
  fi
17846
  # Extract the definition of DEPDIR, am__include, and am__quote
17847
  # from the Makefile without running `make'.
17848
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17849
  test -z "$DEPDIR" && continue
17850
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
17851
  test -z "am__include" && continue
17852
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17853
  # When using ansi2knr, U may be empty or an underscore; expand it
17854
  U=`sed -n 's/^U = //p' < "$mf"`
17855
  # Find all dependency output files, they are included files with
17856
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
17857
  # simplest approach to changing $(DEPDIR) to its actual value in the
17858
  # expansion.
17859
  for file in `sed -n "
17860
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17861
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17862
    # Make sure the directory exists.
17863
    test -f "$dirpart/$file" && continue
17864
    fdir=`$as_dirname -- "$file" ||
17865
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17866
	 X"$file" : 'X\(//\)[^/]' \| \
17867
	 X"$file" : 'X\(//\)$' \| \
17868
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17869
echo X"$file" |
17870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17871
	    s//\1/
17872
	    q
17873
	  }
17874
	  /^X\(\/\/\)[^/].*/{
17875
	    s//\1/
17876
	    q
17877
	  }
17878
	  /^X\(\/\/\)$/{
17879
	    s//\1/
17880
	    q
17881
	  }
17882
	  /^X\(\/\).*/{
17883
	    s//\1/
17884
	    q
17885
	  }
17886
	  s/.*/./; q'`
17887
    { as_dir=$dirpart/$fdir
17888
  case $as_dir in #(
17889
  -*) as_dir=./$as_dir;;
17890
  esac
17891
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17892
    as_dirs=
17893
    while :; do
17894
      case $as_dir in #(
17895
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17896
      *) as_qdir=$as_dir;;
17897
      esac
17898
      as_dirs="'$as_qdir' $as_dirs"
17899
      as_dir=`$as_dirname -- "$as_dir" ||
17900
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17901
	 X"$as_dir" : 'X\(//\)[^/]' \| \
17902
	 X"$as_dir" : 'X\(//\)$' \| \
17903
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17904
echo X"$as_dir" |
17905
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17906
	    s//\1/
17907
	    q
17908
	  }
17909
	  /^X\(\/\/\)[^/].*/{
17910
	    s//\1/
17911
	    q
17912
	  }
17913
	  /^X\(\/\/\)$/{
17914
	    s//\1/
17915
	    q
17916
	  }
17917
	  /^X\(\/\).*/{
17918
	    s//\1/
17919
	    q
17920
	  }
17921
	  s/.*/./; q'`
17922
      test -d "$as_dir" && break
17923
    done
17924
    test -z "$as_dirs" || eval "mkdir $as_dirs"
17925
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17926
echo "$as_me: error: cannot create directory $as_dir" >&2;}
17927
   { (exit 1); exit 1; }; }; }
17928
    # echo "creating $dirpart/$file"
17929
    echo '# dummy' > "$dirpart/$file"
17930
  done
17931
done
17932
 ;;
17933
    "libtool":C)
17934
17935
    # See if we are running on zsh, and set the options which allow our
17936
    # commands through without removal of \ escapes.
17937
    if test -n "${ZSH_VERSION+set}" ; then
17938
      setopt NO_GLOB_SUBST
17939
    fi
17940
17941
    cfgfile="${ofile}T"
17942
    trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
17943
    $RM -f "$cfgfile"
17944
17945
    cat <<_LT_EOF >> "$cfgfile"
17946
#! $SHELL
17947
17948
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17949
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17950
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17951
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17952
#
17953
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17954
#                 2006, 2007, 2008 Free Software Foundation, Inc.
17955
#   Written by Gordon Matzigkeit, 1996
17956
#
17957
#   This file is part of GNU Libtool.
17958
#
17959
# GNU Libtool is free software; you can redistribute it and/or
17960
# modify it under the terms of the GNU General Public License as
17961
# published by the Free Software Foundation; either version 2 of
17962
# the License, or (at your option) any later version.
17963
#
17964
# As a special exception to the GNU General Public License,
17965
# if you distribute this file as part of a program or library that
17966
# is built using GNU Libtool, you may include this file under the
17967
# same distribution terms that you use for the rest of that program.
17968
#
17969
# GNU Libtool is distributed in the hope that it will be useful,
17970
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17971
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17972
# GNU General Public License for more details.
17973
#
17974
# You should have received a copy of the GNU General Public License
17975
# along with GNU Libtool; see the file COPYING.  If not, a copy
17976
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17977
# obtained by writing to the Free Software Foundation, Inc.,
17978
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17979
17980
17981
# The names of the tagged configurations supported by this script.
17982
available_tags="CXX "
17983
17984
# ### BEGIN LIBTOOL CONFIG
17985
17986
# Which release of libtool.m4 was used?
17987
macro_version=$macro_version
17988
macro_revision=$macro_revision
17989
17990
# Whether or not to build shared libraries.
17991
build_libtool_libs=$enable_shared
17992
17993
# Whether or not to build static libraries.
17994
build_old_libs=$enable_static
17995
17996
# What type of objects to build.
17997
pic_mode=$pic_mode
17998
17999
# Whether or not to optimize for fast installation.
18000
fast_install=$enable_fast_install
18001
18002
# The host system.
18003
host_alias=$host_alias
18004
host=$host
18005
host_os=$host_os
18006
18007
# The build system.
18008
build_alias=$build_alias
18009
build=$build
18010
build_os=$build_os
18011
18012
# A sed program that does not truncate output.
18013
SED=$lt_SED
18014
18015
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18016
Xsed="\$SED -e 1s/^X//"
18017
18018
# A grep program that handles long lines.
18019
GREP=$lt_GREP
18020
18021
# An ERE matcher.
18022
EGREP=$lt_EGREP
18023
18024
# A literal string matcher.
18025
FGREP=$lt_FGREP
18026
18027
# A BSD- or MS-compatible name lister.
18028
NM=$lt_NM
18029
18030
# Whether we need soft or hard links.
18031
LN_S=$lt_LN_S
18032
18033
# What is the maximum length of a command?
18034
max_cmd_len=$max_cmd_len
18035
18036
# Object file suffix (normally "o").
18037
objext=$ac_objext
18038
18039
# Executable file suffix (normally "").
18040
exeext=$exeext
18041
18042
# whether the shell understands "unset".
18043
lt_unset=$lt_unset
18044
18045
# turn spaces into newlines.
18046
SP2NL=$lt_lt_SP2NL
18047
18048
# turn newlines into spaces.
18049
NL2SP=$lt_lt_NL2SP
18050
18051
# How to create reloadable object files.
18052
reload_flag=$lt_reload_flag
18053
reload_cmds=$lt_reload_cmds
18054
18055
# Method to check whether dependent libraries are shared objects.
18056
deplibs_check_method=$lt_deplibs_check_method
18057
18058
# Command to use when deplibs_check_method == "file_magic".
18059
file_magic_cmd=$lt_file_magic_cmd
18060
18061
# The archiver.
18062
AR=$lt_AR
18063
AR_FLAGS=$lt_AR_FLAGS
18064
18065
# A symbol stripping program.
18066
STRIP=$lt_STRIP
18067
18068
# Commands used to install an old-style archive.
18069
RANLIB=$lt_RANLIB
18070
old_postinstall_cmds=$lt_old_postinstall_cmds
18071
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18072
18073
# A C compiler.
18074
LTCC=$lt_CC
18075
18076
# LTCC compiler flags.
18077
LTCFLAGS=$lt_CFLAGS
18078
18079
# Take the output of nm and produce a listing of raw symbols and C names.
18080
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18081
18082
# Transform the output of nm in a proper C declaration.
18083
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18084
18085
# Transform the output of nm in a C name address pair.
18086
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18087
18088
# Transform the output of nm in a C name address pair when lib prefix is needed.
18089
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18090
18091
# The name of the directory that contains temporary libtool files.
18092
objdir=$objdir
18093
18094
# Shell to use when invoking shell scripts.
18095
SHELL=$lt_SHELL
18096
18097
# An echo program that does not interpret backslashes.
18098
ECHO=$lt_ECHO
18099
18100
# Used to examine libraries when file_magic_cmd begins with "file".
18101
MAGIC_CMD=$MAGIC_CMD
18102
18103
# Must we lock files when doing compilation?
18104
need_locks=$lt_need_locks
18105
18106
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18107
DSYMUTIL=$lt_DSYMUTIL
18108
18109
# Tool to change global to local symbols on Mac OS X.
18110
NMEDIT=$lt_NMEDIT
18111
18112
# Tool to manipulate fat objects and archives on Mac OS X.
18113
LIPO=$lt_LIPO
18114
18115
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18116
OTOOL=$lt_OTOOL
18117
18118
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18119
OTOOL64=$lt_OTOOL64
18120
18121
# Old archive suffix (normally "a").
18122
libext=$libext
18123
18124
# Shared library suffix (normally ".so").
18125
shrext_cmds=$lt_shrext_cmds
18126
18127
# The commands to extract the exported symbol list from a shared archive.
18128
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18129
18130
# Variables whose values should be saved in libtool wrapper scripts and
18131
# restored at link time.
18132
variables_saved_for_relink=$lt_variables_saved_for_relink
18133
18134
# Do we need the "lib" prefix for modules?
18135
need_lib_prefix=$need_lib_prefix
18136
18137
# Do we need a version for libraries?
18138
need_version=$need_version
18139
18140
# Library versioning type.
18141
version_type=$version_type
18142
18143
# Shared library runtime path variable.
18144
runpath_var=$runpath_var
18145
18146
# Shared library path variable.
18147
shlibpath_var=$shlibpath_var
18148
18149
# Is shlibpath searched before the hard-coded library search path?
18150
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18151
18152
# Format of library name prefix.
18153
libname_spec=$lt_libname_spec
18154
18155
# List of archive names.  First name is the real one, the rest are links.
18156
# The last name is the one that the linker finds with -lNAME
18157
library_names_spec=$lt_library_names_spec
18158
18159
# The coded name of the library, if different from the real name.
18160
soname_spec=$lt_soname_spec
18161
18162
# Command to use after installation of a shared archive.
18163
postinstall_cmds=$lt_postinstall_cmds
18164
18165
# Command to use after uninstallation of a shared archive.
18166
postuninstall_cmds=$lt_postuninstall_cmds
18167
18168
# Commands used to finish a libtool library installation in a directory.
18169
finish_cmds=$lt_finish_cmds
18170
18171
# As "finish_cmds", except a single script fragment to be evaled but
18172
# not shown.
18173
finish_eval=$lt_finish_eval
18174
18175
# Whether we should hardcode library paths into libraries.
18176
hardcode_into_libs=$hardcode_into_libs
18177
18178
# Compile-time system search path for libraries.
18179
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18180
18181
# Run-time system search path for libraries.
18182
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18183
18184
# Whether dlopen is supported.
18185
dlopen_support=$enable_dlopen
18186
18187
# Whether dlopen of programs is supported.
18188
dlopen_self=$enable_dlopen_self
18189
18190
# Whether dlopen of statically linked programs is supported.
18191
dlopen_self_static=$enable_dlopen_self_static
18192
18193
# Commands to strip libraries.
18194
old_striplib=$lt_old_striplib
18195
striplib=$lt_striplib
18196
18197
18198
# The linker used to build libraries.
18199
LD=$lt_LD
18200
18201
# Commands used to build an old-style archive.
18202
old_archive_cmds=$lt_old_archive_cmds
18203
18204
# A language specific compiler.
18205
CC=$lt_compiler
18206
18207
# Is the compiler the GNU compiler?
18208
with_gcc=$GCC
18209
18210
# Compiler flag to turn off builtin functions.
18211
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18212
18213
# How to pass a linker flag through the compiler.
18214
wl=$lt_lt_prog_compiler_wl
18215
18216
# Additional compiler flags for building library objects.
18217
pic_flag=$lt_lt_prog_compiler_pic
18218
18219
# Compiler flag to prevent dynamic linking.
18220
link_static_flag=$lt_lt_prog_compiler_static
18221
18222
# Does compiler simultaneously support -c and -o options?
18223
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18224
18225
# Whether or not to add -lc for building shared libraries.
18226
build_libtool_need_lc=$archive_cmds_need_lc
18227
18228
# Whether or not to disallow shared libs when runtime libs are static.
18229
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18230
18231
# Compiler flag to allow reflexive dlopens.
18232
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18233
18234
# Compiler flag to generate shared objects directly from archives.
18235
whole_archive_flag_spec=$lt_whole_archive_flag_spec
18236
18237
# Whether the compiler copes with passing no objects directly.
18238
compiler_needs_object=$lt_compiler_needs_object
18239
18240
# Create an old-style archive from a shared archive.
18241
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18242
18243
# Create a temporary old-style archive to link instead of a shared archive.
18244
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18245
18246
# Commands used to build a shared archive.
18247
archive_cmds=$lt_archive_cmds
18248
archive_expsym_cmds=$lt_archive_expsym_cmds
18249
18250
# Commands used to build a loadable module if different from building
18251
# a shared archive.
18252
module_cmds=$lt_module_cmds
18253
module_expsym_cmds=$lt_module_expsym_cmds
18254
18255
# Whether we are building with GNU ld or not.
18256
with_gnu_ld=$lt_with_gnu_ld
18257
18258
# Flag that allows shared libraries with undefined symbols to be built.
18259
allow_undefined_flag=$lt_allow_undefined_flag
18260
18261
# Flag that enforces no undefined symbols.
18262
no_undefined_flag=$lt_no_undefined_flag
18263
18264
# Flag to hardcode \$libdir into a binary during linking.
18265
# This must work even if \$libdir does not exist
18266
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18267
18268
# If ld is used when linking, flag to hardcode \$libdir into a binary
18269
# during linking.  This must work even if \$libdir does not exist.
18270
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18271
18272
# Whether we need a single "-rpath" flag with a separated argument.
18273
hardcode_libdir_separator=$lt_hardcode_libdir_separator
18274
18275
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18276
# DIR into the resulting binary.
18277
hardcode_direct=$hardcode_direct
18278
18279
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18280
# DIR into the resulting binary and the resulting library dependency is
18281
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18282
# library is relocated.
18283
hardcode_direct_absolute=$hardcode_direct_absolute
18284
18285
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18286
# into the resulting binary.
18287
hardcode_minus_L=$hardcode_minus_L
18288
18289
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18290
# into the resulting binary.
18291
hardcode_shlibpath_var=$hardcode_shlibpath_var
18292
18293
# Set to "yes" if building a shared library automatically hardcodes DIR
18294
# into the library and all subsequent libraries and executables linked
18295
# against it.
18296
hardcode_automatic=$hardcode_automatic
18297
18298
# Set to yes if linker adds runtime paths of dependent libraries
18299
# to runtime path list.
18300
inherit_rpath=$inherit_rpath
18301
18302
# Whether libtool must link a program against all its dependency libraries.
18303
link_all_deplibs=$link_all_deplibs
18304
18305
# Fix the shell variable \$srcfile for the compiler.
18306
fix_srcfile_path=$lt_fix_srcfile_path
18307
18308
# Set to "yes" if exported symbols are required.
18309
always_export_symbols=$always_export_symbols
18310
18311
# The commands to list exported symbols.
18312
export_symbols_cmds=$lt_export_symbols_cmds
18313
18314
# Symbols that should not be listed in the preloaded symbols.
18315
exclude_expsyms=$lt_exclude_expsyms
18316
18317
# Symbols that must always be exported.
18318
include_expsyms=$lt_include_expsyms
18319
18320
# Commands necessary for linking programs (against libraries) with templates.
18321
prelink_cmds=$lt_prelink_cmds
18322
18323
# Specify filename containing input files.
18324
file_list_spec=$lt_file_list_spec
18325
18326
# How to hardcode a shared library path into an executable.
18327
hardcode_action=$hardcode_action
18328
18329
# The directories searched by this compiler when creating a shared library.
18330
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18331
18332
# Dependencies to place before and after the objects being linked to
18333
# create a shared library.
18334
predep_objects=$lt_predep_objects
18335
postdep_objects=$lt_postdep_objects
18336
predeps=$lt_predeps
18337
postdeps=$lt_postdeps
18338
18339
# The library search path used internally by the compiler when linking
18340
# a shared library.
18341
compiler_lib_search_path=$lt_compiler_lib_search_path
18342
18343
# ### END LIBTOOL CONFIG
18344
18345
_LT_EOF
18346
18347
  case $host_os in
18348
  aix3*)
18349
    cat <<\_LT_EOF >> "$cfgfile"
18350
# AIX sometimes has problems with the GCC collect2 program.  For some
18351
# reason, if we set the COLLECT_NAMES environment variable, the problems
18352
# vanish in a puff of smoke.
18353
if test "X${COLLECT_NAMES+set}" != Xset; then
18354
  COLLECT_NAMES=
18355
  export COLLECT_NAMES
18356
fi
18357
_LT_EOF
18358
    ;;
18359
  esac
18360
18361
18362
ltmain="$ac_aux_dir/ltmain.sh"
18363
18364
18365
  # We use sed instead of cat because bash on DJGPP gets confused if
18366
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18367
  # text mode, it properly converts lines to CR/LF.  This bash problem
18368
  # is reportedly fixed, but why not run on old versions too?
18369
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18370
    || (rm -f "$cfgfile"; exit 1)
18371
18372
  case $xsi_shell in
18373
  yes)
18374
    cat << \_LT_EOF >> "$cfgfile"
18375
18376
# func_dirname file append nondir_replacement
18377
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18378
# otherwise set result to NONDIR_REPLACEMENT.
18379
func_dirname ()
18380
{
18381
  case ${1} in
18382
    */*) func_dirname_result="${1%/*}${2}" ;;
18383
    *  ) func_dirname_result="${3}" ;;
18384
  esac
18385
}
18386
18387
# func_basename file
18388
func_basename ()
18389
{
18390
  func_basename_result="${1##*/}"
18391
}
18392
18393
# func_dirname_and_basename file append nondir_replacement
18394
# perform func_basename and func_dirname in a single function
18395
# call:
18396
#   dirname:  Compute the dirname of FILE.  If nonempty,
18397
#             add APPEND to the result, otherwise set result
18398
#             to NONDIR_REPLACEMENT.
18399
#             value returned in "$func_dirname_result"
18400
#   basename: Compute filename of FILE.
18401
#             value retuned in "$func_basename_result"
18402
# Implementation must be kept synchronized with func_dirname
18403
# and func_basename. For efficiency, we do not delegate to
18404
# those functions but instead duplicate the functionality here.
18405
func_dirname_and_basename ()
18406
{
18407
  case ${1} in
18408
    */*) func_dirname_result="${1%/*}${2}" ;;
18409
    *  ) func_dirname_result="${3}" ;;
18410
  esac
18411
  func_basename_result="${1##*/}"
18412
}
18413
18414
# func_stripname prefix suffix name
18415
# strip PREFIX and SUFFIX off of NAME.
18416
# PREFIX and SUFFIX must not contain globbing or regex special
18417
# characters, hashes, percent signs, but SUFFIX may contain a leading
18418
# dot (in which case that matches only a dot).
18419
func_stripname ()
18420
{
18421
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18422
  # positional parameters, so assign one to ordinary parameter first.
18423
  func_stripname_result=${3}
18424
  func_stripname_result=${func_stripname_result#"${1}"}
18425
  func_stripname_result=${func_stripname_result%"${2}"}
18426
}
18427
18428
# func_opt_split
18429
func_opt_split ()
18430
{
18431
  func_opt_split_opt=${1%%=*}
18432
  func_opt_split_arg=${1#*=}
18433
}
18434
18435
# func_lo2o object
18436
func_lo2o ()
18437
{
18438
  case ${1} in
18439
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18440
    *)    func_lo2o_result=${1} ;;
18441
  esac
18442
}
18443
18444
# func_xform libobj-or-source
18445
func_xform ()
18446
{
18447
  func_xform_result=${1%.*}.lo
18448
}
18449
18450
# func_arith arithmetic-term...
18451
func_arith ()
18452
{
18453
  func_arith_result=$(( $* ))
18454
}
18455
18456
# func_len string
18457
# STRING may not start with a hyphen.
18458
func_len ()
18459
{
18460
  func_len_result=${#1}
18461
}
18462
18463
_LT_EOF
18464
    ;;
18465
  *) # Bourne compatible functions.
18466
    cat << \_LT_EOF >> "$cfgfile"
18467
18468
# func_dirname file append nondir_replacement
18469
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18470
# otherwise set result to NONDIR_REPLACEMENT.
18471
func_dirname ()
18472
{
18473
  # Extract subdirectory from the argument.
18474
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18475
  if test "X$func_dirname_result" = "X${1}"; then
18476
    func_dirname_result="${3}"
18477
  else
18478
    func_dirname_result="$func_dirname_result${2}"
18479
  fi
18480
}
18481
18482
# func_basename file
18483
func_basename ()
18484
{
18485
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18486
}
18487
18488
18489
# func_stripname prefix suffix name
18490
# strip PREFIX and SUFFIX off of NAME.
18491
# PREFIX and SUFFIX must not contain globbing or regex special
18492
# characters, hashes, percent signs, but SUFFIX may contain a leading
18493
# dot (in which case that matches only a dot).
18494
# func_strip_suffix prefix name
18495
func_stripname ()
18496
{
18497
  case ${2} in
18498
    .*) func_stripname_result=`$ECHO "X${3}" \
18499
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18500
    *)  func_stripname_result=`$ECHO "X${3}" \
18501
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18502
  esac
18503
}
18504
18505
# sed scripts:
18506
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18507
my_sed_long_arg='1s/^-[^=]*=//'
18508
18509
# func_opt_split
18510
func_opt_split ()
18511
{
18512
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18513
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18514
}
18515
18516
# func_lo2o object
18517
func_lo2o ()
18518
{
18519
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18520
}
18521
18522
# func_xform libobj-or-source
18523
func_xform ()
18524
{
18525
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18526
}
18527
18528
# func_arith arithmetic-term...
18529
func_arith ()
18530
{
18531
  func_arith_result=`expr "$@"`
18532
}
18533
18534
# func_len string
18535
# STRING may not start with a hyphen.
18536
func_len ()
18537
{
18538
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18539
}
18540
18541
_LT_EOF
18542
esac
18543
18544
case $lt_shell_append in
18545
  yes)
18546
    cat << \_LT_EOF >> "$cfgfile"
18547
18548
# func_append var value
18549
# Append VALUE to the end of shell variable VAR.
18550
func_append ()
18551
{
18552
  eval "$1+=\$2"
18553
}
18554
_LT_EOF
18555
    ;;
18556
  *)
18557
    cat << \_LT_EOF >> "$cfgfile"
18558
18559
# func_append var value
18560
# Append VALUE to the end of shell variable VAR.
18561
func_append ()
18562
{
18563
  eval "$1=\$$1\$2"
18564
}
18565
18566
_LT_EOF
18567
    ;;
18568
  esac
18569
18570
18571
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18572
    || (rm -f "$cfgfile"; exit 1)
18573
18574
  mv -f "$cfgfile" "$ofile" ||
18575
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18576
  chmod +x "$ofile"
18577
18578
18579
    cat <<_LT_EOF >> "$ofile"
18580
18581
# ### BEGIN LIBTOOL TAG CONFIG: CXX
18582
18583
# The linker used to build libraries.
18584
LD=$lt_LD_CXX
18585
18586
# Commands used to build an old-style archive.
18587
old_archive_cmds=$lt_old_archive_cmds_CXX
18588
18589
# A language specific compiler.
18590
CC=$lt_compiler_CXX
18591
18592
# Is the compiler the GNU compiler?
18593
with_gcc=$GCC_CXX
18594
18595
# Compiler flag to turn off builtin functions.
18596
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18597
18598
# How to pass a linker flag through the compiler.
18599
wl=$lt_lt_prog_compiler_wl_CXX
18600
18601
# Additional compiler flags for building library objects.
18602
pic_flag=$lt_lt_prog_compiler_pic_CXX
18603
18604
# Compiler flag to prevent dynamic linking.
18605
link_static_flag=$lt_lt_prog_compiler_static_CXX
18606
18607
# Does compiler simultaneously support -c and -o options?
18608
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18609
18610
# Whether or not to add -lc for building shared libraries.
18611
build_libtool_need_lc=$archive_cmds_need_lc_CXX
18612
18613
# Whether or not to disallow shared libs when runtime libs are static.
18614
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18615
18616
# Compiler flag to allow reflexive dlopens.
18617
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18618
18619
# Compiler flag to generate shared objects directly from archives.
18620
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18621
18622
# Whether the compiler copes with passing no objects directly.
18623
compiler_needs_object=$lt_compiler_needs_object_CXX
18624
18625
# Create an old-style archive from a shared archive.
18626
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18627
18628
# Create a temporary old-style archive to link instead of a shared archive.
18629
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18630
18631
# Commands used to build a shared archive.
18632
archive_cmds=$lt_archive_cmds_CXX
18633
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18634
18635
# Commands used to build a loadable module if different from building
18636
# a shared archive.
18637
module_cmds=$lt_module_cmds_CXX
18638
module_expsym_cmds=$lt_module_expsym_cmds_CXX
18639
18640
# Whether we are building with GNU ld or not.
18641
with_gnu_ld=$lt_with_gnu_ld_CXX
18642
18643
# Flag that allows shared libraries with undefined symbols to be built.
18644
allow_undefined_flag=$lt_allow_undefined_flag_CXX
18645
18646
# Flag that enforces no undefined symbols.
18647
no_undefined_flag=$lt_no_undefined_flag_CXX
18648
18649
# Flag to hardcode \$libdir into a binary during linking.
18650
# This must work even if \$libdir does not exist
18651
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18652
18653
# If ld is used when linking, flag to hardcode \$libdir into a binary
18654
# during linking.  This must work even if \$libdir does not exist.
18655
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18656
18657
# Whether we need a single "-rpath" flag with a separated argument.
18658
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18659
18660
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18661
# DIR into the resulting binary.
18662
hardcode_direct=$hardcode_direct_CXX
18663
18664
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18665
# DIR into the resulting binary and the resulting library dependency is
18666
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18667
# library is relocated.
18668
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18669
18670
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18671
# into the resulting binary.
18672
hardcode_minus_L=$hardcode_minus_L_CXX
18673
18674
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18675
# into the resulting binary.
18676
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18677
18678
# Set to "yes" if building a shared library automatically hardcodes DIR
18679
# into the library and all subsequent libraries and executables linked
18680
# against it.
18681
hardcode_automatic=$hardcode_automatic_CXX
18682
18683
# Set to yes if linker adds runtime paths of dependent libraries
18684
# to runtime path list.
18685
inherit_rpath=$inherit_rpath_CXX
18686
18687
# Whether libtool must link a program against all its dependency libraries.
18688
link_all_deplibs=$link_all_deplibs_CXX
18689
18690
# Fix the shell variable \$srcfile for the compiler.
18691
fix_srcfile_path=$lt_fix_srcfile_path_CXX
18692
18693
# Set to "yes" if exported symbols are required.
18694
always_export_symbols=$always_export_symbols_CXX
18695
18696
# The commands to list exported symbols.
18697
export_symbols_cmds=$lt_export_symbols_cmds_CXX
18698
18699
# Symbols that should not be listed in the preloaded symbols.
18700
exclude_expsyms=$lt_exclude_expsyms_CXX
18701
18702
# Symbols that must always be exported.
18703
include_expsyms=$lt_include_expsyms_CXX
18704
18705
# Commands necessary for linking programs (against libraries) with templates.
18706
prelink_cmds=$lt_prelink_cmds_CXX
18707
18708
# Specify filename containing input files.
18709
file_list_spec=$lt_file_list_spec_CXX
18710
18711
# How to hardcode a shared library path into an executable.
18712
hardcode_action=$hardcode_action_CXX
18713
18714
# The directories searched by this compiler when creating a shared library.
18715
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18716
18717
# Dependencies to place before and after the objects being linked to
18718
# create a shared library.
18719
predep_objects=$lt_predep_objects_CXX
18720
postdep_objects=$lt_postdep_objects_CXX
18721
predeps=$lt_predeps_CXX
18722
postdeps=$lt_postdeps_CXX
18723
18724
# The library search path used internally by the compiler when linking
18725
# a shared library.
18726
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18727
18728
# ### END LIBTOOL TAG CONFIG: CXX
18729
_LT_EOF
18730
18731
 ;;
18732
18733
  esac
18734
done # for ac_tag
18735
18736
18737
{ (exit 0); exit 0; }
18738
_ACEOF
18739
chmod +x $CONFIG_STATUS
18740
ac_clean_files=$ac_clean_files_save
18741
18742
18743
# configure is writing to config.log, and then calls config.status.
18744
# config.status does its own redirection, appending to config.log.
18745
# Unfortunately, on DOS this fails, as config.log is still kept open
18746
# by configure, so config.status won't be able to write to it; its
18747
# output is simply discarded.  So we exec the FD to /dev/null,
18748
# effectively closing config.log, so it can be properly (re)opened and
18749
# appended to by config.status.  When coming back to configure, we
18750
# need to make the FD available again.
18751
if test "$no_create" != yes; then
18752
  ac_cs_success=:
18753
  ac_config_status_args=
18754
  test "$silent" = yes &&
18755
    ac_config_status_args="$ac_config_status_args --quiet"
18756
  exec 5>/dev/null
18757
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18758
  exec 5>>config.log
18759
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18760
  # would make configure fail if this is the last instruction.
18761
  $ac_cs_success || { (exit 1); exit 1; }
18762
fi
18763
18764
18765
18766
18767
echo ""
18768
18769
18770
echo "libLAS configuration summary:"
18771
18772
18773
echo ""
18774
18775
18776
echo "  Version..................: ${RELEASE_VERSION}"
18777
18778
18779
echo "  Installation directory...: ${prefix}"
18780
18781
18782
echo "  C compiler...............: ${CC} ${CFLAGS}"
18783
18784
18785
echo "  C++ compiler.............: ${CXX} ${CXXFLAGS}"
18786
18787
18788
echo "  Debugging support........: ${enable_debug}"
18789
18790
18791
echo "  GDAL support.............: ${HAVE_GDAL}"
18792
18793
if test "${HAVE_GDAL}" != "no" ; then
18794
18795
echo "   - gdal-config...........: ${GDAL_CONFIG}"
18796
18797
    if test -n "${GDAL_INC}" ; then
18798
18799
echo "   - INCLUDE directories...: ${GDAL_INC}"
18800
18801
    fi
18802
fi
18803
18804
echo "  GeoTIFF SRS support......: ${HAVE_GEOTIFF}"
18805
18806
if test "${HAVE_GEOTIFF}" != "no" ; then
18807
18808
echo "   - libgeotiff............: ${GEOTIFF_CONFIG}"
18809
18810
    if test -n "${GEOTIFF_INC}" ; then
18811
18812
echo "   - INCLUDE directories...: ${GEOTIFF_INC}"
18813
18814
    fi
18815
fi
18816
18817
echo ""
18818
18819
18820
echo "  LIBS.....................: ${LIBS}"
18821
18822
18823
echo ""
18824
18825
18826
echo "  libLAS - http://liblas.org"
18827
18828
18829
echo ""
18830
18831