break iconv.m4 sync
[gnulib.git] / tests / uniconv / test-u16-conv-from-enc.c
index 6528726..506af0e 100644 (file)
@@ -122,6 +122,8 @@ main ()
        }
     }
 
+  /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2.  */
+# if defined _LIBICONV_VERSION || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__)
   /* Test conversions from autodetect_jp to UTF-16.  */
   for (h = 0; h < SIZEOF (handlers); h++)
     {
@@ -219,6 +221,7 @@ main ()
          free (result);
        }
     }
+# endif
 
 #endif