configure
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:1341k
源码类别:

midi

开发平台:

Unix_Linux

  1.     ;;
  2.         esac
  3.         ;;
  4.       vxworks*)
  5.         # FIXME: insert proper C++ library support
  6.         ld_shlibs_CXX=no
  7.         ;;
  8.       *)
  9.         # FIXME: insert proper C++ library support
  10.         ld_shlibs_CXX=no
  11.         ;;
  12.     esac
  13.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14. $as_echo "$ld_shlibs_CXX" >&6; }
  15.     test "$ld_shlibs_CXX" = no && can_build_shared=no
  16.     GCC_CXX="$GXX"
  17.     LD_CXX="$LD"
  18.     ## CAVEAT EMPTOR:
  19.     ## There is no encapsulation within the following macros, do not change
  20.     ## the running order or otherwise move them around unless you know exactly
  21.     ## what you are doing...
  22.     # Dependencies to place before and after the object being linked:
  23. predep_objects_CXX=
  24. postdep_objects_CXX=
  25. predeps_CXX=
  26. postdeps_CXX=
  27. compiler_lib_search_path_CXX=
  28. cat > conftest.$ac_ext <<_LT_EOF
  29. class Foo
  30. {
  31. public:
  32.   Foo (void) { a = 0; }
  33. private:
  34.   int a;
  35. };
  36. _LT_EOF
  37. if { { eval echo ""$as_me":${as_lineno-$LINENO}: "$ac_compile""; } >&5
  38.   (eval $ac_compile) 2>&5
  39.   ac_status=$?
  40.   $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
  41.   test $ac_status = 0; }; then
  42.   # Parse the compiler output and extract the necessary
  43.   # objects, libraries and library flags.
  44.   # Sentinel used to keep track of whether or not we are before
  45.   # the conftest object file.
  46.   pre_test_object_deps_done=no
  47.   for p in `eval "$output_verbose_link_cmd"`; do
  48.     case $p in
  49.     -L* | -R* | -l*)
  50.        # Some compilers place space between "-{L,R}" and the path.
  51.        # Remove the space.
  52.        if test $p = "-L" ||
  53.           test $p = "-R"; then
  54.  prev=$p
  55.  continue
  56.        else
  57.  prev=
  58.        fi
  59.        if test "$pre_test_object_deps_done" = no; then
  60.  case $p in
  61.  -L* | -R*)
  62.    # Internal compiler library paths should come after those
  63.    # provided the user.  The postdeps already come after the
  64.    # user supplied libs so there is no need to process them.
  65.    if test -z "$compiler_lib_search_path_CXX"; then
  66.      compiler_lib_search_path_CXX="${prev}${p}"
  67.    else
  68.      compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  69.    fi
  70.    ;;
  71.  # The "-l" case would never come before the object being
  72.  # linked, so don't bother handling this case.
  73.  esac
  74.        else
  75.  if test -z "$postdeps_CXX"; then
  76.    postdeps_CXX="${prev}${p}"
  77.  else
  78.    postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  79.  fi
  80.        fi
  81.        ;;
  82.     *.$objext)
  83.        # This assumes that the test object file only shows up
  84.        # once in the compiler output.
  85.        if test "$p" = "conftest.$objext"; then
  86.  pre_test_object_deps_done=yes
  87.  continue
  88.        fi
  89.        if test "$pre_test_object_deps_done" = no; then
  90.  if test -z "$predep_objects_CXX"; then
  91.    predep_objects_CXX="$p"
  92.  else
  93.    predep_objects_CXX="$predep_objects_CXX $p"
  94.  fi
  95.        else
  96.  if test -z "$postdep_objects_CXX"; then
  97.    postdep_objects_CXX="$p"
  98.  else
  99.    postdep_objects_CXX="$postdep_objects_CXX $p"
  100.  fi
  101.        fi
  102.        ;;
  103.     *) ;; # Ignore the rest.
  104.     esac
  105.   done
  106.   # Clean up.
  107.   rm -f a.out a.exe
  108. else
  109.   echo "libtool.m4: error: problem compiling CXX test program"
  110. fi
  111. $RM -f confest.$objext
  112. # PORTME: override above test on systems where it is broken
  113. case $host_os in
  114. interix[3-9]*)
  115.   # Interix 3.5 installs completely hosed .la files for C++, so rather than
  116.   # hack all around it, let's just trust "g++" to DTRT.
  117.   predep_objects_CXX=
  118.   postdep_objects_CXX=
  119.   postdeps_CXX=
  120.   ;;
  121. linux*)
  122.   case `$CC -V 2>&1 | sed 5q` in
  123.   *Sun C*)
  124.     # Sun C++ 5.9
  125.     # The more standards-conforming stlport4 library is
  126.     # incompatible with the Cstd library. Avoid specifying
  127.     # it if it's in CXXFLAGS. Ignore libCrun as
  128.     # -library=stlport4 depends on it.
  129.     case " $CXX $CXXFLAGS " in
  130.     *" -library=stlport4 "*)
  131.       solaris_use_stlport4=yes
  132.       ;;
  133.     esac
  134.     if test "$solaris_use_stlport4" != yes; then
  135.       postdeps_CXX='-library=Cstd -library=Crun'
  136.     fi
  137.     ;;
  138.   esac
  139.   ;;
  140. solaris*)
  141.   case $cc_basename in
  142.   CC*)
  143.     # The more standards-conforming stlport4 library is
  144.     # incompatible with the Cstd library. Avoid specifying
  145.     # it if it's in CXXFLAGS. Ignore libCrun as
  146.     # -library=stlport4 depends on it.
  147.     case " $CXX $CXXFLAGS " in
  148.     *" -library=stlport4 "*)
  149.       solaris_use_stlport4=yes
  150.       ;;
  151.     esac
  152.     # Adding this requires a known-good setup of shared libraries for
  153.     # Sun compiler versions before 5.6, else PIC objects from an old
  154.     # archive will be linked into the output, leading to subtle bugs.
  155.     if test "$solaris_use_stlport4" != yes; then
  156.       postdeps_CXX='-library=Cstd -library=Crun'
  157.     fi
  158.     ;;
  159.   esac
  160.   ;;
  161. esac
  162. case " $postdeps_CXX " in
  163. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  164. esac
  165.  compiler_lib_search_dirs_CXX=
  166. if test -n "${compiler_lib_search_path_CXX}"; then
  167.  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  168. fi
  169.     lt_prog_compiler_wl_CXX=
  170. lt_prog_compiler_pic_CXX=
  171. lt_prog_compiler_static_CXX=
  172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  173. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  174.   # C++ specific cases for pic, static, wl, etc.
  175.   if test "$GXX" = yes; then
  176.     lt_prog_compiler_wl_CXX='-Wl,'
  177.     lt_prog_compiler_static_CXX='-static'
  178.     case $host_os in
  179.     aix*)
  180.       # All AIX code is PIC.
  181.       if test "$host_cpu" = ia64; then
  182. # AIX 5 now supports IA64 processor
  183. lt_prog_compiler_static_CXX='-Bstatic'
  184.       fi
  185.       ;;
  186.     amigaos*)
  187.       case $host_cpu in
  188.       powerpc)
  189.             # see comment about AmigaOS4 .so support
  190.             lt_prog_compiler_pic_CXX='-fPIC'
  191.         ;;
  192.       m68k)
  193.             # FIXME: we need at least 68020 code to build shared libraries, but
  194.             # adding the `-m68020' flag to GCC prevents building anything better,
  195.             # like `-m68040'.
  196.             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  197.         ;;
  198.       esac
  199.       ;;
  200.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  201.       # PIC is the default for these OSes.
  202.       ;;
  203.     mingw* | cygwin* | os2* | pw32* | cegcc*)
  204.       # This hack is so that the source file can tell whether it is being
  205.       # built for inclusion in a dll (and should export symbols for example).
  206.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  207.       # (--disable-auto-import) libraries
  208.       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  209.       ;;
  210.     darwin* | rhapsody*)
  211.       # PIC is the default on this platform
  212.       # Common symbols not allowed in MH_DYLIB files
  213.       lt_prog_compiler_pic_CXX='-fno-common'
  214.       ;;
  215.     *djgpp*)
  216.       # DJGPP does not support shared libraries at all
  217.       lt_prog_compiler_pic_CXX=
  218.       ;;
  219.     interix[3-9]*)
  220.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  221.       # Instead, we relocate shared libraries at runtime.
  222.       ;;
  223.     sysv4*MP*)
  224.       if test -d /usr/nec; then
  225. lt_prog_compiler_pic_CXX=-Kconform_pic
  226.       fi
  227.       ;;
  228.     hpux*)
  229.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  230.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  231.       # sets the default TLS model and affects inlining.
  232.       case $host_cpu in
  233.       hppa*64*)
  234. ;;
  235.       *)
  236. lt_prog_compiler_pic_CXX='-fPIC'
  237. ;;
  238.       esac
  239.       ;;
  240.     *qnx* | *nto*)
  241.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  242.       # it will coredump.
  243.       lt_prog_compiler_pic_CXX='-fPIC -shared'
  244.       ;;
  245.     *)
  246.       lt_prog_compiler_pic_CXX='-fPIC'
  247.       ;;
  248.     esac
  249.   else
  250.     case $host_os in
  251.       aix[4-9]*)
  252. # All AIX code is PIC.
  253. if test "$host_cpu" = ia64; then
  254.   # AIX 5 now supports IA64 processor
  255.   lt_prog_compiler_static_CXX='-Bstatic'
  256. else
  257.   lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  258. fi
  259. ;;
  260.       chorus*)
  261. case $cc_basename in
  262. cxch68*)
  263.   # Green Hills C++ Compiler
  264.   # _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"
  265.   ;;
  266. esac
  267. ;;
  268.       dgux*)
  269. case $cc_basename in
  270.   ec++*)
  271.     lt_prog_compiler_pic_CXX='-KPIC'
  272.     ;;
  273.   ghcx*)
  274.     # Green Hills C++ Compiler
  275.     lt_prog_compiler_pic_CXX='-pic'
  276.     ;;
  277.   *)
  278.     ;;
  279. esac
  280. ;;
  281.       freebsd* | dragonfly*)
  282. # FreeBSD uses GNU C++
  283. ;;
  284.       hpux9* | hpux10* | hpux11*)
  285. case $cc_basename in
  286.   CC*)
  287.     lt_prog_compiler_wl_CXX='-Wl,'
  288.     lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  289.     if test "$host_cpu" != ia64; then
  290.       lt_prog_compiler_pic_CXX='+Z'
  291.     fi
  292.     ;;
  293.   aCC*)
  294.     lt_prog_compiler_wl_CXX='-Wl,'
  295.     lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  296.     case $host_cpu in
  297.     hppa*64*|ia64*)
  298.       # +Z the default
  299.       ;;
  300.     *)
  301.       lt_prog_compiler_pic_CXX='+Z'
  302.       ;;
  303.     esac
  304.     ;;
  305.   *)
  306.     ;;
  307. esac
  308. ;;
  309.       interix*)
  310. # This is c89, which is MS Visual C++ (no shared libs)
  311. # Anyone wants to do a port?
  312. ;;
  313.       irix5* | irix6* | nonstopux*)
  314. case $cc_basename in
  315.   CC*)
  316.     lt_prog_compiler_wl_CXX='-Wl,'
  317.     lt_prog_compiler_static_CXX='-non_shared'
  318.     # CC pic flag -KPIC is the default.
  319.     ;;
  320.   *)
  321.     ;;
  322. esac
  323. ;;
  324.       linux* | k*bsd*-gnu | kopensolaris*-gnu)
  325. case $cc_basename in
  326.   KCC*)
  327.     # KAI C++ Compiler
  328.     lt_prog_compiler_wl_CXX='--backend -Wl,'
  329.     lt_prog_compiler_pic_CXX='-fPIC'
  330.     ;;
  331.   ecpc* )
  332.     # old Intel C++ for x86_64 which still supported -KPIC.
  333.     lt_prog_compiler_wl_CXX='-Wl,'
  334.     lt_prog_compiler_pic_CXX='-KPIC'
  335.     lt_prog_compiler_static_CXX='-static'
  336.     ;;
  337.   icpc* )
  338.     # Intel C++, used to be incompatible with GCC.
  339.     # ICC 10 doesn't accept -KPIC any more.
  340.     lt_prog_compiler_wl_CXX='-Wl,'
  341.     lt_prog_compiler_pic_CXX='-fPIC'
  342.     lt_prog_compiler_static_CXX='-static'
  343.     ;;
  344.   pgCC* | pgcpp*)
  345.     # Portland Group C++ compiler
  346.     lt_prog_compiler_wl_CXX='-Wl,'
  347.     lt_prog_compiler_pic_CXX='-fpic'
  348.     lt_prog_compiler_static_CXX='-Bstatic'
  349.     ;;
  350.   cxx*)
  351.     # Compaq C++
  352.     # Make sure the PIC flag is empty.  It appears that all Alpha
  353.     # Linux and Compaq Tru64 Unix objects are PIC.
  354.     lt_prog_compiler_pic_CXX=
  355.     lt_prog_compiler_static_CXX='-non_shared'
  356.     ;;
  357.   xlc* | xlC*)
  358.     # IBM XL 8.0 on PPC
  359.     lt_prog_compiler_wl_CXX='-Wl,'
  360.     lt_prog_compiler_pic_CXX='-qpic'
  361.     lt_prog_compiler_static_CXX='-qstaticlink'
  362.     ;;
  363.   *)
  364.     case `$CC -V 2>&1 | sed 5q` in
  365.     *Sun C*)
  366.       # Sun C++ 5.9
  367.       lt_prog_compiler_pic_CXX='-KPIC'
  368.       lt_prog_compiler_static_CXX='-Bstatic'
  369.       lt_prog_compiler_wl_CXX='-Qoption ld '
  370.       ;;
  371.     esac
  372.     ;;
  373. esac
  374. ;;
  375.       lynxos*)
  376. ;;
  377.       m88k*)
  378. ;;
  379.       mvs*)
  380. case $cc_basename in
  381.   cxx*)
  382.     lt_prog_compiler_pic_CXX='-W c,exportall'
  383.     ;;
  384.   *)
  385.     ;;
  386. esac
  387. ;;
  388.       netbsd* | netbsdelf*-gnu)
  389. ;;
  390.       *qnx* | *nto*)
  391.         # QNX uses GNU C++, but need to define -shared option too, otherwise
  392.         # it will coredump.
  393.         lt_prog_compiler_pic_CXX='-fPIC -shared'
  394.         ;;
  395.       osf3* | osf4* | osf5*)
  396. case $cc_basename in
  397.   KCC*)
  398.     lt_prog_compiler_wl_CXX='--backend -Wl,'
  399.     ;;
  400.   RCC*)
  401.     # Rational C++ 2.4.1
  402.     lt_prog_compiler_pic_CXX='-pic'
  403.     ;;
  404.   cxx*)
  405.     # Digital/Compaq C++
  406.     lt_prog_compiler_wl_CXX='-Wl,'
  407.     # Make sure the PIC flag is empty.  It appears that all Alpha
  408.     # Linux and Compaq Tru64 Unix objects are PIC.
  409.     lt_prog_compiler_pic_CXX=
  410.     lt_prog_compiler_static_CXX='-non_shared'
  411.     ;;
  412.   *)
  413.     ;;
  414. esac
  415. ;;
  416.       psos*)
  417. ;;
  418.       solaris*)
  419. case $cc_basename in
  420.   CC*)
  421.     # Sun C++ 4.2, 5.x and Centerline C++
  422.     lt_prog_compiler_pic_CXX='-KPIC'
  423.     lt_prog_compiler_static_CXX='-Bstatic'
  424.     lt_prog_compiler_wl_CXX='-Qoption ld '
  425.     ;;
  426.   gcx*)
  427.     # Green Hills C++ Compiler
  428.     lt_prog_compiler_pic_CXX='-PIC'
  429.     ;;
  430.   *)
  431.     ;;
  432. esac
  433. ;;
  434.       sunos4*)
  435. case $cc_basename in
  436.   CC*)
  437.     # Sun C++ 4.x
  438.     lt_prog_compiler_pic_CXX='-pic'
  439.     lt_prog_compiler_static_CXX='-Bstatic'
  440.     ;;
  441.   lcc*)
  442.     # Lucid
  443.     lt_prog_compiler_pic_CXX='-pic'
  444.     ;;
  445.   *)
  446.     ;;
  447. esac
  448. ;;
  449.       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  450. case $cc_basename in
  451.   CC*)
  452.     lt_prog_compiler_wl_CXX='-Wl,'
  453.     lt_prog_compiler_pic_CXX='-KPIC'
  454.     lt_prog_compiler_static_CXX='-Bstatic'
  455.     ;;
  456. esac
  457. ;;
  458.       tandem*)
  459. case $cc_basename in
  460.   NCC*)
  461.     # NonStop-UX NCC 3.20
  462.     lt_prog_compiler_pic_CXX='-KPIC'
  463.     ;;
  464.   *)
  465.     ;;
  466. esac
  467. ;;
  468.       vxworks*)
  469. ;;
  470.       *)
  471. lt_prog_compiler_can_build_shared_CXX=no
  472. ;;
  473.     esac
  474.   fi
  475. case $host_os in
  476.   # For platforms which do not support PIC, -DPIC is meaningless:
  477.   *djgpp*)
  478.     lt_prog_compiler_pic_CXX=
  479.     ;;
  480.   *)
  481.     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  482.     ;;
  483. esac
  484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  485. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  486. #
  487. # Check to make sure the PIC flag actually works.
  488. #
  489. if test -n "$lt_prog_compiler_pic_CXX"; then
  490.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  491. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  492. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  493.   $as_echo_n "(cached) " >&6
  494. else
  495.   lt_cv_prog_compiler_pic_works_CXX=no
  496.    ac_outfile=conftest.$ac_objext
  497.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  498.    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  499.    # Insert the option either (1) after the last *FLAGS variable, or
  500.    # (2) before a word containing "conftest.", or (3) at the end.
  501.    # Note that $ac_compile itself does not contain backslashes and begins
  502.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  503.    # The option is referenced via a variable to avoid confusing sed.
  504.    lt_compile=`echo "$ac_compile" | $SED 
  505.    -e 's:.*FLAGS}{0,1} :&$lt_compiler_flag :; t' 
  506.    -e 's: [^ ]*conftest.: $lt_compiler_flag&:; t' 
  507.    -e 's:$: $lt_compiler_flag:'`
  508.    (eval echo ""$as_me:17769: $lt_compile"" >&5)
  509.    (eval "$lt_compile" 2>conftest.err)
  510.    ac_status=$?
  511.    cat conftest.err >&5
  512.    echo "$as_me:17773: $? = $ac_status" >&5
  513.    if (exit $ac_status) && test -s "$ac_outfile"; then
  514.      # The compiler can only warn and ignore the option if not recognized
  515.      # So say no if there are warnings other than the usual output.
  516.      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  517.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  518.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  519.        lt_cv_prog_compiler_pic_works_CXX=yes
  520.      fi
  521.    fi
  522.    $RM conftest*
  523. fi
  524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  525. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  526. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  527.     case $lt_prog_compiler_pic_CXX in
  528.      "" | " "*) ;;
  529.      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  530.      esac
  531. else
  532.     lt_prog_compiler_pic_CXX=
  533.      lt_prog_compiler_can_build_shared_CXX=no
  534. fi
  535. fi
  536. #
  537. # Check to make sure the static flag actually works.
  538. #
  539. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag="$lt_prog_compiler_static_CXX"
  540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  541. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  542. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  543.   $as_echo_n "(cached) " >&6
  544. else
  545.   lt_cv_prog_compiler_static_works_CXX=no
  546.    save_LDFLAGS="$LDFLAGS"
  547.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  548.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  549.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  550.      # The linker can only warn and ignore the option if not recognized
  551.      # So say no if there are warnings
  552.      if test -s conftest.err; then
  553.        # Append any errors to the config.log.
  554.        cat conftest.err 1>&5
  555.        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  556.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  557.        if diff conftest.exp conftest.er2 >/dev/null; then
  558.          lt_cv_prog_compiler_static_works_CXX=yes
  559.        fi
  560.      else
  561.        lt_cv_prog_compiler_static_works_CXX=yes
  562.      fi
  563.    fi
  564.    $RM -r conftest*
  565.    LDFLAGS="$save_LDFLAGS"
  566. fi
  567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  568. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  569. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  570.     :
  571. else
  572.     lt_prog_compiler_static_CXX=
  573. fi
  574.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  575. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  576. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  577.   $as_echo_n "(cached) " >&6
  578. else
  579.   lt_cv_prog_compiler_c_o_CXX=no
  580.    $RM -r conftest 2>/dev/null
  581.    mkdir conftest
  582.    cd conftest
  583.    mkdir out
  584.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  585.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  586.    # Insert the option either (1) after the last *FLAGS variable, or
  587.    # (2) before a word containing "conftest.", or (3) at the end.
  588.    # Note that $ac_compile itself does not contain backslashes and begins
  589.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  590.    lt_compile=`echo "$ac_compile" | $SED 
  591.    -e 's:.*FLAGS}{0,1} :&$lt_compiler_flag :; t' 
  592.    -e 's: [^ ]*conftest.: $lt_compiler_flag&:; t' 
  593.    -e 's:$: $lt_compiler_flag:'`
  594.    (eval echo ""$as_me:17868: $lt_compile"" >&5)
  595.    (eval "$lt_compile" 2>out/conftest.err)
  596.    ac_status=$?
  597.    cat out/conftest.err >&5
  598.    echo "$as_me:17872: $? = $ac_status" >&5
  599.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  600.    then
  601.      # The compiler can only warn and ignore the option if not recognized
  602.      # So say no if there are warnings
  603.      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  604.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  605.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  606.        lt_cv_prog_compiler_c_o_CXX=yes
  607.      fi
  608.    fi
  609.    chmod u+w . 2>&5
  610.    $RM conftest*
  611.    # SGI C++ compiler will create directory out/ii_files/ for
  612.    # template instantiation
  613.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  614.    $RM out/* && rmdir out
  615.    cd ..
  616.    $RM -r conftest
  617.    $RM conftest*
  618. fi
  619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  620. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  621.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  622. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  623. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  624.   $as_echo_n "(cached) " >&6
  625. else
  626.   lt_cv_prog_compiler_c_o_CXX=no
  627.    $RM -r conftest 2>/dev/null
  628.    mkdir conftest
  629.    cd conftest
  630.    mkdir out
  631.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  632.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  633.    # Insert the option either (1) after the last *FLAGS variable, or
  634.    # (2) before a word containing "conftest.", or (3) at the end.
  635.    # Note that $ac_compile itself does not contain backslashes and begins
  636.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  637.    lt_compile=`echo "$ac_compile" | $SED 
  638.    -e 's:.*FLAGS}{0,1} :&$lt_compiler_flag :; t' 
  639.    -e 's: [^ ]*conftest.: $lt_compiler_flag&:; t' 
  640.    -e 's:$: $lt_compiler_flag:'`
  641.    (eval echo ""$as_me:17920: $lt_compile"" >&5)
  642.    (eval "$lt_compile" 2>out/conftest.err)
  643.    ac_status=$?
  644.    cat out/conftest.err >&5
  645.    echo "$as_me:17924: $? = $ac_status" >&5
  646.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  647.    then
  648.      # The compiler can only warn and ignore the option if not recognized
  649.      # So say no if there are warnings
  650.      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  651.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  652.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  653.        lt_cv_prog_compiler_c_o_CXX=yes
  654.      fi
  655.    fi
  656.    chmod u+w . 2>&5
  657.    $RM conftest*
  658.    # SGI C++ compiler will create directory out/ii_files/ for
  659.    # template instantiation
  660.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  661.    $RM out/* && rmdir out
  662.    cd ..
  663.    $RM -r conftest
  664.    $RM conftest*
  665. fi
  666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  667. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  668. hard_links="nottested"
  669. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  670.   # do not overwrite the value of need_locks provided by the user
  671.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  672. $as_echo_n "checking if we can lock with hard links... " >&6; }
  673.   hard_links=yes
  674.   $RM conftest*
  675.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  676.   touch conftest.a
  677.   ln conftest.a conftest.b 2>&5 || hard_links=no
  678.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  679.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  680. $as_echo "$hard_links" >&6; }
  681.   if test "$hard_links" = no; then
  682.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: `$CC' does not support `-c -o', so `make -j' may be unsafe" >&5
  683. $as_echo "$as_me: WARNING: `$CC' does not support `-c -o', so `make -j' may be unsafe" >&2;}
  684.     need_locks=warn
  685.   fi
  686. else
  687.   need_locks=no
  688. fi
  689.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  690. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  691.   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '''s/.* //''' | sort | uniq > $export_symbols'
  692.   case $host_os in
  693.   aix[4-9]*)
  694.     # If we're using GNU nm, then we don't want the "-C" option.
  695.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  696.     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  697.       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'
  698.     else
  699.       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'
  700.     fi
  701.     ;;
  702.   pw32*)
  703.     export_symbols_cmds_CXX="$ltdll_cmds"
  704.   ;;
  705.   cygwin* | mingw* | cegcc*)
  706.     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'
  707.   ;;
  708.   linux* | k*bsd*-gnu)
  709.     link_all_deplibs_CXX=no
  710.   ;;
  711.   *)
  712.     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '''s/.* //''' | sort | uniq > $export_symbols'
  713.   ;;
  714.   esac
  715.   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  717. $as_echo "$ld_shlibs_CXX" >&6; }
  718. test "$ld_shlibs_CXX" = no && can_build_shared=no
  719. with_gnu_ld_CXX=$with_gnu_ld
  720. #
  721. # Do we need to explicitly link libc?
  722. #
  723. case "x$archive_cmds_need_lc_CXX" in
  724. x|xyes)
  725.   # Assume -lc should be added
  726.   archive_cmds_need_lc_CXX=yes
  727.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  728.     case $archive_cmds_CXX in
  729.     *'~'*)
  730.       # FIXME: we may have to deal with multi-command sequences.
  731.       ;;
  732.     '$CC '*)
  733.       # Test whether the compiler implicitly links with -lc since on some
  734.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  735.       # to ld, don't add -lc before -lgcc.
  736.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  737. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  738.       $RM conftest*
  739.       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  740.       if { { eval echo ""$as_me":${as_lineno-$LINENO}: "$ac_compile""; } >&5
  741.   (eval $ac_compile) 2>&5
  742.   ac_status=$?
  743.   $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
  744.   test $ac_status = 0; } 2>conftest.err; then
  745.         soname=conftest
  746.         lib=conftest
  747.         libobjs=conftest.$ac_objext
  748.         deplibs=
  749.         wl=$lt_prog_compiler_wl_CXX
  750. pic_flag=$lt_prog_compiler_pic_CXX
  751.         compiler_flags=-v
  752.         linker_flags=-v
  753.         verstring=
  754.         output_objdir=.
  755.         libname=conftest
  756.         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  757.         allow_undefined_flag_CXX=
  758.         if { { eval echo ""$as_me":${as_lineno-$LINENO}: "$archive_cmds_CXX 2>&1 | $GREP " -lc " >/dev/null 2>&1""; } >&5
  759.   (eval $archive_cmds_CXX 2>&1 | $GREP " -lc " >/dev/null 2>&1) 2>&5
  760.   ac_status=$?
  761.   $as_echo "$as_me:${as_lineno-$LINENO}: $? = $ac_status" >&5
  762.   test $ac_status = 0; }
  763.         then
  764.   archive_cmds_need_lc_CXX=no
  765.         else
  766.   archive_cmds_need_lc_CXX=yes
  767.         fi
  768.         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  769.       else
  770.         cat conftest.err 1>&5
  771.       fi
  772.       $RM conftest*
  773.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  774. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  775.       ;;
  776.     esac
  777.   fi
  778.   ;;
  779. esac
  780.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  781. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  782. library_names_spec=
  783. libname_spec='lib$name'
  784. soname_spec=
  785. shrext_cmds=".so"
  786. postinstall_cmds=
  787. postuninstall_cmds=
  788. finish_cmds=
  789. finish_eval=
  790. shlibpath_var=
  791. shlibpath_overrides_runpath=unknown
  792. version_type=none
  793. dynamic_linker="$host_os ld.so"
  794. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  795. need_lib_prefix=unknown
  796. hardcode_into_libs=no
  797. # when you set need_version to no, make sure it does not cause -set_version
  798. # flags to be left without arguments
  799. need_version=unknown
  800. case $host_os in
  801. aix3*)
  802.   version_type=linux
  803.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  804.   shlibpath_var=LIBPATH
  805.   # AIX 3 has no versioning support, so we append a major version to the name.
  806.   soname_spec='${libname}${release}${shared_ext}$major'
  807.   ;;
  808. aix[4-9]*)
  809.   version_type=linux
  810.   need_lib_prefix=no
  811.   need_version=no
  812.   hardcode_into_libs=yes
  813.   if test "$host_cpu" = ia64; then
  814.     # AIX 5 supports IA64
  815.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  816.     shlibpath_var=LD_LIBRARY_PATH
  817.   else
  818.     # With GCC up to 2.95.x, collect2 would create an import file
  819.     # for dependence libraries.  The import file would start with
  820.     # the line `#! .'.  This would cause the generated library to
  821.     # depend on `.', always an invalid library.  This was fixed in
  822.     # development snapshots of GCC prior to 3.0.
  823.     case $host_os in
  824.       aix4 | aix4.[01] | aix4.[01].*)
  825.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  826.    echo ' yes '
  827.    echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  828. :
  829.       else
  830. can_build_shared=no
  831.       fi
  832.       ;;
  833.     esac
  834.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  835.     # soname into executable. Probably we can add versioning support to
  836.     # collect2, so additional links can be useful in future.
  837.     if test "$aix_use_runtimelinking" = yes; then
  838.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  839.       # instead of lib<name>.a to let people know that these are not
  840.       # typical AIX shared libraries.
  841.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  842.     else
  843.       # We preserve .a as extension for shared libraries through AIX4.2
  844.       # and later when we are not doing run time linking.
  845.       library_names_spec='${libname}${release}.a $libname.a'
  846.       soname_spec='${libname}${release}${shared_ext}$major'
  847.     fi
  848.     shlibpath_var=LIBPATH
  849.   fi
  850.   ;;
  851. amigaos*)
  852.   case $host_cpu in
  853.   powerpc)
  854.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  855.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  856.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  857.     ;;
  858.   m68k)
  859.     library_names_spec='$libname.ixlibrary $libname.a'
  860.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  861.     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'
  862.     ;;
  863.   esac
  864.   ;;
  865. beos*)
  866.   library_names_spec='${libname}${shared_ext}'
  867.   dynamic_linker="$host_os ld.so"
  868.   shlibpath_var=LIBRARY_PATH
  869.   ;;
  870. bsdi[45]*)
  871.   version_type=linux
  872.   need_version=no
  873.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  874.   soname_spec='${libname}${release}${shared_ext}$major'
  875.   finish_cmds='PATH="$PATH:/sbin" ldconfig $libdir'
  876.   shlibpath_var=LD_LIBRARY_PATH
  877.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  878.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  879.   # the default ld.so.conf also contains /usr/contrib/lib and
  880.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  881.   # libtool to hard-code these into programs
  882.   ;;
  883. cygwin* | mingw* | pw32* | cegcc*)
  884.   version_type=windows
  885.   shrext_cmds=".dll"
  886.   need_version=no
  887.   need_lib_prefix=no
  888.   case $GCC,$host_os in
  889.   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  890.     library_names_spec='$libname.dll.a'
  891.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  892.     postinstall_cmds='base_file=`basename ${file}`~
  893.       dlpath=`$SHELL 2>&1 -c '''. $dir/'''${base_file}'''i; echo $dlname'''`~
  894.       dldir=$destdir/`dirname $dlpath`~
  895.       test -d $dldir || mkdir -p $dldir~
  896.       $install_prog $dir/$dlname $dldir/$dlname~
  897.       chmod a+x $dldir/$dlname~
  898.       if test -n '''$stripme''' && test -n '''$striplib'''; then
  899.         eval '''$striplib $dldir/$dlname''' || exit $?;
  900.       fi'
  901.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '''. $file; echo $dlname'''`~
  902.       dlpath=$dir/$dldll~
  903.        $RM $dlpath'
  904.     shlibpath_overrides_runpath=yes
  905.     case $host_os in
  906.     cygwin*)
  907.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  908.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  909.       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  910.       ;;
  911.     mingw* | cegcc*)
  912.       # MinGW DLLs use traditional 'lib' prefix
  913.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  914.       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  915.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  916.         # It is most probably a Windows format PATH printed by
  917.         # mingw gcc, but we are running on Cygwin. Gcc prints its search
  918.         # path with ; separators, and with drive letters. We can handle the
  919.         # drive letters (cygwin fileutils understands them), so leave them,
  920.         # especially as we might pass files found there to a mingw objdump,
  921.         # which wouldn't understand a cygwinified path. Ahh.
  922.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  923.       else
  924.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  925.       fi
  926.       ;;
  927.     pw32*)
  928.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  929.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  930.       ;;
  931.     esac
  932.     ;;
  933.   *)
  934.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  935.     ;;
  936.   esac
  937.   dynamic_linker='Win32 ld.exe'
  938.   # FIXME: first we should search . and the directory the executable is in
  939.   shlibpath_var=PATH
  940.   ;;
  941. darwin* | rhapsody*)
  942.   dynamic_linker="$host_os dyld"
  943.   version_type=darwin
  944.   need_lib_prefix=no
  945.   need_version=no
  946.   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  947.   soname_spec='${libname}${release}${major}$shared_ext'
  948.   shlibpath_overrides_runpath=yes
  949.   shlibpath_var=DYLD_LIBRARY_PATH
  950.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  951.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  952.   ;;
  953. dgux*)
  954.   version_type=linux
  955.   need_lib_prefix=no
  956.   need_version=no
  957.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  958.   soname_spec='${libname}${release}${shared_ext}$major'
  959.   shlibpath_var=LD_LIBRARY_PATH
  960.   ;;
  961. freebsd1*)
  962.   dynamic_linker=no
  963.   ;;
  964. freebsd* | dragonfly*)
  965.   # DragonFly does not have aout.  When/if they implement a new
  966.   # versioning mechanism, adjust this.
  967.   if test -x /usr/bin/objformat; then
  968.     objformat=`/usr/bin/objformat`
  969.   else
  970.     case $host_os in
  971.     freebsd[123]*) objformat=aout ;;
  972.     *) objformat=elf ;;
  973.     esac
  974.   fi
  975.   version_type=freebsd-$objformat
  976.   case $version_type in
  977.     freebsd-elf*)
  978.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  979.       need_version=no
  980.       need_lib_prefix=no
  981.       ;;
  982.     freebsd-*)
  983.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  984.       need_version=yes
  985.       ;;
  986.   esac
  987.   shlibpath_var=LD_LIBRARY_PATH
  988.   case $host_os in
  989.   freebsd2*)
  990.     shlibpath_overrides_runpath=yes
  991.     ;;
  992.   freebsd3.[01]* | freebsdelf3.[01]*)
  993.     shlibpath_overrides_runpath=yes
  994.     hardcode_into_libs=yes
  995.     ;;
  996.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | 
  997.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  998.     shlibpath_overrides_runpath=no
  999.     hardcode_into_libs=yes
  1000.     ;;
  1001.   *) # from 4.6 on, and DragonFly
  1002.     shlibpath_overrides_runpath=yes
  1003.     hardcode_into_libs=yes
  1004.     ;;
  1005.   esac
  1006.   ;;
  1007. gnu*)
  1008.   version_type=linux
  1009.   need_lib_prefix=no
  1010.   need_version=no
  1011.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1012.   soname_spec='${libname}${release}${shared_ext}$major'
  1013.   shlibpath_var=LD_LIBRARY_PATH
  1014.   hardcode_into_libs=yes
  1015.   ;;
  1016. hpux9* | hpux10* | hpux11*)
  1017.   # Give a soname corresponding to the major version so that dld.sl refuses to
  1018.   # link against other versions.
  1019.   version_type=sunos
  1020.   need_lib_prefix=no
  1021.   need_version=no
  1022.   case $host_cpu in
  1023.   ia64*)
  1024.     shrext_cmds='.so'
  1025.     hardcode_into_libs=yes
  1026.     dynamic_linker="$host_os dld.so"
  1027.     shlibpath_var=LD_LIBRARY_PATH
  1028.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1029.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1030.     soname_spec='${libname}${release}${shared_ext}$major'
  1031.     if test "X$HPUX_IA64_MODE" = X32; then
  1032.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1033.     else
  1034.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1035.     fi
  1036.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1037.     ;;
  1038.   hppa*64*)
  1039.     shrext_cmds='.sl'
  1040.     hardcode_into_libs=yes
  1041.     dynamic_linker="$host_os dld.sl"
  1042.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1043.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1044.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1045.     soname_spec='${libname}${release}${shared_ext}$major'
  1046.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1047.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1048.     ;;
  1049.   *)
  1050.     shrext_cmds='.sl'
  1051.     dynamic_linker="$host_os dld.sl"
  1052.     shlibpath_var=SHLIB_PATH
  1053.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1054.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1055.     soname_spec='${libname}${release}${shared_ext}$major'
  1056.     ;;
  1057.   esac
  1058.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1059.   postinstall_cmds='chmod 555 $lib'
  1060.   ;;
  1061. interix[3-9]*)
  1062.   version_type=linux
  1063.   need_lib_prefix=no
  1064.   need_version=no
  1065.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1066.   soname_spec='${libname}${release}${shared_ext}$major'
  1067.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  1068.   shlibpath_var=LD_LIBRARY_PATH
  1069.   shlibpath_overrides_runpath=no
  1070.   hardcode_into_libs=yes
  1071.   ;;
  1072. irix5* | irix6* | nonstopux*)
  1073.   case $host_os in
  1074.     nonstopux*) version_type=nonstopux ;;
  1075.     *)
  1076. if test "$lt_cv_prog_gnu_ld" = yes; then
  1077. version_type=linux
  1078. else
  1079. version_type=irix
  1080. fi ;;
  1081.   esac
  1082.   need_lib_prefix=no
  1083.   need_version=no
  1084.   soname_spec='${libname}${release}${shared_ext}$major'
  1085.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  1086.   case $host_os in
  1087.   irix5* | nonstopux*)
  1088.     libsuff= shlibsuff=
  1089.     ;;
  1090.   *)
  1091.     case $LD in # libtool.m4 will add one of these switches to LD
  1092.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  1093.       libsuff= shlibsuff= libmagic=32-bit;;
  1094.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  1095.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  1096.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  1097.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1098.     *) libsuff= shlibsuff= libmagic=never-match;;
  1099.     esac
  1100.     ;;
  1101.   esac
  1102.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1103.   shlibpath_overrides_runpath=no
  1104.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1105.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1106.   hardcode_into_libs=yes
  1107.   ;;
  1108. # No shared lib support for Linux oldld, aout, or coff.
  1109. linux*oldld* | linux*aout* | linux*coff*)
  1110.   dynamic_linker=no
  1111.   ;;
  1112. # This must be Linux ELF.
  1113. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1114.   version_type=linux
  1115.   need_lib_prefix=no
  1116.   need_version=no
  1117.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1118.   soname_spec='${libname}${release}${shared_ext}$major'
  1119.   finish_cmds='PATH="$PATH:/sbin" ldconfig -n $libdir'
  1120.   shlibpath_var=LD_LIBRARY_PATH
  1121.   shlibpath_overrides_runpath=no
  1122.   # Some binutils ld are patched to set DT_RUNPATH
  1123.   save_LDFLAGS=$LDFLAGS
  1124.   save_libdir=$libdir
  1125.   eval "libdir=/foo; wl="$lt_prog_compiler_wl_CXX"; 
  1126.        LDFLAGS="$LDFLAGS $hardcode_libdir_flag_spec_CXX""
  1127.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1128. /* end confdefs.h.  */
  1129. int
  1130. main ()
  1131. {
  1132.   ;
  1133.   return 0;
  1134. }
  1135. _ACEOF
  1136. if ac_fn_cxx_try_link "$LINENO"; then :
  1137.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  1138.   shlibpath_overrides_runpath=yes
  1139. fi
  1140. fi
  1141. rm -f core conftest.err conftest.$ac_objext 
  1142.     conftest$ac_exeext conftest.$ac_ext
  1143.   LDFLAGS=$save_LDFLAGS
  1144.   libdir=$save_libdir
  1145.   # This implies no fast_install, which is unacceptable.
  1146.   # Some rework will be needed to allow for fast_install
  1147.   # before this can be enabled.
  1148.   hardcode_into_libs=yes
  1149.   # Append ld.so.conf contents to the search path
  1150.   if test -f /etc/ld.so.conf; then
  1151.     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' ' '`
  1152.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1153.   fi
  1154.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  1155.   # powerpc, because MkLinux only supported shared libraries with the
  1156.   # GNU dynamic linker.  Since this was broken with cross compilers,
  1157.   # most powerpc-linux boxes support dynamic linking these days and
  1158.   # people can always --disable-shared, the test was removed, and we
  1159.   # assume the GNU/Linux dynamic linker is in use.
  1160.   dynamic_linker='GNU/Linux ld.so'
  1161.   ;;
  1162. netbsdelf*-gnu)
  1163.   version_type=linux
  1164.   need_lib_prefix=no
  1165.   need_version=no
  1166.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1167.   soname_spec='${libname}${release}${shared_ext}$major'
  1168.   shlibpath_var=LD_LIBRARY_PATH
  1169.   shlibpath_overrides_runpath=no
  1170.   hardcode_into_libs=yes
  1171.   dynamic_linker='NetBSD ld.elf_so'
  1172.   ;;
  1173. netbsd*)
  1174.   version_type=sunos
  1175.   need_lib_prefix=no
  1176.   need_version=no
  1177.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  1178.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1179.     finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
  1180.     dynamic_linker='NetBSD (a.out) ld.so'
  1181.   else
  1182.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1183.     soname_spec='${libname}${release}${shared_ext}$major'
  1184.     dynamic_linker='NetBSD ld.elf_so'
  1185.   fi
  1186.   shlibpath_var=LD_LIBRARY_PATH
  1187.   shlibpath_overrides_runpath=yes
  1188.   hardcode_into_libs=yes
  1189.   ;;
  1190. newsos6)
  1191.   version_type=linux
  1192.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1193.   shlibpath_var=LD_LIBRARY_PATH
  1194.   shlibpath_overrides_runpath=yes
  1195.   ;;
  1196. *nto* | *qnx*)
  1197.   version_type=qnx
  1198.   need_lib_prefix=no
  1199.   need_version=no
  1200.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1201.   soname_spec='${libname}${release}${shared_ext}$major'
  1202.   shlibpath_var=LD_LIBRARY_PATH
  1203.   shlibpath_overrides_runpath=no
  1204.   hardcode_into_libs=yes
  1205.   dynamic_linker='ldqnx.so'
  1206.   ;;
  1207. openbsd*)
  1208.   version_type=sunos
  1209.   sys_lib_dlsearch_path_spec="/usr/lib"
  1210.   need_lib_prefix=no
  1211.   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  1212.   case $host_os in
  1213.     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  1214.     *) need_version=no  ;;
  1215.   esac
  1216.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1217.   finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
  1218.   shlibpath_var=LD_LIBRARY_PATH
  1219.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1220.     case $host_os in
  1221.       openbsd2.[89] | openbsd2.[89].*)
  1222. shlibpath_overrides_runpath=no
  1223. ;;
  1224.       *)
  1225. shlibpath_overrides_runpath=yes
  1226. ;;
  1227.       esac
  1228.   else
  1229.     shlibpath_overrides_runpath=yes
  1230.   fi
  1231.   ;;
  1232. os2*)
  1233.   libname_spec='$name'
  1234.   shrext_cmds=".dll"
  1235.   need_lib_prefix=no
  1236.   library_names_spec='$libname${shared_ext} $libname.a'
  1237.   dynamic_linker='OS/2 ld.exe'
  1238.   shlibpath_var=LIBPATH
  1239.   ;;
  1240. osf3* | osf4* | osf5*)
  1241.   version_type=osf
  1242.   need_lib_prefix=no
  1243.   need_version=no
  1244.   soname_spec='${libname}${release}${shared_ext}$major'
  1245.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1246.   shlibpath_var=LD_LIBRARY_PATH
  1247.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1248.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1249.   ;;
  1250. rdos*)
  1251.   dynamic_linker=no
  1252.   ;;
  1253. solaris*)
  1254.   version_type=linux
  1255.   need_lib_prefix=no
  1256.   need_version=no
  1257.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1258.   soname_spec='${libname}${release}${shared_ext}$major'
  1259.   shlibpath_var=LD_LIBRARY_PATH
  1260.   shlibpath_overrides_runpath=yes
  1261.   hardcode_into_libs=yes
  1262.   # ldd complains unless libraries are executable
  1263.   postinstall_cmds='chmod +x $lib'
  1264.   ;;
  1265. sunos4*)
  1266.   version_type=sunos
  1267.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1268.   finish_cmds='PATH="$PATH:/usr/etc" ldconfig $libdir'
  1269.   shlibpath_var=LD_LIBRARY_PATH
  1270.   shlibpath_overrides_runpath=yes
  1271.   if test "$with_gnu_ld" = yes; then
  1272.     need_lib_prefix=no
  1273.   fi
  1274.   need_version=yes
  1275.   ;;
  1276. sysv4 | sysv4.3*)
  1277.   version_type=linux
  1278.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1279.   soname_spec='${libname}${release}${shared_ext}$major'
  1280.   shlibpath_var=LD_LIBRARY_PATH
  1281.   case $host_vendor in
  1282.     sni)
  1283.       shlibpath_overrides_runpath=no
  1284.       need_lib_prefix=no
  1285.       runpath_var=LD_RUN_PATH
  1286.       ;;
  1287.     siemens)
  1288.       need_lib_prefix=no
  1289.       ;;
  1290.     motorola)
  1291.       need_lib_prefix=no
  1292.       need_version=no
  1293.       shlibpath_overrides_runpath=no
  1294.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1295.       ;;
  1296.   esac
  1297.   ;;
  1298. sysv4*MP*)
  1299.   if test -d /usr/nec ;then
  1300.     version_type=linux
  1301.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1302.     soname_spec='$libname${shared_ext}.$major'
  1303.     shlibpath_var=LD_LIBRARY_PATH
  1304.   fi
  1305.   ;;
  1306. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1307.   version_type=freebsd-elf
  1308.   need_lib_prefix=no
  1309.   need_version=no
  1310.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1311.   soname_spec='${libname}${release}${shared_ext}$major'
  1312.   shlibpath_var=LD_LIBRARY_PATH
  1313.   shlibpath_overrides_runpath=yes
  1314.   hardcode_into_libs=yes
  1315.   if test "$with_gnu_ld" = yes; then
  1316.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  1317.   else
  1318.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  1319.     case $host_os in
  1320.       sco3.2v5*)
  1321.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  1322. ;;
  1323.     esac
  1324.   fi
  1325.   sys_lib_dlsearch_path_spec='/usr/lib'
  1326.   ;;
  1327. tpf*)
  1328.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  1329.   version_type=linux
  1330.   need_lib_prefix=no
  1331.   need_version=no
  1332.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1333.   shlibpath_var=LD_LIBRARY_PATH
  1334.   shlibpath_overrides_runpath=no
  1335.   hardcode_into_libs=yes
  1336.   ;;
  1337. uts4*)
  1338.   version_type=linux
  1339.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1340.   soname_spec='${libname}${release}${shared_ext}$major'
  1341.   shlibpath_var=LD_LIBRARY_PATH
  1342.   ;;
  1343. *)
  1344.   dynamic_linker=no
  1345.   ;;
  1346. esac
  1347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  1348. $as_echo "$dynamic_linker" >&6; }
  1349. test "$dynamic_linker" = no && can_build_shared=no
  1350. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  1351. if test "$GCC" = yes; then
  1352.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  1353. fi
  1354. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  1355.   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  1356. fi
  1357. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  1358.   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  1359. fi
  1360.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  1361. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  1362. hardcode_action_CXX=
  1363. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  1364.    test -n "$runpath_var_CXX" ||
  1365.    test "X$hardcode_automatic_CXX" = "Xyes" ; then
  1366.   # We can hardcode non-existent directories.
  1367.   if test "$hardcode_direct_CXX" != no &&
  1368.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1369.      # have to relink, otherwise we might link with an installed library
  1370.      # when we should be linking with a yet-to-be-installed one
  1371.      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  1372.      test "$hardcode_minus_L_CXX" != no; then
  1373.     # Linking always hardcodes the temporary library directory.
  1374.     hardcode_action_CXX=relink
  1375.   else
  1376.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1377.     hardcode_action_CXX=immediate
  1378.   fi
  1379. else
  1380.   # We cannot hardcode anything, or else we can only hardcode existing
  1381.   # directories.
  1382.   hardcode_action_CXX=unsupported
  1383. fi
  1384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  1385. $as_echo "$hardcode_action_CXX" >&6; }
  1386. if test "$hardcode_action_CXX" = relink ||
  1387.    test "$inherit_rpath_CXX" = yes; then
  1388.   # Fast installation is not supported
  1389.   enable_fast_install=no
  1390. elif test "$shlibpath_overrides_runpath" = yes ||
  1391.      test "$enable_shared" = no; then
  1392.   # Fast installation is not necessary
  1393.   enable_fast_install=needless
  1394. fi
  1395.   fi # test -n "$compiler"
  1396.   CC=$lt_save_CC
  1397.   LDCXX=$LD
  1398.   LD=$lt_save_LD
  1399.   GCC=$lt_save_GCC
  1400.   with_gnu_ld=$lt_save_with_gnu_ld
  1401.   lt_cv_path_LDCXX=$lt_cv_path_LD
  1402.   lt_cv_path_LD=$lt_save_path_LD
  1403.   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  1404.   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  1405. fi # test "$_lt_caught_CXX_error" != yes
  1406. ac_ext=c
  1407. ac_cpp='$CPP $CPPFLAGS'
  1408. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1409. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1410. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1411.         ac_config_commands="$ac_config_commands libtool"
  1412. # Only expand once:
  1413. lt_cv_deplibs_check_method=pass_all
  1414. if test "${enable_shared}" = "no"; then :
  1415.   as_fn_error "VLC is based on plugins. Shared libraries cannot be disabled." "$LINENO" 5
  1416. fi
  1417.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  1418. $as_echo_n "checking whether NLS is requested... " >&6; }
  1419.     # Check whether --enable-nls was given.
  1420. if test "${enable_nls+set}" = set; then :
  1421.   enableval=$enable_nls; USE_NLS=$enableval
  1422. else
  1423.   USE_NLS=yes
  1424. fi
  1425.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  1426. $as_echo "$USE_NLS" >&6; }
  1427.       GETTEXT_MACRO_VERSION=0.17
  1428. # Prepare PATH_SEPARATOR.
  1429. # The user is always right.
  1430. if test "${PATH_SEPARATOR+set}" != set; then
  1431.   echo "#! /bin/sh" >conf$$.sh
  1432.   echo  "exit 0"   >>conf$$.sh
  1433.   chmod +x conf$$.sh
  1434.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1435.     PATH_SEPARATOR=';'
  1436.   else
  1437.     PATH_SEPARATOR=:
  1438.   fi
  1439.   rm -f conf$$.sh
  1440. fi
  1441. # Find out how to test for executable files. Don't use a zero-byte file,
  1442. # as systems may use methods other than mode bits to determine executability.
  1443. cat >conf$$.file <<_ASEOF
  1444. #! /bin/sh
  1445. exit 0
  1446. _ASEOF
  1447. chmod +x conf$$.file
  1448. if test -x conf$$.file >/dev/null 2>&1; then
  1449.   ac_executable_p="test -x"
  1450. else
  1451.   ac_executable_p="test -f"
  1452. fi
  1453. rm -f conf$$.file
  1454. # Extract the first word of "msgfmt", so it can be a program name with args.
  1455. set dummy msgfmt; ac_word=$2
  1456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1457. $as_echo_n "checking for $ac_word... " >&6; }
  1458. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  1459.   $as_echo_n "(cached) " >&6
  1460. else
  1461.   case "$MSGFMT" in
  1462.   [\/]* | ?:[\/]*)
  1463.     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  1464.     ;;
  1465.   *)
  1466.     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1467.     for ac_dir in $PATH; do
  1468.       IFS="$ac_save_IFS"
  1469.       test -z "$ac_dir" && ac_dir=.
  1470.       for ac_exec_ext in '' $ac_executable_extensions; do
  1471.         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1472.           echo "$as_me: trying $ac_dir/$ac_word..." >&5
  1473.           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  1474.      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1475.             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  1476.             break 2
  1477.           fi
  1478.         fi
  1479.       done
  1480.     done
  1481.     IFS="$ac_save_IFS"
  1482.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  1483.     ;;
  1484. esac
  1485. fi
  1486. MSGFMT="$ac_cv_path_MSGFMT"
  1487. if test "$MSGFMT" != ":"; then
  1488.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  1489. $as_echo "$MSGFMT" >&6; }
  1490. else
  1491.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1492. $as_echo "no" >&6; }
  1493. fi
  1494.   # Extract the first word of "gmsgfmt", so it can be a program name with args.
  1495. set dummy gmsgfmt; ac_word=$2
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1497. $as_echo_n "checking for $ac_word... " >&6; }
  1498. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  1499.   $as_echo_n "(cached) " >&6
  1500. else
  1501.   case $GMSGFMT in
  1502.   [\/]* | ?:[\/]*)
  1503.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  1504.   ;;
  1505.   *)
  1506.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1507. for as_dir in $PATH
  1508. do
  1509.   IFS=$as_save_IFS
  1510.   test -z "$as_dir" && as_dir=.
  1511.     for ac_exec_ext in '' $ac_executable_extensions; do
  1512.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1513.     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  1514.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1515.     break 2
  1516.   fi
  1517. done
  1518.   done
  1519. IFS=$as_save_IFS
  1520.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  1521.   ;;
  1522. esac
  1523. fi
  1524. GMSGFMT=$ac_cv_path_GMSGFMT
  1525. if test -n "$GMSGFMT"; then
  1526.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  1527. $as_echo "$GMSGFMT" >&6; }
  1528. else
  1529.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1530. $as_echo "no" >&6; }
  1531. fi
  1532.     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  1533.     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  1534.     *) MSGFMT_015=$MSGFMT ;;
  1535.   esac
  1536.   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  1537.     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  1538.     *) GMSGFMT_015=$GMSGFMT ;;
  1539.   esac
  1540. # Prepare PATH_SEPARATOR.
  1541. # The user is always right.
  1542. if test "${PATH_SEPARATOR+set}" != set; then
  1543.   echo "#! /bin/sh" >conf$$.sh
  1544.   echo  "exit 0"   >>conf$$.sh
  1545.   chmod +x conf$$.sh
  1546.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1547.     PATH_SEPARATOR=';'
  1548.   else
  1549.     PATH_SEPARATOR=:
  1550.   fi
  1551.   rm -f conf$$.sh
  1552. fi
  1553. # Find out how to test for executable files. Don't use a zero-byte file,
  1554. # as systems may use methods other than mode bits to determine executability.
  1555. cat >conf$$.file <<_ASEOF
  1556. #! /bin/sh
  1557. exit 0
  1558. _ASEOF
  1559. chmod +x conf$$.file
  1560. if test -x conf$$.file >/dev/null 2>&1; then
  1561.   ac_executable_p="test -x"
  1562. else
  1563.   ac_executable_p="test -f"
  1564. fi
  1565. rm -f conf$$.file
  1566. # Extract the first word of "xgettext", so it can be a program name with args.
  1567. set dummy xgettext; ac_word=$2
  1568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1569. $as_echo_n "checking for $ac_word... " >&6; }
  1570. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  1571.   $as_echo_n "(cached) " >&6
  1572. else
  1573.   case "$XGETTEXT" in
  1574.   [\/]* | ?:[\/]*)
  1575.     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  1576.     ;;
  1577.   *)
  1578.     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1579.     for ac_dir in $PATH; do
  1580.       IFS="$ac_save_IFS"
  1581.       test -z "$ac_dir" && ac_dir=.
  1582.       for ac_exec_ext in '' $ac_executable_extensions; do
  1583.         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1584.           echo "$as_me: trying $ac_dir/$ac_word..." >&5
  1585.           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  1586.      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1587.             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  1588.             break 2
  1589.           fi
  1590.         fi
  1591.       done
  1592.     done
  1593.     IFS="$ac_save_IFS"
  1594.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  1595.     ;;
  1596. esac
  1597. fi
  1598. XGETTEXT="$ac_cv_path_XGETTEXT"
  1599. if test "$XGETTEXT" != ":"; then
  1600.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  1601. $as_echo "$XGETTEXT" >&6; }
  1602. else
  1603.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1604. $as_echo "no" >&6; }
  1605. fi
  1606.     rm -f messages.po
  1607.     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  1608.     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  1609.     *) XGETTEXT_015=$XGETTEXT ;;
  1610.   esac
  1611. # Prepare PATH_SEPARATOR.
  1612. # The user is always right.
  1613. if test "${PATH_SEPARATOR+set}" != set; then
  1614.   echo "#! /bin/sh" >conf$$.sh
  1615.   echo  "exit 0"   >>conf$$.sh
  1616.   chmod +x conf$$.sh
  1617.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1618.     PATH_SEPARATOR=';'
  1619.   else
  1620.     PATH_SEPARATOR=:
  1621.   fi
  1622.   rm -f conf$$.sh
  1623. fi
  1624. # Find out how to test for executable files. Don't use a zero-byte file,
  1625. # as systems may use methods other than mode bits to determine executability.
  1626. cat >conf$$.file <<_ASEOF
  1627. #! /bin/sh
  1628. exit 0
  1629. _ASEOF
  1630. chmod +x conf$$.file
  1631. if test -x conf$$.file >/dev/null 2>&1; then
  1632.   ac_executable_p="test -x"
  1633. else
  1634.   ac_executable_p="test -f"
  1635. fi
  1636. rm -f conf$$.file
  1637. # Extract the first word of "msgmerge", so it can be a program name with args.
  1638. set dummy msgmerge; ac_word=$2
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1640. $as_echo_n "checking for $ac_word... " >&6; }
  1641. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  1642.   $as_echo_n "(cached) " >&6
  1643. else
  1644.   case "$MSGMERGE" in
  1645.   [\/]* | ?:[\/]*)
  1646.     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  1647.     ;;
  1648.   *)
  1649.     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1650.     for ac_dir in $PATH; do
  1651.       IFS="$ac_save_IFS"
  1652.       test -z "$ac_dir" && ac_dir=.
  1653.       for ac_exec_ext in '' $ac_executable_extensions; do
  1654.         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1655.           echo "$as_me: trying $ac_dir/$ac_word..." >&5
  1656.           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  1657.             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  1658.             break 2
  1659.           fi
  1660.         fi
  1661.       done
  1662.     done
  1663.     IFS="$ac_save_IFS"
  1664.   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  1665.     ;;
  1666. esac
  1667. fi
  1668. MSGMERGE="$ac_cv_path_MSGMERGE"
  1669. if test "$MSGMERGE" != ":"; then
  1670.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  1671. $as_echo "$MSGMERGE" >&6; }
  1672. else
  1673.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1674. $as_echo "no" >&6; }
  1675. fi
  1676.         test -n "$localedir" || localedir='${datadir}/locale'
  1677.     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  1678.   ac_config_commands="$ac_config_commands po-directories"
  1679.       if test "X$prefix" = "XNONE"; then
  1680.     acl_final_prefix="$ac_default_prefix"
  1681.   else
  1682.     acl_final_prefix="$prefix"
  1683.   fi
  1684.   if test "X$exec_prefix" = "XNONE"; then
  1685.     acl_final_exec_prefix='${prefix}'
  1686.   else
  1687.     acl_final_exec_prefix="$exec_prefix"
  1688.   fi
  1689.   acl_save_prefix="$prefix"
  1690.   prefix="$acl_final_prefix"
  1691.   eval acl_final_exec_prefix="$acl_final_exec_prefix"
  1692.   prefix="$acl_save_prefix"
  1693. # Check whether --with-gnu-ld was given.
  1694. if test "${with_gnu_ld+set}" = set; then :
  1695.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  1696. else
  1697.   with_gnu_ld=no
  1698. fi
  1699. # Prepare PATH_SEPARATOR.
  1700. # The user is always right.
  1701. if test "${PATH_SEPARATOR+set}" != set; then
  1702.   echo "#! /bin/sh" >conf$$.sh
  1703.   echo  "exit 0"   >>conf$$.sh
  1704.   chmod +x conf$$.sh
  1705.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1706.     PATH_SEPARATOR=';'
  1707.   else
  1708.     PATH_SEPARATOR=:
  1709.   fi
  1710.   rm -f conf$$.sh
  1711. fi
  1712. ac_prog=ld
  1713. if test "$GCC" = yes; then
  1714.   # Check if gcc -print-prog-name=ld gives a path.
  1715.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  1716. $as_echo_n "checking for ld used by GCC... " >&6; }
  1717.   case $host in
  1718.   *-*-mingw*)
  1719.     # gcc leaves a trailing carriage return which upsets mingw
  1720.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '15'` ;;
  1721.   *)
  1722.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1723.   esac
  1724.   case $ac_prog in
  1725.     # Accept absolute paths.
  1726.     [\/]* | [A-Za-z]:[\/]*)
  1727.       re_direlt='/[^/][^/]*/../'
  1728.       # Canonicalize the path of ld
  1729.       ac_prog=`echo $ac_prog| sed 's%\\%/%g'`
  1730.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1731. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1732.       done
  1733.       test -z "$LD" && LD="$ac_prog"
  1734.       ;;
  1735.   "")
  1736.     # If it fails, then pretend we aren't using GCC.
  1737.     ac_prog=ld
  1738.     ;;
  1739.   *)
  1740.     # If it is relative, then search for the first ld in PATH.
  1741.     with_gnu_ld=unknown
  1742.     ;;
  1743.   esac
  1744. elif test "$with_gnu_ld" = yes; then
  1745.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  1746. $as_echo_n "checking for GNU ld... " >&6; }
  1747. else
  1748.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  1749. $as_echo_n "checking for non-GNU ld... " >&6; }
  1750. fi
  1751. if test "${acl_cv_path_LD+set}" = set; then :
  1752.   $as_echo_n "(cached) " >&6
  1753. else
  1754.   if test -z "$LD"; then
  1755.   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1756.   for ac_dir in $PATH; do
  1757.     test -z "$ac_dir" && ac_dir=.
  1758.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1759.       acl_cv_path_LD="$ac_dir/$ac_prog"
  1760.       # Check to see if the program is GNU ld.  I'd rather use --version,
  1761.       # but apparently some GNU ld's only accept -v.
  1762.       # Break only if it was the GNU/non-GNU ld that we prefer.
  1763.       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  1764.       *GNU* | *'with BFD'*)
  1765. test "$with_gnu_ld" != no && break ;;
  1766.       *)
  1767. test "$with_gnu_ld" != yes && break ;;
  1768.       esac
  1769.     fi
  1770.   done
  1771.   IFS="$ac_save_ifs"
  1772. else
  1773.   acl_cv_path_LD="$LD" # Let the user override the test with a path.
  1774. fi
  1775. fi
  1776. LD="$acl_cv_path_LD"
  1777. if test -n "$LD"; then
  1778.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  1779. $as_echo "$LD" >&6; }
  1780. else
  1781.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1782. $as_echo "no" >&6; }
  1783. fi
  1784. test -z "$LD" && as_fn_error "no acceptable ld found in $PATH" "$LINENO" 5
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  1786. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  1787. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  1788.   $as_echo_n "(cached) " >&6
  1789. else
  1790.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1791. case `$LD -v 2>&1 </dev/null` in
  1792. *GNU* | *'with BFD'*)
  1793.   acl_cv_prog_gnu_ld=yes ;;
  1794. *)
  1795.   acl_cv_prog_gnu_ld=no ;;
  1796. esac
  1797. fi
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  1799. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  1800. with_gnu_ld=$acl_cv_prog_gnu_ld
  1801.                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  1802. $as_echo_n "checking for shared library run path origin... " >&6; }
  1803. if test "${acl_cv_rpath+set}" = set; then :
  1804.   $as_echo_n "(cached) " >&6
  1805. else
  1806.     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" 
  1807.     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  1808.     . ./conftest.sh
  1809.     rm -f ./conftest.sh
  1810.     acl_cv_rpath=done
  1811. fi
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  1813. $as_echo "$acl_cv_rpath" >&6; }
  1814.   wl="$acl_cv_wl"
  1815.   acl_libext="$acl_cv_libext"
  1816.   acl_shlibext="$acl_cv_shlibext"
  1817.   acl_libname_spec="$acl_cv_libname_spec"
  1818.   acl_library_names_spec="$acl_cv_library_names_spec"
  1819.   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  1820.   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  1821.   acl_hardcode_direct="$acl_cv_hardcode_direct"
  1822.   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  1823.     # Check whether --enable-rpath was given.
  1824. if test "${enable_rpath+set}" = set; then :
  1825.   enableval=$enable_rpath; :
  1826. else
  1827.   enable_rpath=yes
  1828. fi
  1829.                   acl_libdirstem=lib
  1830.   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  1831.   if test -n "$searchpath"; then
  1832.     acl_save_IFS="${IFS=  }"; IFS=":"
  1833.     for searchdir in $searchpath; do
  1834.       if test -d "$searchdir"; then
  1835.         case "$searchdir" in
  1836.           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  1837.           *) searchdir=`cd "$searchdir" && pwd`
  1838.              case "$searchdir" in
  1839.                */lib64 ) acl_libdirstem=lib64 ;;
  1840.              esac ;;
  1841.         esac
  1842.       fi
  1843.     done
  1844.     IFS="$acl_save_IFS"
  1845.   fi
  1846.     use_additional=yes
  1847.   acl_save_prefix="$prefix"
  1848.   prefix="$acl_final_prefix"
  1849.   acl_save_exec_prefix="$exec_prefix"
  1850.   exec_prefix="$acl_final_exec_prefix"
  1851.     eval additional_includedir="$includedir"
  1852.     eval additional_libdir="$libdir"
  1853.   exec_prefix="$acl_save_exec_prefix"
  1854.   prefix="$acl_save_prefix"
  1855. # Check whether --with-libiconv-prefix was given.
  1856. if test "${with_libiconv_prefix+set}" = set; then :
  1857.   withval=$with_libiconv_prefix;
  1858.     if test "X$withval" = "Xno"; then
  1859.       use_additional=no
  1860.     else
  1861.       if test "X$withval" = "X"; then
  1862.   acl_save_prefix="$prefix"
  1863.   prefix="$acl_final_prefix"
  1864.   acl_save_exec_prefix="$exec_prefix"
  1865.   exec_prefix="$acl_final_exec_prefix"
  1866.           eval additional_includedir="$includedir"
  1867.           eval additional_libdir="$libdir"
  1868.   exec_prefix="$acl_save_exec_prefix"
  1869.   prefix="$acl_save_prefix"
  1870.       else
  1871.         additional_includedir="$withval/include"
  1872.         additional_libdir="$withval/$acl_libdirstem"
  1873.       fi
  1874.     fi
  1875. fi
  1876.       LIBICONV=
  1877.   LTLIBICONV=
  1878.   INCICONV=
  1879.   LIBICONV_PREFIX=
  1880.   rpathdirs=
  1881.   ltrpathdirs=
  1882.   names_already_handled=
  1883.   names_next_round='iconv '
  1884.   while test -n "$names_next_round"; do
  1885.     names_this_round="$names_next_round"
  1886.     names_next_round=
  1887.     for name in $names_this_round; do
  1888.       already_handled=
  1889.       for n in $names_already_handled; do
  1890.         if test "$n" = "$name"; then
  1891.           already_handled=yes
  1892.           break
  1893.         fi
  1894.       done
  1895.       if test -z "$already_handled"; then
  1896.         names_already_handled="$names_already_handled $name"
  1897.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  1898.         eval value="$HAVE_LIB$uppername"
  1899.         if test -n "$value"; then
  1900.           if test "$value" = yes; then
  1901.             eval value="$LIB$uppername"
  1902.             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  1903.             eval value="$LTLIB$uppername"
  1904.             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  1905.           else
  1906.                                     :
  1907.           fi
  1908.         else
  1909.                               found_dir=
  1910.           found_la=
  1911.           found_so=
  1912.           found_a=
  1913.           eval libname="$acl_libname_spec"    # typically: libname=lib$name
  1914.           if test -n "$acl_shlibext"; then
  1915.             shrext=".$acl_shlibext"             # typically: shrext=.so
  1916.           else
  1917.             shrext=
  1918.           fi
  1919.           if test $use_additional = yes; then
  1920.             dir="$additional_libdir"
  1921.                                     if test -n "$acl_shlibext"; then
  1922.               if test -f "$dir/$libname$shrext"; then
  1923.                 found_dir="$dir"
  1924.                 found_so="$dir/$libname$shrext"
  1925.               else
  1926.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  1927.                   ver=`(cd "$dir" && 
  1928.                         for f in "$libname$shrext".*; do echo "$f"; done 
  1929.                         | sed -e "s,^$libname$shrext\\.,," 
  1930.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 
  1931.                         | sed 1q ) 2>/dev/null`
  1932.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  1933.                     found_dir="$dir"
  1934.                     found_so="$dir/$libname$shrext.$ver"
  1935.                   fi
  1936.                 else
  1937.                   eval library_names="$acl_library_names_spec"
  1938.                   for f in $library_names; do
  1939.                     if test -f "$dir/$f"; then
  1940.                       found_dir="$dir"
  1941.                       found_so="$dir/$f"
  1942.                       break
  1943.                     fi
  1944.                   done
  1945.                 fi
  1946.               fi
  1947.             fi
  1948.                         if test "X$found_dir" = "X"; then
  1949.               if test -f "$dir/$libname.$acl_libext"; then
  1950.                 found_dir="$dir"
  1951.                 found_a="$dir/$libname.$acl_libext"
  1952.               fi
  1953.             fi
  1954.             if test "X$found_dir" != "X"; then
  1955.               if test -f "$dir/$libname.la"; then
  1956.                 found_la="$dir/$libname.la"
  1957.               fi
  1958.             fi
  1959.           fi
  1960.           if test "X$found_dir" = "X"; then
  1961.             for x in $LDFLAGS $LTLIBICONV; do
  1962.   acl_save_prefix="$prefix"
  1963.   prefix="$acl_final_prefix"
  1964.   acl_save_exec_prefix="$exec_prefix"
  1965.   exec_prefix="$acl_final_exec_prefix"
  1966.   eval x="$x"
  1967.   exec_prefix="$acl_save_exec_prefix"
  1968.   prefix="$acl_save_prefix"
  1969.               case "$x" in
  1970.                 -L*)
  1971.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  1972.                                     if test -n "$acl_shlibext"; then
  1973.                     if test -f "$dir/$libname$shrext"; then
  1974.                       found_dir="$dir"
  1975.                       found_so="$dir/$libname$shrext"
  1976.                     else
  1977.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  1978.                         ver=`(cd "$dir" && 
  1979.                               for f in "$libname$shrext".*; do echo "$f"; done 
  1980.                               | sed -e "s,^$libname$shrext\\.,," 
  1981.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 
  1982.                               | sed 1q ) 2>/dev/null`
  1983.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  1984.                           found_dir="$dir"
  1985.                           found_so="$dir/$libname$shrext.$ver"
  1986.                         fi
  1987.                       else
  1988.                         eval library_names="$acl_library_names_spec"
  1989.                         for f in $library_names; do
  1990.                           if test -f "$dir/$f"; then
  1991.                             found_dir="$dir"
  1992.                             found_so="$dir/$f"
  1993.                             break
  1994.                           fi
  1995.                         done
  1996.                       fi
  1997.                     fi
  1998.                   fi
  1999.                                     if test "X$found_dir" = "X"; then
  2000.                     if test -f "$dir/$libname.$acl_libext"; then
  2001.                       found_dir="$dir"
  2002.                       found_a="$dir/$libname.$acl_libext"
  2003.                     fi
  2004.                   fi
  2005.                   if test "X$found_dir" != "X"; then
  2006.                     if test -f "$dir/$libname.la"; then
  2007.                       found_la="$dir/$libname.la"
  2008.                     fi
  2009.                   fi
  2010.                   ;;
  2011.               esac
  2012.               if test "X$found_dir" != "X"; then
  2013.                 break
  2014.               fi
  2015.             done
  2016.           fi
  2017.           if test "X$found_dir" != "X"; then
  2018.                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  2019.             if test "X$found_so" != "X"; then
  2020.                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  2021.                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  2022.               else
  2023.                                                                                 haveit=
  2024.                 for x in $ltrpathdirs; do
  2025.                   if test "X$x" = "X$found_dir"; then
  2026.                     haveit=yes
  2027.                     break
  2028.                   fi
  2029.                 done
  2030.                 if test -z "$haveit"; then
  2031.                   ltrpathdirs="$ltrpathdirs $found_dir"
  2032.                 fi
  2033.                                 if test "$acl_hardcode_direct" = yes; then
  2034.                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  2035.                 else
  2036.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  2037.                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  2038.                                                             haveit=
  2039.                     for x in $rpathdirs; do
  2040.                       if test "X$x" = "X$found_dir"; then
  2041.                         haveit=yes
  2042.                         break
  2043.                       fi
  2044.                     done
  2045.                     if test -z "$haveit"; then
  2046.                       rpathdirs="$rpathdirs $found_dir"
  2047.                     fi
  2048.                   else
  2049.                                                                                 haveit=
  2050.                     for x in $LDFLAGS $LIBICONV; do
  2051.   acl_save_prefix="$prefix"
  2052.   prefix="$acl_final_prefix"
  2053.   acl_save_exec_prefix="$exec_prefix"
  2054.   exec_prefix="$acl_final_exec_prefix"
  2055.   eval x="$x"
  2056.   exec_prefix="$acl_save_exec_prefix"
  2057.   prefix="$acl_save_prefix"
  2058.                       if test "X$x" = "X-L$found_dir"; then
  2059.                         haveit=yes
  2060.                         break
  2061.                       fi
  2062.                     done
  2063.                     if test -z "$haveit"; then
  2064.                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  2065.                     fi
  2066.                     if test "$acl_hardcode_minus_L" != no; then
  2067.                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  2068.                     else
  2069.                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  2070.                     fi
  2071.                   fi
  2072.                 fi
  2073.               fi
  2074.             else
  2075.               if test "X$found_a" != "X"; then
  2076.                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  2077.               else
  2078.                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  2079.               fi
  2080.             fi
  2081.                         additional_includedir=
  2082.             case "$found_dir" in
  2083.               */$acl_libdirstem | */$acl_libdirstem/)
  2084.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  2085.                 LIBICONV_PREFIX="$basedir"
  2086.                 additional_includedir="$basedir/include"
  2087.                 ;;
  2088.             esac
  2089.             if test "X$additional_includedir" != "X"; then
  2090.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  2091.                 haveit=
  2092.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  2093.                   if test -n "$GCC"; then
  2094.                     case $host_os in
  2095.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  2096.                     esac
  2097.                   fi
  2098.                 fi
  2099.                 if test -z "$haveit"; then
  2100.                   for x in $CPPFLAGS $INCICONV; do
  2101.   acl_save_prefix="$prefix"
  2102.   prefix="$acl_final_prefix"
  2103.   acl_save_exec_prefix="$exec_prefix"
  2104.   exec_prefix="$acl_final_exec_prefix"
  2105.   eval x="$x"
  2106.   exec_prefix="$acl_save_exec_prefix"
  2107.   prefix="$acl_save_prefix"
  2108.                     if test "X$x" = "X-I$additional_includedir"; then
  2109.                       haveit=yes
  2110.                       break
  2111.                     fi
  2112.                   done
  2113.                   if test -z "$haveit"; then
  2114.                     if test -d "$additional_includedir"; then
  2115.                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  2116.                     fi
  2117.                   fi
  2118.                 fi
  2119.               fi
  2120.             fi
  2121.                         if test -n "$found_la"; then
  2122.                                                         save_libdir="$libdir"
  2123.               case "$found_la" in
  2124.                 */* | *\*) . "$found_la" ;;
  2125.                 *) . "./$found_la" ;;
  2126.               esac
  2127.               libdir="$save_libdir"
  2128.                             for dep in $dependency_libs; do
  2129.                 case "$dep" in
  2130.                   -L*)
  2131.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  2132.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  2133.                       haveit=
  2134.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  2135.                         if test -n "$GCC"; then
  2136.                           case $host_os in
  2137.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  2138.                           esac
  2139.                         fi
  2140.                       fi
  2141.                       if test -z "$haveit"; then
  2142.                         haveit=
  2143.                         for x in $LDFLAGS $LIBICONV; do
  2144.   acl_save_prefix="$prefix"
  2145.   prefix="$acl_final_prefix"
  2146.   acl_save_exec_prefix="$exec_prefix"
  2147.   exec_prefix="$acl_final_exec_prefix"
  2148.   eval x="$x"
  2149.   exec_prefix="$acl_save_exec_prefix"
  2150.   prefix="$acl_save_prefix"
  2151.                           if test "X$x" = "X-L$additional_libdir"; then
  2152.                             haveit=yes
  2153.                             break
  2154.                           fi
  2155.                         done
  2156.                         if test -z "$haveit"; then
  2157.                           if test -d "$additional_libdir"; then
  2158.                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  2159.                           fi
  2160.                         fi
  2161.                         haveit=
  2162.                         for x in $LDFLAGS $LTLIBICONV; do
  2163.   acl_save_prefix="$prefix"
  2164.   prefix="$acl_final_prefix"
  2165.   acl_save_exec_prefix="$exec_prefix"
  2166.   exec_prefix="$acl_final_exec_prefix"
  2167.   eval x="$x"
  2168.   exec_prefix="$acl_save_exec_prefix"
  2169.   prefix="$acl_save_prefix"
  2170.                           if test "X$x" = "X-L$additional_libdir"; then
  2171.                             haveit=yes
  2172.                             break
  2173.                           fi
  2174.                         done
  2175.                         if test -z "$haveit"; then
  2176.                           if test -d "$additional_libdir"; then
  2177.                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  2178.                           fi
  2179.                         fi
  2180.                       fi
  2181.                     fi
  2182.                     ;;
  2183.                   -R*)
  2184.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  2185.                     if test "$enable_rpath" != no; then
  2186.                                                                   haveit=
  2187.                       for x in $rpathdirs; do
  2188.                         if test "X$x" = "X$dir"; then
  2189.                           haveit=yes
  2190.                           break
  2191.                         fi
  2192.                       done
  2193.                       if test -z "$haveit"; then
  2194.                         rpathdirs="$rpathdirs $dir"
  2195.                       fi
  2196.                                                                   haveit=
  2197.                       for x in $ltrpathdirs; do
  2198.                         if test "X$x" = "X$dir"; then
  2199.                           haveit=yes
  2200.                           break
  2201.                         fi
  2202.                       done
  2203.                       if test -z "$haveit"; then
  2204.                         ltrpathdirs="$ltrpathdirs $dir"
  2205.                       fi
  2206.                     fi
  2207.                     ;;
  2208.                   -l*)
  2209.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  2210.                     ;;
  2211.                   *.la)
  2212.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,.la$,,'`
  2213.                     ;;
  2214.                   *)
  2215.                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  2216.                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  2217.                     ;;
  2218.                 esac
  2219.               done
  2220.             fi
  2221.           else
  2222.                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  2223.             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  2224.           fi
  2225.         fi
  2226.       fi
  2227.     done
  2228.   done
  2229.   if test "X$rpathdirs" != "X"; then
  2230.     if test -n "$acl_hardcode_libdir_separator"; then
  2231.                         alldirs=
  2232.       for found_dir in $rpathdirs; do
  2233.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  2234.       done
  2235.             acl_save_libdir="$libdir"
  2236.       libdir="$alldirs"
  2237.       eval flag="$acl_hardcode_libdir_flag_spec"
  2238.       libdir="$acl_save_libdir"
  2239.       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  2240.     else
  2241.             for found_dir in $rpathdirs; do
  2242.         acl_save_libdir="$libdir"
  2243.         libdir="$found_dir"
  2244.         eval flag="$acl_hardcode_libdir_flag_spec"
  2245.         libdir="$acl_save_libdir"
  2246.         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  2247.       done
  2248.     fi
  2249.   fi
  2250.   if test "X$ltrpathdirs" != "X"; then
  2251.             for found_dir in $ltrpathdirs; do
  2252.       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  2253.     done
  2254.   fi
  2255.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  2256. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  2257. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  2258.   $as_echo_n "(cached) " >&6
  2259. else
  2260.   gt_save_LIBS="$LIBS"
  2261.      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  2262.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2263. /* end confdefs.h.  */
  2264. #include <CoreFoundation/CFPreferences.h>
  2265. int
  2266. main ()
  2267. {
  2268. CFPreferencesCopyAppValue(NULL, NULL)
  2269.   ;
  2270.   return 0;
  2271. }
  2272. _ACEOF
  2273. if ac_fn_c_try_link "$LINENO"; then :
  2274.   gt_cv_func_CFPreferencesCopyAppValue=yes
  2275. else
  2276.   gt_cv_func_CFPreferencesCopyAppValue=no
  2277. fi
  2278. rm -f core conftest.err conftest.$ac_objext 
  2279.     conftest$ac_exeext conftest.$ac_ext
  2280.      LIBS="$gt_save_LIBS"
  2281. fi
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  2283. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  2284.   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  2285. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  2286.   fi
  2287.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  2288. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  2289. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  2290.   $as_echo_n "(cached) " >&6
  2291. else
  2292.   gt_save_LIBS="$LIBS"
  2293.      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  2294.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2295. /* end confdefs.h.  */
  2296. #include <CoreFoundation/CFLocale.h>
  2297. int
  2298. main ()
  2299. {
  2300. CFLocaleCopyCurrent();
  2301.   ;
  2302.   return 0;
  2303. }
  2304. _ACEOF
  2305. if ac_fn_c_try_link "$LINENO"; then :
  2306.   gt_cv_func_CFLocaleCopyCurrent=yes
  2307. else
  2308.   gt_cv_func_CFLocaleCopyCurrent=no
  2309. fi
  2310. rm -f core conftest.err conftest.$ac_objext 
  2311.     conftest$ac_exeext conftest.$ac_ext
  2312.      LIBS="$gt_save_LIBS"
  2313. fi
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  2315. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  2316.   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  2317. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  2318.   fi
  2319.   INTL_MACOSX_LIBS=
  2320.   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  2321.     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  2322.   fi
  2323.   LIBINTL=
  2324.   LTLIBINTL=
  2325.   POSUB=
  2326.     case " $gt_needs " in
  2327.     *" need-formatstring-macros "*) gt_api_version=3 ;;
  2328.     *" need-ngettext "*) gt_api_version=2 ;;
  2329.     *) gt_api_version=1 ;;
  2330.   esac
  2331.   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  2332.   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  2333.     if test "$USE_NLS" = "yes"; then
  2334.     gt_use_preinstalled_gnugettext=no
  2335.         if test $gt_api_version -ge 3; then
  2336.           gt_revision_test_code='
  2337. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  2338. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  2339. #endif
  2340. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  2341. '
  2342.         else
  2343.           gt_revision_test_code=
  2344.         fi
  2345.         if test $gt_api_version -ge 2; then
  2346.           gt_expression_test_code=' + * ngettext ("", "", 0)'
  2347.         else
  2348.           gt_expression_test_code=
  2349.         fi
  2350.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  2351. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  2352. if { as_var=$gt_func_gnugettext_libc; eval "test "${$as_var+set}" = set"; }; then :
  2353.   $as_echo_n "(cached) " >&6
  2354. else
  2355.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2356. /* end confdefs.h.  */
  2357. #include <libintl.h>
  2358. $gt_revision_test_code
  2359. extern int _nl_msg_cat_cntr;
  2360. extern int *_nl_domain_bindings;
  2361. int
  2362. main ()
  2363. {
  2364. bindtextdomain ("", "");
  2365. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  2366.   ;
  2367.   return 0;
  2368. }
  2369. _ACEOF
  2370. if ac_fn_c_try_link "$LINENO"; then :
  2371.   eval "$gt_func_gnugettext_libc=yes"
  2372. else
  2373.   eval "$gt_func_gnugettext_libc=no"
  2374. fi
  2375. rm -f core conftest.err conftest.$ac_objext 
  2376.     conftest$ac_exeext conftest.$ac_ext
  2377. fi
  2378. eval ac_res=$$gt_func_gnugettext_libc
  2379.        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2380. $as_echo "$ac_res" >&6; }
  2381.         if { eval "gt_val=$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  2382.           am_save_CPPFLAGS="$CPPFLAGS"
  2383.   for element in $INCICONV; do
  2384.     haveit=
  2385.     for x in $CPPFLAGS; do
  2386.   acl_save_prefix="$prefix"
  2387.   prefix="$acl_final_prefix"
  2388.   acl_save_exec_prefix="$exec_prefix"
  2389.   exec_prefix="$acl_final_exec_prefix"
  2390.   eval x="$x"
  2391.   exec_prefix="$acl_save_exec_prefix"
  2392.   prefix="$acl_save_prefix"
  2393.       if test "X$x" = "X$element"; then
  2394.         haveit=yes
  2395.         break
  2396.       fi
  2397.     done
  2398.     if test -z "$haveit"; then
  2399.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  2400.     fi
  2401.   done
  2402.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  2403. $as_echo_n "checking for iconv... " >&6; }
  2404. if test "${am_cv_func_iconv+set}" = set; then :
  2405.   $as_echo_n "(cached) " >&6
  2406. else
  2407.     am_cv_func_iconv="no, consider installing GNU libiconv"
  2408.     am_cv_lib_iconv=no
  2409.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2410. /* end confdefs.h.  */
  2411. #include <stdlib.h>
  2412. #include <iconv.h>
  2413. int
  2414. main ()
  2415. {
  2416. iconv_t cd = iconv_open("","");
  2417.        iconv(cd,NULL,NULL,NULL,NULL);
  2418.        iconv_close(cd);
  2419.   ;
  2420.   return 0;
  2421. }
  2422. _ACEOF
  2423. if ac_fn_c_try_link "$LINENO"; then :
  2424.   am_cv_func_iconv=yes
  2425. fi
  2426. rm -f core conftest.err conftest.$ac_objext 
  2427.     conftest$ac_exeext conftest.$ac_ext
  2428.     if test "$am_cv_func_iconv" != yes; then
  2429.       am_save_LIBS="$LIBS"
  2430.       LIBS="$LIBS $LIBICONV"
  2431.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2432. /* end confdefs.h.  */
  2433. #include <stdlib.h>
  2434. #include <iconv.h>
  2435. int
  2436. main ()
  2437. {
  2438. iconv_t cd = iconv_open("","");
  2439.          iconv(cd,NULL,NULL,NULL,NULL);
  2440.          iconv_close(cd);
  2441.   ;
  2442.   return 0;
  2443. }
  2444. _ACEOF
  2445. if ac_fn_c_try_link "$LINENO"; then :
  2446.   am_cv_lib_iconv=yes
  2447.         am_cv_func_iconv=yes
  2448. fi
  2449. rm -f core conftest.err conftest.$ac_objext 
  2450.     conftest$ac_exeext conftest.$ac_ext
  2451.       LIBS="$am_save_LIBS"
  2452.     fi
  2453. fi
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  2455. $as_echo "$am_cv_func_iconv" >&6; }
  2456.   if test "$am_cv_func_iconv" = yes; then
  2457.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  2458. $as_echo_n "checking for working iconv... " >&6; }
  2459. if test "${am_cv_func_iconv_works+set}" = set; then :
  2460.   $as_echo_n "(cached) " >&6
  2461. else
  2462.             am_save_LIBS="$LIBS"
  2463.       if test $am_cv_lib_iconv = yes; then
  2464.         LIBS="$LIBS $LIBICONV"
  2465.       fi
  2466.       if test "$cross_compiling" = yes; then :
  2467.   case "$host_os" in
  2468.            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  2469.            *)            am_cv_func_iconv_works="guessing yes" ;;
  2470.          esac
  2471. else
  2472.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2473. /* end confdefs.h.  */
  2474. #include <iconv.h>
  2475. #include <string.h>
  2476. int main ()
  2477. {
  2478.   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  2479.      returns.  */
  2480.   {
  2481.     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  2482.     if (cd_utf8_to_88591 != (iconv_t)(-1))
  2483.       {
  2484.         static const char input[] = "342202254"; /* EURO SIGN */
  2485.         char buf[10];
  2486.         const char *inptr = input;
  2487.         size_t inbytesleft = strlen (input);
  2488.         char *outptr = buf;
  2489.         size_t outbytesleft = sizeof (buf);
  2490.         size_t res = iconv (cd_utf8_to_88591,
  2491.                             (char **) &inptr, &inbytesleft,
  2492.                             &outptr, &outbytesleft);
  2493.         if (res == 0)
  2494.           return 1;
  2495.       }
  2496.   }
  2497. #if 0 /* This bug could be worked around by the caller.  */
  2498.   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
  2499.   {
  2500.     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  2501.     if (cd_88591_to_utf8 != (iconv_t)(-1))
  2502.       {
  2503.         static const char input[] = "304rger mit b366sen B374bchen ohne Augenma337";
  2504.         char buf[50];
  2505.         const char *inptr = input;
  2506.         size_t inbytesleft = strlen (input);
  2507.         char *outptr = buf;
  2508.         size_t outbytesleft = sizeof (buf);
  2509.         size_t res = iconv (cd_88591_to_utf8,
  2510.                             (char **) &inptr, &inbytesleft,
  2511.                             &outptr, &outbytesleft);
  2512.         if ((int)res > 0)
  2513.           return 1;
  2514.       }
  2515.   }
  2516. #endif
  2517.   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  2518.      provided.  */
  2519.   if (/* Try standardized names.  */
  2520.       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  2521.       /* Try IRIX, OSF/1 names.  */
  2522.       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  2523.       /* Try AIX names.  */
  2524.       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  2525.       /* Try HP-UX names.  */
  2526.       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  2527.     return 1;
  2528.   return 0;
  2529. }
  2530. _ACEOF
  2531. if ac_fn_c_try_run "$LINENO"; then :
  2532.   am_cv_func_iconv_works=yes
  2533. else
  2534.   am_cv_func_iconv_works=no
  2535. fi
  2536. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext 
  2537.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  2538. fi
  2539.       LIBS="$am_save_LIBS"
  2540. fi
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  2542. $as_echo "$am_cv_func_iconv_works" >&6; }
  2543.     case "$am_cv_func_iconv_works" in
  2544.       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  2545.       *)   am_func_iconv=yes ;;
  2546.     esac
  2547.   else
  2548.     am_func_iconv=no am_cv_lib_iconv=no
  2549.   fi
  2550.   if test "$am_func_iconv" = yes; then
  2551. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  2552.   fi
  2553.   if test "$am_cv_lib_iconv" = yes; then
  2554.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  2555. $as_echo_n "checking how to link with libiconv... " >&6; }
  2556.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  2557. $as_echo "$LIBICONV" >&6; }
  2558.   else
  2559.             CPPFLAGS="$am_save_CPPFLAGS"
  2560.     LIBICONV=
  2561.     LTLIBICONV=
  2562.   fi
  2563.     use_additional=yes
  2564.   acl_save_prefix="$prefix"
  2565.   prefix="$acl_final_prefix"
  2566.   acl_save_exec_prefix="$exec_prefix"
  2567.   exec_prefix="$acl_final_exec_prefix"
  2568.     eval additional_includedir="$includedir"
  2569.     eval additional_libdir="$libdir"
  2570.   exec_prefix="$acl_save_exec_prefix"
  2571.   prefix="$acl_save_prefix"
  2572. # Check whether --with-libintl-prefix was given.
  2573. if test "${with_libintl_prefix+set}" = set; then :
  2574.   withval=$with_libintl_prefix;
  2575.     if test "X$withval" = "Xno"; then
  2576.       use_additional=no
  2577.     else
  2578.       if test "X$withval" = "X"; then
  2579.   acl_save_prefix="$prefix"
  2580.   prefix="$acl_final_prefix"
  2581.   acl_save_exec_prefix="$exec_prefix"
  2582.   exec_prefix="$acl_final_exec_prefix"
  2583.           eval additional_includedir="$includedir"
  2584.           eval additional_libdir="$libdir"
  2585.   exec_prefix="$acl_save_exec_prefix"
  2586.   prefix="$acl_save_prefix"
  2587.       else
  2588.         additional_includedir="$withval/include"
  2589.         additional_libdir="$withval/$acl_libdirstem"
  2590.       fi
  2591.     fi
  2592. fi
  2593.       LIBINTL=
  2594.   LTLIBINTL=
  2595.   INCINTL=
  2596.   LIBINTL_PREFIX=
  2597.   rpathdirs=
  2598.   ltrpathdirs=
  2599.   names_already_handled=
  2600.   names_next_round='intl '
  2601.   while test -n "$names_next_round"; do
  2602.     names_this_round="$names_next_round"
  2603.     names_next_round=
  2604.     for name in $names_this_round; do
  2605.       already_handled=
  2606.       for n in $names_already_handled; do
  2607.         if test "$n" = "$name"; then
  2608.           already_handled=yes
  2609.           break
  2610.         fi
  2611.       done
  2612.       if test -z "$already_handled"; then
  2613.         names_already_handled="$names_already_handled $name"
  2614.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  2615.         eval value="$HAVE_LIB$uppername"
  2616.         if test -n "$value"; then
  2617.           if test "$value" = yes; then
  2618.             eval value="$LIB$uppername"
  2619.             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  2620.             eval value="$LTLIB$uppername"
  2621.             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  2622.           else
  2623.                                     :
  2624.           fi
  2625.         else
  2626.                               found_dir=
  2627.           found_la=
  2628.           found_so=
  2629.           found_a=
  2630.           eval libname="$acl_libname_spec"    # typically: libname=lib$name
  2631.           if test -n "$acl_shlibext"; then
  2632.             shrext=".$acl_shlibext"             # typically: shrext=.so
  2633.           else
  2634.             shrext=
  2635.           fi
  2636.           if test $use_additional = yes; then
  2637.             dir="$additional_libdir"
  2638.                                     if test -n "$acl_shlibext"; then
  2639.               if test -f "$dir/$libname$shrext"; then
  2640.                 found_dir="$dir"
  2641.                 found_so="$dir/$libname$shrext"
  2642.               else
  2643.                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  2644.                   ver=`(cd "$dir" && 
  2645.                         for f in "$libname$shrext".*; do echo "$f"; done 
  2646.                         | sed -e "s,^$libname$shrext\\.,," 
  2647.                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 
  2648.                         | sed 1q ) 2>/dev/null`
  2649.                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  2650.                     found_dir="$dir"
  2651.                     found_so="$dir/$libname$shrext.$ver"
  2652.                   fi
  2653.                 else
  2654.                   eval library_names="$acl_library_names_spec"
  2655.                   for f in $library_names; do
  2656.                     if test -f "$dir/$f"; then
  2657.                       found_dir="$dir"
  2658.                       found_so="$dir/$f"
  2659.                       break
  2660.                     fi
  2661.                   done
  2662.                 fi
  2663.               fi
  2664.             fi
  2665.                         if test "X$found_dir" = "X"; then
  2666.               if test -f "$dir/$libname.$acl_libext"; then
  2667.                 found_dir="$dir"
  2668.                 found_a="$dir/$libname.$acl_libext"
  2669.               fi
  2670.             fi
  2671.             if test "X$found_dir" != "X"; then
  2672.               if test -f "$dir/$libname.la"; then
  2673.                 found_la="$dir/$libname.la"
  2674.               fi
  2675.             fi
  2676.           fi
  2677.           if test "X$found_dir" = "X"; then
  2678.             for x in $LDFLAGS $LTLIBINTL; do
  2679.   acl_save_prefix="$prefix"
  2680.   prefix="$acl_final_prefix"
  2681.   acl_save_exec_prefix="$exec_prefix"
  2682.   exec_prefix="$acl_final_exec_prefix"
  2683.   eval x="$x"
  2684.   exec_prefix="$acl_save_exec_prefix"
  2685.   prefix="$acl_save_prefix"
  2686.               case "$x" in
  2687.                 -L*)
  2688.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  2689.                                     if test -n "$acl_shlibext"; then
  2690.                     if test -f "$dir/$libname$shrext"; then
  2691.                       found_dir="$dir"
  2692.                       found_so="$dir/$libname$shrext"
  2693.                     else
  2694.                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  2695.                         ver=`(cd "$dir" && 
  2696.                               for f in "$libname$shrext".*; do echo "$f"; done 
  2697.                               | sed -e "s,^$libname$shrext\\.,," 
  2698.                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 
  2699.                               | sed 1q ) 2>/dev/null`
  2700.                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  2701.                           found_dir="$dir"
  2702.                           found_so="$dir/$libname$shrext.$ver"
  2703.                         fi
  2704.                       else
  2705.                         eval library_names="$acl_library_names_spec"
  2706.                         for f in $library_names; do
  2707.                           if test -f "$dir/$f"; then
  2708.                             found_dir="$dir"
  2709.                             found_so="$dir/$f"
  2710.                             break
  2711.                           fi
  2712.                         done
  2713.                       fi
  2714.                     fi
  2715.                   fi
  2716.                                     if test "X$found_dir" = "X"; then
  2717.                     if test -f "$dir/$libname.$acl_libext"; then
  2718.                       found_dir="$dir"
  2719.                       found_a="$dir/$libname.$acl_libext"
  2720.                     fi
  2721.                   fi
  2722.                   if test "X$found_dir" != "X"; then
  2723.                     if test -f "$dir/$libname.la"; then
  2724.                       found_la="$dir/$libname.la"
  2725.                     fi
  2726.                   fi
  2727.                   ;;
  2728.               esac
  2729.               if test "X$found_dir" != "X"; then
  2730.                 break
  2731.               fi
  2732.             done
  2733.           fi
  2734.           if test "X$found_dir" != "X"; then
  2735.                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  2736.             if test "X$found_so" != "X"; then
  2737.                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  2738.                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  2739.               else
  2740.                                                                                 haveit=
  2741.                 for x in $ltrpathdirs; do
  2742.                   if test "X$x" = "X$found_dir"; then
  2743.                     haveit=yes
  2744.                     break
  2745.                   fi
  2746.                 done
  2747.                 if test -z "$haveit"; then
  2748.                   ltrpathdirs="$ltrpathdirs $found_dir"
  2749.                 fi
  2750.                                 if test "$acl_hardcode_direct" = yes; then
  2751.                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  2752.                 else
  2753.                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  2754.                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  2755.                                                             haveit=
  2756.                     for x in $rpathdirs; do
  2757.                       if test "X$x" = "X$found_dir"; then
  2758.                         haveit=yes
  2759.                         break
  2760.                       fi
  2761.                     done
  2762.                     if test -z "$haveit"; then
  2763.                       rpathdirs="$rpathdirs $found_dir"
  2764.                     fi
  2765.                   else
  2766.                                                                                 haveit=
  2767.                     for x in $LDFLAGS $LIBINTL; do
  2768.   acl_save_prefix="$prefix"
  2769.   prefix="$acl_final_prefix"
  2770.   acl_save_exec_prefix="$exec_prefix"
  2771.   exec_prefix="$acl_final_exec_prefix"
  2772.   eval x="$x"
  2773.   exec_prefix="$acl_save_exec_prefix"
  2774.   prefix="$acl_save_prefix"
  2775.                       if test "X$x" = "X-L$found_dir"; then
  2776.                         haveit=yes
  2777.                         break
  2778.                       fi
  2779.                     done
  2780.                     if test -z "$haveit"; then
  2781.                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  2782.                     fi
  2783.                     if test "$acl_hardcode_minus_L" != no; then
  2784.                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  2785.                     else
  2786.                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  2787.                     fi
  2788.                   fi
  2789.                 fi
  2790.               fi
  2791.             else
  2792.               if test "X$found_a" != "X"; then
  2793.                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  2794.               else
  2795.                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  2796.               fi
  2797.             fi
  2798.                         additional_includedir=
  2799.             case "$found_dir" in
  2800.               */$acl_libdirstem | */$acl_libdirstem/)
  2801.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  2802.                 LIBINTL_PREFIX="$basedir"
  2803.                 additional_includedir="$basedir/include"
  2804.                 ;;
  2805.             esac
  2806.             if test "X$additional_includedir" != "X"; then
  2807.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  2808.                 haveit=
  2809.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  2810.                   if test -n "$GCC"; then
  2811.                     case $host_os in
  2812.                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  2813.                     esac
  2814.                   fi
  2815.                 fi
  2816.                 if test -z "$haveit"; then
  2817.                   for x in $CPPFLAGS $INCINTL; do
  2818.   acl_save_prefix="$prefix"
  2819.   prefix="$acl_final_prefix"
  2820.   acl_save_exec_prefix="$exec_prefix"
  2821.   exec_prefix="$acl_final_exec_prefix"
  2822.   eval x="$x"
  2823.   exec_prefix="$acl_save_exec_prefix"
  2824.   prefix="$acl_save_prefix"
  2825.                     if test "X$x" = "X-I$additional_includedir"; then
  2826.                       haveit=yes
  2827.                       break
  2828.                     fi
  2829.                   done
  2830.                   if test -z "$haveit"; then
  2831.                     if test -d "$additional_includedir"; then
  2832.                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  2833.                     fi
  2834.                   fi
  2835.                 fi
  2836.               fi
  2837.             fi
  2838.                         if test -n "$found_la"; then
  2839.                                                         save_libdir="$libdir"
  2840.               case "$found_la" in
  2841.                 */* | *\*) . "$found_la" ;;
  2842.                 *) . "./$found_la" ;;
  2843.               esac
  2844.               libdir="$save_libdir"
  2845.                             for dep in $dependency_libs; do
  2846.                 case "$dep" in
  2847.                   -L*)
  2848.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  2849.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  2850.                       haveit=
  2851.                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  2852.                         if test -n "$GCC"; then
  2853.                           case $host_os in
  2854.                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  2855.                           esac
  2856.                         fi
  2857.                       fi
  2858.                       if test -z "$haveit"; then
  2859.                         haveit=
  2860.                         for x in $LDFLAGS $LIBINTL; do
  2861.   acl_save_prefix="$prefix"
  2862.   prefix="$acl_final_prefix"
  2863.   acl_save_exec_prefix="$exec_prefix"
  2864.   exec_prefix="$acl_final_exec_prefix"
  2865.   eval x="$x"
  2866.   exec_prefix="$acl_save_exec_prefix"
  2867.   prefix="$acl_save_prefix"
  2868.                           if test "X$x" = "X-L$additional_libdir"; then
  2869.                             haveit=yes
  2870.                             break
  2871.                           fi
  2872.                         done
  2873.                         if test -z "$haveit"; then
  2874.                           if test -d "$additional_libdir"; then
  2875.                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  2876.                           fi
  2877.                         fi
  2878.                         haveit=
  2879.                         for x in $LDFLAGS $LTLIBINTL; do
  2880.   acl_save_prefix="$prefix"
  2881.   prefix="$acl_final_prefix"
  2882.   acl_save_exec_prefix="$exec_prefix"
  2883.   exec_prefix="$acl_final_exec_prefix"
  2884.   eval x="$x"
  2885.   exec_prefix="$acl_save_exec_prefix"
  2886.   prefix="$acl_save_prefix"
  2887.                           if test "X$x" = "X-L$additional_libdir"; then
  2888.                             haveit=yes
  2889.                             break
  2890.                           fi
  2891.                         done
  2892.                         if test -z "$haveit"; then
  2893.                           if test -d "$additional_libdir"; then
  2894.                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  2895.                           fi
  2896.                         fi
  2897.                       fi
  2898.                     fi
  2899.                     ;;
  2900.                   -R*)
  2901.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  2902.                     if test "$enable_rpath" != no; then
  2903.                                                                   haveit=
  2904.                       for x in $rpathdirs; do
  2905.                         if test "X$x" = "X$dir"; then
  2906.                           haveit=yes
  2907.                           break
  2908.                         fi
  2909.                       done
  2910.                       if test -z "$haveit"; then
  2911.                         rpathdirs="$rpathdirs $dir"
  2912.                       fi
  2913.                                                                   haveit=
  2914.                       for x in $ltrpathdirs; do
  2915.                         if test "X$x" = "X$dir"; then
  2916.                           haveit=yes
  2917.                           break
  2918.                         fi
  2919.                       done
  2920.                       if test -z "$haveit"; then
  2921.                         ltrpathdirs="$ltrpathdirs $dir"
  2922.                       fi
  2923.                     fi
  2924.                     ;;
  2925.                   -l*)
  2926.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  2927.                     ;;
  2928.                   *.la)
  2929.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,.la$,,'`
  2930.                     ;;
  2931.                   *)
  2932.                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  2933.                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  2934.                     ;;
  2935.                 esac
  2936.               done
  2937.             fi
  2938.           else
  2939.                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  2940.             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  2941.           fi
  2942.         fi
  2943.       fi
  2944.     done
  2945.   done
  2946.   if test "X$rpathdirs" != "X"; then
  2947.     if test -n "$acl_hardcode_libdir_separator"; then
  2948.                         alldirs=
  2949.       for found_dir in $rpathdirs; do
  2950.         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  2951.       done
  2952.             acl_save_libdir="$libdir"
  2953.       libdir="$alldirs"
  2954.       eval flag="$acl_hardcode_libdir_flag_spec"
  2955.       libdir="$acl_save_libdir"
  2956.       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  2957.     else
  2958.             for found_dir in $rpathdirs; do
  2959.         acl_save_libdir="$libdir"
  2960.         libdir="$found_dir"
  2961.         eval flag="$acl_hardcode_libdir_flag_spec"
  2962.         libdir="$acl_save_libdir"
  2963.         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  2964.       done
  2965.     fi
  2966.   fi
  2967.   if test "X$ltrpathdirs" != "X"; then
  2968.             for found_dir in $ltrpathdirs; do
  2969.       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  2970.     done
  2971.   fi
  2972.           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  2973. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  2974. if { as_var=$gt_func_gnugettext_libintl; eval "test "${$as_var+set}" = set"; }; then :
  2975.   $as_echo_n "(cached) " >&6
  2976. else
  2977.   gt_save_CPPFLAGS="$CPPFLAGS"
  2978.             CPPFLAGS="$CPPFLAGS $INCINTL"
  2979.             gt_save_LIBS="$LIBS"
  2980.             LIBS="$LIBS $LIBINTL"
  2981.                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2982. /* end confdefs.h.  */
  2983. #include <libintl.h>
  2984. $gt_revision_test_code
  2985. extern int _nl_msg_cat_cntr;
  2986. extern
  2987. #ifdef __cplusplus
  2988. "C"
  2989. #endif
  2990. const char *_nl_expand_alias (const char *);
  2991. int
  2992. main ()
  2993. {
  2994. bindtextdomain ("", "");
  2995. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  2996.   ;
  2997.   return 0;
  2998. }
  2999. _ACEOF
  3000. if ac_fn_c_try_link "$LINENO"; then :
  3001.   eval "$gt_func_gnugettext_libintl=yes"
  3002. else
  3003.   eval "$gt_func_gnugettext_libintl=no"
  3004. fi
  3005. rm -f core conftest.err conftest.$ac_objext 
  3006.     conftest$ac_exeext conftest.$ac_ext
  3007.                         if { eval "gt_val=$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  3008.               LIBS="$LIBS $LIBICONV"
  3009.               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3010. /* end confdefs.h.  */
  3011. #include <libintl.h>
  3012. $gt_revision_test_code
  3013. extern int _nl_msg_cat_cntr;
  3014. extern
  3015. #ifdef __cplusplus
  3016. "C"
  3017. #endif
  3018. const char *_nl_expand_alias (const char *);
  3019. int
  3020. main ()
  3021. {
  3022. bindtextdomain ("", "");
  3023. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  3024.   ;
  3025.   return 0;
  3026. }
  3027. _ACEOF
  3028. if ac_fn_c_try_link "$LINENO"; then :
  3029.   LIBINTL="$LIBINTL $LIBICONV"
  3030.                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  3031.                 eval "$gt_func_gnugettext_libintl=yes"
  3032. fi
  3033. rm -f core conftest.err conftest.$ac_objext 
  3034.     conftest$ac_exeext conftest.$ac_ext
  3035.             fi
  3036.             CPPFLAGS="$gt_save_CPPFLAGS"
  3037.             LIBS="$gt_save_LIBS"
  3038. fi
  3039. eval ac_res=$$gt_func_gnugettext_libintl
  3040.        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3041. $as_echo "$ac_res" >&6; }
  3042.         fi
  3043.                                         if { eval "gt_val=$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } 
  3044.            || { { eval "gt_val=$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } 
  3045.                 && test "$PACKAGE" != gettext-runtime 
  3046.                 && test "$PACKAGE" != gettext-tools; }; then
  3047.           gt_use_preinstalled_gnugettext=yes
  3048.         else
  3049.                     LIBINTL=
  3050.           LTLIBINTL=
  3051.           INCINTL=
  3052.         fi
  3053.     if test -n "$INTL_MACOSX_LIBS"; then
  3054.       if test "$gt_use_preinstalled_gnugettext" = "yes" 
  3055.          || test "$nls_cv_use_gnu_gettext" = "yes"; then
  3056.                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  3057.         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  3058.       fi
  3059.     fi
  3060.     if test "$gt_use_preinstalled_gnugettext" = "yes" 
  3061.        || test "$nls_cv_use_gnu_gettext" = "yes"; then
  3062. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  3063.     else
  3064.       USE_NLS=no
  3065.     fi
  3066.   fi
  3067.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  3068. $as_echo_n "checking whether to use NLS... " >&6; }
  3069.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  3070. $as_echo "$USE_NLS" >&6; }
  3071.   if test "$USE_NLS" = "yes"; then
  3072.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  3073. $as_echo_n "checking where the gettext function comes from... " >&6; }
  3074.     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  3075.       if { eval "gt_val=$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  3076.         gt_source="external libintl"
  3077.       else
  3078.         gt_source="libc"
  3079.       fi
  3080.     else
  3081.       gt_source="included intl directory"
  3082.     fi
  3083.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  3084. $as_echo "$gt_source" >&6; }
  3085.   fi
  3086.   if test "$USE_NLS" = "yes"; then
  3087.     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  3088.       if { eval "gt_val=$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  3089.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  3090. $as_echo_n "checking how to link with libintl... " >&6; }
  3091.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  3092. $as_echo "$LIBINTL" >&6; }
  3093.   for element in $INCINTL; do
  3094.     haveit=
  3095.     for x in $CPPFLAGS; do
  3096.   acl_save_prefix="$prefix"
  3097.   prefix="$acl_final_prefix"
  3098.   acl_save_exec_prefix="$exec_prefix"
  3099.   exec_prefix="$acl_final_exec_prefix"
  3100.   eval x="$x"
  3101.   exec_prefix="$acl_save_exec_prefix"
  3102.   prefix="$acl_save_prefix"
  3103.       if test "X$x" = "X$element"; then
  3104.         haveit=yes
  3105.         break
  3106.       fi
  3107.     done
  3108.     if test -z "$haveit"; then
  3109.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  3110.     fi
  3111.   done
  3112.       fi
  3113. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  3114. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  3115.     fi
  3116.         POSUB=po
  3117.   fi
  3118.     INTLLIBS="$LIBINTL"
  3119.   for element in libvlccore vlc; do
  3120.     eval "LIBS_${element}="'"'"${LTLIBINTL} "'$'"{LIBS_${element}} "'"'
  3121.     am_modules_with_libs="${am_modules_with_libs} ${element}"
  3122.   done
  3123.           am_save_CPPFLAGS="$CPPFLAGS"
  3124.   for element in $INCICONV; do
  3125.     haveit=
  3126.     for x in $CPPFLAGS; do
  3127.   acl_save_prefix="$prefix"
  3128.   prefix="$acl_final_prefix"
  3129.   acl_save_exec_prefix="$exec_prefix"
  3130.   exec_prefix="$acl_final_exec_prefix"
  3131.   eval x="$x"
  3132.   exec_prefix="$acl_save_exec_prefix"
  3133.   prefix="$acl_save_prefix"
  3134.       if test "X$x" = "X$element"; then
  3135.         haveit=yes
  3136.         break
  3137.       fi
  3138.     done
  3139.     if test -z "$haveit"; then
  3140.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  3141.     fi
  3142.   done
  3143.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  3144. $as_echo_n "checking for iconv... " >&6; }
  3145. if test "${am_cv_func_iconv+set}" = set; then :
  3146.   $as_echo_n "(cached) " >&6
  3147. else
  3148.     am_cv_func_iconv="no, consider installing GNU libiconv"
  3149.     am_cv_lib_iconv=no
  3150.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3151. /* end confdefs.h.  */
  3152. #include <stdlib.h>
  3153. #include <iconv.h>
  3154. int
  3155. main ()
  3156. {
  3157. iconv_t cd = iconv_open("","");
  3158.        iconv(cd,NULL,NULL,NULL,NULL);
  3159.        iconv_close(cd);
  3160.   ;
  3161.   return 0;
  3162. }
  3163. _ACEOF
  3164. if ac_fn_c_try_link "$LINENO"; then :
  3165.   am_cv_func_iconv=yes
  3166. fi
  3167. rm -f core conftest.err conftest.$ac_objext 
  3168.     conftest$ac_exeext conftest.$ac_ext
  3169.     if test "$am_cv_func_iconv" != yes; then
  3170.       am_save_LIBS="$LIBS"
  3171.       LIBS="$LIBS $LIBICONV"
  3172.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3173. /* end confdefs.h.  */
  3174. #include <stdlib.h>
  3175. #include <iconv.h>
  3176. int
  3177. main ()
  3178. {
  3179. iconv_t cd = iconv_open("","");
  3180.          iconv(cd,NULL,NULL,NULL,NULL);
  3181.          iconv_close(cd);
  3182.   ;
  3183.   return 0;
  3184. }
  3185. _ACEOF
  3186. if ac_fn_c_try_link "$LINENO"; then :
  3187.   am_cv_lib_iconv=yes
  3188.         am_cv_func_iconv=yes
  3189. fi
  3190. rm -f core conftest.err conftest.$ac_objext 
  3191.     conftest$ac_exeext conftest.$ac_ext
  3192.       LIBS="$am_save_LIBS"
  3193.     fi
  3194. fi
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  3196. $as_echo "$am_cv_func_iconv" >&6; }
  3197.   if test "$am_cv_func_iconv" = yes; then
  3198.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  3199. $as_echo_n "checking for working iconv... " >&6; }
  3200. if test "${am_cv_func_iconv_works+set}" = set; then :
  3201.   $as_echo_n "(cached) " >&6
  3202. else
  3203.             am_save_LIBS="$LIBS"
  3204.       if test $am_cv_lib_iconv = yes; then
  3205.         LIBS="$LIBS $LIBICONV"
  3206.       fi
  3207.       if test "$cross_compiling" = yes; then :
  3208.   case "$host_os" in
  3209.            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  3210.            *)            am_cv_func_iconv_works="guessing yes" ;;
  3211.          esac
  3212. else
  3213.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3214. /* end confdefs.h.  */
  3215. #include <iconv.h>
  3216. #include <string.h>
  3217. int main ()
  3218. {
  3219.   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  3220.      returns.  */
  3221.   {
  3222.     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  3223.     if (cd_utf8_to_88591 != (iconv_t)(-1))
  3224.       {
  3225.         static const char input[] = "342202254"; /* EURO SIGN */
  3226.         char buf[10];
  3227.         const char *inptr = input;
  3228.         size_t inbytesleft = strlen (input);
  3229.         char *outptr = buf;
  3230.         size_t outbytesleft = sizeof (buf);
  3231.         size_t res = iconv (cd_utf8_to_88591,
  3232.                             (char **) &inptr, &inbytesleft,
  3233.                             &outptr, &outbytesleft);
  3234.         if (res == 0)
  3235.           return 1;
  3236.       }
  3237.   }
  3238. #if 0 /* This bug could be worked around by the caller.  */
  3239.   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
  3240.   {
  3241.     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  3242.     if (cd_88591_to_utf8 != (iconv_t)(-1))
  3243.       {
  3244.         static const char input[] = "304rger mit b366sen B374bchen ohne Augenma337";
  3245.         char buf[50];
  3246.         const char *inptr = input;
  3247.         size_t inbytesleft = strlen (input);
  3248.         char *outptr = buf;
  3249.         size_t outbytesleft = sizeof (buf);
  3250.         size_t res = iconv (cd_88591_to_utf8,
  3251.                             (char **) &inptr, &inbytesleft,
  3252.                             &outptr, &outbytesleft);
  3253.         if ((int)res > 0)
  3254.           return 1;
  3255.       }
  3256.   }
  3257. #endif
  3258.   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  3259.      provided.  */
  3260.   if (/* Try standardized names.  */
  3261.       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  3262.       /* Try IRIX, OSF/1 names.  */
  3263.       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  3264.       /* Try AIX names.  */
  3265.       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  3266.       /* Try HP-UX names.  */
  3267.       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  3268.     return 1;
  3269.   return 0;
  3270. }
  3271. _ACEOF
  3272. if ac_fn_c_try_run "$LINENO"; then :
  3273.   am_cv_func_iconv_works=yes
  3274. else
  3275.   am_cv_func_iconv_works=no
  3276. fi
  3277. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext 
  3278.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  3279. fi
  3280.       LIBS="$am_save_LIBS"
  3281. fi
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  3283. $as_echo "$am_cv_func_iconv_works" >&6; }
  3284.     case "$am_cv_func_iconv_works" in
  3285.       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  3286.       *)   am_func_iconv=yes ;;
  3287.     esac
  3288.   else
  3289.     am_func_iconv=no am_cv_lib_iconv=no
  3290.   fi
  3291.   if test "$am_func_iconv" = yes; then
  3292. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  3293.   fi
  3294.   if test "$am_cv_lib_iconv" = yes; then
  3295.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  3296. $as_echo_n "checking how to link with libiconv... " >&6; }
  3297.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  3298. $as_echo "$LIBICONV" >&6; }
  3299.   else
  3300.             CPPFLAGS="$am_save_CPPFLAGS"
  3301.     LIBICONV=
  3302.     LTLIBICONV=
  3303.   fi
  3304.   if test "$am_cv_func_iconv" = yes; then
  3305.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  3306. $as_echo_n "checking for iconv declaration... " >&6; }
  3307.     if test "${am_cv_proto_iconv+set}" = set; then :
  3308.   $as_echo_n "(cached) " >&6
  3309. else
  3310.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3311. /* end confdefs.h.  */
  3312. #include <stdlib.h>
  3313. #include <iconv.h>
  3314. extern
  3315. #ifdef __cplusplus
  3316. "C"
  3317. #endif
  3318. #if defined(__STDC__) || defined(__cplusplus)
  3319. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  3320. #else
  3321. size_t iconv();
  3322. #endif
  3323. int
  3324. main ()
  3325. {
  3326.   ;
  3327.   return 0;
  3328. }
  3329. _ACEOF
  3330. if ac_fn_c_try_compile "$LINENO"; then :
  3331.   am_cv_proto_iconv_arg1=""
  3332. else
  3333.   am_cv_proto_iconv_arg1="const"
  3334. fi
  3335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3336.       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  3337. fi
  3338.     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  3339.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  3340.          }$am_cv_proto_iconv" >&5
  3341. $as_echo "${ac_t:-
  3342.          }$am_cv_proto_iconv" >&6; }
  3343. cat >>confdefs.h <<_ACEOF
  3344. #define ICONV_CONST $am_cv_proto_iconv_arg1
  3345. _ACEOF
  3346.   fi
  3347.   for element in libvlccore; do
  3348.     eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} ${INCICONV}"'"'
  3349.     am_modules_with_cflags="${am_modules_with_cflags} ${element}"
  3350.   done
  3351.   for element in libvlccore; do
  3352.     eval "LIBS_${element}="'"'"${LTLIBICONV} "'$'"{LIBS_${element}} "'"'
  3353.     am_modules_with_libs="${am_modules_with_libs} ${element}"
  3354.   done
  3355. if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"; then :
  3356.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mingw-runtime" >&5
  3357. $as_echo_n "checking for broken mingw-runtime... " >&6; }
  3358.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3359. /* end confdefs.h.  */
  3360. #include <_mingw.h>
  3361. #if (__MINGW32_MAJOR_VERSION == 3) && (__MINGW32_MINOR_VERSION < 15)
  3362. # error Attempting to use mingw-runtime with broken vsnprintf support
  3363. #endif
  3364. _ACEOF
  3365. if ac_fn_c_try_cpp "$LINENO"; then :
  3366.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  3367. $as_echo "ok" >&6; }
  3368. else
  3369.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
  3370. $as_echo "present" >&6; }
  3371.         as_fn_error "LibVLC requires mingw-runtime version 3.15 or higher!" "$LINENO" 5
  3372. fi
  3373. rm -f conftest.err conftest.$ac_ext
  3374.         CPPFLAGS="${CPPFLAGS} -D__USE_MINGW_ANSI_STDIO=1"
  3375.     CPPFLAGS_save="${CPPFLAGS_save} -D__USE_MINGW_ANSI_STDIO=1"
  3376. fi
  3377. if test "${SYS}" = "mingw32"
  3378. then
  3379.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendir in -lmingwex" >&5
  3380. $as_echo_n "checking for opendir in -lmingwex... " >&6; }
  3381. if test "${ac_cv_lib_mingwex_opendir+set}" = set; then :
  3382.   $as_echo_n "(cached) " >&6
  3383. else
  3384.   ac_check_lib_save_LIBS=$LIBS
  3385. LIBS="-lmingwex  $LIBS"
  3386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3387. /* end confdefs.h.  */
  3388. /* Override any GCC internal prototype to avoid an error.
  3389.    Use char because int might match the return type of a GCC
  3390.    builtin and then its argument prototype would still apply.  */
  3391. #ifdef __cplusplus
  3392. extern "C"
  3393. #endif
  3394. char opendir ();
  3395. int
  3396. main ()
  3397. {
  3398. return opendir ();
  3399.   ;
  3400.   return 0;
  3401. }
  3402. _ACEOF
  3403. if ac_fn_c_try_link "$LINENO"; then :
  3404.   ac_cv_lib_mingwex_opendir=yes
  3405. else
  3406.   ac_cv_lib_mingwex_opendir=no
  3407. fi
  3408. rm -f core conftest.err conftest.$ac_objext 
  3409.     conftest$ac_exeext conftest.$ac_ext
  3410. LIBS=$ac_check_lib_save_LIBS
  3411. fi
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingwex_opendir" >&5
  3413. $as_echo "$ac_cv_lib_mingwex_opendir" >&6; }
  3414. if test "x$ac_cv_lib_mingwex_opendir" = x""yes; then :
  3415.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendir in -lmingw32" >&5
  3416. $as_echo_n "checking for opendir in -lmingw32... " >&6; }
  3417. if test "${ac_cv_lib_mingw32_opendir+set}" = set; then :
  3418.   $as_echo_n "(cached) " >&6
  3419. else
  3420.   ac_check_lib_save_LIBS=$LIBS
  3421. LIBS="-lmingw32  $LIBS"
  3422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3423. /* end confdefs.h.  */
  3424. /* Override any GCC internal prototype to avoid an error.
  3425.    Use char because int might match the return type of a GCC
  3426.    builtin and then its argument prototype would still apply.  */
  3427. #ifdef __cplusplus
  3428. extern "C"
  3429. #endif
  3430. char opendir ();
  3431. int
  3432. main ()
  3433. {
  3434. return opendir ();
  3435.   ;
  3436.   return 0;
  3437. }
  3438. _ACEOF
  3439. if ac_fn_c_try_link "$LINENO"; then :
  3440.   ac_cv_lib_mingw32_opendir=yes
  3441. else
  3442.   ac_cv_lib_mingw32_opendir=no
  3443. fi
  3444. rm -f core conftest.err conftest.$ac_objext 
  3445.     conftest$ac_exeext conftest.$ac_ext
  3446. LIBS=$ac_check_lib_save_LIBS
  3447. fi
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_opendir" >&5
  3449. $as_echo "$ac_cv_lib_mingw32_opendir" >&6; }
  3450. if test "x$ac_cv_lib_mingw32_opendir" = x""yes; then :
  3451.   cat >>confdefs.h <<_ACEOF
  3452. #define HAVE_LIBMINGW32 1
  3453. _ACEOF
  3454.   LIBS="-lmingw32 $LIBS"
  3455. else
  3456.   for element in libvlccore gtk; do
  3457.     eval "LIBS_${element}="'"'"-lmingwex "'$'"{LIBS_${element}} "'"'
  3458.     am_modules_with_libs="${am_modules_with_libs} ${element}"
  3459.   done
  3460. fi
  3461. fi
  3462. fi
  3463. if test "${SYS}" = "mingw32"
  3464. then
  3465.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -mms-bitfields" >&5
  3466. $as_echo_n "checking if $CC accepts -mms-bitfields... " >&6; }
  3467. if test "${ac_cv_c_mms_bitfields+set}" = set; then :
  3468.   $as_echo_n "(cached) " >&6
  3469. else
  3470.   CFLAGS="${CFLAGS_save} -mms-bitfields"
  3471.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3472. /* end confdefs.h.  */
  3473. int
  3474. main ()
  3475. {
  3476.   ;
  3477.   return 0;
  3478. }
  3479. _ACEOF
  3480. if ac_fn_c_try_compile "$LINENO"; then :
  3481.   ac_cv_c_mms_bitfields=yes
  3482. else
  3483.   ac_cv_c_mms_bitfields=no
  3484. fi
  3485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3486. fi
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_mms_bitfields" >&5
  3488. $as_echo "$ac_cv_c_mms_bitfields" >&6; }
  3489.     if test "${ac_cv_c_mms_bitfields}" != "no"; then
  3490.         CFLAGS_save="${CFLAGS_save} -mms-bitfields";
  3491.         CXXFLAGS_save="${CXXFLAGS_save} -mms-bitfields";
  3492.     else
  3493.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fnative-struct" >&5
  3494. $as_echo_n "checking if $CC accepts -fnative-struct... " >&6; }
  3495. if test "${ac_cv_c_fnative_struct+set}" = set; then :
  3496.   $as_echo_n "(cached) " >&6
  3497. else
  3498.   CFLAGS="${CFLAGS_save} -fnative-struct"
  3499.              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3500. /* end confdefs.h.  */
  3501. int
  3502. main ()
  3503. {
  3504.   ;
  3505.   return 0;
  3506. }
  3507. _ACEOF
  3508. if ac_fn_c_try_compile "$LINENO"; then :
  3509.   ac_cv_c_fnative_struct=yes
  3510. else
  3511.   ac_cv_c_fnative_struct=no
  3512. fi
  3513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3514. fi
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fnative_struct" >&5
  3516. $as_echo "$ac_cv_c_fnative_struct" >&6; }
  3517.         if test "${ac_cv_c_fnative_struct}" != "no"; then
  3518.             CFLAGS_save="${CFLAGS_save} -fnative-struct";
  3519.             CXXFLAGS_save="${CXXFLAGS_save} -fnative-struct";
  3520.         fi
  3521.     fi
  3522.     CFLAGS="${CFLAGS_save}"; CXXFLAGS="${CXXFLAGS_save}"
  3523. fi
  3524. if test "${SYS}" = "mingw32" -a "${CXX}" != ""
  3525. then
  3526. ac_ext=cpp
  3527. ac_cpp='$CXXCPP $CPPFLAGS'
  3528. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3529. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3530. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3531.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fvtable-thunks" >&5
  3532. $as_echo_n "checking if $CXX accepts -fvtable-thunks... " >&6; }
  3533. if test "${ac_cv_cxx_fvtable_thunks+set}" = set; then :
  3534.   $as_echo_n "(cached) " >&6
  3535. else
  3536.   CXXFLAGS="${CXXFLAGS_save} -Wall -Werror -fvtable-thunks"
  3537.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3538. /* end confdefs.h.  */
  3539. int
  3540. main ()
  3541. {
  3542.   ;
  3543.   return 0;
  3544. }
  3545. _ACEOF
  3546. if ac_fn_cxx_try_compile "$LINENO"; then :
  3547.   ac_cv_cxx_fvtable_thunks=yes
  3548. else
  3549.   ac_cv_cxx_fvtable_thunks=no
  3550. fi
  3551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3552. fi
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_fvtable_thunks" >&5
  3554. $as_echo "$ac_cv_cxx_fvtable_thunks" >&6; }
  3555.     if test "${ac_cv_cxx_fvtable_thunks}" = "yes"; then
  3556.         CXXFLAGS_mingw32_special="-fvtable-thunks"
  3557.     fi
  3558.     CXXFLAGS_save="${CXXFLAGS_save} ${CXXFLAGS_mingw32_special}"; CXXFLAGS="${CXXFLAGS_save}"
  3559. ac_ext=c
  3560. ac_cpp='$CPP $CPPFLAGS'
  3561. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3562. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3563. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3564. fi
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy GNU/libc versions" >&5
  3566. $as_echo_n "checking for buggy GNU/libc versions... " >&6; }
  3567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3568. /* end confdefs.h.  */
  3569. #include <limits.h>
  3570. #if defined (__GLIBC__) && (__GLIBC__ == 2) 
  3571.   && (__GLIBC_MINOR__ >= 5) && (__GLIBC_MINOR__ <= 7)
  3572. # error GNU/libc with dcgettext killer bug!
  3573. #endif
  3574. _ACEOF
  3575. if ac_fn_c_try_cpp "$LINENO"; then :
  3576.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
  3577. $as_echo "not present" >&6; }
  3578. else
  3579.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  3580. $as_echo "found" >&6; }
  3581.   if test "x${enable_nls}" != "xno" || test "x${enable_mozilla}" != "xno"; then :
  3582.     as_fn_error "Buggy GNU/libc (version 2.5 - 2.7) present. VLC would crash; there is no viable
  3583. work-around for this. Check with your distribution vendor on how to update the
  3584. glibc run-time. Alternatively, build with --disable-nls --disable-mozilla and
  3585. be sure to not use LibVLC from other applications/wrappers." "$LINENO" 5
  3586. else
  3587. $as_echo "#define DISABLE_BUGGY_GLIBC_CHECK 1" >>confdefs.h
  3588. fi
  3589. fi
  3590. rm -f conftest.err conftest.$ac_ext
  3591.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared objects suffix" >&5
  3592. $as_echo_n "checking for shared objects suffix... " >&6; }
  3593.   case "${host_os}" in
  3594.     darwin*)
  3595.       LIBEXT=".dylib"
  3596.       ;;
  3597.     *mingw32* | *cygwin* | *wince* | *mingwce*)
  3598.       LIBEXT=".dll"
  3599.       ;;
  3600.     hpux*)
  3601.       LIBEXT=".sl"
  3602.       ;;
  3603.     *)
  3604.       LIBEXT=".so"
  3605.       ;;
  3606.   esac
  3607.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBEXT}" >&5
  3608. $as_echo "${LIBEXT}" >&6; }
  3609. cat >>confdefs.h <<_ACEOF
  3610. #define LIBEXT "${LIBEXT}"
  3611. _ACEOF
  3612. CPPFLAGS_save="${CPPFLAGS_save} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CPPFLAGS="${CPPFLAGS_save}"
  3613. need_libc=false
  3614. for ac_func in gettimeofday isatty sigrelse getpwuid_r memalign posix_memalign if_nametoindex getenv putenv setenv ctime_r lrintf daemon fork lstat posix_fadvise posix_madvise uselocale
  3615. do :
  3616.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3617. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  3618. eval as_val=$$as_ac_var
  3619.    if test "x$as_val" = x""yes; then :
  3620.   cat >>confdefs.h <<_ACEOF
  3621. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3622. _ACEOF
  3623. fi
  3624. done
  3625. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3626. # for constant arguments.  Useless!
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  3628. $as_echo_n "checking for working alloca.h... " >&6; }
  3629. if test "${ac_cv_working_alloca_h+set}" = set; then :
  3630.   $as_echo_n "(cached) " >&6
  3631. else
  3632.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3633. /* end confdefs.h.  */
  3634. #include <alloca.h>
  3635. int
  3636. main ()
  3637. {
  3638. char *p = (char *) alloca (2 * sizeof (int));
  3639.   if (p) return 0;
  3640.   ;
  3641.   return 0;
  3642. }
  3643. _ACEOF
  3644. if ac_fn_c_try_link "$LINENO"; then :
  3645.   ac_cv_working_alloca_h=yes
  3646. else
  3647.   ac_cv_working_alloca_h=no
  3648. fi
  3649. rm -f core conftest.err conftest.$ac_objext 
  3650.     conftest$ac_exeext conftest.$ac_ext
  3651. fi
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  3653. $as_echo "$ac_cv_working_alloca_h" >&6; }
  3654. if test $ac_cv_working_alloca_h = yes; then
  3655. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  3656. fi
  3657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  3658. $as_echo_n "checking for alloca... " >&6; }
  3659. if test "${ac_cv_func_alloca_works+set}" = set; then :
  3660.   $as_echo_n "(cached) " >&6
  3661. else
  3662.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3663. /* end confdefs.h.  */
  3664. #ifdef __GNUC__
  3665. # define alloca __builtin_alloca
  3666. #else
  3667. # ifdef _MSC_VER
  3668. #  include <malloc.h>
  3669. #  define alloca _alloca
  3670. # else
  3671. #  ifdef HAVE_ALLOCA_H
  3672. #   include <alloca.h>
  3673. #  else
  3674. #   ifdef _AIX
  3675.  #pragma alloca
  3676. #   else
  3677. #    ifndef alloca /* predefined by HP cc +Olibcalls */
  3678. char *alloca ();
  3679. #    endif
  3680. #   endif
  3681. #  endif
  3682. # endif
  3683. #endif
  3684. int
  3685. main ()
  3686. {
  3687. char *p = (char *) alloca (1);
  3688.     if (p) return 0;
  3689.   ;
  3690.   return 0;
  3691. }
  3692. _ACEOF
  3693. if ac_fn_c_try_link "$LINENO"; then :
  3694.   ac_cv_func_alloca_works=yes
  3695. else
  3696.   ac_cv_func_alloca_works=no
  3697. fi
  3698. rm -f core conftest.err conftest.$ac_objext 
  3699.     conftest$ac_exeext conftest.$ac_ext
  3700. fi
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  3702. $as_echo "$ac_cv_func_alloca_works" >&6; }
  3703. if test $ac_cv_func_alloca_works = yes; then
  3704. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  3705. else
  3706.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  3707. # that cause trouble.  Some versions do not even contain alloca or
  3708. # contain a buggy version.  If you still want to use their alloca,
  3709. # use ar to extract alloca.o from them instead of compiling alloca.c.
  3710. ALLOCA=${LIBOBJDIR}alloca.$ac_objext
  3711. $as_echo "#define C_ALLOCA 1" >>confdefs.h